blob: b0545cfd409567eed25bcb5ff9d2990f55758b02 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer86901802004-12-08 23:07:27 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
Reid Spencer0fcb9412004-11-30 08:11:54 +00001053 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1056 both]
1057 --with-tags[=TAGS]
1058 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001059
1060Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001061 CC C compiler command
1062 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001067 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <llvmbugs@cs.uiuc.edu>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149esac
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001160 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001173llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001175
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001179
1180$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
Reid Spencerabec8f92004-10-27 23:03:44 +00001189It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001190generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001243# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_configure_args0=
1247ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_must_keep_next=false
1250for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001251do
John Criswell0c38eaf2003-09-10 15:17:25 +00001252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001268 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
John Criswell7a73b802003-06-30 21:59:07 +00001287done
John Criswell0c38eaf2003-09-10 15:17:25 +00001288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$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 +00001290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001300
John Criswell7a73b802003-06-30 21:59:07 +00001301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001315 ;;
1316 *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 esac;
1321}
1322 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001347 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001348 done | sort
1349 echo
1350 fi
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001359 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001366 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
John Criswell7a73b802003-06-30 21:59:07 +00001534ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001535for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
John Criswell392aaa32003-07-22 19:18:09 +00001559
Reid Spencer2706f8c2004-09-19 23:53:36 +00001560if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001563echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 fi
John Criswell93e1c722003-09-15 17:04:06 +00001566fi
1567
John Criswell33a911a2003-11-25 20:36:46 +00001568for i in `ls ${srcdir}/projects`
1569do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570 if test -d ${srcdir}/projects/${i} ; then
1571 case ${i} in
1572 "CVS") ;;
1573 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001574
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575subdirs="$subdirs projects/sample"
1576 ;;
1577 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/Stacker"
1580 ;;
1581 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/llvm-test"
1584 ;;
1585 "llvm-reopt")
1586
1587subdirs="$subdirs projects/llvm-reopt"
1588;;
1589 "llvm-gcc")
1590
1591subdirs="$subdirs projects/llvm-gcc"
1592 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594
Reid Spencer641f7ef2004-09-20 22:14:56 +00001595subdirs="$subdirs projects/Java"
1596 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597 "llvm-tv")
1598
1599subdirs="$subdirs projects/llvm-tv"
1600 ;;
1601 "llvm-fefw")
1602
1603subdirs="$subdirs projects/llvm-fefw"
1604 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001605 "poolalloc")
1606
1607subdirs="$subdirs projects/poolalloc"
1608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 esac
John Criswell33a911a2003-11-25 20:36:46 +00001614 fi
1615done
John Criswell559a6c12003-09-30 16:31:48 +00001616
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618# Make sure we can run config.sub.
1619$ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624echo "$as_me:$LINENO: checking build system type" >&5
1625echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_build_alias=$build_alias
1630test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643echo "${ECHO_T}$ac_cv_build" >&6
1644build=$ac_cv_build
1645build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking host system type" >&5
1651echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_host_alias=$host_alias
1656test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665echo "${ECHO_T}$ac_cv_host" >&6
1666host=$ac_cv_host
1667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672echo "$as_me:$LINENO: checking target system type" >&5
1673echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 ac_cv_target_alias=$target_alias
1678test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687echo "${ECHO_T}$ac_cv_target" >&6
1688target=$ac_cv_target
1689target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694# The aliases save the names the user supplied, while $host etc.
1695# will get canonicalized.
1696test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1698 NONENONEs,x,x, &&
1699 program_prefix=${target_alias}-
1700
Reid Spencer73fb5482004-08-31 14:20:36 +00001701echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 case $build in
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001717esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001718fi
1719echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001722if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001725 { (exit 1); exit 1; }; }
1726fi
1727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001728OS=$llvm_cv_platform_type
1729
1730
Reid Spenceredd01b92004-11-25 06:03:14 +00001731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001732
1733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001734case $target in
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1736
1737 ;;
1738esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001739
1740echo "$as_me:$LINENO: checking target architecture" >&5
1741echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001742if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 case $target in
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001750esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001751fi
1752echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758fi
John Criswell76595452003-07-01 22:07:39 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001763ac_ext=c
1764ac_cpp='$CPP $CPPFLAGS'
1765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001768if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795CC=$ac_cv_prog_CC
1796if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798echo "${ECHO_T}$CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808set dummy gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836echo "${ECHO_T}$ac_ct_CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 CC=$ac_ct_CC
1843else
1844 CC="$ac_cv_prog_CC"
1845fi
1846
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850set dummy ${ac_tool_prefix}cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884fi
1885if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888set dummy cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 CC=$ac_ct_CC
1923else
1924 CC="$ac_cv_prog_CC"
1925fi
1926
1927fi
1928if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939 ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1950 fi
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968 fi
1969fi
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001985 do
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007done
2008done
2009
2010fi
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052fi
2053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002058else
2059 echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 CC=$ac_ct_CC
2067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069fi
2070
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002114ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # This is the source file.
2142 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002143 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002155 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 esac
2157done
2158else
2159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002194echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
John Criswell0c38eaf2003-09-10 15:17:25 +00002204rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run. If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002224for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002226 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002229 export ac_cv_exeext
2230 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002231 * ) break;;
2232 esac
2233done
2234else
John Criswell0c38eaf2003-09-10 15:17:25 +00002235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002260
John Criswell7a73b802003-06-30 21:59:07 +00002261int
2262main ()
2263{
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314#ifndef __GNUC__
2315 choke me
2316#endif
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345else
2346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
John Criswell7a73b802003-06-30 21:59:07 +00002349ac_compiler_gnu=no
2350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353
2354fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002419 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002421 fi
2422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002425 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002427 fi
2428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450 char **p;
2451 int i;
2452{
2453 return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX -qlanglvl=ansi
2491# Ultrix and OSF/1 -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions -Aa -D_HPUX_SOURCE
2494# SVR4 -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538 *)
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C. Since we use `exit',
2545# in C++ we need to declare it. In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550 choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002576 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2582do
2583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002589$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002590#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594exit (42);
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 :
2622else
2623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
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 break
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 +00002671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2679fi
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <sys/types.h>
2707#include <sys/param.h>
2708
2709int
2710main ()
2711{
2712#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713 bogus endian macros
2714#endif
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if BYTE_ORDER != BIG_ENDIAN
2756 not big endian
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790ac_cv_c_bigendian=no
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797# It does not; compile a test program.
2798if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813int
2814main ()
2815{
2816 _ascii (); _ebcdic ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2845fi
2846if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2849 else
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2852 fi
2853fi
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860else
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867int
2868main ()
2869{
2870 /* Are we little or big endian? From Harbison&Steele. */
2871 union
2872 {
2873 long l;
2874 char c[sizeof (long)];
2875 } u;
2876 u.l = 1;
2877 exit (u.c[sizeof (long) - 1] == 1);
2878}
2879_ACEOF
2880rm -f conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2892else
2893 echo "$as_me: program exited with status $ac_status" >&5
2894echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897( exit $ac_status )
2898ac_cv_c_bigendian=yes
2899fi
2900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901fi
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907case $ac_cv_c_bigendian in
2908 yes)
2909 ENDIAN=big
2910 ;;
2911 no)
2912 ENDIAN=little
2913 ;;
2914 *)
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917echo "$as_me: error: unknown endianness
2918presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2920esac
2921
2922
2923
2924# Check whether --enable-optimized or --disable-optimized was given.
2925if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2927
2928else
2929 enableval=no
2930fi;
2931if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=
2933
2934else
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937fi
2938
2939# Check whether --enable-jit or --disable-jit was given.
2940if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2942
2943else
2944 enableval=default
2945fi;
2946if test ${enableval} = "no"
2947then
2948 JIT=
2949
2950else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002951 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002952 x86) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 Sparc) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2957 ;;
2958 *) JIT=
2959 ;;
2960 esac
2961fi
2962
Reid Spencer1f319422004-11-29 04:56:35 +00002963# Check whether --enable-doxygen or --disable-doxygen was given.
2964if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002966
Reid Spencer1f319422004-11-29 04:56:35 +00002967else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002969fi;
2970case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2972 ;;
2973 no) ENABLE_DOXYGEN=0
2974 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002975 default) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2980esac
2981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982
2983# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2986 LLVMGCCDIR=$withval
2987
2988fi;
2989
2990if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2992 Linux)
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996 fi
2997 ;;
2998 SunOS)
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002 fi
3003 ;;
3004 esac
3005fi
3006
3007
Reid Spencerca767402004-12-13 02:16:51 +00003008
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009ac_ext=c
3010ac_cpp='$CPP $CPPFLAGS'
3011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016# On Suns, sometimes $CPP names a directory.
3017if test -n "$CPP" && test -d "$CPP"; then
3018 CPP=
3019fi
3020if test -z "$CPP"; then
3021 if test "${ac_cv_prog_CPP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
3024 # Double quotes because CPP needs to be expanded
3025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 do
3027 ac_preproc_ok=false
3028for ac_c_preproc_warn_flag in '' yes
3029do
3030 # Use a header file that comes with gcc, so configuring glibc
3031 # with a fresh cross-compiler works.
3032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033 # <limits.h> exists even on freestanding compilers.
3034 # On the NeXT, cc -E runs the code through the compiler's parser,
3035 # not just through cpp. "Syntax error" is here to catch this case.
3036 cat >conftest.$ac_ext <<_ACEOF
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042#ifdef __STDC__
3043# include <limits.h>
3044#else
3045# include <assert.h>
3046#endif
3047 Syntax error
3048_ACEOF
3049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060 else
3061 ac_cpp_err=
3062 fi
3063else
3064 ac_cpp_err=yes
3065fi
3066if test -z "$ac_cpp_err"; then
3067 :
3068else
3069 echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 # Broken: fails on valid input.
3073continue
3074fi
3075rm -f conftest.err conftest.$ac_ext
3076
3077 # OK, works on sane cases. Now check whether non-existent headers
3078 # can be detected and how.
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085#include <ac_nonexistent.h>
3086_ACEOF
3087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098 else
3099 ac_cpp_err=
3100 fi
3101else
3102 ac_cpp_err=yes
3103fi
3104if test -z "$ac_cpp_err"; then
3105 # Broken: success on invalid input.
3106continue
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 # Passes both tests.
3112ac_preproc_ok=:
3113break
3114fi
3115rm -f conftest.err conftest.$ac_ext
3116
3117done
3118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119rm -f conftest.err conftest.$ac_ext
3120if $ac_preproc_ok; then
3121 break
3122fi
3123
3124 done
3125 ac_cv_prog_CPP=$CPP
3126
3127fi
3128 CPP=$ac_cv_prog_CPP
3129else
3130 ac_cv_prog_CPP=$CPP
3131fi
3132echo "$as_me:$LINENO: result: $CPP" >&5
3133echo "${ECHO_T}$CPP" >&6
3134ac_preproc_ok=false
3135for ac_c_preproc_warn_flag in '' yes
3136do
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
3149#ifdef __STDC__
3150# include <limits.h>
3151#else
3152# include <assert.h>
3153#endif
3154 Syntax error
3155_ACEOF
3156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3167 else
3168 ac_cpp_err=
3169 fi
3170else
3171 ac_cpp_err=yes
3172fi
3173if test -z "$ac_cpp_err"; then
3174 :
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 # Broken: fails on valid input.
3180continue
3181fi
3182rm -f conftest.err conftest.$ac_ext
3183
3184 # OK, works on sane cases. Now check whether non-existent headers
3185 # can be detected and how.
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192#include <ac_nonexistent.h>
3193_ACEOF
3194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 else
3206 ac_cpp_err=
3207 fi
3208else
3209 ac_cpp_err=yes
3210fi
3211if test -z "$ac_cpp_err"; then
3212 # Broken: success on invalid input.
3213continue
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
3221fi
3222rm -f conftest.err conftest.$ac_ext
3223
3224done
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226rm -f conftest.err conftest.$ac_ext
3227if $ac_preproc_ok; then
3228 :
3229else
3230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3235fi
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248if test -n "$ac_tool_prefix"; then
3249 for ac_prog in gcc
3250 do
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253echo "$as_me:$LINENO: checking for $ac_word" >&5
3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255if test "${ac_cv_prog_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275fi
3276fi
3277CC=$ac_cv_prog_CC
3278if test -n "$CC"; then
3279 echo "$as_me:$LINENO: result: $CC" >&5
3280echo "${ECHO_T}$CC" >&6
3281else
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
3284fi
3285
3286 test -n "$CC" && break
3287 done
3288fi
3289if test -z "$CC"; then
3290 ac_ct_CC=$CC
3291 for ac_prog in gcc
3292do
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294set dummy $ac_prog; ac_word=$2
3295echo "$as_me:$LINENO: checking for $ac_word" >&5
3296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_ac_ct_CC="$ac_prog"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314done
3315done
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322echo "${ECHO_T}$ac_ct_CC" >&6
3323else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326fi
3327
3328 test -n "$ac_ct_CC" && break
3329done
3330
3331 CC=$ac_ct_CC
3332fi
3333
3334
John Criswell0c38eaf2003-09-10 15:17:25 +00003335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336See \`config.log' for more details." >&5
3337echo "$as_me: error: no acceptable C compiler found in \$PATH
3338See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003339 { (exit 1); exit 1; }; }
3340
3341# Provide some information about the compiler.
3342echo "$as_me:$LINENO:" \
3343 "checking for C compiler version" >&5
3344ac_compiler=`set X $ac_compile; echo $2`
3345{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360
3361echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003372
John Criswell7a73b802003-06-30 21:59:07 +00003373int
3374main ()
3375{
3376#ifndef __GNUC__
3377 choke me
3378#endif
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
3385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003386 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_compiler_gnu=yes
3407else
3408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003409sed 's/^/| /' conftest.$ac_ext >&5
3410
John Criswell7a73b802003-06-30 21:59:07 +00003411ac_compiler_gnu=no
3412fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003414ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419GCC=`test $ac_compiler_gnu = yes && echo yes`
3420ac_test_CFLAGS=${CFLAGS+set}
3421ac_save_CFLAGS=$CFLAGS
3422CFLAGS="-g"
3423echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425if test "${ac_cv_prog_cc_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003434
John Criswell7a73b802003-06-30 21:59:07 +00003435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003445 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cc_g=yes
3466else
3467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003468sed 's/^/| /' conftest.$ac_ext >&5
3469
John Criswell7a73b802003-06-30 21:59:07 +00003470ac_cv_prog_cc_g=no
3471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003473fi
3474echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3480 CFLAGS="-g -O2"
3481 else
3482 CFLAGS="-g"
3483 fi
3484else
3485 if test "$GCC" = yes; then
3486 CFLAGS="-O2"
3487 else
3488 CFLAGS=
3489 fi
3490fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003491echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 ac_cv_prog_cc_stdc=no
3497ac_save_CC=$CC
3498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504#include <stdarg.h>
3505#include <stdio.h>
3506#include <sys/types.h>
3507#include <sys/stat.h>
3508/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3509struct buf { int x; };
3510FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511static char *e (p, i)
3512 char **p;
3513 int i;
3514{
3515 return p[i];
3516}
3517static char *f (char * (*g) (char **, int), char **p, ...)
3518{
3519 char *s;
3520 va_list v;
3521 va_start (v,p);
3522 s = g (p, va_arg (v,int));
3523 va_end (v);
3524 return s;
3525}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003526
3527/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3528 function prototypes and stuff, but not '\xHH' hex character constants.
3529 These don't provoke an error unfortunately, instead are silently treated
3530 as 'x'. The following induces an error, until -std1 is added to get
3531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3532 array size at least. It's necessary to write '\x00'==0 to get something
3533 that's true only with -std1. */
3534int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535
John Criswell0c38eaf2003-09-10 15:17:25 +00003536int test (int i, double x);
3537struct s1 {int (*f) (int a);};
3538struct s2 {int (*f) (double a);};
3539int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540int argc;
3541char **argv;
3542int
3543main ()
3544{
3545return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550# Don't try gcc -ansi; that turns off useful extensions and
3551# breaks some systems' header files.
3552# AIX -qlanglvl=ansi
3553# Ultrix and OSF/1 -std1
3554# HP-UX 10.20 and later -Ae
3555# HP-UX older versions -Aa -D_HPUX_SOURCE
3556# SVR4 -Xc -D__EXTENSIONS__
3557for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558do
3559 CC="$ac_save_CC $ac_arg"
3560 rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_prog_cc_stdc=$ac_arg
3583break
3584else
3585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003589rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003590done
3591rm -f conftest.$ac_ext conftest.$ac_objext
3592CC=$ac_save_CC
3593
3594fi
3595
3596case "x$ac_cv_prog_cc_stdc" in
3597 x|xno)
3598 echo "$as_me:$LINENO: result: none needed" >&5
3599echo "${ECHO_T}none needed" >&6 ;;
3600 *)
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603 CC="$CC $ac_cv_prog_cc_stdc" ;;
3604esac
3605
John Criswell7a73b802003-06-30 21:59:07 +00003606# Some people use a C++ compiler to compile C. Since we use `exit',
3607# in C++ we need to declare it. In case someone uses the same compiler
3608# for both compiling C and C++ we need to have the C++ compiler decide
3609# the declaration of exit, since it's the most demanding environment.
3610cat >conftest.$ac_ext <<_ACEOF
3611#ifndef __cplusplus
3612 choke me
3613#endif
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003617 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003638 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003639 'extern "C" void std::exit (int) throw (); using std::exit;' \
3640 'extern "C" void std::exit (int); using std::exit;' \
3641 'extern "C" void exit (int) throw ();' \
3642 'extern "C" void exit (int);' \
3643 'void exit (int);'
3644do
3645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003651$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003652#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003653int
3654main ()
3655{
3656exit (42);
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661rm -f conftest.$ac_objext
3662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003663 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 :
3684else
3685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003686sed 's/^/| /' conftest.$ac_ext >&5
3687
John Criswell7a73b802003-06-30 21:59:07 +00003688continue
3689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003697$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003698int
3699main ()
3700{
3701exit (42);
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003708 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003715 { ac_try='test -z "$ac_c_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 break
3729else
3730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003731sed 's/^/| /' conftest.$ac_ext >&5
3732
John Criswell7a73b802003-06-30 21:59:07 +00003733fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003735done
3736rm -f conftest*
3737if test -n "$ac_declaration"; then
3738 echo '#ifdef __cplusplus' >>confdefs.h
3739 echo $ac_declaration >>confdefs.h
3740 echo '#endif' >>confdefs.h
3741fi
3742
3743else
3744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003745sed 's/^/| /' conftest.$ac_ext >&5
3746
John Criswell7a73b802003-06-30 21:59:07 +00003747fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003755ac_ext=cc
3756ac_cpp='$CXXCPP $CPPFLAGS'
3757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760if test -n "$ac_tool_prefix"; then
3761 for ac_prog in $CCC g++
3762 do
3763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765echo "$as_me:$LINENO: checking for $ac_word" >&5
3766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003770 if test -n "$CXX"; then
3771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003775do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784done
3785done
3786
3787fi
3788fi
3789CXX=$ac_cv_prog_CXX
3790if test -n "$CXX"; then
3791 echo "$as_me:$LINENO: result: $CXX" >&5
3792echo "${ECHO_T}$CXX" >&6
3793else
3794 echo "$as_me:$LINENO: result: no" >&5
3795echo "${ECHO_T}no" >&6
3796fi
3797
3798 test -n "$CXX" && break
3799 done
3800fi
3801if test -z "$CXX"; then
3802 ac_ct_CXX=$CXX
3803 for ac_prog in $CCC g++
3804do
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806set dummy $ac_prog; ac_word=$2
3807echo "$as_me:$LINENO: checking for $ac_word" >&5
3808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 if test -n "$ac_ct_CXX"; then
3813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CXX="$ac_prog"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826done
3827done
3828
3829fi
3830fi
3831ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832if test -n "$ac_ct_CXX"; then
3833 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834echo "${ECHO_T}$ac_ct_CXX" >&6
3835else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838fi
3839
3840 test -n "$ac_ct_CXX" && break
3841done
3842test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843
3844 CXX=$ac_ct_CXX
3845fi
3846
3847
3848# Provide some information about the compiler.
3849echo "$as_me:$LINENO:" \
3850 "checking for C++ compiler version" >&5
3851ac_compiler=`set X $ac_compile; echo $2`
3852{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853 (eval $ac_compiler --version </dev/null >&5) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858 (eval $ac_compiler -v </dev/null >&5) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863 (eval $ac_compiler -V </dev/null >&5) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3867
3868echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
John Criswell7a73b802003-06-30 21:59:07 +00003873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003879
3880int
3881main ()
3882{
3883#ifndef __GNUC__
3884 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003885#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003886
3887 ;
3888 return 0;
3889}
John Criswell7a73b802003-06-30 21:59:07 +00003890_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003891rm -f conftest.$ac_objext
3892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003894 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003895 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_cxx_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_compiler_gnu=yes
3914else
3915 echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918ac_compiler_gnu=no
3919fi
3920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922
3923fi
3924echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926GXX=`test $ac_compiler_gnu = yes && echo yes`
3927ac_test_CXXFLAGS=${CXXFLAGS+set}
3928ac_save_CXXFLAGS=$CXXFLAGS
3929CXXFLAGS="-g"
3930echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932if test "${ac_cv_prog_cxx_g+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext
3951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_cxx_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_prog_cxx_g=yes
3973else
3974 echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977ac_cv_prog_cxx_g=no
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980fi
3981echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983if test "$ac_test_CXXFLAGS" = set; then
3984 CXXFLAGS=$ac_save_CXXFLAGS
3985elif test $ac_cv_prog_cxx_g = yes; then
3986 if test "$GXX" = yes; then
3987 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003988 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003989 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003990 fi
3991else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003992 if test "$GXX" = yes; then
3993 CXXFLAGS="-O2"
3994 else
3995 CXXFLAGS=
3996 fi
John Criswell7a73b802003-06-30 21:59:07 +00003997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003998for ac_declaration in \
3999 '' \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4004 'void exit (int);'
4005do
4006 cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012$ac_declaration
4013#include <stdlib.h>
4014int
4015main ()
4016{
4017exit (42);
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext
4023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004044 :
4045else
4046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004047sed 's/^/| /' conftest.$ac_ext >&5
4048
John Criswell7a73b802003-06-30 21:59:07 +00004049continue
4050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004058$ac_declaration
4059int
4060main ()
4061{
4062exit (42);
4063 ;
4064 return 0;
4065}
John Criswell7a73b802003-06-30 21:59:07 +00004066_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004067rm -f conftest.$ac_objext
4068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004070 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004071 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_cxx_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004089 break
John Criswell7a73b802003-06-30 21:59:07 +00004090else
4091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004092sed 's/^/| /' conftest.$ac_ext >&5
4093
John Criswell7a73b802003-06-30 21:59:07 +00004094fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004096done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004097rm -f conftest*
4098if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004102fi
4103
4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
John Criswell7a73b802003-06-30 21:59:07 +00004110echo "$as_me:$LINENO: checking " >&5
4111echo $ECHO_N "checking ... $ECHO_C" >&6
4112if test "${ac_cv_has_flex+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 for ac_prog in flex lex
4116do
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118set dummy $ac_prog; ac_word=$2
4119echo "$as_me:$LINENO: checking for $ac_word" >&5
4120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121if test "${ac_cv_prog_LEX+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 if test -n "$LEX"; then
4125 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_LEX="$ac_prog"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
4139done
4140
4141fi
4142fi
4143LEX=$ac_cv_prog_LEX
4144if test -n "$LEX"; then
4145 echo "$as_me:$LINENO: result: $LEX" >&5
4146echo "${ECHO_T}$LEX" >&6
4147else
4148 echo "$as_me:$LINENO: result: no" >&5
4149echo "${ECHO_T}no" >&6
4150fi
4151
4152 test -n "$LEX" && break
4153done
4154test -n "$LEX" || LEX=":"
4155
4156if test -z "$LEXLIB"
4157then
4158 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 ac_check_lib_save_LIBS=$LIBS
4164LIBS="-lfl $LIBS"
4165cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004171
4172/* Override any gcc2 internal prototype to avoid an error. */
4173#ifdef __cplusplus
4174extern "C"
4175#endif
4176/* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004179int
4180main ()
4181{
4182yywrap ();
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext conftest$ac_exeext
4188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004189 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_lib_fl_yywrap=yes
4210else
4211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004212sed 's/^/| /' conftest.$ac_ext >&5
4213
John Criswell7a73b802003-06-30 21:59:07 +00004214ac_cv_lib_fl_yywrap=no
4215fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004216rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004218LIBS=$ac_check_lib_save_LIBS
4219fi
4220echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222if test $ac_cv_lib_fl_yywrap = yes; then
4223 LEXLIB="-lfl"
4224else
4225 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230 ac_check_lib_save_LIBS=$LIBS
4231LIBS="-ll $LIBS"
4232cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004238
4239/* Override any gcc2 internal prototype to avoid an error. */
4240#ifdef __cplusplus
4241extern "C"
4242#endif
4243/* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4245char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004246int
4247main ()
4248{
4249yywrap ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004256 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_lib_l_yywrap=yes
4277else
4278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004279sed 's/^/| /' conftest.$ac_ext >&5
4280
John Criswell7a73b802003-06-30 21:59:07 +00004281ac_cv_lib_l_yywrap=no
4282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004283rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004285LIBS=$ac_check_lib_save_LIBS
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289if test $ac_cv_lib_l_yywrap = yes; then
4290 LEXLIB="-ll"
4291fi
4292
4293fi
4294
4295fi
4296
4297if test "x$LEX" != "x:"; then
4298 echo "$as_me:$LINENO: checking lex output file root" >&5
4299echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300if test "${ac_cv_prog_lex_root+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 # The minimal lex program is just a single line: %%. But some broken lexes
4304# (Solaris, I think it was) want two %% lines, so accommodate them.
4305cat >conftest.l <<_ACEOF
4306%%
4307%%
4308_ACEOF
4309{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310 (eval $LEX conftest.l) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }
4314if test -f lex.yy.c; then
4315 ac_cv_prog_lex_root=lex.yy
4316elif test -f lexyy.c; then
4317 ac_cv_prog_lex_root=lexyy
4318else
4319 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321 { (exit 1); exit 1; }; }
4322fi
4323fi
4324echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326rm -f conftest.l
4327LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328
4329echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 # POSIX says lex can declare yytext either as a pointer or an array; the
4335# default is implementation-dependent. Figure out which it is, since
4336# not all implementations provide the %pointer and %array declarations.
4337ac_cv_prog_lex_yytext_pointer=no
4338echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339ac_save_LIBS=$LIBS
4340LIBS="$LIBS $LEXLIB"
4341cat >conftest.$ac_ext <<_ACEOF
4342`cat $LEX_OUTPUT_ROOT.c`
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_prog_lex_yytext_pointer=yes
4367else
4368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004369sed 's/^/| /' conftest.$ac_ext >&5
4370
John Criswell7a73b802003-06-30 21:59:07 +00004371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004372rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004374LIBS=$ac_save_LIBS
4375rm -f "${LEX_OUTPUT_ROOT}.c"
4376
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381
4382cat >>confdefs.h <<\_ACEOF
4383#define YYTEXT_POINTER 1
4384_ACEOF
4385
4386fi
4387
4388fi
4389
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392echo "${ECHO_T}$ac_cv_has_flex" >&6
4393if test "$LEX" != "flex"; then
4394 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395echo "$as_me: error: flex not found but required" >&2;}
4396 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004397else
4398 FLEX=flex
4399
John Criswell7a73b802003-06-30 21:59:07 +00004400fi
4401
4402echo "$as_me:$LINENO: checking " >&5
4403echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004404if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406else
4407 for ac_prog in 'bison -y' byacc
4408do
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410set dummy $ac_prog; ac_word=$2
4411echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413if test "${ac_cv_prog_YACC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if test -n "$YACC"; then
4417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_YACC="$ac_prog"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
4432
4433fi
4434fi
4435YACC=$ac_cv_prog_YACC
4436if test -n "$YACC"; then
4437 echo "$as_me:$LINENO: result: $YACC" >&5
4438echo "${ECHO_T}$YACC" >&6
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442fi
4443
4444 test -n "$YACC" && break
4445done
4446test -n "$YACC" || YACC="yacc"
4447
John Criswell7a73b802003-06-30 21:59:07 +00004448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004449echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004451if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4455else
Brian Gaeke12810632004-01-13 06:52:10 +00004456 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458fi
4459
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004460echo "$as_me:$LINENO: checking for GNU make" >&5
4461echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469 then
4470 llvm_cv_gnu_make_command=$a ;
4471 break;
John Criswell47fdd832003-07-14 16:52:07 +00004472 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004473 done
John Criswell7a73b802003-06-30 21:59:07 +00004474fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004475echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4478 ifGNUmake='' ;
4479 else
4480 ifGNUmake='#' ;
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482echo "${ECHO_T}\"Not found\"" >&6;
4483 fi
John Criswell7a73b802003-06-30 21:59:07 +00004484
John Criswell7a73b802003-06-30 21:59:07 +00004485
4486echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488LN_S=$as_ln_s
4489if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491echo "${ECHO_T}yes" >&6
4492else
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494echo "${ECHO_T}no, using $LN_S" >&6
4495fi
4496
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004497# Extract the first word of "date", so it can be a program name with args.
4498set dummy date; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004504 case $DATE in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004507 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004508 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004519 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004520done
4521done
John Criswell7a73b802003-06-30 21:59:07 +00004522
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004523 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004524 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004525esac
John Criswell7a73b802003-06-30 21:59:07 +00004526fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004527DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004528
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004529if test -n "$DATE"; then
4530 echo "$as_me:$LINENO: result: $DATE" >&5
4531echo "${ECHO_T}$DATE" >&6
4532else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535fi
John Criswell7a73b802003-06-30 21:59:07 +00004536
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004537# Extract the first word of "find", so it can be a program name with args.
4538set dummy find; ac_word=$2
4539echo "$as_me:$LINENO: checking for $ac_word" >&5
4540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004544 case $FIND in
4545 [\\/]* | ?:[\\/]*)
4546 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4547 ;;
4548 *)
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561done
4562
4563 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4564 ;;
4565esac
4566fi
4567FIND=$ac_cv_path_FIND
4568
4569if test -n "$FIND"; then
4570 echo "$as_me:$LINENO: result: $FIND" >&5
4571echo "${ECHO_T}$FIND" >&6
4572else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
4577# Extract the first word of "grep", so it can be a program name with args.
4578set dummy grep; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_GREP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 case $GREP in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600done
4601done
4602
4603 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4604 ;;
4605esac
4606fi
4607GREP=$ac_cv_path_GREP
4608
4609if test -n "$GREP"; then
4610 echo "$as_me:$LINENO: result: $GREP" >&5
4611echo "${ECHO_T}$GREP" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617# Extract the first word of "mkdir", so it can be a program name with args.
4618set dummy mkdir; ac_word=$2
4619echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621if test "${ac_cv_path_MKDIR+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 case $MKDIR in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4644 ;;
4645esac
4646fi
4647MKDIR=$ac_cv_path_MKDIR
4648
4649if test -n "$MKDIR"; then
4650 echo "$as_me:$LINENO: result: $MKDIR" >&5
4651echo "${ECHO_T}$MKDIR" >&6
4652else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655fi
4656
4657# Extract the first word of "mv", so it can be a program name with args.
4658set dummy mv; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_MV+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 case $MV in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4667 ;;
4668 *)
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
4681done
4682
4683 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4684 ;;
4685esac
4686fi
4687MV=$ac_cv_path_MV
4688
4689if test -n "$MV"; then
4690 echo "$as_me:$LINENO: result: $MV" >&5
4691echo "${ECHO_T}$MV" >&6
4692else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695fi
4696
4697# Extract the first word of "pax", so it can be a program name with args.
4698set dummy pax; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_path_PAX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 case $PAX in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722
4723 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4724 ;;
4725esac
4726fi
4727PAX=$ac_cv_path_PAX
4728
4729if test -n "$PAX"; then
4730 echo "$as_me:$LINENO: result: $PAX" >&5
4731echo "${ECHO_T}$PAX" >&6
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735fi
4736
4737if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740echo "$as_me:$LINENO: checking for $ac_word" >&5
4741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742if test "${ac_cv_prog_RANLIB+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745 if test -n "$RANLIB"; then
4746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759done
4760done
4761
4762fi
4763fi
4764RANLIB=$ac_cv_prog_RANLIB
4765if test -n "$RANLIB"; then
4766 echo "$as_me:$LINENO: result: $RANLIB" >&5
4767echo "${ECHO_T}$RANLIB" >&6
4768else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771fi
4772
4773fi
4774if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777set dummy ranlib; ac_word=$2
4778echo "$as_me:$LINENO: checking for $ac_word" >&5
4779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782else
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785else
4786as_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_prog_ac_ct_RANLIB="ranlib"
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_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4801fi
4802fi
4803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804if test -n "$ac_ct_RANLIB"; then
4805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806echo "${ECHO_T}$ac_ct_RANLIB" >&6
4807else
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
4810fi
4811
4812 RANLIB=$ac_ct_RANLIB
4813else
4814 RANLIB="$ac_cv_prog_RANLIB"
4815fi
4816
4817# Extract the first word of "rm", so it can be a program name with args.
4818set dummy rm; ac_word=$2
4819echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821if test "${ac_cv_path_RM+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 case $RM in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841done
4842
4843 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4844 ;;
4845esac
4846fi
4847RM=$ac_cv_path_RM
4848
4849if test -n "$RM"; then
4850 echo "$as_me:$LINENO: result: $RM" >&5
4851echo "${ECHO_T}$RM" >&6
4852else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855fi
4856
4857# Extract the first word of "sed", so it can be a program name with args.
4858set dummy sed; ac_word=$2
4859echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861if test "${ac_cv_path_SED+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 case $SED in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881done
4882
4883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4884 ;;
4885esac
4886fi
4887SED=$ac_cv_path_SED
4888
4889if test -n "$SED"; then
4890 echo "$as_me:$LINENO: result: $SED" >&5
4891echo "${ECHO_T}$SED" >&6
4892else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895fi
4896
4897# Extract the first word of "tar", so it can be a program name with args.
4898set dummy tar; ac_word=$2
4899echo "$as_me:$LINENO: checking for $ac_word" >&5
4900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901if test "${ac_cv_path_TAR+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 case $TAR in
4905 [\\/]* | ?:[\\/]*)
4906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4907 ;;
4908 *)
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4924 ;;
4925esac
4926fi
4927TAR=$ac_cv_path_TAR
4928
4929if test -n "$TAR"; then
4930 echo "$as_me:$LINENO: result: $TAR" >&5
4931echo "${ECHO_T}$TAR" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937
4938# Find a good install program. We prefer a C program (faster),
4939# so one script is as good as another. But avoid the broken or
4940# incompatible versions:
4941# SysV /etc/install, /usr/sbin/install
4942# SunOS /usr/etc/install
4943# IRIX /sbin/install
4944# AIX /bin/install
4945# AmigaOS /C/install, which installs bootblocks on floppy discs
4946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949# OS/2's system install, which has a completely different semantic
4950# ./install, which can be erroneously created by make from ./install.sh.
4951echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953if test -z "$INSTALL"; then
4954if test "${ac_cv_path_install+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 # Account for people who put trailing slashes in PATH elements.
4963case $as_dir/ in
4964 ./ | .// | /cC/* | \
4965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4967 /usr/ucb/* ) ;;
4968 *)
4969 # OSF1 and SCO ODT 3.0 have their own names for install.
4970 # Don't use installbsd from OSF since it installs stuff as root
4971 # by default.
4972 for ac_prog in ginstall scoinst install; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975 if test $ac_prog = install &&
4976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977 # AIX install. It has an incompatible calling convention.
4978 :
4979 elif test $ac_prog = install &&
4980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981 # program-specific install script used by HP pwplus--don't use.
4982 :
4983 else
4984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4985 break 3
4986 fi
4987 fi
4988 done
4989 done
4990 ;;
4991esac
4992done
4993
4994
4995fi
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL=$ac_cv_path_install
4998 else
4999 # As a last resort, use the slow shell script. We don't cache a
5000 # path for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the path is relative.
5003 INSTALL=$ac_install_sh
5004 fi
5005fi
5006echo "$as_me:$LINENO: result: $INSTALL" >&5
5007echo "${ECHO_T}$INSTALL" >&6
5008
5009# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010# It thinks the first close brace ends the variable substitution.
5011test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014
5015test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016
5017
5018# Extract the first word of "bzip2", so it can be a program name with args.
5019set dummy bzip2; ac_word=$2
5020echo "$as_me:$LINENO: checking for $ac_word" >&5
5021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022if test "${ac_cv_path_BZIP2+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 case $BZIP2 in
5026 [\\/]* | ?:[\\/]*)
5027 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5028 ;;
5029 *)
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042done
5043
5044 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5045 ;;
5046esac
5047fi
5048BZIP2=$ac_cv_path_BZIP2
5049
5050if test -n "$BZIP2"; then
5051 echo "$as_me:$LINENO: result: $BZIP2" >&5
5052echo "${ECHO_T}$BZIP2" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058# Extract the first word of "dot", so it can be a program name with args.
5059set dummy dot; ac_word=$2
5060echo "$as_me:$LINENO: checking for $ac_word" >&5
5061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062if test "${ac_cv_path_DOT+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 case $DOT in
5066 [\\/]* | ?:[\\/]*)
5067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5068 ;;
5069 *)
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082done
5083
5084 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5085 ;;
5086esac
5087fi
5088DOT=$ac_cv_path_DOT
5089
5090if test -n "$DOT"; then
5091 echo "$as_me:$LINENO: result: $DOT" >&5
5092echo "${ECHO_T}$DOT" >&6
5093else
5094 echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096fi
5097
5098# Extract the first word of "doxygen", so it can be a program name with args.
5099set dummy doxygen; ac_word=$2
5100echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 case $DOXYGEN in
5106 [\\/]* | ?:[\\/]*)
5107 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5108 ;;
5109 *)
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
5123
5124 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5125 ;;
5126esac
5127fi
5128DOXYGEN=$ac_cv_path_DOXYGEN
5129
5130if test -n "$DOXYGEN"; then
5131 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132echo "${ECHO_T}$DOXYGEN" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138# Extract the first word of "etags", so it can be a program name with args.
5139set dummy etags; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_path_ETAGS+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 case $ETAGS in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162done
5163
5164 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5165 ;;
5166esac
5167fi
5168ETAGS=$ac_cv_path_ETAGS
5169
5170if test -n "$ETAGS"; then
5171 echo "$as_me:$LINENO: result: $ETAGS" >&5
5172echo "${ECHO_T}$ETAGS" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178# Extract the first word of "groff", so it can be a program name with args.
5179set dummy groff; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_path_GROFF+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 case $GROFF in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5205 ;;
5206esac
5207fi
5208GROFF=$ac_cv_path_GROFF
5209
5210if test -n "$GROFF"; then
5211 echo "$as_me:$LINENO: result: $GROFF" >&5
5212echo "${ECHO_T}$GROFF" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218# Extract the first word of "gzip", so it can be a program name with args.
5219set dummy gzip; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_path_GZIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 case $GZIP in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5245 ;;
5246esac
5247fi
5248GZIP=$ac_cv_path_GZIP
5249
5250if test -n "$GZIP"; then
5251 echo "$as_me:$LINENO: result: $GZIP" >&5
5252echo "${ECHO_T}$GZIP" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258# Extract the first word of "pod2html", so it can be a program name with args.
5259set dummy pod2html; ac_word=$2
5260echo "$as_me:$LINENO: checking for $ac_word" >&5
5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262if test "${ac_cv_path_POD2HTML+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 case $POD2HTML in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
5283
5284 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5285 ;;
5286esac
5287fi
5288POD2HTML=$ac_cv_path_POD2HTML
5289
5290if test -n "$POD2HTML"; then
5291 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292echo "${ECHO_T}$POD2HTML" >&6
5293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
5298# Extract the first word of "pod2man", so it can be a program name with args.
5299set dummy pod2man; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_path_POD2MAN+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 case $POD2MAN in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5308 ;;
5309 *)
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
5324 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5325 ;;
5326esac
5327fi
5328POD2MAN=$ac_cv_path_POD2MAN
5329
5330if test -n "$POD2MAN"; then
5331 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332echo "${ECHO_T}$POD2MAN" >&6
5333else
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005338# Extract the first word of "runtest", so it can be a program name with args.
5339set dummy runtest; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_RUNTEST+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 case $RUNTEST in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5348 ;;
5349 *)
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361done
5362done
5363
5364 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5365 ;;
5366esac
5367fi
5368RUNTEST=$ac_cv_path_RUNTEST
5369
5370if test -n "$RUNTEST"; then
5371 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5372echo "${ECHO_T}$RUNTEST" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
Reid Spencer0fcb9412004-11-30 08:11:54 +00005378
Reid Spencer0fcb9412004-11-30 08:11:54 +00005379no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005380echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5381echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005382
5383# Check whether --with-tclinclude or --without-tclinclude was given.
5384if test "${with_tclinclude+set}" = set; then
5385 withval="$with_tclinclude"
5386 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005387else
5388 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005389fi;
5390if test "${ac_cv_path_tclsh+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393
5394if test x"${with_tclinclude}" != x ; then
5395 if test -f ${with_tclinclude}/tclsh ; then
5396 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5397 elif test -f ${with_tclinclude}/src/tclsh ; then
5398 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5399 else
5400 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5401echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5402 { (exit 1); exit 1; }; }
5403 fi
5404fi
5405
Reid Spencer0fcb9412004-11-30 08:11:54 +00005406if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005407 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005408echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005409 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 +00005410do
5411 # Extract the first word of "$ac_prog", so it can be a program name with args.
5412set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005413echo "$as_me:$LINENO: checking for $ac_word" >&5
5414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005415if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417else
Reid Spencercda35f82004-12-02 04:17:20 +00005418 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005419 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005421 ;;
5422 *)
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434done
5435done
5436
5437 ;;
5438esac
5439fi
Reid Spencercda35f82004-12-02 04:17:20 +00005440TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005441
Reid Spencercda35f82004-12-02 04:17:20 +00005442if test -n "$TCLSH"; then
5443 echo "$as_me:$LINENO: result: $TCLSH" >&5
5444echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005445else
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
5448fi
5449
Reid Spencercda35f82004-12-02 04:17:20 +00005450 test -n "$TCLSH" && break
5451done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005452
Reid Spencercda35f82004-12-02 04:17:20 +00005453 if test x"${TCLSH}" = x ; then
5454 ac_cv_path_tclsh='';
5455 else
5456 ac_cv_path_tclsh="${TCLSH}";
5457 fi
5458else
5459 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5460echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5461 TCLSH="${ac_cv_path_tclsh}"
5462
5463fi
5464
5465fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005466
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005467# Extract the first word of "zip", so it can be a program name with args.
5468set dummy zip; ac_word=$2
5469echo "$as_me:$LINENO: checking for $ac_word" >&5
5470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471if test "${ac_cv_path_ZIP+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474 case $ZIP in
5475 [\\/]* | ?:[\\/]*)
5476 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5477 ;;
5478 *)
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490done
5491done
5492
5493 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5494 ;;
5495esac
5496fi
5497ZIP=$ac_cv_path_ZIP
5498
5499if test -n "$ZIP"; then
5500 echo "$as_me:$LINENO: result: $ZIP" >&5
5501echo "${ECHO_T}$ZIP" >&6
5502else
5503 echo "$as_me:$LINENO: result: no" >&5
5504echo "${ECHO_T}no" >&6
5505fi
5506
5507
5508echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5509echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5510if test "${llvm_cv_link_use_r+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005519 oldcflags="$CFLAGS"
5520 CFLAGS="$CFLAGS -Wl,-R."
5521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005522/* confdefs.h. */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005527
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005528int
5529main ()
5530{
5531int main() { return 0; }
5532 ;
5533 return 0;
5534}
John Criswell47fdd832003-07-14 16:52:07 +00005535_ACEOF
5536rm -f conftest.$ac_objext conftest$ac_exeext
5537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005538 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005544 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005558 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005559else
John Criswell47fdd832003-07-14 16:52:07 +00005560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005561sed 's/^/| /' conftest.$ac_ext >&5
5562
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005563llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005565rm -f conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005567 CFLAGS="$oldcflags"
5568 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005569ac_cpp='$CPP $CPPFLAGS'
5570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005574
John Criswell7a73b802003-06-30 21:59:07 +00005575fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005576echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5577echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5578if test "$llvm_cv_link_use_r" = yes ; then
5579
5580cat >>confdefs.h <<\_ACEOF
5581#define HAVE_LINK_R 1
5582_ACEOF
5583
John Criswell47fdd832003-07-14 16:52:07 +00005584 fi
John Criswell47fdd832003-07-14 16:52:07 +00005585
John Criswell47fdd832003-07-14 16:52:07 +00005586
John Criswell47fdd832003-07-14 16:52:07 +00005587
John Criswell7a73b802003-06-30 21:59:07 +00005588
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005589echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5590echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5591if test "${ac_cv_c_const+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600
5601int
5602main ()
5603{
5604/* FIXME: Include the comments suggested by Paul. */
5605#ifndef __cplusplus
5606 /* Ultrix mips cc rejects this. */
5607 typedef int charset[2];
5608 const charset x;
5609 /* SunOS 4.1.1 cc rejects this. */
5610 char const *const *ccp;
5611 char **p;
5612 /* NEC SVR4.0.2 mips cc rejects this. */
5613 struct point {int x, y;};
5614 static struct point const zero = {0,0};
5615 /* AIX XL C 1.02.0.0 rejects this.
5616 It does not let you subtract one const X* pointer from another in
5617 an arm of an if-expression whose if-part is not a constant
5618 expression */
5619 const char *g = "string";
5620 ccp = &g + (g ? g-g : 0);
5621 /* HPUX 7.0 cc rejects these. */
5622 ++ccp;
5623 p = (char**) ccp;
5624 ccp = (char const *const *) p;
5625 { /* SCO 3.2v4 cc rejects this. */
5626 char *t;
5627 char const *s = 0 ? (char *) 0 : (char const *) 0;
5628
5629 *t++ = 0;
5630 }
5631 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5632 int x[] = {25, 17};
5633 const int *foo = &x[0];
5634 ++foo;
5635 }
5636 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5637 typedef const int *iptr;
5638 iptr p = 0;
5639 ++p;
5640 }
5641 { /* AIX XL C 1.02.0.0 rejects this saying
5642 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5643 struct s { int j; const int *ap[3]; };
5644 struct s *b; b->j = 5;
5645 }
5646 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5647 const int foo = 10;
5648 }
5649#endif
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
5656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_c_const=yes
5678else
5679 echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682ac_cv_c_const=no
5683fi
5684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5685fi
5686echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5687echo "${ECHO_T}$ac_cv_c_const" >&6
5688if test $ac_cv_c_const = no; then
5689
5690cat >>confdefs.h <<\_ACEOF
5691#define const
5692_ACEOF
5693
5694fi
5695
5696
5697echo "$as_me:$LINENO: checking for egrep" >&5
5698echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5699if test "${ac_cv_prog_egrep+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5703 then ac_cv_prog_egrep='grep -E'
5704 else ac_cv_prog_egrep='egrep'
5705 fi
5706fi
5707echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5708echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5709 EGREP=$ac_cv_prog_egrep
5710
John Criswell7a73b802003-06-30 21:59:07 +00005711
5712echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5713echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5714if test "${ac_cv_header_stdc+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005723#include <stdlib.h>
5724#include <stdarg.h>
5725#include <string.h>
5726#include <float.h>
5727
John Criswell0c38eaf2003-09-10 15:17:25 +00005728int
5729main ()
5730{
5731
5732 ;
5733 return 0;
5734}
John Criswell7a73b802003-06-30 21:59:07 +00005735_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005736rm -f conftest.$ac_objext
5737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005738 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005744 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005758 ac_cv_header_stdc=yes
5759else
5760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005766
5767if test $ac_cv_header_stdc = yes; then
5768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5769 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005770/* confdefs.h. */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005775#include <string.h>
5776
5777_ACEOF
5778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005779 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005780 :
5781else
5782 ac_cv_header_stdc=no
5783fi
5784rm -f conftest*
5785
5786fi
5787
5788if test $ac_cv_header_stdc = yes; then
5789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5790 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005796#include <stdlib.h>
5797
5798_ACEOF
5799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005800 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005801 :
5802else
5803 ac_cv_header_stdc=no
5804fi
5805rm -f conftest*
5806
5807fi
5808
5809if test $ac_cv_header_stdc = yes; then
5810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5811 if test "$cross_compiling" = yes; then
5812 :
5813else
5814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005820#include <ctype.h>
5821#if ((' ' & 0x0FF) == 0x020)
5822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5824#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005825# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005826 (('a' <= (c) && (c) <= 'i') \
5827 || ('j' <= (c) && (c) <= 'r') \
5828 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5830#endif
5831
5832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5833int
5834main ()
5835{
5836 int i;
5837 for (i = 0; i < 256; i++)
5838 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005839 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005840 exit(2);
5841 exit (0);
5842}
5843_ACEOF
5844rm -f conftest$ac_exeext
5845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 :
5856else
5857 echo "$as_me: program exited with status $ac_status" >&5
5858echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005859sed 's/^/| /' conftest.$ac_ext >&5
5860
John Criswell7a73b802003-06-30 21:59:07 +00005861( exit $ac_status )
5862ac_cv_header_stdc=no
5863fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005865fi
5866fi
5867fi
5868echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5869echo "${ECHO_T}$ac_cv_header_stdc" >&6
5870if test $ac_cv_header_stdc = yes; then
5871
5872cat >>confdefs.h <<\_ACEOF
5873#define STDC_HEADERS 1
5874_ACEOF
5875
5876fi
5877
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005878
5879
5880
5881
5882
5883ac_header_dirent=no
5884for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5885 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5886echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5887echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5888if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897#include <sys/types.h>
5898#include <$ac_hdr>
5899
5900int
5901main ()
5902{
5903if ((DIR *) 0)
5904return 0;
5905 ;
5906 return 0;
5907}
5908_ACEOF
5909rm -f conftest.$ac_objext
5910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 eval "$as_ac_Header=yes"
5932else
5933 echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936eval "$as_ac_Header=no"
5937fi
5938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942if test `eval echo '${'$as_ac_Header'}'` = yes; then
5943 cat >>confdefs.h <<_ACEOF
5944#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5945_ACEOF
5946
5947ac_header_dirent=$ac_hdr; break
5948fi
5949
5950done
5951# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5952if test $ac_header_dirent = dirent.h; then
5953 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5954echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5955if test "${ac_cv_search_opendir+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 ac_func_search_save_LIBS=$LIBS
5959ac_cv_search_opendir=no
5960cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966
5967/* Override any gcc2 internal prototype to avoid an error. */
5968#ifdef __cplusplus
5969extern "C"
5970#endif
5971/* We use char because int might match the return type of a gcc2
5972 builtin and then its argument prototype would still apply. */
5973char opendir ();
5974int
5975main ()
5976{
5977opendir ();
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_search_opendir="none required"
6005else
6006 echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009fi
6010rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6012if test "$ac_cv_search_opendir" = no; then
6013 for ac_lib in dir; do
6014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6015 cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h. */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h. */
6021
6022/* Override any gcc2 internal prototype to avoid an error. */
6023#ifdef __cplusplus
6024extern "C"
6025#endif
6026/* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6028char opendir ();
6029int
6030main ()
6031{
6032opendir ();
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext conftest$ac_exeext
6038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_c_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest$ac_exeext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_search_opendir="-l$ac_lib"
6060break
6061else
6062 echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
6064
6065fi
6066rm -f conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 done
6069fi
6070LIBS=$ac_func_search_save_LIBS
6071fi
6072echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6073echo "${ECHO_T}$ac_cv_search_opendir" >&6
6074if test "$ac_cv_search_opendir" != no; then
6075 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6076
6077fi
6078
6079else
6080 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6081echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6082if test "${ac_cv_search_opendir+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085 ac_func_search_save_LIBS=$LIBS
6086ac_cv_search_opendir=no
6087cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
6093
6094/* Override any gcc2 internal prototype to avoid an error. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098/* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100char opendir ();
6101int
6102main ()
6103{
6104opendir ();
6105 ;
6106 return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext conftest$ac_exeext
6110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111 (eval $ac_link) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -z "$ac_c_werror_flag"
6119 || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest$ac_exeext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_cv_search_opendir="none required"
6132else
6133 echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136fi
6137rm -f conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6139if test "$ac_cv_search_opendir" = no; then
6140 for ac_lib in x; do
6141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148
6149/* Override any gcc2 internal prototype to avoid an error. */
6150#ifdef __cplusplus
6151extern "C"
6152#endif
6153/* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155char opendir ();
6156int
6157main ()
6158{
6159opendir ();
6160 ;
6161 return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext conftest$ac_exeext
6165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag"
6174 || test ! -s conftest.err'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_search_opendir="-l$ac_lib"
6187break
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192fi
6193rm -f conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 done
6196fi
6197LIBS=$ac_func_search_save_LIBS
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6200echo "${ECHO_T}$ac_cv_search_opendir" >&6
6201if test "$ac_cv_search_opendir" != no; then
6202 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6203
6204fi
6205
6206fi
6207
John Criswell7a73b802003-06-30 21:59:07 +00006208# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006219 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006220do
6221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222echo "$as_me:$LINENO: checking for $ac_header" >&5
6223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6224if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006233$ac_includes_default
6234
6235#include <$ac_header>
6236_ACEOF
6237rm -f conftest.$ac_objext
6238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006239 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 eval "$as_ac_Header=yes"
6260else
6261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006262sed 's/^/| /' conftest.$ac_ext >&5
6263
John Criswell7a73b802003-06-30 21:59:07 +00006264eval "$as_ac_Header=no"
6265fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006267fi
6268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6270if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273_ACEOF
6274
6275fi
6276
6277done
6278
6279
6280
6281for ac_header in dlfcn.h
6282do
6283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006284if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6287if eval "test \"\${$as_ac_Header+set}\" = set"; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006289fi
6290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006292else
Brian Gaeke0a621332004-09-08 20:38:05 +00006293 # Is the header compilable?
6294echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6296cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006302$ac_includes_default
6303#include <$ac_header>
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006307 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006327 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006328else
6329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006330sed 's/^/| /' conftest.$ac_ext >&5
6331
Brian Gaeke0a621332004-09-08 20:38:05 +00006332ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006333fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336echo "${ECHO_T}$ac_header_compiler" >&6
6337
6338# Is the header present?
6339echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6341cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347#include <$ac_header>
6348_ACEOF
6349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null; then
6357 if test -s conftest.err; then
6358 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006360 else
6361 ac_cpp_err=
6362 fi
6363else
6364 ac_cpp_err=yes
6365fi
6366if test -z "$ac_cpp_err"; then
6367 ac_header_preproc=yes
6368else
6369 echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 ac_header_preproc=no
6373fi
6374rm -f conftest.err conftest.$ac_ext
6375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376echo "${ECHO_T}$ac_header_preproc" >&6
6377
6378# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006386 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006387 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006400 (
6401 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006402## ----------------------------------- ##
6403## Report this to llvmbugs@cs.uiuc.edu ##
6404## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006405_ASBOX
6406 ) |
6407 sed "s/^/$as_me: WARNING: /" >&2
6408 ;;
6409esac
6410echo "$as_me:$LINENO: checking for $ac_header" >&5
6411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006415 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006416fi
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006419
6420fi
John Criswell7a73b802003-06-30 21:59:07 +00006421if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424_ACEOF
6425
6426fi
6427
6428done
6429
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006430# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6431if test "${enable_ltdl_install+set}" = set; then
6432 enableval="$enable_ltdl_install"
6433
6434fi;
6435
6436
6437
6438if test x"${enable_ltdl_install-no}" != xno; then
6439 INSTALL_LTDL_TRUE=
6440 INSTALL_LTDL_FALSE='#'
6441else
6442 INSTALL_LTDL_TRUE='#'
6443 INSTALL_LTDL_FALSE=
6444fi
6445
6446
6447
6448if test x"${enable_ltdl_convenience-no}" != xno; then
6449 CONVENIENCE_LTDL_TRUE=
6450 CONVENIENCE_LTDL_FALSE='#'
6451else
6452 CONVENIENCE_LTDL_TRUE='#'
6453 CONVENIENCE_LTDL_FALSE=
6454fi
6455
6456
6457echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6459library_names_spec=
6460libname_spec='lib$name'
6461soname_spec=
6462shrext_cmds=".so"
6463postinstall_cmds=
6464postuninstall_cmds=
6465finish_cmds=
6466finish_eval=
6467shlibpath_var=
6468shlibpath_overrides_runpath=unknown
6469version_type=none
6470dynamic_linker="$host_os ld.so"
6471sys_lib_dlsearch_path_spec="/lib /usr/lib"
6472if test "$GCC" = yes; then
6473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6474 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6475 # if the path contains ";" then we assume it to be the separator
6476 # otherwise default to the standard path separator (i.e. ":") - it is
6477 # assumed that no part of a normal pathname contains ";" but that should
6478 # okay in the real world where ";" in dirpaths is itself problematic.
6479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6480 else
6481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6482 fi
6483else
6484 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6485fi
6486need_lib_prefix=unknown
6487hardcode_into_libs=no
6488
6489# when you set need_version to no, make sure it does not cause -set_version
6490# flags to be left without arguments
6491need_version=unknown
6492
6493case $host_os in
6494aix3*)
6495 version_type=linux
6496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6497 shlibpath_var=LIBPATH
6498
6499 # AIX 3 has no versioning support, so we append a major version to the name.
6500 soname_spec='${libname}${release}${shared_ext}$major'
6501 ;;
6502
6503aix4* | aix5*)
6504 version_type=linux
6505 need_lib_prefix=no
6506 need_version=no
6507 hardcode_into_libs=yes
6508 if test "$host_cpu" = ia64; then
6509 # AIX 5 supports IA64
6510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6511 shlibpath_var=LD_LIBRARY_PATH
6512 else
6513 # With GCC up to 2.95.x, collect2 would create an import file
6514 # for dependence libraries. The import file would start with
6515 # the line `#! .'. This would cause the generated library to
6516 # depend on `.', always an invalid library. This was fixed in
6517 # development snapshots of GCC prior to 3.0.
6518 case $host_os in
6519 aix4 | aix4.[01] | aix4.[01].*)
6520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6521 echo ' yes '
6522 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6523 :
6524 else
6525 can_build_shared=no
6526 fi
6527 ;;
6528 esac
6529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6530 # soname into executable. Probably we can add versioning support to
6531 # collect2, so additional links can be useful in future.
6532 if test "$aix_use_runtimelinking" = yes; then
6533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6534 # instead of lib<name>.a to let people know that these are not
6535 # typical AIX shared libraries.
6536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6537 else
6538 # We preserve .a as extension for shared libraries through AIX4.2
6539 # and later when we are not doing run time linking.
6540 library_names_spec='${libname}${release}.a $libname.a'
6541 soname_spec='${libname}${release}${shared_ext}$major'
6542 fi
6543 shlibpath_var=LIBPATH
6544 fi
6545 ;;
6546
6547amigaos*)
6548 library_names_spec='$libname.ixlibrary $libname.a'
6549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6550 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'
6551 ;;
6552
6553beos*)
6554 library_names_spec='${libname}${shared_ext}'
6555 dynamic_linker="$host_os ld.so"
6556 shlibpath_var=LIBRARY_PATH
6557 ;;
6558
6559bsdi[45]*)
6560 version_type=linux
6561 need_version=no
6562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6563 soname_spec='${libname}${release}${shared_ext}$major'
6564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6565 shlibpath_var=LD_LIBRARY_PATH
6566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6568 # the default ld.so.conf also contains /usr/contrib/lib and
6569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6570 # libtool to hard-code these into programs
6571 ;;
6572
6573cygwin* | mingw* | pw32*)
6574 version_type=windows
6575 shrext_cmds=".dll"
6576 need_version=no
6577 need_lib_prefix=no
6578
6579 case $GCC,$host_os in
6580 yes,cygwin* | yes,mingw* | yes,pw32*)
6581 library_names_spec='$libname.dll.a'
6582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6583 postinstall_cmds='base_file=`basename \${file}`~
6584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6585 dldir=$destdir/`dirname \$dlpath`~
6586 test -d \$dldir || mkdir -p \$dldir~
6587 $install_prog $dir/$dlname \$dldir/$dlname'
6588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6589 dlpath=$dir/\$dldll~
6590 $rm \$dlpath'
6591 shlibpath_overrides_runpath=yes
6592
6593 case $host_os in
6594 cygwin*)
6595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6598 ;;
6599 mingw*)
6600 # MinGW DLLs use traditional 'lib' prefix
6601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6604 # It is most probably a Windows format PATH printed by
6605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6606 # path with ; separators, and with drive letters. We can handle the
6607 # drive letters (cygwin fileutils understands them), so leave them,
6608 # especially as we might pass files found there to a mingw objdump,
6609 # which wouldn't understand a cygwinified path. Ahh.
6610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6611 else
6612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6613 fi
6614 ;;
6615 pw32*)
6616 # pw32 DLLs use 'pw' prefix rather than 'lib'
6617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6618 ;;
6619 esac
6620 ;;
6621
6622 *)
6623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6624 ;;
6625 esac
6626 dynamic_linker='Win32 ld.exe'
6627 # FIXME: first we should search . and the directory the executable is in
6628 shlibpath_var=PATH
6629 ;;
6630
6631darwin* | rhapsody*)
6632 dynamic_linker="$host_os dyld"
6633 version_type=darwin
6634 need_lib_prefix=no
6635 need_version=no
6636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6637 soname_spec='${libname}${release}${major}$shared_ext'
6638 shlibpath_overrides_runpath=yes
6639 shlibpath_var=DYLD_LIBRARY_PATH
6640 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6642 if test "$GCC" = yes; then
6643 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"`
6644 else
6645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6646 fi
6647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6648 ;;
6649
6650dgux*)
6651 version_type=linux
6652 need_lib_prefix=no
6653 need_version=no
6654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6655 soname_spec='${libname}${release}${shared_ext}$major'
6656 shlibpath_var=LD_LIBRARY_PATH
6657 ;;
6658
6659freebsd1*)
6660 dynamic_linker=no
6661 ;;
6662
6663kfreebsd*-gnu)
6664 version_type=linux
6665 need_lib_prefix=no
6666 need_version=no
6667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6668 soname_spec='${libname}${release}${shared_ext}$major'
6669 shlibpath_var=LD_LIBRARY_PATH
6670 shlibpath_overrides_runpath=no
6671 hardcode_into_libs=yes
6672 dynamic_linker='GNU ld.so'
6673 ;;
6674
6675freebsd*)
6676 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6677 version_type=freebsd-$objformat
6678 case $version_type in
6679 freebsd-elf*)
6680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6681 need_version=no
6682 need_lib_prefix=no
6683 ;;
6684 freebsd-*)
6685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6686 need_version=yes
6687 ;;
6688 esac
6689 shlibpath_var=LD_LIBRARY_PATH
6690 case $host_os in
6691 freebsd2*)
6692 shlibpath_overrides_runpath=yes
6693 ;;
6694 freebsd3.01* | freebsdelf3.01*)
6695 shlibpath_overrides_runpath=yes
6696 hardcode_into_libs=yes
6697 ;;
6698 *) # from 3.2 on
6699 shlibpath_overrides_runpath=no
6700 hardcode_into_libs=yes
6701 ;;
6702 esac
6703 ;;
6704
6705gnu*)
6706 version_type=linux
6707 need_lib_prefix=no
6708 need_version=no
6709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6710 soname_spec='${libname}${release}${shared_ext}$major'
6711 shlibpath_var=LD_LIBRARY_PATH
6712 hardcode_into_libs=yes
6713 ;;
6714
6715hpux9* | hpux10* | hpux11*)
6716 # Give a soname corresponding to the major version so that dld.sl refuses to
6717 # link against other versions.
6718 version_type=sunos
6719 need_lib_prefix=no
6720 need_version=no
6721 case "$host_cpu" in
6722 ia64*)
6723 shrext_cmds='.so'
6724 hardcode_into_libs=yes
6725 dynamic_linker="$host_os dld.so"
6726 shlibpath_var=LD_LIBRARY_PATH
6727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6729 soname_spec='${libname}${release}${shared_ext}$major'
6730 if test "X$HPUX_IA64_MODE" = X32; then
6731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6732 else
6733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6734 fi
6735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6736 ;;
6737 hppa*64*)
6738 shrext_cmds='.sl'
6739 hardcode_into_libs=yes
6740 dynamic_linker="$host_os dld.sl"
6741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6744 soname_spec='${libname}${release}${shared_ext}$major'
6745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6747 ;;
6748 *)
6749 shrext_cmds='.sl'
6750 dynamic_linker="$host_os dld.sl"
6751 shlibpath_var=SHLIB_PATH
6752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6754 soname_spec='${libname}${release}${shared_ext}$major'
6755 ;;
6756 esac
6757 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6758 postinstall_cmds='chmod 555 $lib'
6759 ;;
6760
6761irix5* | irix6* | nonstopux*)
6762 case $host_os in
6763 nonstopux*) version_type=nonstopux ;;
6764 *)
6765 if test "$lt_cv_prog_gnu_ld" = yes; then
6766 version_type=linux
6767 else
6768 version_type=irix
6769 fi ;;
6770 esac
6771 need_lib_prefix=no
6772 need_version=no
6773 soname_spec='${libname}${release}${shared_ext}$major'
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6775 case $host_os in
6776 irix5* | nonstopux*)
6777 libsuff= shlibsuff=
6778 ;;
6779 *)
6780 case $LD in # libtool.m4 will add one of these switches to LD
6781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6782 libsuff= shlibsuff= libmagic=32-bit;;
6783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6784 libsuff=32 shlibsuff=N32 libmagic=N32;;
6785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6787 *) libsuff= shlibsuff= libmagic=never-match;;
6788 esac
6789 ;;
6790 esac
6791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6792 shlibpath_overrides_runpath=no
6793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6795 hardcode_into_libs=yes
6796 ;;
6797
6798# No shared lib support for Linux oldld, aout, or coff.
6799linux*oldld* | linux*aout* | linux*coff*)
6800 dynamic_linker=no
6801 ;;
6802
6803# This must be Linux ELF.
6804linux*)
6805 version_type=linux
6806 need_lib_prefix=no
6807 need_version=no
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6811 shlibpath_var=LD_LIBRARY_PATH
6812 shlibpath_overrides_runpath=no
6813 # This implies no fast_install, which is unacceptable.
6814 # Some rework will be needed to allow for fast_install
6815 # before this can be enabled.
6816 hardcode_into_libs=yes
6817
6818 # Append ld.so.conf contents to the search path
6819 if test -f /etc/ld.so.conf; then
6820 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6822 fi
6823
6824 # We used to test for /lib/ld.so.1 and disable shared libraries on
6825 # powerpc, because MkLinux only supported shared libraries with the
6826 # GNU dynamic linker. Since this was broken with cross compilers,
6827 # most powerpc-linux boxes support dynamic linking these days and
6828 # people can always --disable-shared, the test was removed, and we
6829 # assume the GNU/Linux dynamic linker is in use.
6830 dynamic_linker='GNU/Linux ld.so'
6831 ;;
6832
6833knetbsd*-gnu)
6834 version_type=linux
6835 need_lib_prefix=no
6836 need_version=no
6837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6838 soname_spec='${libname}${release}${shared_ext}$major'
6839 shlibpath_var=LD_LIBRARY_PATH
6840 shlibpath_overrides_runpath=no
6841 hardcode_into_libs=yes
6842 dynamic_linker='GNU ld.so'
6843 ;;
6844
6845netbsd*)
6846 version_type=sunos
6847 need_lib_prefix=no
6848 need_version=no
6849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6852 dynamic_linker='NetBSD (a.out) ld.so'
6853 else
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6855 soname_spec='${libname}${release}${shared_ext}$major'
6856 dynamic_linker='NetBSD ld.elf_so'
6857 fi
6858 shlibpath_var=LD_LIBRARY_PATH
6859 shlibpath_overrides_runpath=yes
6860 hardcode_into_libs=yes
6861 ;;
6862
6863newsos6)
6864 version_type=linux
6865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866 shlibpath_var=LD_LIBRARY_PATH
6867 shlibpath_overrides_runpath=yes
6868 ;;
6869
6870nto-qnx*)
6871 version_type=linux
6872 need_lib_prefix=no
6873 need_version=no
6874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6875 soname_spec='${libname}${release}${shared_ext}$major'
6876 shlibpath_var=LD_LIBRARY_PATH
6877 shlibpath_overrides_runpath=yes
6878 ;;
6879
6880openbsd*)
6881 version_type=sunos
6882 need_lib_prefix=no
6883 need_version=no
6884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6886 shlibpath_var=LD_LIBRARY_PATH
6887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6888 case $host_os in
6889 openbsd2.[89] | openbsd2.[89].*)
6890 shlibpath_overrides_runpath=no
6891 ;;
6892 *)
6893 shlibpath_overrides_runpath=yes
6894 ;;
6895 esac
6896 else
6897 shlibpath_overrides_runpath=yes
6898 fi
6899 ;;
6900
6901os2*)
6902 libname_spec='$name'
6903 shrext_cmds=".dll"
6904 need_lib_prefix=no
6905 library_names_spec='$libname${shared_ext} $libname.a'
6906 dynamic_linker='OS/2 ld.exe'
6907 shlibpath_var=LIBPATH
6908 ;;
6909
6910osf3* | osf4* | osf5*)
6911 version_type=osf
6912 need_lib_prefix=no
6913 need_version=no
6914 soname_spec='${libname}${release}${shared_ext}$major'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6919 ;;
6920
6921sco3.2v5*)
6922 version_type=osf
6923 soname_spec='${libname}${release}${shared_ext}$major'
6924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 ;;
6927
6928solaris*)
6929 version_type=linux
6930 need_lib_prefix=no
6931 need_version=no
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6933 soname_spec='${libname}${release}${shared_ext}$major'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 shlibpath_overrides_runpath=yes
6936 hardcode_into_libs=yes
6937 # ldd complains unless libraries are executable
6938 postinstall_cmds='chmod +x $lib'
6939 ;;
6940
6941sunos4*)
6942 version_type=sunos
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6945 shlibpath_var=LD_LIBRARY_PATH
6946 shlibpath_overrides_runpath=yes
6947 if test "$with_gnu_ld" = yes; then
6948 need_lib_prefix=no
6949 fi
6950 need_version=yes
6951 ;;
6952
6953sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6954 version_type=linux
6955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6956 soname_spec='${libname}${release}${shared_ext}$major'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 case $host_vendor in
6959 sni)
6960 shlibpath_overrides_runpath=no
6961 need_lib_prefix=no
6962 export_dynamic_flag_spec='${wl}-Blargedynsym'
6963 runpath_var=LD_RUN_PATH
6964 ;;
6965 siemens)
6966 need_lib_prefix=no
6967 ;;
6968 motorola)
6969 need_lib_prefix=no
6970 need_version=no
6971 shlibpath_overrides_runpath=no
6972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6973 ;;
6974 esac
6975 ;;
6976
6977sysv4*MP*)
6978 if test -d /usr/nec ;then
6979 version_type=linux
6980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6981 soname_spec='$libname${shared_ext}.$major'
6982 shlibpath_var=LD_LIBRARY_PATH
6983 fi
6984 ;;
6985
6986uts4*)
6987 version_type=linux
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989 soname_spec='${libname}${release}${shared_ext}$major'
6990 shlibpath_var=LD_LIBRARY_PATH
6991 ;;
6992
6993*)
6994 dynamic_linker=no
6995 ;;
6996esac
6997echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6998echo "${ECHO_T}$dynamic_linker" >&6
6999test "$dynamic_linker" = no && can_build_shared=no
7000
7001
7002echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7003echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7004if test "${libltdl_cv_shlibext+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007
7008module=yes
7009eval libltdl_cv_shlibext=$shrext_cmds
7010
7011fi
7012echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7013echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7014if test -n "$libltdl_cv_shlibext"; then
7015
7016cat >>confdefs.h <<_ACEOF
7017#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7018_ACEOF
7019
7020fi
7021
7022
7023echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7024echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7025if test "${libltdl_cv_shlibpath_var+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028 libltdl_cv_shlibpath_var="$shlibpath_var"
7029fi
7030echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7031echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7032if test -n "$libltdl_cv_shlibpath_var"; then
7033
7034cat >>confdefs.h <<_ACEOF
7035#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7036_ACEOF
7037
7038fi
7039
7040
7041echo "$as_me:$LINENO: checking for the default library search path" >&5
7042echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7043if test "${libltdl_cv_sys_search_path+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7047fi
7048echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7049echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7050if test -n "$libltdl_cv_sys_search_path"; then
7051 sys_search_path=
7052 for dir in $libltdl_cv_sys_search_path; do
7053 if test -z "$sys_search_path"; then
7054 sys_search_path="$dir"
7055 else
7056 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7057 fi
7058 done
7059
7060cat >>confdefs.h <<_ACEOF
7061#define LTDL_SYSSEARCHPATH "$sys_search_path"
7062_ACEOF
7063
7064fi
7065
7066echo "$as_me:$LINENO: checking for objdir" >&5
7067echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7068if test "${libltdl_cv_objdir+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 libltdl_cv_objdir="$objdir"
7072 if test -n "$objdir"; then
7073 :
7074 else
7075 rm -f .libs 2>/dev/null
7076 mkdir .libs 2>/dev/null
7077 if test -d .libs; then
7078 libltdl_cv_objdir=.libs
7079 else
7080 # MS-DOS does not allow filenames that begin with a dot.
7081 libltdl_cv_objdir=_libs
7082 fi
7083 rmdir .libs 2>/dev/null
7084 fi
7085
7086fi
7087echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7088echo "${ECHO_T}$libltdl_cv_objdir" >&6
7089
7090cat >>confdefs.h <<_ACEOF
7091#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7092_ACEOF
7093
7094
7095echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7096echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7097if test "${lt_cv_path_NM+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 if test -n "$NM"; then
7101 # Let the user override the test.
7102 lt_cv_path_NM="$NM"
7103else
7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7106 IFS="$lt_save_ifs"
7107 test -z "$ac_dir" && ac_dir=.
7108 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7110 # Check to see if the nm accepts a BSD-compat flag.
7111 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7112 # nm: unknown option "B" ignored
7113 # Tru64's nm complains that /dev/null is an invalid object file
7114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7115 */dev/null* | *'Invalid file or object type'*)
7116 lt_cv_path_NM="$tmp_nm -B"
7117 break
7118 ;;
7119 *)
7120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7121 */dev/null*)
7122 lt_cv_path_NM="$tmp_nm -p"
7123 break
7124 ;;
7125 *)
7126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7127 continue # so that we can try to find one that supports BSD flags
7128 ;;
7129 esac
7130 esac
7131 fi
7132 done
7133 IFS="$lt_save_ifs"
7134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7135fi
7136fi
7137echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7138echo "${ECHO_T}$lt_cv_path_NM" >&6
7139NM="$lt_cv_path_NM"
7140
7141
7142
7143
7144
7145# Check for command to grab the raw symbol name followed by C symbol from nm.
7146echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7147echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7148if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151
7152# These are sane defaults that work on at least a few old systems.
7153# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7154
7155# Character class describing NM global symbol codes.
7156symcode='[BCDEGRST]'
7157
7158# Regexp to match symbols that can be accessed directly from C.
7159sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7160
7161# Transform the above into a raw symbol and a C symbol.
7162symxfrm='\1 \2\3 \3'
7163
7164# Transform an extracted symbol line into a proper C declaration
7165lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7166
7167# Transform an extracted symbol line into symbol name and symbol address
7168lt_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'"
7169
7170# Define system-specific variables.
7171case $host_os in
7172aix*)
7173 symcode='[BCDT]'
7174 ;;
7175cygwin* | mingw* | pw32*)
7176 symcode='[ABCDGISTW]'
7177 ;;
7178hpux*) # Its linker distinguishes data from code symbols
7179 if test "$host_cpu" = ia64; then
7180 symcode='[ABCDEGRST]'
7181 fi
7182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7183 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'"
7184 ;;
7185linux*)
7186 if test "$host_cpu" = ia64; then
7187 symcode='[ABCDGIRSTW]'
7188 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7189 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'"
7190 fi
7191 ;;
7192irix* | nonstopux*)
7193 symcode='[BCDEGRST]'
7194 ;;
7195osf*)
7196 symcode='[BCDEGQRST]'
7197 ;;
7198solaris* | sysv5*)
7199 symcode='[BDRT]'
7200 ;;
7201sysv4)
7202 symcode='[DFNSTU]'
7203 ;;
7204esac
7205
7206# Handle CRLF in mingw tool chain
7207opt_cr=
7208case $build_os in
7209mingw*)
7210 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7211 ;;
7212esac
7213
7214# If we're using GNU nm, then use its standard symbol codes.
7215case `$NM -V 2>&1` in
7216*GNU* | *'with BFD'*)
7217 symcode='[ABCDGIRSTW]' ;;
7218esac
7219
7220# Try without a prefix undercore, then with it.
7221for ac_symprfx in "" "_"; do
7222
7223 # Write the raw and C identifiers.
7224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7225
7226 # Check to see that the pipe works correctly.
7227 pipe_works=no
7228
7229 rm -f conftest*
7230 cat > conftest.$ac_ext <<EOF
7231#ifdef __cplusplus
7232extern "C" {
7233#endif
7234char nm_test_var;
7235void nm_test_func(){}
7236#ifdef __cplusplus
7237}
7238#endif
7239int main(){nm_test_var='a';nm_test_func();return(0);}
7240EOF
7241
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; then
7247 # Now try to grab the symbols.
7248 nlist=conftest.nm
7249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } && test -s "$nlist"; then
7254 # Try sorting and uniquifying the output.
7255 if sort "$nlist" | uniq > "$nlist"T; then
7256 mv -f "$nlist"T "$nlist"
7257 else
7258 rm -f "$nlist"T
7259 fi
7260
7261 # Make sure that we snagged all the symbols we need.
7262 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7263 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7264 cat <<EOF > conftest.$ac_ext
7265#ifdef __cplusplus
7266extern "C" {
7267#endif
7268
7269EOF
7270 # Now generate the symbol file.
7271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7272
7273 cat <<EOF >> conftest.$ac_ext
7274#if defined (__STDC__) && __STDC__
7275# define lt_ptr_t void *
7276#else
7277# define lt_ptr_t char *
7278# define const
7279#endif
7280
7281/* The mapping between symbol names and symbols. */
7282const struct {
7283 const char *name;
7284 lt_ptr_t address;
7285}
7286lt_preloaded_symbols[] =
7287{
7288EOF
7289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7290 cat <<\EOF >> conftest.$ac_ext
7291 {0, (lt_ptr_t) 0}
7292};
7293
7294#ifdef __cplusplus
7295}
7296#endif
7297EOF
7298 # Now try linking the two files.
7299 mv conftest.$ac_objext conftstm.$ac_objext
7300 lt_save_LIBS="$LIBS"
7301 lt_save_CFLAGS="$CFLAGS"
7302 LIBS="conftstm.$ac_objext"
7303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7309 pipe_works=yes
7310 fi
7311 LIBS="$lt_save_LIBS"
7312 CFLAGS="$lt_save_CFLAGS"
7313 else
7314 echo "cannot find nm_test_func in $nlist" >&5
7315 fi
7316 else
7317 echo "cannot find nm_test_var in $nlist" >&5
7318 fi
7319 else
7320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7321 fi
7322 else
7323 echo "$progname: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 fi
7326 rm -f conftest* conftst*
7327
7328 # Do not use the global_symbol_pipe unless it works.
7329 if test "$pipe_works" = yes; then
7330 break
7331 else
7332 lt_cv_sys_global_symbol_pipe=
7333 fi
7334done
7335
7336fi
7337
7338if test -z "$lt_cv_sys_global_symbol_pipe"; then
7339 lt_cv_sys_global_symbol_to_cdecl=
7340fi
7341if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7342 echo "$as_me:$LINENO: result: failed" >&5
7343echo "${ECHO_T}failed" >&6
7344else
7345 echo "$as_me:$LINENO: result: ok" >&5
7346echo "${ECHO_T}ok" >&6
7347fi
7348
7349
7350echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7351echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7352if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7356 libltdl_cv_preloaded_symbols=yes
7357 else
7358 libltdl_cv_preloaded_symbols=no
7359 fi
7360
7361fi
7362echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7363echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7364if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7365
7366cat >>confdefs.h <<\_ACEOF
7367#define HAVE_PRELOADED_SYMBOLS 1
7368_ACEOF
7369
7370fi
7371
7372LIBADD_DL=
7373
7374ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381echo "$as_me:$LINENO: checking for shl_load" >&5
7382echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7383if test "${ac_cv_func_shl_load+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h. */
7392/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7394#define shl_load innocuous_shl_load
7395
7396/* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char shl_load (); below.
7398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 <limits.h> exists even on freestanding compilers. */
7400
7401#ifdef __STDC__
7402# include <limits.h>
7403#else
7404# include <assert.h>
7405#endif
7406
7407#undef shl_load
7408
7409/* Override any gcc2 internal prototype to avoid an error. */
7410#ifdef __cplusplus
7411extern "C"
7412{
7413#endif
7414/* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7416char shl_load ();
7417/* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420#if defined (__stub_shl_load) || defined (__stub___shl_load)
7421choke me
7422#else
7423char (*f) () = shl_load;
7424#endif
7425#ifdef __cplusplus
7426}
7427#endif
7428
7429int
7430main ()
7431{
7432return f != shl_load;
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437rm -f conftest.$ac_objext conftest$ac_exeext
7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_c_werror_flag"
7447 || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_func_shl_load=yes
7460else
7461 echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
7464ac_cv_func_shl_load=no
7465fi
7466rm -f conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7468fi
7469echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7470echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7471if test $ac_cv_func_shl_load = yes; then
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define HAVE_SHL_LOAD 1
7475_ACEOF
7476
7477else
7478 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7479echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7480if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 ac_check_lib_save_LIBS=$LIBS
7484LIBS="-ldld $LIBS"
7485cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h. */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h. */
7491
7492/* Override any gcc2 internal prototype to avoid an error. */
7493#ifdef __cplusplus
7494extern "C"
7495#endif
7496/* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7498char shl_load ();
7499int
7500main ()
7501{
7502shl_load ();
7503 ;
7504 return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext conftest$ac_exeext
7508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_dld_shl_load=yes
7530else
7531 echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534ac_cv_lib_dld_shl_load=no
7535fi
7536rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538LIBS=$ac_check_lib_save_LIBS
7539fi
7540echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7541echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7542if test $ac_cv_lib_dld_shl_load = yes; then
7543
7544cat >>confdefs.h <<\_ACEOF
7545#define HAVE_SHL_LOAD 1
7546_ACEOF
7547
7548 LIBADD_DL="$LIBADD_DL -ldld"
7549else
7550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7551echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7552if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-ldl $LIBS"
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
7563
7564/* Override any gcc2 internal prototype to avoid an error. */
7565#ifdef __cplusplus
7566extern "C"
7567#endif
7568/* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570char dlopen ();
7571int
7572main ()
7573{
7574dlopen ();
7575 ;
7576 return 0;
7577}
7578_ACEOF
7579rm -f conftest.$ac_objext conftest$ac_exeext
7580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -z "$ac_c_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_dl_dlopen=yes
7602else
7603 echo "$as_me: failed program was:" >&5
7604sed 's/^/| /' conftest.$ac_ext >&5
7605
7606ac_cv_lib_dl_dlopen=no
7607fi
7608rm -f conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610LIBS=$ac_check_lib_save_LIBS
7611fi
7612echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7614if test $ac_cv_lib_dl_dlopen = yes; then
7615
7616cat >>confdefs.h <<\_ACEOF
7617#define HAVE_LIBDL 1
7618_ACEOF
7619
7620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7621else
7622 cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628#if HAVE_DLFCN_H
7629# include <dlfcn.h>
7630#endif
7631
7632int
7633main ()
7634{
7635dlopen(0, 0);
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
7641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662
7663cat >>confdefs.h <<\_ACEOF
7664#define HAVE_LIBDL 1
7665_ACEOF
7666 libltdl_cv_func_dlopen="yes"
7667else
7668 echo "$as_me: failed program was:" >&5
7669sed 's/^/| /' conftest.$ac_ext >&5
7670
7671echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7672echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7673if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676 ac_check_lib_save_LIBS=$LIBS
7677LIBS="-lsvld $LIBS"
7678cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h. */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h. */
7684
7685/* Override any gcc2 internal prototype to avoid an error. */
7686#ifdef __cplusplus
7687extern "C"
7688#endif
7689/* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7691char dlopen ();
7692int
7693main ()
7694{
7695dlopen ();
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700rm -f conftest.$ac_objext conftest$ac_exeext
7701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag"
7710 || test ! -s conftest.err'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; } &&
7716 { ac_try='test -s conftest$ac_exeext'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 ac_cv_lib_svld_dlopen=yes
7723else
7724 echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727ac_cv_lib_svld_dlopen=no
7728fi
7729rm -f conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731LIBS=$ac_check_lib_save_LIBS
7732fi
7733echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7734echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7735if test $ac_cv_lib_svld_dlopen = yes; then
7736
7737cat >>confdefs.h <<\_ACEOF
7738#define HAVE_LIBDL 1
7739_ACEOF
7740
7741 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7742else
7743 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7744echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7745if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 ac_check_lib_save_LIBS=$LIBS
7749LIBS="-ldld $LIBS"
7750cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756
7757/* Override any gcc2 internal prototype to avoid an error. */
7758#ifdef __cplusplus
7759extern "C"
7760#endif
7761/* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7763char dld_link ();
7764int
7765main ()
7766{
7767dld_link ();
7768 ;
7769 return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext conftest$ac_exeext
7773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag"
7782 || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_lib_dld_dld_link=yes
7795else
7796 echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
7799ac_cv_lib_dld_dld_link=no
7800fi
7801rm -f conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803LIBS=$ac_check_lib_save_LIBS
7804fi
7805echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7806echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7807if test $ac_cv_lib_dld_dld_link = yes; then
7808
7809cat >>confdefs.h <<\_ACEOF
7810#define HAVE_DLD 1
7811_ACEOF
7812
7813 LIBADD_DL="$LIBADD_DL -ldld"
7814else
7815 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7816echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7817if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820 cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
7826/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7828#define _dyld_func_lookup innocuous__dyld_func_lookup
7829
7830/* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char _dyld_func_lookup (); below.
7832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833 <limits.h> exists even on freestanding compilers. */
7834
7835#ifdef __STDC__
7836# include <limits.h>
7837#else
7838# include <assert.h>
7839#endif
7840
7841#undef _dyld_func_lookup
7842
7843/* Override any gcc2 internal prototype to avoid an error. */
7844#ifdef __cplusplus
7845extern "C"
7846{
7847#endif
7848/* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7850char _dyld_func_lookup ();
7851/* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7855choke me
7856#else
7857char (*f) () = _dyld_func_lookup;
7858#endif
7859#ifdef __cplusplus
7860}
7861#endif
7862
7863int
7864main ()
7865{
7866return f != _dyld_func_lookup;
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_func__dyld_func_lookup=yes
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898ac_cv_func__dyld_func_lookup=no
7899fi
7900rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902fi
7903echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7904echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7905if test $ac_cv_func__dyld_func_lookup = yes; then
7906
7907cat >>confdefs.h <<\_ACEOF
7908#define HAVE_DYLD 1
7909_ACEOF
7910
7911fi
7912
7913
7914fi
7915
7916
7917fi
7918
7919
7920fi
7921rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923
7924fi
7925
7926
7927fi
7928
7929
7930fi
7931
7932
7933if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7934then
7935 lt_save_LIBS="$LIBS"
7936 LIBS="$LIBS $LIBADD_DL"
7937
7938for ac_func in dlerror
7939do
7940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7941echo "$as_me:$LINENO: checking for $ac_func" >&5
7942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7943if eval "test \"\${$as_ac_var+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7954#define $ac_func innocuous_$ac_func
7955
7956/* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char $ac_func (); below.
7958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959 <limits.h> exists even on freestanding compilers. */
7960
7961#ifdef __STDC__
7962# include <limits.h>
7963#else
7964# include <assert.h>
7965#endif
7966
7967#undef $ac_func
7968
7969/* Override any gcc2 internal prototype to avoid an error. */
7970#ifdef __cplusplus
7971extern "C"
7972{
7973#endif
7974/* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976char $ac_func ();
7977/* The GNU C library defines this for functions which it implements
7978 to always fail with ENOSYS. Some functions are actually named
7979 something starting with __ and the normal name is an alias. */
7980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7981choke me
7982#else
7983char (*f) () = $ac_func;
7984#endif
7985#ifdef __cplusplus
7986}
7987#endif
7988
7989int
7990main ()
7991{
7992return f != $ac_func;
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997rm -f conftest.$ac_objext conftest$ac_exeext
7998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 eval "$as_ac_var=yes"
8020else
8021 echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024eval "$as_ac_var=no"
8025fi
8026rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028fi
8029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034_ACEOF
8035
8036fi
8037done
8038
8039 LIBS="$lt_save_LIBS"
8040fi
8041ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048
8049echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8050echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8051if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 ac_cv_sys_symbol_underscore=no
8055 cat > conftest.$ac_ext <<EOF
8056void nm_test_func(){}
8057int main(){nm_test_func;return 0;}
8058EOF
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; then
8064 # Now try to grab the symbols.
8065 ac_nlist=conftest.nm
8066 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8067 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && test -s "$ac_nlist"; then
8071 # See whether the symbols have a leading underscore.
8072 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8073 ac_cv_sys_symbol_underscore=yes
8074 else
8075 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8076 :
8077 else
8078 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8079 fi
8080 fi
8081 else
8082 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8083 fi
8084 else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.c >&5
8087 fi
8088 rm -rf conftest*
8089
8090fi
8091echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8092echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8093
8094
8095if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8096 if test x"$libltdl_cv_func_dlopen" = xyes ||
8097 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8098 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8099echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8100if test "${libltdl_cv_need_uscore+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103 libltdl_cv_need_uscore=unknown
8104 save_LIBS="$LIBS"
8105 LIBS="$LIBS $LIBADD_DL"
8106 if test "$cross_compiling" = yes; then :
8107 libltdl_cv_need_uscore=cross
8108else
8109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8110 lt_status=$lt_dlunknown
8111 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +00008112#line 8112 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008113#include "confdefs.h"
8114
8115#if HAVE_DLFCN_H
8116#include <dlfcn.h>
8117#endif
8118
8119#include <stdio.h>
8120
8121#ifdef RTLD_GLOBAL
8122# define LT_DLGLOBAL RTLD_GLOBAL
8123#else
8124# ifdef DL_GLOBAL
8125# define LT_DLGLOBAL DL_GLOBAL
8126# else
8127# define LT_DLGLOBAL 0
8128# endif
8129#endif
8130
8131/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8132 find out it does not work in some platform. */
8133#ifndef LT_DLLAZY_OR_NOW
8134# ifdef RTLD_LAZY
8135# define LT_DLLAZY_OR_NOW RTLD_LAZY
8136# else
8137# ifdef DL_LAZY
8138# define LT_DLLAZY_OR_NOW DL_LAZY
8139# else
8140# ifdef RTLD_NOW
8141# define LT_DLLAZY_OR_NOW RTLD_NOW
8142# else
8143# ifdef DL_NOW
8144# define LT_DLLAZY_OR_NOW DL_NOW
8145# else
8146# define LT_DLLAZY_OR_NOW 0
8147# endif
8148# endif
8149# endif
8150# endif
8151#endif
8152
8153#ifdef __cplusplus
8154extern "C" void exit (int);
8155#endif
8156
8157void fnord() { int i=42;}
8158int main ()
8159{
8160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8161 int status = $lt_dlunknown;
8162
8163 if (self)
8164 {
8165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8167 /* dlclose (self); */
8168 }
8169
8170 exit (status);
8171}
8172EOF
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8178 (./conftest; exit; ) 2>/dev/null
8179 lt_status=$?
8180 case x$lt_status in
8181 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8182 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8183 x$lt_unknown|x*) ;;
8184 esac
8185 else :
8186 # compilation failed
8187
8188 fi
8189fi
8190rm -fr conftest*
8191
8192 LIBS="$save_LIBS"
8193
8194fi
8195echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8196echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8197 fi
8198fi
8199
8200if test x"$libltdl_cv_need_uscore" = xyes; then
8201
8202cat >>confdefs.h <<\_ACEOF
8203#define NEED_USCORE 1
8204_ACEOF
8205
8206fi
8207
8208
8209echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8210echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8211if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214 # PORTME does your system automatically load deplibs for dlopen?
8215 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8216 # For now, we just catch OSes we know something about -- in the
8217 # future, we'll try test this programmatically.
8218 libltdl_cv_sys_dlopen_deplibs=unknown
8219 case "$host_os" in
8220 aix3*|aix4.1.*|aix4.2.*)
8221 # Unknown whether this is true for these versions of AIX, but
8222 # we want this `case' here to explicitly catch those versions.
8223 libltdl_cv_sys_dlopen_deplibs=unknown
8224 ;;
8225 aix[45]*)
8226 libltdl_cv_sys_dlopen_deplibs=yes
8227 ;;
8228 darwin*)
8229 # Assuming the user has installed a libdl from somewhere, this is true
8230 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8231 libltdl_cv_sys_dlopen_deplibs=yes
8232 ;;
8233 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8234 # GNU and its variants, using gnu ld.so (Glibc)
8235 libltdl_cv_sys_dlopen_deplibs=yes
8236 ;;
8237 hpux10*|hpux11*)
8238 libltdl_cv_sys_dlopen_deplibs=yes
8239 ;;
8240 irix[12345]*|irix6.[01]*)
8241 # Catch all versions of IRIX before 6.2, and indicate that we don't
8242 # know how it worked for any of those versions.
8243 libltdl_cv_sys_dlopen_deplibs=unknown
8244 ;;
8245 irix*)
8246 # The case above catches anything before 6.2, and it's known that
8247 # at 6.2 and later dlopen does load deplibs.
8248 libltdl_cv_sys_dlopen_deplibs=yes
8249 ;;
8250 netbsd*)
8251 libltdl_cv_sys_dlopen_deplibs=yes
8252 ;;
8253 openbsd*)
8254 libltdl_cv_sys_dlopen_deplibs=yes
8255 ;;
8256 osf[1234]*)
8257 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8258 # it did *not* use an RPATH in a shared library to find objects the
8259 # library depends on, so we explictly say `no'.
8260 libltdl_cv_sys_dlopen_deplibs=no
8261 ;;
8262 osf5.0|osf5.0a|osf5.1)
8263 # dlopen *does* load deplibs and with the right loader patch applied
8264 # it even uses RPATH in a shared library to search for shared objects
8265 # that the library depends on, but there's no easy way to know if that
8266 # patch is installed. Since this is the case, all we can really
8267 # say is unknown -- it depends on the patch being installed. If
8268 # it is, this changes to `yes'. Without it, it would be `no'.
8269 libltdl_cv_sys_dlopen_deplibs=unknown
8270 ;;
8271 osf*)
8272 # the two cases above should catch all versions of osf <= 5.1. Read
8273 # the comments above for what we know about them.
8274 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8275 # is used to find them so we can finally say `yes'.
8276 libltdl_cv_sys_dlopen_deplibs=yes
8277 ;;
8278 solaris*)
8279 libltdl_cv_sys_dlopen_deplibs=yes
8280 ;;
8281 esac
8282
8283fi
8284echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8285echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8286if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8287
8288cat >>confdefs.h <<\_ACEOF
8289#define LTDL_DLOPEN_DEPLIBS 1
8290_ACEOF
8291
8292fi
8293
8294
8295for ac_header in argz.h
8296do
8297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299 echo "$as_me:$LINENO: checking for $ac_header" >&5
8300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8301if eval "test \"\${$as_ac_Header+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303fi
8304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8306else
8307 # Is the header compilable?
8308echo "$as_me:$LINENO: checking $ac_header usability" >&5
8309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8310cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
8316$ac_includes_default
8317#include <$ac_header>
8318_ACEOF
8319rm -f conftest.$ac_objext
8320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_header_compiler=yes
8342else
8343 echo "$as_me: failed program was:" >&5
8344sed 's/^/| /' conftest.$ac_ext >&5
8345
8346ac_header_compiler=no
8347fi
8348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350echo "${ECHO_T}$ac_header_compiler" >&6
8351
8352# Is the header present?
8353echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8355cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361#include <$ac_header>
8362_ACEOF
8363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } >/dev/null; then
8371 if test -s conftest.err; then
8372 ac_cpp_err=$ac_c_preproc_warn_flag
8373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8374 else
8375 ac_cpp_err=
8376 fi
8377else
8378 ac_cpp_err=yes
8379fi
8380if test -z "$ac_cpp_err"; then
8381 ac_header_preproc=yes
8382else
8383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 ac_header_preproc=no
8387fi
8388rm -f conftest.err conftest.$ac_ext
8389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8390echo "${ECHO_T}$ac_header_preproc" >&6
8391
8392# So? What about this header?
8393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8394 yes:no: )
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8399 ac_header_preproc=yes
8400 ;;
8401 no:yes:* )
8402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8414 (
8415 cat <<\_ASBOX
8416## ----------------------------------- ##
8417## Report this to llvmbugs@cs.uiuc.edu ##
8418## ----------------------------------- ##
8419_ASBOX
8420 ) |
8421 sed "s/^/$as_me: WARNING: /" >&2
8422 ;;
8423esac
8424echo "$as_me:$LINENO: checking for $ac_header" >&5
8425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 eval "$as_ac_Header=\$ac_header_preproc"
8430fi
8431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433
8434fi
8435if test `eval echo '${'$as_ac_Header'}'` = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8438_ACEOF
8439
8440fi
8441
8442done
8443
8444
8445echo "$as_me:$LINENO: checking for error_t" >&5
8446echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8447if test "${ac_cv_type_error_t+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450 cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h. */
8456#if HAVE_ARGZ_H
8457# include <argz.h>
8458#endif
8459
8460int
8461main ()
8462{
8463if ((error_t *) 0)
8464 return 0;
8465if (sizeof (error_t))
8466 return 0;
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext
8472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_type_error_t=yes
8494else
8495 echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498ac_cv_type_error_t=no
8499fi
8500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8501fi
8502echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8503echo "${ECHO_T}$ac_cv_type_error_t" >&6
8504if test $ac_cv_type_error_t = yes; then
8505
8506cat >>confdefs.h <<_ACEOF
8507#define HAVE_ERROR_T 1
8508_ACEOF
8509
8510
8511else
8512
8513cat >>confdefs.h <<\_ACEOF
8514#define error_t int
8515_ACEOF
8516
8517fi
8518
8519
8520
8521
8522
8523
8524
8525for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8526do
8527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528echo "$as_me:$LINENO: checking for $ac_func" >&5
8529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8530if eval "test \"\${$as_ac_var+set}\" = set"; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541#define $ac_func innocuous_$ac_func
8542
8543/* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char $ac_func (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8547
8548#ifdef __STDC__
8549# include <limits.h>
8550#else
8551# include <assert.h>
8552#endif
8553
8554#undef $ac_func
8555
8556/* Override any gcc2 internal prototype to avoid an error. */
8557#ifdef __cplusplus
8558extern "C"
8559{
8560#endif
8561/* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8563char $ac_func ();
8564/* The GNU C library defines this for functions which it implements
8565 to always fail with ENOSYS. Some functions are actually named
8566 something starting with __ and the normal name is an alias. */
8567#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8568choke me
8569#else
8570char (*f) () = $ac_func;
8571#endif
8572#ifdef __cplusplus
8573}
8574#endif
8575
8576int
8577main ()
8578{
8579return f != $ac_func;
8580 ;
8581 return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext conftest$ac_exeext
8585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 eval "$as_ac_var=yes"
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611eval "$as_ac_var=no"
8612fi
8613rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615fi
8616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8617echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8618if test `eval echo '${'$as_ac_var'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8621_ACEOF
8622
8623fi
8624done
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8654 stdio.h unistd.h
8655do
8656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662fi
8663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665else
8666 # Is the header compilable?
8667echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675$ac_includes_default
8676#include <$ac_header>
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_header_compiler=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705ac_header_compiler=no
8706fi
8707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709echo "${ECHO_T}$ac_header_compiler" >&6
8710
8711# Is the header present?
8712echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714cat >conftest.$ac_ext <<_ACEOF
8715/* confdefs.h. */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h. */
8720#include <$ac_header>
8721_ACEOF
8722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } >/dev/null; then
8730 if test -s conftest.err; then
8731 ac_cpp_err=$ac_c_preproc_warn_flag
8732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733 else
8734 ac_cpp_err=
8735 fi
8736else
8737 ac_cpp_err=yes
8738fi
8739if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8741else
8742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_header_preproc=no
8746fi
8747rm -f conftest.err conftest.$ac_ext
8748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751# So? What about this header?
8752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753 yes:no: )
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
8759 ;;
8760 no:yes:* )
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773 (
8774 cat <<\_ASBOX
8775## ----------------------------------- ##
8776## Report this to llvmbugs@cs.uiuc.edu ##
8777## ----------------------------------- ##
8778_ASBOX
8779 ) |
8780 sed "s/^/$as_me: WARNING: /" >&2
8781 ;;
8782esac
8783echo "$as_me:$LINENO: checking for $ac_header" >&5
8784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else
8788 eval "$as_ac_Header=\$ac_header_preproc"
8789fi
8790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
8793fi
8794if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797_ACEOF
8798
8799fi
8800
8801done
8802
8803
8804
8805
8806
8807for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8808do
8809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810if eval "test \"\${$as_ac_Header+set}\" = set"; then
8811 echo "$as_me:$LINENO: checking for $ac_header" >&5
8812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815fi
8816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8818else
8819 # Is the header compilable?
8820echo "$as_me:$LINENO: checking $ac_header usability" >&5
8821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828$ac_includes_default
8829#include <$ac_header>
8830_ACEOF
8831rm -f conftest.$ac_objext
8832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_header_compiler=yes
8854else
8855 echo "$as_me: failed program was:" >&5
8856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858ac_header_compiler=no
8859fi
8860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862echo "${ECHO_T}$ac_header_compiler" >&6
8863
8864# Is the header present?
8865echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h. */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h. */
8873#include <$ac_header>
8874_ACEOF
8875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886 else
8887 ac_cpp_err=
8888 fi
8889else
8890 ac_cpp_err=yes
8891fi
8892if test -z "$ac_cpp_err"; then
8893 ac_header_preproc=yes
8894else
8895 echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 ac_header_preproc=no
8899fi
8900rm -f conftest.err conftest.$ac_ext
8901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902echo "${ECHO_T}$ac_header_preproc" >&6
8903
8904# So? What about this header?
8905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8906 yes:no: )
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8911 ac_header_preproc=yes
8912 ;;
8913 no:yes:* )
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8926 (
8927 cat <<\_ASBOX
8928## ----------------------------------- ##
8929## Report this to llvmbugs@cs.uiuc.edu ##
8930## ----------------------------------- ##
8931_ASBOX
8932 ) |
8933 sed "s/^/$as_me: WARNING: /" >&2
8934 ;;
8935esac
8936echo "$as_me:$LINENO: checking for $ac_header" >&5
8937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8938if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 eval "$as_ac_Header=\$ac_header_preproc"
8942fi
8943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8945
8946fi
8947if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950_ACEOF
8951
8952fi
8953
8954done
8955
8956
8957
8958for ac_header in string.h strings.h
8959do
8960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8961if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962 echo "$as_me:$LINENO: checking for $ac_header" >&5
8963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8964if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966fi
8967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8969else
8970 # Is the header compilable?
8971echo "$as_me:$LINENO: checking $ac_header usability" >&5
8972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8973cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979$ac_includes_default
8980#include <$ac_header>
8981_ACEOF
8982rm -f conftest.$ac_objext
8983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler=yes
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009ac_header_compiler=no
9010fi
9011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013echo "${ECHO_T}$ac_header_compiler" >&6
9014
9015# Is the header present?
9016echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
9024#include <$ac_header>
9025_ACEOF
9026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } >/dev/null; then
9034 if test -s conftest.err; then
9035 ac_cpp_err=$ac_c_preproc_warn_flag
9036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9037 else
9038 ac_cpp_err=
9039 fi
9040else
9041 ac_cpp_err=yes
9042fi
9043if test -z "$ac_cpp_err"; then
9044 ac_header_preproc=yes
9045else
9046 echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_header_preproc=no
9050fi
9051rm -f conftest.err conftest.$ac_ext
9052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053echo "${ECHO_T}$ac_header_preproc" >&6
9054
9055# So? What about this header?
9056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9057 yes:no: )
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9062 ac_header_preproc=yes
9063 ;;
9064 no:yes:* )
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9077 (
9078 cat <<\_ASBOX
9079## ----------------------------------- ##
9080## Report this to llvmbugs@cs.uiuc.edu ##
9081## ----------------------------------- ##
9082_ASBOX
9083 ) |
9084 sed "s/^/$as_me: WARNING: /" >&2
9085 ;;
9086esac
9087echo "$as_me:$LINENO: checking for $ac_header" >&5
9088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9089if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 eval "$as_ac_Header=\$ac_header_preproc"
9093fi
9094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9096
9097fi
9098if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099 cat >>confdefs.h <<_ACEOF
9100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101_ACEOF
9102 break
9103fi
9104
9105done
9106
9107
9108
9109
9110for ac_func in strchr index
9111do
9112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113echo "$as_me:$LINENO: checking for $ac_func" >&5
9114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115if eval "test \"\${$as_ac_var+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117else
9118 cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9126#define $ac_func innocuous_$ac_func
9127
9128/* System header to define __stub macros and hopefully few prototypes,
9129 which can conflict with char $ac_func (); below.
9130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 <limits.h> exists even on freestanding compilers. */
9132
9133#ifdef __STDC__
9134# include <limits.h>
9135#else
9136# include <assert.h>
9137#endif
9138
9139#undef $ac_func
9140
9141/* Override any gcc2 internal prototype to avoid an error. */
9142#ifdef __cplusplus
9143extern "C"
9144{
9145#endif
9146/* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148char $ac_func ();
9149/* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
9152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9153choke me
9154#else
9155char (*f) () = $ac_func;
9156#endif
9157#ifdef __cplusplus
9158}
9159#endif
9160
9161int
9162main ()
9163{
9164return f != $ac_func;
9165 ;
9166 return 0;
9167}
9168_ACEOF
9169rm -f conftest.$ac_objext conftest$ac_exeext
9170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171 (eval $ac_link) 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 eval "$as_ac_var=yes"
9192else
9193 echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196eval "$as_ac_var=no"
9197fi
9198rm -f conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200fi
9201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9203if test `eval echo '${'$as_ac_var'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9206_ACEOF
9207 break
9208fi
9209done
9210
9211
9212
9213for ac_func in strrchr rindex
9214do
9215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9216echo "$as_me:$LINENO: checking for $ac_func" >&5
9217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9218if eval "test \"\${$as_ac_var+set}\" = set"; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220else
9221 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229#define $ac_func innocuous_$ac_func
9230
9231/* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char $ac_func (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9235
9236#ifdef __STDC__
9237# include <limits.h>
9238#else
9239# include <assert.h>
9240#endif
9241
9242#undef $ac_func
9243
9244/* Override any gcc2 internal prototype to avoid an error. */
9245#ifdef __cplusplus
9246extern "C"
9247{
9248#endif
9249/* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9251char $ac_func ();
9252/* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9256choke me
9257#else
9258char (*f) () = $ac_func;
9259#endif
9260#ifdef __cplusplus
9261}
9262#endif
9263
9264int
9265main ()
9266{
9267return f != $ac_func;
9268 ;
9269 return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext conftest$ac_exeext
9273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 eval "$as_ac_var=yes"
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
9299eval "$as_ac_var=no"
9300fi
9301rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303fi
9304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9306if test `eval echo '${'$as_ac_var'}'` = yes; then
9307 cat >>confdefs.h <<_ACEOF
9308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9309_ACEOF
9310 break
9311fi
9312done
9313
9314
9315
9316for ac_func in memcpy bcopy
9317do
9318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319echo "$as_me:$LINENO: checking for $ac_func" >&5
9320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9321if eval "test \"\${$as_ac_var+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323else
9324 cat >conftest.$ac_ext <<_ACEOF
9325/* confdefs.h. */
9326_ACEOF
9327cat confdefs.h >>conftest.$ac_ext
9328cat >>conftest.$ac_ext <<_ACEOF
9329/* end confdefs.h. */
9330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9332#define $ac_func innocuous_$ac_func
9333
9334/* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char $ac_func (); below.
9336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9337 <limits.h> exists even on freestanding compilers. */
9338
9339#ifdef __STDC__
9340# include <limits.h>
9341#else
9342# include <assert.h>
9343#endif
9344
9345#undef $ac_func
9346
9347/* Override any gcc2 internal prototype to avoid an error. */
9348#ifdef __cplusplus
9349extern "C"
9350{
9351#endif
9352/* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9354char $ac_func ();
9355/* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9359choke me
9360#else
9361char (*f) () = $ac_func;
9362#endif
9363#ifdef __cplusplus
9364}
9365#endif
9366
9367int
9368main ()
9369{
9370return f != $ac_func;
9371 ;
9372 return 0;
9373}
9374_ACEOF
9375rm -f conftest.$ac_objext conftest$ac_exeext
9376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 eval "$as_ac_var=yes"
9398else
9399 echo "$as_me: failed program was:" >&5
9400sed 's/^/| /' conftest.$ac_ext >&5
9401
9402eval "$as_ac_var=no"
9403fi
9404rm -f conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406fi
9407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9409if test `eval echo '${'$as_ac_var'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9412_ACEOF
9413 break
9414fi
9415done
9416
9417
9418
9419for ac_func in memmove strcmp
9420do
9421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422echo "$as_me:$LINENO: checking for $ac_func" >&5
9423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9424if eval "test \"\${$as_ac_var+set}\" = set"; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426else
9427 cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
9433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9435#define $ac_func innocuous_$ac_func
9436
9437/* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char $ac_func (); below.
9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440 <limits.h> exists even on freestanding compilers. */
9441
9442#ifdef __STDC__
9443# include <limits.h>
9444#else
9445# include <assert.h>
9446#endif
9447
9448#undef $ac_func
9449
9450/* Override any gcc2 internal prototype to avoid an error. */
9451#ifdef __cplusplus
9452extern "C"
9453{
9454#endif
9455/* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457char $ac_func ();
9458/* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9462choke me
9463#else
9464char (*f) () = $ac_func;
9465#endif
9466#ifdef __cplusplus
9467}
9468#endif
9469
9470int
9471main ()
9472{
9473return f != $ac_func;
9474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
9479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 eval "$as_ac_var=yes"
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505eval "$as_ac_var=no"
9506fi
9507rm -f conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509fi
9510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9512if test `eval echo '${'$as_ac_var'}'` = yes; then
9513 cat >>confdefs.h <<_ACEOF
9514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9515_ACEOF
9516
9517fi
9518done
9519
9520
9521
9522
9523for ac_func in closedir opendir readdir
9524do
9525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9526echo "$as_me:$LINENO: checking for $ac_func" >&5
9527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9528if eval "test \"\${$as_ac_var+set}\" = set"; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530else
9531 cat >conftest.$ac_ext <<_ACEOF
9532/* confdefs.h. */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h. */
9537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9539#define $ac_func innocuous_$ac_func
9540
9541/* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char $ac_func (); below.
9543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 <limits.h> exists even on freestanding compilers. */
9545
9546#ifdef __STDC__
9547# include <limits.h>
9548#else
9549# include <assert.h>
9550#endif
9551
9552#undef $ac_func
9553
9554/* Override any gcc2 internal prototype to avoid an error. */
9555#ifdef __cplusplus
9556extern "C"
9557{
9558#endif
9559/* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561char $ac_func ();
9562/* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9566choke me
9567#else
9568char (*f) () = $ac_func;
9569#endif
9570#ifdef __cplusplus
9571}
9572#endif
9573
9574int
9575main ()
9576{
9577return f != $ac_func;
9578 ;
9579 return 0;
9580}
9581_ACEOF
9582rm -f conftest.$ac_objext conftest$ac_exeext
9583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9584 (eval $ac_link) 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 eval "$as_ac_var=yes"
9605else
9606 echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
9609eval "$as_ac_var=no"
9610fi
9611rm -f conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613fi
9614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9615echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9616if test `eval echo '${'$as_ac_var'}'` = yes; then
9617 cat >>confdefs.h <<_ACEOF
9618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9619_ACEOF
9620
9621fi
9622done
9623
9624
9625# Check whether --enable-shared or --disable-shared was given.
9626if test "${enable_shared+set}" = set; then
9627 enableval="$enable_shared"
9628 p=${PACKAGE-default}
9629 case $enableval in
9630 yes) enable_shared=yes ;;
9631 no) enable_shared=no ;;
9632 *)
9633 enable_shared=no
9634 # Look at the argument we got. We use all the common list separators.
9635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9636 for pkg in $enableval; do
9637 IFS="$lt_save_ifs"
9638 if test "X$pkg" = "X$p"; then
9639 enable_shared=yes
9640 fi
9641 done
9642 IFS="$lt_save_ifs"
9643 ;;
9644 esac
9645else
9646 enable_shared=yes
9647fi;
9648
9649# Check whether --enable-static or --disable-static was given.
9650if test "${enable_static+set}" = set; then
9651 enableval="$enable_static"
9652 p=${PACKAGE-default}
9653 case $enableval in
9654 yes) enable_static=yes ;;
9655 no) enable_static=no ;;
9656 *)
9657 enable_static=no
9658 # Look at the argument we got. We use all the common list separators.
9659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9660 for pkg in $enableval; do
9661 IFS="$lt_save_ifs"
9662 if test "X$pkg" = "X$p"; then
9663 enable_static=yes
9664 fi
9665 done
9666 IFS="$lt_save_ifs"
9667 ;;
9668 esac
9669else
9670 enable_static=yes
9671fi;
9672
9673# Check whether --enable-fast-install or --disable-fast-install was given.
9674if test "${enable_fast_install+set}" = set; then
9675 enableval="$enable_fast_install"
9676 p=${PACKAGE-default}
9677 case $enableval in
9678 yes) enable_fast_install=yes ;;
9679 no) enable_fast_install=no ;;
9680 *)
9681 enable_fast_install=no
9682 # Look at the argument we got. We use all the common list separators.
9683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9684 for pkg in $enableval; do
9685 IFS="$lt_save_ifs"
9686 if test "X$pkg" = "X$p"; then
9687 enable_fast_install=yes
9688 fi
9689 done
9690 IFS="$lt_save_ifs"
9691 ;;
9692 esac
9693else
9694 enable_fast_install=yes
9695fi;
9696
9697echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9698echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9699if test "${lt_cv_path_SED+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 # Loop through the user's path and test for sed and gsed.
9703# Then use that list of sed's as ones to test for truncation.
9704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
9706do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for lt_ac_prog in sed gsed; do
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9712 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9713 fi
9714 done
9715 done
9716done
9717lt_ac_max=0
9718lt_ac_count=0
9719# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9720# along with /bin/sed that truncates output.
9721for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9722 test ! -f $lt_ac_sed && break
9723 cat /dev/null > conftest.in
9724 lt_ac_count=0
9725 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9726 # Check for GNU sed and select it if it is found.
9727 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9728 lt_cv_path_SED=$lt_ac_sed
9729 break
9730 fi
9731 while true; do
9732 cat conftest.in conftest.in >conftest.tmp
9733 mv conftest.tmp conftest.in
9734 cp conftest.in conftest.nl
9735 echo >>conftest.nl
9736 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9737 cmp -s conftest.out conftest.nl || break
9738 # 10000 chars as input seems more than enough
9739 test $lt_ac_count -gt 10 && break
9740 lt_ac_count=`expr $lt_ac_count + 1`
9741 if test $lt_ac_count -gt $lt_ac_max; then
9742 lt_ac_max=$lt_ac_count
9743 lt_cv_path_SED=$lt_ac_sed
9744 fi
9745 done
9746done
9747
9748fi
9749
9750SED=$lt_cv_path_SED
9751echo "$as_me:$LINENO: result: $SED" >&5
9752echo "${ECHO_T}$SED" >&6
9753
9754
9755# Check whether --with-gnu-ld or --without-gnu-ld was given.
9756if test "${with_gnu_ld+set}" = set; then
9757 withval="$with_gnu_ld"
9758 test "$withval" = no || with_gnu_ld=yes
9759else
9760 with_gnu_ld=no
9761fi;
9762ac_prog=ld
9763if test "$GCC" = yes; then
9764 # Check if gcc -print-prog-name=ld gives a path.
9765 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9766echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9767 case $host in
9768 *-*-mingw*)
9769 # gcc leaves a trailing carriage return which upsets mingw
9770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9771 *)
9772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9773 esac
9774 case $ac_prog in
9775 # Accept absolute paths.
9776 [\\/]* | ?:[\\/]*)
9777 re_direlt='/[^/][^/]*/\.\./'
9778 # Canonicalize the pathname of ld
9779 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9781 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9782 done
9783 test -z "$LD" && LD="$ac_prog"
9784 ;;
9785 "")
9786 # If it fails, then pretend we aren't using GCC.
9787 ac_prog=ld
9788 ;;
9789 *)
9790 # If it is relative, then search for the first ld in PATH.
9791 with_gnu_ld=unknown
9792 ;;
9793 esac
9794elif test "$with_gnu_ld" = yes; then
9795 echo "$as_me:$LINENO: checking for GNU ld" >&5
9796echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9797else
9798 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9799echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9800fi
9801if test "${lt_cv_path_LD+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 if test -z "$LD"; then
9805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9806 for ac_dir in $PATH; do
9807 IFS="$lt_save_ifs"
9808 test -z "$ac_dir" && ac_dir=.
9809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9810 lt_cv_path_LD="$ac_dir/$ac_prog"
9811 # Check to see if the program is GNU ld. I'd rather use --version,
9812 # but apparently some GNU ld's only accept -v.
9813 # Break only if it was the GNU/non-GNU ld that we prefer.
9814 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9815 *GNU* | *'with BFD'*)
9816 test "$with_gnu_ld" != no && break
9817 ;;
9818 *)
9819 test "$with_gnu_ld" != yes && break
9820 ;;
9821 esac
9822 fi
9823 done
9824 IFS="$lt_save_ifs"
9825else
9826 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9827fi
9828fi
9829
9830LD="$lt_cv_path_LD"
9831if test -n "$LD"; then
9832 echo "$as_me:$LINENO: result: $LD" >&5
9833echo "${ECHO_T}$LD" >&6
9834else
9835 echo "$as_me:$LINENO: result: no" >&5
9836echo "${ECHO_T}no" >&6
9837fi
9838test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9839echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9840 { (exit 1); exit 1; }; }
9841echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9842echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9843if test "${lt_cv_prog_gnu_ld+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845else
9846 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9847case `$LD -v 2>&1 </dev/null` in
9848*GNU* | *'with BFD'*)
9849 lt_cv_prog_gnu_ld=yes
9850 ;;
9851*)
9852 lt_cv_prog_gnu_ld=no
9853 ;;
9854esac
9855fi
9856echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9857echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9858with_gnu_ld=$lt_cv_prog_gnu_ld
9859
9860
9861echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9862echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9863if test "${lt_cv_ld_reload_flag+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 lt_cv_ld_reload_flag='-r'
9867fi
9868echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9869echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9870reload_flag=$lt_cv_ld_reload_flag
9871case $reload_flag in
9872"" | " "*) ;;
9873*) reload_flag=" $reload_flag" ;;
9874esac
9875reload_cmds='$LD$reload_flag -o $output$reload_objs'
9876case $host_os in
9877 darwin*)
9878 if test "$GCC" = yes; then
9879 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9880 else
9881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9882 fi
9883 ;;
9884esac
9885
9886echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9887echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9888if test "${lt_cv_deplibs_check_method+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891 lt_cv_file_magic_cmd='$MAGIC_CMD'
9892lt_cv_file_magic_test_file=
9893lt_cv_deplibs_check_method='unknown'
9894# Need to set the preceding variable on all platforms that support
9895# interlibrary dependencies.
9896# 'none' -- dependencies not supported.
9897# `unknown' -- same as none, but documents that we really don't know.
9898# 'pass_all' -- all dependencies passed with no checks.
9899# 'test_compile' -- check by making test program.
9900# 'file_magic [[regex]]' -- check by looking for files in library path
9901# which responds to the $file_magic_cmd with a given extended regex.
9902# If you have `file' or equivalent on your system and you're not sure
9903# whether `pass_all' will *always* work, you probably want this one.
9904
9905case $host_os in
9906aix4* | aix5*)
9907 lt_cv_deplibs_check_method=pass_all
9908 ;;
9909
9910beos*)
9911 lt_cv_deplibs_check_method=pass_all
9912 ;;
9913
9914bsdi[45]*)
9915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9916 lt_cv_file_magic_cmd='/usr/bin/file -L'
9917 lt_cv_file_magic_test_file=/shlib/libc.so
9918 ;;
9919
9920cygwin*)
9921 # func_win32_libid is a shell function defined in ltmain.sh
9922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9923 lt_cv_file_magic_cmd='func_win32_libid'
9924 ;;
9925
9926mingw* | pw32*)
9927 # Base MSYS/MinGW do not provide the 'file' command needed by
9928 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9930 lt_cv_file_magic_cmd='$OBJDUMP -f'
9931 ;;
9932
9933darwin* | rhapsody*)
9934 lt_cv_deplibs_check_method=pass_all
9935 ;;
9936
9937freebsd* | kfreebsd*-gnu)
9938 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9939 case $host_cpu in
9940 i*86 )
9941 # Not sure whether the presence of OpenBSD here was a mistake.
9942 # Let's accept both of them until this is cleared up.
9943 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9944 lt_cv_file_magic_cmd=/usr/bin/file
9945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9946 ;;
9947 esac
9948 else
9949 lt_cv_deplibs_check_method=pass_all
9950 fi
9951 ;;
9952
9953gnu*)
9954 lt_cv_deplibs_check_method=pass_all
9955 ;;
9956
9957hpux10.20* | hpux11*)
9958 lt_cv_file_magic_cmd=/usr/bin/file
9959 case "$host_cpu" in
9960 ia64*)
9961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9963 ;;
9964 hppa*64*)
9965 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]'
9966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9967 ;;
9968 *)
9969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9971 ;;
9972 esac
9973 ;;
9974
9975irix5* | irix6* | nonstopux*)
9976 case $LD in
9977 *-32|*"-32 ") libmagic=32-bit;;
9978 *-n32|*"-n32 ") libmagic=N32;;
9979 *-64|*"-64 ") libmagic=64-bit;;
9980 *) libmagic=never-match;;
9981 esac
9982 lt_cv_deplibs_check_method=pass_all
9983 ;;
9984
9985# This must be Linux ELF.
9986linux*)
9987 lt_cv_deplibs_check_method=pass_all
9988 ;;
9989
9990netbsd*)
9991 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9993 else
9994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9995 fi
9996 ;;
9997
9998newos6*)
9999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10000 lt_cv_file_magic_cmd=/usr/bin/file
10001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10002 ;;
10003
10004nto-qnx*)
10005 lt_cv_deplibs_check_method=unknown
10006 ;;
10007
10008openbsd*)
10009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10011 else
10012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10013 fi
10014 ;;
10015
10016osf3* | osf4* | osf5*)
10017 lt_cv_deplibs_check_method=pass_all
10018 ;;
10019
10020sco3.2v5*)
10021 lt_cv_deplibs_check_method=pass_all
10022 ;;
10023
10024solaris*)
10025 lt_cv_deplibs_check_method=pass_all
10026 ;;
10027
10028sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10029 case $host_vendor in
10030 motorola)
10031 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]'
10032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10033 ;;
10034 ncr)
10035 lt_cv_deplibs_check_method=pass_all
10036 ;;
10037 sequent)
10038 lt_cv_file_magic_cmd='/bin/file'
10039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10040 ;;
10041 sni)
10042 lt_cv_file_magic_cmd='/bin/file'
10043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10044 lt_cv_file_magic_test_file=/lib/libc.so
10045 ;;
10046 siemens)
10047 lt_cv_deplibs_check_method=pass_all
10048 ;;
10049 esac
10050 ;;
10051
10052sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10053 lt_cv_deplibs_check_method=pass_all
10054 ;;
10055esac
10056
10057fi
10058echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10059echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10060file_magic_cmd=$lt_cv_file_magic_cmd
10061deplibs_check_method=$lt_cv_deplibs_check_method
10062test -z "$deplibs_check_method" && deplibs_check_method=unknown
10063
10064
10065
10066# If no C compiler was specified, use CC.
10067LTCC=${LTCC-"$CC"}
10068
10069# Allow CC to be a program name with arguments.
10070compiler=$CC
10071
10072# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10073if test "${enable_libtool_lock+set}" = set; then
10074 enableval="$enable_libtool_lock"
10075
10076fi;
10077test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10078
10079# Some flags need to be propagated to the compiler or linker for good
10080# libtool support.
10081case $host in
10082ia64-*-hpux*)
10083 # Find out which ABI we are using.
10084 echo 'int i;' > conftest.$ac_ext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; then
10090 case `/usr/bin/file conftest.$ac_objext` in
10091 *ELF-32*)
10092 HPUX_IA64_MODE="32"
10093 ;;
10094 *ELF-64*)
10095 HPUX_IA64_MODE="64"
10096 ;;
10097 esac
10098 fi
10099 rm -rf conftest*
10100 ;;
10101*-*-irix6*)
10102 # Find out which ABI we are using.
Reid Spencerca767402004-12-13 02:16:51 +000010103 echo '#line 10103 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10105 (eval $ac_compile) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; then
10109 if test "$lt_cv_prog_gnu_ld" = yes; then
10110 case `/usr/bin/file conftest.$ac_objext` in
10111 *32-bit*)
10112 LD="${LD-ld} -melf32bsmip"
10113 ;;
10114 *N32*)
10115 LD="${LD-ld} -melf32bmipn32"
10116 ;;
10117 *64-bit*)
10118 LD="${LD-ld} -melf64bmip"
10119 ;;
10120 esac
10121 else
10122 case `/usr/bin/file conftest.$ac_objext` in
10123 *32-bit*)
10124 LD="${LD-ld} -32"
10125 ;;
10126 *N32*)
10127 LD="${LD-ld} -n32"
10128 ;;
10129 *64-bit*)
10130 LD="${LD-ld} -64"
10131 ;;
10132 esac
10133 fi
10134 fi
10135 rm -rf conftest*
10136 ;;
10137
10138x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10139 # Find out which ABI we are using.
10140 echo 'int i;' > conftest.$ac_ext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142 (eval $ac_compile) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; then
10146 case "`/usr/bin/file conftest.o`" in
10147 *32-bit*)
10148 case $host in
10149 x86_64-*linux*)
10150 LD="${LD-ld} -m elf_i386"
10151 ;;
10152 ppc64-*linux*|powerpc64-*linux*)
10153 LD="${LD-ld} -m elf32ppclinux"
10154 ;;
10155 s390x-*linux*)
10156 LD="${LD-ld} -m elf_s390"
10157 ;;
10158 sparc64-*linux*)
10159 LD="${LD-ld} -m elf32_sparc"
10160 ;;
10161 esac
10162 ;;
10163 *64-bit*)
10164 case $host in
10165 x86_64-*linux*)
10166 LD="${LD-ld} -m elf_x86_64"
10167 ;;
10168 ppc*-*linux*|powerpc*-*linux*)
10169 LD="${LD-ld} -m elf64ppc"
10170 ;;
10171 s390*-*linux*)
10172 LD="${LD-ld} -m elf64_s390"
10173 ;;
10174 sparc*-*linux*)
10175 LD="${LD-ld} -m elf64_sparc"
10176 ;;
10177 esac
10178 ;;
10179 esac
10180 fi
10181 rm -rf conftest*
10182 ;;
10183
10184*-*-sco3.2v5*)
10185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10186 SAVE_CFLAGS="$CFLAGS"
10187 CFLAGS="$CFLAGS -belf"
10188 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10189echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10190if test "${lt_cv_cc_needs_belf+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 ac_ext=c
10194ac_cpp='$CPP $CPPFLAGS'
10195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10197ac_compiler_gnu=$ac_cv_c_compiler_gnu
10198
10199 cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h. */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h. */
10205
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 lt_cv_cc_needs_belf=yes
10230else
10231 echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234lt_cv_cc_needs_belf=no
10235fi
10236rm -f conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 ac_ext=c
10239ac_cpp='$CPP $CPPFLAGS'
10240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242ac_compiler_gnu=$ac_cv_c_compiler_gnu
10243
10244fi
10245echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10246echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10249 CFLAGS="$SAVE_CFLAGS"
10250 fi
10251 ;;
10252
10253esac
10254
10255need_locks="$enable_libtool_lock"
10256
10257
Reid Spencer2706f8c2004-09-19 23:53:36 +000010258
10259
10260if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10262 (test "X$CXX" != "Xg++"))) ; then
10263 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010264ac_cpp='$CXXCPP $CPPFLAGS'
10265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10268echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10269echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10270if test -z "$CXXCPP"; then
10271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
John Criswell47fdd832003-07-14 16:52:07 +000010274 # Double quotes because CXXCPP needs to be expanded
10275 for CXXCPP in "$CXX -E" "/lib/cpp"
10276 do
10277 ac_preproc_ok=false
10278for ac_cxx_preproc_warn_flag in '' yes
10279do
10280 # Use a header file that comes with gcc, so configuring glibc
10281 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010284 # On the NeXT, cc -E runs the code through the compiler's parser,
10285 # not just through cpp. "Syntax error" is here to catch this case.
10286 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292#ifdef __STDC__
10293# include <limits.h>
10294#else
10295# include <assert.h>
10296#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010297 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010298_ACEOF
10299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10301 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010302 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } >/dev/null; then
10307 if test -s conftest.err; then
10308 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010310 else
John Criswell47fdd832003-07-14 16:52:07 +000010311 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010312 fi
John Criswell47fdd832003-07-14 16:52:07 +000010313else
10314 ac_cpp_err=yes
10315fi
10316if test -z "$ac_cpp_err"; then
10317 :
10318else
10319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010320sed 's/^/| /' conftest.$ac_ext >&5
10321
John Criswell47fdd832003-07-14 16:52:07 +000010322 # Broken: fails on valid input.
10323continue
10324fi
10325rm -f conftest.err conftest.$ac_ext
10326
10327 # OK, works on sane cases. Now check whether non-existent headers
10328 # can be detected and how.
10329 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010330/* confdefs.h. */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010335#include <ac_nonexistent.h>
10336_ACEOF
10337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010340 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } >/dev/null; then
10345 if test -s conftest.err; then
10346 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010348 else
10349 ac_cpp_err=
10350 fi
10351else
10352 ac_cpp_err=yes
10353fi
10354if test -z "$ac_cpp_err"; then
10355 # Broken: success on invalid input.
10356continue
10357else
10358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010359sed 's/^/| /' conftest.$ac_ext >&5
10360
John Criswell47fdd832003-07-14 16:52:07 +000010361 # Passes both tests.
10362ac_preproc_ok=:
10363break
10364fi
10365rm -f conftest.err conftest.$ac_ext
10366
10367done
10368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10369rm -f conftest.err conftest.$ac_ext
10370if $ac_preproc_ok; then
10371 break
John Criswell7a73b802003-06-30 21:59:07 +000010372fi
10373
John Criswell47fdd832003-07-14 16:52:07 +000010374 done
10375 ac_cv_prog_CXXCPP=$CXXCPP
10376
10377fi
10378 CXXCPP=$ac_cv_prog_CXXCPP
10379else
10380 ac_cv_prog_CXXCPP=$CXXCPP
10381fi
10382echo "$as_me:$LINENO: result: $CXXCPP" >&5
10383echo "${ECHO_T}$CXXCPP" >&6
10384ac_preproc_ok=false
10385for ac_cxx_preproc_warn_flag in '' yes
10386do
10387 # Use a header file that comes with gcc, so configuring glibc
10388 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010391 # On the NeXT, cc -E runs the code through the compiler's parser,
10392 # not just through cpp. "Syntax error" is here to catch this case.
10393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010394/* confdefs.h. */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h. */
10399#ifdef __STDC__
10400# include <limits.h>
10401#else
10402# include <assert.h>
10403#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010404 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010405_ACEOF
10406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10408 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010409 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } >/dev/null; then
10414 if test -s conftest.err; then
10415 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010417 else
10418 ac_cpp_err=
10419 fi
10420else
10421 ac_cpp_err=yes
10422fi
10423if test -z "$ac_cpp_err"; then
10424 :
10425else
10426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010427sed 's/^/| /' conftest.$ac_ext >&5
10428
John Criswell47fdd832003-07-14 16:52:07 +000010429 # Broken: fails on valid input.
10430continue
10431fi
10432rm -f conftest.err conftest.$ac_ext
10433
10434 # OK, works on sane cases. Now check whether non-existent headers
10435 # can be detected and how.
10436 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010442#include <ac_nonexistent.h>
10443_ACEOF
10444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10446 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010447 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010455 else
10456 ac_cpp_err=
10457 fi
10458else
10459 ac_cpp_err=yes
10460fi
10461if test -z "$ac_cpp_err"; then
10462 # Broken: success on invalid input.
10463continue
10464else
10465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010466sed 's/^/| /' conftest.$ac_ext >&5
10467
John Criswell47fdd832003-07-14 16:52:07 +000010468 # Passes both tests.
10469ac_preproc_ok=:
10470break
10471fi
10472rm -f conftest.err conftest.$ac_ext
10473
10474done
10475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10476rm -f conftest.err conftest.$ac_ext
10477if $ac_preproc_ok; then
10478 :
10479else
John Criswell0c38eaf2003-09-10 15:17:25 +000010480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10481See \`config.log' for more details." >&5
10482echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10483See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010484 { (exit 1); exit 1; }; }
10485fi
10486
10487ac_ext=cc
10488ac_cpp='$CXXCPP $CPPFLAGS'
10489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10492
Reid Spencer2706f8c2004-09-19 23:53:36 +000010493fi
10494
John Criswell47fdd832003-07-14 16:52:07 +000010495
10496ac_ext=f
10497ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10498ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10499ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10500if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010501 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 +000010502 do
10503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10505echo "$as_me:$LINENO: checking for $ac_word" >&5
10506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507if test "${ac_cv_prog_F77+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510 if test -n "$F77"; then
10511 ac_cv_prog_F77="$F77" # Let the user override the test.
10512else
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524done
10525done
10526
10527fi
10528fi
10529F77=$ac_cv_prog_F77
10530if test -n "$F77"; then
10531 echo "$as_me:$LINENO: result: $F77" >&5
10532echo "${ECHO_T}$F77" >&6
10533else
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
10536fi
10537
10538 test -n "$F77" && break
10539 done
10540fi
10541if test -z "$F77"; then
10542 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010543 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 +000010544do
10545 # Extract the first word of "$ac_prog", so it can be a program name with args.
10546set dummy $ac_prog; ac_word=$2
10547echo "$as_me:$LINENO: checking for $ac_word" >&5
10548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552 if test -n "$ac_ct_F77"; then
10553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10554else
10555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_ac_ct_F77="$ac_prog"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10565 fi
10566done
10567done
10568
10569fi
10570fi
10571ac_ct_F77=$ac_cv_prog_ac_ct_F77
10572if test -n "$ac_ct_F77"; then
10573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10574echo "${ECHO_T}$ac_ct_F77" >&6
10575else
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
10578fi
10579
10580 test -n "$ac_ct_F77" && break
10581done
10582
10583 F77=$ac_ct_F77
10584fi
10585
10586
10587# Provide some information about the compiler.
Reid Spencerca767402004-12-13 02:16:51 +000010588echo "$as_me:10588:" \
John Criswell47fdd832003-07-14 16:52:07 +000010589 "checking for Fortran 77 compiler version" >&5
10590ac_compiler=`set X $ac_compile; echo $2`
10591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10592 (eval $ac_compiler --version </dev/null >&5) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }
10596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10597 (eval $ac_compiler -v </dev/null >&5) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }
10601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10602 (eval $ac_compiler -V </dev/null >&5) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010606rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010607
10608# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010609# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010610ac_save_ext=$ac_ext
10611ac_ext=F
10612echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10613echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10614if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616else
10617 cat >conftest.$ac_ext <<_ACEOF
10618 program main
10619#ifndef __GNUC__
10620 choke me
10621#endif
10622
10623 end
10624_ACEOF
10625rm -f conftest.$ac_objext
10626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010627 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010629 grep -v '^ *+' conftest.er1 >conftest.err
10630 rm -f conftest.er1
10631 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010634 { ac_try='test -z "$ac_f77_werror_flag"
10635 || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_compiler_gnu=yes
10648else
10649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010650sed 's/^/| /' conftest.$ac_ext >&5
10651
John Criswell47fdd832003-07-14 16:52:07 +000010652ac_compiler_gnu=no
10653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010655ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10656
10657fi
10658echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10659echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10660ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010661ac_test_FFLAGS=${FFLAGS+set}
10662ac_save_FFLAGS=$FFLAGS
10663FFLAGS=
10664echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10665echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10666if test "${ac_cv_prog_f77_g+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669 FFLAGS=-g
10670cat >conftest.$ac_ext <<_ACEOF
10671 program main
10672
10673 end
10674_ACEOF
10675rm -f conftest.$ac_objext
10676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010677 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010684 { ac_try='test -z "$ac_f77_werror_flag"
10685 || test ! -s conftest.err'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_prog_f77_g=yes
10698else
10699 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010700sed 's/^/| /' conftest.$ac_ext >&5
10701
John Criswell47fdd832003-07-14 16:52:07 +000010702ac_cv_prog_f77_g=no
10703fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010705
10706fi
10707echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10708echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10709if test "$ac_test_FFLAGS" = set; then
10710 FFLAGS=$ac_save_FFLAGS
10711elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010713 FFLAGS="-g -O2"
10714 else
10715 FFLAGS="-g"
10716 fi
10717else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010719 FFLAGS="-O2"
10720 else
10721 FFLAGS=
10722 fi
10723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010724
10725G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010726ac_ext=c
10727ac_cpp='$CPP $CPPFLAGS'
10728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10730ac_compiler_gnu=$ac_cv_c_compiler_gnu
10731
10732
10733
10734# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10735
10736# find the maximum length of command line arguments
10737echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10738echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10739if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010743 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010744
10745 case $build_os in
10746 msdosdjgpp*)
10747 # On DJGPP, this test can blow up pretty badly due to problems in libc
10748 # (any single argument exceeding 2000 bytes causes a buffer overrun
10749 # during glob expansion). Even if it were fixed, the result of this
10750 # check would be larger than it should be.
10751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10752 ;;
10753
10754 gnu*)
10755 # Under GNU Hurd, this test is not required because there is
10756 # no limit to the length of command line arguments.
10757 # Libtool will interpret -1 as no limit whatsoever
10758 lt_cv_sys_max_cmd_len=-1;
10759 ;;
10760
10761 cygwin* | mingw*)
10762 # On Win9x/ME, this test blows up -- it succeeds, but takes
10763 # about 5 minutes as the teststring grows exponentially.
10764 # Worse, since 9x/ME are not pre-emptively multitasking,
10765 # you end up with a "frozen" computer, even though with patience
10766 # the test eventually succeeds (with a max line length of 256k).
10767 # Instead, let's just punt: use the minimum linelength reported by
10768 # all of the supported platforms: 8192 (on NT/2K/XP).
10769 lt_cv_sys_max_cmd_len=8192;
10770 ;;
10771
Reid Spencer2706f8c2004-09-19 23:53:36 +000010772 amigaos*)
10773 # On AmigaOS with pdksh, this test takes hours, literally.
10774 # So we just punt and use a minimum line length of 8192.
10775 lt_cv_sys_max_cmd_len=8192;
10776 ;;
10777
10778 netbsd* | freebsd* | openbsd* | darwin* )
10779 # This has been around since 386BSD, at least. Likely further.
10780 if test -x /sbin/sysctl; then
10781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10782 elif test -x /usr/sbin/sysctl; then
10783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10784 else
10785 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10786 fi
10787 # And add a safety zone
10788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10789 ;;
10790
John Criswell47fdd832003-07-14 16:52:07 +000010791 *)
10792 # If test is not a shell built-in, we'll probably end up computing a
10793 # maximum length that is only half of the actual maximum length, but
10794 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10796 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10797 = "XX$teststring") >/dev/null 2>&1 &&
10798 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010799 lt_cv_sys_max_cmd_len=$new_result &&
10800 test $i != 17 # 1/2 MB should be enough
10801 do
10802 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010803 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010804 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010805 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010806 # Add a significant safety factor because C++ compilers can tack on massive
10807 # amounts of additional arguments before passing them to the linker.
10808 # It appears as though 1/2 is a usable value.
10809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10810 ;;
10811 esac
10812
10813fi
10814
10815if test -n $lt_cv_sys_max_cmd_len ; then
10816 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10817echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10818else
10819 echo "$as_me:$LINENO: result: none" >&5
10820echo "${ECHO_T}none" >&6
10821fi
10822
10823
10824
10825
10826# Check for command to grab the raw symbol name followed by C symbol from nm.
10827echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10828echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10829if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832
10833# These are sane defaults that work on at least a few old systems.
10834# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10835
10836# Character class describing NM global symbol codes.
10837symcode='[BCDEGRST]'
10838
10839# Regexp to match symbols that can be accessed directly from C.
10840sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10841
10842# Transform the above into a raw symbol and a C symbol.
10843symxfrm='\1 \2\3 \3'
10844
10845# Transform an extracted symbol line into a proper C declaration
10846lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10847
10848# Transform an extracted symbol line into symbol name and symbol address
10849lt_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'"
10850
10851# Define system-specific variables.
10852case $host_os in
10853aix*)
10854 symcode='[BCDT]'
10855 ;;
10856cygwin* | mingw* | pw32*)
10857 symcode='[ABCDGISTW]'
10858 ;;
10859hpux*) # Its linker distinguishes data from code symbols
10860 if test "$host_cpu" = ia64; then
10861 symcode='[ABCDEGRST]'
10862 fi
10863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10864 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'"
10865 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010866linux*)
10867 if test "$host_cpu" = ia64; then
10868 symcode='[ABCDGIRSTW]'
10869 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10870 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'"
10871 fi
10872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010873irix* | nonstopux*)
10874 symcode='[BCDEGRST]'
10875 ;;
10876osf*)
10877 symcode='[BCDEGQRST]'
10878 ;;
10879solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010880 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010881 ;;
10882sysv4)
10883 symcode='[DFNSTU]'
10884 ;;
10885esac
10886
10887# Handle CRLF in mingw tool chain
10888opt_cr=
10889case $build_os in
10890mingw*)
10891 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10892 ;;
10893esac
10894
10895# If we're using GNU nm, then use its standard symbol codes.
10896case `$NM -V 2>&1` in
10897*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010898 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010899esac
10900
10901# Try without a prefix undercore, then with it.
10902for ac_symprfx in "" "_"; do
10903
10904 # Write the raw and C identifiers.
10905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10906
10907 # Check to see that the pipe works correctly.
10908 pipe_works=no
10909
10910 rm -f conftest*
10911 cat > conftest.$ac_ext <<EOF
10912#ifdef __cplusplus
10913extern "C" {
10914#endif
10915char nm_test_var;
10916void nm_test_func(){}
10917#ifdef __cplusplus
10918}
10919#endif
10920int main(){nm_test_var='a';nm_test_func();return(0);}
10921EOF
10922
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; then
10928 # Now try to grab the symbols.
10929 nlist=conftest.nm
10930 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10931 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && test -s "$nlist"; then
10935 # Try sorting and uniquifying the output.
10936 if sort "$nlist" | uniq > "$nlist"T; then
10937 mv -f "$nlist"T "$nlist"
10938 else
10939 rm -f "$nlist"T
10940 fi
10941
10942 # Make sure that we snagged all the symbols we need.
10943 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10944 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10945 cat <<EOF > conftest.$ac_ext
10946#ifdef __cplusplus
10947extern "C" {
10948#endif
10949
10950EOF
10951 # Now generate the symbol file.
10952 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10953
10954 cat <<EOF >> conftest.$ac_ext
10955#if defined (__STDC__) && __STDC__
10956# define lt_ptr_t void *
10957#else
10958# define lt_ptr_t char *
10959# define const
10960#endif
10961
10962/* The mapping between symbol names and symbols. */
10963const struct {
10964 const char *name;
10965 lt_ptr_t address;
10966}
10967lt_preloaded_symbols[] =
10968{
10969EOF
10970 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10971 cat <<\EOF >> conftest.$ac_ext
10972 {0, (lt_ptr_t) 0}
10973};
10974
10975#ifdef __cplusplus
10976}
10977#endif
10978EOF
10979 # Now try linking the two files.
10980 mv conftest.$ac_objext conftstm.$ac_objext
10981 lt_save_LIBS="$LIBS"
10982 lt_save_CFLAGS="$CFLAGS"
10983 LIBS="conftstm.$ac_objext"
10984 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10990 pipe_works=yes
10991 fi
10992 LIBS="$lt_save_LIBS"
10993 CFLAGS="$lt_save_CFLAGS"
10994 else
10995 echo "cannot find nm_test_func in $nlist" >&5
10996 fi
10997 else
10998 echo "cannot find nm_test_var in $nlist" >&5
10999 fi
11000 else
11001 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11002 fi
11003 else
11004 echo "$progname: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 fi
11007 rm -f conftest* conftst*
11008
11009 # Do not use the global_symbol_pipe unless it works.
11010 if test "$pipe_works" = yes; then
11011 break
11012 else
11013 lt_cv_sys_global_symbol_pipe=
11014 fi
11015done
11016
11017fi
11018
11019if test -z "$lt_cv_sys_global_symbol_pipe"; then
11020 lt_cv_sys_global_symbol_to_cdecl=
11021fi
11022if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11023 echo "$as_me:$LINENO: result: failed" >&5
11024echo "${ECHO_T}failed" >&6
11025else
11026 echo "$as_me:$LINENO: result: ok" >&5
11027echo "${ECHO_T}ok" >&6
11028fi
11029
11030echo "$as_me:$LINENO: checking for objdir" >&5
11031echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11032if test "${lt_cv_objdir+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 rm -f .libs 2>/dev/null
11036mkdir .libs 2>/dev/null
11037if test -d .libs; then
11038 lt_cv_objdir=.libs
11039else
11040 # MS-DOS does not allow filenames that begin with a dot.
11041 lt_cv_objdir=_libs
11042fi
11043rmdir .libs 2>/dev/null
11044fi
11045echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11046echo "${ECHO_T}$lt_cv_objdir" >&6
11047objdir=$lt_cv_objdir
11048
11049
11050
11051
11052
11053case $host_os in
11054aix3*)
11055 # AIX sometimes has problems with the GCC collect2 program. For some
11056 # reason, if we set the COLLECT_NAMES environment variable, the problems
11057 # vanish in a puff of smoke.
11058 if test "X${COLLECT_NAMES+set}" != Xset; then
11059 COLLECT_NAMES=
11060 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011061 fi
11062 ;;
11063esac
11064
John Criswell47fdd832003-07-14 16:52:07 +000011065# Sed substitution that helps us do robust quoting. It backslashifies
11066# metacharacters that are still active within double-quoted strings.
11067Xsed='sed -e s/^X//'
11068sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11069
11070# Same as above, but do not quote variable references.
11071double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11072
11073# Sed substitution to delay expansion of an escaped shell variable in a
11074# double_quote_subst'ed string.
11075delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11076
11077# Sed substitution to avoid accidental globbing in evaled expressions
11078no_glob_subst='s/\*/\\\*/g'
11079
11080# Constants:
11081rm="rm -f"
11082
11083# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011084default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011085can_build_shared=yes
11086
11087# All known linkers require a `.a' archive for static linking (except M$VC,
11088# which needs '.lib').
11089libext=a
11090ltmain="$ac_aux_dir/ltmain.sh"
11091ofile="$default_ofile"
11092with_gnu_ld="$lt_cv_prog_gnu_ld"
11093
11094if test -n "$ac_tool_prefix"; then
11095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11096set dummy ${ac_tool_prefix}ar; ac_word=$2
11097echo "$as_me:$LINENO: checking for $ac_word" >&5
11098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11099if test "${ac_cv_prog_AR+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102 if test -n "$AR"; then
11103 ac_cv_prog_AR="$AR" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_AR="${ac_tool_prefix}ar"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117done
11118
11119fi
11120fi
11121AR=$ac_cv_prog_AR
11122if test -n "$AR"; then
11123 echo "$as_me:$LINENO: result: $AR" >&5
11124echo "${ECHO_T}$AR" >&6
11125else
11126 echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6
11128fi
11129
11130fi
11131if test -z "$ac_cv_prog_AR"; then
11132 ac_ct_AR=$AR
11133 # Extract the first word of "ar", so it can be a program name with args.
11134set dummy ar; ac_word=$2
11135echo "$as_me:$LINENO: checking for $ac_word" >&5
11136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11137if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140 if test -n "$ac_ct_AR"; then
11141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11142else
11143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144for as_dir in $PATH
11145do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_ac_ct_AR="ar"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11153 fi
11154done
11155done
11156
11157 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11158fi
11159fi
11160ac_ct_AR=$ac_cv_prog_ac_ct_AR
11161if test -n "$ac_ct_AR"; then
11162 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11163echo "${ECHO_T}$ac_ct_AR" >&6
11164else
11165 echo "$as_me:$LINENO: result: no" >&5
11166echo "${ECHO_T}no" >&6
11167fi
11168
11169 AR=$ac_ct_AR
11170else
11171 AR="$ac_cv_prog_AR"
11172fi
11173
John Criswell7a73b802003-06-30 21:59:07 +000011174if test -n "$ac_tool_prefix"; then
11175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11176set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11177echo "$as_me:$LINENO: checking for $ac_word" >&5
11178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179if test "${ac_cv_prog_RANLIB+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181else
11182 if test -n "$RANLIB"; then
11183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11184else
11185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186for as_dir in $PATH
11187do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 break 2
11195 fi
11196done
11197done
11198
11199fi
11200fi
11201RANLIB=$ac_cv_prog_RANLIB
11202if test -n "$RANLIB"; then
11203 echo "$as_me:$LINENO: result: $RANLIB" >&5
11204echo "${ECHO_T}$RANLIB" >&6
11205else
11206 echo "$as_me:$LINENO: result: no" >&5
11207echo "${ECHO_T}no" >&6
11208fi
11209
11210fi
11211if test -z "$ac_cv_prog_RANLIB"; then
11212 ac_ct_RANLIB=$RANLIB
11213 # Extract the first word of "ranlib", so it can be a program name with args.
11214set dummy ranlib; ac_word=$2
11215echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 if test -n "$ac_ct_RANLIB"; then
11221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_ac_ct_RANLIB="ranlib"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235done
11236
11237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11238fi
11239fi
11240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11241if test -n "$ac_ct_RANLIB"; then
11242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11243echo "${ECHO_T}$ac_ct_RANLIB" >&6
11244else
11245 echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6
11247fi
11248
11249 RANLIB=$ac_ct_RANLIB
11250else
11251 RANLIB="$ac_cv_prog_RANLIB"
11252fi
11253
11254if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11256set dummy ${ac_tool_prefix}strip; ac_word=$2
11257echo "$as_me:$LINENO: checking for $ac_word" >&5
11258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259if test "${ac_cv_prog_STRIP+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 if test -n "$STRIP"; then
11263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11264else
11265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266for as_dir in $PATH
11267do
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11275 fi
11276done
11277done
11278
11279fi
11280fi
11281STRIP=$ac_cv_prog_STRIP
11282if test -n "$STRIP"; then
11283 echo "$as_me:$LINENO: result: $STRIP" >&5
11284echo "${ECHO_T}$STRIP" >&6
11285else
11286 echo "$as_me:$LINENO: result: no" >&5
11287echo "${ECHO_T}no" >&6
11288fi
11289
11290fi
11291if test -z "$ac_cv_prog_STRIP"; then
11292 ac_ct_STRIP=$STRIP
11293 # Extract the first word of "strip", so it can be a program name with args.
11294set dummy strip; ac_word=$2
11295echo "$as_me:$LINENO: checking for $ac_word" >&5
11296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 if test -n "$ac_ct_STRIP"; then
11301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11302else
11303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_ac_ct_STRIP="strip"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314done
11315done
11316
11317 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11318fi
11319fi
11320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11321if test -n "$ac_ct_STRIP"; then
11322 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11323echo "${ECHO_T}$ac_ct_STRIP" >&6
11324else
11325 echo "$as_me:$LINENO: result: no" >&5
11326echo "${ECHO_T}no" >&6
11327fi
11328
11329 STRIP=$ac_ct_STRIP
11330else
11331 STRIP="$ac_cv_prog_STRIP"
11332fi
11333
11334
John Criswell7a73b802003-06-30 21:59:07 +000011335old_CC="$CC"
11336old_CFLAGS="$CFLAGS"
11337
11338# Set sane defaults for various variables
11339test -z "$AR" && AR=ar
11340test -z "$AR_FLAGS" && AR_FLAGS=cru
11341test -z "$AS" && AS=as
11342test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011343test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011344test -z "$DLLTOOL" && DLLTOOL=dlltool
11345test -z "$LD" && LD=ld
11346test -z "$LN_S" && LN_S="ln -s"
11347test -z "$MAGIC_CMD" && MAGIC_CMD=file
11348test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011349test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011350test -z "$OBJDUMP" && OBJDUMP=objdump
11351test -z "$RANLIB" && RANLIB=:
11352test -z "$STRIP" && STRIP=:
11353test -z "$ac_objext" && ac_objext=o
11354
John Criswell7a73b802003-06-30 21:59:07 +000011355# Determine commands to create old-style static archives.
11356old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11357old_postinstall_cmds='chmod 644 $oldlib'
11358old_postuninstall_cmds=
11359
11360if test -n "$RANLIB"; then
11361 case $host_os in
11362 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011363 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011364 ;;
11365 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011366 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011367 ;;
11368 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011369 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011370fi
11371
Reid Spencer2706f8c2004-09-19 23:53:36 +000011372cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11373
John Criswell47fdd832003-07-14 16:52:07 +000011374# Only perform the check for file, if the check method requires it
11375case $deplibs_check_method in
11376file_magic*)
11377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11378 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11379echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11380if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011382else
John Criswell47fdd832003-07-14 16:52:07 +000011383 case $MAGIC_CMD in
11384[\\/*] | ?:[\\/]*)
11385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11386 ;;
11387*)
11388 lt_save_MAGIC_CMD="$MAGIC_CMD"
11389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11391 for ac_dir in $ac_dummy; do
11392 IFS="$lt_save_ifs"
11393 test -z "$ac_dir" && ac_dir=.
11394 if test -f $ac_dir/${ac_tool_prefix}file; then
11395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11396 if test -n "$file_magic_test_file"; then
11397 case $deplibs_check_method in
11398 "file_magic "*)
11399 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11402 $EGREP "$file_magic_regex" > /dev/null; then
11403 :
11404 else
11405 cat <<EOF 1>&2
11406
11407*** Warning: the command libtool uses to detect shared libraries,
11408*** $file_magic_cmd, produces output that libtool cannot recognize.
11409*** The result is that libtool may fail to recognize shared libraries
11410*** as such. This will affect the creation of libtool libraries that
11411*** depend on shared libraries, but programs linked with such libtool
11412*** libraries will work regardless of this problem. Nevertheless, you
11413*** may want to report the problem to your system manager and/or to
11414*** bug-libtool@gnu.org
11415
11416EOF
11417 fi ;;
11418 esac
11419 fi
11420 break
11421 fi
11422 done
11423 IFS="$lt_save_ifs"
11424 MAGIC_CMD="$lt_save_MAGIC_CMD"
11425 ;;
11426esac
John Criswell7a73b802003-06-30 21:59:07 +000011427fi
John Criswell7a73b802003-06-30 21:59:07 +000011428
John Criswell47fdd832003-07-14 16:52:07 +000011429MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11430if test -n "$MAGIC_CMD"; then
11431 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11432echo "${ECHO_T}$MAGIC_CMD" >&6
11433else
11434 echo "$as_me:$LINENO: result: no" >&5
11435echo "${ECHO_T}no" >&6
11436fi
John Criswell7a73b802003-06-30 21:59:07 +000011437
John Criswell47fdd832003-07-14 16:52:07 +000011438if test -z "$lt_cv_path_MAGIC_CMD"; then
11439 if test -n "$ac_tool_prefix"; then
11440 echo "$as_me:$LINENO: checking for file" >&5
11441echo $ECHO_N "checking for file... $ECHO_C" >&6
11442if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444else
11445 case $MAGIC_CMD in
11446[\\/*] | ?:[\\/]*)
11447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11448 ;;
11449*)
11450 lt_save_MAGIC_CMD="$MAGIC_CMD"
11451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11453 for ac_dir in $ac_dummy; do
11454 IFS="$lt_save_ifs"
11455 test -z "$ac_dir" && ac_dir=.
11456 if test -f $ac_dir/file; then
11457 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11458 if test -n "$file_magic_test_file"; then
11459 case $deplibs_check_method in
11460 "file_magic "*)
11461 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11464 $EGREP "$file_magic_regex" > /dev/null; then
11465 :
11466 else
11467 cat <<EOF 1>&2
11468
11469*** Warning: the command libtool uses to detect shared libraries,
11470*** $file_magic_cmd, produces output that libtool cannot recognize.
11471*** The result is that libtool may fail to recognize shared libraries
11472*** as such. This will affect the creation of libtool libraries that
11473*** depend on shared libraries, but programs linked with such libtool
11474*** libraries will work regardless of this problem. Nevertheless, you
11475*** may want to report the problem to your system manager and/or to
11476*** bug-libtool@gnu.org
11477
11478EOF
11479 fi ;;
11480 esac
11481 fi
11482 break
11483 fi
11484 done
11485 IFS="$lt_save_ifs"
11486 MAGIC_CMD="$lt_save_MAGIC_CMD"
11487 ;;
11488esac
11489fi
11490
11491MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492if test -n "$MAGIC_CMD"; then
11493 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11494echo "${ECHO_T}$MAGIC_CMD" >&6
11495else
11496 echo "$as_me:$LINENO: result: no" >&5
11497echo "${ECHO_T}no" >&6
11498fi
11499
11500 else
11501 MAGIC_CMD=:
11502 fi
11503fi
11504
11505 fi
11506 ;;
11507esac
11508
Reid Spencer17795972004-11-18 09:47:37 +000011509enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011510enable_win32_dll=no
11511
11512# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11513if test "${enable_libtool_lock+set}" = set; then
11514 enableval="$enable_libtool_lock"
11515
11516fi;
11517test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11518
John Criswell7a73b802003-06-30 21:59:07 +000011519
11520# Check whether --with-pic or --without-pic was given.
11521if test "${with_pic+set}" = set; then
11522 withval="$with_pic"
11523 pic_mode="$withval"
11524else
11525 pic_mode=default
11526fi;
11527test -z "$pic_mode" && pic_mode=default
11528
John Criswell47fdd832003-07-14 16:52:07 +000011529# Use C for the default configuration in the libtool script
11530tagname=
11531lt_save_CC="$CC"
11532ac_ext=c
11533ac_cpp='$CPP $CPPFLAGS'
11534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537
11538
11539# Source file extension for C test sources.
11540ac_ext=c
11541
11542# Object file extension for compiled C test sources.
11543objext=o
11544objext=$objext
11545
11546# Code to be used in simple compile tests
11547lt_simple_compile_test_code="int some_variable = 0;\n"
11548
11549# Code to be used in simple link tests
11550lt_simple_link_test_code='int main(){return(0);}\n'
11551
11552
11553# If no C compiler was specified, use CC.
11554LTCC=${LTCC-"$CC"}
11555
11556# Allow CC to be a program name with arguments.
11557compiler=$CC
11558
11559
11560#
11561# Check for any special shared library compilation flags.
11562#
11563lt_prog_cc_shlib=
11564if test "$GCC" = no; then
11565 case $host_os in
11566 sco3.2v5*)
11567 lt_prog_cc_shlib='-belf'
11568 ;;
11569 esac
11570fi
11571if test -n "$lt_prog_cc_shlib"; then
11572 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11573echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11574 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11575 else
11576 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11577echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11578 lt_cv_prog_cc_can_build_shared=no
11579 fi
11580fi
11581
11582
11583#
11584# Check to make sure the static flag actually works.
11585#
11586echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11587echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11588if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
John Criswell47fdd832003-07-14 16:52:07 +000011591 lt_prog_compiler_static_works=no
11592 save_LDFLAGS="$LDFLAGS"
11593 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11594 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11596 # The compiler can only warn and ignore the option if not recognized
11597 # So say no if there are warnings
11598 if test -s conftest.err; then
11599 # Append any errors to the config.log.
11600 cat conftest.err 1>&5
11601 else
11602 lt_prog_compiler_static_works=yes
11603 fi
11604 fi
11605 $rm conftest*
11606 LDFLAGS="$save_LDFLAGS"
11607
11608fi
11609echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11610echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11611
11612if test x"$lt_prog_compiler_static_works" = xyes; then
11613 :
11614else
11615 lt_prog_compiler_static=
11616fi
11617
11618
11619
John Criswell47fdd832003-07-14 16:52:07 +000011620
11621lt_prog_compiler_no_builtin_flag=
11622
11623if test "$GCC" = yes; then
11624 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11625
Reid Spencer2706f8c2004-09-19 23:53:36 +000011626
11627echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011628echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11629if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 lt_cv_prog_compiler_rtti_exceptions=no
11633 ac_outfile=conftest.$ac_objext
11634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11635 lt_compiler_flag="-fno-rtti -fno-exceptions"
11636 # Insert the option either (1) after the last *FLAGS variable, or
11637 # (2) before a word containing "conftest.", or (3) at the end.
11638 # Note that $ac_compile itself does not contain backslashes and begins
11639 # with a dollar sign (not a hyphen), so the echo should work correctly.
11640 # The option is referenced via a variable to avoid confusing sed.
11641 lt_compile=`echo "$ac_compile" | $SED \
11642 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11644 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000011645 (eval echo "\"\$as_me:11645: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011646 (eval "$lt_compile" 2>conftest.err)
11647 ac_status=$?
11648 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000011649 echo "$as_me:11649: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011650 if (exit $ac_status) && test -s "$ac_outfile"; then
11651 # The compiler can only warn and ignore the option if not recognized
11652 # So say no if there are warnings
11653 if test ! -s conftest.err; then
11654 lt_cv_prog_compiler_rtti_exceptions=yes
11655 fi
11656 fi
11657 $rm conftest*
11658
11659fi
11660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11661echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11662
11663if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11665else
11666 :
11667fi
11668
11669fi
11670
11671lt_prog_compiler_wl=
11672lt_prog_compiler_pic=
11673lt_prog_compiler_static=
11674
11675echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11676echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011677
11678 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011679 lt_prog_compiler_wl='-Wl,'
11680 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011681
11682 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011683 aix*)
11684 # All AIX code is PIC.
11685 if test "$host_cpu" = ia64; then
11686 # AIX 5 now supports IA64 processor
11687 lt_prog_compiler_static='-Bstatic'
11688 fi
John Criswell7a73b802003-06-30 21:59:07 +000011689 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011690
John Criswell7a73b802003-06-30 21:59:07 +000011691 amigaos*)
11692 # FIXME: we need at least 68020 code to build shared libraries, but
11693 # adding the `-m68020' flag to GCC prevents building anything better,
11694 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011695 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011696 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011697
11698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011699 # PIC is the default for these OSes.
11700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011701
11702 mingw* | pw32* | os2*)
11703 # This hack is so that the source file can tell whether it is being
11704 # built for inclusion in a dll (and should export symbols for example).
11705 lt_prog_compiler_pic='-DDLL_EXPORT'
11706 ;;
11707
John Criswell7a73b802003-06-30 21:59:07 +000011708 darwin* | rhapsody*)
11709 # PIC is the default on this platform
11710 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011711 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011712 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011713
11714 msdosdjgpp*)
11715 # Just because we use GCC doesn't mean we suddenly get shared libraries
11716 # on systems that don't support them.
11717 lt_prog_compiler_can_build_shared=no
11718 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011719 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011720
John Criswell7a73b802003-06-30 21:59:07 +000011721 sysv4*MP*)
11722 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011723 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011724 fi
11725 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011726
11727 hpux*)
11728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11729 # not for PA HP-UX.
11730 case "$host_cpu" in
11731 hppa*64*|ia64*)
11732 # +Z the default
11733 ;;
11734 *)
11735 lt_prog_compiler_pic='-fPIC'
11736 ;;
11737 esac
11738 ;;
11739
John Criswell7a73b802003-06-30 21:59:07 +000011740 *)
John Criswell47fdd832003-07-14 16:52:07 +000011741 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011742 ;;
11743 esac
11744 else
John Criswell47fdd832003-07-14 16:52:07 +000011745 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011746 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011747 aix*)
11748 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011749 if test "$host_cpu" = ia64; then
11750 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011751 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011752 else
John Criswell47fdd832003-07-14 16:52:07 +000011753 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011754 fi
11755 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011756 darwin*)
11757 # PIC is the default on this platform
11758 # Common symbols not allowed in MH_DYLIB files
11759 case "$cc_basename" in
11760 xlc*)
11761 lt_prog_compiler_pic='-qnocommon'
11762 lt_prog_compiler_wl='-Wl,'
11763 ;;
11764 esac
11765 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011766
John Criswell47fdd832003-07-14 16:52:07 +000011767 mingw* | pw32* | os2*)
11768 # This hack is so that the source file can tell whether it is being
11769 # built for inclusion in a dll (and should export symbols for example).
11770 lt_prog_compiler_pic='-DDLL_EXPORT'
11771 ;;
11772
John Criswell7a73b802003-06-30 21:59:07 +000011773 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011774 lt_prog_compiler_wl='-Wl,'
11775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11776 # not for PA HP-UX.
11777 case "$host_cpu" in
11778 hppa*64*|ia64*)
11779 # +Z the default
11780 ;;
11781 *)
11782 lt_prog_compiler_pic='+Z'
11783 ;;
11784 esac
11785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11786 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011787 ;;
11788
John Criswell47fdd832003-07-14 16:52:07 +000011789 irix5* | irix6* | nonstopux*)
11790 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011791 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011792 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011793 ;;
11794
11795 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011796 lt_prog_compiler_pic='-KPIC'
11797 lt_prog_compiler_static='-Bstatic'
11798 ;;
11799
11800 linux*)
11801 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011802 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011803 lt_prog_compiler_wl='-Wl,'
11804 lt_prog_compiler_pic='-KPIC'
11805 lt_prog_compiler_static='-static'
11806 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011807 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011808 lt_prog_compiler_wl='-Wl,'
11809 # All Alpha code is PIC.
11810 lt_prog_compiler_static='-non_shared'
11811 ;;
11812 esac
John Criswell7a73b802003-06-30 21:59:07 +000011813 ;;
11814
11815 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011816 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011817 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011818 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011819 ;;
11820
11821 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011822 lt_prog_compiler_pic='-Kpic'
11823 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011824 ;;
11825
11826 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011827 lt_prog_compiler_wl='-Wl,'
11828 lt_prog_compiler_pic='-KPIC'
11829 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011830 ;;
11831
11832 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011833 lt_prog_compiler_wl='-Qoption ld '
11834 lt_prog_compiler_pic='-PIC'
11835 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011836 ;;
11837
11838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011839 lt_prog_compiler_wl='-Wl,'
11840 lt_prog_compiler_pic='-KPIC'
11841 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011842 ;;
11843
11844 sysv4*MP*)
11845 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011846 lt_prog_compiler_pic='-Kconform_pic'
11847 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011848 fi
11849 ;;
11850
John Criswell47fdd832003-07-14 16:52:07 +000011851 uts4*)
11852 lt_prog_compiler_pic='-pic'
11853 lt_prog_compiler_static='-Bstatic'
11854 ;;
11855
John Criswell7a73b802003-06-30 21:59:07 +000011856 *)
John Criswell47fdd832003-07-14 16:52:07 +000011857 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011858 ;;
11859 esac
11860 fi
11861
John Criswell47fdd832003-07-14 16:52:07 +000011862echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11863echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011864
John Criswell47fdd832003-07-14 16:52:07 +000011865#
11866# Check to make sure the PIC flag actually works.
11867#
11868if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011869
11870echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11872if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
John Criswell47fdd832003-07-14 16:52:07 +000011875 lt_prog_compiler_pic_works=no
11876 ac_outfile=conftest.$ac_objext
11877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11878 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11879 # Insert the option either (1) after the last *FLAGS variable, or
11880 # (2) before a word containing "conftest.", or (3) at the end.
11881 # Note that $ac_compile itself does not contain backslashes and begins
11882 # with a dollar sign (not a hyphen), so the echo should work correctly.
11883 # The option is referenced via a variable to avoid confusing sed.
11884 lt_compile=`echo "$ac_compile" | $SED \
11885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000011888 (eval echo "\"\$as_me:11888: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011889 (eval "$lt_compile" 2>conftest.err)
11890 ac_status=$?
11891 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000011892 echo "$as_me:11892: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011893 if (exit $ac_status) && test -s "$ac_outfile"; then
11894 # The compiler can only warn and ignore the option if not recognized
11895 # So say no if there are warnings
11896 if test ! -s conftest.err; then
11897 lt_prog_compiler_pic_works=yes
11898 fi
11899 fi
11900 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011901
John Criswell47fdd832003-07-14 16:52:07 +000011902fi
11903echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11904echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011905
John Criswell47fdd832003-07-14 16:52:07 +000011906if test x"$lt_prog_compiler_pic_works" = xyes; then
11907 case $lt_prog_compiler_pic in
11908 "" | " "*) ;;
11909 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11910 esac
John Criswell7a73b802003-06-30 21:59:07 +000011911else
John Criswell47fdd832003-07-14 16:52:07 +000011912 lt_prog_compiler_pic=
11913 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011914fi
11915
John Criswell7a73b802003-06-30 21:59:07 +000011916fi
John Criswell47fdd832003-07-14 16:52:07 +000011917case "$host_os" in
11918 # For platforms which do not support PIC, -DPIC is meaningless:
11919 *djgpp*)
11920 lt_prog_compiler_pic=
11921 ;;
11922 *)
11923 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11924 ;;
11925esac
John Criswell7a73b802003-06-30 21:59:07 +000011926
John Criswell7a73b802003-06-30 21:59:07 +000011927echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000011929if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
John Criswell47fdd832003-07-14 16:52:07 +000011932 lt_cv_prog_compiler_c_o=no
11933 $rm -r conftest 2>/dev/null
11934 mkdir conftest
11935 cd conftest
11936 mkdir out
11937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011938
John Criswell47fdd832003-07-14 16:52:07 +000011939 lt_compiler_flag="-o out/conftest2.$ac_objext"
11940 # Insert the option either (1) after the last *FLAGS variable, or
11941 # (2) before a word containing "conftest.", or (3) at the end.
11942 # Note that $ac_compile itself does not contain backslashes and begins
11943 # with a dollar sign (not a hyphen), so the echo should work correctly.
11944 lt_compile=`echo "$ac_compile" | $SED \
11945 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11947 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000011948 (eval echo "\"\$as_me:11948: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011949 (eval "$lt_compile" 2>out/conftest.err)
11950 ac_status=$?
11951 cat out/conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000011952 echo "$as_me:11952: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11954 then
11955 # The compiler can only warn and ignore the option if not recognized
11956 # So say no if there are warnings
11957 if test ! -s out/conftest.err; then
11958 lt_cv_prog_compiler_c_o=yes
11959 fi
11960 fi
11961 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000011962 $rm conftest*
11963 # SGI C++ compiler will create directory out/ii_files/ for
11964 # template instantiation
11965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11966 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000011967 cd ..
11968 rmdir conftest
11969 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011970
11971fi
John Criswell47fdd832003-07-14 16:52:07 +000011972echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11973echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011974
John Criswell7a73b802003-06-30 21:59:07 +000011975
John Criswell7a73b802003-06-30 21:59:07 +000011976hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000011977if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000011978 # do not overwrite the value of need_locks provided by the user
11979 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11980echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11981 hard_links=yes
11982 $rm conftest*
11983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11984 touch conftest.a
11985 ln conftest.a conftest.b 2>&5 || hard_links=no
11986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11987 echo "$as_me:$LINENO: result: $hard_links" >&5
11988echo "${ECHO_T}$hard_links" >&6
11989 if test "$hard_links" = no; then
11990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11991echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11992 need_locks=warn
11993 fi
11994else
11995 need_locks=no
11996fi
John Criswell7a73b802003-06-30 21:59:07 +000011997
John Criswell47fdd832003-07-14 16:52:07 +000011998echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12000
12001 runpath_var=
12002 allow_undefined_flag=
12003 enable_shared_with_static_runtimes=no
12004 archive_cmds=
12005 archive_expsym_cmds=
12006 old_archive_From_new_cmds=
12007 old_archive_from_expsyms_cmds=
12008 export_dynamic_flag_spec=
12009 whole_archive_flag_spec=
12010 thread_safe_flag_spec=
12011 hardcode_libdir_flag_spec=
12012 hardcode_libdir_flag_spec_ld=
12013 hardcode_libdir_separator=
12014 hardcode_direct=no
12015 hardcode_minus_L=no
12016 hardcode_shlibpath_var=unsupported
12017 link_all_deplibs=unknown
12018 hardcode_automatic=no
12019 module_cmds=
12020 module_expsym_cmds=
12021 always_export_symbols=no
12022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12023 # include_expsyms should be a list of space-separated symbols to be *always*
12024 # included in the symbol list
12025 include_expsyms=
12026 # exclude_expsyms can be an extended regexp of symbols to exclude
12027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12029 # as well as any symbol that contains `d'.
12030 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12032 # platforms (ab)use it in PIC code, but their linkers get confused if
12033 # the symbol is explicitly referenced. Since portable code cannot
12034 # rely on this symbol name, it's probably fine to never include it in
12035 # preloaded symbol tables.
12036 extract_expsyms_cmds=
12037
12038 case $host_os in
12039 cygwin* | mingw* | pw32*)
12040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12041 # When not using gcc, we currently assume that we are using
12042 # Microsoft Visual C++.
12043 if test "$GCC" != yes; then
12044 with_gnu_ld=no
12045 fi
12046 ;;
12047 openbsd*)
12048 with_gnu_ld=no
12049 ;;
12050 esac
12051
12052 ld_shlibs=yes
12053 if test "$with_gnu_ld" = yes; then
12054 # If archive_cmds runs LD, not CC, wlarc should be empty
12055 wlarc='${wl}'
12056
12057 # See if GNU ld supports shared libraries.
12058 case $host_os in
12059 aix3* | aix4* | aix5*)
12060 # On AIX/PPC, the GNU linker is very broken
12061 if test "$host_cpu" != ia64; then
12062 ld_shlibs=no
12063 cat <<EOF 1>&2
12064
12065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12066*** to be unable to reliably create shared libraries on AIX.
12067*** Therefore, libtool is disabling shared libraries support. If you
12068*** really care for shared libraries, you may want to modify your PATH
12069*** so that a non-GNU linker is found, and then restart.
12070
12071EOF
12072 fi
12073 ;;
12074
12075 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012076 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 +000012077 hardcode_libdir_flag_spec='-L$libdir'
12078 hardcode_minus_L=yes
12079
12080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12081 # that the semantics of dynamic libraries on AmigaOS, at least up
12082 # to version 4, is to share data among multiple programs linked
12083 # with the same dynamic library. Since this doesn't match the
12084 # behavior of shared libraries on other platforms, we can't use
12085 # them.
12086 ld_shlibs=no
12087 ;;
12088
12089 beos*)
12090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12091 allow_undefined_flag=unsupported
12092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12093 # support --undefined. This deserves some investigation. FIXME
12094 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095 else
12096 ld_shlibs=no
12097 fi
12098 ;;
12099
12100 cygwin* | mingw* | pw32*)
12101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12102 # as there is no search path for DLLs.
12103 hardcode_libdir_flag_spec='-L$libdir'
12104 allow_undefined_flag=unsupported
12105 always_export_symbols=no
12106 enable_shared_with_static_runtimes=yes
12107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12108
12109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12111 # If the export-symbols file already is a .def file (1st line
12112 # is EXPORTS), use it as is; otherwise, prepend...
12113 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12114 cp $export_symbols $output_objdir/$soname.def;
12115 else
12116 echo EXPORTS > $output_objdir/$soname.def;
12117 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012118 fi~
12119 $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 +000012120 else
12121 ld_shlibs=no
12122 fi
12123 ;;
12124
12125 netbsd*)
12126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12128 wlarc=
12129 else
12130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12132 fi
12133 ;;
12134
12135 solaris* | sysv5*)
12136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12137 ld_shlibs=no
12138 cat <<EOF 1>&2
12139
12140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12141*** create shared libraries on Solaris systems. Therefore, libtool
12142*** is disabling shared libraries support. We urge you to upgrade GNU
12143*** binutils to release 2.9.1 or newer. Another option is to modify
12144*** your PATH or compiler configuration so that the native linker is
12145*** used, and then restart.
12146
12147EOF
12148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12151 else
12152 ld_shlibs=no
12153 fi
12154 ;;
12155
12156 sunos4*)
12157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12158 wlarc=
12159 hardcode_direct=yes
12160 hardcode_shlibpath_var=no
12161 ;;
12162
Reid Spencer2706f8c2004-09-19 23:53:36 +000012163 linux*)
12164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12165 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166 archive_cmds="$tmp_archive_cmds"
12167 supports_anon_versioning=no
12168 case `$LD -v 2>/dev/null` in
12169 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12172 *\ 2.11.*) ;; # other 2.11 versions
12173 *) supports_anon_versioning=yes ;;
12174 esac
12175 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012176 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12177cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12178$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012179 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12180 else
12181 archive_expsym_cmds="$tmp_archive_cmds"
12182 fi
12183 else
12184 ld_shlibs=no
12185 fi
12186 ;;
12187
John Criswell47fdd832003-07-14 16:52:07 +000012188 *)
12189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12192 else
12193 ld_shlibs=no
12194 fi
12195 ;;
12196 esac
12197
12198 if test "$ld_shlibs" = yes; then
12199 runpath_var=LD_RUN_PATH
12200 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12201 export_dynamic_flag_spec='${wl}--export-dynamic'
12202 # ancient GNU ld didn't support --whole-archive et. al.
12203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12204 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12205 else
12206 whole_archive_flag_spec=
12207 fi
12208 fi
12209 else
12210 # PORTME fill in a description of your system's linker (not GNU ld)
12211 case $host_os in
12212 aix3*)
12213 allow_undefined_flag=unsupported
12214 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012215 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 +000012216 # Note: this linker hardcodes the directories in LIBPATH if there
12217 # are no directories specified by -L.
12218 hardcode_minus_L=yes
12219 if test "$GCC" = yes && test -z "$link_static_flag"; then
12220 # Neither direct hardcoding nor static linking is supported with a
12221 # broken collect2.
12222 hardcode_direct=unsupported
12223 fi
12224 ;;
12225
12226 aix4* | aix5*)
12227 if test "$host_cpu" = ia64; then
12228 # On IA64, the linker does run time linking by default, so we don't
12229 # have to do anything special.
12230 aix_use_runtimelinking=no
12231 exp_sym_flag='-Bexport'
12232 no_entry_flag=""
12233 else
12234 # If we're using GNU nm, then we don't want the "-C" option.
12235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12237 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'
12238 else
12239 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'
12240 fi
12241 aix_use_runtimelinking=no
12242
12243 # Test if we are trying to use run time linking or normal
12244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12245 # need to do runtime linking.
12246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12247 for ld_flag in $LDFLAGS; do
12248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12249 aix_use_runtimelinking=yes
12250 break
12251 fi
12252 done
12253 esac
12254
12255 exp_sym_flag='-bexport'
12256 no_entry_flag='-bnoentry'
12257 fi
12258
12259 # When large executables or shared objects are built, AIX ld can
12260 # have problems creating the table of contents. If linking a library
12261 # or program results in "error TOC overflow" add -mminimal-toc to
12262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12264
12265 archive_cmds=''
12266 hardcode_direct=yes
12267 hardcode_libdir_separator=':'
12268 link_all_deplibs=yes
12269
12270 if test "$GCC" = yes; then
12271 case $host_os in aix4.012|aix4.012.*)
12272 # We only want to do this on AIX 4.2 and lower, the check
12273 # below for broken collect2 doesn't work under 4.3+
12274 collect2name=`${CC} -print-prog-name=collect2`
12275 if test -f "$collect2name" && \
12276 strings "$collect2name" | grep resolve_lib_name >/dev/null
12277 then
12278 # We have reworked collect2
12279 hardcode_direct=yes
12280 else
12281 # We have old collect2
12282 hardcode_direct=unsupported
12283 # It fails to find uninstalled libraries when the uninstalled
12284 # path is not listed in the libpath. Setting hardcode_minus_L
12285 # to unsupported forces relinking
12286 hardcode_minus_L=yes
12287 hardcode_libdir_flag_spec='-L$libdir'
12288 hardcode_libdir_separator=
12289 fi
12290 esac
12291 shared_flag='-shared'
12292 else
12293 # not using gcc
12294 if test "$host_cpu" = ia64; then
12295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12296 # chokes on -Wl,-G. The following line is correct:
12297 shared_flag='-G'
12298 else
12299 if test "$aix_use_runtimelinking" = yes; then
12300 shared_flag='${wl}-G'
12301 else
12302 shared_flag='${wl}-bM:SRE'
12303 fi
12304 fi
12305 fi
12306
12307 # It seems that -bexpall does not export symbols beginning with
12308 # underscore (_), so it is better to generate a list of symbols to export.
12309 always_export_symbols=yes
12310 if test "$aix_use_runtimelinking" = yes; then
12311 # Warning - without using the other runtime loading flags (-brtl),
12312 # -berok will link without error, but may produce a broken library.
12313 allow_undefined_flag='-berok'
12314 # Determine the default libpath from the value encoded in an empty executable.
12315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012316/* confdefs.h. */
12317_ACEOF
12318cat confdefs.h >>conftest.$ac_ext
12319cat >>conftest.$ac_ext <<_ACEOF
12320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012321
John Criswell7a73b802003-06-30 21:59:07 +000012322int
12323main ()
12324{
John Criswell47fdd832003-07-14 16:52:07 +000012325
John Criswell7a73b802003-06-30 21:59:07 +000012326 ;
12327 return 0;
12328}
12329_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012330rm -f conftest.$ac_objext conftest$ac_exeext
12331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012332 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012352
John Criswell47fdd832003-07-14 16:52:07 +000012353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12354}'`
12355# Check for a 64-bit object if we didn't find anything.
12356if 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; }
12357}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012358else
12359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012360sed 's/^/| /' conftest.$ac_ext >&5
12361
John Criswell7a73b802003-06-30 21:59:07 +000012362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012363rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012366
John Criswell47fdd832003-07-14 16:52:07 +000012367 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12368 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"
12369 else
12370 if test "$host_cpu" = ia64; then
12371 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12372 allow_undefined_flag="-z nodefs"
12373 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"
12374 else
12375 # Determine the default libpath from the value encoded in an empty executable.
12376 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012382
John Criswell47fdd832003-07-14 16:52:07 +000012383int
12384main ()
12385{
John Criswell7a73b802003-06-30 21:59:07 +000012386
John Criswell47fdd832003-07-14 16:52:07 +000012387 ;
12388 return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext conftest$ac_exeext
12392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012393 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012400 { ac_try='test -z "$ac_c_werror_flag"
12401 || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012413
John Criswell47fdd832003-07-14 16:52:07 +000012414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12415}'`
12416# Check for a 64-bit object if we didn't find anything.
12417if 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; }
12418}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012419else
John Criswell47fdd832003-07-14 16:52:07 +000012420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012421sed 's/^/| /' conftest.$ac_ext >&5
12422
John Criswell47fdd832003-07-14 16:52:07 +000012423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012424rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012427
John Criswell47fdd832003-07-14 16:52:07 +000012428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12429 # Warning - without using the other run time loading flags,
12430 # -berok will link without error, but may produce a broken library.
12431 no_undefined_flag=' ${wl}-bernotok'
12432 allow_undefined_flag=' ${wl}-berok'
12433 # -bexpall does not export symbols beginning with underscore (_)
12434 always_export_symbols=yes
12435 # Exported symbols can be pulled into shared objects from archives
12436 whole_archive_flag_spec=' '
12437 archive_cmds_need_lc=yes
12438 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012439 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 +000012440 fi
12441 fi
John Criswell7a73b802003-06-30 21:59:07 +000012442 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012443
12444 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012445 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 +000012446 hardcode_libdir_flag_spec='-L$libdir'
12447 hardcode_minus_L=yes
12448 # see comment about different semantics on the GNU ld section
12449 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012450 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012451
Reid Spencer2706f8c2004-09-19 23:53:36 +000012452 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012453 export_dynamic_flag_spec=-rdynamic
12454 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012455
John Criswell47fdd832003-07-14 16:52:07 +000012456 cygwin* | mingw* | pw32*)
12457 # When not using gcc, we currently assume that we are using
12458 # Microsoft Visual C++.
12459 # hardcode_libdir_flag_spec is actually meaningless, as there is
12460 # no search path for DLLs.
12461 hardcode_libdir_flag_spec=' '
12462 allow_undefined_flag=unsupported
12463 # Tell ltmain to make .lib files, not .a files.
12464 libext=lib
12465 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012466 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012467 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012468 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012469 # The linker will automatically build a .lib file if we build a DLL.
12470 old_archive_From_new_cmds='true'
12471 # FIXME: Should let the user specify the lib program.
12472 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12473 fix_srcfile_path='`cygpath -w "$srcfile"`'
12474 enable_shared_with_static_runtimes=yes
12475 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012476
John Criswell47fdd832003-07-14 16:52:07 +000012477 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012478 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012479 rhapsody* | darwin1.[012])
12480 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12481 ;;
12482 *) # Darwin 1.3 on
12483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12484 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12485 else
12486 case ${MACOSX_DEPLOYMENT_TARGET} in
12487 10.[012])
12488 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12489 ;;
12490 10.*)
12491 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12492 ;;
12493 esac
12494 fi
12495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012496 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012497 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012498 hardcode_direct=no
12499 hardcode_automatic=yes
12500 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012501 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012502 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012503 if test "$GCC" = yes ; then
12504 output_verbose_link_cmd='echo'
12505 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12506 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507 # 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 +000012508 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}'
12509 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 +000012510 else
12511 case "$cc_basename" in
12512 xlc*)
12513 output_verbose_link_cmd='echo'
12514 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12516 # 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 +000012517 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}'
12518 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 +000012519 ;;
12520 *)
12521 ld_shlibs=no
12522 ;;
12523 esac
John Criswell7a73b802003-06-30 21:59:07 +000012524 fi
John Criswell47fdd832003-07-14 16:52:07 +000012525 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012526
John Criswell47fdd832003-07-14 16:52:07 +000012527 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012529 hardcode_libdir_flag_spec='-L$libdir'
12530 hardcode_shlibpath_var=no
12531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012532
John Criswell47fdd832003-07-14 16:52:07 +000012533 freebsd1*)
12534 ld_shlibs=no
12535 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012536
John Criswell47fdd832003-07-14 16:52:07 +000012537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12538 # support. Future versions do this automatically, but an explicit c++rt0.o
12539 # does not break anything, and helps significantly (at the cost of a little
12540 # extra space).
12541 freebsd2.2*)
12542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12543 hardcode_libdir_flag_spec='-R$libdir'
12544 hardcode_direct=yes
12545 hardcode_shlibpath_var=no
12546 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012547
John Criswell47fdd832003-07-14 16:52:07 +000012548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12549 freebsd2*)
12550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12551 hardcode_direct=yes
12552 hardcode_minus_L=yes
12553 hardcode_shlibpath_var=no
12554 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012555
John Criswell47fdd832003-07-14 16:52:07 +000012556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012557 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012558 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12559 hardcode_libdir_flag_spec='-R$libdir'
12560 hardcode_direct=yes
12561 hardcode_shlibpath_var=no
12562 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012563
John Criswell47fdd832003-07-14 16:52:07 +000012564 hpux9*)
12565 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012566 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 +000012567 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012568 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 +000012569 fi
12570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12571 hardcode_libdir_separator=:
12572 hardcode_direct=yes
12573
12574 # hardcode_minus_L: Not really in the search PATH,
12575 # but as the default location of the library.
12576 hardcode_minus_L=yes
12577 export_dynamic_flag_spec='${wl}-E'
12578 ;;
12579
12580 hpux10* | hpux11*)
12581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12582 case "$host_cpu" in
12583 hppa*64*|ia64*)
12584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 ;;
12586 *)
12587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12588 ;;
12589 esac
12590 else
12591 case "$host_cpu" in
12592 hppa*64*|ia64*)
12593 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12594 ;;
12595 *)
12596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12597 ;;
12598 esac
12599 fi
12600 if test "$with_gnu_ld" = no; then
12601 case "$host_cpu" in
12602 hppa*64*)
12603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12604 hardcode_libdir_flag_spec_ld='+b $libdir'
12605 hardcode_libdir_separator=:
12606 hardcode_direct=no
12607 hardcode_shlibpath_var=no
12608 ;;
12609 ia64*)
12610 hardcode_libdir_flag_spec='-L$libdir'
12611 hardcode_direct=no
12612 hardcode_shlibpath_var=no
12613
12614 # hardcode_minus_L: Not really in the search PATH,
12615 # but as the default location of the library.
12616 hardcode_minus_L=yes
12617 ;;
12618 *)
12619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12620 hardcode_libdir_separator=:
12621 hardcode_direct=yes
12622 export_dynamic_flag_spec='${wl}-E'
12623
12624 # hardcode_minus_L: Not really in the search PATH,
12625 # but as the default location of the library.
12626 hardcode_minus_L=yes
12627 ;;
12628 esac
12629 fi
12630 ;;
12631
12632 irix5* | irix6* | nonstopux*)
12633 if test "$GCC" = yes; then
12634 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'
12635 else
12636 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'
12637 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12638 fi
12639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12640 hardcode_libdir_separator=:
12641 link_all_deplibs=yes
12642 ;;
12643
12644 netbsd*)
12645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12647 else
12648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12649 fi
12650 hardcode_libdir_flag_spec='-R$libdir'
12651 hardcode_direct=yes
12652 hardcode_shlibpath_var=no
12653 ;;
12654
12655 newsos6)
12656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657 hardcode_direct=yes
12658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12659 hardcode_libdir_separator=:
12660 hardcode_shlibpath_var=no
12661 ;;
12662
12663 openbsd*)
12664 hardcode_direct=yes
12665 hardcode_shlibpath_var=no
12666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668 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 +000012669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12670 export_dynamic_flag_spec='${wl}-E'
12671 else
12672 case $host_os in
12673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12675 hardcode_libdir_flag_spec='-R$libdir'
12676 ;;
12677 *)
12678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12680 ;;
12681 esac
12682 fi
12683 ;;
12684
12685 os2*)
12686 hardcode_libdir_flag_spec='-L$libdir'
12687 hardcode_minus_L=yes
12688 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012689 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 +000012690 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12691 ;;
12692
12693 osf3*)
12694 if test "$GCC" = yes; then
12695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12696 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'
12697 else
12698 allow_undefined_flag=' -expect_unresolved \*'
12699 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'
12700 fi
12701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12702 hardcode_libdir_separator=:
12703 ;;
12704
12705 osf4* | osf5*) # as osf3* with the addition of -msym flag
12706 if test "$GCC" = yes; then
12707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12708 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'
12709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12710 else
12711 allow_undefined_flag=' -expect_unresolved \*'
12712 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 +000012713 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12714 $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'
12715
John Criswell47fdd832003-07-14 16:52:07 +000012716 # Both c and cxx compiler support -rpath directly
12717 hardcode_libdir_flag_spec='-rpath $libdir'
12718 fi
12719 hardcode_libdir_separator=:
12720 ;;
12721
12722 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012725 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012726 runpath_var=LD_RUN_PATH
12727 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012728 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012729
John Criswell47fdd832003-07-14 16:52:07 +000012730 solaris*)
12731 no_undefined_flag=' -z text'
12732 if test "$GCC" = yes; then
12733 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012734 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12735 $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 +000012736 else
12737 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012738 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12739 $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 +000012740 fi
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_shlibpath_var=no
12743 case $host_os in
12744 solaris2.[0-5] | solaris2.[0-5].*) ;;
12745 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12747 esac
12748 link_all_deplibs=yes
12749 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012750
John Criswell47fdd832003-07-14 16:52:07 +000012751 sunos4*)
12752 if test "x$host_vendor" = xsequent; then
12753 # Use $CC to link under sequent, because it throws in some extra .o
12754 # files that make .init and .fini sections work.
12755 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12756 else
12757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12758 fi
12759 hardcode_libdir_flag_spec='-L$libdir'
12760 hardcode_direct=yes
12761 hardcode_minus_L=yes
12762 hardcode_shlibpath_var=no
12763 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012764
John Criswell47fdd832003-07-14 16:52:07 +000012765 sysv4)
12766 case $host_vendor in
12767 sni)
12768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12769 hardcode_direct=yes # is this really true???
12770 ;;
12771 siemens)
12772 ## LD is ld it makes a PLAMLIB
12773 ## CC just makes a GrossModule.
12774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12775 reload_cmds='$CC -r -o $output$reload_objs'
12776 hardcode_direct=no
12777 ;;
12778 motorola)
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12781 ;;
12782 esac
12783 runpath_var='LD_RUN_PATH'
12784 hardcode_shlibpath_var=no
12785 ;;
12786
12787 sysv4.3*)
12788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12789 hardcode_shlibpath_var=no
12790 export_dynamic_flag_spec='-Bexport'
12791 ;;
12792
12793 sysv4*MP*)
12794 if test -d /usr/nec; then
12795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_shlibpath_var=no
12797 runpath_var=LD_RUN_PATH
12798 hardcode_runpath_var=yes
12799 ld_shlibs=yes
12800 fi
12801 ;;
12802
12803 sysv4.2uw2*)
12804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12805 hardcode_direct=yes
12806 hardcode_minus_L=no
12807 hardcode_shlibpath_var=no
12808 hardcode_runpath_var=yes
12809 runpath_var=LD_RUN_PATH
12810 ;;
12811
12812 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12813 no_undefined_flag='${wl}-z ${wl}text'
12814 if test "$GCC" = yes; then
12815 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12816 else
12817 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12818 fi
12819 runpath_var='LD_RUN_PATH'
12820 hardcode_shlibpath_var=no
12821 ;;
12822
12823 sysv5*)
12824 no_undefined_flag=' -z text'
12825 # $CC -shared without GNU ld will not create a library from C++
12826 # object files and a static libstdc++, better avoid it by now
12827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12829 $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 +000012830 hardcode_libdir_flag_spec=
12831 hardcode_shlibpath_var=no
12832 runpath_var='LD_RUN_PATH'
12833 ;;
12834
12835 uts4*)
12836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12837 hardcode_libdir_flag_spec='-L$libdir'
12838 hardcode_shlibpath_var=no
12839 ;;
12840
12841 *)
12842 ld_shlibs=no
12843 ;;
12844 esac
12845 fi
12846
John Criswell7a73b802003-06-30 21:59:07 +000012847echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12848echo "${ECHO_T}$ld_shlibs" >&6
12849test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012850
John Criswell47fdd832003-07-14 16:52:07 +000012851variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12852if test "$GCC" = yes; then
12853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12854fi
12855
12856#
12857# Do we need to explicitly link libc?
12858#
12859case "x$archive_cmds_need_lc" in
12860x|xyes)
12861 # Assume -lc should be added
12862 archive_cmds_need_lc=yes
12863
12864 if test "$enable_shared" = yes && test "$GCC" = yes; then
12865 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012866 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012867 # FIXME: we may have to deal with multi-command sequences.
12868 ;;
12869 '$CC '*)
12870 # Test whether the compiler implicitly links with -lc since on some
12871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12872 # to ld, don't add -lc before -lgcc.
12873 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12875 $rm conftest*
12876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12877
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } 2>conftest.err; then
12883 soname=conftest
12884 lib=conftest
12885 libobjs=conftest.$ac_objext
12886 deplibs=
12887 wl=$lt_prog_compiler_wl
12888 compiler_flags=-v
12889 linker_flags=-v
12890 verstring=
12891 output_objdir=.
12892 libname=conftest
12893 lt_save_allow_undefined_flag=$allow_undefined_flag
12894 allow_undefined_flag=
12895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12896 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }
12900 then
12901 archive_cmds_need_lc=no
12902 else
12903 archive_cmds_need_lc=yes
12904 fi
12905 allow_undefined_flag=$lt_save_allow_undefined_flag
12906 else
12907 cat conftest.err 1>&5
12908 fi
12909 $rm conftest*
12910 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12911echo "${ECHO_T}$archive_cmds_need_lc" >&6
12912 ;;
12913 esac
12914 fi
12915 ;;
12916esac
12917
John Criswell7a73b802003-06-30 21:59:07 +000012918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12920library_names_spec=
12921libname_spec='lib$name'
12922soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000012923shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000012924postinstall_cmds=
12925postuninstall_cmds=
12926finish_cmds=
12927finish_eval=
12928shlibpath_var=
12929shlibpath_overrides_runpath=unknown
12930version_type=none
12931dynamic_linker="$host_os ld.so"
12932sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000012933if test "$GCC" = yes; then
12934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12936 # if the path contains ";" then we assume it to be the separator
12937 # otherwise default to the standard path separator (i.e. ":") - it is
12938 # assumed that no part of a normal pathname contains ";" but that should
12939 # okay in the real world where ";" in dirpaths is itself problematic.
12940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12941 else
12942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12943 fi
12944else
12945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12946fi
12947need_lib_prefix=unknown
12948hardcode_into_libs=no
12949
12950# when you set need_version to no, make sure it does not cause -set_version
12951# flags to be left without arguments
12952need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000012953
12954case $host_os in
12955aix3*)
12956 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000012958 shlibpath_var=LIBPATH
12959
John Criswell47fdd832003-07-14 16:52:07 +000012960 # AIX 3 has no versioning support, so we append a major version to the name.
12961 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000012962 ;;
12963
12964aix4* | aix5*)
12965 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012966 need_lib_prefix=no
12967 need_version=no
12968 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000012969 if test "$host_cpu" = ia64; then
12970 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000012971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012972 shlibpath_var=LD_LIBRARY_PATH
12973 else
12974 # With GCC up to 2.95.x, collect2 would create an import file
12975 # for dependence libraries. The import file would start with
12976 # the line `#! .'. This would cause the generated library to
12977 # depend on `.', always an invalid library. This was fixed in
12978 # development snapshots of GCC prior to 3.0.
12979 case $host_os in
12980 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000012981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12982 echo ' yes '
12983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12984 :
12985 else
12986 can_build_shared=no
12987 fi
12988 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012989 esac
John Criswell47fdd832003-07-14 16:52:07 +000012990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991 # soname into executable. Probably we can add versioning support to
12992 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000012993 if test "$aix_use_runtimelinking" = yes; then
12994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995 # instead of lib<name>.a to let people know that these are not
12996 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000012997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012998 else
12999 # We preserve .a as extension for shared libraries through AIX4.2
13000 # and later when we are not doing run time linking.
13001 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013002 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013003 fi
13004 shlibpath_var=LIBPATH
13005 fi
13006 ;;
13007
13008amigaos*)
13009 library_names_spec='$libname.ixlibrary $libname.a'
13010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013011 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 +000013012 ;;
13013
13014beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013015 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013016 dynamic_linker="$host_os ld.so"
13017 shlibpath_var=LIBRARY_PATH
13018 ;;
13019
Reid Spencer2706f8c2004-09-19 23:53:36 +000013020bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013021 version_type=linux
13022 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013029 # the default ld.so.conf also contains /usr/contrib/lib and
13030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13031 # libtool to hard-code these into programs
13032 ;;
13033
13034cygwin* | mingw* | pw32*)
13035 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013036 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013037 need_version=no
13038 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013039
John Criswell7a73b802003-06-30 21:59:07 +000013040 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013041 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013042 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013044 postinstall_cmds='base_file=`basename \${file}`~
13045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13046 dldir=$destdir/`dirname \$dlpath`~
13047 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013048 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13050 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013051 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013052 shlibpath_overrides_runpath=yes
13053
13054 case $host_os in
13055 cygwin*)
13056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13057 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 +000013058 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013059 ;;
13060 mingw*)
13061 # MinGW DLLs use traditional 'lib' prefix
13062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13064 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13065 # It is most probably a Windows format PATH printed by
13066 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13067 # path with ; separators, and with drive letters. We can handle the
13068 # drive letters (cygwin fileutils understands them), so leave them,
13069 # especially as we might pass files found there to a mingw objdump,
13070 # which wouldn't understand a cygwinified path. Ahh.
13071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13072 else
13073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13074 fi
13075 ;;
13076 pw32*)
13077 # pw32 DLLs use 'pw' prefix rather than 'lib'
13078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13079 ;;
13080 esac
John Criswell7a73b802003-06-30 21:59:07 +000013081 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013082
John Criswell7a73b802003-06-30 21:59:07 +000013083 *)
John Criswell47fdd832003-07-14 16:52:07 +000013084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013085 ;;
13086 esac
13087 dynamic_linker='Win32 ld.exe'
13088 # FIXME: first we should search . and the directory the executable is in
13089 shlibpath_var=PATH
13090 ;;
13091
13092darwin* | rhapsody*)
13093 dynamic_linker="$host_os dyld"
13094 version_type=darwin
13095 need_lib_prefix=no
13096 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013097 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013098 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013099 shlibpath_overrides_runpath=yes
13100 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013101 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013102 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013103 if test "$GCC" = yes; then
13104 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"`
13105 else
13106 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013107 fi
13108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13109 ;;
13110
13111dgux*)
13112 version_type=linux
13113 need_lib_prefix=no
13114 need_version=no
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13116 soname_spec='${libname}${release}${shared_ext}$major'
13117 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013118 ;;
13119
13120freebsd1*)
13121 dynamic_linker=no
13122 ;;
13123
Reid Spencer2706f8c2004-09-19 23:53:36 +000013124kfreebsd*-gnu)
13125 version_type=linux
13126 need_lib_prefix=no
13127 need_version=no
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13129 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=no
13132 hardcode_into_libs=yes
13133 dynamic_linker='GNU ld.so'
13134 ;;
13135
John Criswell7a73b802003-06-30 21:59:07 +000013136freebsd*)
13137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13138 version_type=freebsd-$objformat
13139 case $version_type in
13140 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013142 need_version=no
13143 need_lib_prefix=no
13144 ;;
13145 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013147 need_version=yes
13148 ;;
13149 esac
13150 shlibpath_var=LD_LIBRARY_PATH
13151 case $host_os in
13152 freebsd2*)
13153 shlibpath_overrides_runpath=yes
13154 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013155 freebsd3.01* | freebsdelf3.01*)
13156 shlibpath_overrides_runpath=yes
13157 hardcode_into_libs=yes
13158 ;;
13159 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013160 shlibpath_overrides_runpath=no
13161 hardcode_into_libs=yes
13162 ;;
13163 esac
13164 ;;
13165
13166gnu*)
13167 version_type=linux
13168 need_lib_prefix=no
13169 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013172 shlibpath_var=LD_LIBRARY_PATH
13173 hardcode_into_libs=yes
13174 ;;
13175
13176hpux9* | hpux10* | hpux11*)
13177 # Give a soname corresponding to the major version so that dld.sl refuses to
13178 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013179 version_type=sunos
13180 need_lib_prefix=no
13181 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013182 case "$host_cpu" in
13183 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013184 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013185 hardcode_into_libs=yes
13186 dynamic_linker="$host_os dld.so"
13187 shlibpath_var=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190 soname_spec='${libname}${release}${shared_ext}$major'
13191 if test "X$HPUX_IA64_MODE" = X32; then
13192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13193 else
13194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13195 fi
13196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13197 ;;
13198 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013199 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013200 hardcode_into_libs=yes
13201 dynamic_linker="$host_os dld.sl"
13202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208 ;;
13209 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013210 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013211 dynamic_linker="$host_os dld.sl"
13212 shlibpath_var=SHLIB_PATH
13213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13215 soname_spec='${libname}${release}${shared_ext}$major'
13216 ;;
13217 esac
John Criswell7a73b802003-06-30 21:59:07 +000013218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13219 postinstall_cmds='chmod 555 $lib'
13220 ;;
13221
John Criswell47fdd832003-07-14 16:52:07 +000013222irix5* | irix6* | nonstopux*)
13223 case $host_os in
13224 nonstopux*) version_type=nonstopux ;;
13225 *)
13226 if test "$lt_cv_prog_gnu_ld" = yes; then
13227 version_type=linux
13228 else
13229 version_type=irix
13230 fi ;;
13231 esac
John Criswell7a73b802003-06-30 21:59:07 +000013232 need_lib_prefix=no
13233 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013234 soname_spec='${libname}${release}${shared_ext}$major'
13235 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 +000013236 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013237 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013238 libsuff= shlibsuff=
13239 ;;
13240 *)
13241 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13243 libsuff= shlibsuff= libmagic=32-bit;;
13244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13245 libsuff=32 shlibsuff=N32 libmagic=N32;;
13246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013248 *) libsuff= shlibsuff= libmagic=never-match;;
13249 esac
13250 ;;
13251 esac
13252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13253 shlibpath_overrides_runpath=no
13254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013256 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013257 ;;
13258
13259# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013260linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013261 dynamic_linker=no
13262 ;;
13263
13264# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013265linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013266 version_type=linux
13267 need_lib_prefix=no
13268 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 shlibpath_overrides_runpath=no
13274 # This implies no fast_install, which is unacceptable.
13275 # Some rework will be needed to allow for fast_install
13276 # before this can be enabled.
13277 hardcode_into_libs=yes
13278
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279 # Append ld.so.conf contents to the search path
13280 if test -f /etc/ld.so.conf; then
13281 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13283 fi
13284
John Criswell7a73b802003-06-30 21:59:07 +000013285 # We used to test for /lib/ld.so.1 and disable shared libraries on
13286 # powerpc, because MkLinux only supported shared libraries with the
13287 # GNU dynamic linker. Since this was broken with cross compilers,
13288 # most powerpc-linux boxes support dynamic linking these days and
13289 # people can always --disable-shared, the test was removed, and we
13290 # assume the GNU/Linux dynamic linker is in use.
13291 dynamic_linker='GNU/Linux ld.so'
13292 ;;
13293
Reid Spencer2706f8c2004-09-19 23:53:36 +000013294knetbsd*-gnu)
13295 version_type=linux
13296 need_lib_prefix=no
13297 need_version=no
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 shlibpath_overrides_runpath=no
13302 hardcode_into_libs=yes
13303 dynamic_linker='GNU ld.so'
13304 ;;
13305
John Criswell7a73b802003-06-30 21:59:07 +000013306netbsd*)
13307 version_type=sunos
13308 need_lib_prefix=no
13309 need_version=no
13310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13313 dynamic_linker='NetBSD (a.out) ld.so'
13314 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013316 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013317 dynamic_linker='NetBSD ld.elf_so'
13318 fi
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes
13321 hardcode_into_libs=yes
13322 ;;
13323
13324newsos6)
13325 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 shlibpath_var=LD_LIBRARY_PATH
13328 shlibpath_overrides_runpath=yes
13329 ;;
13330
Reid Spencer2706f8c2004-09-19 23:53:36 +000013331nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013332 version_type=linux
13333 need_lib_prefix=no
13334 need_version=no
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=yes
13339 ;;
13340
13341openbsd*)
13342 version_type=sunos
13343 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013344 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013348 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 +000013349 case $host_os in
13350 openbsd2.[89] | openbsd2.[89].*)
13351 shlibpath_overrides_runpath=no
13352 ;;
13353 *)
13354 shlibpath_overrides_runpath=yes
13355 ;;
13356 esac
John Criswell7a73b802003-06-30 21:59:07 +000013357 else
13358 shlibpath_overrides_runpath=yes
13359 fi
John Criswell7a73b802003-06-30 21:59:07 +000013360 ;;
13361
13362os2*)
13363 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013364 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013365 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013366 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013367 dynamic_linker='OS/2 ld.exe'
13368 shlibpath_var=LIBPATH
13369 ;;
13370
13371osf3* | osf4* | osf5*)
13372 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013373 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013374 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013375 soname_spec='${libname}${release}${shared_ext}$major'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013377 shlibpath_var=LD_LIBRARY_PATH
13378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13380 ;;
13381
13382sco3.2v5*)
13383 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013384 soname_spec='${libname}${release}${shared_ext}$major'
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013386 shlibpath_var=LD_LIBRARY_PATH
13387 ;;
13388
13389solaris*)
13390 version_type=linux
13391 need_lib_prefix=no
13392 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=yes
13397 hardcode_into_libs=yes
13398 # ldd complains unless libraries are executable
13399 postinstall_cmds='chmod +x $lib'
13400 ;;
13401
13402sunos4*)
13403 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013405 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=yes
13408 if test "$with_gnu_ld" = yes; then
13409 need_lib_prefix=no
13410 fi
13411 need_version=yes
13412 ;;
13413
13414sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13415 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013418 shlibpath_var=LD_LIBRARY_PATH
13419 case $host_vendor in
13420 sni)
13421 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013422 need_lib_prefix=no
13423 export_dynamic_flag_spec='${wl}-Blargedynsym'
13424 runpath_var=LD_RUN_PATH
13425 ;;
13426 siemens)
13427 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013428 ;;
13429 motorola)
13430 need_lib_prefix=no
13431 need_version=no
13432 shlibpath_overrides_runpath=no
13433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13434 ;;
13435 esac
13436 ;;
13437
John Criswell7a73b802003-06-30 21:59:07 +000013438sysv4*MP*)
13439 if test -d /usr/nec ;then
13440 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013441 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13442 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013443 shlibpath_var=LD_LIBRARY_PATH
13444 fi
13445 ;;
13446
John Criswell47fdd832003-07-14 16:52:07 +000013447uts4*)
13448 version_type=linux
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 soname_spec='${libname}${release}${shared_ext}$major'
13451 shlibpath_var=LD_LIBRARY_PATH
13452 ;;
13453
John Criswell7a73b802003-06-30 21:59:07 +000013454*)
13455 dynamic_linker=no
13456 ;;
13457esac
13458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13459echo "${ECHO_T}$dynamic_linker" >&6
13460test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013461
Reid Spencer2706f8c2004-09-19 23:53:36 +000013462echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13463echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13464hardcode_action=
13465if test -n "$hardcode_libdir_flag_spec" || \
13466 test -n "$runpath_var" || \
13467 test "X$hardcode_automatic" = "Xyes" ; then
13468
13469 # We can hardcode non-existant directories.
13470 if test "$hardcode_direct" != no &&
13471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13472 # have to relink, otherwise we might link with an installed library
13473 # when we should be linking with a yet-to-be-installed one
13474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13475 test "$hardcode_minus_L" != no; then
13476 # Linking always hardcodes the temporary library directory.
13477 hardcode_action=relink
13478 else
13479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13480 hardcode_action=immediate
13481 fi
13482else
13483 # We cannot hardcode anything, or else we can only hardcode existing
13484 # directories.
13485 hardcode_action=unsupported
13486fi
13487echo "$as_me:$LINENO: result: $hardcode_action" >&5
13488echo "${ECHO_T}$hardcode_action" >&6
13489
13490if test "$hardcode_action" = relink; then
13491 # Fast installation is not supported
13492 enable_fast_install=no
13493elif test "$shlibpath_overrides_runpath" = yes ||
13494 test "$enable_shared" = no; then
13495 # Fast installation is not necessary
13496 enable_fast_install=needless
13497fi
13498
13499striplib=
13500old_striplib=
13501echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13502echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13503if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13506 echo "$as_me:$LINENO: result: yes" >&5
13507echo "${ECHO_T}yes" >&6
13508else
13509# FIXME - insert some real tests, host_os isn't really good enough
13510 case $host_os in
13511 darwin*)
13512 if test -n "$STRIP" ; then
13513 striplib="$STRIP -x"
13514 echo "$as_me:$LINENO: result: yes" >&5
13515echo "${ECHO_T}yes" >&6
13516 else
13517 echo "$as_me:$LINENO: result: no" >&5
13518echo "${ECHO_T}no" >&6
13519fi
13520 ;;
13521 *)
13522 echo "$as_me:$LINENO: result: no" >&5
13523echo "${ECHO_T}no" >&6
13524 ;;
13525 esac
13526fi
13527
John Criswell7a73b802003-06-30 21:59:07 +000013528if test "x$enable_dlopen" != xyes; then
13529 enable_dlopen=unknown
13530 enable_dlopen_self=unknown
13531 enable_dlopen_self_static=unknown
13532else
13533 lt_cv_dlopen=no
13534 lt_cv_dlopen_libs=
13535
13536 case $host_os in
13537 beos*)
13538 lt_cv_dlopen="load_add_on"
13539 lt_cv_dlopen_libs=
13540 lt_cv_dlopen_self=yes
13541 ;;
13542
John Criswell47fdd832003-07-14 16:52:07 +000013543 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013544 lt_cv_dlopen="LoadLibrary"
13545 lt_cv_dlopen_libs=
13546 ;;
13547
John Criswell47fdd832003-07-14 16:52:07 +000013548 cygwin*)
13549 lt_cv_dlopen="dlopen"
13550 lt_cv_dlopen_libs=
13551 ;;
13552
13553 darwin*)
13554 # if libdl is installed we need to link against it
13555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13557if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559else
13560 ac_check_lib_save_LIBS=$LIBS
13561LIBS="-ldl $LIBS"
13562cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013563/* confdefs.h. */
13564_ACEOF
13565cat confdefs.h >>conftest.$ac_ext
13566cat >>conftest.$ac_ext <<_ACEOF
13567/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013568
13569/* Override any gcc2 internal prototype to avoid an error. */
13570#ifdef __cplusplus
13571extern "C"
13572#endif
13573/* We use char because int might match the return type of a gcc2
13574 builtin and then its argument prototype would still apply. */
13575char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013576int
13577main ()
13578{
13579dlopen ();
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584rm -f conftest.$ac_objext conftest$ac_exeext
13585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013586 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013587 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013593 { ac_try='test -z "$ac_c_werror_flag"
13594 || test ! -s conftest.err'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 ac_cv_lib_dl_dlopen=yes
13607else
13608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013609sed 's/^/| /' conftest.$ac_ext >&5
13610
John Criswell47fdd832003-07-14 16:52:07 +000013611ac_cv_lib_dl_dlopen=no
13612fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013613rm -f conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013615LIBS=$ac_check_lib_save_LIBS
13616fi
13617echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13618echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13619if test $ac_cv_lib_dl_dlopen = yes; then
13620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13621else
13622
13623 lt_cv_dlopen="dyld"
13624 lt_cv_dlopen_libs=
13625 lt_cv_dlopen_self=yes
13626
13627fi
13628
13629 ;;
13630
John Criswell7a73b802003-06-30 21:59:07 +000013631 *)
13632 echo "$as_me:$LINENO: checking for shl_load" >&5
13633echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13634if test "${ac_cv_func_shl_load+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013643/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645#define shl_load innocuous_shl_load
13646
John Criswell7a73b802003-06-30 21:59:07 +000013647/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013648 which can conflict with char shl_load (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013651
John Criswell0c38eaf2003-09-10 15:17:25 +000013652#ifdef __STDC__
13653# include <limits.h>
13654#else
13655# include <assert.h>
13656#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013657
13658#undef shl_load
13659
John Criswell7a73b802003-06-30 21:59:07 +000013660/* Override any gcc2 internal prototype to avoid an error. */
13661#ifdef __cplusplus
13662extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013663{
John Criswell7a73b802003-06-30 21:59:07 +000013664#endif
13665/* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13667char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013668/* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671#if defined (__stub_shl_load) || defined (__stub___shl_load)
13672choke me
13673#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013674char (*f) () = shl_load;
13675#endif
13676#ifdef __cplusplus
13677}
John Criswell7a73b802003-06-30 21:59:07 +000013678#endif
13679
John Criswell0c38eaf2003-09-10 15:17:25 +000013680int
13681main ()
13682{
13683return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013684 ;
13685 return 0;
13686}
13687_ACEOF
13688rm -f conftest.$ac_objext conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013690 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_func_shl_load=yes
13711else
13712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013713sed 's/^/| /' conftest.$ac_ext >&5
13714
John Criswell7a73b802003-06-30 21:59:07 +000013715ac_cv_func_shl_load=no
13716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013717rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013719fi
13720echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13721echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13722if test $ac_cv_func_shl_load = yes; then
13723 lt_cv_dlopen="shl_load"
13724else
13725 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730 ac_check_lib_save_LIBS=$LIBS
13731LIBS="-ldld $LIBS"
13732cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013733/* confdefs.h. */
13734_ACEOF
13735cat confdefs.h >>conftest.$ac_ext
13736cat >>conftest.$ac_ext <<_ACEOF
13737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013738
13739/* Override any gcc2 internal prototype to avoid an error. */
13740#ifdef __cplusplus
13741extern "C"
13742#endif
13743/* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013746int
13747main ()
13748{
13749shl_load ();
13750 ;
13751 return 0;
13752}
13753_ACEOF
13754rm -f conftest.$ac_objext conftest$ac_exeext
13755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013756 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_cv_lib_dld_shl_load=yes
13777else
13778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013779sed 's/^/| /' conftest.$ac_ext >&5
13780
John Criswell7a73b802003-06-30 21:59:07 +000013781ac_cv_lib_dld_shl_load=no
13782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013783rm -f conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013785LIBS=$ac_check_lib_save_LIBS
13786fi
13787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13788echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13789if test $ac_cv_lib_dld_shl_load = yes; then
13790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13791else
13792 echo "$as_me:$LINENO: checking for dlopen" >&5
13793echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13794if test "${ac_cv_func_dlopen+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013798/* confdefs.h. */
13799_ACEOF
13800cat confdefs.h >>conftest.$ac_ext
13801cat >>conftest.$ac_ext <<_ACEOF
13802/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013803/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13805#define dlopen innocuous_dlopen
13806
John Criswell7a73b802003-06-30 21:59:07 +000013807/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013808 which can conflict with char dlopen (); below.
13809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13810 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013811
John Criswell0c38eaf2003-09-10 15:17:25 +000013812#ifdef __STDC__
13813# include <limits.h>
13814#else
13815# include <assert.h>
13816#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817
13818#undef dlopen
13819
John Criswell7a73b802003-06-30 21:59:07 +000013820/* Override any gcc2 internal prototype to avoid an error. */
13821#ifdef __cplusplus
13822extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013823{
John Criswell7a73b802003-06-30 21:59:07 +000013824#endif
13825/* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013828/* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831#if defined (__stub_dlopen) || defined (__stub___dlopen)
13832choke me
13833#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013834char (*f) () = dlopen;
13835#endif
13836#ifdef __cplusplus
13837}
John Criswell7a73b802003-06-30 21:59:07 +000013838#endif
13839
John Criswell0c38eaf2003-09-10 15:17:25 +000013840int
13841main ()
13842{
13843return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013844 ;
13845 return 0;
13846}
13847_ACEOF
13848rm -f conftest.$ac_objext conftest$ac_exeext
13849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013850 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_func_dlopen=yes
13871else
13872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013873sed 's/^/| /' conftest.$ac_ext >&5
13874
John Criswell7a73b802003-06-30 21:59:07 +000013875ac_cv_func_dlopen=no
13876fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013877rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013879fi
13880echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13881echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13882if test $ac_cv_func_dlopen = yes; then
13883 lt_cv_dlopen="dlopen"
13884else
13885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 ac_check_lib_save_LIBS=$LIBS
13891LIBS="-ldl $LIBS"
13892cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013898
13899/* Override any gcc2 internal prototype to avoid an error. */
13900#ifdef __cplusplus
13901extern "C"
13902#endif
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013906int
13907main ()
13908{
13909dlopen ();
13910 ;
13911 return 0;
13912}
13913_ACEOF
13914rm -f conftest.$ac_objext conftest$ac_exeext
13915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013916 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013917 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_dlopen=yes
13937else
13938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013939sed 's/^/| /' conftest.$ac_ext >&5
13940
John Criswell7a73b802003-06-30 21:59:07 +000013941ac_cv_lib_dl_dlopen=no
13942fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013943rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013945LIBS=$ac_check_lib_save_LIBS
13946fi
13947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949if test $ac_cv_lib_dl_dlopen = yes; then
13950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13951else
13952 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13953echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13954if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956else
13957 ac_check_lib_save_LIBS=$LIBS
13958LIBS="-lsvld $LIBS"
13959cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013965
13966/* Override any gcc2 internal prototype to avoid an error. */
13967#ifdef __cplusplus
13968extern "C"
13969#endif
13970/* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013973int
13974main ()
13975{
13976dlopen ();
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013983 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_lib_svld_dlopen=yes
14004else
14005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014006sed 's/^/| /' conftest.$ac_ext >&5
14007
John Criswell7a73b802003-06-30 21:59:07 +000014008ac_cv_lib_svld_dlopen=no
14009fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014010rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014012LIBS=$ac_check_lib_save_LIBS
14013fi
14014echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14015echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14016if test $ac_cv_lib_svld_dlopen = yes; then
14017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14018else
14019 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14020echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14021if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023else
14024 ac_check_lib_save_LIBS=$LIBS
14025LIBS="-ldld $LIBS"
14026cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014027/* confdefs.h. */
14028_ACEOF
14029cat confdefs.h >>conftest.$ac_ext
14030cat >>conftest.$ac_ext <<_ACEOF
14031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014032
14033/* Override any gcc2 internal prototype to avoid an error. */
14034#ifdef __cplusplus
14035extern "C"
14036#endif
14037/* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014040int
14041main ()
14042{
14043dld_link ();
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext conftest$ac_exeext
14049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014050 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014057 { ac_try='test -z "$ac_c_werror_flag"
14058 || test ! -s conftest.err'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_cv_lib_dld_dld_link=yes
14071else
14072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014073sed 's/^/| /' conftest.$ac_ext >&5
14074
John Criswell7a73b802003-06-30 21:59:07 +000014075ac_cv_lib_dld_dld_link=no
14076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014077rm -f conftest.err conftest.$ac_objext \
14078 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014079LIBS=$ac_check_lib_save_LIBS
14080fi
14081echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14083if test $ac_cv_lib_dld_dld_link = yes; then
14084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14085fi
14086
14087
14088fi
14089
14090
14091fi
14092
14093
14094fi
14095
14096
14097fi
14098
14099
14100fi
14101
14102 ;;
14103 esac
14104
14105 if test "x$lt_cv_dlopen" != xno; then
14106 enable_dlopen=yes
14107 else
14108 enable_dlopen=no
14109 fi
14110
14111 case $lt_cv_dlopen in
14112 dlopen)
14113 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014115
14116 save_LDFLAGS="$LDFLAGS"
14117 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14118
14119 save_LIBS="$LIBS"
14120 LIBS="$lt_cv_dlopen_libs $LIBS"
14121
14122 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14123echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14124if test "${lt_cv_dlopen_self+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126else
14127 if test "$cross_compiling" = yes; then :
14128 lt_cv_dlopen_self=cross
14129else
John Criswell47fdd832003-07-14 16:52:07 +000014130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014131 lt_status=$lt_dlunknown
14132 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000014133#line 14133 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014134#include "confdefs.h"
14135
14136#if HAVE_DLFCN_H
14137#include <dlfcn.h>
14138#endif
14139
14140#include <stdio.h>
14141
14142#ifdef RTLD_GLOBAL
14143# define LT_DLGLOBAL RTLD_GLOBAL
14144#else
14145# ifdef DL_GLOBAL
14146# define LT_DLGLOBAL DL_GLOBAL
14147# else
14148# define LT_DLGLOBAL 0
14149# endif
14150#endif
14151
14152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14153 find out it does not work in some platform. */
14154#ifndef LT_DLLAZY_OR_NOW
14155# ifdef RTLD_LAZY
14156# define LT_DLLAZY_OR_NOW RTLD_LAZY
14157# else
14158# ifdef DL_LAZY
14159# define LT_DLLAZY_OR_NOW DL_LAZY
14160# else
14161# ifdef RTLD_NOW
14162# define LT_DLLAZY_OR_NOW RTLD_NOW
14163# else
14164# ifdef DL_NOW
14165# define LT_DLLAZY_OR_NOW DL_NOW
14166# else
14167# define LT_DLLAZY_OR_NOW 0
14168# endif
14169# endif
14170# endif
14171# endif
14172#endif
14173
14174#ifdef __cplusplus
14175extern "C" void exit (int);
14176#endif
14177
14178void fnord() { int i=42;}
14179int main ()
14180{
14181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14182 int status = $lt_dlunknown;
14183
14184 if (self)
14185 {
14186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14188 /* dlclose (self); */
14189 }
14190
14191 exit (status);
14192}
14193EOF
14194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14195 (eval $ac_link) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14199 (./conftest; exit; ) 2>/dev/null
14200 lt_status=$?
14201 case x$lt_status in
14202 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14203 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14204 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14205 esac
14206 else :
14207 # compilation failed
14208 lt_cv_dlopen_self=no
14209 fi
14210fi
14211rm -fr conftest*
14212
14213
14214fi
14215echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14216echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14217
14218 if test "x$lt_cv_dlopen_self" = xyes; then
14219 LDFLAGS="$LDFLAGS $link_static_flag"
14220 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14221echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14222if test "${lt_cv_dlopen_self_static+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225 if test "$cross_compiling" = yes; then :
14226 lt_cv_dlopen_self_static=cross
14227else
John Criswell47fdd832003-07-14 16:52:07 +000014228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014229 lt_status=$lt_dlunknown
14230 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000014231#line 14231 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014232#include "confdefs.h"
14233
14234#if HAVE_DLFCN_H
14235#include <dlfcn.h>
14236#endif
14237
14238#include <stdio.h>
14239
14240#ifdef RTLD_GLOBAL
14241# define LT_DLGLOBAL RTLD_GLOBAL
14242#else
14243# ifdef DL_GLOBAL
14244# define LT_DLGLOBAL DL_GLOBAL
14245# else
14246# define LT_DLGLOBAL 0
14247# endif
14248#endif
14249
14250/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14251 find out it does not work in some platform. */
14252#ifndef LT_DLLAZY_OR_NOW
14253# ifdef RTLD_LAZY
14254# define LT_DLLAZY_OR_NOW RTLD_LAZY
14255# else
14256# ifdef DL_LAZY
14257# define LT_DLLAZY_OR_NOW DL_LAZY
14258# else
14259# ifdef RTLD_NOW
14260# define LT_DLLAZY_OR_NOW RTLD_NOW
14261# else
14262# ifdef DL_NOW
14263# define LT_DLLAZY_OR_NOW DL_NOW
14264# else
14265# define LT_DLLAZY_OR_NOW 0
14266# endif
14267# endif
14268# endif
14269# endif
14270#endif
14271
14272#ifdef __cplusplus
14273extern "C" void exit (int);
14274#endif
14275
14276void fnord() { int i=42;}
14277int main ()
14278{
14279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14280 int status = $lt_dlunknown;
14281
14282 if (self)
14283 {
14284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14286 /* dlclose (self); */
14287 }
14288
14289 exit (status);
14290}
14291EOF
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14297 (./conftest; exit; ) 2>/dev/null
14298 lt_status=$?
14299 case x$lt_status in
14300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14302 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14303 esac
14304 else :
14305 # compilation failed
14306 lt_cv_dlopen_self_static=no
14307 fi
14308fi
14309rm -fr conftest*
14310
14311
14312fi
14313echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14314echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14315 fi
14316
14317 CPPFLAGS="$save_CPPFLAGS"
14318 LDFLAGS="$save_LDFLAGS"
14319 LIBS="$save_LIBS"
14320 ;;
14321 esac
14322
14323 case $lt_cv_dlopen_self in
14324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14325 *) enable_dlopen_self=unknown ;;
14326 esac
14327
14328 case $lt_cv_dlopen_self_static in
14329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14330 *) enable_dlopen_self_static=unknown ;;
14331 esac
14332fi
14333
14334
John Criswell47fdd832003-07-14 16:52:07 +000014335# Report which librarie types wil actually be built
14336echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14337echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14338echo "$as_me:$LINENO: result: $can_build_shared" >&5
14339echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014340
John Criswell47fdd832003-07-14 16:52:07 +000014341echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14342echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14343test "$can_build_shared" = "no" && enable_shared=no
14344
14345# On AIX, shared libraries and static libraries use the same namespace, and
14346# are all built from PIC.
14347case "$host_os" in
14348aix3*)
14349 test "$enable_shared" = yes && enable_static=no
14350 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014352 postinstall_cmds='$RANLIB $lib'
14353 fi
14354 ;;
14355
Reid Spencer2706f8c2004-09-19 23:53:36 +000014356aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14358 test "$enable_shared" = yes && enable_static=no
14359 fi
John Criswell7a73b802003-06-30 21:59:07 +000014360 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014361esac
14362echo "$as_me:$LINENO: result: $enable_shared" >&5
14363echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014364
John Criswell47fdd832003-07-14 16:52:07 +000014365echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14366echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14367# Make sure either enable_shared or enable_static is yes.
14368test "$enable_shared" = yes || enable_static=yes
14369echo "$as_me:$LINENO: result: $enable_static" >&5
14370echo "${ECHO_T}$enable_static" >&6
14371
14372# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014373# libtool distribution, otherwise you forgot to ship ltmain.sh
14374# with your package, and you will get complaints that there are
14375# no rules to generate ltmain.sh.
14376if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014377 # See if we are running on zsh, and set the options which allow our commands through
14378 # without removal of \ escapes.
14379 if test -n "${ZSH_VERSION+set}" ; then
14380 setopt NO_GLOB_SUBST
14381 fi
John Criswell7a73b802003-06-30 21:59:07 +000014382 # Now quote all the things that may contain metacharacters while being
14383 # careful not to overquote the AC_SUBSTed values. We take copies of the
14384 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014385 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14386 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14389 deplibs_check_method reload_flag reload_cmds need_locks \
14390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14391 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014393 old_postinstall_cmds old_postuninstall_cmds \
14394 compiler \
14395 CC \
14396 LD \
14397 lt_prog_compiler_wl \
14398 lt_prog_compiler_pic \
14399 lt_prog_compiler_static \
14400 lt_prog_compiler_no_builtin_flag \
14401 export_dynamic_flag_spec \
14402 thread_safe_flag_spec \
14403 whole_archive_flag_spec \
14404 enable_shared_with_static_runtimes \
14405 old_archive_cmds \
14406 old_archive_from_new_cmds \
14407 predep_objects \
14408 postdep_objects \
14409 predeps \
14410 postdeps \
14411 compiler_lib_search_path \
14412 archive_cmds \
14413 archive_expsym_cmds \
14414 postinstall_cmds \
14415 postuninstall_cmds \
14416 old_archive_from_expsyms_cmds \
14417 allow_undefined_flag \
14418 no_undefined_flag \
14419 export_symbols_cmds \
14420 hardcode_libdir_flag_spec \
14421 hardcode_libdir_flag_spec_ld \
14422 hardcode_libdir_separator \
14423 hardcode_automatic \
14424 module_cmds \
14425 module_expsym_cmds \
14426 lt_cv_prog_compiler_c_o \
14427 exclude_expsyms \
14428 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014429
14430 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014431 old_archive_cmds | \
14432 old_archive_from_new_cmds | \
14433 archive_cmds | \
14434 archive_expsym_cmds | \
14435 module_cmds | \
14436 module_expsym_cmds | \
14437 old_archive_from_expsyms_cmds | \
14438 export_symbols_cmds | \
14439 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014440 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014441 old_postinstall_cmds | old_postuninstall_cmds | \
14442 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014443 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014444 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 +000014445 ;;
14446 *)
14447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14448 ;;
14449 esac
14450 done
14451
John Criswell47fdd832003-07-14 16:52:07 +000014452 case $lt_echo in
14453 *'\$0 --fallback-echo"')
14454 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14455 ;;
14456 esac
14457
14458cfgfile="${ofile}T"
14459 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14460 $rm -f "$cfgfile"
14461 { echo "$as_me:$LINENO: creating $ofile" >&5
14462echo "$as_me: creating $ofile" >&6;}
14463
14464 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014465#! $SHELL
14466
John Criswell47fdd832003-07-14 16:52:07 +000014467# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014468# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14469# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14470#
John Criswell47fdd832003-07-14 16:52:07 +000014471# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14472# Free Software Foundation, Inc.
14473#
14474# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014475# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14476#
14477# This program is free software; you can redistribute it and/or modify
14478# it under the terms of the GNU General Public License as published by
14479# the Free Software Foundation; either version 2 of the License, or
14480# (at your option) any later version.
14481#
14482# This program is distributed in the hope that it will be useful, but
14483# WITHOUT ANY WARRANTY; without even the implied warranty of
14484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14485# General Public License for more details.
14486#
14487# You should have received a copy of the GNU General Public License
14488# along with this program; if not, write to the Free Software
14489# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14490#
14491# As a special exception to the GNU General Public License, if you
14492# distribute this file as part of a program that contains a
14493# configuration script generated by Autoconf, you may include it under
14494# the same distribution terms that you use for the rest of that program.
14495
John Criswell47fdd832003-07-14 16:52:07 +000014496# A sed program that does not truncate output.
14497SED=$lt_SED
14498
John Criswell7a73b802003-06-30 21:59:07 +000014499# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014500Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014501
14502# The HP-UX ksh and POSIX shell print the target directory to stdout
14503# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014505
John Criswell47fdd832003-07-14 16:52:07 +000014506# The names of the tagged configurations supported by this script.
14507available_tags=
14508
John Criswell7a73b802003-06-30 21:59:07 +000014509# ### BEGIN LIBTOOL CONFIG
14510
14511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14512
14513# Shell to use when invoking shell scripts.
14514SHELL=$lt_SHELL
14515
14516# Whether or not to build shared libraries.
14517build_libtool_libs=$enable_shared
14518
14519# Whether or not to build static libraries.
14520build_old_libs=$enable_static
14521
14522# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014523build_libtool_need_lc=$archive_cmds_need_lc
14524
14525# Whether or not to disallow shared libs when runtime libs are static
14526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014527
14528# Whether or not to optimize for fast installation.
14529fast_install=$enable_fast_install
14530
14531# The host system.
14532host_alias=$host_alias
14533host=$host
14534
14535# An echo program that does not interpret backslashes.
14536echo=$lt_echo
14537
14538# The archiver.
14539AR=$lt_AR
14540AR_FLAGS=$lt_AR_FLAGS
14541
John Criswell47fdd832003-07-14 16:52:07 +000014542# A C compiler.
14543LTCC=$lt_LTCC
14544
14545# A language-specific compiler.
14546CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014547
14548# Is the compiler the GNU C compiler?
14549with_gcc=$GCC
14550
John Criswell47fdd832003-07-14 16:52:07 +000014551# An ERE matcher.
14552EGREP=$lt_EGREP
14553
John Criswell7a73b802003-06-30 21:59:07 +000014554# The linker used to build libraries.
14555LD=$lt_LD
14556
14557# Whether we need hard or soft links.
14558LN_S=$lt_LN_S
14559
14560# A BSD-compatible nm program.
14561NM=$lt_NM
14562
14563# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014564STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014565
14566# Used to examine libraries when file_magic_cmd begins "file"
14567MAGIC_CMD=$MAGIC_CMD
14568
14569# Used on cygwin: DLL creation program.
14570DLLTOOL="$DLLTOOL"
14571
14572# Used on cygwin: object dumper.
14573OBJDUMP="$OBJDUMP"
14574
14575# Used on cygwin: assembler.
14576AS="$AS"
14577
14578# The name of the directory that contains temporary libtool files.
14579objdir=$objdir
14580
14581# How to create reloadable object files.
14582reload_flag=$lt_reload_flag
14583reload_cmds=$lt_reload_cmds
14584
14585# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014586wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014587
14588# Object file suffix (normally "o").
14589objext="$ac_objext"
14590
14591# Old archive suffix (normally "a").
14592libext="$libext"
14593
John Criswell47fdd832003-07-14 16:52:07 +000014594# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014595shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014596
John Criswell7a73b802003-06-30 21:59:07 +000014597# Executable file suffix (normally "").
14598exeext="$exeext"
14599
14600# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014601pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014602pic_mode=$pic_mode
14603
John Criswell47fdd832003-07-14 16:52:07 +000014604# What is the maximum length of a command?
14605max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014606
John Criswell47fdd832003-07-14 16:52:07 +000014607# Does compiler simultaneously support -c and -o options?
14608compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014609
14610# Must we lock files when doing compilation ?
14611need_locks=$lt_need_locks
14612
14613# Do we need the lib prefix for modules?
14614need_lib_prefix=$need_lib_prefix
14615
14616# Do we need a version for libraries?
14617need_version=$need_version
14618
14619# Whether dlopen is supported.
14620dlopen_support=$enable_dlopen
14621
14622# Whether dlopen of programs is supported.
14623dlopen_self=$enable_dlopen_self
14624
14625# Whether dlopen of statically linked programs is supported.
14626dlopen_self_static=$enable_dlopen_self_static
14627
14628# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014629link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014630
14631# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014633
14634# Compiler flag to allow reflexive dlopens.
14635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14636
14637# Compiler flag to generate shared objects directly from archives.
14638whole_archive_flag_spec=$lt_whole_archive_flag_spec
14639
14640# Compiler flag to generate thread-safe objects.
14641thread_safe_flag_spec=$lt_thread_safe_flag_spec
14642
14643# Library versioning type.
14644version_type=$version_type
14645
14646# Format of library name prefix.
14647libname_spec=$lt_libname_spec
14648
14649# List of archive names. First name is the real one, the rest are links.
14650# The last name is the one that the linker finds with -lNAME.
14651library_names_spec=$lt_library_names_spec
14652
14653# The coded name of the library, if different from the real name.
14654soname_spec=$lt_soname_spec
14655
14656# Commands used to build and install an old-style archive.
14657RANLIB=$lt_RANLIB
14658old_archive_cmds=$lt_old_archive_cmds
14659old_postinstall_cmds=$lt_old_postinstall_cmds
14660old_postuninstall_cmds=$lt_old_postuninstall_cmds
14661
14662# Create an old-style archive from a shared archive.
14663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14664
14665# Create a temporary old-style archive to link instead of a shared archive.
14666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14667
14668# Commands used to build and install a shared archive.
14669archive_cmds=$lt_archive_cmds
14670archive_expsym_cmds=$lt_archive_expsym_cmds
14671postinstall_cmds=$lt_postinstall_cmds
14672postuninstall_cmds=$lt_postuninstall_cmds
14673
John Criswell47fdd832003-07-14 16:52:07 +000014674# Commands used to build a loadable module (assumed same as above if empty)
14675module_cmds=$lt_module_cmds
14676module_expsym_cmds=$lt_module_expsym_cmds
14677
John Criswell7a73b802003-06-30 21:59:07 +000014678# Commands to strip libraries.
14679old_striplib=$lt_old_striplib
14680striplib=$lt_striplib
14681
John Criswell47fdd832003-07-14 16:52:07 +000014682# Dependencies to place before the objects being linked to create a
14683# shared library.
14684predep_objects=$lt_predep_objects
14685
14686# Dependencies to place after the objects being linked to create a
14687# shared library.
14688postdep_objects=$lt_postdep_objects
14689
14690# Dependencies to place before the objects being linked to create a
14691# shared library.
14692predeps=$lt_predeps
14693
14694# Dependencies to place after the objects being linked to create a
14695# shared library.
14696postdeps=$lt_postdeps
14697
14698# The library search path used internally by the compiler when linking
14699# a shared library.
14700compiler_lib_search_path=$lt_compiler_lib_search_path
14701
John Criswell7a73b802003-06-30 21:59:07 +000014702# Method to check whether dependent libraries are shared objects.
14703deplibs_check_method=$lt_deplibs_check_method
14704
14705# Command to use when deplibs_check_method == file_magic.
14706file_magic_cmd=$lt_file_magic_cmd
14707
14708# Flag that allows shared libraries with undefined symbols to be built.
14709allow_undefined_flag=$lt_allow_undefined_flag
14710
14711# Flag that forces no undefined symbols.
14712no_undefined_flag=$lt_no_undefined_flag
14713
14714# Commands used to finish a libtool library installation in a directory.
14715finish_cmds=$lt_finish_cmds
14716
14717# Same as above, but a single script fragment to be evaled but not shown.
14718finish_eval=$lt_finish_eval
14719
14720# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014721global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014722
14723# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014724global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014725
14726# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014727global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014728
14729# This is the shared library runtime path variable.
14730runpath_var=$runpath_var
14731
14732# This is the shared library path variable.
14733shlibpath_var=$shlibpath_var
14734
14735# Is shlibpath searched before the hard-coded library search path?
14736shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14737
14738# How to hardcode a shared library path into an executable.
14739hardcode_action=$hardcode_action
14740
14741# Whether we should hardcode library paths into libraries.
14742hardcode_into_libs=$hardcode_into_libs
14743
14744# Flag to hardcode \$libdir into a binary during linking.
14745# This must work even if \$libdir does not exist.
14746hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14747
John Criswell47fdd832003-07-14 16:52:07 +000014748# If ld is used when linking, flag to hardcode \$libdir into
14749# a binary during linking. This must work even if \$libdir does
14750# not exist.
14751hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14752
John Criswell7a73b802003-06-30 21:59:07 +000014753# Whether we need a single -rpath flag with a separated argument.
14754hardcode_libdir_separator=$lt_hardcode_libdir_separator
14755
John Criswell47fdd832003-07-14 16:52:07 +000014756# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014757# resulting binary.
14758hardcode_direct=$hardcode_direct
14759
14760# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14761# resulting binary.
14762hardcode_minus_L=$hardcode_minus_L
14763
14764# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14765# the resulting binary.
14766hardcode_shlibpath_var=$hardcode_shlibpath_var
14767
John Criswell47fdd832003-07-14 16:52:07 +000014768# Set to yes if building a shared library automatically hardcodes DIR into the library
14769# and all subsequent libraries and executables linked against it.
14770hardcode_automatic=$hardcode_automatic
14771
John Criswell7a73b802003-06-30 21:59:07 +000014772# Variables whose values should be saved in libtool wrapper scripts and
14773# restored at relink time.
14774variables_saved_for_relink="$variables_saved_for_relink"
14775
14776# Whether libtool must link a program against all its dependency libraries.
14777link_all_deplibs=$link_all_deplibs
14778
14779# Compile-time system search path for libraries
14780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14781
14782# Run-time system search path for libraries
14783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14784
14785# Fix the shell variable \$srcfile for the compiler.
14786fix_srcfile_path="$fix_srcfile_path"
14787
14788# Set to yes if exported symbols are required.
14789always_export_symbols=$always_export_symbols
14790
14791# The commands to list exported symbols.
14792export_symbols_cmds=$lt_export_symbols_cmds
14793
14794# The commands to extract the exported symbol list from a shared archive.
14795extract_expsyms_cmds=$lt_extract_expsyms_cmds
14796
14797# Symbols that should not be listed in the preloaded symbols.
14798exclude_expsyms=$lt_exclude_expsyms
14799
14800# Symbols that must always be exported.
14801include_expsyms=$lt_include_expsyms
14802
14803# ### END LIBTOOL CONFIG
14804
14805__EOF__
14806
John Criswell47fdd832003-07-14 16:52:07 +000014807
John Criswell7a73b802003-06-30 21:59:07 +000014808 case $host_os in
14809 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014810 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014811
14812# AIX sometimes has problems with the GCC collect2 program. For some
14813# reason, if we set the COLLECT_NAMES environment variable, the problems
14814# vanish in a puff of smoke.
14815if test "X${COLLECT_NAMES+set}" != Xset; then
14816 COLLECT_NAMES=
14817 export COLLECT_NAMES
14818fi
14819EOF
14820 ;;
14821 esac
14822
John Criswell7a73b802003-06-30 21:59:07 +000014823 # We use sed instead of cat because bash on DJGPP gets confused if
14824 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14825 # text mode, it properly converts lines to CR/LF. This bash problem
14826 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014827 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014828
John Criswell47fdd832003-07-14 16:52:07 +000014829 mv -f "$cfgfile" "$ofile" || \
14830 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014831 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014832
14833else
14834 # If there is no Makefile yet, we rely on a make rule to execute
14835 # `config.status --recheck' to rerun these tests and create the
14836 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014837 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14838 if test -f "$ltmain_in"; then
14839 test -f Makefile && make "$ltmain"
14840 fi
John Criswell7a73b802003-06-30 21:59:07 +000014841fi
John Criswell7a73b802003-06-30 21:59:07 +000014842
14843
John Criswell47fdd832003-07-14 16:52:07 +000014844ac_ext=c
14845ac_cpp='$CPP $CPPFLAGS'
14846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14848ac_compiler_gnu=$ac_cv_c_compiler_gnu
14849
14850CC="$lt_save_CC"
14851
14852
14853# Check whether --with-tags or --without-tags was given.
14854if test "${with_tags+set}" = set; then
14855 withval="$with_tags"
14856 tagnames="$withval"
14857fi;
14858
14859if test -f "$ltmain" && test -n "$tagnames"; then
14860 if test ! -f "${ofile}"; then
14861 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14862echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14863 fi
14864
14865 if test -z "$LTCC"; then
14866 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14867 if test -z "$LTCC"; then
14868 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14869echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14870 else
14871 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14872echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14873 fi
14874 fi
14875
14876 # Extract list of available tagged configurations in $ofile.
14877 # Note that this assumes the entire list is on one line.
14878 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14879
14880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14881 for tagname in $tagnames; do
14882 IFS="$lt_save_ifs"
14883 # Check whether tagname contains only valid characters
14884 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14885 "") ;;
14886 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14887echo "$as_me: error: invalid tag name: $tagname" >&2;}
14888 { (exit 1); exit 1; }; }
14889 ;;
14890 esac
14891
14892 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14893 then
14894 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14895echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14896 { (exit 1); exit 1; }; }
14897 fi
14898
14899 # Update the list of available tags.
14900 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014901 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014902
14903 case $tagname in
14904 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014905 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14906 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14907 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014908 ac_ext=cc
14909ac_cpp='$CXXCPP $CPPFLAGS'
14910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14913
14914
14915
14916
14917archive_cmds_need_lc_CXX=no
14918allow_undefined_flag_CXX=
14919always_export_symbols_CXX=no
14920archive_expsym_cmds_CXX=
14921export_dynamic_flag_spec_CXX=
14922hardcode_direct_CXX=no
14923hardcode_libdir_flag_spec_CXX=
14924hardcode_libdir_flag_spec_ld_CXX=
14925hardcode_libdir_separator_CXX=
14926hardcode_minus_L_CXX=no
14927hardcode_automatic_CXX=no
14928module_cmds_CXX=
14929module_expsym_cmds_CXX=
14930link_all_deplibs_CXX=unknown
14931old_archive_cmds_CXX=$old_archive_cmds
14932no_undefined_flag_CXX=
14933whole_archive_flag_spec_CXX=
14934enable_shared_with_static_runtimes_CXX=no
14935
14936# Dependencies to place before and after the object being linked:
14937predep_objects_CXX=
14938postdep_objects_CXX=
14939predeps_CXX=
14940postdeps_CXX=
14941compiler_lib_search_path_CXX=
14942
14943# Source file extension for C++ test sources.
14944ac_ext=cc
14945
14946# Object file extension for compiled C++ test sources.
14947objext=o
14948objext_CXX=$objext
14949
14950# Code to be used in simple compile tests
14951lt_simple_compile_test_code="int some_variable = 0;\n"
14952
14953# Code to be used in simple link tests
14954lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14955
14956# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14957
14958# If no C compiler was specified, use CC.
14959LTCC=${LTCC-"$CC"}
14960
14961# Allow CC to be a program name with arguments.
14962compiler=$CC
14963
14964
14965# Allow CC to be a program name with arguments.
14966lt_save_CC=$CC
14967lt_save_LD=$LD
14968lt_save_GCC=$GCC
14969GCC=$GXX
14970lt_save_with_gnu_ld=$with_gnu_ld
14971lt_save_path_LD=$lt_cv_path_LD
14972if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14973 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14974else
14975 unset lt_cv_prog_gnu_ld
14976fi
14977if test -n "${lt_cv_path_LDCXX+set}"; then
14978 lt_cv_path_LD=$lt_cv_path_LDCXX
14979else
14980 unset lt_cv_path_LD
14981fi
14982test -z "${LDCXX+set}" || LD=$LDCXX
14983CC=${CXX-"c++"}
14984compiler=$CC
14985compiler_CXX=$CC
14986cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14987
14988# We don't want -fno-exception wen compiling C++ code, so set the
14989# no_builtin_flag separately
14990if test "$GXX" = yes; then
14991 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14992else
14993 lt_prog_compiler_no_builtin_flag_CXX=
14994fi
14995
14996if test "$GXX" = yes; then
14997 # Set up default GNU C++ configuration
14998
14999
15000# Check whether --with-gnu-ld or --without-gnu-ld was given.
15001if test "${with_gnu_ld+set}" = set; then
15002 withval="$with_gnu_ld"
15003 test "$withval" = no || with_gnu_ld=yes
15004else
15005 with_gnu_ld=no
15006fi;
15007ac_prog=ld
15008if test "$GCC" = yes; then
15009 # Check if gcc -print-prog-name=ld gives a path.
15010 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15011echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15012 case $host in
15013 *-*-mingw*)
15014 # gcc leaves a trailing carriage return which upsets mingw
15015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15016 *)
15017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15018 esac
15019 case $ac_prog in
15020 # Accept absolute paths.
15021 [\\/]* | ?:[\\/]*)
15022 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015024 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15025 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15026 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15027 done
15028 test -z "$LD" && LD="$ac_prog"
15029 ;;
15030 "")
15031 # If it fails, then pretend we aren't using GCC.
15032 ac_prog=ld
15033 ;;
15034 *)
15035 # If it is relative, then search for the first ld in PATH.
15036 with_gnu_ld=unknown
15037 ;;
15038 esac
15039elif test "$with_gnu_ld" = yes; then
15040 echo "$as_me:$LINENO: checking for GNU ld" >&5
15041echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15042else
15043 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15044echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15045fi
15046if test "${lt_cv_path_LD+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
15049 if test -z "$LD"; then
15050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15051 for ac_dir in $PATH; do
15052 IFS="$lt_save_ifs"
15053 test -z "$ac_dir" && ac_dir=.
15054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15055 lt_cv_path_LD="$ac_dir/$ac_prog"
15056 # Check to see if the program is GNU ld. I'd rather use --version,
15057 # but apparently some GNU ld's only accept -v.
15058 # Break only if it was the GNU/non-GNU ld that we prefer.
15059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15060 *GNU* | *'with BFD'*)
15061 test "$with_gnu_ld" != no && break
15062 ;;
15063 *)
15064 test "$with_gnu_ld" != yes && break
15065 ;;
15066 esac
15067 fi
15068 done
15069 IFS="$lt_save_ifs"
15070else
15071 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15072fi
15073fi
15074
15075LD="$lt_cv_path_LD"
15076if test -n "$LD"; then
15077 echo "$as_me:$LINENO: result: $LD" >&5
15078echo "${ECHO_T}$LD" >&6
15079else
15080 echo "$as_me:$LINENO: result: no" >&5
15081echo "${ECHO_T}no" >&6
15082fi
15083test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15084echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15085 { (exit 1); exit 1; }; }
15086echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15087echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15088if test "${lt_cv_prog_gnu_ld+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else
15091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015092case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015093*GNU* | *'with BFD'*)
15094 lt_cv_prog_gnu_ld=yes
15095 ;;
15096*)
15097 lt_cv_prog_gnu_ld=no
15098 ;;
15099esac
15100fi
15101echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15102echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15103with_gnu_ld=$lt_cv_prog_gnu_ld
15104
15105
15106
15107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15108 # archiving commands below assume that GNU ld is being used.
15109 if test "$with_gnu_ld" = yes; then
15110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 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'
15112
15113 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15115
15116 # If archive_cmds runs LD, not CC, wlarc should be empty
15117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15118 # investigate it a little bit more. (MM)
15119 wlarc='${wl}'
15120
15121 # ancient GNU ld didn't support --whole-archive et. al.
15122 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15123 grep 'no-whole-archive' > /dev/null; then
15124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15125 else
15126 whole_archive_flag_spec_CXX=
15127 fi
15128 else
15129 with_gnu_ld=no
15130 wlarc=
15131
15132 # A generic and very simple default shared library creation
15133 # command for GNU C++ for the case where it uses the native
15134 # linker, instead of GNU ld. If possible, this setting should
15135 # overridden to take advantage of the native linker features on
15136 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015138 fi
15139
15140 # Commands to make compiler produce verbose output that lists
15141 # what "hidden" libraries, object files and flags are used when
15142 # linking a shared library.
15143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15144
15145else
15146 GXX=no
15147 with_gnu_ld=no
15148 wlarc=
15149fi
15150
15151# PORTME: fill in a description of your system's C++ link characteristics
15152echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15153echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15154ld_shlibs_CXX=yes
15155case $host_os in
15156 aix3*)
15157 # FIXME: insert proper C++ library support
15158 ld_shlibs_CXX=no
15159 ;;
15160 aix4* | aix5*)
15161 if test "$host_cpu" = ia64; then
15162 # On IA64, the linker does run time linking by default, so we don't
15163 # have to do anything special.
15164 aix_use_runtimelinking=no
15165 exp_sym_flag='-Bexport'
15166 no_entry_flag=""
15167 else
15168 aix_use_runtimelinking=no
15169
15170 # Test if we are trying to use run time linking or normal
15171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15172 # need to do runtime linking.
15173 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15174 for ld_flag in $LDFLAGS; do
15175 case $ld_flag in
15176 *-brtl*)
15177 aix_use_runtimelinking=yes
15178 break
15179 ;;
15180 esac
15181 done
15182 esac
15183
15184 exp_sym_flag='-bexport'
15185 no_entry_flag='-bnoentry'
15186 fi
15187
15188 # When large executables or shared objects are built, AIX ld can
15189 # have problems creating the table of contents. If linking a library
15190 # or program results in "error TOC overflow" add -mminimal-toc to
15191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15193
15194 archive_cmds_CXX=''
15195 hardcode_direct_CXX=yes
15196 hardcode_libdir_separator_CXX=':'
15197 link_all_deplibs_CXX=yes
15198
15199 if test "$GXX" = yes; then
15200 case $host_os in aix4.012|aix4.012.*)
15201 # We only want to do this on AIX 4.2 and lower, the check
15202 # below for broken collect2 doesn't work under 4.3+
15203 collect2name=`${CC} -print-prog-name=collect2`
15204 if test -f "$collect2name" && \
15205 strings "$collect2name" | grep resolve_lib_name >/dev/null
15206 then
15207 # We have reworked collect2
15208 hardcode_direct_CXX=yes
15209 else
15210 # We have old collect2
15211 hardcode_direct_CXX=unsupported
15212 # It fails to find uninstalled libraries when the uninstalled
15213 # path is not listed in the libpath. Setting hardcode_minus_L
15214 # to unsupported forces relinking
15215 hardcode_minus_L_CXX=yes
15216 hardcode_libdir_flag_spec_CXX='-L$libdir'
15217 hardcode_libdir_separator_CXX=
15218 fi
15219 esac
15220 shared_flag='-shared'
15221 else
15222 # not using gcc
15223 if test "$host_cpu" = ia64; then
15224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15225 # chokes on -Wl,-G. The following line is correct:
15226 shared_flag='-G'
15227 else
15228 if test "$aix_use_runtimelinking" = yes; then
15229 shared_flag='${wl}-G'
15230 else
15231 shared_flag='${wl}-bM:SRE'
15232 fi
15233 fi
15234 fi
15235
15236 # It seems that -bexpall does not export symbols beginning with
15237 # underscore (_), so it is better to generate a list of symbols to export.
15238 always_export_symbols_CXX=yes
15239 if test "$aix_use_runtimelinking" = yes; then
15240 # Warning - without using the other runtime loading flags (-brtl),
15241 # -berok will link without error, but may produce a broken library.
15242 allow_undefined_flag_CXX='-berok'
15243 # Determine the default libpath from the value encoded in an empty executable.
15244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015250
John Criswell47fdd832003-07-14 16:52:07 +000015251int
15252main ()
15253{
15254
15255 ;
15256 return 0;
15257}
15258_ACEOF
15259rm -f conftest.$ac_objext conftest$ac_exeext
15260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015261 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015268 { ac_try='test -z "$ac_cxx_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281
15282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15283}'`
15284# Check for a 64-bit object if we didn't find anything.
15285if 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; }
15286}'`; fi
15287else
15288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015289sed 's/^/| /' conftest.$ac_ext >&5
15290
John Criswell47fdd832003-07-14 16:52:07 +000015291fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015292rm -f conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15295
15296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15297
15298 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"
15299 else
15300 if test "$host_cpu" = ia64; then
15301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15302 allow_undefined_flag_CXX="-z nodefs"
15303 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"
15304 else
15305 # Determine the default libpath from the value encoded in an empty executable.
15306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015307/* confdefs.h. */
15308_ACEOF
15309cat confdefs.h >>conftest.$ac_ext
15310cat >>conftest.$ac_ext <<_ACEOF
15311/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015312
John Criswell47fdd832003-07-14 16:52:07 +000015313int
15314main ()
15315{
15316
15317 ;
15318 return 0;
15319}
15320_ACEOF
15321rm -f conftest.$ac_objext conftest$ac_exeext
15322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015323 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015330 { ac_try='test -z "$ac_cxx_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343
15344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15345}'`
15346# Check for a 64-bit object if we didn't find anything.
15347if 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; }
15348}'`; fi
15349else
15350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015351sed 's/^/| /' conftest.$ac_ext >&5
15352
John Criswell47fdd832003-07-14 16:52:07 +000015353fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015354rm -f conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15357
15358 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15359 # Warning - without using the other run time loading flags,
15360 # -berok will link without error, but may produce a broken library.
15361 no_undefined_flag_CXX=' ${wl}-bernotok'
15362 allow_undefined_flag_CXX=' ${wl}-berok'
15363 # -bexpall does not export symbols beginning with underscore (_)
15364 always_export_symbols_CXX=yes
15365 # Exported symbols can be pulled into shared objects from archives
15366 whole_archive_flag_spec_CXX=' '
15367 archive_cmds_need_lc_CXX=yes
15368 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015369 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 +000015370 fi
15371 fi
15372 ;;
15373 chorus*)
15374 case $cc_basename in
15375 *)
15376 # FIXME: insert proper C++ library support
15377 ld_shlibs_CXX=no
15378 ;;
15379 esac
15380 ;;
15381
Reid Spencer2706f8c2004-09-19 23:53:36 +000015382
John Criswell47fdd832003-07-14 16:52:07 +000015383 cygwin* | mingw* | pw32*)
15384 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15385 # as there is no search path for DLLs.
15386 hardcode_libdir_flag_spec_CXX='-L$libdir'
15387 allow_undefined_flag_CXX=unsupported
15388 always_export_symbols_CXX=no
15389 enable_shared_with_static_runtimes_CXX=yes
15390
15391 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15392 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'
15393 # If the export-symbols file already is a .def file (1st line
15394 # is EXPORTS), use it as is; otherwise, prepend...
15395 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15396 cp $export_symbols $output_objdir/$soname.def;
15397 else
15398 echo EXPORTS > $output_objdir/$soname.def;
15399 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015400 fi~
15401 $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 +000015402 else
15403 ld_shlibs_CXX=no
15404 fi
15405 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015406 darwin* | rhapsody*)
15407 case "$host_os" in
15408 rhapsody* | darwin1.[012])
15409 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15410 ;;
15411 *) # Darwin 1.3 on
15412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15413 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15414 else
15415 case ${MACOSX_DEPLOYMENT_TARGET} in
15416 10.[012])
15417 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15418 ;;
15419 10.*)
15420 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15421 ;;
15422 esac
15423 fi
15424 ;;
15425 esac
15426 archive_cmds_need_lc_CXX=no
15427 hardcode_direct_CXX=no
15428 hardcode_automatic_CXX=yes
15429 hardcode_shlibpath_var_CXX=unsupported
15430 whole_archive_flag_spec_CXX=''
15431 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015432
Reid Spencer2706f8c2004-09-19 23:53:36 +000015433 if test "$GXX" = yes ; then
15434 lt_int_apple_cc_single_mod=no
15435 output_verbose_link_cmd='echo'
15436 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15437 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015438 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015439 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015440 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 +000015441 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015442 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 +000015443 fi
15444 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015447 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 +000015448 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015449 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 +000015450 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015451 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 +000015452 else
15453 case "$cc_basename" in
15454 xlc*)
15455 output_verbose_link_cmd='echo'
15456 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'
15457 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15458 # 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 +000015459 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}'
15460 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 +000015461 ;;
15462 *)
15463 ld_shlibs_CXX=no
15464 ;;
15465 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015466 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015467 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015468
15469 dgux*)
15470 case $cc_basename in
15471 ec++)
15472 # FIXME: insert proper C++ library support
15473 ld_shlibs_CXX=no
15474 ;;
15475 ghcx)
15476 # Green Hills C++ Compiler
15477 # FIXME: insert proper C++ library support
15478 ld_shlibs_CXX=no
15479 ;;
15480 *)
15481 # FIXME: insert proper C++ library support
15482 ld_shlibs_CXX=no
15483 ;;
15484 esac
15485 ;;
15486 freebsd12*)
15487 # C++ shared libraries reported to be fairly broken before switch to ELF
15488 ld_shlibs_CXX=no
15489 ;;
15490 freebsd-elf*)
15491 archive_cmds_need_lc_CXX=no
15492 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015493 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015494 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15495 # conventions
15496 ld_shlibs_CXX=yes
15497 ;;
15498 gnu*)
15499 ;;
15500 hpux9*)
15501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15502 hardcode_libdir_separator_CXX=:
15503 export_dynamic_flag_spec_CXX='${wl}-E'
15504 hardcode_direct_CXX=yes
15505 hardcode_minus_L_CXX=yes # Not in the search PATH,
15506 # but as the default
15507 # location of the library.
15508
15509 case $cc_basename in
15510 CC)
15511 # FIXME: insert proper C++ library support
15512 ld_shlibs_CXX=no
15513 ;;
15514 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015515 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 +000015516 # Commands to make compiler produce verbose output that lists
15517 # what "hidden" libraries, object files and flags are used when
15518 # linking a shared library.
15519 #
15520 # There doesn't appear to be a way to prevent this compiler from
15521 # explicitly linking system object files so we need to strip them
15522 # from the output so that they don't get included in the library
15523 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015524 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 +000015525 ;;
15526 *)
15527 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015528 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 +000015529 else
15530 # FIXME: insert proper C++ library support
15531 ld_shlibs_CXX=no
15532 fi
15533 ;;
15534 esac
15535 ;;
15536 hpux10*|hpux11*)
15537 if test $with_gnu_ld = no; then
15538 case "$host_cpu" in
15539 hppa*64*)
15540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15542 hardcode_libdir_separator_CXX=:
15543 ;;
15544 ia64*)
15545 hardcode_libdir_flag_spec_CXX='-L$libdir'
15546 ;;
15547 *)
15548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15549 hardcode_libdir_separator_CXX=:
15550 export_dynamic_flag_spec_CXX='${wl}-E'
15551 ;;
15552 esac
15553 fi
15554 case "$host_cpu" in
15555 hppa*64*)
15556 hardcode_direct_CXX=no
15557 hardcode_shlibpath_var_CXX=no
15558 ;;
15559 ia64*)
15560 hardcode_direct_CXX=no
15561 hardcode_shlibpath_var_CXX=no
15562 hardcode_minus_L_CXX=yes # Not in the search PATH,
15563 # but as the default
15564 # location of the library.
15565 ;;
15566 *)
15567 hardcode_direct_CXX=yes
15568 hardcode_minus_L_CXX=yes # Not in the search PATH,
15569 # but as the default
15570 # location of the library.
15571 ;;
15572 esac
15573
15574 case $cc_basename in
15575 CC)
15576 # FIXME: insert proper C++ library support
15577 ld_shlibs_CXX=no
15578 ;;
15579 aCC)
15580 case "$host_cpu" in
15581 hppa*64*|ia64*)
15582 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15583 ;;
15584 *)
15585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15586 ;;
15587 esac
15588 # Commands to make compiler produce verbose output that lists
15589 # what "hidden" libraries, object files and flags are used when
15590 # linking a shared library.
15591 #
15592 # There doesn't appear to be a way to prevent this compiler from
15593 # explicitly linking system object files so we need to strip them
15594 # from the output so that they don't get included in the library
15595 # dependencies.
15596 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'
15597 ;;
15598 *)
15599 if test "$GXX" = yes; then
15600 if test $with_gnu_ld = no; then
15601 case "$host_cpu" in
15602 ia64*|hppa*64*)
15603 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15604 ;;
15605 *)
15606 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'
15607 ;;
15608 esac
15609 fi
15610 else
15611 # FIXME: insert proper C++ library support
15612 ld_shlibs_CXX=no
15613 fi
15614 ;;
15615 esac
15616 ;;
15617 irix5* | irix6*)
15618 case $cc_basename in
15619 CC)
15620 # SGI C++
15621 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'
15622
15623 # Archives containing C++ object files must be created using
15624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15625 # necessary to make sure instantiated templates are included
15626 # in the archive.
15627 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15628 ;;
15629 *)
15630 if test "$GXX" = yes; then
15631 if test "$with_gnu_ld" = no; then
15632 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'
15633 else
15634 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'
15635 fi
15636 fi
15637 link_all_deplibs_CXX=yes
15638 ;;
15639 esac
15640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15641 hardcode_libdir_separator_CXX=:
15642 ;;
15643 linux*)
15644 case $cc_basename in
15645 KCC)
15646 # Kuck and Associates, Inc. (KAI) C++ Compiler
15647
15648 # KCC will only create a shared library if the output file
15649 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15650 # to its proper name (with version) after linking.
15651 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'
15652 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'
15653 # Commands to make compiler produce verbose output that lists
15654 # what "hidden" libraries, object files and flags are used when
15655 # linking a shared library.
15656 #
15657 # There doesn't appear to be a way to prevent this compiler from
15658 # explicitly linking system object files so we need to strip them
15659 # from the output so that they don't get included in the library
15660 # dependencies.
15661 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'
15662
15663 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15665
15666 # Archives containing C++ object files must be created using
15667 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15668 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15669 ;;
15670 icpc)
15671 # Intel C++
15672 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673 # version 8.0 and above of icpc choke on multiply defined symbols
15674 # if we add $predep_objects and $postdep_objects, however 7.1 and
15675 # earlier do not add the objects themselves.
15676 case `$CC -V 2>&1` in
15677 *"Version 7."*)
15678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 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'
15680 ;;
15681 *) # Version 8.0 or newer
15682 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15684 ;;
15685 esac
John Criswell47fdd832003-07-14 16:52:07 +000015686 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15689 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15690 ;;
15691 cxx)
15692 # Compaq C++
15693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694 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'
15695
15696 runpath_var=LD_RUN_PATH
15697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15698 hardcode_libdir_separator_CXX=:
15699
15700 # Commands to make compiler produce verbose output that lists
15701 # what "hidden" libraries, object files and flags are used when
15702 # linking a shared library.
15703 #
15704 # There doesn't appear to be a way to prevent this compiler from
15705 # explicitly linking system object files so we need to strip them
15706 # from the output so that they don't get included in the library
15707 # dependencies.
15708 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'
15709 ;;
15710 esac
15711 ;;
15712 lynxos*)
15713 # FIXME: insert proper C++ library support
15714 ld_shlibs_CXX=no
15715 ;;
15716 m88k*)
15717 # FIXME: insert proper C++ library support
15718 ld_shlibs_CXX=no
15719 ;;
15720 mvs*)
15721 case $cc_basename in
15722 cxx)
15723 # FIXME: insert proper C++ library support
15724 ld_shlibs_CXX=no
15725 ;;
15726 *)
15727 # FIXME: insert proper C++ library support
15728 ld_shlibs_CXX=no
15729 ;;
15730 esac
15731 ;;
15732 netbsd*)
15733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15734 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15735 wlarc=
15736 hardcode_libdir_flag_spec_CXX='-R$libdir'
15737 hardcode_direct_CXX=yes
15738 hardcode_shlibpath_var_CXX=no
15739 fi
15740 # Workaround some broken pre-1.5 toolchains
15741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15742 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015743 openbsd2*)
15744 # C++ shared libraries are fairly broken
15745 ld_shlibs_CXX=no
15746 ;;
15747 openbsd*)
15748 hardcode_direct_CXX=yes
15749 hardcode_shlibpath_var_CXX=no
15750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15754 export_dynamic_flag_spec_CXX='${wl}-E'
15755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15756 fi
15757 output_verbose_link_cmd='echo'
15758 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015759 osf3*)
15760 case $cc_basename in
15761 KCC)
15762 # Kuck and Associates, Inc. (KAI) C++ Compiler
15763
15764 # KCC will only create a shared library if the output file
15765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15766 # to its proper name (with version) after linking.
15767 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'
15768
15769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15770 hardcode_libdir_separator_CXX=:
15771
15772 # Archives containing C++ object files must be created using
15773 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15775
15776 ;;
15777 RCC)
15778 # Rational C++ 2.4.1
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 cxx)
15783 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15784 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'
15785
15786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15787 hardcode_libdir_separator_CXX=:
15788
15789 # Commands to make compiler produce verbose output that lists
15790 # what "hidden" libraries, object files and flags are used when
15791 # linking a shared library.
15792 #
15793 # There doesn't appear to be a way to prevent this compiler from
15794 # explicitly linking system object files so we need to strip them
15795 # from the output so that they don't get included in the library
15796 # dependencies.
15797 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'
15798 ;;
15799 *)
15800 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15803
15804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15805 hardcode_libdir_separator_CXX=:
15806
15807 # Commands to make compiler produce verbose output that lists
15808 # what "hidden" libraries, object files and flags are used when
15809 # linking a shared library.
15810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15811
15812 else
15813 # FIXME: insert proper C++ library support
15814 ld_shlibs_CXX=no
15815 fi
15816 ;;
15817 esac
15818 ;;
15819 osf4* | osf5*)
15820 case $cc_basename in
15821 KCC)
15822 # Kuck and Associates, Inc. (KAI) C++ Compiler
15823
15824 # KCC will only create a shared library if the output file
15825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15826 # to its proper name (with version) after linking.
15827 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'
15828
15829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830 hardcode_libdir_separator_CXX=:
15831
15832 # Archives containing C++ object files must be created using
15833 # the KAI C++ compiler.
15834 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15835 ;;
15836 RCC)
15837 # Rational C++ 2.4.1
15838 # FIXME: insert proper C++ library support
15839 ld_shlibs_CXX=no
15840 ;;
15841 cxx)
15842 allow_undefined_flag_CXX=' -expect_unresolved \*'
15843 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 +000015844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15845 echo "-hidden">> $lib.exp~
15846 $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~
15847 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015848
15849 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15850 hardcode_libdir_separator_CXX=:
15851
15852 # Commands to make compiler produce verbose output that lists
15853 # what "hidden" libraries, object files and flags are used when
15854 # linking a shared library.
15855 #
15856 # There doesn't appear to be a way to prevent this compiler from
15857 # explicitly linking system object files so we need to strip them
15858 # from the output so that they don't get included in the library
15859 # dependencies.
15860 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'
15861 ;;
15862 *)
15863 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865 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'
15866
15867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15868 hardcode_libdir_separator_CXX=:
15869
15870 # Commands to make compiler produce verbose output that lists
15871 # what "hidden" libraries, object files and flags are used when
15872 # linking a shared library.
15873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15874
15875 else
15876 # FIXME: insert proper C++ library support
15877 ld_shlibs_CXX=no
15878 fi
15879 ;;
15880 esac
15881 ;;
15882 psos*)
15883 # FIXME: insert proper C++ library support
15884 ld_shlibs_CXX=no
15885 ;;
15886 sco*)
15887 archive_cmds_need_lc_CXX=no
15888 case $cc_basename in
15889 CC)
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 ;;
15893 *)
15894 # FIXME: insert proper C++ library support
15895 ld_shlibs_CXX=no
15896 ;;
15897 esac
15898 ;;
15899 sunos4*)
15900 case $cc_basename in
15901 CC)
15902 # Sun C++ 4.x
15903 # FIXME: insert proper C++ library support
15904 ld_shlibs_CXX=no
15905 ;;
15906 lcc)
15907 # Lucid
15908 # FIXME: insert proper C++ library support
15909 ld_shlibs_CXX=no
15910 ;;
15911 *)
15912 # FIXME: insert proper C++ library support
15913 ld_shlibs_CXX=no
15914 ;;
15915 esac
15916 ;;
15917 solaris*)
15918 case $cc_basename in
15919 CC)
15920 # Sun C++ 4.2, 5.x and Centerline C++
15921 no_undefined_flag_CXX=' -zdefs'
15922 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 +000015923 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924 $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 +000015925
15926 hardcode_libdir_flag_spec_CXX='-R$libdir'
15927 hardcode_shlibpath_var_CXX=no
15928 case $host_os in
15929 solaris2.0-5 | solaris2.0-5.*) ;;
15930 *)
15931 # The C++ compiler is used as linker so we must use $wl
15932 # flag to pass the commands to the underlying system
15933 # linker.
15934 # Supported since Solaris 2.6 (maybe 2.5.1?)
15935 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15936 ;;
15937 esac
15938 link_all_deplibs_CXX=yes
15939
15940 # Commands to make compiler produce verbose output that lists
15941 # what "hidden" libraries, object files and flags are used when
15942 # linking a shared library.
15943 #
15944 # There doesn't appear to be a way to prevent this compiler from
15945 # explicitly linking system object files so we need to strip them
15946 # from the output so that they don't get included in the library
15947 # dependencies.
15948 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'
15949
15950 # Archives containing C++ object files must be created using
15951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15952 # necessary to make sure instantiated templates are included
15953 # in the archive.
15954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15955 ;;
15956 gcx)
15957 # Green Hills C++ Compiler
15958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15959
15960 # The C++ compiler must be used to create the archive.
15961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15962 ;;
15963 *)
15964 # GNU C++ compiler with Solaris linker
15965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15967 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000015968 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 +000015969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15971
John Criswell47fdd832003-07-14 16:52:07 +000015972 # Commands to make compiler produce verbose output that lists
15973 # what "hidden" libraries, object files and flags are used when
15974 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000015975 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000015976 else
15977 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15978 # platform.
15979 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 +000015980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15981 $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 +000015982
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15987 fi
15988
15989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15990 fi
15991 ;;
15992 esac
15993 ;;
15994 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15995 archive_cmds_need_lc_CXX=no
15996 ;;
15997 tandem*)
15998 case $cc_basename in
15999 NCC)
16000 # NonStop-UX NCC 3.20
16001 # FIXME: insert proper C++ library support
16002 ld_shlibs_CXX=no
16003 ;;
16004 *)
16005 # FIXME: insert proper C++ library support
16006 ld_shlibs_CXX=no
16007 ;;
16008 esac
16009 ;;
16010 vxworks*)
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 *)
16015 # FIXME: insert proper C++ library support
16016 ld_shlibs_CXX=no
16017 ;;
16018esac
16019echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16020echo "${ECHO_T}$ld_shlibs_CXX" >&6
16021test "$ld_shlibs_CXX" = no && can_build_shared=no
16022
16023GCC_CXX="$GXX"
16024LD_CXX="$LD"
16025
John Criswell47fdd832003-07-14 16:52:07 +000016026
16027cat > conftest.$ac_ext <<EOF
16028class Foo
16029{
16030public:
16031 Foo (void) { a = 0; }
16032private:
16033 int a;
16034};
16035EOF
16036
16037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; then
16042 # Parse the compiler output and extract the necessary
16043 # objects, libraries and library flags.
16044
16045 # Sentinel used to keep track of whether or not we are before
16046 # the conftest object file.
16047 pre_test_object_deps_done=no
16048
16049 # The `*' in the case matches for architectures that use `case' in
16050 # $output_verbose_cmd can trigger glob expansion during the loop
16051 # eval without this substitution.
16052 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16053
16054 for p in `eval $output_verbose_link_cmd`; do
16055 case $p in
16056
16057 -L* | -R* | -l*)
16058 # Some compilers place space between "-{L,R}" and the path.
16059 # Remove the space.
16060 if test $p = "-L" \
16061 || test $p = "-R"; then
16062 prev=$p
16063 continue
16064 else
16065 prev=
16066 fi
16067
16068 if test "$pre_test_object_deps_done" = no; then
16069 case $p in
16070 -L* | -R*)
16071 # Internal compiler library paths should come after those
16072 # provided the user. The postdeps already come after the
16073 # user supplied libs so there is no need to process them.
16074 if test -z "$compiler_lib_search_path_CXX"; then
16075 compiler_lib_search_path_CXX="${prev}${p}"
16076 else
16077 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16078 fi
16079 ;;
16080 # The "-l" case would never come before the object being
16081 # linked, so don't bother handling this case.
16082 esac
16083 else
16084 if test -z "$postdeps_CXX"; then
16085 postdeps_CXX="${prev}${p}"
16086 else
16087 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16088 fi
16089 fi
16090 ;;
16091
16092 *.$objext)
16093 # This assumes that the test object file only shows up
16094 # once in the compiler output.
16095 if test "$p" = "conftest.$objext"; then
16096 pre_test_object_deps_done=yes
16097 continue
16098 fi
16099
16100 if test "$pre_test_object_deps_done" = no; then
16101 if test -z "$predep_objects_CXX"; then
16102 predep_objects_CXX="$p"
16103 else
16104 predep_objects_CXX="$predep_objects_CXX $p"
16105 fi
16106 else
16107 if test -z "$postdep_objects_CXX"; then
16108 postdep_objects_CXX="$p"
16109 else
16110 postdep_objects_CXX="$postdep_objects_CXX $p"
16111 fi
16112 fi
16113 ;;
16114
16115 *) ;; # Ignore the rest.
16116
16117 esac
16118 done
16119
16120 # Clean up.
16121 rm -f a.out a.exe
16122else
16123 echo "libtool.m4: error: problem compiling CXX test program"
16124fi
16125
16126$rm -f confest.$objext
16127
16128case " $postdeps_CXX " in
16129*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16130esac
16131
16132lt_prog_compiler_wl_CXX=
16133lt_prog_compiler_pic_CXX=
16134lt_prog_compiler_static_CXX=
16135
16136echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16137echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16138
16139 # C++ specific cases for pic, static, wl, etc.
16140 if test "$GXX" = yes; then
16141 lt_prog_compiler_wl_CXX='-Wl,'
16142 lt_prog_compiler_static_CXX='-static'
16143
16144 case $host_os in
16145 aix*)
16146 # All AIX code is PIC.
16147 if test "$host_cpu" = ia64; then
16148 # AIX 5 now supports IA64 processor
16149 lt_prog_compiler_static_CXX='-Bstatic'
16150 fi
16151 ;;
16152 amigaos*)
16153 # FIXME: we need at least 68020 code to build shared libraries, but
16154 # adding the `-m68020' flag to GCC prevents building anything better,
16155 # like `-m68040'.
16156 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16157 ;;
16158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16159 # PIC is the default for these OSes.
16160 ;;
16161 mingw* | os2* | pw32*)
16162 # This hack is so that the source file can tell whether it is being
16163 # built for inclusion in a dll (and should export symbols for example).
16164 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16165 ;;
16166 darwin* | rhapsody*)
16167 # PIC is the default on this platform
16168 # Common symbols not allowed in MH_DYLIB files
16169 lt_prog_compiler_pic_CXX='-fno-common'
16170 ;;
16171 *djgpp*)
16172 # DJGPP does not support shared libraries at all
16173 lt_prog_compiler_pic_CXX=
16174 ;;
16175 sysv4*MP*)
16176 if test -d /usr/nec; then
16177 lt_prog_compiler_pic_CXX=-Kconform_pic
16178 fi
16179 ;;
16180 hpux*)
16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16182 # not for PA HP-UX.
16183 case "$host_cpu" in
16184 hppa*64*|ia64*)
16185 ;;
16186 *)
16187 lt_prog_compiler_pic_CXX='-fPIC'
16188 ;;
16189 esac
16190 ;;
16191 *)
16192 lt_prog_compiler_pic_CXX='-fPIC'
16193 ;;
16194 esac
16195 else
16196 case $host_os in
16197 aix4* | aix5*)
16198 # All AIX code is PIC.
16199 if test "$host_cpu" = ia64; then
16200 # AIX 5 now supports IA64 processor
16201 lt_prog_compiler_static_CXX='-Bstatic'
16202 else
16203 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16204 fi
16205 ;;
16206 chorus*)
16207 case $cc_basename in
16208 cxch68)
16209 # Green Hills C++ Compiler
16210 # _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"
16211 ;;
16212 esac
16213 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016214 darwin*)
16215 # PIC is the default on this platform
16216 # Common symbols not allowed in MH_DYLIB files
16217 case "$cc_basename" in
16218 xlc*)
16219 lt_prog_compiler_pic_CXX='-qnocommon'
16220 lt_prog_compiler_wl_CXX='-Wl,'
16221 ;;
16222 esac
16223 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016224 dgux*)
16225 case $cc_basename in
16226 ec++)
16227 lt_prog_compiler_pic_CXX='-KPIC'
16228 ;;
16229 ghcx)
16230 # Green Hills C++ Compiler
16231 lt_prog_compiler_pic_CXX='-pic'
16232 ;;
16233 *)
16234 ;;
16235 esac
16236 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016237 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016238 # FreeBSD uses GNU C++
16239 ;;
16240 hpux9* | hpux10* | hpux11*)
16241 case $cc_basename in
16242 CC)
16243 lt_prog_compiler_wl_CXX='-Wl,'
16244 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16245 if test "$host_cpu" != ia64; then
16246 lt_prog_compiler_pic_CXX='+Z'
16247 fi
16248 ;;
16249 aCC)
16250 lt_prog_compiler_wl_CXX='-Wl,'
16251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16252 case "$host_cpu" in
16253 hppa*64*|ia64*)
16254 # +Z the default
16255 ;;
16256 *)
16257 lt_prog_compiler_pic_CXX='+Z'
16258 ;;
16259 esac
16260 ;;
16261 *)
16262 ;;
16263 esac
16264 ;;
16265 irix5* | irix6* | nonstopux*)
16266 case $cc_basename in
16267 CC)
16268 lt_prog_compiler_wl_CXX='-Wl,'
16269 lt_prog_compiler_static_CXX='-non_shared'
16270 # CC pic flag -KPIC is the default.
16271 ;;
16272 *)
16273 ;;
16274 esac
16275 ;;
16276 linux*)
16277 case $cc_basename in
16278 KCC)
16279 # KAI C++ Compiler
16280 lt_prog_compiler_wl_CXX='--backend -Wl,'
16281 lt_prog_compiler_pic_CXX='-fPIC'
16282 ;;
16283 icpc)
16284 # Intel C++
16285 lt_prog_compiler_wl_CXX='-Wl,'
16286 lt_prog_compiler_pic_CXX='-KPIC'
16287 lt_prog_compiler_static_CXX='-static'
16288 ;;
16289 cxx)
16290 # Compaq C++
16291 # Make sure the PIC flag is empty. It appears that all Alpha
16292 # Linux and Compaq Tru64 Unix objects are PIC.
16293 lt_prog_compiler_pic_CXX=
16294 lt_prog_compiler_static_CXX='-non_shared'
16295 ;;
16296 *)
16297 ;;
16298 esac
16299 ;;
16300 lynxos*)
16301 ;;
16302 m88k*)
16303 ;;
16304 mvs*)
16305 case $cc_basename in
16306 cxx)
16307 lt_prog_compiler_pic_CXX='-W c,exportall'
16308 ;;
16309 *)
16310 ;;
16311 esac
16312 ;;
16313 netbsd*)
16314 ;;
16315 osf3* | osf4* | osf5*)
16316 case $cc_basename in
16317 KCC)
16318 lt_prog_compiler_wl_CXX='--backend -Wl,'
16319 ;;
16320 RCC)
16321 # Rational C++ 2.4.1
16322 lt_prog_compiler_pic_CXX='-pic'
16323 ;;
16324 cxx)
16325 # Digital/Compaq C++
16326 lt_prog_compiler_wl_CXX='-Wl,'
16327 # Make sure the PIC flag is empty. It appears that all Alpha
16328 # Linux and Compaq Tru64 Unix objects are PIC.
16329 lt_prog_compiler_pic_CXX=
16330 lt_prog_compiler_static_CXX='-non_shared'
16331 ;;
16332 *)
16333 ;;
16334 esac
16335 ;;
16336 psos*)
16337 ;;
16338 sco*)
16339 case $cc_basename in
16340 CC)
16341 lt_prog_compiler_pic_CXX='-fPIC'
16342 ;;
16343 *)
16344 ;;
16345 esac
16346 ;;
16347 solaris*)
16348 case $cc_basename in
16349 CC)
16350 # Sun C++ 4.2, 5.x and Centerline C++
16351 lt_prog_compiler_pic_CXX='-KPIC'
16352 lt_prog_compiler_static_CXX='-Bstatic'
16353 lt_prog_compiler_wl_CXX='-Qoption ld '
16354 ;;
16355 gcx)
16356 # Green Hills C++ Compiler
16357 lt_prog_compiler_pic_CXX='-PIC'
16358 ;;
16359 *)
16360 ;;
16361 esac
16362 ;;
16363 sunos4*)
16364 case $cc_basename in
16365 CC)
16366 # Sun C++ 4.x
16367 lt_prog_compiler_pic_CXX='-pic'
16368 lt_prog_compiler_static_CXX='-Bstatic'
16369 ;;
16370 lcc)
16371 # Lucid
16372 lt_prog_compiler_pic_CXX='-pic'
16373 ;;
16374 *)
16375 ;;
16376 esac
16377 ;;
16378 tandem*)
16379 case $cc_basename in
16380 NCC)
16381 # NonStop-UX NCC 3.20
16382 lt_prog_compiler_pic_CXX='-KPIC'
16383 ;;
16384 *)
16385 ;;
16386 esac
16387 ;;
16388 unixware*)
16389 ;;
16390 vxworks*)
16391 ;;
16392 *)
16393 lt_prog_compiler_can_build_shared_CXX=no
16394 ;;
16395 esac
16396 fi
16397
16398echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16399echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16400
16401#
16402# Check to make sure the PIC flag actually works.
16403#
16404if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016405
16406echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016407echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16408if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 lt_prog_compiler_pic_works_CXX=no
16412 ac_outfile=conftest.$ac_objext
16413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16415 # Insert the option either (1) after the last *FLAGS variable, or
16416 # (2) before a word containing "conftest.", or (3) at the end.
16417 # Note that $ac_compile itself does not contain backslashes and begins
16418 # with a dollar sign (not a hyphen), so the echo should work correctly.
16419 # The option is referenced via a variable to avoid confusing sed.
16420 lt_compile=`echo "$ac_compile" | $SED \
16421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16423 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000016424 (eval echo "\"\$as_me:16424: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016425 (eval "$lt_compile" 2>conftest.err)
16426 ac_status=$?
16427 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000016428 echo "$as_me:16428: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016429 if (exit $ac_status) && test -s "$ac_outfile"; then
16430 # The compiler can only warn and ignore the option if not recognized
16431 # So say no if there are warnings
16432 if test ! -s conftest.err; then
16433 lt_prog_compiler_pic_works_CXX=yes
16434 fi
16435 fi
16436 $rm conftest*
16437
16438fi
16439echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16440echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16441
16442if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16443 case $lt_prog_compiler_pic_CXX in
16444 "" | " "*) ;;
16445 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16446 esac
16447else
16448 lt_prog_compiler_pic_CXX=
16449 lt_prog_compiler_can_build_shared_CXX=no
16450fi
16451
16452fi
16453case "$host_os" in
16454 # For platforms which do not support PIC, -DPIC is meaningless:
16455 *djgpp*)
16456 lt_prog_compiler_pic_CXX=
16457 ;;
16458 *)
16459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16460 ;;
16461esac
16462
16463echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16464echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16465if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468 lt_cv_prog_compiler_c_o_CXX=no
16469 $rm -r conftest 2>/dev/null
16470 mkdir conftest
16471 cd conftest
16472 mkdir out
16473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16474
John Criswell47fdd832003-07-14 16:52:07 +000016475 lt_compiler_flag="-o out/conftest2.$ac_objext"
16476 # Insert the option either (1) after the last *FLAGS variable, or
16477 # (2) before a word containing "conftest.", or (3) at the end.
16478 # Note that $ac_compile itself does not contain backslashes and begins
16479 # with a dollar sign (not a hyphen), so the echo should work correctly.
16480 lt_compile=`echo "$ac_compile" | $SED \
16481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16483 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000016484 (eval echo "\"\$as_me:16484: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016485 (eval "$lt_compile" 2>out/conftest.err)
16486 ac_status=$?
16487 cat out/conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000016488 echo "$as_me:16488: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16490 then
16491 # The compiler can only warn and ignore the option if not recognized
16492 # So say no if there are warnings
16493 if test ! -s out/conftest.err; then
16494 lt_cv_prog_compiler_c_o_CXX=yes
16495 fi
16496 fi
16497 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016498 $rm conftest*
16499 # SGI C++ compiler will create directory out/ii_files/ for
16500 # template instantiation
16501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16502 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016503 cd ..
16504 rmdir conftest
16505 $rm conftest*
16506
16507fi
16508echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16509echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16510
16511
16512hard_links="nottested"
16513if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16514 # do not overwrite the value of need_locks provided by the user
16515 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16516echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16517 hard_links=yes
16518 $rm conftest*
16519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16520 touch conftest.a
16521 ln conftest.a conftest.b 2>&5 || hard_links=no
16522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16523 echo "$as_me:$LINENO: result: $hard_links" >&5
16524echo "${ECHO_T}$hard_links" >&6
16525 if test "$hard_links" = no; then
16526 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16527echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16528 need_locks=warn
16529 fi
16530else
16531 need_locks=no
16532fi
16533
16534echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16536
16537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16538 case $host_os in
16539 aix4* | aix5*)
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16543 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'
16544 else
16545 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'
16546 fi
16547 ;;
16548 pw32*)
16549 export_symbols_cmds_CXX="$ltdll_cmds"
16550 ;;
16551 cygwin* | mingw*)
16552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16553 ;;
16554 *)
16555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16556 ;;
16557 esac
16558
16559echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16560echo "${ECHO_T}$ld_shlibs_CXX" >&6
16561test "$ld_shlibs_CXX" = no && can_build_shared=no
16562
16563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564if test "$GCC" = yes; then
16565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16566fi
16567
16568#
16569# Do we need to explicitly link libc?
16570#
16571case "x$archive_cmds_need_lc_CXX" in
16572x|xyes)
16573 # Assume -lc should be added
16574 archive_cmds_need_lc_CXX=yes
16575
16576 if test "$enable_shared" = yes && test "$GCC" = yes; then
16577 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016578 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016579 # FIXME: we may have to deal with multi-command sequences.
16580 ;;
16581 '$CC '*)
16582 # Test whether the compiler implicitly links with -lc since on some
16583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584 # to ld, don't add -lc before -lgcc.
16585 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16586echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16587 $rm conftest*
16588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16589
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } 2>conftest.err; then
16595 soname=conftest
16596 lib=conftest
16597 libobjs=conftest.$ac_objext
16598 deplibs=
16599 wl=$lt_prog_compiler_wl_CXX
16600 compiler_flags=-v
16601 linker_flags=-v
16602 verstring=
16603 output_objdir=.
16604 libname=conftest
16605 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16606 allow_undefined_flag_CXX=
16607 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16608 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }
16612 then
16613 archive_cmds_need_lc_CXX=no
16614 else
16615 archive_cmds_need_lc_CXX=yes
16616 fi
16617 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16618 else
16619 cat conftest.err 1>&5
16620 fi
16621 $rm conftest*
16622 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16623echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16624 ;;
16625 esac
16626 fi
16627 ;;
16628esac
16629
John Criswell47fdd832003-07-14 16:52:07 +000016630echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16631echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16632library_names_spec=
16633libname_spec='lib$name'
16634soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016635shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016636postinstall_cmds=
16637postuninstall_cmds=
16638finish_cmds=
16639finish_eval=
16640shlibpath_var=
16641shlibpath_overrides_runpath=unknown
16642version_type=none
16643dynamic_linker="$host_os ld.so"
16644sys_lib_dlsearch_path_spec="/lib /usr/lib"
16645if test "$GCC" = yes; then
16646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16648 # if the path contains ";" then we assume it to be the separator
16649 # otherwise default to the standard path separator (i.e. ":") - it is
16650 # assumed that no part of a normal pathname contains ";" but that should
16651 # okay in the real world where ";" in dirpaths is itself problematic.
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16653 else
16654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16655 fi
16656else
16657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16658fi
16659need_lib_prefix=unknown
16660hardcode_into_libs=no
16661
16662# when you set need_version to no, make sure it does not cause -set_version
16663# flags to be left without arguments
16664need_version=unknown
16665
16666case $host_os in
16667aix3*)
16668 version_type=linux
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16670 shlibpath_var=LIBPATH
16671
16672 # AIX 3 has no versioning support, so we append a major version to the name.
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 ;;
16675
16676aix4* | aix5*)
16677 version_type=linux
16678 need_lib_prefix=no
16679 need_version=no
16680 hardcode_into_libs=yes
16681 if test "$host_cpu" = ia64; then
16682 # AIX 5 supports IA64
16683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 else
16686 # With GCC up to 2.95.x, collect2 would create an import file
16687 # for dependence libraries. The import file would start with
16688 # the line `#! .'. This would cause the generated library to
16689 # depend on `.', always an invalid library. This was fixed in
16690 # development snapshots of GCC prior to 3.0.
16691 case $host_os in
16692 aix4 | aix4.[01] | aix4.[01].*)
16693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16694 echo ' yes '
16695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16696 :
16697 else
16698 can_build_shared=no
16699 fi
16700 ;;
16701 esac
16702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16703 # soname into executable. Probably we can add versioning support to
16704 # collect2, so additional links can be useful in future.
16705 if test "$aix_use_runtimelinking" = yes; then
16706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16707 # instead of lib<name>.a to let people know that these are not
16708 # typical AIX shared libraries.
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 else
16711 # We preserve .a as extension for shared libraries through AIX4.2
16712 # and later when we are not doing run time linking.
16713 library_names_spec='${libname}${release}.a $libname.a'
16714 soname_spec='${libname}${release}${shared_ext}$major'
16715 fi
16716 shlibpath_var=LIBPATH
16717 fi
16718 ;;
16719
16720amigaos*)
16721 library_names_spec='$libname.ixlibrary $libname.a'
16722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016723 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 +000016724 ;;
16725
16726beos*)
16727 library_names_spec='${libname}${shared_ext}'
16728 dynamic_linker="$host_os ld.so"
16729 shlibpath_var=LIBRARY_PATH
16730 ;;
16731
Reid Spencer2706f8c2004-09-19 23:53:36 +000016732bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016733 version_type=linux
16734 need_version=no
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16741 # the default ld.so.conf also contains /usr/contrib/lib and
16742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16743 # libtool to hard-code these into programs
16744 ;;
16745
16746cygwin* | mingw* | pw32*)
16747 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016748 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016749 need_version=no
16750 need_lib_prefix=no
16751
16752 case $GCC,$host_os in
16753 yes,cygwin* | yes,mingw* | yes,pw32*)
16754 library_names_spec='$libname.dll.a'
16755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016756 postinstall_cmds='base_file=`basename \${file}`~
16757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16758 dldir=$destdir/`dirname \$dlpath`~
16759 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016760 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16762 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016763 $rm \$dlpath'
16764 shlibpath_overrides_runpath=yes
16765
16766 case $host_os in
16767 cygwin*)
16768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16769 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 +000016770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016771 ;;
16772 mingw*)
16773 # MinGW DLLs use traditional 'lib' prefix
16774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16777 # It is most probably a Windows format PATH printed by
16778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16779 # path with ; separators, and with drive letters. We can handle the
16780 # drive letters (cygwin fileutils understands them), so leave them,
16781 # especially as we might pass files found there to a mingw objdump,
16782 # which wouldn't understand a cygwinified path. Ahh.
16783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16784 else
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16786 fi
16787 ;;
16788 pw32*)
16789 # pw32 DLLs use 'pw' prefix rather than 'lib'
16790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16791 ;;
16792 esac
16793 ;;
16794
16795 *)
16796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16797 ;;
16798 esac
16799 dynamic_linker='Win32 ld.exe'
16800 # FIXME: first we should search . and the directory the executable is in
16801 shlibpath_var=PATH
16802 ;;
16803
16804darwin* | rhapsody*)
16805 dynamic_linker="$host_os dyld"
16806 version_type=darwin
16807 need_lib_prefix=no
16808 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016810 soname_spec='${libname}${release}${major}$shared_ext'
16811 shlibpath_overrides_runpath=yes
16812 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016813 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016815 if test "$GCC" = yes; then
16816 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"`
16817 else
16818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016819 fi
16820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16821 ;;
16822
16823dgux*)
16824 version_type=linux
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 ;;
16831
16832freebsd1*)
16833 dynamic_linker=no
16834 ;;
16835
Reid Spencer2706f8c2004-09-19 23:53:36 +000016836kfreebsd*-gnu)
16837 version_type=linux
16838 need_lib_prefix=no
16839 need_version=no
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 shlibpath_overrides_runpath=no
16844 hardcode_into_libs=yes
16845 dynamic_linker='GNU ld.so'
16846 ;;
16847
John Criswell47fdd832003-07-14 16:52:07 +000016848freebsd*)
16849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16850 version_type=freebsd-$objformat
16851 case $version_type in
16852 freebsd-elf*)
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16854 need_version=no
16855 need_lib_prefix=no
16856 ;;
16857 freebsd-*)
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16859 need_version=yes
16860 ;;
16861 esac
16862 shlibpath_var=LD_LIBRARY_PATH
16863 case $host_os in
16864 freebsd2*)
16865 shlibpath_overrides_runpath=yes
16866 ;;
16867 freebsd3.01* | freebsdelf3.01*)
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16870 ;;
16871 *) # from 3.2 on
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16874 ;;
16875 esac
16876 ;;
16877
16878gnu*)
16879 version_type=linux
16880 need_lib_prefix=no
16881 need_version=no
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 hardcode_into_libs=yes
16886 ;;
16887
16888hpux9* | hpux10* | hpux11*)
16889 # Give a soname corresponding to the major version so that dld.sl refuses to
16890 # link against other versions.
16891 version_type=sunos
16892 need_lib_prefix=no
16893 need_version=no
16894 case "$host_cpu" in
16895 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016897 hardcode_into_libs=yes
16898 dynamic_linker="$host_os dld.so"
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 if test "X$HPUX_IA64_MODE" = X32; then
16904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16905 else
16906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16907 fi
16908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16909 ;;
16910 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016911 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016912 hardcode_into_libs=yes
16913 dynamic_linker="$host_os dld.sl"
16914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16920 ;;
16921 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016923 dynamic_linker="$host_os dld.sl"
16924 shlibpath_var=SHLIB_PATH
16925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 ;;
16929 esac
16930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16931 postinstall_cmds='chmod 555 $lib'
16932 ;;
16933
16934irix5* | irix6* | nonstopux*)
16935 case $host_os in
16936 nonstopux*) version_type=nonstopux ;;
16937 *)
16938 if test "$lt_cv_prog_gnu_ld" = yes; then
16939 version_type=linux
16940 else
16941 version_type=irix
16942 fi ;;
16943 esac
16944 need_lib_prefix=no
16945 need_version=no
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16948 case $host_os in
16949 irix5* | nonstopux*)
16950 libsuff= shlibsuff=
16951 ;;
16952 *)
16953 case $LD in # libtool.m4 will add one of these switches to LD
16954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16955 libsuff= shlibsuff= libmagic=32-bit;;
16956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16957 libsuff=32 shlibsuff=N32 libmagic=N32;;
16958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16960 *) libsuff= shlibsuff= libmagic=never-match;;
16961 esac
16962 ;;
16963 esac
16964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16965 shlibpath_overrides_runpath=no
16966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16968 hardcode_into_libs=yes
16969 ;;
16970
16971# No shared lib support for Linux oldld, aout, or coff.
16972linux*oldld* | linux*aout* | linux*coff*)
16973 dynamic_linker=no
16974 ;;
16975
16976# This must be Linux ELF.
16977linux*)
16978 version_type=linux
16979 need_lib_prefix=no
16980 need_version=no
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 shlibpath_overrides_runpath=no
16986 # This implies no fast_install, which is unacceptable.
16987 # Some rework will be needed to allow for fast_install
16988 # before this can be enabled.
16989 hardcode_into_libs=yes
16990
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991 # Append ld.so.conf contents to the search path
16992 if test -f /etc/ld.so.conf; then
16993 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16995 fi
16996
John Criswell47fdd832003-07-14 16:52:07 +000016997 # We used to test for /lib/ld.so.1 and disable shared libraries on
16998 # powerpc, because MkLinux only supported shared libraries with the
16999 # GNU dynamic linker. Since this was broken with cross compilers,
17000 # most powerpc-linux boxes support dynamic linking these days and
17001 # people can always --disable-shared, the test was removed, and we
17002 # assume the GNU/Linux dynamic linker is in use.
17003 dynamic_linker='GNU/Linux ld.so'
17004 ;;
17005
Reid Spencer2706f8c2004-09-19 23:53:36 +000017006knetbsd*-gnu)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=no
17014 hardcode_into_libs=yes
17015 dynamic_linker='GNU ld.so'
17016 ;;
17017
John Criswell47fdd832003-07-14 16:52:07 +000017018netbsd*)
17019 version_type=sunos
17020 need_lib_prefix=no
17021 need_version=no
17022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025 dynamic_linker='NetBSD (a.out) ld.so'
17026 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017028 soname_spec='${libname}${release}${shared_ext}$major'
17029 dynamic_linker='NetBSD ld.elf_so'
17030 fi
17031 shlibpath_var=LD_LIBRARY_PATH
17032 shlibpath_overrides_runpath=yes
17033 hardcode_into_libs=yes
17034 ;;
17035
17036newsos6)
17037 version_type=linux
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 shlibpath_overrides_runpath=yes
17041 ;;
17042
Reid Spencer2706f8c2004-09-19 23:53:36 +000017043nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017044 version_type=linux
17045 need_lib_prefix=no
17046 need_version=no
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 shlibpath_var=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath=yes
17051 ;;
17052
17053openbsd*)
17054 version_type=sunos
17055 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017056 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17061 case $host_os in
17062 openbsd2.[89] | openbsd2.[89].*)
17063 shlibpath_overrides_runpath=no
17064 ;;
17065 *)
17066 shlibpath_overrides_runpath=yes
17067 ;;
17068 esac
17069 else
17070 shlibpath_overrides_runpath=yes
17071 fi
17072 ;;
17073
17074os2*)
17075 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017077 need_lib_prefix=no
17078 library_names_spec='$libname${shared_ext} $libname.a'
17079 dynamic_linker='OS/2 ld.exe'
17080 shlibpath_var=LIBPATH
17081 ;;
17082
17083osf3* | osf4* | osf5*)
17084 version_type=osf
17085 need_lib_prefix=no
17086 need_version=no
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17092 ;;
17093
17094sco3.2v5*)
17095 version_type=osf
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 ;;
17100
17101solaris*)
17102 version_type=linux
17103 need_lib_prefix=no
17104 need_version=no
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=yes
17109 hardcode_into_libs=yes
17110 # ldd complains unless libraries are executable
17111 postinstall_cmds='chmod +x $lib'
17112 ;;
17113
17114sunos4*)
17115 version_type=sunos
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes
17120 if test "$with_gnu_ld" = yes; then
17121 need_lib_prefix=no
17122 fi
17123 need_version=yes
17124 ;;
17125
17126sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17127 version_type=linux
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 case $host_vendor in
17132 sni)
17133 shlibpath_overrides_runpath=no
17134 need_lib_prefix=no
17135 export_dynamic_flag_spec='${wl}-Blargedynsym'
17136 runpath_var=LD_RUN_PATH
17137 ;;
17138 siemens)
17139 need_lib_prefix=no
17140 ;;
17141 motorola)
17142 need_lib_prefix=no
17143 need_version=no
17144 shlibpath_overrides_runpath=no
17145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17146 ;;
17147 esac
17148 ;;
17149
17150sysv4*MP*)
17151 if test -d /usr/nec ;then
17152 version_type=linux
17153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17154 soname_spec='$libname${shared_ext}.$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 fi
17157 ;;
17158
17159uts4*)
17160 version_type=linux
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 soname_spec='${libname}${release}${shared_ext}$major'
17163 shlibpath_var=LD_LIBRARY_PATH
17164 ;;
17165
17166*)
17167 dynamic_linker=no
17168 ;;
17169esac
17170echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17171echo "${ECHO_T}$dynamic_linker" >&6
17172test "$dynamic_linker" = no && can_build_shared=no
17173
Reid Spencer2706f8c2004-09-19 23:53:36 +000017174echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17175echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17176hardcode_action_CXX=
17177if test -n "$hardcode_libdir_flag_spec_CXX" || \
17178 test -n "$runpath_var_CXX" || \
17179 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17180
17181 # We can hardcode non-existant directories.
17182 if test "$hardcode_direct_CXX" != no &&
17183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17184 # have to relink, otherwise we might link with an installed library
17185 # when we should be linking with a yet-to-be-installed one
17186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17187 test "$hardcode_minus_L_CXX" != no; then
17188 # Linking always hardcodes the temporary library directory.
17189 hardcode_action_CXX=relink
17190 else
17191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17192 hardcode_action_CXX=immediate
17193 fi
17194else
17195 # We cannot hardcode anything, or else we can only hardcode existing
17196 # directories.
17197 hardcode_action_CXX=unsupported
17198fi
17199echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17200echo "${ECHO_T}$hardcode_action_CXX" >&6
17201
17202if test "$hardcode_action_CXX" = relink; then
17203 # Fast installation is not supported
17204 enable_fast_install=no
17205elif test "$shlibpath_overrides_runpath" = yes ||
17206 test "$enable_shared" = no; then
17207 # Fast installation is not necessary
17208 enable_fast_install=needless
17209fi
17210
17211striplib=
17212old_striplib=
17213echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17214echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17215if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17216 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17217 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17218 echo "$as_me:$LINENO: result: yes" >&5
17219echo "${ECHO_T}yes" >&6
17220else
17221# FIXME - insert some real tests, host_os isn't really good enough
17222 case $host_os in
17223 darwin*)
17224 if test -n "$STRIP" ; then
17225 striplib="$STRIP -x"
17226 echo "$as_me:$LINENO: result: yes" >&5
17227echo "${ECHO_T}yes" >&6
17228 else
17229 echo "$as_me:$LINENO: result: no" >&5
17230echo "${ECHO_T}no" >&6
17231fi
17232 ;;
17233 *)
17234 echo "$as_me:$LINENO: result: no" >&5
17235echo "${ECHO_T}no" >&6
17236 ;;
17237 esac
17238fi
17239
John Criswell47fdd832003-07-14 16:52:07 +000017240if test "x$enable_dlopen" != xyes; then
17241 enable_dlopen=unknown
17242 enable_dlopen_self=unknown
17243 enable_dlopen_self_static=unknown
17244else
17245 lt_cv_dlopen=no
17246 lt_cv_dlopen_libs=
17247
17248 case $host_os in
17249 beos*)
17250 lt_cv_dlopen="load_add_on"
17251 lt_cv_dlopen_libs=
17252 lt_cv_dlopen_self=yes
17253 ;;
17254
17255 mingw* | pw32*)
17256 lt_cv_dlopen="LoadLibrary"
17257 lt_cv_dlopen_libs=
17258 ;;
17259
17260 cygwin*)
17261 lt_cv_dlopen="dlopen"
17262 lt_cv_dlopen_libs=
17263 ;;
17264
17265 darwin*)
17266 # if libdl is installed we need to link against it
17267 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17268echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17269if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271else
17272 ac_check_lib_save_LIBS=$LIBS
17273LIBS="-ldl $LIBS"
17274cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017280
17281/* Override any gcc2 internal prototype to avoid an error. */
17282#ifdef __cplusplus
17283extern "C"
17284#endif
17285/* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017288int
17289main ()
17290{
17291dlopen ();
17292 ;
17293 return 0;
17294}
17295_ACEOF
17296rm -f conftest.$ac_objext conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017298 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017299 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017305 { ac_try='test -z "$ac_cxx_werror_flag"
17306 || test ! -s conftest.err'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_lib_dl_dlopen=yes
17319else
17320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017321sed 's/^/| /' conftest.$ac_ext >&5
17322
John Criswell47fdd832003-07-14 16:52:07 +000017323ac_cv_lib_dl_dlopen=no
17324fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017325rm -f conftest.err conftest.$ac_objext \
17326 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017327LIBS=$ac_check_lib_save_LIBS
17328fi
17329echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17330echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17331if test $ac_cv_lib_dl_dlopen = yes; then
17332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17333else
17334
17335 lt_cv_dlopen="dyld"
17336 lt_cv_dlopen_libs=
17337 lt_cv_dlopen_self=yes
17338
17339fi
17340
17341 ;;
17342
17343 *)
17344 echo "$as_me:$LINENO: checking for shl_load" >&5
17345echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17346if test "${ac_cv_func_shl_load+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348else
17349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017355/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17357#define shl_load innocuous_shl_load
17358
John Criswell47fdd832003-07-14 16:52:07 +000017359/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017360 which can conflict with char shl_load (); below.
17361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363
John Criswell0c38eaf2003-09-10 15:17:25 +000017364#ifdef __STDC__
17365# include <limits.h>
17366#else
17367# include <assert.h>
17368#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017369
17370#undef shl_load
17371
John Criswell47fdd832003-07-14 16:52:07 +000017372/* Override any gcc2 internal prototype to avoid an error. */
17373#ifdef __cplusplus
17374extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017375{
John Criswell47fdd832003-07-14 16:52:07 +000017376#endif
17377/* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17379char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017380/* The GNU C library defines this for functions which it implements
17381 to always fail with ENOSYS. Some functions are actually named
17382 something starting with __ and the normal name is an alias. */
17383#if defined (__stub_shl_load) || defined (__stub___shl_load)
17384choke me
17385#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017386char (*f) () = shl_load;
17387#endif
17388#ifdef __cplusplus
17389}
John Criswell47fdd832003-07-14 16:52:07 +000017390#endif
17391
John Criswell0c38eaf2003-09-10 15:17:25 +000017392int
17393main ()
17394{
17395return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017396 ;
17397 return 0;
17398}
17399_ACEOF
17400rm -f conftest.$ac_objext conftest$ac_exeext
17401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017402 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017409 { ac_try='test -z "$ac_cxx_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_shl_load=yes
17423else
17424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017425sed 's/^/| /' conftest.$ac_ext >&5
17426
John Criswell47fdd832003-07-14 16:52:07 +000017427ac_cv_func_shl_load=no
17428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017429rm -f conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017431fi
17432echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17433echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17434if test $ac_cv_func_shl_load = yes; then
17435 lt_cv_dlopen="shl_load"
17436else
17437 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17438echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17439if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441else
17442 ac_check_lib_save_LIBS=$LIBS
17443LIBS="-ldld $LIBS"
17444cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017450
17451/* Override any gcc2 internal prototype to avoid an error. */
17452#ifdef __cplusplus
17453extern "C"
17454#endif
17455/* We use char because int might match the return type of a gcc2
17456 builtin and then its argument prototype would still apply. */
17457char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017458int
17459main ()
17460{
17461shl_load ();
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
17467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017468 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017475 { ac_try='test -z "$ac_cxx_werror_flag"
17476 || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_cv_lib_dld_shl_load=yes
17489else
17490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017491sed 's/^/| /' conftest.$ac_ext >&5
17492
John Criswell47fdd832003-07-14 16:52:07 +000017493ac_cv_lib_dld_shl_load=no
17494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017495rm -f conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017497LIBS=$ac_check_lib_save_LIBS
17498fi
17499echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17500echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17501if test $ac_cv_lib_dld_shl_load = yes; then
17502 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17503else
17504 echo "$as_me:$LINENO: checking for dlopen" >&5
17505echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17506if test "${ac_cv_func_dlopen+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508else
17509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017515/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17517#define dlopen innocuous_dlopen
17518
John Criswell47fdd832003-07-14 16:52:07 +000017519/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017520 which can conflict with char dlopen (); below.
17521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017523
John Criswell0c38eaf2003-09-10 15:17:25 +000017524#ifdef __STDC__
17525# include <limits.h>
17526#else
17527# include <assert.h>
17528#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017529
17530#undef dlopen
17531
John Criswell47fdd832003-07-14 16:52:07 +000017532/* Override any gcc2 internal prototype to avoid an error. */
17533#ifdef __cplusplus
17534extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017535{
John Criswell47fdd832003-07-14 16:52:07 +000017536#endif
17537/* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
17539char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017540/* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543#if defined (__stub_dlopen) || defined (__stub___dlopen)
17544choke me
17545#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017546char (*f) () = dlopen;
17547#endif
17548#ifdef __cplusplus
17549}
John Criswell47fdd832003-07-14 16:52:07 +000017550#endif
17551
John Criswell0c38eaf2003-09-10 15:17:25 +000017552int
17553main ()
17554{
17555return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017556 ;
17557 return 0;
17558}
17559_ACEOF
17560rm -f conftest.$ac_objext conftest$ac_exeext
17561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017562 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017569 { ac_try='test -z "$ac_cxx_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ac_cv_func_dlopen=yes
17583else
17584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017585sed 's/^/| /' conftest.$ac_ext >&5
17586
John Criswell47fdd832003-07-14 16:52:07 +000017587ac_cv_func_dlopen=no
17588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017589rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017591fi
17592echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17593echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17594if test $ac_cv_func_dlopen = yes; then
17595 lt_cv_dlopen="dlopen"
17596else
17597 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601else
17602 ac_check_lib_save_LIBS=$LIBS
17603LIBS="-ldl $LIBS"
17604cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017605/* confdefs.h. */
17606_ACEOF
17607cat confdefs.h >>conftest.$ac_ext
17608cat >>conftest.$ac_ext <<_ACEOF
17609/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017610
17611/* Override any gcc2 internal prototype to avoid an error. */
17612#ifdef __cplusplus
17613extern "C"
17614#endif
17615/* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17617char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017618int
17619main ()
17620{
17621dlopen ();
17622 ;
17623 return 0;
17624}
17625_ACEOF
17626rm -f conftest.$ac_objext conftest$ac_exeext
17627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017635 { ac_try='test -z "$ac_cxx_werror_flag"
17636 || test ! -s conftest.err'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 ac_cv_lib_dl_dlopen=yes
17649else
17650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017651sed 's/^/| /' conftest.$ac_ext >&5
17652
John Criswell47fdd832003-07-14 16:52:07 +000017653ac_cv_lib_dl_dlopen=no
17654fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017655rm -f conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017657LIBS=$ac_check_lib_save_LIBS
17658fi
17659echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661if test $ac_cv_lib_dl_dlopen = yes; then
17662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663else
17664 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17665echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17666if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 ac_check_lib_save_LIBS=$LIBS
17670LIBS="-lsvld $LIBS"
17671cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017677
17678/* Override any gcc2 internal prototype to avoid an error. */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682/* We use char because int might match the return type of a gcc2
17683 builtin and then its argument prototype would still apply. */
17684char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017685int
17686main ()
17687{
17688dlopen ();
17689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext conftest$ac_exeext
17694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017696 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017702 { ac_try='test -z "$ac_cxx_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_lib_svld_dlopen=yes
17716else
17717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017718sed 's/^/| /' conftest.$ac_ext >&5
17719
John Criswell47fdd832003-07-14 16:52:07 +000017720ac_cv_lib_svld_dlopen=no
17721fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017722rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017724LIBS=$ac_check_lib_save_LIBS
17725fi
17726echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17727echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17728if test $ac_cv_lib_svld_dlopen = yes; then
17729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17730else
17731 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17732echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17733if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735else
17736 ac_check_lib_save_LIBS=$LIBS
17737LIBS="-ldld $LIBS"
17738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017744
17745/* Override any gcc2 internal prototype to avoid an error. */
17746#ifdef __cplusplus
17747extern "C"
17748#endif
17749/* We use char because int might match the return type of a gcc2
17750 builtin and then its argument prototype would still apply. */
17751char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017752int
17753main ()
17754{
17755dld_link ();
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext conftest$ac_exeext
17761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017769 { ac_try='test -z "$ac_cxx_werror_flag"
17770 || test ! -s conftest.err'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_lib_dld_dld_link=yes
17783else
17784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017785sed 's/^/| /' conftest.$ac_ext >&5
17786
John Criswell47fdd832003-07-14 16:52:07 +000017787ac_cv_lib_dld_dld_link=no
17788fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017789rm -f conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017791LIBS=$ac_check_lib_save_LIBS
17792fi
17793echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17794echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17795if test $ac_cv_lib_dld_dld_link = yes; then
17796 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17797fi
17798
17799
17800fi
17801
17802
17803fi
17804
17805
17806fi
17807
17808
17809fi
17810
17811
17812fi
17813
17814 ;;
17815 esac
17816
17817 if test "x$lt_cv_dlopen" != xno; then
17818 enable_dlopen=yes
17819 else
17820 enable_dlopen=no
17821 fi
17822
17823 case $lt_cv_dlopen in
17824 dlopen)
17825 save_CPPFLAGS="$CPPFLAGS"
17826 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17827
17828 save_LDFLAGS="$LDFLAGS"
17829 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17830
17831 save_LIBS="$LIBS"
17832 LIBS="$lt_cv_dlopen_libs $LIBS"
17833
17834 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17835echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17836if test "${lt_cv_dlopen_self+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838else
17839 if test "$cross_compiling" = yes; then :
17840 lt_cv_dlopen_self=cross
17841else
17842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17843 lt_status=$lt_dlunknown
17844 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000017845#line 17845 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017846#include "confdefs.h"
17847
17848#if HAVE_DLFCN_H
17849#include <dlfcn.h>
17850#endif
17851
17852#include <stdio.h>
17853
17854#ifdef RTLD_GLOBAL
17855# define LT_DLGLOBAL RTLD_GLOBAL
17856#else
17857# ifdef DL_GLOBAL
17858# define LT_DLGLOBAL DL_GLOBAL
17859# else
17860# define LT_DLGLOBAL 0
17861# endif
17862#endif
17863
17864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17865 find out it does not work in some platform. */
17866#ifndef LT_DLLAZY_OR_NOW
17867# ifdef RTLD_LAZY
17868# define LT_DLLAZY_OR_NOW RTLD_LAZY
17869# else
17870# ifdef DL_LAZY
17871# define LT_DLLAZY_OR_NOW DL_LAZY
17872# else
17873# ifdef RTLD_NOW
17874# define LT_DLLAZY_OR_NOW RTLD_NOW
17875# else
17876# ifdef DL_NOW
17877# define LT_DLLAZY_OR_NOW DL_NOW
17878# else
17879# define LT_DLLAZY_OR_NOW 0
17880# endif
17881# endif
17882# endif
17883# endif
17884#endif
17885
17886#ifdef __cplusplus
17887extern "C" void exit (int);
17888#endif
17889
17890void fnord() { int i=42;}
17891int main ()
17892{
17893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17894 int status = $lt_dlunknown;
17895
17896 if (self)
17897 {
17898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17900 /* dlclose (self); */
17901 }
17902
17903 exit (status);
17904}
17905EOF
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17911 (./conftest; exit; ) 2>/dev/null
17912 lt_status=$?
17913 case x$lt_status in
17914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17917 esac
17918 else :
17919 # compilation failed
17920 lt_cv_dlopen_self=no
17921 fi
17922fi
17923rm -fr conftest*
17924
17925
17926fi
17927echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17928echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17929
17930 if test "x$lt_cv_dlopen_self" = xyes; then
17931 LDFLAGS="$LDFLAGS $link_static_flag"
17932 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17933echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17934if test "${lt_cv_dlopen_self_static+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936else
17937 if test "$cross_compiling" = yes; then :
17938 lt_cv_dlopen_self_static=cross
17939else
17940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17941 lt_status=$lt_dlunknown
17942 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000017943#line 17943 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017944#include "confdefs.h"
17945
17946#if HAVE_DLFCN_H
17947#include <dlfcn.h>
17948#endif
17949
17950#include <stdio.h>
17951
17952#ifdef RTLD_GLOBAL
17953# define LT_DLGLOBAL RTLD_GLOBAL
17954#else
17955# ifdef DL_GLOBAL
17956# define LT_DLGLOBAL DL_GLOBAL
17957# else
17958# define LT_DLGLOBAL 0
17959# endif
17960#endif
17961
17962/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17963 find out it does not work in some platform. */
17964#ifndef LT_DLLAZY_OR_NOW
17965# ifdef RTLD_LAZY
17966# define LT_DLLAZY_OR_NOW RTLD_LAZY
17967# else
17968# ifdef DL_LAZY
17969# define LT_DLLAZY_OR_NOW DL_LAZY
17970# else
17971# ifdef RTLD_NOW
17972# define LT_DLLAZY_OR_NOW RTLD_NOW
17973# else
17974# ifdef DL_NOW
17975# define LT_DLLAZY_OR_NOW DL_NOW
17976# else
17977# define LT_DLLAZY_OR_NOW 0
17978# endif
17979# endif
17980# endif
17981# endif
17982#endif
17983
17984#ifdef __cplusplus
17985extern "C" void exit (int);
17986#endif
17987
17988void fnord() { int i=42;}
17989int main ()
17990{
17991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17992 int status = $lt_dlunknown;
17993
17994 if (self)
17995 {
17996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17997 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17998 /* dlclose (self); */
17999 }
18000
18001 exit (status);
18002}
18003EOF
18004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18005 (eval $ac_link) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18009 (./conftest; exit; ) 2>/dev/null
18010 lt_status=$?
18011 case x$lt_status in
18012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18015 esac
18016 else :
18017 # compilation failed
18018 lt_cv_dlopen_self_static=no
18019 fi
18020fi
18021rm -fr conftest*
18022
18023
18024fi
18025echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18026echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18027 fi
18028
18029 CPPFLAGS="$save_CPPFLAGS"
18030 LDFLAGS="$save_LDFLAGS"
18031 LIBS="$save_LIBS"
18032 ;;
18033 esac
18034
18035 case $lt_cv_dlopen_self in
18036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18037 *) enable_dlopen_self=unknown ;;
18038 esac
18039
18040 case $lt_cv_dlopen_self_static in
18041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18042 *) enable_dlopen_self_static=unknown ;;
18043 esac
18044fi
18045
18046
18047# The else clause should only fire when bootstrapping the
18048# libtool distribution, otherwise you forgot to ship ltmain.sh
18049# with your package, and you will get complaints that there are
18050# no rules to generate ltmain.sh.
18051if test -f "$ltmain"; then
18052 # See if we are running on zsh, and set the options which allow our commands through
18053 # without removal of \ escapes.
18054 if test -n "${ZSH_VERSION+set}" ; then
18055 setopt NO_GLOB_SUBST
18056 fi
18057 # Now quote all the things that may contain metacharacters while being
18058 # careful not to overquote the AC_SUBSTed values. We take copies of the
18059 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18061 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18064 deplibs_check_method reload_flag reload_cmds need_locks \
18065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18066 lt_cv_sys_global_symbol_to_c_name_address \
18067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18068 old_postinstall_cmds old_postuninstall_cmds \
18069 compiler_CXX \
18070 CC_CXX \
18071 LD_CXX \
18072 lt_prog_compiler_wl_CXX \
18073 lt_prog_compiler_pic_CXX \
18074 lt_prog_compiler_static_CXX \
18075 lt_prog_compiler_no_builtin_flag_CXX \
18076 export_dynamic_flag_spec_CXX \
18077 thread_safe_flag_spec_CXX \
18078 whole_archive_flag_spec_CXX \
18079 enable_shared_with_static_runtimes_CXX \
18080 old_archive_cmds_CXX \
18081 old_archive_from_new_cmds_CXX \
18082 predep_objects_CXX \
18083 postdep_objects_CXX \
18084 predeps_CXX \
18085 postdeps_CXX \
18086 compiler_lib_search_path_CXX \
18087 archive_cmds_CXX \
18088 archive_expsym_cmds_CXX \
18089 postinstall_cmds_CXX \
18090 postuninstall_cmds_CXX \
18091 old_archive_from_expsyms_cmds_CXX \
18092 allow_undefined_flag_CXX \
18093 no_undefined_flag_CXX \
18094 export_symbols_cmds_CXX \
18095 hardcode_libdir_flag_spec_CXX \
18096 hardcode_libdir_flag_spec_ld_CXX \
18097 hardcode_libdir_separator_CXX \
18098 hardcode_automatic_CXX \
18099 module_cmds_CXX \
18100 module_expsym_cmds_CXX \
18101 lt_cv_prog_compiler_c_o_CXX \
18102 exclude_expsyms_CXX \
18103 include_expsyms_CXX; do
18104
18105 case $var in
18106 old_archive_cmds_CXX | \
18107 old_archive_from_new_cmds_CXX | \
18108 archive_cmds_CXX | \
18109 archive_expsym_cmds_CXX | \
18110 module_cmds_CXX | \
18111 module_expsym_cmds_CXX | \
18112 old_archive_from_expsyms_cmds_CXX | \
18113 export_symbols_cmds_CXX | \
18114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18115 postinstall_cmds | postuninstall_cmds | \
18116 old_postinstall_cmds | old_postuninstall_cmds | \
18117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18118 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018119 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 +000018120 ;;
18121 *)
18122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18123 ;;
18124 esac
18125 done
18126
18127 case $lt_echo in
18128 *'\$0 --fallback-echo"')
18129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18130 ;;
18131 esac
18132
18133cfgfile="$ofile"
18134
18135 cat <<__EOF__ >> "$cfgfile"
18136# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18137
18138# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18139
18140# Shell to use when invoking shell scripts.
18141SHELL=$lt_SHELL
18142
18143# Whether or not to build shared libraries.
18144build_libtool_libs=$enable_shared
18145
18146# Whether or not to build static libraries.
18147build_old_libs=$enable_static
18148
18149# Whether or not to add -lc for building shared libraries.
18150build_libtool_need_lc=$archive_cmds_need_lc_CXX
18151
18152# Whether or not to disallow shared libs when runtime libs are static
18153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18154
18155# Whether or not to optimize for fast installation.
18156fast_install=$enable_fast_install
18157
18158# The host system.
18159host_alias=$host_alias
18160host=$host
18161
18162# An echo program that does not interpret backslashes.
18163echo=$lt_echo
18164
18165# The archiver.
18166AR=$lt_AR
18167AR_FLAGS=$lt_AR_FLAGS
18168
18169# A C compiler.
18170LTCC=$lt_LTCC
18171
18172# A language-specific compiler.
18173CC=$lt_compiler_CXX
18174
18175# Is the compiler the GNU C compiler?
18176with_gcc=$GCC_CXX
18177
18178# An ERE matcher.
18179EGREP=$lt_EGREP
18180
18181# The linker used to build libraries.
18182LD=$lt_LD_CXX
18183
18184# Whether we need hard or soft links.
18185LN_S=$lt_LN_S
18186
18187# A BSD-compatible nm program.
18188NM=$lt_NM
18189
18190# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018191STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018192
18193# Used to examine libraries when file_magic_cmd begins "file"
18194MAGIC_CMD=$MAGIC_CMD
18195
18196# Used on cygwin: DLL creation program.
18197DLLTOOL="$DLLTOOL"
18198
18199# Used on cygwin: object dumper.
18200OBJDUMP="$OBJDUMP"
18201
18202# Used on cygwin: assembler.
18203AS="$AS"
18204
18205# The name of the directory that contains temporary libtool files.
18206objdir=$objdir
18207
18208# How to create reloadable object files.
18209reload_flag=$lt_reload_flag
18210reload_cmds=$lt_reload_cmds
18211
18212# How to pass a linker flag through the compiler.
18213wl=$lt_lt_prog_compiler_wl_CXX
18214
18215# Object file suffix (normally "o").
18216objext="$ac_objext"
18217
18218# Old archive suffix (normally "a").
18219libext="$libext"
18220
18221# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018222shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018223
18224# Executable file suffix (normally "").
18225exeext="$exeext"
18226
18227# Additional compiler flags for building library objects.
18228pic_flag=$lt_lt_prog_compiler_pic_CXX
18229pic_mode=$pic_mode
18230
18231# What is the maximum length of a command?
18232max_cmd_len=$lt_cv_sys_max_cmd_len
18233
18234# Does compiler simultaneously support -c and -o options?
18235compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18236
18237# Must we lock files when doing compilation ?
18238need_locks=$lt_need_locks
18239
18240# Do we need the lib prefix for modules?
18241need_lib_prefix=$need_lib_prefix
18242
18243# Do we need a version for libraries?
18244need_version=$need_version
18245
18246# Whether dlopen is supported.
18247dlopen_support=$enable_dlopen
18248
18249# Whether dlopen of programs is supported.
18250dlopen_self=$enable_dlopen_self
18251
18252# Whether dlopen of statically linked programs is supported.
18253dlopen_self_static=$enable_dlopen_self_static
18254
18255# Compiler flag to prevent dynamic linking.
18256link_static_flag=$lt_lt_prog_compiler_static_CXX
18257
18258# Compiler flag to turn off builtin functions.
18259no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18260
18261# Compiler flag to allow reflexive dlopens.
18262export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18263
18264# Compiler flag to generate shared objects directly from archives.
18265whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18266
18267# Compiler flag to generate thread-safe objects.
18268thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18269
18270# Library versioning type.
18271version_type=$version_type
18272
18273# Format of library name prefix.
18274libname_spec=$lt_libname_spec
18275
18276# List of archive names. First name is the real one, the rest are links.
18277# The last name is the one that the linker finds with -lNAME.
18278library_names_spec=$lt_library_names_spec
18279
18280# The coded name of the library, if different from the real name.
18281soname_spec=$lt_soname_spec
18282
18283# Commands used to build and install an old-style archive.
18284RANLIB=$lt_RANLIB
18285old_archive_cmds=$lt_old_archive_cmds_CXX
18286old_postinstall_cmds=$lt_old_postinstall_cmds
18287old_postuninstall_cmds=$lt_old_postuninstall_cmds
18288
18289# Create an old-style archive from a shared archive.
18290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18291
18292# Create a temporary old-style archive to link instead of a shared archive.
18293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18294
18295# Commands used to build and install a shared archive.
18296archive_cmds=$lt_archive_cmds_CXX
18297archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18298postinstall_cmds=$lt_postinstall_cmds
18299postuninstall_cmds=$lt_postuninstall_cmds
18300
18301# Commands used to build a loadable module (assumed same as above if empty)
18302module_cmds=$lt_module_cmds_CXX
18303module_expsym_cmds=$lt_module_expsym_cmds_CXX
18304
18305# Commands to strip libraries.
18306old_striplib=$lt_old_striplib
18307striplib=$lt_striplib
18308
18309# Dependencies to place before the objects being linked to create a
18310# shared library.
18311predep_objects=$lt_predep_objects_CXX
18312
18313# Dependencies to place after the objects being linked to create a
18314# shared library.
18315postdep_objects=$lt_postdep_objects_CXX
18316
18317# Dependencies to place before the objects being linked to create a
18318# shared library.
18319predeps=$lt_predeps_CXX
18320
18321# Dependencies to place after the objects being linked to create a
18322# shared library.
18323postdeps=$lt_postdeps_CXX
18324
18325# The library search path used internally by the compiler when linking
18326# a shared library.
18327compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18328
18329# Method to check whether dependent libraries are shared objects.
18330deplibs_check_method=$lt_deplibs_check_method
18331
18332# Command to use when deplibs_check_method == file_magic.
18333file_magic_cmd=$lt_file_magic_cmd
18334
18335# Flag that allows shared libraries with undefined symbols to be built.
18336allow_undefined_flag=$lt_allow_undefined_flag_CXX
18337
18338# Flag that forces no undefined symbols.
18339no_undefined_flag=$lt_no_undefined_flag_CXX
18340
18341# Commands used to finish a libtool library installation in a directory.
18342finish_cmds=$lt_finish_cmds
18343
18344# Same as above, but a single script fragment to be evaled but not shown.
18345finish_eval=$lt_finish_eval
18346
18347# Take the output of nm and produce a listing of raw symbols and C names.
18348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18349
18350# Transform the output of nm in a proper C declaration
18351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18352
18353# Transform the output of nm in a C name address pair
18354global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18355
18356# This is the shared library runtime path variable.
18357runpath_var=$runpath_var
18358
18359# This is the shared library path variable.
18360shlibpath_var=$shlibpath_var
18361
18362# Is shlibpath searched before the hard-coded library search path?
18363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18364
18365# How to hardcode a shared library path into an executable.
18366hardcode_action=$hardcode_action_CXX
18367
18368# Whether we should hardcode library paths into libraries.
18369hardcode_into_libs=$hardcode_into_libs
18370
18371# Flag to hardcode \$libdir into a binary during linking.
18372# This must work even if \$libdir does not exist.
18373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18374
18375# If ld is used when linking, flag to hardcode \$libdir into
18376# a binary during linking. This must work even if \$libdir does
18377# not exist.
18378hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18379
18380# Whether we need a single -rpath flag with a separated argument.
18381hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18382
18383# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18384# resulting binary.
18385hardcode_direct=$hardcode_direct_CXX
18386
18387# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18388# resulting binary.
18389hardcode_minus_L=$hardcode_minus_L_CXX
18390
18391# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18392# the resulting binary.
18393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18394
18395# Set to yes if building a shared library automatically hardcodes DIR into the library
18396# and all subsequent libraries and executables linked against it.
18397hardcode_automatic=$hardcode_automatic_CXX
18398
18399# Variables whose values should be saved in libtool wrapper scripts and
18400# restored at relink time.
18401variables_saved_for_relink="$variables_saved_for_relink"
18402
18403# Whether libtool must link a program against all its dependency libraries.
18404link_all_deplibs=$link_all_deplibs_CXX
18405
18406# Compile-time system search path for libraries
18407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18408
18409# Run-time system search path for libraries
18410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18411
18412# Fix the shell variable \$srcfile for the compiler.
18413fix_srcfile_path="$fix_srcfile_path_CXX"
18414
18415# Set to yes if exported symbols are required.
18416always_export_symbols=$always_export_symbols_CXX
18417
18418# The commands to list exported symbols.
18419export_symbols_cmds=$lt_export_symbols_cmds_CXX
18420
18421# The commands to extract the exported symbol list from a shared archive.
18422extract_expsyms_cmds=$lt_extract_expsyms_cmds
18423
18424# Symbols that should not be listed in the preloaded symbols.
18425exclude_expsyms=$lt_exclude_expsyms_CXX
18426
18427# Symbols that must always be exported.
18428include_expsyms=$lt_include_expsyms_CXX
18429
18430# ### END LIBTOOL TAG CONFIG: $tagname
18431
18432__EOF__
18433
18434
18435else
18436 # If there is no Makefile yet, we rely on a make rule to execute
18437 # `config.status --recheck' to rerun these tests and create the
18438 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18440 if test -f "$ltmain_in"; then
18441 test -f Makefile && make "$ltmain"
18442 fi
John Criswell47fdd832003-07-14 16:52:07 +000018443fi
18444
18445
18446ac_ext=c
18447ac_cpp='$CPP $CPPFLAGS'
18448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452CC=$lt_save_CC
18453LDCXX=$LD
18454LD=$lt_save_LD
18455GCC=$lt_save_GCC
18456with_gnu_ldcxx=$with_gnu_ld
18457with_gnu_ld=$lt_save_with_gnu_ld
18458lt_cv_path_LDCXX=$lt_cv_path_LD
18459lt_cv_path_LD=$lt_save_path_LD
18460lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18461lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18462
18463 else
18464 tagname=""
18465 fi
18466 ;;
18467
18468 F77)
18469 if test -n "$F77" && test "X$F77" != "Xno"; then
18470
18471ac_ext=f
18472ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18473ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18475
18476
18477archive_cmds_need_lc_F77=no
18478allow_undefined_flag_F77=
18479always_export_symbols_F77=no
18480archive_expsym_cmds_F77=
18481export_dynamic_flag_spec_F77=
18482hardcode_direct_F77=no
18483hardcode_libdir_flag_spec_F77=
18484hardcode_libdir_flag_spec_ld_F77=
18485hardcode_libdir_separator_F77=
18486hardcode_minus_L_F77=no
18487hardcode_automatic_F77=no
18488module_cmds_F77=
18489module_expsym_cmds_F77=
18490link_all_deplibs_F77=unknown
18491old_archive_cmds_F77=$old_archive_cmds
18492no_undefined_flag_F77=
18493whole_archive_flag_spec_F77=
18494enable_shared_with_static_runtimes_F77=no
18495
18496# Source file extension for f77 test sources.
18497ac_ext=f
18498
18499# Object file extension for compiled f77 test sources.
18500objext=o
18501objext_F77=$objext
18502
18503# Code to be used in simple compile tests
18504lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18505
18506# Code to be used in simple link tests
18507lt_simple_link_test_code=" program t\n end\n"
18508
18509# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18510
18511# If no C compiler was specified, use CC.
18512LTCC=${LTCC-"$CC"}
18513
18514# Allow CC to be a program name with arguments.
18515compiler=$CC
18516
18517
18518# Allow CC to be a program name with arguments.
18519lt_save_CC="$CC"
18520CC=${F77-"f77"}
18521compiler=$CC
18522compiler_F77=$CC
18523cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18524
18525echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18526echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18527echo "$as_me:$LINENO: result: $can_build_shared" >&5
18528echo "${ECHO_T}$can_build_shared" >&6
18529
18530echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18531echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18532test "$can_build_shared" = "no" && enable_shared=no
18533
18534# On AIX, shared libraries and static libraries use the same namespace, and
18535# are all built from PIC.
18536case "$host_os" in
18537aix3*)
18538 test "$enable_shared" = yes && enable_static=no
18539 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018541 postinstall_cmds='$RANLIB $lib'
18542 fi
18543 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018544aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018545 test "$enable_shared" = yes && enable_static=no
18546 ;;
18547esac
18548echo "$as_me:$LINENO: result: $enable_shared" >&5
18549echo "${ECHO_T}$enable_shared" >&6
18550
18551echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18552echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18553# Make sure either enable_shared or enable_static is yes.
18554test "$enable_shared" = yes || enable_static=yes
18555echo "$as_me:$LINENO: result: $enable_static" >&5
18556echo "${ECHO_T}$enable_static" >&6
18557
18558test "$ld_shlibs_F77" = no && can_build_shared=no
18559
18560GCC_F77="$G77"
18561LD_F77="$LD"
18562
18563lt_prog_compiler_wl_F77=
18564lt_prog_compiler_pic_F77=
18565lt_prog_compiler_static_F77=
18566
18567echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18568echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18569
18570 if test "$GCC" = yes; then
18571 lt_prog_compiler_wl_F77='-Wl,'
18572 lt_prog_compiler_static_F77='-static'
18573
18574 case $host_os in
18575 aix*)
18576 # All AIX code is PIC.
18577 if test "$host_cpu" = ia64; then
18578 # AIX 5 now supports IA64 processor
18579 lt_prog_compiler_static_F77='-Bstatic'
18580 fi
18581 ;;
18582
18583 amigaos*)
18584 # FIXME: we need at least 68020 code to build shared libraries, but
18585 # adding the `-m68020' flag to GCC prevents building anything better,
18586 # like `-m68040'.
18587 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18588 ;;
18589
18590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18591 # PIC is the default for these OSes.
18592 ;;
18593
18594 mingw* | pw32* | os2*)
18595 # This hack is so that the source file can tell whether it is being
18596 # built for inclusion in a dll (and should export symbols for example).
18597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18598 ;;
18599
18600 darwin* | rhapsody*)
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
18603 lt_prog_compiler_pic_F77='-fno-common'
18604 ;;
18605
18606 msdosdjgpp*)
18607 # Just because we use GCC doesn't mean we suddenly get shared libraries
18608 # on systems that don't support them.
18609 lt_prog_compiler_can_build_shared_F77=no
18610 enable_shared=no
18611 ;;
18612
18613 sysv4*MP*)
18614 if test -d /usr/nec; then
18615 lt_prog_compiler_pic_F77=-Kconform_pic
18616 fi
18617 ;;
18618
18619 hpux*)
18620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18621 # not for PA HP-UX.
18622 case "$host_cpu" in
18623 hppa*64*|ia64*)
18624 # +Z the default
18625 ;;
18626 *)
18627 lt_prog_compiler_pic_F77='-fPIC'
18628 ;;
18629 esac
18630 ;;
18631
18632 *)
18633 lt_prog_compiler_pic_F77='-fPIC'
18634 ;;
18635 esac
18636 else
18637 # PORTME Check for flag to pass linker flags through the system compiler.
18638 case $host_os in
18639 aix*)
18640 lt_prog_compiler_wl_F77='-Wl,'
18641 if test "$host_cpu" = ia64; then
18642 # AIX 5 now supports IA64 processor
18643 lt_prog_compiler_static_F77='-Bstatic'
18644 else
18645 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18646 fi
18647 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018648 darwin*)
18649 # PIC is the default on this platform
18650 # Common symbols not allowed in MH_DYLIB files
18651 case "$cc_basename" in
18652 xlc*)
18653 lt_prog_compiler_pic_F77='-qnocommon'
18654 lt_prog_compiler_wl_F77='-Wl,'
18655 ;;
18656 esac
18657 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018658
18659 mingw* | pw32* | os2*)
18660 # This hack is so that the source file can tell whether it is being
18661 # built for inclusion in a dll (and should export symbols for example).
18662 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18663 ;;
18664
18665 hpux9* | hpux10* | hpux11*)
18666 lt_prog_compiler_wl_F77='-Wl,'
18667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18668 # not for PA HP-UX.
18669 case "$host_cpu" in
18670 hppa*64*|ia64*)
18671 # +Z the default
18672 ;;
18673 *)
18674 lt_prog_compiler_pic_F77='+Z'
18675 ;;
18676 esac
18677 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18678 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18679 ;;
18680
18681 irix5* | irix6* | nonstopux*)
18682 lt_prog_compiler_wl_F77='-Wl,'
18683 # PIC (with -KPIC) is the default.
18684 lt_prog_compiler_static_F77='-non_shared'
18685 ;;
18686
18687 newsos6)
18688 lt_prog_compiler_pic_F77='-KPIC'
18689 lt_prog_compiler_static_F77='-Bstatic'
18690 ;;
18691
18692 linux*)
18693 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018694 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018695 lt_prog_compiler_wl_F77='-Wl,'
18696 lt_prog_compiler_pic_F77='-KPIC'
18697 lt_prog_compiler_static_F77='-static'
18698 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018699 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018700 lt_prog_compiler_wl_F77='-Wl,'
18701 # All Alpha code is PIC.
18702 lt_prog_compiler_static_F77='-non_shared'
18703 ;;
18704 esac
18705 ;;
18706
18707 osf3* | osf4* | osf5*)
18708 lt_prog_compiler_wl_F77='-Wl,'
18709 # All OSF/1 code is PIC.
18710 lt_prog_compiler_static_F77='-non_shared'
18711 ;;
18712
18713 sco3.2v5*)
18714 lt_prog_compiler_pic_F77='-Kpic'
18715 lt_prog_compiler_static_F77='-dn'
18716 ;;
18717
18718 solaris*)
18719 lt_prog_compiler_wl_F77='-Wl,'
18720 lt_prog_compiler_pic_F77='-KPIC'
18721 lt_prog_compiler_static_F77='-Bstatic'
18722 ;;
18723
18724 sunos4*)
18725 lt_prog_compiler_wl_F77='-Qoption ld '
18726 lt_prog_compiler_pic_F77='-PIC'
18727 lt_prog_compiler_static_F77='-Bstatic'
18728 ;;
18729
18730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18731 lt_prog_compiler_wl_F77='-Wl,'
18732 lt_prog_compiler_pic_F77='-KPIC'
18733 lt_prog_compiler_static_F77='-Bstatic'
18734 ;;
18735
18736 sysv4*MP*)
18737 if test -d /usr/nec ;then
18738 lt_prog_compiler_pic_F77='-Kconform_pic'
18739 lt_prog_compiler_static_F77='-Bstatic'
18740 fi
18741 ;;
18742
18743 uts4*)
18744 lt_prog_compiler_pic_F77='-pic'
18745 lt_prog_compiler_static_F77='-Bstatic'
18746 ;;
18747
18748 *)
18749 lt_prog_compiler_can_build_shared_F77=no
18750 ;;
18751 esac
18752 fi
18753
18754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18755echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18756
18757#
18758# Check to make sure the PIC flag actually works.
18759#
18760if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018761
18762echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018763echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18764if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else
18767 lt_prog_compiler_pic_works_F77=no
18768 ac_outfile=conftest.$ac_objext
18769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18770 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18771 # Insert the option either (1) after the last *FLAGS variable, or
18772 # (2) before a word containing "conftest.", or (3) at the end.
18773 # Note that $ac_compile itself does not contain backslashes and begins
18774 # with a dollar sign (not a hyphen), so the echo should work correctly.
18775 # The option is referenced via a variable to avoid confusing sed.
18776 lt_compile=`echo "$ac_compile" | $SED \
18777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18779 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000018780 (eval echo "\"\$as_me:18780: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018781 (eval "$lt_compile" 2>conftest.err)
18782 ac_status=$?
18783 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000018784 echo "$as_me:18784: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018785 if (exit $ac_status) && test -s "$ac_outfile"; then
18786 # The compiler can only warn and ignore the option if not recognized
18787 # So say no if there are warnings
18788 if test ! -s conftest.err; then
18789 lt_prog_compiler_pic_works_F77=yes
18790 fi
18791 fi
18792 $rm conftest*
18793
18794fi
18795echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18796echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18797
18798if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18799 case $lt_prog_compiler_pic_F77 in
18800 "" | " "*) ;;
18801 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18802 esac
18803else
18804 lt_prog_compiler_pic_F77=
18805 lt_prog_compiler_can_build_shared_F77=no
18806fi
18807
18808fi
18809case "$host_os" in
18810 # For platforms which do not support PIC, -DPIC is meaningless:
18811 *djgpp*)
18812 lt_prog_compiler_pic_F77=
18813 ;;
18814 *)
18815 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18816 ;;
18817esac
18818
18819echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18820echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18821if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823else
18824 lt_cv_prog_compiler_c_o_F77=no
18825 $rm -r conftest 2>/dev/null
18826 mkdir conftest
18827 cd conftest
18828 mkdir out
18829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18830
John Criswell47fdd832003-07-14 16:52:07 +000018831 lt_compiler_flag="-o out/conftest2.$ac_objext"
18832 # Insert the option either (1) after the last *FLAGS variable, or
18833 # (2) before a word containing "conftest.", or (3) at the end.
18834 # Note that $ac_compile itself does not contain backslashes and begins
18835 # with a dollar sign (not a hyphen), so the echo should work correctly.
18836 lt_compile=`echo "$ac_compile" | $SED \
18837 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18839 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000018840 (eval echo "\"\$as_me:18840: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018841 (eval "$lt_compile" 2>out/conftest.err)
18842 ac_status=$?
18843 cat out/conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000018844 echo "$as_me:18844: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18846 then
18847 # The compiler can only warn and ignore the option if not recognized
18848 # So say no if there are warnings
18849 if test ! -s out/conftest.err; then
18850 lt_cv_prog_compiler_c_o_F77=yes
18851 fi
18852 fi
18853 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018854 $rm conftest*
18855 # SGI C++ compiler will create directory out/ii_files/ for
18856 # template instantiation
18857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18858 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018859 cd ..
18860 rmdir conftest
18861 $rm conftest*
18862
18863fi
18864echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18865echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18866
18867
18868hard_links="nottested"
18869if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18870 # do not overwrite the value of need_locks provided by the user
18871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18872echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18873 hard_links=yes
18874 $rm conftest*
18875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18876 touch conftest.a
18877 ln conftest.a conftest.b 2>&5 || hard_links=no
18878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18879 echo "$as_me:$LINENO: result: $hard_links" >&5
18880echo "${ECHO_T}$hard_links" >&6
18881 if test "$hard_links" = no; then
18882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18883echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18884 need_locks=warn
18885 fi
18886else
18887 need_locks=no
18888fi
18889
18890echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18891echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18892
18893 runpath_var=
18894 allow_undefined_flag_F77=
18895 enable_shared_with_static_runtimes_F77=no
18896 archive_cmds_F77=
18897 archive_expsym_cmds_F77=
18898 old_archive_From_new_cmds_F77=
18899 old_archive_from_expsyms_cmds_F77=
18900 export_dynamic_flag_spec_F77=
18901 whole_archive_flag_spec_F77=
18902 thread_safe_flag_spec_F77=
18903 hardcode_libdir_flag_spec_F77=
18904 hardcode_libdir_flag_spec_ld_F77=
18905 hardcode_libdir_separator_F77=
18906 hardcode_direct_F77=no
18907 hardcode_minus_L_F77=no
18908 hardcode_shlibpath_var_F77=unsupported
18909 link_all_deplibs_F77=unknown
18910 hardcode_automatic_F77=no
18911 module_cmds_F77=
18912 module_expsym_cmds_F77=
18913 always_export_symbols_F77=no
18914 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18915 # include_expsyms should be a list of space-separated symbols to be *always*
18916 # included in the symbol list
18917 include_expsyms_F77=
18918 # exclude_expsyms can be an extended regexp of symbols to exclude
18919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18921 # as well as any symbol that contains `d'.
18922 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18924 # platforms (ab)use it in PIC code, but their linkers get confused if
18925 # the symbol is explicitly referenced. Since portable code cannot
18926 # rely on this symbol name, it's probably fine to never include it in
18927 # preloaded symbol tables.
18928 extract_expsyms_cmds=
18929
18930 case $host_os in
18931 cygwin* | mingw* | pw32*)
18932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18933 # When not using gcc, we currently assume that we are using
18934 # Microsoft Visual C++.
18935 if test "$GCC" != yes; then
18936 with_gnu_ld=no
18937 fi
18938 ;;
18939 openbsd*)
18940 with_gnu_ld=no
18941 ;;
18942 esac
18943
18944 ld_shlibs_F77=yes
18945 if test "$with_gnu_ld" = yes; then
18946 # If archive_cmds runs LD, not CC, wlarc should be empty
18947 wlarc='${wl}'
18948
18949 # See if GNU ld supports shared libraries.
18950 case $host_os in
18951 aix3* | aix4* | aix5*)
18952 # On AIX/PPC, the GNU linker is very broken
18953 if test "$host_cpu" != ia64; then
18954 ld_shlibs_F77=no
18955 cat <<EOF 1>&2
18956
18957*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18958*** to be unable to reliably create shared libraries on AIX.
18959*** Therefore, libtool is disabling shared libraries support. If you
18960*** really care for shared libraries, you may want to modify your PATH
18961*** so that a non-GNU linker is found, and then restart.
18962
18963EOF
18964 fi
18965 ;;
18966
18967 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018968 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 +000018969 hardcode_libdir_flag_spec_F77='-L$libdir'
18970 hardcode_minus_L_F77=yes
18971
18972 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18973 # that the semantics of dynamic libraries on AmigaOS, at least up
18974 # to version 4, is to share data among multiple programs linked
18975 # with the same dynamic library. Since this doesn't match the
18976 # behavior of shared libraries on other platforms, we can't use
18977 # them.
18978 ld_shlibs_F77=no
18979 ;;
18980
18981 beos*)
18982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18983 allow_undefined_flag_F77=unsupported
18984 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18985 # support --undefined. This deserves some investigation. FIXME
18986 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987 else
18988 ld_shlibs_F77=no
18989 fi
18990 ;;
18991
18992 cygwin* | mingw* | pw32*)
18993 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18994 # as there is no search path for DLLs.
18995 hardcode_libdir_flag_spec_F77='-L$libdir'
18996 allow_undefined_flag_F77=unsupported
18997 always_export_symbols_F77=no
18998 enable_shared_with_static_runtimes_F77=yes
18999 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19000
19001 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19003 # If the export-symbols file already is a .def file (1st line
19004 # is EXPORTS), use it as is; otherwise, prepend...
19005 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19006 cp $export_symbols $output_objdir/$soname.def;
19007 else
19008 echo EXPORTS > $output_objdir/$soname.def;
19009 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019010 fi~
19011 $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 +000019012 else
19013 ld_shlibs=no
19014 fi
19015 ;;
19016
19017 netbsd*)
19018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19019 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19020 wlarc=
19021 else
19022 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19023 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19024 fi
19025 ;;
19026
19027 solaris* | sysv5*)
19028 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19029 ld_shlibs_F77=no
19030 cat <<EOF 1>&2
19031
19032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19033*** create shared libraries on Solaris systems. Therefore, libtool
19034*** is disabling shared libraries support. We urge you to upgrade GNU
19035*** binutils to release 2.9.1 or newer. Another option is to modify
19036*** your PATH or compiler configuration so that the native linker is
19037*** used, and then restart.
19038
19039EOF
19040 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19041 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19042 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19043 else
19044 ld_shlibs_F77=no
19045 fi
19046 ;;
19047
19048 sunos4*)
19049 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19050 wlarc=
19051 hardcode_direct_F77=yes
19052 hardcode_shlibpath_var_F77=no
19053 ;;
19054
Reid Spencer2706f8c2004-09-19 23:53:36 +000019055 linux*)
19056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19057 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19058 archive_cmds_F77="$tmp_archive_cmds"
19059 supports_anon_versioning=no
19060 case `$LD -v 2>/dev/null` in
19061 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19064 *\ 2.11.*) ;; # other 2.11 versions
19065 *) supports_anon_versioning=yes ;;
19066 esac
19067 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019068 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19069cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19070$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019071 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19072 else
19073 archive_expsym_cmds_F77="$tmp_archive_cmds"
19074 fi
19075 else
19076 ld_shlibs_F77=no
19077 fi
19078 ;;
19079
John Criswell47fdd832003-07-14 16:52:07 +000019080 *)
19081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19083 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19084 else
19085 ld_shlibs_F77=no
19086 fi
19087 ;;
19088 esac
19089
19090 if test "$ld_shlibs_F77" = yes; then
19091 runpath_var=LD_RUN_PATH
19092 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19093 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19094 # ancient GNU ld didn't support --whole-archive et. al.
19095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19096 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19097 else
19098 whole_archive_flag_spec_F77=
19099 fi
19100 fi
19101 else
19102 # PORTME fill in a description of your system's linker (not GNU ld)
19103 case $host_os in
19104 aix3*)
19105 allow_undefined_flag_F77=unsupported
19106 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019107 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 +000019108 # Note: this linker hardcodes the directories in LIBPATH if there
19109 # are no directories specified by -L.
19110 hardcode_minus_L_F77=yes
19111 if test "$GCC" = yes && test -z "$link_static_flag"; then
19112 # Neither direct hardcoding nor static linking is supported with a
19113 # broken collect2.
19114 hardcode_direct_F77=unsupported
19115 fi
19116 ;;
19117
19118 aix4* | aix5*)
19119 if test "$host_cpu" = ia64; then
19120 # On IA64, the linker does run time linking by default, so we don't
19121 # have to do anything special.
19122 aix_use_runtimelinking=no
19123 exp_sym_flag='-Bexport'
19124 no_entry_flag=""
19125 else
19126 # If we're using GNU nm, then we don't want the "-C" option.
19127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19129 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'
19130 else
19131 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'
19132 fi
19133 aix_use_runtimelinking=no
19134
19135 # Test if we are trying to use run time linking or normal
19136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19137 # need to do runtime linking.
19138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19139 for ld_flag in $LDFLAGS; do
19140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19141 aix_use_runtimelinking=yes
19142 break
19143 fi
19144 done
19145 esac
19146
19147 exp_sym_flag='-bexport'
19148 no_entry_flag='-bnoentry'
19149 fi
19150
19151 # When large executables or shared objects are built, AIX ld can
19152 # have problems creating the table of contents. If linking a library
19153 # or program results in "error TOC overflow" add -mminimal-toc to
19154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19156
19157 archive_cmds_F77=''
19158 hardcode_direct_F77=yes
19159 hardcode_libdir_separator_F77=':'
19160 link_all_deplibs_F77=yes
19161
19162 if test "$GCC" = yes; then
19163 case $host_os in aix4.012|aix4.012.*)
19164 # We only want to do this on AIX 4.2 and lower, the check
19165 # below for broken collect2 doesn't work under 4.3+
19166 collect2name=`${CC} -print-prog-name=collect2`
19167 if test -f "$collect2name" && \
19168 strings "$collect2name" | grep resolve_lib_name >/dev/null
19169 then
19170 # We have reworked collect2
19171 hardcode_direct_F77=yes
19172 else
19173 # We have old collect2
19174 hardcode_direct_F77=unsupported
19175 # It fails to find uninstalled libraries when the uninstalled
19176 # path is not listed in the libpath. Setting hardcode_minus_L
19177 # to unsupported forces relinking
19178 hardcode_minus_L_F77=yes
19179 hardcode_libdir_flag_spec_F77='-L$libdir'
19180 hardcode_libdir_separator_F77=
19181 fi
19182 esac
19183 shared_flag='-shared'
19184 else
19185 # not using gcc
19186 if test "$host_cpu" = ia64; then
19187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19188 # chokes on -Wl,-G. The following line is correct:
19189 shared_flag='-G'
19190 else
19191 if test "$aix_use_runtimelinking" = yes; then
19192 shared_flag='${wl}-G'
19193 else
19194 shared_flag='${wl}-bM:SRE'
19195 fi
19196 fi
19197 fi
19198
19199 # It seems that -bexpall does not export symbols beginning with
19200 # underscore (_), so it is better to generate a list of symbols to export.
19201 always_export_symbols_F77=yes
19202 if test "$aix_use_runtimelinking" = yes; then
19203 # Warning - without using the other runtime loading flags (-brtl),
19204 # -berok will link without error, but may produce a broken library.
19205 allow_undefined_flag_F77='-berok'
19206 # Determine the default libpath from the value encoded in an empty executable.
19207 cat >conftest.$ac_ext <<_ACEOF
19208 program main
19209
19210 end
19211_ACEOF
19212rm -f conftest.$ac_objext conftest$ac_exeext
19213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019214 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019221 { ac_try='test -z "$ac_f77_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234
19235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19236}'`
19237# Check for a 64-bit object if we didn't find anything.
19238if 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; }
19239}'`; fi
19240else
19241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019242sed 's/^/| /' conftest.$ac_ext >&5
19243
John Criswell47fdd832003-07-14 16:52:07 +000019244fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019245rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019247if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19248
19249 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19250 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"
19251 else
19252 if test "$host_cpu" = ia64; then
19253 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19254 allow_undefined_flag_F77="-z nodefs"
19255 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"
19256 else
19257 # Determine the default libpath from the value encoded in an empty executable.
19258 cat >conftest.$ac_ext <<_ACEOF
19259 program main
19260
19261 end
19262_ACEOF
19263rm -f conftest.$ac_objext conftest$ac_exeext
19264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019265 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019272 { ac_try='test -z "$ac_f77_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285
19286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19287}'`
19288# Check for a 64-bit object if we didn't find anything.
19289if 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; }
19290}'`; fi
19291else
19292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019293sed 's/^/| /' conftest.$ac_ext >&5
19294
John Criswell47fdd832003-07-14 16:52:07 +000019295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019296rm -f conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19299
19300 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19301 # Warning - without using the other run time loading flags,
19302 # -berok will link without error, but may produce a broken library.
19303 no_undefined_flag_F77=' ${wl}-bernotok'
19304 allow_undefined_flag_F77=' ${wl}-berok'
19305 # -bexpall does not export symbols beginning with underscore (_)
19306 always_export_symbols_F77=yes
19307 # Exported symbols can be pulled into shared objects from archives
19308 whole_archive_flag_spec_F77=' '
19309 archive_cmds_need_lc_F77=yes
19310 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019311 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 +000019312 fi
19313 fi
19314 ;;
19315
19316 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019317 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 +000019318 hardcode_libdir_flag_spec_F77='-L$libdir'
19319 hardcode_minus_L_F77=yes
19320 # see comment about different semantics on the GNU ld section
19321 ld_shlibs_F77=no
19322 ;;
19323
Reid Spencer2706f8c2004-09-19 23:53:36 +000019324 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019325 export_dynamic_flag_spec_F77=-rdynamic
19326 ;;
19327
19328 cygwin* | mingw* | pw32*)
19329 # When not using gcc, we currently assume that we are using
19330 # Microsoft Visual C++.
19331 # hardcode_libdir_flag_spec is actually meaningless, as there is
19332 # no search path for DLLs.
19333 hardcode_libdir_flag_spec_F77=' '
19334 allow_undefined_flag_F77=unsupported
19335 # Tell ltmain to make .lib files, not .a files.
19336 libext=lib
19337 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019338 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019339 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019340 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 +000019341 # The linker will automatically build a .lib file if we build a DLL.
19342 old_archive_From_new_cmds_F77='true'
19343 # FIXME: Should let the user specify the lib program.
19344 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19345 fix_srcfile_path='`cygpath -w "$srcfile"`'
19346 enable_shared_with_static_runtimes_F77=yes
19347 ;;
19348
19349 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019350 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019351 rhapsody* | darwin1.[012])
19352 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19353 ;;
19354 *) # Darwin 1.3 on
19355 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19356 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19357 else
19358 case ${MACOSX_DEPLOYMENT_TARGET} in
19359 10.[012])
19360 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19361 ;;
19362 10.*)
19363 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19364 ;;
19365 esac
19366 fi
19367 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019368 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019369 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019370 hardcode_direct_F77=no
19371 hardcode_automatic_F77=yes
19372 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019373 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019374 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019375 if test "$GCC" = yes ; then
19376 output_verbose_link_cmd='echo'
19377 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19378 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379 # 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 +000019380 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}'
19381 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 +000019382 else
19383 case "$cc_basename" in
19384 xlc*)
19385 output_verbose_link_cmd='echo'
19386 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19387 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19388 # 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 +000019389 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}'
19390 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 +000019391 ;;
19392 *)
19393 ld_shlibs_F77=no
19394 ;;
19395 esac
John Criswell47fdd832003-07-14 16:52:07 +000019396 fi
19397 ;;
19398
19399 dgux*)
19400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401 hardcode_libdir_flag_spec_F77='-L$libdir'
19402 hardcode_shlibpath_var_F77=no
19403 ;;
19404
19405 freebsd1*)
19406 ld_shlibs_F77=no
19407 ;;
19408
19409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19410 # support. Future versions do this automatically, but an explicit c++rt0.o
19411 # does not break anything, and helps significantly (at the cost of a little
19412 # extra space).
19413 freebsd2.2*)
19414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19415 hardcode_libdir_flag_spec_F77='-R$libdir'
19416 hardcode_direct_F77=yes
19417 hardcode_shlibpath_var_F77=no
19418 ;;
19419
19420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19421 freebsd2*)
19422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19423 hardcode_direct_F77=yes
19424 hardcode_minus_L_F77=yes
19425 hardcode_shlibpath_var_F77=no
19426 ;;
19427
19428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019429 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019430 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19431 hardcode_libdir_flag_spec_F77='-R$libdir'
19432 hardcode_direct_F77=yes
19433 hardcode_shlibpath_var_F77=no
19434 ;;
19435
19436 hpux9*)
19437 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019438 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 +000019439 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019440 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 +000019441 fi
19442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19443 hardcode_libdir_separator_F77=:
19444 hardcode_direct_F77=yes
19445
19446 # hardcode_minus_L: Not really in the search PATH,
19447 # but as the default location of the library.
19448 hardcode_minus_L_F77=yes
19449 export_dynamic_flag_spec_F77='${wl}-E'
19450 ;;
19451
19452 hpux10* | hpux11*)
19453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19454 case "$host_cpu" in
19455 hppa*64*|ia64*)
19456 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19457 ;;
19458 *)
19459 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19460 ;;
19461 esac
19462 else
19463 case "$host_cpu" in
19464 hppa*64*|ia64*)
19465 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19466 ;;
19467 *)
19468 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19469 ;;
19470 esac
19471 fi
19472 if test "$with_gnu_ld" = no; then
19473 case "$host_cpu" in
19474 hppa*64*)
19475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19476 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19477 hardcode_libdir_separator_F77=:
19478 hardcode_direct_F77=no
19479 hardcode_shlibpath_var_F77=no
19480 ;;
19481 ia64*)
19482 hardcode_libdir_flag_spec_F77='-L$libdir'
19483 hardcode_direct_F77=no
19484 hardcode_shlibpath_var_F77=no
19485
19486 # hardcode_minus_L: Not really in the search PATH,
19487 # but as the default location of the library.
19488 hardcode_minus_L_F77=yes
19489 ;;
19490 *)
19491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19492 hardcode_libdir_separator_F77=:
19493 hardcode_direct_F77=yes
19494 export_dynamic_flag_spec_F77='${wl}-E'
19495
19496 # hardcode_minus_L: Not really in the search PATH,
19497 # but as the default location of the library.
19498 hardcode_minus_L_F77=yes
19499 ;;
19500 esac
19501 fi
19502 ;;
19503
19504 irix5* | irix6* | nonstopux*)
19505 if test "$GCC" = yes; then
19506 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'
19507 else
19508 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'
19509 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19510 fi
19511 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19512 hardcode_libdir_separator_F77=:
19513 link_all_deplibs_F77=yes
19514 ;;
19515
19516 netbsd*)
19517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19518 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19519 else
19520 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19521 fi
19522 hardcode_libdir_flag_spec_F77='-R$libdir'
19523 hardcode_direct_F77=yes
19524 hardcode_shlibpath_var_F77=no
19525 ;;
19526
19527 newsos6)
19528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529 hardcode_direct_F77=yes
19530 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19531 hardcode_libdir_separator_F77=:
19532 hardcode_shlibpath_var_F77=no
19533 ;;
19534
19535 openbsd*)
19536 hardcode_direct_F77=yes
19537 hardcode_shlibpath_var_F77=no
19538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19539 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019540 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 +000019541 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19542 export_dynamic_flag_spec_F77='${wl}-E'
19543 else
19544 case $host_os in
19545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19547 hardcode_libdir_flag_spec_F77='-R$libdir'
19548 ;;
19549 *)
19550 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19551 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19552 ;;
19553 esac
19554 fi
19555 ;;
19556
19557 os2*)
19558 hardcode_libdir_flag_spec_F77='-L$libdir'
19559 hardcode_minus_L_F77=yes
19560 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019561 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 +000019562 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19563 ;;
19564
19565 osf3*)
19566 if test "$GCC" = yes; then
19567 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19568 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'
19569 else
19570 allow_undefined_flag_F77=' -expect_unresolved \*'
19571 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'
19572 fi
19573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19574 hardcode_libdir_separator_F77=:
19575 ;;
19576
19577 osf4* | osf5*) # as osf3* with the addition of -msym flag
19578 if test "$GCC" = yes; then
19579 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19580 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'
19581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19582 else
19583 allow_undefined_flag_F77=' -expect_unresolved \*'
19584 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 +000019585 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~
19586 $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'
19587
John Criswell47fdd832003-07-14 16:52:07 +000019588 # Both c and cxx compiler support -rpath directly
19589 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19590 fi
19591 hardcode_libdir_separator_F77=:
19592 ;;
19593
19594 sco3.2v5*)
19595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19596 hardcode_shlibpath_var_F77=no
19597 export_dynamic_flag_spec_F77='${wl}-Bexport'
19598 runpath_var=LD_RUN_PATH
19599 hardcode_runpath_var=yes
19600 ;;
19601
19602 solaris*)
19603 no_undefined_flag_F77=' -z text'
19604 if test "$GCC" = yes; then
19605 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019606 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19607 $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 +000019608 else
19609 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019610 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $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 +000019612 fi
19613 hardcode_libdir_flag_spec_F77='-R$libdir'
19614 hardcode_shlibpath_var_F77=no
19615 case $host_os in
19616 solaris2.[0-5] | solaris2.[0-5].*) ;;
19617 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19618 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19619 esac
19620 link_all_deplibs_F77=yes
19621 ;;
19622
19623 sunos4*)
19624 if test "x$host_vendor" = xsequent; then
19625 # Use $CC to link under sequent, because it throws in some extra .o
19626 # files that make .init and .fini sections work.
19627 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19628 else
19629 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19630 fi
19631 hardcode_libdir_flag_spec_F77='-L$libdir'
19632 hardcode_direct_F77=yes
19633 hardcode_minus_L_F77=yes
19634 hardcode_shlibpath_var_F77=no
19635 ;;
19636
19637 sysv4)
19638 case $host_vendor in
19639 sni)
19640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19641 hardcode_direct_F77=yes # is this really true???
19642 ;;
19643 siemens)
19644 ## LD is ld it makes a PLAMLIB
19645 ## CC just makes a GrossModule.
19646 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19647 reload_cmds_F77='$CC -r -o $output$reload_objs'
19648 hardcode_direct_F77=no
19649 ;;
19650 motorola)
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19653 ;;
19654 esac
19655 runpath_var='LD_RUN_PATH'
19656 hardcode_shlibpath_var_F77=no
19657 ;;
19658
19659 sysv4.3*)
19660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19661 hardcode_shlibpath_var_F77=no
19662 export_dynamic_flag_spec_F77='-Bexport'
19663 ;;
19664
19665 sysv4*MP*)
19666 if test -d /usr/nec; then
19667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_shlibpath_var_F77=no
19669 runpath_var=LD_RUN_PATH
19670 hardcode_runpath_var=yes
19671 ld_shlibs_F77=yes
19672 fi
19673 ;;
19674
19675 sysv4.2uw2*)
19676 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19677 hardcode_direct_F77=yes
19678 hardcode_minus_L_F77=no
19679 hardcode_shlibpath_var_F77=no
19680 hardcode_runpath_var=yes
19681 runpath_var=LD_RUN_PATH
19682 ;;
19683
19684 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19685 no_undefined_flag_F77='${wl}-z ${wl}text'
19686 if test "$GCC" = yes; then
19687 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19688 else
19689 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 fi
19691 runpath_var='LD_RUN_PATH'
19692 hardcode_shlibpath_var_F77=no
19693 ;;
19694
19695 sysv5*)
19696 no_undefined_flag_F77=' -z text'
19697 # $CC -shared without GNU ld will not create a library from C++
19698 # object files and a static libstdc++, better avoid it by now
19699 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019700 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19701 $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 +000019702 hardcode_libdir_flag_spec_F77=
19703 hardcode_shlibpath_var_F77=no
19704 runpath_var='LD_RUN_PATH'
19705 ;;
19706
19707 uts4*)
19708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19709 hardcode_libdir_flag_spec_F77='-L$libdir'
19710 hardcode_shlibpath_var_F77=no
19711 ;;
19712
19713 *)
19714 ld_shlibs_F77=no
19715 ;;
19716 esac
19717 fi
19718
19719echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19720echo "${ECHO_T}$ld_shlibs_F77" >&6
19721test "$ld_shlibs_F77" = no && can_build_shared=no
19722
19723variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19724if test "$GCC" = yes; then
19725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19726fi
19727
19728#
19729# Do we need to explicitly link libc?
19730#
19731case "x$archive_cmds_need_lc_F77" in
19732x|xyes)
19733 # Assume -lc should be added
19734 archive_cmds_need_lc_F77=yes
19735
19736 if test "$enable_shared" = yes && test "$GCC" = yes; then
19737 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019738 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019739 # FIXME: we may have to deal with multi-command sequences.
19740 ;;
19741 '$CC '*)
19742 # Test whether the compiler implicitly links with -lc since on some
19743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19744 # to ld, don't add -lc before -lgcc.
19745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19746echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19747 $rm conftest*
19748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19749
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } 2>conftest.err; then
19755 soname=conftest
19756 lib=conftest
19757 libobjs=conftest.$ac_objext
19758 deplibs=
19759 wl=$lt_prog_compiler_wl_F77
19760 compiler_flags=-v
19761 linker_flags=-v
19762 verstring=
19763 output_objdir=.
19764 libname=conftest
19765 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19766 allow_undefined_flag_F77=
19767 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19768 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }
19772 then
19773 archive_cmds_need_lc_F77=no
19774 else
19775 archive_cmds_need_lc_F77=yes
19776 fi
19777 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19778 else
19779 cat conftest.err 1>&5
19780 fi
19781 $rm conftest*
19782 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19783echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19784 ;;
19785 esac
19786 fi
19787 ;;
19788esac
19789
John Criswell47fdd832003-07-14 16:52:07 +000019790echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19791echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19792library_names_spec=
19793libname_spec='lib$name'
19794soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019795shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019796postinstall_cmds=
19797postuninstall_cmds=
19798finish_cmds=
19799finish_eval=
19800shlibpath_var=
19801shlibpath_overrides_runpath=unknown
19802version_type=none
19803dynamic_linker="$host_os ld.so"
19804sys_lib_dlsearch_path_spec="/lib /usr/lib"
19805if test "$GCC" = yes; then
19806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19808 # if the path contains ";" then we assume it to be the separator
19809 # otherwise default to the standard path separator (i.e. ":") - it is
19810 # assumed that no part of a normal pathname contains ";" but that should
19811 # okay in the real world where ";" in dirpaths is itself problematic.
19812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19813 else
19814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19815 fi
19816else
19817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19818fi
19819need_lib_prefix=unknown
19820hardcode_into_libs=no
19821
19822# when you set need_version to no, make sure it does not cause -set_version
19823# flags to be left without arguments
19824need_version=unknown
19825
19826case $host_os in
19827aix3*)
19828 version_type=linux
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19830 shlibpath_var=LIBPATH
19831
19832 # AIX 3 has no versioning support, so we append a major version to the name.
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 ;;
19835
19836aix4* | aix5*)
19837 version_type=linux
19838 need_lib_prefix=no
19839 need_version=no
19840 hardcode_into_libs=yes
19841 if test "$host_cpu" = ia64; then
19842 # AIX 5 supports IA64
19843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 else
19846 # With GCC up to 2.95.x, collect2 would create an import file
19847 # for dependence libraries. The import file would start with
19848 # the line `#! .'. This would cause the generated library to
19849 # depend on `.', always an invalid library. This was fixed in
19850 # development snapshots of GCC prior to 3.0.
19851 case $host_os in
19852 aix4 | aix4.[01] | aix4.[01].*)
19853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19854 echo ' yes '
19855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19856 :
19857 else
19858 can_build_shared=no
19859 fi
19860 ;;
19861 esac
19862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19863 # soname into executable. Probably we can add versioning support to
19864 # collect2, so additional links can be useful in future.
19865 if test "$aix_use_runtimelinking" = yes; then
19866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19867 # instead of lib<name>.a to let people know that these are not
19868 # typical AIX shared libraries.
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 else
19871 # We preserve .a as extension for shared libraries through AIX4.2
19872 # and later when we are not doing run time linking.
19873 library_names_spec='${libname}${release}.a $libname.a'
19874 soname_spec='${libname}${release}${shared_ext}$major'
19875 fi
19876 shlibpath_var=LIBPATH
19877 fi
19878 ;;
19879
19880amigaos*)
19881 library_names_spec='$libname.ixlibrary $libname.a'
19882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019883 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 +000019884 ;;
19885
19886beos*)
19887 library_names_spec='${libname}${shared_ext}'
19888 dynamic_linker="$host_os ld.so"
19889 shlibpath_var=LIBRARY_PATH
19890 ;;
19891
Reid Spencer2706f8c2004-09-19 23:53:36 +000019892bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019893 version_type=linux
19894 need_version=no
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896 soname_spec='${libname}${release}${shared_ext}$major'
19897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19898 shlibpath_var=LD_LIBRARY_PATH
19899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19901 # the default ld.so.conf also contains /usr/contrib/lib and
19902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19903 # libtool to hard-code these into programs
19904 ;;
19905
19906cygwin* | mingw* | pw32*)
19907 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019908 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019909 need_version=no
19910 need_lib_prefix=no
19911
19912 case $GCC,$host_os in
19913 yes,cygwin* | yes,mingw* | yes,pw32*)
19914 library_names_spec='$libname.dll.a'
19915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019916 postinstall_cmds='base_file=`basename \${file}`~
19917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19918 dldir=$destdir/`dirname \$dlpath`~
19919 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000019920 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19922 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019923 $rm \$dlpath'
19924 shlibpath_overrides_runpath=yes
19925
19926 case $host_os in
19927 cygwin*)
19928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19929 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 +000019930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019931 ;;
19932 mingw*)
19933 # MinGW DLLs use traditional 'lib' prefix
19934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19937 # It is most probably a Windows format PATH printed by
19938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19939 # path with ; separators, and with drive letters. We can handle the
19940 # drive letters (cygwin fileutils understands them), so leave them,
19941 # especially as we might pass files found there to a mingw objdump,
19942 # which wouldn't understand a cygwinified path. Ahh.
19943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19944 else
19945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19946 fi
19947 ;;
19948 pw32*)
19949 # pw32 DLLs use 'pw' prefix rather than 'lib'
19950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19951 ;;
19952 esac
19953 ;;
19954
19955 *)
19956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19957 ;;
19958 esac
19959 dynamic_linker='Win32 ld.exe'
19960 # FIXME: first we should search . and the directory the executable is in
19961 shlibpath_var=PATH
19962 ;;
19963
19964darwin* | rhapsody*)
19965 dynamic_linker="$host_os dyld"
19966 version_type=darwin
19967 need_lib_prefix=no
19968 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019970 soname_spec='${libname}${release}${major}$shared_ext'
19971 shlibpath_overrides_runpath=yes
19972 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000019973 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000019974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019975 if test "$GCC" = yes; then
19976 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"`
19977 else
19978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019979 fi
19980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19981 ;;
19982
19983dgux*)
19984 version_type=linux
19985 need_lib_prefix=no
19986 need_version=no
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 shlibpath_var=LD_LIBRARY_PATH
19990 ;;
19991
19992freebsd1*)
19993 dynamic_linker=no
19994 ;;
19995
Reid Spencer2706f8c2004-09-19 23:53:36 +000019996kfreebsd*-gnu)
19997 version_type=linux
19998 need_lib_prefix=no
19999 need_version=no
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LD_LIBRARY_PATH
20003 shlibpath_overrides_runpath=no
20004 hardcode_into_libs=yes
20005 dynamic_linker='GNU ld.so'
20006 ;;
20007
John Criswell47fdd832003-07-14 16:52:07 +000020008freebsd*)
20009 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20010 version_type=freebsd-$objformat
20011 case $version_type in
20012 freebsd-elf*)
20013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20014 need_version=no
20015 need_lib_prefix=no
20016 ;;
20017 freebsd-*)
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20019 need_version=yes
20020 ;;
20021 esac
20022 shlibpath_var=LD_LIBRARY_PATH
20023 case $host_os in
20024 freebsd2*)
20025 shlibpath_overrides_runpath=yes
20026 ;;
20027 freebsd3.01* | freebsdelf3.01*)
20028 shlibpath_overrides_runpath=yes
20029 hardcode_into_libs=yes
20030 ;;
20031 *) # from 3.2 on
20032 shlibpath_overrides_runpath=no
20033 hardcode_into_libs=yes
20034 ;;
20035 esac
20036 ;;
20037
20038gnu*)
20039 version_type=linux
20040 need_lib_prefix=no
20041 need_version=no
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 shlibpath_var=LD_LIBRARY_PATH
20045 hardcode_into_libs=yes
20046 ;;
20047
20048hpux9* | hpux10* | hpux11*)
20049 # Give a soname corresponding to the major version so that dld.sl refuses to
20050 # link against other versions.
20051 version_type=sunos
20052 need_lib_prefix=no
20053 need_version=no
20054 case "$host_cpu" in
20055 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020056 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020057 hardcode_into_libs=yes
20058 dynamic_linker="$host_os dld.so"
20059 shlibpath_var=LD_LIBRARY_PATH
20060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 if test "X$HPUX_IA64_MODE" = X32; then
20064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20065 else
20066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20067 fi
20068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20069 ;;
20070 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020071 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020072 hardcode_into_libs=yes
20073 dynamic_linker="$host_os dld.sl"
20074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20080 ;;
20081 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020082 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020083 dynamic_linker="$host_os dld.sl"
20084 shlibpath_var=SHLIB_PATH
20085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 ;;
20089 esac
20090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20091 postinstall_cmds='chmod 555 $lib'
20092 ;;
20093
20094irix5* | irix6* | nonstopux*)
20095 case $host_os in
20096 nonstopux*) version_type=nonstopux ;;
20097 *)
20098 if test "$lt_cv_prog_gnu_ld" = yes; then
20099 version_type=linux
20100 else
20101 version_type=irix
20102 fi ;;
20103 esac
20104 need_lib_prefix=no
20105 need_version=no
20106 soname_spec='${libname}${release}${shared_ext}$major'
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20108 case $host_os in
20109 irix5* | nonstopux*)
20110 libsuff= shlibsuff=
20111 ;;
20112 *)
20113 case $LD in # libtool.m4 will add one of these switches to LD
20114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20115 libsuff= shlibsuff= libmagic=32-bit;;
20116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20117 libsuff=32 shlibsuff=N32 libmagic=N32;;
20118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20120 *) libsuff= shlibsuff= libmagic=never-match;;
20121 esac
20122 ;;
20123 esac
20124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20125 shlibpath_overrides_runpath=no
20126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20128 hardcode_into_libs=yes
20129 ;;
20130
20131# No shared lib support for Linux oldld, aout, or coff.
20132linux*oldld* | linux*aout* | linux*coff*)
20133 dynamic_linker=no
20134 ;;
20135
20136# This must be Linux ELF.
20137linux*)
20138 version_type=linux
20139 need_lib_prefix=no
20140 need_version=no
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 shlibpath_overrides_runpath=no
20146 # This implies no fast_install, which is unacceptable.
20147 # Some rework will be needed to allow for fast_install
20148 # before this can be enabled.
20149 hardcode_into_libs=yes
20150
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 # Append ld.so.conf contents to the search path
20152 if test -f /etc/ld.so.conf; then
20153 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20155 fi
20156
John Criswell47fdd832003-07-14 16:52:07 +000020157 # We used to test for /lib/ld.so.1 and disable shared libraries on
20158 # powerpc, because MkLinux only supported shared libraries with the
20159 # GNU dynamic linker. Since this was broken with cross compilers,
20160 # most powerpc-linux boxes support dynamic linking these days and
20161 # people can always --disable-shared, the test was removed, and we
20162 # assume the GNU/Linux dynamic linker is in use.
20163 dynamic_linker='GNU/Linux ld.so'
20164 ;;
20165
Reid Spencer2706f8c2004-09-19 23:53:36 +000020166knetbsd*-gnu)
20167 version_type=linux
20168 need_lib_prefix=no
20169 need_version=no
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 shlibpath_var=LD_LIBRARY_PATH
20173 shlibpath_overrides_runpath=no
20174 hardcode_into_libs=yes
20175 dynamic_linker='GNU ld.so'
20176 ;;
20177
John Criswell47fdd832003-07-14 16:52:07 +000020178netbsd*)
20179 version_type=sunos
20180 need_lib_prefix=no
20181 need_version=no
20182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185 dynamic_linker='NetBSD (a.out) ld.so'
20186 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020188 soname_spec='${libname}${release}${shared_ext}$major'
20189 dynamic_linker='NetBSD ld.elf_so'
20190 fi
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20193 hardcode_into_libs=yes
20194 ;;
20195
20196newsos6)
20197 version_type=linux
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20201 ;;
20202
Reid Spencer2706f8c2004-09-19 23:53:36 +000020203nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020204 version_type=linux
20205 need_lib_prefix=no
20206 need_version=no
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208 soname_spec='${libname}${release}${shared_ext}$major'
20209 shlibpath_var=LD_LIBRARY_PATH
20210 shlibpath_overrides_runpath=yes
20211 ;;
20212
20213openbsd*)
20214 version_type=sunos
20215 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020216 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221 case $host_os in
20222 openbsd2.[89] | openbsd2.[89].*)
20223 shlibpath_overrides_runpath=no
20224 ;;
20225 *)
20226 shlibpath_overrides_runpath=yes
20227 ;;
20228 esac
20229 else
20230 shlibpath_overrides_runpath=yes
20231 fi
20232 ;;
20233
20234os2*)
20235 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020236 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020237 need_lib_prefix=no
20238 library_names_spec='$libname${shared_ext} $libname.a'
20239 dynamic_linker='OS/2 ld.exe'
20240 shlibpath_var=LIBPATH
20241 ;;
20242
20243osf3* | osf4* | osf5*)
20244 version_type=osf
20245 need_lib_prefix=no
20246 need_version=no
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20252 ;;
20253
20254sco3.2v5*)
20255 version_type=osf
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 ;;
20260
20261solaris*)
20262 version_type=linux
20263 need_lib_prefix=no
20264 need_version=no
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=yes
20269 hardcode_into_libs=yes
20270 # ldd complains unless libraries are executable
20271 postinstall_cmds='chmod +x $lib'
20272 ;;
20273
20274sunos4*)
20275 version_type=sunos
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278 shlibpath_var=LD_LIBRARY_PATH
20279 shlibpath_overrides_runpath=yes
20280 if test "$with_gnu_ld" = yes; then
20281 need_lib_prefix=no
20282 fi
20283 need_version=yes
20284 ;;
20285
20286sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20287 version_type=linux
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 case $host_vendor in
20292 sni)
20293 shlibpath_overrides_runpath=no
20294 need_lib_prefix=no
20295 export_dynamic_flag_spec='${wl}-Blargedynsym'
20296 runpath_var=LD_RUN_PATH
20297 ;;
20298 siemens)
20299 need_lib_prefix=no
20300 ;;
20301 motorola)
20302 need_lib_prefix=no
20303 need_version=no
20304 shlibpath_overrides_runpath=no
20305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20306 ;;
20307 esac
20308 ;;
20309
20310sysv4*MP*)
20311 if test -d /usr/nec ;then
20312 version_type=linux
20313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314 soname_spec='$libname${shared_ext}.$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 fi
20317 ;;
20318
20319uts4*)
20320 version_type=linux
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 soname_spec='${libname}${release}${shared_ext}$major'
20323 shlibpath_var=LD_LIBRARY_PATH
20324 ;;
20325
20326*)
20327 dynamic_linker=no
20328 ;;
20329esac
20330echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20331echo "${ECHO_T}$dynamic_linker" >&6
20332test "$dynamic_linker" = no && can_build_shared=no
20333
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20335echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20336hardcode_action_F77=
20337if test -n "$hardcode_libdir_flag_spec_F77" || \
20338 test -n "$runpath_var_F77" || \
20339 test "X$hardcode_automatic_F77" = "Xyes" ; then
20340
20341 # We can hardcode non-existant directories.
20342 if test "$hardcode_direct_F77" != no &&
20343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20344 # have to relink, otherwise we might link with an installed library
20345 # when we should be linking with a yet-to-be-installed one
20346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20347 test "$hardcode_minus_L_F77" != no; then
20348 # Linking always hardcodes the temporary library directory.
20349 hardcode_action_F77=relink
20350 else
20351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20352 hardcode_action_F77=immediate
20353 fi
20354else
20355 # We cannot hardcode anything, or else we can only hardcode existing
20356 # directories.
20357 hardcode_action_F77=unsupported
20358fi
20359echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20360echo "${ECHO_T}$hardcode_action_F77" >&6
20361
20362if test "$hardcode_action_F77" = relink; then
20363 # Fast installation is not supported
20364 enable_fast_install=no
20365elif test "$shlibpath_overrides_runpath" = yes ||
20366 test "$enable_shared" = no; then
20367 # Fast installation is not necessary
20368 enable_fast_install=needless
20369fi
20370
20371striplib=
20372old_striplib=
20373echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20374echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20375if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20378 echo "$as_me:$LINENO: result: yes" >&5
20379echo "${ECHO_T}yes" >&6
20380else
20381# FIXME - insert some real tests, host_os isn't really good enough
20382 case $host_os in
20383 darwin*)
20384 if test -n "$STRIP" ; then
20385 striplib="$STRIP -x"
20386 echo "$as_me:$LINENO: result: yes" >&5
20387echo "${ECHO_T}yes" >&6
20388 else
20389 echo "$as_me:$LINENO: result: no" >&5
20390echo "${ECHO_T}no" >&6
20391fi
20392 ;;
20393 *)
20394 echo "$as_me:$LINENO: result: no" >&5
20395echo "${ECHO_T}no" >&6
20396 ;;
20397 esac
20398fi
20399
20400
John Criswell47fdd832003-07-14 16:52:07 +000020401
20402# The else clause should only fire when bootstrapping the
20403# libtool distribution, otherwise you forgot to ship ltmain.sh
20404# with your package, and you will get complaints that there are
20405# no rules to generate ltmain.sh.
20406if test -f "$ltmain"; then
20407 # See if we are running on zsh, and set the options which allow our commands through
20408 # without removal of \ escapes.
20409 if test -n "${ZSH_VERSION+set}" ; then
20410 setopt NO_GLOB_SUBST
20411 fi
20412 # Now quote all the things that may contain metacharacters while being
20413 # careful not to overquote the AC_SUBSTed values. We take copies of the
20414 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20416 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20419 deplibs_check_method reload_flag reload_cmds need_locks \
20420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20421 lt_cv_sys_global_symbol_to_c_name_address \
20422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20423 old_postinstall_cmds old_postuninstall_cmds \
20424 compiler_F77 \
20425 CC_F77 \
20426 LD_F77 \
20427 lt_prog_compiler_wl_F77 \
20428 lt_prog_compiler_pic_F77 \
20429 lt_prog_compiler_static_F77 \
20430 lt_prog_compiler_no_builtin_flag_F77 \
20431 export_dynamic_flag_spec_F77 \
20432 thread_safe_flag_spec_F77 \
20433 whole_archive_flag_spec_F77 \
20434 enable_shared_with_static_runtimes_F77 \
20435 old_archive_cmds_F77 \
20436 old_archive_from_new_cmds_F77 \
20437 predep_objects_F77 \
20438 postdep_objects_F77 \
20439 predeps_F77 \
20440 postdeps_F77 \
20441 compiler_lib_search_path_F77 \
20442 archive_cmds_F77 \
20443 archive_expsym_cmds_F77 \
20444 postinstall_cmds_F77 \
20445 postuninstall_cmds_F77 \
20446 old_archive_from_expsyms_cmds_F77 \
20447 allow_undefined_flag_F77 \
20448 no_undefined_flag_F77 \
20449 export_symbols_cmds_F77 \
20450 hardcode_libdir_flag_spec_F77 \
20451 hardcode_libdir_flag_spec_ld_F77 \
20452 hardcode_libdir_separator_F77 \
20453 hardcode_automatic_F77 \
20454 module_cmds_F77 \
20455 module_expsym_cmds_F77 \
20456 lt_cv_prog_compiler_c_o_F77 \
20457 exclude_expsyms_F77 \
20458 include_expsyms_F77; do
20459
20460 case $var in
20461 old_archive_cmds_F77 | \
20462 old_archive_from_new_cmds_F77 | \
20463 archive_cmds_F77 | \
20464 archive_expsym_cmds_F77 | \
20465 module_cmds_F77 | \
20466 module_expsym_cmds_F77 | \
20467 old_archive_from_expsyms_cmds_F77 | \
20468 export_symbols_cmds_F77 | \
20469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20470 postinstall_cmds | postuninstall_cmds | \
20471 old_postinstall_cmds | old_postuninstall_cmds | \
20472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20473 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020474 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 +000020475 ;;
20476 *)
20477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20478 ;;
20479 esac
20480 done
20481
20482 case $lt_echo in
20483 *'\$0 --fallback-echo"')
20484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20485 ;;
20486 esac
20487
20488cfgfile="$ofile"
20489
20490 cat <<__EOF__ >> "$cfgfile"
20491# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20492
20493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20494
20495# Shell to use when invoking shell scripts.
20496SHELL=$lt_SHELL
20497
20498# Whether or not to build shared libraries.
20499build_libtool_libs=$enable_shared
20500
20501# Whether or not to build static libraries.
20502build_old_libs=$enable_static
20503
20504# Whether or not to add -lc for building shared libraries.
20505build_libtool_need_lc=$archive_cmds_need_lc_F77
20506
20507# Whether or not to disallow shared libs when runtime libs are static
20508allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20509
20510# Whether or not to optimize for fast installation.
20511fast_install=$enable_fast_install
20512
20513# The host system.
20514host_alias=$host_alias
20515host=$host
20516
20517# An echo program that does not interpret backslashes.
20518echo=$lt_echo
20519
20520# The archiver.
20521AR=$lt_AR
20522AR_FLAGS=$lt_AR_FLAGS
20523
20524# A C compiler.
20525LTCC=$lt_LTCC
20526
20527# A language-specific compiler.
20528CC=$lt_compiler_F77
20529
20530# Is the compiler the GNU C compiler?
20531with_gcc=$GCC_F77
20532
20533# An ERE matcher.
20534EGREP=$lt_EGREP
20535
20536# The linker used to build libraries.
20537LD=$lt_LD_F77
20538
20539# Whether we need hard or soft links.
20540LN_S=$lt_LN_S
20541
20542# A BSD-compatible nm program.
20543NM=$lt_NM
20544
20545# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020546STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020547
20548# Used to examine libraries when file_magic_cmd begins "file"
20549MAGIC_CMD=$MAGIC_CMD
20550
20551# Used on cygwin: DLL creation program.
20552DLLTOOL="$DLLTOOL"
20553
20554# Used on cygwin: object dumper.
20555OBJDUMP="$OBJDUMP"
20556
20557# Used on cygwin: assembler.
20558AS="$AS"
20559
20560# The name of the directory that contains temporary libtool files.
20561objdir=$objdir
20562
20563# How to create reloadable object files.
20564reload_flag=$lt_reload_flag
20565reload_cmds=$lt_reload_cmds
20566
20567# How to pass a linker flag through the compiler.
20568wl=$lt_lt_prog_compiler_wl_F77
20569
20570# Object file suffix (normally "o").
20571objext="$ac_objext"
20572
20573# Old archive suffix (normally "a").
20574libext="$libext"
20575
20576# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020577shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020578
20579# Executable file suffix (normally "").
20580exeext="$exeext"
20581
20582# Additional compiler flags for building library objects.
20583pic_flag=$lt_lt_prog_compiler_pic_F77
20584pic_mode=$pic_mode
20585
20586# What is the maximum length of a command?
20587max_cmd_len=$lt_cv_sys_max_cmd_len
20588
20589# Does compiler simultaneously support -c and -o options?
20590compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20591
20592# Must we lock files when doing compilation ?
20593need_locks=$lt_need_locks
20594
20595# Do we need the lib prefix for modules?
20596need_lib_prefix=$need_lib_prefix
20597
20598# Do we need a version for libraries?
20599need_version=$need_version
20600
20601# Whether dlopen is supported.
20602dlopen_support=$enable_dlopen
20603
20604# Whether dlopen of programs is supported.
20605dlopen_self=$enable_dlopen_self
20606
20607# Whether dlopen of statically linked programs is supported.
20608dlopen_self_static=$enable_dlopen_self_static
20609
20610# Compiler flag to prevent dynamic linking.
20611link_static_flag=$lt_lt_prog_compiler_static_F77
20612
20613# Compiler flag to turn off builtin functions.
20614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20615
20616# Compiler flag to allow reflexive dlopens.
20617export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20618
20619# Compiler flag to generate shared objects directly from archives.
20620whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20621
20622# Compiler flag to generate thread-safe objects.
20623thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20624
20625# Library versioning type.
20626version_type=$version_type
20627
20628# Format of library name prefix.
20629libname_spec=$lt_libname_spec
20630
20631# List of archive names. First name is the real one, the rest are links.
20632# The last name is the one that the linker finds with -lNAME.
20633library_names_spec=$lt_library_names_spec
20634
20635# The coded name of the library, if different from the real name.
20636soname_spec=$lt_soname_spec
20637
20638# Commands used to build and install an old-style archive.
20639RANLIB=$lt_RANLIB
20640old_archive_cmds=$lt_old_archive_cmds_F77
20641old_postinstall_cmds=$lt_old_postinstall_cmds
20642old_postuninstall_cmds=$lt_old_postuninstall_cmds
20643
20644# Create an old-style archive from a shared archive.
20645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20646
20647# Create a temporary old-style archive to link instead of a shared archive.
20648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20649
20650# Commands used to build and install a shared archive.
20651archive_cmds=$lt_archive_cmds_F77
20652archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20653postinstall_cmds=$lt_postinstall_cmds
20654postuninstall_cmds=$lt_postuninstall_cmds
20655
20656# Commands used to build a loadable module (assumed same as above if empty)
20657module_cmds=$lt_module_cmds_F77
20658module_expsym_cmds=$lt_module_expsym_cmds_F77
20659
20660# Commands to strip libraries.
20661old_striplib=$lt_old_striplib
20662striplib=$lt_striplib
20663
20664# Dependencies to place before the objects being linked to create a
20665# shared library.
20666predep_objects=$lt_predep_objects_F77
20667
20668# Dependencies to place after the objects being linked to create a
20669# shared library.
20670postdep_objects=$lt_postdep_objects_F77
20671
20672# Dependencies to place before the objects being linked to create a
20673# shared library.
20674predeps=$lt_predeps_F77
20675
20676# Dependencies to place after the objects being linked to create a
20677# shared library.
20678postdeps=$lt_postdeps_F77
20679
20680# The library search path used internally by the compiler when linking
20681# a shared library.
20682compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20683
20684# Method to check whether dependent libraries are shared objects.
20685deplibs_check_method=$lt_deplibs_check_method
20686
20687# Command to use when deplibs_check_method == file_magic.
20688file_magic_cmd=$lt_file_magic_cmd
20689
20690# Flag that allows shared libraries with undefined symbols to be built.
20691allow_undefined_flag=$lt_allow_undefined_flag_F77
20692
20693# Flag that forces no undefined symbols.
20694no_undefined_flag=$lt_no_undefined_flag_F77
20695
20696# Commands used to finish a libtool library installation in a directory.
20697finish_cmds=$lt_finish_cmds
20698
20699# Same as above, but a single script fragment to be evaled but not shown.
20700finish_eval=$lt_finish_eval
20701
20702# Take the output of nm and produce a listing of raw symbols and C names.
20703global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20704
20705# Transform the output of nm in a proper C declaration
20706global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20707
20708# Transform the output of nm in a C name address pair
20709global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20710
20711# This is the shared library runtime path variable.
20712runpath_var=$runpath_var
20713
20714# This is the shared library path variable.
20715shlibpath_var=$shlibpath_var
20716
20717# Is shlibpath searched before the hard-coded library search path?
20718shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20719
20720# How to hardcode a shared library path into an executable.
20721hardcode_action=$hardcode_action_F77
20722
20723# Whether we should hardcode library paths into libraries.
20724hardcode_into_libs=$hardcode_into_libs
20725
20726# Flag to hardcode \$libdir into a binary during linking.
20727# This must work even if \$libdir does not exist.
20728hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20729
20730# If ld is used when linking, flag to hardcode \$libdir into
20731# a binary during linking. This must work even if \$libdir does
20732# not exist.
20733hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20734
20735# Whether we need a single -rpath flag with a separated argument.
20736hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20737
20738# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20739# resulting binary.
20740hardcode_direct=$hardcode_direct_F77
20741
20742# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20743# resulting binary.
20744hardcode_minus_L=$hardcode_minus_L_F77
20745
20746# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20747# the resulting binary.
20748hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20749
20750# Set to yes if building a shared library automatically hardcodes DIR into the library
20751# and all subsequent libraries and executables linked against it.
20752hardcode_automatic=$hardcode_automatic_F77
20753
20754# Variables whose values should be saved in libtool wrapper scripts and
20755# restored at relink time.
20756variables_saved_for_relink="$variables_saved_for_relink"
20757
20758# Whether libtool must link a program against all its dependency libraries.
20759link_all_deplibs=$link_all_deplibs_F77
20760
20761# Compile-time system search path for libraries
20762sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20763
20764# Run-time system search path for libraries
20765sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20766
20767# Fix the shell variable \$srcfile for the compiler.
20768fix_srcfile_path="$fix_srcfile_path_F77"
20769
20770# Set to yes if exported symbols are required.
20771always_export_symbols=$always_export_symbols_F77
20772
20773# The commands to list exported symbols.
20774export_symbols_cmds=$lt_export_symbols_cmds_F77
20775
20776# The commands to extract the exported symbol list from a shared archive.
20777extract_expsyms_cmds=$lt_extract_expsyms_cmds
20778
20779# Symbols that should not be listed in the preloaded symbols.
20780exclude_expsyms=$lt_exclude_expsyms_F77
20781
20782# Symbols that must always be exported.
20783include_expsyms=$lt_include_expsyms_F77
20784
20785# ### END LIBTOOL TAG CONFIG: $tagname
20786
20787__EOF__
20788
20789
20790else
20791 # If there is no Makefile yet, we rely on a make rule to execute
20792 # `config.status --recheck' to rerun these tests and create the
20793 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020794 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20795 if test -f "$ltmain_in"; then
20796 test -f Makefile && make "$ltmain"
20797 fi
John Criswell47fdd832003-07-14 16:52:07 +000020798fi
20799
20800
20801ac_ext=c
20802ac_cpp='$CPP $CPPFLAGS'
20803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807CC="$lt_save_CC"
20808
20809 else
20810 tagname=""
20811 fi
20812 ;;
20813
20814 GCJ)
20815 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020816 ac_ext=c
20817ac_cpp='$CPP $CPPFLAGS'
20818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020821
20822
20823# Source file extension for Java test sources.
20824ac_ext=java
20825
20826# Object file extension for compiled Java test sources.
20827objext=o
20828objext_GCJ=$objext
20829
20830# Code to be used in simple compile tests
20831lt_simple_compile_test_code="class foo {}\n"
20832
20833# Code to be used in simple link tests
20834lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20835
20836# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20837
20838# If no C compiler was specified, use CC.
20839LTCC=${LTCC-"$CC"}
20840
20841# Allow CC to be a program name with arguments.
20842compiler=$CC
20843
20844
20845# Allow CC to be a program name with arguments.
20846lt_save_CC="$CC"
20847CC=${GCJ-"gcj"}
20848compiler=$CC
20849compiler_GCJ=$CC
20850
20851# GCJ did not exist at the time GCC didn't implicitly link libc in.
20852archive_cmds_need_lc_GCJ=no
20853
John Criswell47fdd832003-07-14 16:52:07 +000020854
20855lt_prog_compiler_no_builtin_flag_GCJ=
20856
20857if test "$GCC" = yes; then
20858 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20859
Reid Spencer2706f8c2004-09-19 23:53:36 +000020860
20861echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020862echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20863if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20865else
20866 lt_cv_prog_compiler_rtti_exceptions=no
20867 ac_outfile=conftest.$ac_objext
20868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20869 lt_compiler_flag="-fno-rtti -fno-exceptions"
20870 # Insert the option either (1) after the last *FLAGS variable, or
20871 # (2) before a word containing "conftest.", or (3) at the end.
20872 # Note that $ac_compile itself does not contain backslashes and begins
20873 # with a dollar sign (not a hyphen), so the echo should work correctly.
20874 # The option is referenced via a variable to avoid confusing sed.
20875 lt_compile=`echo "$ac_compile" | $SED \
20876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20878 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000020879 (eval echo "\"\$as_me:20879: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020880 (eval "$lt_compile" 2>conftest.err)
20881 ac_status=$?
20882 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000020883 echo "$as_me:20883: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020884 if (exit $ac_status) && test -s "$ac_outfile"; then
20885 # The compiler can only warn and ignore the option if not recognized
20886 # So say no if there are warnings
20887 if test ! -s conftest.err; then
20888 lt_cv_prog_compiler_rtti_exceptions=yes
20889 fi
20890 fi
20891 $rm conftest*
20892
20893fi
20894echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20895echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20896
20897if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20898 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20899else
20900 :
20901fi
20902
20903fi
20904
20905lt_prog_compiler_wl_GCJ=
20906lt_prog_compiler_pic_GCJ=
20907lt_prog_compiler_static_GCJ=
20908
20909echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20910echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20911
20912 if test "$GCC" = yes; then
20913 lt_prog_compiler_wl_GCJ='-Wl,'
20914 lt_prog_compiler_static_GCJ='-static'
20915
20916 case $host_os in
20917 aix*)
20918 # All AIX code is PIC.
20919 if test "$host_cpu" = ia64; then
20920 # AIX 5 now supports IA64 processor
20921 lt_prog_compiler_static_GCJ='-Bstatic'
20922 fi
20923 ;;
20924
20925 amigaos*)
20926 # FIXME: we need at least 68020 code to build shared libraries, but
20927 # adding the `-m68020' flag to GCC prevents building anything better,
20928 # like `-m68040'.
20929 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20930 ;;
20931
20932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20933 # PIC is the default for these OSes.
20934 ;;
20935
20936 mingw* | pw32* | os2*)
20937 # This hack is so that the source file can tell whether it is being
20938 # built for inclusion in a dll (and should export symbols for example).
20939 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20940 ;;
20941
20942 darwin* | rhapsody*)
20943 # PIC is the default on this platform
20944 # Common symbols not allowed in MH_DYLIB files
20945 lt_prog_compiler_pic_GCJ='-fno-common'
20946 ;;
20947
20948 msdosdjgpp*)
20949 # Just because we use GCC doesn't mean we suddenly get shared libraries
20950 # on systems that don't support them.
20951 lt_prog_compiler_can_build_shared_GCJ=no
20952 enable_shared=no
20953 ;;
20954
20955 sysv4*MP*)
20956 if test -d /usr/nec; then
20957 lt_prog_compiler_pic_GCJ=-Kconform_pic
20958 fi
20959 ;;
20960
20961 hpux*)
20962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20963 # not for PA HP-UX.
20964 case "$host_cpu" in
20965 hppa*64*|ia64*)
20966 # +Z the default
20967 ;;
20968 *)
20969 lt_prog_compiler_pic_GCJ='-fPIC'
20970 ;;
20971 esac
20972 ;;
20973
20974 *)
20975 lt_prog_compiler_pic_GCJ='-fPIC'
20976 ;;
20977 esac
20978 else
20979 # PORTME Check for flag to pass linker flags through the system compiler.
20980 case $host_os in
20981 aix*)
20982 lt_prog_compiler_wl_GCJ='-Wl,'
20983 if test "$host_cpu" = ia64; then
20984 # AIX 5 now supports IA64 processor
20985 lt_prog_compiler_static_GCJ='-Bstatic'
20986 else
20987 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20988 fi
20989 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020990 darwin*)
20991 # PIC is the default on this platform
20992 # Common symbols not allowed in MH_DYLIB files
20993 case "$cc_basename" in
20994 xlc*)
20995 lt_prog_compiler_pic_GCJ='-qnocommon'
20996 lt_prog_compiler_wl_GCJ='-Wl,'
20997 ;;
20998 esac
20999 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021000
21001 mingw* | pw32* | os2*)
21002 # This hack is so that the source file can tell whether it is being
21003 # built for inclusion in a dll (and should export symbols for example).
21004 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21005 ;;
21006
21007 hpux9* | hpux10* | hpux11*)
21008 lt_prog_compiler_wl_GCJ='-Wl,'
21009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21010 # not for PA HP-UX.
21011 case "$host_cpu" in
21012 hppa*64*|ia64*)
21013 # +Z the default
21014 ;;
21015 *)
21016 lt_prog_compiler_pic_GCJ='+Z'
21017 ;;
21018 esac
21019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21020 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21021 ;;
21022
21023 irix5* | irix6* | nonstopux*)
21024 lt_prog_compiler_wl_GCJ='-Wl,'
21025 # PIC (with -KPIC) is the default.
21026 lt_prog_compiler_static_GCJ='-non_shared'
21027 ;;
21028
21029 newsos6)
21030 lt_prog_compiler_pic_GCJ='-KPIC'
21031 lt_prog_compiler_static_GCJ='-Bstatic'
21032 ;;
21033
21034 linux*)
21035 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021036 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021037 lt_prog_compiler_wl_GCJ='-Wl,'
21038 lt_prog_compiler_pic_GCJ='-KPIC'
21039 lt_prog_compiler_static_GCJ='-static'
21040 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021041 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021042 lt_prog_compiler_wl_GCJ='-Wl,'
21043 # All Alpha code is PIC.
21044 lt_prog_compiler_static_GCJ='-non_shared'
21045 ;;
21046 esac
21047 ;;
21048
21049 osf3* | osf4* | osf5*)
21050 lt_prog_compiler_wl_GCJ='-Wl,'
21051 # All OSF/1 code is PIC.
21052 lt_prog_compiler_static_GCJ='-non_shared'
21053 ;;
21054
21055 sco3.2v5*)
21056 lt_prog_compiler_pic_GCJ='-Kpic'
21057 lt_prog_compiler_static_GCJ='-dn'
21058 ;;
21059
21060 solaris*)
21061 lt_prog_compiler_wl_GCJ='-Wl,'
21062 lt_prog_compiler_pic_GCJ='-KPIC'
21063 lt_prog_compiler_static_GCJ='-Bstatic'
21064 ;;
21065
21066 sunos4*)
21067 lt_prog_compiler_wl_GCJ='-Qoption ld '
21068 lt_prog_compiler_pic_GCJ='-PIC'
21069 lt_prog_compiler_static_GCJ='-Bstatic'
21070 ;;
21071
21072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21073 lt_prog_compiler_wl_GCJ='-Wl,'
21074 lt_prog_compiler_pic_GCJ='-KPIC'
21075 lt_prog_compiler_static_GCJ='-Bstatic'
21076 ;;
21077
21078 sysv4*MP*)
21079 if test -d /usr/nec ;then
21080 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21081 lt_prog_compiler_static_GCJ='-Bstatic'
21082 fi
21083 ;;
21084
21085 uts4*)
21086 lt_prog_compiler_pic_GCJ='-pic'
21087 lt_prog_compiler_static_GCJ='-Bstatic'
21088 ;;
21089
21090 *)
21091 lt_prog_compiler_can_build_shared_GCJ=no
21092 ;;
21093 esac
21094 fi
21095
21096echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21097echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21098
21099#
21100# Check to make sure the PIC flag actually works.
21101#
21102if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021103
21104echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21106if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108else
21109 lt_prog_compiler_pic_works_GCJ=no
21110 ac_outfile=conftest.$ac_objext
21111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21112 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21113 # Insert the option either (1) after the last *FLAGS variable, or
21114 # (2) before a word containing "conftest.", or (3) at the end.
21115 # Note that $ac_compile itself does not contain backslashes and begins
21116 # with a dollar sign (not a hyphen), so the echo should work correctly.
21117 # The option is referenced via a variable to avoid confusing sed.
21118 lt_compile=`echo "$ac_compile" | $SED \
21119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21121 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000021122 (eval echo "\"\$as_me:21122: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021123 (eval "$lt_compile" 2>conftest.err)
21124 ac_status=$?
21125 cat conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000021126 echo "$as_me:21126: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021127 if (exit $ac_status) && test -s "$ac_outfile"; then
21128 # The compiler can only warn and ignore the option if not recognized
21129 # So say no if there are warnings
21130 if test ! -s conftest.err; then
21131 lt_prog_compiler_pic_works_GCJ=yes
21132 fi
21133 fi
21134 $rm conftest*
21135
21136fi
21137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21138echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21139
21140if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21141 case $lt_prog_compiler_pic_GCJ in
21142 "" | " "*) ;;
21143 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21144 esac
21145else
21146 lt_prog_compiler_pic_GCJ=
21147 lt_prog_compiler_can_build_shared_GCJ=no
21148fi
21149
21150fi
21151case "$host_os" in
21152 # For platforms which do not support PIC, -DPIC is meaningless:
21153 *djgpp*)
21154 lt_prog_compiler_pic_GCJ=
21155 ;;
21156 *)
21157 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21158 ;;
21159esac
21160
21161echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21162echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21163if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21165else
21166 lt_cv_prog_compiler_c_o_GCJ=no
21167 $rm -r conftest 2>/dev/null
21168 mkdir conftest
21169 cd conftest
21170 mkdir out
21171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21172
John Criswell47fdd832003-07-14 16:52:07 +000021173 lt_compiler_flag="-o out/conftest2.$ac_objext"
21174 # Insert the option either (1) after the last *FLAGS variable, or
21175 # (2) before a word containing "conftest.", or (3) at the end.
21176 # Note that $ac_compile itself does not contain backslashes and begins
21177 # with a dollar sign (not a hyphen), so the echo should work correctly.
21178 lt_compile=`echo "$ac_compile" | $SED \
21179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21181 -e 's:$: $lt_compiler_flag:'`
Reid Spencerca767402004-12-13 02:16:51 +000021182 (eval echo "\"\$as_me:21182: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021183 (eval "$lt_compile" 2>out/conftest.err)
21184 ac_status=$?
21185 cat out/conftest.err >&5
Reid Spencerca767402004-12-13 02:16:51 +000021186 echo "$as_me:21186: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21188 then
21189 # The compiler can only warn and ignore the option if not recognized
21190 # So say no if there are warnings
21191 if test ! -s out/conftest.err; then
21192 lt_cv_prog_compiler_c_o_GCJ=yes
21193 fi
21194 fi
21195 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021196 $rm conftest*
21197 # SGI C++ compiler will create directory out/ii_files/ for
21198 # template instantiation
21199 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21200 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021201 cd ..
21202 rmdir conftest
21203 $rm conftest*
21204
21205fi
21206echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21207echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21208
21209
21210hard_links="nottested"
21211if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21212 # do not overwrite the value of need_locks provided by the user
21213 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21214echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21215 hard_links=yes
21216 $rm conftest*
21217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21218 touch conftest.a
21219 ln conftest.a conftest.b 2>&5 || hard_links=no
21220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21221 echo "$as_me:$LINENO: result: $hard_links" >&5
21222echo "${ECHO_T}$hard_links" >&6
21223 if test "$hard_links" = no; then
21224 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21225echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21226 need_locks=warn
21227 fi
21228else
21229 need_locks=no
21230fi
21231
21232echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21233echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21234
21235 runpath_var=
21236 allow_undefined_flag_GCJ=
21237 enable_shared_with_static_runtimes_GCJ=no
21238 archive_cmds_GCJ=
21239 archive_expsym_cmds_GCJ=
21240 old_archive_From_new_cmds_GCJ=
21241 old_archive_from_expsyms_cmds_GCJ=
21242 export_dynamic_flag_spec_GCJ=
21243 whole_archive_flag_spec_GCJ=
21244 thread_safe_flag_spec_GCJ=
21245 hardcode_libdir_flag_spec_GCJ=
21246 hardcode_libdir_flag_spec_ld_GCJ=
21247 hardcode_libdir_separator_GCJ=
21248 hardcode_direct_GCJ=no
21249 hardcode_minus_L_GCJ=no
21250 hardcode_shlibpath_var_GCJ=unsupported
21251 link_all_deplibs_GCJ=unknown
21252 hardcode_automatic_GCJ=no
21253 module_cmds_GCJ=
21254 module_expsym_cmds_GCJ=
21255 always_export_symbols_GCJ=no
21256 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21257 # include_expsyms should be a list of space-separated symbols to be *always*
21258 # included in the symbol list
21259 include_expsyms_GCJ=
21260 # exclude_expsyms can be an extended regexp of symbols to exclude
21261 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21262 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21263 # as well as any symbol that contains `d'.
21264 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21266 # platforms (ab)use it in PIC code, but their linkers get confused if
21267 # the symbol is explicitly referenced. Since portable code cannot
21268 # rely on this symbol name, it's probably fine to never include it in
21269 # preloaded symbol tables.
21270 extract_expsyms_cmds=
21271
21272 case $host_os in
21273 cygwin* | mingw* | pw32*)
21274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21275 # When not using gcc, we currently assume that we are using
21276 # Microsoft Visual C++.
21277 if test "$GCC" != yes; then
21278 with_gnu_ld=no
21279 fi
21280 ;;
21281 openbsd*)
21282 with_gnu_ld=no
21283 ;;
21284 esac
21285
21286 ld_shlibs_GCJ=yes
21287 if test "$with_gnu_ld" = yes; then
21288 # If archive_cmds runs LD, not CC, wlarc should be empty
21289 wlarc='${wl}'
21290
21291 # See if GNU ld supports shared libraries.
21292 case $host_os in
21293 aix3* | aix4* | aix5*)
21294 # On AIX/PPC, the GNU linker is very broken
21295 if test "$host_cpu" != ia64; then
21296 ld_shlibs_GCJ=no
21297 cat <<EOF 1>&2
21298
21299*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21300*** to be unable to reliably create shared libraries on AIX.
21301*** Therefore, libtool is disabling shared libraries support. If you
21302*** really care for shared libraries, you may want to modify your PATH
21303*** so that a non-GNU linker is found, and then restart.
21304
21305EOF
21306 fi
21307 ;;
21308
21309 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021310 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 +000021311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21312 hardcode_minus_L_GCJ=yes
21313
21314 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21315 # that the semantics of dynamic libraries on AmigaOS, at least up
21316 # to version 4, is to share data among multiple programs linked
21317 # with the same dynamic library. Since this doesn't match the
21318 # behavior of shared libraries on other platforms, we can't use
21319 # them.
21320 ld_shlibs_GCJ=no
21321 ;;
21322
21323 beos*)
21324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21325 allow_undefined_flag_GCJ=unsupported
21326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21327 # support --undefined. This deserves some investigation. FIXME
21328 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21329 else
21330 ld_shlibs_GCJ=no
21331 fi
21332 ;;
21333
21334 cygwin* | mingw* | pw32*)
21335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21336 # as there is no search path for DLLs.
21337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21338 allow_undefined_flag_GCJ=unsupported
21339 always_export_symbols_GCJ=no
21340 enable_shared_with_static_runtimes_GCJ=yes
21341 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21342
21343 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21344 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21345 # If the export-symbols file already is a .def file (1st line
21346 # is EXPORTS), use it as is; otherwise, prepend...
21347 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21348 cp $export_symbols $output_objdir/$soname.def;
21349 else
21350 echo EXPORTS > $output_objdir/$soname.def;
21351 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021352 fi~
21353 $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 +000021354 else
21355 ld_shlibs=no
21356 fi
21357 ;;
21358
21359 netbsd*)
21360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21361 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21362 wlarc=
21363 else
21364 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21365 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21366 fi
21367 ;;
21368
21369 solaris* | sysv5*)
21370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21371 ld_shlibs_GCJ=no
21372 cat <<EOF 1>&2
21373
21374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21375*** create shared libraries on Solaris systems. Therefore, libtool
21376*** is disabling shared libraries support. We urge you to upgrade GNU
21377*** binutils to release 2.9.1 or newer. Another option is to modify
21378*** your PATH or compiler configuration so that the native linker is
21379*** used, and then restart.
21380
21381EOF
21382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21384 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21385 else
21386 ld_shlibs_GCJ=no
21387 fi
21388 ;;
21389
21390 sunos4*)
21391 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21392 wlarc=
21393 hardcode_direct_GCJ=yes
21394 hardcode_shlibpath_var_GCJ=no
21395 ;;
21396
Reid Spencer2706f8c2004-09-19 23:53:36 +000021397 linux*)
21398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21399 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21400 archive_cmds_GCJ="$tmp_archive_cmds"
21401 supports_anon_versioning=no
21402 case `$LD -v 2>/dev/null` in
21403 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21406 *\ 2.11.*) ;; # other 2.11 versions
21407 *) supports_anon_versioning=yes ;;
21408 esac
21409 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021410 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21411cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21412$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021413 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21414 else
21415 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21416 fi
21417 else
21418 ld_shlibs_GCJ=no
21419 fi
21420 ;;
21421
John Criswell47fdd832003-07-14 16:52:07 +000021422 *)
21423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21425 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21426 else
21427 ld_shlibs_GCJ=no
21428 fi
21429 ;;
21430 esac
21431
21432 if test "$ld_shlibs_GCJ" = yes; then
21433 runpath_var=LD_RUN_PATH
21434 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21435 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21436 # ancient GNU ld didn't support --whole-archive et. al.
21437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21438 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21439 else
21440 whole_archive_flag_spec_GCJ=
21441 fi
21442 fi
21443 else
21444 # PORTME fill in a description of your system's linker (not GNU ld)
21445 case $host_os in
21446 aix3*)
21447 allow_undefined_flag_GCJ=unsupported
21448 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021449 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 +000021450 # Note: this linker hardcodes the directories in LIBPATH if there
21451 # are no directories specified by -L.
21452 hardcode_minus_L_GCJ=yes
21453 if test "$GCC" = yes && test -z "$link_static_flag"; then
21454 # Neither direct hardcoding nor static linking is supported with a
21455 # broken collect2.
21456 hardcode_direct_GCJ=unsupported
21457 fi
21458 ;;
21459
21460 aix4* | aix5*)
21461 if test "$host_cpu" = ia64; then
21462 # On IA64, the linker does run time linking by default, so we don't
21463 # have to do anything special.
21464 aix_use_runtimelinking=no
21465 exp_sym_flag='-Bexport'
21466 no_entry_flag=""
21467 else
21468 # If we're using GNU nm, then we don't want the "-C" option.
21469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21471 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'
21472 else
21473 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'
21474 fi
21475 aix_use_runtimelinking=no
21476
21477 # Test if we are trying to use run time linking or normal
21478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21479 # need to do runtime linking.
21480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21481 for ld_flag in $LDFLAGS; do
21482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21483 aix_use_runtimelinking=yes
21484 break
21485 fi
21486 done
21487 esac
21488
21489 exp_sym_flag='-bexport'
21490 no_entry_flag='-bnoentry'
21491 fi
21492
21493 # When large executables or shared objects are built, AIX ld can
21494 # have problems creating the table of contents. If linking a library
21495 # or program results in "error TOC overflow" add -mminimal-toc to
21496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21498
21499 archive_cmds_GCJ=''
21500 hardcode_direct_GCJ=yes
21501 hardcode_libdir_separator_GCJ=':'
21502 link_all_deplibs_GCJ=yes
21503
21504 if test "$GCC" = yes; then
21505 case $host_os in aix4.012|aix4.012.*)
21506 # We only want to do this on AIX 4.2 and lower, the check
21507 # below for broken collect2 doesn't work under 4.3+
21508 collect2name=`${CC} -print-prog-name=collect2`
21509 if test -f "$collect2name" && \
21510 strings "$collect2name" | grep resolve_lib_name >/dev/null
21511 then
21512 # We have reworked collect2
21513 hardcode_direct_GCJ=yes
21514 else
21515 # We have old collect2
21516 hardcode_direct_GCJ=unsupported
21517 # It fails to find uninstalled libraries when the uninstalled
21518 # path is not listed in the libpath. Setting hardcode_minus_L
21519 # to unsupported forces relinking
21520 hardcode_minus_L_GCJ=yes
21521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21522 hardcode_libdir_separator_GCJ=
21523 fi
21524 esac
21525 shared_flag='-shared'
21526 else
21527 # not using gcc
21528 if test "$host_cpu" = ia64; then
21529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21530 # chokes on -Wl,-G. The following line is correct:
21531 shared_flag='-G'
21532 else
21533 if test "$aix_use_runtimelinking" = yes; then
21534 shared_flag='${wl}-G'
21535 else
21536 shared_flag='${wl}-bM:SRE'
21537 fi
21538 fi
21539 fi
21540
21541 # It seems that -bexpall does not export symbols beginning with
21542 # underscore (_), so it is better to generate a list of symbols to export.
21543 always_export_symbols_GCJ=yes
21544 if test "$aix_use_runtimelinking" = yes; then
21545 # Warning - without using the other runtime loading flags (-brtl),
21546 # -berok will link without error, but may produce a broken library.
21547 allow_undefined_flag_GCJ='-berok'
21548 # Determine the default libpath from the value encoded in an empty executable.
21549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021555
John Criswell47fdd832003-07-14 16:52:07 +000021556int
21557main ()
21558{
21559
21560 ;
21561 return 0;
21562}
21563_ACEOF
21564rm -f conftest.$ac_objext conftest$ac_exeext
21565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021566 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021573 { ac_try='test -z "$ac_c_werror_flag"
21574 || test ! -s conftest.err'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586
21587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21588}'`
21589# Check for a 64-bit object if we didn't find anything.
21590if 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; }
21591}'`; fi
21592else
21593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021594sed 's/^/| /' conftest.$ac_ext >&5
21595
John Criswell47fdd832003-07-14 16:52:07 +000021596fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021597rm -f conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21600
21601 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21602 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"
21603 else
21604 if test "$host_cpu" = ia64; then
21605 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21606 allow_undefined_flag_GCJ="-z nodefs"
21607 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"
21608 else
21609 # Determine the default libpath from the value encoded in an empty executable.
21610 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021611/* confdefs.h. */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021616
John Criswell47fdd832003-07-14 16:52:07 +000021617int
21618main ()
21619{
21620
21621 ;
21622 return 0;
21623}
21624_ACEOF
21625rm -f conftest.$ac_objext conftest$ac_exeext
21626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021627 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021629 grep -v '^ *+' conftest.er1 >conftest.err
21630 rm -f conftest.er1
21631 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021634 { ac_try='test -z "$ac_c_werror_flag"
21635 || test ! -s conftest.err'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; } &&
21641 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647
21648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21649}'`
21650# Check for a 64-bit object if we didn't find anything.
21651if 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; }
21652}'`; fi
21653else
21654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021655sed 's/^/| /' conftest.$ac_ext >&5
21656
John Criswell47fdd832003-07-14 16:52:07 +000021657fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021658rm -f conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21661
21662 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21663 # Warning - without using the other run time loading flags,
21664 # -berok will link without error, but may produce a broken library.
21665 no_undefined_flag_GCJ=' ${wl}-bernotok'
21666 allow_undefined_flag_GCJ=' ${wl}-berok'
21667 # -bexpall does not export symbols beginning with underscore (_)
21668 always_export_symbols_GCJ=yes
21669 # Exported symbols can be pulled into shared objects from archives
21670 whole_archive_flag_spec_GCJ=' '
21671 archive_cmds_need_lc_GCJ=yes
21672 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021673 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 +000021674 fi
21675 fi
21676 ;;
21677
21678 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021679 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 +000021680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21681 hardcode_minus_L_GCJ=yes
21682 # see comment about different semantics on the GNU ld section
21683 ld_shlibs_GCJ=no
21684 ;;
21685
Reid Spencer2706f8c2004-09-19 23:53:36 +000021686 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021687 export_dynamic_flag_spec_GCJ=-rdynamic
21688 ;;
21689
21690 cygwin* | mingw* | pw32*)
21691 # When not using gcc, we currently assume that we are using
21692 # Microsoft Visual C++.
21693 # hardcode_libdir_flag_spec is actually meaningless, as there is
21694 # no search path for DLLs.
21695 hardcode_libdir_flag_spec_GCJ=' '
21696 allow_undefined_flag_GCJ=unsupported
21697 # Tell ltmain to make .lib files, not .a files.
21698 libext=lib
21699 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021701 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021702 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 +000021703 # The linker will automatically build a .lib file if we build a DLL.
21704 old_archive_From_new_cmds_GCJ='true'
21705 # FIXME: Should let the user specify the lib program.
21706 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21707 fix_srcfile_path='`cygpath -w "$srcfile"`'
21708 enable_shared_with_static_runtimes_GCJ=yes
21709 ;;
21710
21711 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021712 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021713 rhapsody* | darwin1.[012])
21714 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21715 ;;
21716 *) # Darwin 1.3 on
21717 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21718 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21719 else
21720 case ${MACOSX_DEPLOYMENT_TARGET} in
21721 10.[012])
21722 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21723 ;;
21724 10.*)
21725 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21726 ;;
21727 esac
21728 fi
21729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021730 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021731 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021732 hardcode_direct_GCJ=no
21733 hardcode_automatic_GCJ=yes
21734 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021736 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737 if test "$GCC" = yes ; then
21738 output_verbose_link_cmd='echo'
21739 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21740 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741 # 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 +000021742 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}'
21743 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 +000021744 else
21745 case "$cc_basename" in
21746 xlc*)
21747 output_verbose_link_cmd='echo'
21748 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21749 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21750 # 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 +000021751 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}'
21752 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 +000021753 ;;
21754 *)
21755 ld_shlibs_GCJ=no
21756 ;;
21757 esac
John Criswell47fdd832003-07-14 16:52:07 +000021758 fi
21759 ;;
21760
21761 dgux*)
21762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21764 hardcode_shlibpath_var_GCJ=no
21765 ;;
21766
21767 freebsd1*)
21768 ld_shlibs_GCJ=no
21769 ;;
21770
21771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21772 # support. Future versions do this automatically, but an explicit c++rt0.o
21773 # does not break anything, and helps significantly (at the cost of a little
21774 # extra space).
21775 freebsd2.2*)
21776 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21778 hardcode_direct_GCJ=yes
21779 hardcode_shlibpath_var_GCJ=no
21780 ;;
21781
21782 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21783 freebsd2*)
21784 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21785 hardcode_direct_GCJ=yes
21786 hardcode_minus_L_GCJ=yes
21787 hardcode_shlibpath_var_GCJ=no
21788 ;;
21789
21790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021792 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21794 hardcode_direct_GCJ=yes
21795 hardcode_shlibpath_var_GCJ=no
21796 ;;
21797
21798 hpux9*)
21799 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021800 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 +000021801 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021802 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 +000021803 fi
21804 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21805 hardcode_libdir_separator_GCJ=:
21806 hardcode_direct_GCJ=yes
21807
21808 # hardcode_minus_L: Not really in the search PATH,
21809 # but as the default location of the library.
21810 hardcode_minus_L_GCJ=yes
21811 export_dynamic_flag_spec_GCJ='${wl}-E'
21812 ;;
21813
21814 hpux10* | hpux11*)
21815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21816 case "$host_cpu" in
21817 hppa*64*|ia64*)
21818 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21819 ;;
21820 *)
21821 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21822 ;;
21823 esac
21824 else
21825 case "$host_cpu" in
21826 hppa*64*|ia64*)
21827 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21828 ;;
21829 *)
21830 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21831 ;;
21832 esac
21833 fi
21834 if test "$with_gnu_ld" = no; then
21835 case "$host_cpu" in
21836 hppa*64*)
21837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21838 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21839 hardcode_libdir_separator_GCJ=:
21840 hardcode_direct_GCJ=no
21841 hardcode_shlibpath_var_GCJ=no
21842 ;;
21843 ia64*)
21844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21845 hardcode_direct_GCJ=no
21846 hardcode_shlibpath_var_GCJ=no
21847
21848 # hardcode_minus_L: Not really in the search PATH,
21849 # but as the default location of the library.
21850 hardcode_minus_L_GCJ=yes
21851 ;;
21852 *)
21853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21854 hardcode_libdir_separator_GCJ=:
21855 hardcode_direct_GCJ=yes
21856 export_dynamic_flag_spec_GCJ='${wl}-E'
21857
21858 # hardcode_minus_L: Not really in the search PATH,
21859 # but as the default location of the library.
21860 hardcode_minus_L_GCJ=yes
21861 ;;
21862 esac
21863 fi
21864 ;;
21865
21866 irix5* | irix6* | nonstopux*)
21867 if test "$GCC" = yes; then
21868 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'
21869 else
21870 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'
21871 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21872 fi
21873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21874 hardcode_libdir_separator_GCJ=:
21875 link_all_deplibs_GCJ=yes
21876 ;;
21877
21878 netbsd*)
21879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21881 else
21882 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21883 fi
21884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21885 hardcode_direct_GCJ=yes
21886 hardcode_shlibpath_var_GCJ=no
21887 ;;
21888
21889 newsos6)
21890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21891 hardcode_direct_GCJ=yes
21892 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21893 hardcode_libdir_separator_GCJ=:
21894 hardcode_shlibpath_var_GCJ=no
21895 ;;
21896
21897 openbsd*)
21898 hardcode_direct_GCJ=yes
21899 hardcode_shlibpath_var_GCJ=no
21900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 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 +000021903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21904 export_dynamic_flag_spec_GCJ='${wl}-E'
21905 else
21906 case $host_os in
21907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21908 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21910 ;;
21911 *)
21912 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21913 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21914 ;;
21915 esac
21916 fi
21917 ;;
21918
21919 os2*)
21920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21921 hardcode_minus_L_GCJ=yes
21922 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021923 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 +000021924 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21925 ;;
21926
21927 osf3*)
21928 if test "$GCC" = yes; then
21929 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21930 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'
21931 else
21932 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21933 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'
21934 fi
21935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21936 hardcode_libdir_separator_GCJ=:
21937 ;;
21938
21939 osf4* | osf5*) # as osf3* with the addition of -msym flag
21940 if test "$GCC" = yes; then
21941 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21942 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'
21943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21944 else
21945 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21946 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 +000021947 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~
21948 $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'
21949
John Criswell47fdd832003-07-14 16:52:07 +000021950 # Both c and cxx compiler support -rpath directly
21951 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21952 fi
21953 hardcode_libdir_separator_GCJ=:
21954 ;;
21955
21956 sco3.2v5*)
21957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_shlibpath_var_GCJ=no
21959 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21960 runpath_var=LD_RUN_PATH
21961 hardcode_runpath_var=yes
21962 ;;
21963
21964 solaris*)
21965 no_undefined_flag_GCJ=' -z text'
21966 if test "$GCC" = yes; then
21967 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021968 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21969 $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 +000021970 else
21971 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021972 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21973 $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 +000021974 fi
21975 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21976 hardcode_shlibpath_var_GCJ=no
21977 case $host_os in
21978 solaris2.[0-5] | solaris2.[0-5].*) ;;
21979 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21980 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21981 esac
21982 link_all_deplibs_GCJ=yes
21983 ;;
21984
21985 sunos4*)
21986 if test "x$host_vendor" = xsequent; then
21987 # Use $CC to link under sequent, because it throws in some extra .o
21988 # files that make .init and .fini sections work.
21989 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21990 else
21991 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21992 fi
21993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21994 hardcode_direct_GCJ=yes
21995 hardcode_minus_L_GCJ=yes
21996 hardcode_shlibpath_var_GCJ=no
21997 ;;
21998
21999 sysv4)
22000 case $host_vendor in
22001 sni)
22002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 hardcode_direct_GCJ=yes # is this really true???
22004 ;;
22005 siemens)
22006 ## LD is ld it makes a PLAMLIB
22007 ## CC just makes a GrossModule.
22008 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22009 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22010 hardcode_direct_GCJ=no
22011 ;;
22012 motorola)
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22015 ;;
22016 esac
22017 runpath_var='LD_RUN_PATH'
22018 hardcode_shlibpath_var_GCJ=no
22019 ;;
22020
22021 sysv4.3*)
22022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023 hardcode_shlibpath_var_GCJ=no
22024 export_dynamic_flag_spec_GCJ='-Bexport'
22025 ;;
22026
22027 sysv4*MP*)
22028 if test -d /usr/nec; then
22029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_shlibpath_var_GCJ=no
22031 runpath_var=LD_RUN_PATH
22032 hardcode_runpath_var=yes
22033 ld_shlibs_GCJ=yes
22034 fi
22035 ;;
22036
22037 sysv4.2uw2*)
22038 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22039 hardcode_direct_GCJ=yes
22040 hardcode_minus_L_GCJ=no
22041 hardcode_shlibpath_var_GCJ=no
22042 hardcode_runpath_var=yes
22043 runpath_var=LD_RUN_PATH
22044 ;;
22045
22046 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22047 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22048 if test "$GCC" = yes; then
22049 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22050 else
22051 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22052 fi
22053 runpath_var='LD_RUN_PATH'
22054 hardcode_shlibpath_var_GCJ=no
22055 ;;
22056
22057 sysv5*)
22058 no_undefined_flag_GCJ=' -z text'
22059 # $CC -shared without GNU ld will not create a library from C++
22060 # object files and a static libstdc++, better avoid it by now
22061 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022062 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22063 $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 +000022064 hardcode_libdir_flag_spec_GCJ=
22065 hardcode_shlibpath_var_GCJ=no
22066 runpath_var='LD_RUN_PATH'
22067 ;;
22068
22069 uts4*)
22070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072 hardcode_shlibpath_var_GCJ=no
22073 ;;
22074
22075 *)
22076 ld_shlibs_GCJ=no
22077 ;;
22078 esac
22079 fi
22080
22081echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22082echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22083test "$ld_shlibs_GCJ" = no && can_build_shared=no
22084
22085variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22086if test "$GCC" = yes; then
22087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22088fi
22089
22090#
22091# Do we need to explicitly link libc?
22092#
22093case "x$archive_cmds_need_lc_GCJ" in
22094x|xyes)
22095 # Assume -lc should be added
22096 archive_cmds_need_lc_GCJ=yes
22097
22098 if test "$enable_shared" = yes && test "$GCC" = yes; then
22099 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022100 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022101 # FIXME: we may have to deal with multi-command sequences.
22102 ;;
22103 '$CC '*)
22104 # Test whether the compiler implicitly links with -lc since on some
22105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22106 # to ld, don't add -lc before -lgcc.
22107 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22108echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22109 $rm conftest*
22110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22111
22112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113 (eval $ac_compile) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } 2>conftest.err; then
22117 soname=conftest
22118 lib=conftest
22119 libobjs=conftest.$ac_objext
22120 deplibs=
22121 wl=$lt_prog_compiler_wl_GCJ
22122 compiler_flags=-v
22123 linker_flags=-v
22124 verstring=
22125 output_objdir=.
22126 libname=conftest
22127 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22128 allow_undefined_flag_GCJ=
22129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22130 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }
22134 then
22135 archive_cmds_need_lc_GCJ=no
22136 else
22137 archive_cmds_need_lc_GCJ=yes
22138 fi
22139 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22140 else
22141 cat conftest.err 1>&5
22142 fi
22143 $rm conftest*
22144 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22145echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22146 ;;
22147 esac
22148 fi
22149 ;;
22150esac
22151
John Criswell47fdd832003-07-14 16:52:07 +000022152echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22153echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22154library_names_spec=
22155libname_spec='lib$name'
22156soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022157shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022158postinstall_cmds=
22159postuninstall_cmds=
22160finish_cmds=
22161finish_eval=
22162shlibpath_var=
22163shlibpath_overrides_runpath=unknown
22164version_type=none
22165dynamic_linker="$host_os ld.so"
22166sys_lib_dlsearch_path_spec="/lib /usr/lib"
22167if test "$GCC" = yes; then
22168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22170 # if the path contains ";" then we assume it to be the separator
22171 # otherwise default to the standard path separator (i.e. ":") - it is
22172 # assumed that no part of a normal pathname contains ";" but that should
22173 # okay in the real world where ";" in dirpaths is itself problematic.
22174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22175 else
22176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22177 fi
22178else
22179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22180fi
22181need_lib_prefix=unknown
22182hardcode_into_libs=no
22183
22184# when you set need_version to no, make sure it does not cause -set_version
22185# flags to be left without arguments
22186need_version=unknown
22187
22188case $host_os in
22189aix3*)
22190 version_type=linux
22191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22192 shlibpath_var=LIBPATH
22193
22194 # AIX 3 has no versioning support, so we append a major version to the name.
22195 soname_spec='${libname}${release}${shared_ext}$major'
22196 ;;
22197
22198aix4* | aix5*)
22199 version_type=linux
22200 need_lib_prefix=no
22201 need_version=no
22202 hardcode_into_libs=yes
22203 if test "$host_cpu" = ia64; then
22204 # AIX 5 supports IA64
22205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22206 shlibpath_var=LD_LIBRARY_PATH
22207 else
22208 # With GCC up to 2.95.x, collect2 would create an import file
22209 # for dependence libraries. The import file would start with
22210 # the line `#! .'. This would cause the generated library to
22211 # depend on `.', always an invalid library. This was fixed in
22212 # development snapshots of GCC prior to 3.0.
22213 case $host_os in
22214 aix4 | aix4.[01] | aix4.[01].*)
22215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22216 echo ' yes '
22217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22218 :
22219 else
22220 can_build_shared=no
22221 fi
22222 ;;
22223 esac
22224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22225 # soname into executable. Probably we can add versioning support to
22226 # collect2, so additional links can be useful in future.
22227 if test "$aix_use_runtimelinking" = yes; then
22228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22229 # instead of lib<name>.a to let people know that these are not
22230 # typical AIX shared libraries.
22231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22232 else
22233 # We preserve .a as extension for shared libraries through AIX4.2
22234 # and later when we are not doing run time linking.
22235 library_names_spec='${libname}${release}.a $libname.a'
22236 soname_spec='${libname}${release}${shared_ext}$major'
22237 fi
22238 shlibpath_var=LIBPATH
22239 fi
22240 ;;
22241
22242amigaos*)
22243 library_names_spec='$libname.ixlibrary $libname.a'
22244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022245 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 +000022246 ;;
22247
22248beos*)
22249 library_names_spec='${libname}${shared_ext}'
22250 dynamic_linker="$host_os ld.so"
22251 shlibpath_var=LIBRARY_PATH
22252 ;;
22253
Reid Spencer2706f8c2004-09-19 23:53:36 +000022254bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022255 version_type=linux
22256 need_version=no
22257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22258 soname_spec='${libname}${release}${shared_ext}$major'
22259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22260 shlibpath_var=LD_LIBRARY_PATH
22261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22263 # the default ld.so.conf also contains /usr/contrib/lib and
22264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22265 # libtool to hard-code these into programs
22266 ;;
22267
22268cygwin* | mingw* | pw32*)
22269 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022270 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022271 need_version=no
22272 need_lib_prefix=no
22273
22274 case $GCC,$host_os in
22275 yes,cygwin* | yes,mingw* | yes,pw32*)
22276 library_names_spec='$libname.dll.a'
22277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022278 postinstall_cmds='base_file=`basename \${file}`~
22279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22280 dldir=$destdir/`dirname \$dlpath`~
22281 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022282 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22284 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022285 $rm \$dlpath'
22286 shlibpath_overrides_runpath=yes
22287
22288 case $host_os in
22289 cygwin*)
22290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22291 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 +000022292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022293 ;;
22294 mingw*)
22295 # MinGW DLLs use traditional 'lib' prefix
22296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22299 # It is most probably a Windows format PATH printed by
22300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22301 # path with ; separators, and with drive letters. We can handle the
22302 # drive letters (cygwin fileutils understands them), so leave them,
22303 # especially as we might pass files found there to a mingw objdump,
22304 # which wouldn't understand a cygwinified path. Ahh.
22305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22306 else
22307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22308 fi
22309 ;;
22310 pw32*)
22311 # pw32 DLLs use 'pw' prefix rather than 'lib'
22312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22313 ;;
22314 esac
22315 ;;
22316
22317 *)
22318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22319 ;;
22320 esac
22321 dynamic_linker='Win32 ld.exe'
22322 # FIXME: first we should search . and the directory the executable is in
22323 shlibpath_var=PATH
22324 ;;
22325
22326darwin* | rhapsody*)
22327 dynamic_linker="$host_os dyld"
22328 version_type=darwin
22329 need_lib_prefix=no
22330 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022331 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022332 soname_spec='${libname}${release}${major}$shared_ext'
22333 shlibpath_overrides_runpath=yes
22334 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022335 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022336 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022337 if test "$GCC" = yes; then
22338 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"`
22339 else
22340 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022341 fi
22342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22343 ;;
22344
22345dgux*)
22346 version_type=linux
22347 need_lib_prefix=no
22348 need_version=no
22349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22350 soname_spec='${libname}${release}${shared_ext}$major'
22351 shlibpath_var=LD_LIBRARY_PATH
22352 ;;
22353
22354freebsd1*)
22355 dynamic_linker=no
22356 ;;
22357
Reid Spencer2706f8c2004-09-19 23:53:36 +000022358kfreebsd*-gnu)
22359 version_type=linux
22360 need_lib_prefix=no
22361 need_version=no
22362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22363 soname_spec='${libname}${release}${shared_ext}$major'
22364 shlibpath_var=LD_LIBRARY_PATH
22365 shlibpath_overrides_runpath=no
22366 hardcode_into_libs=yes
22367 dynamic_linker='GNU ld.so'
22368 ;;
22369
John Criswell47fdd832003-07-14 16:52:07 +000022370freebsd*)
22371 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22372 version_type=freebsd-$objformat
22373 case $version_type in
22374 freebsd-elf*)
22375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22376 need_version=no
22377 need_lib_prefix=no
22378 ;;
22379 freebsd-*)
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22381 need_version=yes
22382 ;;
22383 esac
22384 shlibpath_var=LD_LIBRARY_PATH
22385 case $host_os in
22386 freebsd2*)
22387 shlibpath_overrides_runpath=yes
22388 ;;
22389 freebsd3.01* | freebsdelf3.01*)
22390 shlibpath_overrides_runpath=yes
22391 hardcode_into_libs=yes
22392 ;;
22393 *) # from 3.2 on
22394 shlibpath_overrides_runpath=no
22395 hardcode_into_libs=yes
22396 ;;
22397 esac
22398 ;;
22399
22400gnu*)
22401 version_type=linux
22402 need_lib_prefix=no
22403 need_version=no
22404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22405 soname_spec='${libname}${release}${shared_ext}$major'
22406 shlibpath_var=LD_LIBRARY_PATH
22407 hardcode_into_libs=yes
22408 ;;
22409
22410hpux9* | hpux10* | hpux11*)
22411 # Give a soname corresponding to the major version so that dld.sl refuses to
22412 # link against other versions.
22413 version_type=sunos
22414 need_lib_prefix=no
22415 need_version=no
22416 case "$host_cpu" in
22417 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022419 hardcode_into_libs=yes
22420 dynamic_linker="$host_os dld.so"
22421 shlibpath_var=LD_LIBRARY_PATH
22422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424 soname_spec='${libname}${release}${shared_ext}$major'
22425 if test "X$HPUX_IA64_MODE" = X32; then
22426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22427 else
22428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22429 fi
22430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22431 ;;
22432 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022433 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022434 hardcode_into_libs=yes
22435 dynamic_linker="$host_os dld.sl"
22436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22439 soname_spec='${libname}${release}${shared_ext}$major'
22440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22442 ;;
22443 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022444 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022445 dynamic_linker="$host_os dld.sl"
22446 shlibpath_var=SHLIB_PATH
22447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22449 soname_spec='${libname}${release}${shared_ext}$major'
22450 ;;
22451 esac
22452 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22453 postinstall_cmds='chmod 555 $lib'
22454 ;;
22455
22456irix5* | irix6* | nonstopux*)
22457 case $host_os in
22458 nonstopux*) version_type=nonstopux ;;
22459 *)
22460 if test "$lt_cv_prog_gnu_ld" = yes; then
22461 version_type=linux
22462 else
22463 version_type=irix
22464 fi ;;
22465 esac
22466 need_lib_prefix=no
22467 need_version=no
22468 soname_spec='${libname}${release}${shared_ext}$major'
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22470 case $host_os in
22471 irix5* | nonstopux*)
22472 libsuff= shlibsuff=
22473 ;;
22474 *)
22475 case $LD in # libtool.m4 will add one of these switches to LD
22476 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22477 libsuff= shlibsuff= libmagic=32-bit;;
22478 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22479 libsuff=32 shlibsuff=N32 libmagic=N32;;
22480 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22481 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22482 *) libsuff= shlibsuff= libmagic=never-match;;
22483 esac
22484 ;;
22485 esac
22486 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22487 shlibpath_overrides_runpath=no
22488 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22489 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22490 hardcode_into_libs=yes
22491 ;;
22492
22493# No shared lib support for Linux oldld, aout, or coff.
22494linux*oldld* | linux*aout* | linux*coff*)
22495 dynamic_linker=no
22496 ;;
22497
22498# This must be Linux ELF.
22499linux*)
22500 version_type=linux
22501 need_lib_prefix=no
22502 need_version=no
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22506 shlibpath_var=LD_LIBRARY_PATH
22507 shlibpath_overrides_runpath=no
22508 # This implies no fast_install, which is unacceptable.
22509 # Some rework will be needed to allow for fast_install
22510 # before this can be enabled.
22511 hardcode_into_libs=yes
22512
Reid Spencer2706f8c2004-09-19 23:53:36 +000022513 # Append ld.so.conf contents to the search path
22514 if test -f /etc/ld.so.conf; then
22515 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22517 fi
22518
John Criswell47fdd832003-07-14 16:52:07 +000022519 # We used to test for /lib/ld.so.1 and disable shared libraries on
22520 # powerpc, because MkLinux only supported shared libraries with the
22521 # GNU dynamic linker. Since this was broken with cross compilers,
22522 # most powerpc-linux boxes support dynamic linking these days and
22523 # people can always --disable-shared, the test was removed, and we
22524 # assume the GNU/Linux dynamic linker is in use.
22525 dynamic_linker='GNU/Linux ld.so'
22526 ;;
22527
Reid Spencer2706f8c2004-09-19 23:53:36 +000022528knetbsd*-gnu)
22529 version_type=linux
22530 need_lib_prefix=no
22531 need_version=no
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22533 soname_spec='${libname}${release}${shared_ext}$major'
22534 shlibpath_var=LD_LIBRARY_PATH
22535 shlibpath_overrides_runpath=no
22536 hardcode_into_libs=yes
22537 dynamic_linker='GNU ld.so'
22538 ;;
22539
John Criswell47fdd832003-07-14 16:52:07 +000022540netbsd*)
22541 version_type=sunos
22542 need_lib_prefix=no
22543 need_version=no
22544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22547 dynamic_linker='NetBSD (a.out) ld.so'
22548 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022550 soname_spec='${libname}${release}${shared_ext}$major'
22551 dynamic_linker='NetBSD ld.elf_so'
22552 fi
22553 shlibpath_var=LD_LIBRARY_PATH
22554 shlibpath_overrides_runpath=yes
22555 hardcode_into_libs=yes
22556 ;;
22557
22558newsos6)
22559 version_type=linux
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561 shlibpath_var=LD_LIBRARY_PATH
22562 shlibpath_overrides_runpath=yes
22563 ;;
22564
Reid Spencer2706f8c2004-09-19 23:53:36 +000022565nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022566 version_type=linux
22567 need_lib_prefix=no
22568 need_version=no
22569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22570 soname_spec='${libname}${release}${shared_ext}$major'
22571 shlibpath_var=LD_LIBRARY_PATH
22572 shlibpath_overrides_runpath=yes
22573 ;;
22574
22575openbsd*)
22576 version_type=sunos
22577 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022578 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22581 shlibpath_var=LD_LIBRARY_PATH
22582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22583 case $host_os in
22584 openbsd2.[89] | openbsd2.[89].*)
22585 shlibpath_overrides_runpath=no
22586 ;;
22587 *)
22588 shlibpath_overrides_runpath=yes
22589 ;;
22590 esac
22591 else
22592 shlibpath_overrides_runpath=yes
22593 fi
22594 ;;
22595
22596os2*)
22597 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022598 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022599 need_lib_prefix=no
22600 library_names_spec='$libname${shared_ext} $libname.a'
22601 dynamic_linker='OS/2 ld.exe'
22602 shlibpath_var=LIBPATH
22603 ;;
22604
22605osf3* | osf4* | osf5*)
22606 version_type=osf
22607 need_lib_prefix=no
22608 need_version=no
22609 soname_spec='${libname}${release}${shared_ext}$major'
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22614 ;;
22615
22616sco3.2v5*)
22617 version_type=osf
22618 soname_spec='${libname}${release}${shared_ext}$major'
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 shlibpath_var=LD_LIBRARY_PATH
22621 ;;
22622
22623solaris*)
22624 version_type=linux
22625 need_lib_prefix=no
22626 need_version=no
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath=yes
22631 hardcode_into_libs=yes
22632 # ldd complains unless libraries are executable
22633 postinstall_cmds='chmod +x $lib'
22634 ;;
22635
22636sunos4*)
22637 version_type=sunos
22638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22640 shlibpath_var=LD_LIBRARY_PATH
22641 shlibpath_overrides_runpath=yes
22642 if test "$with_gnu_ld" = yes; then
22643 need_lib_prefix=no
22644 fi
22645 need_version=yes
22646 ;;
22647
22648sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22649 version_type=linux
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 shlibpath_var=LD_LIBRARY_PATH
22653 case $host_vendor in
22654 sni)
22655 shlibpath_overrides_runpath=no
22656 need_lib_prefix=no
22657 export_dynamic_flag_spec='${wl}-Blargedynsym'
22658 runpath_var=LD_RUN_PATH
22659 ;;
22660 siemens)
22661 need_lib_prefix=no
22662 ;;
22663 motorola)
22664 need_lib_prefix=no
22665 need_version=no
22666 shlibpath_overrides_runpath=no
22667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22668 ;;
22669 esac
22670 ;;
22671
22672sysv4*MP*)
22673 if test -d /usr/nec ;then
22674 version_type=linux
22675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22676 soname_spec='$libname${shared_ext}.$major'
22677 shlibpath_var=LD_LIBRARY_PATH
22678 fi
22679 ;;
22680
22681uts4*)
22682 version_type=linux
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684 soname_spec='${libname}${release}${shared_ext}$major'
22685 shlibpath_var=LD_LIBRARY_PATH
22686 ;;
22687
22688*)
22689 dynamic_linker=no
22690 ;;
22691esac
22692echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22693echo "${ECHO_T}$dynamic_linker" >&6
22694test "$dynamic_linker" = no && can_build_shared=no
22695
Reid Spencer2706f8c2004-09-19 23:53:36 +000022696echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22697echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22698hardcode_action_GCJ=
22699if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22700 test -n "$runpath_var_GCJ" || \
22701 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22702
22703 # We can hardcode non-existant directories.
22704 if test "$hardcode_direct_GCJ" != no &&
22705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22706 # have to relink, otherwise we might link with an installed library
22707 # when we should be linking with a yet-to-be-installed one
22708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22709 test "$hardcode_minus_L_GCJ" != no; then
22710 # Linking always hardcodes the temporary library directory.
22711 hardcode_action_GCJ=relink
22712 else
22713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22714 hardcode_action_GCJ=immediate
22715 fi
22716else
22717 # We cannot hardcode anything, or else we can only hardcode existing
22718 # directories.
22719 hardcode_action_GCJ=unsupported
22720fi
22721echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22722echo "${ECHO_T}$hardcode_action_GCJ" >&6
22723
22724if test "$hardcode_action_GCJ" = relink; then
22725 # Fast installation is not supported
22726 enable_fast_install=no
22727elif test "$shlibpath_overrides_runpath" = yes ||
22728 test "$enable_shared" = no; then
22729 # Fast installation is not necessary
22730 enable_fast_install=needless
22731fi
22732
22733striplib=
22734old_striplib=
22735echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22736echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22737if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22740 echo "$as_me:$LINENO: result: yes" >&5
22741echo "${ECHO_T}yes" >&6
22742else
22743# FIXME - insert some real tests, host_os isn't really good enough
22744 case $host_os in
22745 darwin*)
22746 if test -n "$STRIP" ; then
22747 striplib="$STRIP -x"
22748 echo "$as_me:$LINENO: result: yes" >&5
22749echo "${ECHO_T}yes" >&6
22750 else
22751 echo "$as_me:$LINENO: result: no" >&5
22752echo "${ECHO_T}no" >&6
22753fi
22754 ;;
22755 *)
22756 echo "$as_me:$LINENO: result: no" >&5
22757echo "${ECHO_T}no" >&6
22758 ;;
22759 esac
22760fi
22761
John Criswell47fdd832003-07-14 16:52:07 +000022762if test "x$enable_dlopen" != xyes; then
22763 enable_dlopen=unknown
22764 enable_dlopen_self=unknown
22765 enable_dlopen_self_static=unknown
22766else
22767 lt_cv_dlopen=no
22768 lt_cv_dlopen_libs=
22769
22770 case $host_os in
22771 beos*)
22772 lt_cv_dlopen="load_add_on"
22773 lt_cv_dlopen_libs=
22774 lt_cv_dlopen_self=yes
22775 ;;
22776
22777 mingw* | pw32*)
22778 lt_cv_dlopen="LoadLibrary"
22779 lt_cv_dlopen_libs=
22780 ;;
22781
22782 cygwin*)
22783 lt_cv_dlopen="dlopen"
22784 lt_cv_dlopen_libs=
22785 ;;
22786
22787 darwin*)
22788 # if libdl is installed we need to link against it
22789 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22790echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22791if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793else
22794 ac_check_lib_save_LIBS=$LIBS
22795LIBS="-ldl $LIBS"
22796cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022797/* confdefs.h. */
22798_ACEOF
22799cat confdefs.h >>conftest.$ac_ext
22800cat >>conftest.$ac_ext <<_ACEOF
22801/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022802
22803/* Override any gcc2 internal prototype to avoid an error. */
22804#ifdef __cplusplus
22805extern "C"
22806#endif
22807/* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22809char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022810int
22811main ()
22812{
22813dlopen ();
22814 ;
22815 return 0;
22816}
22817_ACEOF
22818rm -f conftest.$ac_objext conftest$ac_exeext
22819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022820 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022821 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022827 { ac_try='test -z "$ac_c_werror_flag"
22828 || test ! -s conftest.err'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ac_cv_lib_dl_dlopen=yes
22841else
22842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022843sed 's/^/| /' conftest.$ac_ext >&5
22844
John Criswell47fdd832003-07-14 16:52:07 +000022845ac_cv_lib_dl_dlopen=no
22846fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022847rm -f conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022849LIBS=$ac_check_lib_save_LIBS
22850fi
22851echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22852echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22853if test $ac_cv_lib_dl_dlopen = yes; then
22854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22855else
22856
22857 lt_cv_dlopen="dyld"
22858 lt_cv_dlopen_libs=
22859 lt_cv_dlopen_self=yes
22860
22861fi
22862
22863 ;;
22864
22865 *)
22866 echo "$as_me:$LINENO: checking for shl_load" >&5
22867echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22868if test "${ac_cv_func_shl_load+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22870else
22871 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022872/* confdefs.h. */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022877/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22879#define shl_load innocuous_shl_load
22880
John Criswell47fdd832003-07-14 16:52:07 +000022881/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022882 which can conflict with char shl_load (); below.
22883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22884 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885
John Criswell0c38eaf2003-09-10 15:17:25 +000022886#ifdef __STDC__
22887# include <limits.h>
22888#else
22889# include <assert.h>
22890#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022891
22892#undef shl_load
22893
John Criswell47fdd832003-07-14 16:52:07 +000022894/* Override any gcc2 internal prototype to avoid an error. */
22895#ifdef __cplusplus
22896extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022897{
John Criswell47fdd832003-07-14 16:52:07 +000022898#endif
22899/* We use char because int might match the return type of a gcc2
22900 builtin and then its argument prototype would still apply. */
22901char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022902/* The GNU C library defines this for functions which it implements
22903 to always fail with ENOSYS. Some functions are actually named
22904 something starting with __ and the normal name is an alias. */
22905#if defined (__stub_shl_load) || defined (__stub___shl_load)
22906choke me
22907#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022908char (*f) () = shl_load;
22909#endif
22910#ifdef __cplusplus
22911}
John Criswell47fdd832003-07-14 16:52:07 +000022912#endif
22913
John Criswell0c38eaf2003-09-10 15:17:25 +000022914int
22915main ()
22916{
22917return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022918 ;
22919 return 0;
22920}
22921_ACEOF
22922rm -f conftest.$ac_objext conftest$ac_exeext
22923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022924 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022926 grep -v '^ *+' conftest.er1 >conftest.err
22927 rm -f conftest.er1
22928 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022931 { ac_try='test -z "$ac_c_werror_flag"
22932 || test ! -s conftest.err'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } &&
22938 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_func_shl_load=yes
22945else
22946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022947sed 's/^/| /' conftest.$ac_ext >&5
22948
John Criswell47fdd832003-07-14 16:52:07 +000022949ac_cv_func_shl_load=no
22950fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022951rm -f conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022953fi
22954echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22955echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22956if test $ac_cv_func_shl_load = yes; then
22957 lt_cv_dlopen="shl_load"
22958else
22959 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22960echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22961if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22963else
22964 ac_check_lib_save_LIBS=$LIBS
22965LIBS="-ldld $LIBS"
22966cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022972
22973/* Override any gcc2 internal prototype to avoid an error. */
22974#ifdef __cplusplus
22975extern "C"
22976#endif
22977/* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22979char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022980int
22981main ()
22982{
22983shl_load ();
22984 ;
22985 return 0;
22986}
22987_ACEOF
22988rm -f conftest.$ac_objext conftest$ac_exeext
22989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022990 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022997 { ac_try='test -z "$ac_c_werror_flag"
22998 || test ! -s conftest.err'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } &&
23004 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23007 ac_status=$?
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; }; then
23010 ac_cv_lib_dld_shl_load=yes
23011else
23012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023013sed 's/^/| /' conftest.$ac_ext >&5
23014
John Criswell47fdd832003-07-14 16:52:07 +000023015ac_cv_lib_dld_shl_load=no
23016fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017rm -f conftest.err conftest.$ac_objext \
23018 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023019LIBS=$ac_check_lib_save_LIBS
23020fi
23021echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23022echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23023if test $ac_cv_lib_dld_shl_load = yes; then
23024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23025else
23026 echo "$as_me:$LINENO: checking for dlopen" >&5
23027echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23028if test "${ac_cv_func_dlopen+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23030else
23031 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023032/* confdefs.h. */
23033_ACEOF
23034cat confdefs.h >>conftest.$ac_ext
23035cat >>conftest.$ac_ext <<_ACEOF
23036/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23039#define dlopen innocuous_dlopen
23040
John Criswell47fdd832003-07-14 16:52:07 +000023041/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023042 which can conflict with char dlopen (); below.
23043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023045
John Criswell0c38eaf2003-09-10 15:17:25 +000023046#ifdef __STDC__
23047# include <limits.h>
23048#else
23049# include <assert.h>
23050#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051
23052#undef dlopen
23053
John Criswell47fdd832003-07-14 16:52:07 +000023054/* Override any gcc2 internal prototype to avoid an error. */
23055#ifdef __cplusplus
23056extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023057{
John Criswell47fdd832003-07-14 16:52:07 +000023058#endif
23059/* We use char because int might match the return type of a gcc2
23060 builtin and then its argument prototype would still apply. */
23061char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023062/* The GNU C library defines this for functions which it implements
23063 to always fail with ENOSYS. Some functions are actually named
23064 something starting with __ and the normal name is an alias. */
23065#if defined (__stub_dlopen) || defined (__stub___dlopen)
23066choke me
23067#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023068char (*f) () = dlopen;
23069#endif
23070#ifdef __cplusplus
23071}
John Criswell47fdd832003-07-14 16:52:07 +000023072#endif
23073
John Criswell0c38eaf2003-09-10 15:17:25 +000023074int
23075main ()
23076{
23077return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023078 ;
23079 return 0;
23080}
23081_ACEOF
23082rm -f conftest.$ac_objext conftest$ac_exeext
23083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023084 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023086 grep -v '^ *+' conftest.er1 >conftest.err
23087 rm -f conftest.er1
23088 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023091 { ac_try='test -z "$ac_c_werror_flag"
23092 || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 ac_cv_func_dlopen=yes
23105else
23106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023107sed 's/^/| /' conftest.$ac_ext >&5
23108
John Criswell47fdd832003-07-14 16:52:07 +000023109ac_cv_func_dlopen=no
23110fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023111rm -f conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023113fi
23114echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23115echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23116if test $ac_cv_func_dlopen = yes; then
23117 lt_cv_dlopen="dlopen"
23118else
23119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123else
23124 ac_check_lib_save_LIBS=$LIBS
23125LIBS="-ldl $LIBS"
23126cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023127/* confdefs.h. */
23128_ACEOF
23129cat confdefs.h >>conftest.$ac_ext
23130cat >>conftest.$ac_ext <<_ACEOF
23131/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023132
23133/* Override any gcc2 internal prototype to avoid an error. */
23134#ifdef __cplusplus
23135extern "C"
23136#endif
23137/* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23139char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023140int
23141main ()
23142{
23143dlopen ();
23144 ;
23145 return 0;
23146}
23147_ACEOF
23148rm -f conftest.$ac_objext conftest$ac_exeext
23149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023150 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_lib_dl_dlopen=yes
23171else
23172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023173sed 's/^/| /' conftest.$ac_ext >&5
23174
John Criswell47fdd832003-07-14 16:52:07 +000023175ac_cv_lib_dl_dlopen=no
23176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023179LIBS=$ac_check_lib_save_LIBS
23180fi
23181echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183if test $ac_cv_lib_dl_dlopen = yes; then
23184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23185else
23186 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23187echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23188if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191 ac_check_lib_save_LIBS=$LIBS
23192LIBS="-lsvld $LIBS"
23193cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023194/* confdefs.h. */
23195_ACEOF
23196cat confdefs.h >>conftest.$ac_ext
23197cat >>conftest.$ac_ext <<_ACEOF
23198/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023199
23200/* Override any gcc2 internal prototype to avoid an error. */
23201#ifdef __cplusplus
23202extern "C"
23203#endif
23204/* We use char because int might match the return type of a gcc2
23205 builtin and then its argument prototype would still apply. */
23206char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023207int
23208main ()
23209{
23210dlopen ();
23211 ;
23212 return 0;
23213}
23214_ACEOF
23215rm -f conftest.$ac_objext conftest$ac_exeext
23216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023217 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_lib_svld_dlopen=yes
23238else
23239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023240sed 's/^/| /' conftest.$ac_ext >&5
23241
John Criswell47fdd832003-07-14 16:52:07 +000023242ac_cv_lib_svld_dlopen=no
23243fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023244rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023246LIBS=$ac_check_lib_save_LIBS
23247fi
23248echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23249echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23250if test $ac_cv_lib_svld_dlopen = yes; then
23251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23252else
23253 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23254echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23255if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257else
23258 ac_check_lib_save_LIBS=$LIBS
23259LIBS="-ldld $LIBS"
23260cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023261/* confdefs.h. */
23262_ACEOF
23263cat confdefs.h >>conftest.$ac_ext
23264cat >>conftest.$ac_ext <<_ACEOF
23265/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023266
23267/* Override any gcc2 internal prototype to avoid an error. */
23268#ifdef __cplusplus
23269extern "C"
23270#endif
23271/* We use char because int might match the return type of a gcc2
23272 builtin and then its argument prototype would still apply. */
23273char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023274int
23275main ()
23276{
23277dld_link ();
23278 ;
23279 return 0;
23280}
23281_ACEOF
23282rm -f conftest.$ac_objext conftest$ac_exeext
23283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023291 { ac_try='test -z "$ac_c_werror_flag"
23292 || test ! -s conftest.err'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_lib_dld_dld_link=yes
23305else
23306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023307sed 's/^/| /' conftest.$ac_ext >&5
23308
John Criswell47fdd832003-07-14 16:52:07 +000023309ac_cv_lib_dld_dld_link=no
23310fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023311rm -f conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023313LIBS=$ac_check_lib_save_LIBS
23314fi
23315echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23316echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23317if test $ac_cv_lib_dld_dld_link = yes; then
23318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23319fi
23320
23321
23322fi
23323
23324
23325fi
23326
23327
23328fi
23329
23330
23331fi
23332
23333
23334fi
23335
23336 ;;
23337 esac
23338
23339 if test "x$lt_cv_dlopen" != xno; then
23340 enable_dlopen=yes
23341 else
23342 enable_dlopen=no
23343 fi
23344
23345 case $lt_cv_dlopen in
23346 dlopen)
23347 save_CPPFLAGS="$CPPFLAGS"
23348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23349
23350 save_LDFLAGS="$LDFLAGS"
23351 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23352
23353 save_LIBS="$LIBS"
23354 LIBS="$lt_cv_dlopen_libs $LIBS"
23355
23356 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23357echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23358if test "${lt_cv_dlopen_self+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360else
23361 if test "$cross_compiling" = yes; then :
23362 lt_cv_dlopen_self=cross
23363else
23364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23365 lt_status=$lt_dlunknown
23366 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000023367#line 23367 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023368#include "confdefs.h"
23369
23370#if HAVE_DLFCN_H
23371#include <dlfcn.h>
23372#endif
23373
23374#include <stdio.h>
23375
23376#ifdef RTLD_GLOBAL
23377# define LT_DLGLOBAL RTLD_GLOBAL
23378#else
23379# ifdef DL_GLOBAL
23380# define LT_DLGLOBAL DL_GLOBAL
23381# else
23382# define LT_DLGLOBAL 0
23383# endif
23384#endif
23385
23386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23387 find out it does not work in some platform. */
23388#ifndef LT_DLLAZY_OR_NOW
23389# ifdef RTLD_LAZY
23390# define LT_DLLAZY_OR_NOW RTLD_LAZY
23391# else
23392# ifdef DL_LAZY
23393# define LT_DLLAZY_OR_NOW DL_LAZY
23394# else
23395# ifdef RTLD_NOW
23396# define LT_DLLAZY_OR_NOW RTLD_NOW
23397# else
23398# ifdef DL_NOW
23399# define LT_DLLAZY_OR_NOW DL_NOW
23400# else
23401# define LT_DLLAZY_OR_NOW 0
23402# endif
23403# endif
23404# endif
23405# endif
23406#endif
23407
23408#ifdef __cplusplus
23409extern "C" void exit (int);
23410#endif
23411
23412void fnord() { int i=42;}
23413int main ()
23414{
23415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23416 int status = $lt_dlunknown;
23417
23418 if (self)
23419 {
23420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23422 /* dlclose (self); */
23423 }
23424
23425 exit (status);
23426}
23427EOF
23428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429 (eval $ac_link) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23433 (./conftest; exit; ) 2>/dev/null
23434 lt_status=$?
23435 case x$lt_status in
23436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23438 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23439 esac
23440 else :
23441 # compilation failed
23442 lt_cv_dlopen_self=no
23443 fi
23444fi
23445rm -fr conftest*
23446
23447
23448fi
23449echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23450echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23451
23452 if test "x$lt_cv_dlopen_self" = xyes; then
23453 LDFLAGS="$LDFLAGS $link_static_flag"
23454 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23455echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23456if test "${lt_cv_dlopen_self_static+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23458else
23459 if test "$cross_compiling" = yes; then :
23460 lt_cv_dlopen_self_static=cross
23461else
23462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23463 lt_status=$lt_dlunknown
23464 cat > conftest.$ac_ext <<EOF
Reid Spencerca767402004-12-13 02:16:51 +000023465#line 23465 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023466#include "confdefs.h"
23467
23468#if HAVE_DLFCN_H
23469#include <dlfcn.h>
23470#endif
23471
23472#include <stdio.h>
23473
23474#ifdef RTLD_GLOBAL
23475# define LT_DLGLOBAL RTLD_GLOBAL
23476#else
23477# ifdef DL_GLOBAL
23478# define LT_DLGLOBAL DL_GLOBAL
23479# else
23480# define LT_DLGLOBAL 0
23481# endif
23482#endif
23483
23484/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23485 find out it does not work in some platform. */
23486#ifndef LT_DLLAZY_OR_NOW
23487# ifdef RTLD_LAZY
23488# define LT_DLLAZY_OR_NOW RTLD_LAZY
23489# else
23490# ifdef DL_LAZY
23491# define LT_DLLAZY_OR_NOW DL_LAZY
23492# else
23493# ifdef RTLD_NOW
23494# define LT_DLLAZY_OR_NOW RTLD_NOW
23495# else
23496# ifdef DL_NOW
23497# define LT_DLLAZY_OR_NOW DL_NOW
23498# else
23499# define LT_DLLAZY_OR_NOW 0
23500# endif
23501# endif
23502# endif
23503# endif
23504#endif
23505
23506#ifdef __cplusplus
23507extern "C" void exit (int);
23508#endif
23509
23510void fnord() { int i=42;}
23511int main ()
23512{
23513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23514 int status = $lt_dlunknown;
23515
23516 if (self)
23517 {
23518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23519 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23520 /* dlclose (self); */
23521 }
23522
23523 exit (status);
23524}
23525EOF
23526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527 (eval $ac_link) 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23531 (./conftest; exit; ) 2>/dev/null
23532 lt_status=$?
23533 case x$lt_status in
23534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23536 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23537 esac
23538 else :
23539 # compilation failed
23540 lt_cv_dlopen_self_static=no
23541 fi
23542fi
23543rm -fr conftest*
23544
23545
23546fi
23547echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23548echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23549 fi
23550
23551 CPPFLAGS="$save_CPPFLAGS"
23552 LDFLAGS="$save_LDFLAGS"
23553 LIBS="$save_LIBS"
23554 ;;
23555 esac
23556
23557 case $lt_cv_dlopen_self in
23558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23559 *) enable_dlopen_self=unknown ;;
23560 esac
23561
23562 case $lt_cv_dlopen_self_static in
23563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23564 *) enable_dlopen_self_static=unknown ;;
23565 esac
23566fi
23567
23568
23569# The else clause should only fire when bootstrapping the
23570# libtool distribution, otherwise you forgot to ship ltmain.sh
23571# with your package, and you will get complaints that there are
23572# no rules to generate ltmain.sh.
23573if test -f "$ltmain"; then
23574 # See if we are running on zsh, and set the options which allow our commands through
23575 # without removal of \ escapes.
23576 if test -n "${ZSH_VERSION+set}" ; then
23577 setopt NO_GLOB_SUBST
23578 fi
23579 # Now quote all the things that may contain metacharacters while being
23580 # careful not to overquote the AC_SUBSTed values. We take copies of the
23581 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23583 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23586 deplibs_check_method reload_flag reload_cmds need_locks \
23587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23588 lt_cv_sys_global_symbol_to_c_name_address \
23589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23590 old_postinstall_cmds old_postuninstall_cmds \
23591 compiler_GCJ \
23592 CC_GCJ \
23593 LD_GCJ \
23594 lt_prog_compiler_wl_GCJ \
23595 lt_prog_compiler_pic_GCJ \
23596 lt_prog_compiler_static_GCJ \
23597 lt_prog_compiler_no_builtin_flag_GCJ \
23598 export_dynamic_flag_spec_GCJ \
23599 thread_safe_flag_spec_GCJ \
23600 whole_archive_flag_spec_GCJ \
23601 enable_shared_with_static_runtimes_GCJ \
23602 old_archive_cmds_GCJ \
23603 old_archive_from_new_cmds_GCJ \
23604 predep_objects_GCJ \
23605 postdep_objects_GCJ \
23606 predeps_GCJ \
23607 postdeps_GCJ \
23608 compiler_lib_search_path_GCJ \
23609 archive_cmds_GCJ \
23610 archive_expsym_cmds_GCJ \
23611 postinstall_cmds_GCJ \
23612 postuninstall_cmds_GCJ \
23613 old_archive_from_expsyms_cmds_GCJ \
23614 allow_undefined_flag_GCJ \
23615 no_undefined_flag_GCJ \
23616 export_symbols_cmds_GCJ \
23617 hardcode_libdir_flag_spec_GCJ \
23618 hardcode_libdir_flag_spec_ld_GCJ \
23619 hardcode_libdir_separator_GCJ \
23620 hardcode_automatic_GCJ \
23621 module_cmds_GCJ \
23622 module_expsym_cmds_GCJ \
23623 lt_cv_prog_compiler_c_o_GCJ \
23624 exclude_expsyms_GCJ \
23625 include_expsyms_GCJ; do
23626
23627 case $var in
23628 old_archive_cmds_GCJ | \
23629 old_archive_from_new_cmds_GCJ | \
23630 archive_cmds_GCJ | \
23631 archive_expsym_cmds_GCJ | \
23632 module_cmds_GCJ | \
23633 module_expsym_cmds_GCJ | \
23634 old_archive_from_expsyms_cmds_GCJ | \
23635 export_symbols_cmds_GCJ | \
23636 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23637 postinstall_cmds | postuninstall_cmds | \
23638 old_postinstall_cmds | old_postuninstall_cmds | \
23639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23640 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023641 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 +000023642 ;;
23643 *)
23644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23645 ;;
23646 esac
23647 done
23648
23649 case $lt_echo in
23650 *'\$0 --fallback-echo"')
23651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23652 ;;
23653 esac
23654
23655cfgfile="$ofile"
23656
23657 cat <<__EOF__ >> "$cfgfile"
23658# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23659
23660# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23661
23662# Shell to use when invoking shell scripts.
23663SHELL=$lt_SHELL
23664
23665# Whether or not to build shared libraries.
23666build_libtool_libs=$enable_shared
23667
23668# Whether or not to build static libraries.
23669build_old_libs=$enable_static
23670
23671# Whether or not to add -lc for building shared libraries.
23672build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23673
23674# Whether or not to disallow shared libs when runtime libs are static
23675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23676
23677# Whether or not to optimize for fast installation.
23678fast_install=$enable_fast_install
23679
23680# The host system.
23681host_alias=$host_alias
23682host=$host
23683
23684# An echo program that does not interpret backslashes.
23685echo=$lt_echo
23686
23687# The archiver.
23688AR=$lt_AR
23689AR_FLAGS=$lt_AR_FLAGS
23690
23691# A C compiler.
23692LTCC=$lt_LTCC
23693
23694# A language-specific compiler.
23695CC=$lt_compiler_GCJ
23696
23697# Is the compiler the GNU C compiler?
23698with_gcc=$GCC_GCJ
23699
23700# An ERE matcher.
23701EGREP=$lt_EGREP
23702
23703# The linker used to build libraries.
23704LD=$lt_LD_GCJ
23705
23706# Whether we need hard or soft links.
23707LN_S=$lt_LN_S
23708
23709# A BSD-compatible nm program.
23710NM=$lt_NM
23711
23712# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023713STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023714
23715# Used to examine libraries when file_magic_cmd begins "file"
23716MAGIC_CMD=$MAGIC_CMD
23717
23718# Used on cygwin: DLL creation program.
23719DLLTOOL="$DLLTOOL"
23720
23721# Used on cygwin: object dumper.
23722OBJDUMP="$OBJDUMP"
23723
23724# Used on cygwin: assembler.
23725AS="$AS"
23726
23727# The name of the directory that contains temporary libtool files.
23728objdir=$objdir
23729
23730# How to create reloadable object files.
23731reload_flag=$lt_reload_flag
23732reload_cmds=$lt_reload_cmds
23733
23734# How to pass a linker flag through the compiler.
23735wl=$lt_lt_prog_compiler_wl_GCJ
23736
23737# Object file suffix (normally "o").
23738objext="$ac_objext"
23739
23740# Old archive suffix (normally "a").
23741libext="$libext"
23742
23743# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023744shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023745
23746# Executable file suffix (normally "").
23747exeext="$exeext"
23748
23749# Additional compiler flags for building library objects.
23750pic_flag=$lt_lt_prog_compiler_pic_GCJ
23751pic_mode=$pic_mode
23752
23753# What is the maximum length of a command?
23754max_cmd_len=$lt_cv_sys_max_cmd_len
23755
23756# Does compiler simultaneously support -c and -o options?
23757compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23758
23759# Must we lock files when doing compilation ?
23760need_locks=$lt_need_locks
23761
23762# Do we need the lib prefix for modules?
23763need_lib_prefix=$need_lib_prefix
23764
23765# Do we need a version for libraries?
23766need_version=$need_version
23767
23768# Whether dlopen is supported.
23769dlopen_support=$enable_dlopen
23770
23771# Whether dlopen of programs is supported.
23772dlopen_self=$enable_dlopen_self
23773
23774# Whether dlopen of statically linked programs is supported.
23775dlopen_self_static=$enable_dlopen_self_static
23776
23777# Compiler flag to prevent dynamic linking.
23778link_static_flag=$lt_lt_prog_compiler_static_GCJ
23779
23780# Compiler flag to turn off builtin functions.
23781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23782
23783# Compiler flag to allow reflexive dlopens.
23784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23785
23786# Compiler flag to generate shared objects directly from archives.
23787whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23788
23789# Compiler flag to generate thread-safe objects.
23790thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23791
23792# Library versioning type.
23793version_type=$version_type
23794
23795# Format of library name prefix.
23796libname_spec=$lt_libname_spec
23797
23798# List of archive names. First name is the real one, the rest are links.
23799# The last name is the one that the linker finds with -lNAME.
23800library_names_spec=$lt_library_names_spec
23801
23802# The coded name of the library, if different from the real name.
23803soname_spec=$lt_soname_spec
23804
23805# Commands used to build and install an old-style archive.
23806RANLIB=$lt_RANLIB
23807old_archive_cmds=$lt_old_archive_cmds_GCJ
23808old_postinstall_cmds=$lt_old_postinstall_cmds
23809old_postuninstall_cmds=$lt_old_postuninstall_cmds
23810
23811# Create an old-style archive from a shared archive.
23812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23813
23814# Create a temporary old-style archive to link instead of a shared archive.
23815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23816
23817# Commands used to build and install a shared archive.
23818archive_cmds=$lt_archive_cmds_GCJ
23819archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23820postinstall_cmds=$lt_postinstall_cmds
23821postuninstall_cmds=$lt_postuninstall_cmds
23822
23823# Commands used to build a loadable module (assumed same as above if empty)
23824module_cmds=$lt_module_cmds_GCJ
23825module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23826
23827# Commands to strip libraries.
23828old_striplib=$lt_old_striplib
23829striplib=$lt_striplib
23830
23831# Dependencies to place before the objects being linked to create a
23832# shared library.
23833predep_objects=$lt_predep_objects_GCJ
23834
23835# Dependencies to place after the objects being linked to create a
23836# shared library.
23837postdep_objects=$lt_postdep_objects_GCJ
23838
23839# Dependencies to place before the objects being linked to create a
23840# shared library.
23841predeps=$lt_predeps_GCJ
23842
23843# Dependencies to place after the objects being linked to create a
23844# shared library.
23845postdeps=$lt_postdeps_GCJ
23846
23847# The library search path used internally by the compiler when linking
23848# a shared library.
23849compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23850
23851# Method to check whether dependent libraries are shared objects.
23852deplibs_check_method=$lt_deplibs_check_method
23853
23854# Command to use when deplibs_check_method == file_magic.
23855file_magic_cmd=$lt_file_magic_cmd
23856
23857# Flag that allows shared libraries with undefined symbols to be built.
23858allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23859
23860# Flag that forces no undefined symbols.
23861no_undefined_flag=$lt_no_undefined_flag_GCJ
23862
23863# Commands used to finish a libtool library installation in a directory.
23864finish_cmds=$lt_finish_cmds
23865
23866# Same as above, but a single script fragment to be evaled but not shown.
23867finish_eval=$lt_finish_eval
23868
23869# Take the output of nm and produce a listing of raw symbols and C names.
23870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23871
23872# Transform the output of nm in a proper C declaration
23873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23874
23875# Transform the output of nm in a C name address pair
23876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23877
23878# This is the shared library runtime path variable.
23879runpath_var=$runpath_var
23880
23881# This is the shared library path variable.
23882shlibpath_var=$shlibpath_var
23883
23884# Is shlibpath searched before the hard-coded library search path?
23885shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23886
23887# How to hardcode a shared library path into an executable.
23888hardcode_action=$hardcode_action_GCJ
23889
23890# Whether we should hardcode library paths into libraries.
23891hardcode_into_libs=$hardcode_into_libs
23892
23893# Flag to hardcode \$libdir into a binary during linking.
23894# This must work even if \$libdir does not exist.
23895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23896
23897# If ld is used when linking, flag to hardcode \$libdir into
23898# a binary during linking. This must work even if \$libdir does
23899# not exist.
23900hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23901
23902# Whether we need a single -rpath flag with a separated argument.
23903hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23904
23905# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23906# resulting binary.
23907hardcode_direct=$hardcode_direct_GCJ
23908
23909# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23910# resulting binary.
23911hardcode_minus_L=$hardcode_minus_L_GCJ
23912
23913# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23914# the resulting binary.
23915hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23916
23917# Set to yes if building a shared library automatically hardcodes DIR into the library
23918# and all subsequent libraries and executables linked against it.
23919hardcode_automatic=$hardcode_automatic_GCJ
23920
23921# Variables whose values should be saved in libtool wrapper scripts and
23922# restored at relink time.
23923variables_saved_for_relink="$variables_saved_for_relink"
23924
23925# Whether libtool must link a program against all its dependency libraries.
23926link_all_deplibs=$link_all_deplibs_GCJ
23927
23928# Compile-time system search path for libraries
23929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23930
23931# Run-time system search path for libraries
23932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23933
23934# Fix the shell variable \$srcfile for the compiler.
23935fix_srcfile_path="$fix_srcfile_path_GCJ"
23936
23937# Set to yes if exported symbols are required.
23938always_export_symbols=$always_export_symbols_GCJ
23939
23940# The commands to list exported symbols.
23941export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23942
23943# The commands to extract the exported symbol list from a shared archive.
23944extract_expsyms_cmds=$lt_extract_expsyms_cmds
23945
23946# Symbols that should not be listed in the preloaded symbols.
23947exclude_expsyms=$lt_exclude_expsyms_GCJ
23948
23949# Symbols that must always be exported.
23950include_expsyms=$lt_include_expsyms_GCJ
23951
23952# ### END LIBTOOL TAG CONFIG: $tagname
23953
23954__EOF__
23955
23956
23957else
23958 # If there is no Makefile yet, we rely on a make rule to execute
23959 # `config.status --recheck' to rerun these tests and create the
23960 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23962 if test -f "$ltmain_in"; then
23963 test -f Makefile && make "$ltmain"
23964 fi
John Criswell47fdd832003-07-14 16:52:07 +000023965fi
23966
23967
23968ac_ext=c
23969ac_cpp='$CPP $CPPFLAGS'
23970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23972ac_compiler_gnu=$ac_cv_c_compiler_gnu
23973
23974CC="$lt_save_CC"
23975
23976 else
23977 tagname=""
23978 fi
23979 ;;
23980
23981 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023982 ac_ext=c
23983ac_cpp='$CPP $CPPFLAGS'
23984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23986ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023987
23988
23989# Source file extension for RC test sources.
23990ac_ext=rc
23991
23992# Object file extension for compiled RC test sources.
23993objext=o
23994objext_RC=$objext
23995
23996# Code to be used in simple compile tests
23997lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23998
23999# Code to be used in simple link tests
24000lt_simple_link_test_code="$lt_simple_compile_test_code"
24001
24002# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24003
24004# If no C compiler was specified, use CC.
24005LTCC=${LTCC-"$CC"}
24006
24007# Allow CC to be a program name with arguments.
24008compiler=$CC
24009
24010
24011# Allow CC to be a program name with arguments.
24012lt_save_CC="$CC"
24013CC=${RC-"windres"}
24014compiler=$CC
24015compiler_RC=$CC
24016lt_cv_prog_compiler_c_o_RC=yes
24017
24018# The else clause should only fire when bootstrapping the
24019# libtool distribution, otherwise you forgot to ship ltmain.sh
24020# with your package, and you will get complaints that there are
24021# no rules to generate ltmain.sh.
24022if test -f "$ltmain"; then
24023 # See if we are running on zsh, and set the options which allow our commands through
24024 # without removal of \ escapes.
24025 if test -n "${ZSH_VERSION+set}" ; then
24026 setopt NO_GLOB_SUBST
24027 fi
24028 # Now quote all the things that may contain metacharacters while being
24029 # careful not to overquote the AC_SUBSTed values. We take copies of the
24030 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24032 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24035 deplibs_check_method reload_flag reload_cmds need_locks \
24036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24037 lt_cv_sys_global_symbol_to_c_name_address \
24038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24039 old_postinstall_cmds old_postuninstall_cmds \
24040 compiler_RC \
24041 CC_RC \
24042 LD_RC \
24043 lt_prog_compiler_wl_RC \
24044 lt_prog_compiler_pic_RC \
24045 lt_prog_compiler_static_RC \
24046 lt_prog_compiler_no_builtin_flag_RC \
24047 export_dynamic_flag_spec_RC \
24048 thread_safe_flag_spec_RC \
24049 whole_archive_flag_spec_RC \
24050 enable_shared_with_static_runtimes_RC \
24051 old_archive_cmds_RC \
24052 old_archive_from_new_cmds_RC \
24053 predep_objects_RC \
24054 postdep_objects_RC \
24055 predeps_RC \
24056 postdeps_RC \
24057 compiler_lib_search_path_RC \
24058 archive_cmds_RC \
24059 archive_expsym_cmds_RC \
24060 postinstall_cmds_RC \
24061 postuninstall_cmds_RC \
24062 old_archive_from_expsyms_cmds_RC \
24063 allow_undefined_flag_RC \
24064 no_undefined_flag_RC \
24065 export_symbols_cmds_RC \
24066 hardcode_libdir_flag_spec_RC \
24067 hardcode_libdir_flag_spec_ld_RC \
24068 hardcode_libdir_separator_RC \
24069 hardcode_automatic_RC \
24070 module_cmds_RC \
24071 module_expsym_cmds_RC \
24072 lt_cv_prog_compiler_c_o_RC \
24073 exclude_expsyms_RC \
24074 include_expsyms_RC; do
24075
24076 case $var in
24077 old_archive_cmds_RC | \
24078 old_archive_from_new_cmds_RC | \
24079 archive_cmds_RC | \
24080 archive_expsym_cmds_RC | \
24081 module_cmds_RC | \
24082 module_expsym_cmds_RC | \
24083 old_archive_from_expsyms_cmds_RC | \
24084 export_symbols_cmds_RC | \
24085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24086 postinstall_cmds | postuninstall_cmds | \
24087 old_postinstall_cmds | old_postuninstall_cmds | \
24088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24089 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024090 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 +000024091 ;;
24092 *)
24093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24094 ;;
24095 esac
24096 done
24097
24098 case $lt_echo in
24099 *'\$0 --fallback-echo"')
24100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24101 ;;
24102 esac
24103
24104cfgfile="$ofile"
24105
24106 cat <<__EOF__ >> "$cfgfile"
24107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24108
24109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24110
24111# Shell to use when invoking shell scripts.
24112SHELL=$lt_SHELL
24113
24114# Whether or not to build shared libraries.
24115build_libtool_libs=$enable_shared
24116
24117# Whether or not to build static libraries.
24118build_old_libs=$enable_static
24119
24120# Whether or not to add -lc for building shared libraries.
24121build_libtool_need_lc=$archive_cmds_need_lc_RC
24122
24123# Whether or not to disallow shared libs when runtime libs are static
24124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24125
24126# Whether or not to optimize for fast installation.
24127fast_install=$enable_fast_install
24128
24129# The host system.
24130host_alias=$host_alias
24131host=$host
24132
24133# An echo program that does not interpret backslashes.
24134echo=$lt_echo
24135
24136# The archiver.
24137AR=$lt_AR
24138AR_FLAGS=$lt_AR_FLAGS
24139
24140# A C compiler.
24141LTCC=$lt_LTCC
24142
24143# A language-specific compiler.
24144CC=$lt_compiler_RC
24145
24146# Is the compiler the GNU C compiler?
24147with_gcc=$GCC_RC
24148
24149# An ERE matcher.
24150EGREP=$lt_EGREP
24151
24152# The linker used to build libraries.
24153LD=$lt_LD_RC
24154
24155# Whether we need hard or soft links.
24156LN_S=$lt_LN_S
24157
24158# A BSD-compatible nm program.
24159NM=$lt_NM
24160
24161# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024162STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024163
24164# Used to examine libraries when file_magic_cmd begins "file"
24165MAGIC_CMD=$MAGIC_CMD
24166
24167# Used on cygwin: DLL creation program.
24168DLLTOOL="$DLLTOOL"
24169
24170# Used on cygwin: object dumper.
24171OBJDUMP="$OBJDUMP"
24172
24173# Used on cygwin: assembler.
24174AS="$AS"
24175
24176# The name of the directory that contains temporary libtool files.
24177objdir=$objdir
24178
24179# How to create reloadable object files.
24180reload_flag=$lt_reload_flag
24181reload_cmds=$lt_reload_cmds
24182
24183# How to pass a linker flag through the compiler.
24184wl=$lt_lt_prog_compiler_wl_RC
24185
24186# Object file suffix (normally "o").
24187objext="$ac_objext"
24188
24189# Old archive suffix (normally "a").
24190libext="$libext"
24191
24192# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024193shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024194
24195# Executable file suffix (normally "").
24196exeext="$exeext"
24197
24198# Additional compiler flags for building library objects.
24199pic_flag=$lt_lt_prog_compiler_pic_RC
24200pic_mode=$pic_mode
24201
24202# What is the maximum length of a command?
24203max_cmd_len=$lt_cv_sys_max_cmd_len
24204
24205# Does compiler simultaneously support -c and -o options?
24206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24207
24208# Must we lock files when doing compilation ?
24209need_locks=$lt_need_locks
24210
24211# Do we need the lib prefix for modules?
24212need_lib_prefix=$need_lib_prefix
24213
24214# Do we need a version for libraries?
24215need_version=$need_version
24216
24217# Whether dlopen is supported.
24218dlopen_support=$enable_dlopen
24219
24220# Whether dlopen of programs is supported.
24221dlopen_self=$enable_dlopen_self
24222
24223# Whether dlopen of statically linked programs is supported.
24224dlopen_self_static=$enable_dlopen_self_static
24225
24226# Compiler flag to prevent dynamic linking.
24227link_static_flag=$lt_lt_prog_compiler_static_RC
24228
24229# Compiler flag to turn off builtin functions.
24230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24231
24232# Compiler flag to allow reflexive dlopens.
24233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24234
24235# Compiler flag to generate shared objects directly from archives.
24236whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24237
24238# Compiler flag to generate thread-safe objects.
24239thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24240
24241# Library versioning type.
24242version_type=$version_type
24243
24244# Format of library name prefix.
24245libname_spec=$lt_libname_spec
24246
24247# List of archive names. First name is the real one, the rest are links.
24248# The last name is the one that the linker finds with -lNAME.
24249library_names_spec=$lt_library_names_spec
24250
24251# The coded name of the library, if different from the real name.
24252soname_spec=$lt_soname_spec
24253
24254# Commands used to build and install an old-style archive.
24255RANLIB=$lt_RANLIB
24256old_archive_cmds=$lt_old_archive_cmds_RC
24257old_postinstall_cmds=$lt_old_postinstall_cmds
24258old_postuninstall_cmds=$lt_old_postuninstall_cmds
24259
24260# Create an old-style archive from a shared archive.
24261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24262
24263# Create a temporary old-style archive to link instead of a shared archive.
24264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24265
24266# Commands used to build and install a shared archive.
24267archive_cmds=$lt_archive_cmds_RC
24268archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24269postinstall_cmds=$lt_postinstall_cmds
24270postuninstall_cmds=$lt_postuninstall_cmds
24271
24272# Commands used to build a loadable module (assumed same as above if empty)
24273module_cmds=$lt_module_cmds_RC
24274module_expsym_cmds=$lt_module_expsym_cmds_RC
24275
24276# Commands to strip libraries.
24277old_striplib=$lt_old_striplib
24278striplib=$lt_striplib
24279
24280# Dependencies to place before the objects being linked to create a
24281# shared library.
24282predep_objects=$lt_predep_objects_RC
24283
24284# Dependencies to place after the objects being linked to create a
24285# shared library.
24286postdep_objects=$lt_postdep_objects_RC
24287
24288# Dependencies to place before the objects being linked to create a
24289# shared library.
24290predeps=$lt_predeps_RC
24291
24292# Dependencies to place after the objects being linked to create a
24293# shared library.
24294postdeps=$lt_postdeps_RC
24295
24296# The library search path used internally by the compiler when linking
24297# a shared library.
24298compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24299
24300# Method to check whether dependent libraries are shared objects.
24301deplibs_check_method=$lt_deplibs_check_method
24302
24303# Command to use when deplibs_check_method == file_magic.
24304file_magic_cmd=$lt_file_magic_cmd
24305
24306# Flag that allows shared libraries with undefined symbols to be built.
24307allow_undefined_flag=$lt_allow_undefined_flag_RC
24308
24309# Flag that forces no undefined symbols.
24310no_undefined_flag=$lt_no_undefined_flag_RC
24311
24312# Commands used to finish a libtool library installation in a directory.
24313finish_cmds=$lt_finish_cmds
24314
24315# Same as above, but a single script fragment to be evaled but not shown.
24316finish_eval=$lt_finish_eval
24317
24318# Take the output of nm and produce a listing of raw symbols and C names.
24319global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24320
24321# Transform the output of nm in a proper C declaration
24322global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24323
24324# Transform the output of nm in a C name address pair
24325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24326
24327# This is the shared library runtime path variable.
24328runpath_var=$runpath_var
24329
24330# This is the shared library path variable.
24331shlibpath_var=$shlibpath_var
24332
24333# Is shlibpath searched before the hard-coded library search path?
24334shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24335
24336# How to hardcode a shared library path into an executable.
24337hardcode_action=$hardcode_action_RC
24338
24339# Whether we should hardcode library paths into libraries.
24340hardcode_into_libs=$hardcode_into_libs
24341
24342# Flag to hardcode \$libdir into a binary during linking.
24343# This must work even if \$libdir does not exist.
24344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24345
24346# If ld is used when linking, flag to hardcode \$libdir into
24347# a binary during linking. This must work even if \$libdir does
24348# not exist.
24349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24350
24351# Whether we need a single -rpath flag with a separated argument.
24352hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24353
24354# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24355# resulting binary.
24356hardcode_direct=$hardcode_direct_RC
24357
24358# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24359# resulting binary.
24360hardcode_minus_L=$hardcode_minus_L_RC
24361
24362# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24363# the resulting binary.
24364hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24365
24366# Set to yes if building a shared library automatically hardcodes DIR into the library
24367# and all subsequent libraries and executables linked against it.
24368hardcode_automatic=$hardcode_automatic_RC
24369
24370# Variables whose values should be saved in libtool wrapper scripts and
24371# restored at relink time.
24372variables_saved_for_relink="$variables_saved_for_relink"
24373
24374# Whether libtool must link a program against all its dependency libraries.
24375link_all_deplibs=$link_all_deplibs_RC
24376
24377# Compile-time system search path for libraries
24378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24379
24380# Run-time system search path for libraries
24381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24382
24383# Fix the shell variable \$srcfile for the compiler.
24384fix_srcfile_path="$fix_srcfile_path_RC"
24385
24386# Set to yes if exported symbols are required.
24387always_export_symbols=$always_export_symbols_RC
24388
24389# The commands to list exported symbols.
24390export_symbols_cmds=$lt_export_symbols_cmds_RC
24391
24392# The commands to extract the exported symbol list from a shared archive.
24393extract_expsyms_cmds=$lt_extract_expsyms_cmds
24394
24395# Symbols that should not be listed in the preloaded symbols.
24396exclude_expsyms=$lt_exclude_expsyms_RC
24397
24398# Symbols that must always be exported.
24399include_expsyms=$lt_include_expsyms_RC
24400
24401# ### END LIBTOOL TAG CONFIG: $tagname
24402
24403__EOF__
24404
24405
24406else
24407 # If there is no Makefile yet, we rely on a make rule to execute
24408 # `config.status --recheck' to rerun these tests and create the
24409 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024410 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24411 if test -f "$ltmain_in"; then
24412 test -f Makefile && make "$ltmain"
24413 fi
John Criswell47fdd832003-07-14 16:52:07 +000024414fi
24415
24416
24417ac_ext=c
24418ac_cpp='$CPP $CPPFLAGS'
24419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24421ac_compiler_gnu=$ac_cv_c_compiler_gnu
24422
24423CC="$lt_save_CC"
24424
24425 ;;
24426
24427 *)
24428 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24429echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24430 { (exit 1); exit 1; }; }
24431 ;;
24432 esac
24433
24434 # Append the new tag name to the list of available tags.
24435 if test -n "$tagname" ; then
24436 available_tags="$available_tags $tagname"
24437 fi
24438 fi
24439 done
24440 IFS="$lt_save_ifs"
24441
24442 # Now substitute the updated list of available tags.
24443 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24444 mv "${ofile}T" "$ofile"
24445 chmod +x "$ofile"
24446 else
24447 rm -f "${ofile}T"
24448 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24449echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24450 { (exit 1); exit 1; }; }
24451 fi
24452fi
John Criswell7a73b802003-06-30 21:59:07 +000024453
24454
24455
24456# This can be used to rebuild libtool when needed
24457LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24458
24459# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024460LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024461
24462# Prevent multiple expansion
24463
24464
24465
John Criswell47fdd832003-07-14 16:52:07 +000024466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024483
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024484etags_version=`$ETAGS --version 2>&1`
24485case "$etags_version" in
24486 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24487 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24488 *) ETAGSFLAGS="" ;;
24489esac
24490ETAGSFLAGS=$ETAGSFLAGS
24491
24492
24493echo "$as_me:$LINENO: checking tool compatibility" >&5
24494echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24495
Reid Spencer86901802004-12-08 23:07:27 +000024496ICC=no
24497IXX=no
24498case $CC in
24499 icc*|icpc*)
24500 ICC=yes
24501 IXX=yes
24502 ;;
24503 *)
24504 ;;
24505esac
24506
24507if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024508then
Reid Spencer86901802004-12-08 23:07:27 +000024509 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24510echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024511 { (exit 1); exit 1; }; }
24512fi
24513
Reid Spencer86901802004-12-08 23:07:27 +000024514if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024515then
Reid Spencer86901802004-12-08 23:07:27 +000024516 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24517echo "$as_me: error: g++|icc required but not found" >&2;}
24518 { (exit 1); exit 1; }; }
24519fi
24520
24521if test "$GCC" = "yes"
24522then
24523 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24524 if test "$gccmajor" -lt "3"
24525 then
24526 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024527echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24528 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024529 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024530fi
24531
24532if test -z "$llvm_cv_gnu_make_command"
24533then
24534 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24535echo "$as_me: error: GNU Make required but not found" >&2;}
24536 { (exit 1); exit 1; }; }
24537fi
24538
24539echo "$as_me:$LINENO: result: ok" >&5
24540echo "${ECHO_T}ok" >&6
24541
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024542
John Criswell7a73b802003-06-30 21:59:07 +000024543
John Criswell7a73b802003-06-30 21:59:07 +000024544echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24545echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24546if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24548else
24549 ac_check_lib_save_LIBS=$LIBS
24550LIBS="-lelf $LIBS"
24551cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024552/* confdefs.h. */
24553_ACEOF
24554cat confdefs.h >>conftest.$ac_ext
24555cat >>conftest.$ac_ext <<_ACEOF
24556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024557
24558/* Override any gcc2 internal prototype to avoid an error. */
24559#ifdef __cplusplus
24560extern "C"
24561#endif
24562/* We use char because int might match the return type of a gcc2
24563 builtin and then its argument prototype would still apply. */
24564char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024565int
24566main ()
24567{
24568elf_begin ();
24569 ;
24570 return 0;
24571}
24572_ACEOF
24573rm -f conftest.$ac_objext conftest$ac_exeext
24574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024575 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024577 grep -v '^ *+' conftest.er1 >conftest.err
24578 rm -f conftest.er1
24579 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024582 { ac_try='test -z "$ac_c_werror_flag"
24583 || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_lib_elf_elf_begin=yes
24596else
24597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024598sed 's/^/| /' conftest.$ac_ext >&5
24599
John Criswell7a73b802003-06-30 21:59:07 +000024600ac_cv_lib_elf_elf_begin=no
24601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024602rm -f conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024604LIBS=$ac_check_lib_save_LIBS
24605fi
24606echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24607echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24608if test $ac_cv_lib_elf_elf_begin = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610#define HAVE_LIBELF 1
24611_ACEOF
24612
24613 LIBS="-lelf $LIBS"
24614
24615fi
24616
24617
Reid Spencer17795972004-11-18 09:47:37 +000024618echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24619echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24620if test "${ac_cv_search_lt_dlopen+set}" = set; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24622else
24623 ac_func_search_save_LIBS=$LIBS
24624ac_cv_search_lt_dlopen=no
24625cat >conftest.$ac_ext <<_ACEOF
24626/* confdefs.h. */
24627_ACEOF
24628cat confdefs.h >>conftest.$ac_ext
24629cat >>conftest.$ac_ext <<_ACEOF
24630/* end confdefs.h. */
24631
24632/* Override any gcc2 internal prototype to avoid an error. */
24633#ifdef __cplusplus
24634extern "C"
24635#endif
24636/* We use char because int might match the return type of a gcc2
24637 builtin and then its argument prototype would still apply. */
24638char lt_dlopen ();
24639int
24640main ()
24641{
24642lt_dlopen ();
24643 ;
24644 return 0;
24645}
24646_ACEOF
24647rm -f conftest.$ac_objext conftest$ac_exeext
24648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24649 (eval $ac_link) 2>conftest.er1
24650 ac_status=$?
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
24656 { ac_try='test -z "$ac_c_werror_flag"
24657 || test ! -s conftest.err'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; } &&
24663 { ac_try='test -s conftest$ac_exeext'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; }; then
24669 ac_cv_search_lt_dlopen="none required"
24670else
24671 echo "$as_me: failed program was:" >&5
24672sed 's/^/| /' conftest.$ac_ext >&5
24673
24674fi
24675rm -f conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
24677if test "$ac_cv_search_lt_dlopen" = no; then
24678 for ac_lib in ltdl; do
24679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24680 cat >conftest.$ac_ext <<_ACEOF
24681/* confdefs.h. */
24682_ACEOF
24683cat confdefs.h >>conftest.$ac_ext
24684cat >>conftest.$ac_ext <<_ACEOF
24685/* end confdefs.h. */
24686
24687/* Override any gcc2 internal prototype to avoid an error. */
24688#ifdef __cplusplus
24689extern "C"
24690#endif
24691/* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24693char lt_dlopen ();
24694int
24695main ()
24696{
24697lt_dlopen ();
24698 ;
24699 return 0;
24700}
24701_ACEOF
24702rm -f conftest.$ac_objext conftest$ac_exeext
24703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24704 (eval $ac_link) 2>conftest.er1
24705 ac_status=$?
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
24711 { ac_try='test -z "$ac_c_werror_flag"
24712 || test ! -s conftest.err'
24713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); }; } &&
24718 { ac_try='test -s conftest$ac_exeext'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24721 ac_status=$?
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; }; then
24724 ac_cv_search_lt_dlopen="-l$ac_lib"
24725break
24726else
24727 echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730fi
24731rm -f conftest.err conftest.$ac_objext \
24732 conftest$ac_exeext conftest.$ac_ext
24733 done
24734fi
24735LIBS=$ac_func_search_save_LIBS
24736fi
24737echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24738echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24739if test "$ac_cv_search_lt_dlopen" != no; then
24740 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24741
24742cat >>confdefs.h <<\_ACEOF
24743#define HAVE_LT_DLOPEN 1
24744_ACEOF
24745
24746else
24747 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24748 not be available" >&5
24749echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24750 not be available" >&2;}
24751fi
24752
24753
John Criswell7a73b802003-06-30 21:59:07 +000024754echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24755echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24756if test "${ac_cv_search_dlopen+set}" = set; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24758else
24759 ac_func_search_save_LIBS=$LIBS
24760ac_cv_search_dlopen=no
24761cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024762/* confdefs.h. */
24763_ACEOF
24764cat confdefs.h >>conftest.$ac_ext
24765cat >>conftest.$ac_ext <<_ACEOF
24766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024767
24768/* Override any gcc2 internal prototype to avoid an error. */
24769#ifdef __cplusplus
24770extern "C"
24771#endif
24772/* We use char because int might match the return type of a gcc2
24773 builtin and then its argument prototype would still apply. */
24774char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024775int
24776main ()
24777{
24778dlopen ();
24779 ;
24780 return 0;
24781}
24782_ACEOF
24783rm -f conftest.$ac_objext conftest$ac_exeext
24784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024785 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024787 grep -v '^ *+' conftest.er1 >conftest.err
24788 rm -f conftest.er1
24789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024792 { ac_try='test -z "$ac_c_werror_flag"
24793 || test ! -s conftest.err'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; } &&
24799 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 ac_cv_search_dlopen="none required"
24806else
24807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024808sed 's/^/| /' conftest.$ac_ext >&5
24809
John Criswell7a73b802003-06-30 21:59:07 +000024810fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024811rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024813if test "$ac_cv_search_dlopen" = no; then
24814 for ac_lib in dl; do
24815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024817/* confdefs.h. */
24818_ACEOF
24819cat confdefs.h >>conftest.$ac_ext
24820cat >>conftest.$ac_ext <<_ACEOF
24821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024822
24823/* Override any gcc2 internal prototype to avoid an error. */
24824#ifdef __cplusplus
24825extern "C"
24826#endif
24827/* We use char because int might match the return type of a gcc2
24828 builtin and then its argument prototype would still apply. */
24829char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024830int
24831main ()
24832{
24833dlopen ();
24834 ;
24835 return 0;
24836}
24837_ACEOF
24838rm -f conftest.$ac_objext conftest$ac_exeext
24839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024840 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_search_dlopen="-l$ac_lib"
24861break
24862else
24863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024864sed 's/^/| /' conftest.$ac_ext >&5
24865
John Criswell7a73b802003-06-30 21:59:07 +000024866fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024867rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024869 done
24870fi
24871LIBS=$ac_func_search_save_LIBS
24872fi
24873echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24874echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24875if test "$ac_cv_search_dlopen" != no; then
24876 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024877
24878cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024879#define HAVE_DLOPEN 1
24880_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024881
24882else
Brian Gaekec45be042003-10-07 06:01:34 +000024883 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24884echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024885fi
24886
24887
24888echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24889echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24890if test "${ac_cv_search_mallinfo+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892else
24893 ac_func_search_save_LIBS=$LIBS
24894ac_cv_search_mallinfo=no
24895cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024896/* confdefs.h. */
24897_ACEOF
24898cat confdefs.h >>conftest.$ac_ext
24899cat >>conftest.$ac_ext <<_ACEOF
24900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024901
24902/* Override any gcc2 internal prototype to avoid an error. */
24903#ifdef __cplusplus
24904extern "C"
24905#endif
24906/* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24908char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024909int
24910main ()
24911{
24912mallinfo ();
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
24918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024919 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024926 { ac_try='test -z "$ac_c_werror_flag"
24927 || test ! -s conftest.err'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_cv_search_mallinfo="none required"
24940else
24941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024942sed 's/^/| /' conftest.$ac_ext >&5
24943
John Criswell7a73b802003-06-30 21:59:07 +000024944fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024947if test "$ac_cv_search_mallinfo" = no; then
24948 for ac_lib in malloc; do
24949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024951/* confdefs.h. */
24952_ACEOF
24953cat confdefs.h >>conftest.$ac_ext
24954cat >>conftest.$ac_ext <<_ACEOF
24955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024956
24957/* Override any gcc2 internal prototype to avoid an error. */
24958#ifdef __cplusplus
24959extern "C"
24960#endif
24961/* We use char because int might match the return type of a gcc2
24962 builtin and then its argument prototype would still apply. */
24963char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024964int
24965main ()
24966{
24967mallinfo ();
24968 ;
24969 return 0;
24970}
24971_ACEOF
24972rm -f conftest.$ac_objext conftest$ac_exeext
24973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024974 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024976 grep -v '^ *+' conftest.er1 >conftest.err
24977 rm -f conftest.er1
24978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024981 { ac_try='test -z "$ac_c_werror_flag"
24982 || test ! -s conftest.err'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; }; then
24994 ac_cv_search_mallinfo="-l$ac_lib"
24995break
24996else
24997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024998sed 's/^/| /' conftest.$ac_ext >&5
24999
John Criswell7a73b802003-06-30 21:59:07 +000025000fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025001rm -f conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025003 done
25004fi
25005LIBS=$ac_func_search_save_LIBS
25006fi
25007echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25008echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25009if test "$ac_cv_search_mallinfo" != no; then
25010 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025011
25012cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025013#define HAVE_MALLINFO 1
25014_ACEOF
25015
25016fi
25017
25018
Brian Gaeke5f268f72003-12-05 19:29:01 +000025019echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25020echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25021if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25023else
25024 ac_func_search_save_LIBS=$LIBS
25025ac_cv_search_pthread_mutex_lock=no
25026cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025027/* confdefs.h. */
25028_ACEOF
25029cat confdefs.h >>conftest.$ac_ext
25030cat >>conftest.$ac_ext <<_ACEOF
25031/* end confdefs.h. */
25032
25033/* Override any gcc2 internal prototype to avoid an error. */
25034#ifdef __cplusplus
25035extern "C"
25036#endif
25037/* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25039char pthread_mutex_lock ();
25040int
25041main ()
25042{
25043pthread_mutex_lock ();
25044 ;
25045 return 0;
25046}
25047_ACEOF
25048rm -f conftest.$ac_objext conftest$ac_exeext
25049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025050 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025052 grep -v '^ *+' conftest.er1 >conftest.err
25053 rm -f conftest.er1
25054 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025057 { ac_try='test -z "$ac_c_werror_flag"
25058 || test ! -s conftest.err'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; } &&
25064 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_cv_search_pthread_mutex_lock="none required"
25071else
25072 echo "$as_me: failed program was:" >&5
25073sed 's/^/| /' conftest.$ac_ext >&5
25074
25075fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025076rm -f conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025078if test "$ac_cv_search_pthread_mutex_lock" = no; then
25079 for ac_lib in pthread; do
25080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25081 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025082/* confdefs.h. */
25083_ACEOF
25084cat confdefs.h >>conftest.$ac_ext
25085cat >>conftest.$ac_ext <<_ACEOF
25086/* end confdefs.h. */
25087
25088/* Override any gcc2 internal prototype to avoid an error. */
25089#ifdef __cplusplus
25090extern "C"
25091#endif
25092/* We use char because int might match the return type of a gcc2
25093 builtin and then its argument prototype would still apply. */
25094char pthread_mutex_lock ();
25095int
25096main ()
25097{
25098pthread_mutex_lock ();
25099 ;
25100 return 0;
25101}
25102_ACEOF
25103rm -f conftest.$ac_objext conftest$ac_exeext
25104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025105 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025107 grep -v '^ *+' conftest.er1 >conftest.err
25108 rm -f conftest.er1
25109 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025112 { ac_try='test -z "$ac_c_werror_flag"
25113 || test ! -s conftest.err'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; } &&
25119 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; }; then
25125 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25126break
25127else
25128 echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132rm -f conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025134 done
25135fi
25136LIBS=$ac_func_search_save_LIBS
25137fi
25138echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25139echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25140if test "$ac_cv_search_pthread_mutex_lock" != no; then
25141 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025142
John Criswell40468462004-09-24 21:19:06 +000025143cat >>confdefs.h <<\_ACEOF
25144#define HAVE_PTHREAD_MUTEX_LOCK 1
25145_ACEOF
25146
25147fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025148
Brian Gaekec9a410c2004-02-23 21:30:37 +000025149
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025150
John Criswell7a73b802003-06-30 21:59:07 +000025151echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25153if test "${ac_cv_header_stdc+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25155else
25156 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025157/* confdefs.h. */
25158_ACEOF
25159cat confdefs.h >>conftest.$ac_ext
25160cat >>conftest.$ac_ext <<_ACEOF
25161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025162#include <stdlib.h>
25163#include <stdarg.h>
25164#include <string.h>
25165#include <float.h>
25166
John Criswell0c38eaf2003-09-10 15:17:25 +000025167int
25168main ()
25169{
25170
25171 ;
25172 return 0;
25173}
John Criswell7a73b802003-06-30 21:59:07 +000025174_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025175rm -f conftest.$ac_objext
25176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025177 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025183 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025197 ac_cv_header_stdc=yes
25198else
25199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025203fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025205
25206if test $ac_cv_header_stdc = yes; then
25207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025209/* confdefs.h. */
25210_ACEOF
25211cat confdefs.h >>conftest.$ac_ext
25212cat >>conftest.$ac_ext <<_ACEOF
25213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025214#include <string.h>
25215
25216_ACEOF
25217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025218 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025219 :
25220else
25221 ac_cv_header_stdc=no
25222fi
25223rm -f conftest*
25224
25225fi
25226
25227if test $ac_cv_header_stdc = yes; then
25228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025230/* confdefs.h. */
25231_ACEOF
25232cat confdefs.h >>conftest.$ac_ext
25233cat >>conftest.$ac_ext <<_ACEOF
25234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025235#include <stdlib.h>
25236
25237_ACEOF
25238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025239 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025240 :
25241else
25242 ac_cv_header_stdc=no
25243fi
25244rm -f conftest*
25245
25246fi
25247
25248if test $ac_cv_header_stdc = yes; then
25249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25250 if test "$cross_compiling" = yes; then
25251 :
25252else
25253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025254/* confdefs.h. */
25255_ACEOF
25256cat confdefs.h >>conftest.$ac_ext
25257cat >>conftest.$ac_ext <<_ACEOF
25258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025259#include <ctype.h>
25260#if ((' ' & 0x0FF) == 0x020)
25261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25263#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025264# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025265 (('a' <= (c) && (c) <= 'i') \
25266 || ('j' <= (c) && (c) <= 'r') \
25267 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25269#endif
25270
25271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25272int
25273main ()
25274{
25275 int i;
25276 for (i = 0; i < 256; i++)
25277 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025278 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025279 exit(2);
25280 exit (0);
25281}
25282_ACEOF
25283rm -f conftest$ac_exeext
25284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25285 (eval $ac_link) 2>&5
25286 ac_status=$?
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
25294 :
25295else
25296 echo "$as_me: program exited with status $ac_status" >&5
25297echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025298sed 's/^/| /' conftest.$ac_ext >&5
25299
John Criswell7a73b802003-06-30 21:59:07 +000025300( exit $ac_status )
25301ac_cv_header_stdc=no
25302fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025304fi
25305fi
25306fi
25307echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25308echo "${ECHO_T}$ac_cv_header_stdc" >&6
25309if test $ac_cv_header_stdc = yes; then
25310
25311cat >>confdefs.h <<\_ACEOF
25312#define STDC_HEADERS 1
25313_ACEOF
25314
25315fi
25316
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025317
John Criswell7a73b802003-06-30 21:59:07 +000025318echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25319echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25320if test "${ac_cv_header_sys_wait_h+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25322else
25323 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025324/* confdefs.h. */
25325_ACEOF
25326cat confdefs.h >>conftest.$ac_ext
25327cat >>conftest.$ac_ext <<_ACEOF
25328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025329#include <sys/types.h>
25330#include <sys/wait.h>
25331#ifndef WEXITSTATUS
25332# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25333#endif
25334#ifndef WIFEXITED
25335# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25336#endif
25337
John Criswell7a73b802003-06-30 21:59:07 +000025338int
25339main ()
25340{
25341 int s;
25342 wait (&s);
25343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25344 ;
25345 return 0;
25346}
25347_ACEOF
25348rm -f conftest.$ac_objext
25349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025350 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025352 grep -v '^ *+' conftest.er1 >conftest.err
25353 rm -f conftest.er1
25354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_cv_header_sys_wait_h=yes
25371else
25372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025373sed 's/^/| /' conftest.$ac_ext >&5
25374
John Criswell7a73b802003-06-30 21:59:07 +000025375ac_cv_header_sys_wait_h=no
25376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025378fi
25379echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25380echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25381if test $ac_cv_header_sys_wait_h = yes; then
25382
25383cat >>confdefs.h <<\_ACEOF
25384#define HAVE_SYS_WAIT_H 1
25385_ACEOF
25386
25387fi
25388
25389
25390
25391
25392
25393
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025394for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025395do
25396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25397if eval "test \"\${$as_ac_Header+set}\" = set"; then
25398 echo "$as_me:$LINENO: checking for $ac_header" >&5
25399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25400if eval "test \"\${$as_ac_Header+set}\" = set"; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402fi
25403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25405else
25406 # Is the header compilable?
25407echo "$as_me:$LINENO: checking $ac_header usability" >&5
25408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25409cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025410/* confdefs.h. */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025415$ac_includes_default
25416#include <$ac_header>
25417_ACEOF
25418rm -f conftest.$ac_objext
25419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025422 grep -v '^ *+' conftest.er1 >conftest.err
25423 rm -f conftest.er1
25424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025427 { ac_try='test -z "$ac_c_werror_flag"
25428 || test ! -s conftest.err'
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_header_compiler=yes
25441else
25442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025443sed 's/^/| /' conftest.$ac_ext >&5
25444
John Criswell7a73b802003-06-30 21:59:07 +000025445ac_header_compiler=no
25446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25449echo "${ECHO_T}$ac_header_compiler" >&6
25450
25451# Is the header present?
25452echo "$as_me:$LINENO: checking $ac_header presence" >&5
25453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25454cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025455/* confdefs.h. */
25456_ACEOF
25457cat confdefs.h >>conftest.$ac_ext
25458cat >>conftest.$ac_ext <<_ACEOF
25459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025460#include <$ac_header>
25461_ACEOF
25462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25464 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025465 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null; then
25470 if test -s conftest.err; then
25471 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025473 else
25474 ac_cpp_err=
25475 fi
25476else
25477 ac_cpp_err=yes
25478fi
25479if test -z "$ac_cpp_err"; then
25480 ac_header_preproc=yes
25481else
25482 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025483sed 's/^/| /' conftest.$ac_ext >&5
25484
John Criswell7a73b802003-06-30 21:59:07 +000025485 ac_header_preproc=no
25486fi
25487rm -f conftest.err conftest.$ac_ext
25488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25489echo "${ECHO_T}$ac_header_preproc" >&6
25490
25491# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25493 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25498 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025499 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025500 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025513 (
25514 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025515## ----------------------------------- ##
25516## Report this to llvmbugs@cs.uiuc.edu ##
25517## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025518_ASBOX
25519 ) |
25520 sed "s/^/$as_me: WARNING: /" >&2
25521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025522esac
25523echo "$as_me:$LINENO: checking for $ac_header" >&5
25524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25525if eval "test \"\${$as_ac_Header+set}\" = set"; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25527else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025528 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025529fi
25530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25532
25533fi
25534if test `eval echo '${'$as_ac_Header'}'` = yes; then
25535 cat >>confdefs.h <<_ACEOF
25536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25537_ACEOF
25538
25539fi
25540
25541done
25542
25543
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025544
25545
25546
25547
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025548for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025549do
25550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25551if eval "test \"\${$as_ac_Header+set}\" = set"; then
25552 echo "$as_me:$LINENO: checking for $ac_header" >&5
25553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25554if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025555 echo $ECHO_N "(cached) $ECHO_C" >&6
25556fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025559else
25560 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025561echo "$as_me:$LINENO: checking $ac_header usability" >&5
25562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025563cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025564/* confdefs.h. */
25565_ACEOF
25566cat confdefs.h >>conftest.$ac_ext
25567cat >>conftest.$ac_ext <<_ACEOF
25568/* end confdefs.h. */
25569$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025570#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025571_ACEOF
25572rm -f conftest.$ac_objext
25573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025574 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025581 { ac_try='test -z "$ac_c_werror_flag"
25582 || test ! -s conftest.err'
25583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); }; } &&
25588 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 ac_header_compiler=yes
25595else
25596 echo "$as_me: failed program was:" >&5
25597sed 's/^/| /' conftest.$ac_ext >&5
25598
25599ac_header_compiler=no
25600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25603echo "${ECHO_T}$ac_header_compiler" >&6
25604
25605# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025606echo "$as_me:$LINENO: checking $ac_header presence" >&5
25607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025608cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025609/* confdefs.h. */
25610_ACEOF
25611cat confdefs.h >>conftest.$ac_ext
25612cat >>conftest.$ac_ext <<_ACEOF
25613/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025614#include <$ac_header>
25615_ACEOF
25616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25618 ac_status=$?
25619 grep -v '^ *+' conftest.er1 >conftest.err
25620 rm -f conftest.er1
25621 cat conftest.err >&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } >/dev/null; then
25624 if test -s conftest.err; then
25625 ac_cpp_err=$ac_c_preproc_warn_flag
25626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25627 else
25628 ac_cpp_err=
25629 fi
25630else
25631 ac_cpp_err=yes
25632fi
25633if test -z "$ac_cpp_err"; then
25634 ac_header_preproc=yes
25635else
25636 echo "$as_me: failed program was:" >&5
25637sed 's/^/| /' conftest.$ac_ext >&5
25638
25639 ac_header_preproc=no
25640fi
25641rm -f conftest.err conftest.$ac_ext
25642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25643echo "${ECHO_T}$ac_header_preproc" >&6
25644
25645# So? What about this header?
25646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25647 yes:no: )
25648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25652 ac_header_preproc=yes
25653 ;;
25654 no:yes:* )
25655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25667 (
25668 cat <<\_ASBOX
25669## ----------------------------------- ##
25670## Report this to llvmbugs@cs.uiuc.edu ##
25671## ----------------------------------- ##
25672_ASBOX
25673 ) |
25674 sed "s/^/$as_me: WARNING: /" >&2
25675 ;;
25676esac
25677echo "$as_me:$LINENO: checking for $ac_header" >&5
25678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25679if eval "test \"\${$as_ac_Header+set}\" = set"; then
25680 echo $ECHO_N "(cached) $ECHO_C" >&6
25681else
25682 eval "$as_ac_Header=\$ac_header_preproc"
25683fi
25684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25686
25687fi
25688if test `eval echo '${'$as_ac_Header'}'` = yes; then
25689 cat >>confdefs.h <<_ACEOF
25690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25691_ACEOF
25692
25693fi
25694
25695done
25696
25697
25698
25699
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025700for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025701do
25702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25703if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704 echo "$as_me:$LINENO: checking for $ac_header" >&5
25705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25706if eval "test \"\${$as_ac_Header+set}\" = set"; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25708fi
25709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25711else
25712 # Is the header compilable?
25713echo "$as_me:$LINENO: checking $ac_header usability" >&5
25714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25715cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
25721$ac_includes_default
25722#include <$ac_header>
25723_ACEOF
25724rm -f conftest.$ac_objext
25725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726 (eval $ac_compile) 2>conftest.er1
25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
25746 ac_header_compiler=yes
25747else
25748 echo "$as_me: failed program was:" >&5
25749sed 's/^/| /' conftest.$ac_ext >&5
25750
25751ac_header_compiler=no
25752fi
25753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25755echo "${ECHO_T}$ac_header_compiler" >&6
25756
25757# Is the header present?
25758echo "$as_me:$LINENO: checking $ac_header presence" >&5
25759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25760cat >conftest.$ac_ext <<_ACEOF
25761/* confdefs.h. */
25762_ACEOF
25763cat confdefs.h >>conftest.$ac_ext
25764cat >>conftest.$ac_ext <<_ACEOF
25765/* end confdefs.h. */
25766#include <$ac_header>
25767_ACEOF
25768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25770 ac_status=$?
25771 grep -v '^ *+' conftest.er1 >conftest.err
25772 rm -f conftest.er1
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } >/dev/null; then
25776 if test -s conftest.err; then
25777 ac_cpp_err=$ac_c_preproc_warn_flag
25778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25779 else
25780 ac_cpp_err=
25781 fi
25782else
25783 ac_cpp_err=yes
25784fi
25785if test -z "$ac_cpp_err"; then
25786 ac_header_preproc=yes
25787else
25788 echo "$as_me: failed program was:" >&5
25789sed 's/^/| /' conftest.$ac_ext >&5
25790
25791 ac_header_preproc=no
25792fi
25793rm -f conftest.err conftest.$ac_ext
25794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25795echo "${ECHO_T}$ac_header_preproc" >&6
25796
25797# So? What about this header?
25798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25799 yes:no: )
25800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25804 ac_header_preproc=yes
25805 ;;
25806 no:yes:* )
25807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25819 (
25820 cat <<\_ASBOX
25821## ----------------------------------- ##
25822## Report this to llvmbugs@cs.uiuc.edu ##
25823## ----------------------------------- ##
25824_ASBOX
25825 ) |
25826 sed "s/^/$as_me: WARNING: /" >&2
25827 ;;
25828esac
25829echo "$as_me:$LINENO: checking for $ac_header" >&5
25830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25831if eval "test \"\${$as_ac_Header+set}\" = set"; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834 eval "$as_ac_Header=\$ac_header_preproc"
25835fi
25836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25838
25839fi
25840if test `eval echo '${'$as_ac_Header'}'` = yes; then
25841 cat >>confdefs.h <<_ACEOF
25842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25843_ACEOF
25844
25845fi
25846
25847done
25848
25849echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25850echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25851if test "${ac_cv_header_time+set}" = set; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25853else
25854 cat >conftest.$ac_ext <<_ACEOF
25855/* confdefs.h. */
25856_ACEOF
25857cat confdefs.h >>conftest.$ac_ext
25858cat >>conftest.$ac_ext <<_ACEOF
25859/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025860#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025861#include <sys/time.h>
25862#include <time.h>
25863
25864int
25865main ()
25866{
25867if ((struct tm *) 0)
25868return 0;
25869 ;
25870 return 0;
25871}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025872_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025873rm -f conftest.$ac_objext
25874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025876 ac_status=$?
25877 grep -v '^ *+' conftest.er1 >conftest.err
25878 rm -f conftest.er1
25879 cat conftest.err >&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025881 (exit $ac_status); } &&
25882 { ac_try='test -z "$ac_c_werror_flag"
25883 || test ! -s conftest.err'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; } &&
25889 { ac_try='test -s conftest.$ac_objext'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025896else
25897 echo "$as_me: failed program was:" >&5
25898sed 's/^/| /' conftest.$ac_ext >&5
25899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025900ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025901fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25903fi
25904echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25905echo "${ECHO_T}$ac_cv_header_time" >&6
25906if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025907
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025908cat >>confdefs.h <<\_ACEOF
25909#define TIME_WITH_SYS_TIME 1
25910_ACEOF
25911
25912fi
25913
25914echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25915echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25916if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025917 echo $ECHO_N "(cached) $ECHO_C" >&6
25918else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025919 ac_ext=c
25920ac_cpp='$CPP $CPPFLAGS'
25921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25923ac_compiler_gnu=$ac_cv_c_compiler_gnu
25924
25925 cat >conftest.$ac_ext <<_ACEOF
25926/* confdefs.h. */
25927_ACEOF
25928cat confdefs.h >>conftest.$ac_ext
25929cat >>conftest.$ac_ext <<_ACEOF
25930/* end confdefs.h. */
25931#include <sys/mman.h>
25932#include <unistd.h>
25933#include <fcntl.h>
25934int
25935main ()
25936{
25937mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25938 ;
25939 return 0;
25940}
25941_ACEOF
25942rm -f conftest.$ac_objext
25943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25944 (eval $ac_compile) 2>conftest.er1
25945 ac_status=$?
25946 grep -v '^ *+' conftest.er1 >conftest.err
25947 rm -f conftest.er1
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } &&
25951 { ac_try='test -z "$ac_c_werror_flag"
25952 || test ! -s conftest.err'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; } &&
25958 { ac_try='test -s conftest.$ac_objext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25964 ac_cv_header_mmap_anon=yes
25965else
25966 echo "$as_me: failed program was:" >&5
25967sed 's/^/| /' conftest.$ac_ext >&5
25968
25969ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025970fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25972 ac_ext=c
25973ac_cpp='$CPP $CPPFLAGS'
25974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976ac_compiler_gnu=$ac_cv_c_compiler_gnu
25977
25978
25979fi
25980echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25981echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25982if test "$ac_cv_header_mmap_anon" = yes; then
25983
25984cat >>confdefs.h <<\_ACEOF
25985#define HAVE_MMAP_ANONYMOUS
25986_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025987
25988fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025989
25990
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025991
25992
25993for ac_header in inttypes.h stdint.h
25994do
25995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25996if eval "test \"\${$as_ac_Header+set}\" = set"; then
25997 echo "$as_me:$LINENO: checking for $ac_header" >&5
25998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25999if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026000 echo $ECHO_N "(cached) $ECHO_C" >&6
26001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026004else
26005 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026006echo "$as_me:$LINENO: checking $ac_header usability" >&5
26007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026008cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026009/* confdefs.h. */
26010_ACEOF
26011cat confdefs.h >>conftest.$ac_ext
26012cat >>conftest.$ac_ext <<_ACEOF
26013/* end confdefs.h. */
26014$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026015#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026016_ACEOF
26017rm -f conftest.$ac_objext
26018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026019 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026021 grep -v '^ *+' conftest.er1 >conftest.err
26022 rm -f conftest.er1
26023 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026026 { ac_try='test -z "$ac_c_werror_flag"
26027 || test ! -s conftest.err'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 ac_header_compiler=yes
26040else
26041 echo "$as_me: failed program was:" >&5
26042sed 's/^/| /' conftest.$ac_ext >&5
26043
26044ac_header_compiler=no
26045fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26048echo "${ECHO_T}$ac_header_compiler" >&6
26049
26050# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026051echo "$as_me:$LINENO: checking $ac_header presence" >&5
26052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026053cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026054/* confdefs.h. */
26055_ACEOF
26056cat confdefs.h >>conftest.$ac_ext
26057cat >>conftest.$ac_ext <<_ACEOF
26058/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026059#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026060_ACEOF
26061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26063 ac_status=$?
26064 grep -v '^ *+' conftest.er1 >conftest.err
26065 rm -f conftest.er1
26066 cat conftest.err >&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } >/dev/null; then
26069 if test -s conftest.err; then
26070 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026072 else
26073 ac_cpp_err=
26074 fi
26075else
26076 ac_cpp_err=yes
26077fi
26078if test -z "$ac_cpp_err"; then
26079 ac_header_preproc=yes
26080else
26081 echo "$as_me: failed program was:" >&5
26082sed 's/^/| /' conftest.$ac_ext >&5
26083
26084 ac_header_preproc=no
26085fi
26086rm -f conftest.err conftest.$ac_ext
26087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26088echo "${ECHO_T}$ac_header_preproc" >&6
26089
26090# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26092 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026097 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026098 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026099 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026112 (
26113 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026114## ----------------------------------- ##
26115## Report this to llvmbugs@cs.uiuc.edu ##
26116## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026117_ASBOX
26118 ) |
26119 sed "s/^/$as_me: WARNING: /" >&2
26120 ;;
26121esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026122echo "$as_me:$LINENO: checking for $ac_header" >&5
26123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26124if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026125 echo $ECHO_N "(cached) $ECHO_C" >&6
26126else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026127 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026128fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026131
26132fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026133if test `eval echo '${'$as_ac_Header'}'` = yes; then
26134 cat >>confdefs.h <<_ACEOF
26135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026136_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026137
26138fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026139
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026140done
26141
John Criswell7ed43ad2004-07-19 16:12:29 +000026142
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026143
John Criswell7a73b802003-06-30 21:59:07 +000026144echo "$as_me:$LINENO: checking for pid_t" >&5
26145echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26146if test "${ac_cv_type_pid_t+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26148else
26149 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026150/* confdefs.h. */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026155$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026156int
26157main ()
26158{
26159if ((pid_t *) 0)
26160 return 0;
26161if (sizeof (pid_t))
26162 return 0;
26163 ;
26164 return 0;
26165}
26166_ACEOF
26167rm -f conftest.$ac_objext
26168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026169 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026171 grep -v '^ *+' conftest.er1 >conftest.err
26172 rm -f conftest.er1
26173 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 ac_cv_type_pid_t=yes
26190else
26191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026192sed 's/^/| /' conftest.$ac_ext >&5
26193
John Criswell7a73b802003-06-30 21:59:07 +000026194ac_cv_type_pid_t=no
26195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026197fi
26198echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26199echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26200if test $ac_cv_type_pid_t = yes; then
26201 :
26202else
26203
26204cat >>confdefs.h <<_ACEOF
26205#define pid_t int
26206_ACEOF
26207
26208fi
26209
26210echo "$as_me:$LINENO: checking for size_t" >&5
26211echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26212if test "${ac_cv_type_size_t+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26214else
26215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026221$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026222int
26223main ()
26224{
26225if ((size_t *) 0)
26226 return 0;
26227if (sizeof (size_t))
26228 return 0;
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext
26234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026235 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026236 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 ac_cv_type_size_t=yes
26256else
26257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026258sed 's/^/| /' conftest.$ac_ext >&5
26259
John Criswell7a73b802003-06-30 21:59:07 +000026260ac_cv_type_size_t=no
26261fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026263fi
26264echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26265echo "${ECHO_T}$ac_cv_type_size_t" >&6
26266if test $ac_cv_type_size_t = yes; then
26267 :
26268else
26269
26270cat >>confdefs.h <<_ACEOF
26271#define size_t unsigned
26272_ACEOF
26273
26274fi
26275
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026276echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26277echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26278if test "${ac_cv_type_signal+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280else
26281 cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287#include <sys/types.h>
26288#include <signal.h>
26289#ifdef signal
26290# undef signal
26291#endif
26292#ifdef __cplusplus
26293extern "C" void (*signal (int, void (*)(int)))(int);
26294#else
26295void (*signal ()) ();
26296#endif
26297
26298int
26299main ()
26300{
26301int i;
26302 ;
26303 return 0;
26304}
26305_ACEOF
26306rm -f conftest.$ac_objext
26307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308 (eval $ac_compile) 2>conftest.er1
26309 ac_status=$?
26310 grep -v '^ *+' conftest.er1 >conftest.err
26311 rm -f conftest.er1
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag"
26316 || test ! -s conftest.err'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; } &&
26322 { ac_try='test -s conftest.$ac_objext'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; }; then
26328 ac_cv_type_signal=void
26329else
26330 echo "$as_me: failed program was:" >&5
26331sed 's/^/| /' conftest.$ac_ext >&5
26332
26333ac_cv_type_signal=int
26334fi
26335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336fi
26337echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26338echo "${ECHO_T}$ac_cv_type_signal" >&6
26339
26340cat >>confdefs.h <<_ACEOF
26341#define RETSIGTYPE $ac_cv_type_signal
26342_ACEOF
26343
26344
26345echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26346echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26347if test "${ac_cv_struct_tm+set}" = set; then
26348 echo $ECHO_N "(cached) $ECHO_C" >&6
26349else
26350 cat >conftest.$ac_ext <<_ACEOF
26351/* confdefs.h. */
26352_ACEOF
26353cat confdefs.h >>conftest.$ac_ext
26354cat >>conftest.$ac_ext <<_ACEOF
26355/* end confdefs.h. */
26356#include <sys/types.h>
26357#include <time.h>
26358
26359int
26360main ()
26361{
26362struct tm *tp; tp->tm_sec;
26363 ;
26364 return 0;
26365}
26366_ACEOF
26367rm -f conftest.$ac_objext
26368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26369 (eval $ac_compile) 2>conftest.er1
26370 ac_status=$?
26371 grep -v '^ *+' conftest.er1 >conftest.err
26372 rm -f conftest.er1
26373 cat conftest.err >&5
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } &&
26376 { ac_try='test -z "$ac_c_werror_flag"
26377 || test ! -s conftest.err'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; } &&
26383 { ac_try='test -s conftest.$ac_objext'
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; }; then
26389 ac_cv_struct_tm=time.h
26390else
26391 echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394ac_cv_struct_tm=sys/time.h
26395fi
26396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26397fi
26398echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26399echo "${ECHO_T}$ac_cv_struct_tm" >&6
26400if test $ac_cv_struct_tm = sys/time.h; then
26401
26402cat >>confdefs.h <<\_ACEOF
26403#define TM_IN_SYS_TIME 1
26404_ACEOF
26405
26406fi
26407
John Criswell7a73b802003-06-30 21:59:07 +000026408echo "$as_me:$LINENO: checking for int64_t" >&5
26409echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26410if test "${ac_cv_type_int64_t+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26412else
26413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026414/* confdefs.h. */
26415_ACEOF
26416cat confdefs.h >>conftest.$ac_ext
26417cat >>conftest.$ac_ext <<_ACEOF
26418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026419$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026420int
26421main ()
26422{
26423if ((int64_t *) 0)
26424 return 0;
26425if (sizeof (int64_t))
26426 return 0;
26427 ;
26428 return 0;
26429}
26430_ACEOF
26431rm -f conftest.$ac_objext
26432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026433 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026435 grep -v '^ *+' conftest.er1 >conftest.err
26436 rm -f conftest.er1
26437 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026440 { ac_try='test -z "$ac_c_werror_flag"
26441 || test ! -s conftest.err'
26442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443 (eval $ac_try) 2>&5
26444 ac_status=$?
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); }; } &&
26447 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 ac_cv_type_int64_t=yes
26454else
26455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026456sed 's/^/| /' conftest.$ac_ext >&5
26457
John Criswell7a73b802003-06-30 21:59:07 +000026458ac_cv_type_int64_t=no
26459fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026461fi
26462echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26463echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26464if test $ac_cv_type_int64_t = yes; then
26465
26466cat >>confdefs.h <<_ACEOF
26467#define HAVE_INT64_T 1
26468_ACEOF
26469
26470
26471else
26472 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26473echo "$as_me: error: Type int64_t required but not found" >&2;}
26474 { (exit 1); exit 1; }; }
26475fi
26476
26477echo "$as_me:$LINENO: checking for uint64_t" >&5
26478echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26479if test "${ac_cv_type_uint64_t+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481else
26482 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026483/* confdefs.h. */
26484_ACEOF
26485cat confdefs.h >>conftest.$ac_ext
26486cat >>conftest.$ac_ext <<_ACEOF
26487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026488$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026489int
26490main ()
26491{
26492if ((uint64_t *) 0)
26493 return 0;
26494if (sizeof (uint64_t))
26495 return 0;
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026502 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_type_uint64_t=yes
26523else
26524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026525sed 's/^/| /' conftest.$ac_ext >&5
26526
John Criswell7a73b802003-06-30 21:59:07 +000026527ac_cv_type_uint64_t=no
26528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026530fi
26531echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26532echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26533if test $ac_cv_type_uint64_t = yes; then
26534
26535cat >>confdefs.h <<_ACEOF
26536#define HAVE_UINT64_T 1
26537_ACEOF
26538
26539
26540else
Misha Brukmanceca9042004-09-02 23:02:30 +000026541 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026542echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26543if test "${ac_cv_type_u_int64_t+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26545else
26546 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h. */
26552$ac_includes_default
26553int
26554main ()
26555{
26556if ((u_int64_t *) 0)
26557 return 0;
26558if (sizeof (u_int64_t))
26559 return 0;
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026566 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 ac_cv_type_u_int64_t=yes
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26591ac_cv_type_u_int64_t=no
26592fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026594fi
26595echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26596echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26597if test $ac_cv_type_u_int64_t = yes; then
26598
26599cat >>confdefs.h <<_ACEOF
26600#define HAVE_U_INT64_T 1
26601_ACEOF
26602
26603
Misha Brukmanceca9042004-09-02 23:02:30 +000026604else
26605 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26606echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26607 { (exit 1); exit 1; }; }
26608fi
26609
John Criswell679ff312004-09-02 18:44:44 +000026610fi
26611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026612
26613
26614
26615
26616
26617
26618
26619
Reid Spencerf9960f72004-12-15 01:41:56 +000026620
Reid Spencerf9960f72004-12-15 01:41:56 +000026621for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026622do
26623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624echo "$as_me:$LINENO: checking for $ac_func" >&5
26625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26637#define $ac_func innocuous_$ac_func
26638
26639/* System header to define __stub macros and hopefully few prototypes,
26640 which can conflict with char $ac_func (); below.
26641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642 <limits.h> exists even on freestanding compilers. */
26643
26644#ifdef __STDC__
26645# include <limits.h>
26646#else
26647# include <assert.h>
26648#endif
26649
26650#undef $ac_func
26651
26652/* Override any gcc2 internal prototype to avoid an error. */
26653#ifdef __cplusplus
26654extern "C"
26655{
26656#endif
26657/* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26659char $ac_func ();
26660/* The GNU C library defines this for functions which it implements
26661 to always fail with ENOSYS. Some functions are actually named
26662 something starting with __ and the normal name is an alias. */
26663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26664choke me
26665#else
26666char (*f) () = $ac_func;
26667#endif
26668#ifdef __cplusplus
26669}
26670#endif
John Criswell7a73b802003-06-30 21:59:07 +000026671
John Criswell7a73b802003-06-30 21:59:07 +000026672int
26673main ()
26674{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026675return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026676 ;
26677 return 0;
26678}
26679_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026696 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026702 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026703else
26704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026705sed 's/^/| /' conftest.$ac_ext >&5
26706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026707eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026709rm -f conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026711fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26714if test `eval echo '${'$as_ac_var'}'` = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026717_ACEOF
26718
26719fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026720done
John Criswell7a73b802003-06-30 21:59:07 +000026721
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026722
26723
26724
Reid Spencer6af3d262004-12-15 04:01:48 +000026725
26726
26727for ac_func in mkdtemp realpath strdup strtoq strtoll
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026728do
26729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26730echo "$as_me:$LINENO: checking for $ac_func" >&5
26731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26732if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026733 echo $ECHO_N "(cached) $ECHO_C" >&6
26734else
26735 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26743#define $ac_func innocuous_$ac_func
26744
26745/* System header to define __stub macros and hopefully few prototypes,
26746 which can conflict with char $ac_func (); below.
26747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26748 <limits.h> exists even on freestanding compilers. */
26749
26750#ifdef __STDC__
26751# include <limits.h>
26752#else
26753# include <assert.h>
26754#endif
26755
26756#undef $ac_func
26757
26758/* Override any gcc2 internal prototype to avoid an error. */
26759#ifdef __cplusplus
26760extern "C"
26761{
26762#endif
26763/* We use char because int might match the return type of a gcc2
26764 builtin and then its argument prototype would still apply. */
26765char $ac_func ();
26766/* The GNU C library defines this for functions which it implements
26767 to always fail with ENOSYS. Some functions are actually named
26768 something starting with __ and the normal name is an alias. */
26769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26770choke me
26771#else
26772char (*f) () = $ac_func;
26773#endif
26774#ifdef __cplusplus
26775}
26776#endif
John Criswell7a73b802003-06-30 21:59:07 +000026777
John Criswell7a73b802003-06-30 21:59:07 +000026778int
26779main ()
26780{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026781return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026782 ;
26783 return 0;
26784}
26785_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026786rm -f conftest.$ac_objext conftest$ac_exeext
26787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26788 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026790 grep -v '^ *+' conftest.er1 >conftest.err
26791 rm -f conftest.er1
26792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026795 { ac_try='test -z "$ac_c_werror_flag"
26796 || test ! -s conftest.err'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026802 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026808 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026809else
26810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026811sed 's/^/| /' conftest.$ac_ext >&5
26812
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026813eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026814fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026815rm -f conftest.err conftest.$ac_objext \
26816 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026817fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26820if test `eval echo '${'$as_ac_var'}'` = yes; then
26821 cat >>confdefs.h <<_ACEOF
26822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026823_ACEOF
26824
26825fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026826done
John Criswell7a73b802003-06-30 21:59:07 +000026827
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026828echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26829echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026830if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026831 echo $ECHO_N "(cached) $ECHO_C" >&6
26832else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026833 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026834ac_cpp='$CPP $CPPFLAGS'
26835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26837ac_compiler_gnu=$ac_cv_c_compiler_gnu
26838
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026839 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026840 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026841else
26842 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026843
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026844 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026845_ACEOF
26846cat confdefs.h >>conftest.$ac_ext
26847cat >>conftest.$ac_ext <<_ACEOF
26848/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026849
John Criswella0137d32003-10-13 16:22:01 +000026850#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026851#include <stdlib.h>
26852
John Criswella0137d32003-10-13 16:22:01 +000026853int
26854main ()
26855{
26856
Reid Spencer2706f8c2004-09-19 23:53:36 +000026857volatile double A, B;
26858char Buffer[100];
26859A = 1;
26860A /= 10.0;
26861sprintf(Buffer, "%a", A);
26862B = atof(Buffer);
26863if (A != B)
26864 return (1);
26865if (A != 0x1.999999999999ap-4)
26866 return (1);
26867return (0);
John Criswella0137d32003-10-13 16:22:01 +000026868 ;
26869 return 0;
26870}
26871_ACEOF
26872rm -f conftest$ac_exeext
26873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26874 (eval $ac_link) 2>&5
26875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026883 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026884else
26885 echo "$as_me: program exited with status $ac_status" >&5
26886echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026890llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026892rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026893fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026894 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026895ac_cpp='$CPP $CPPFLAGS'
26896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26898ac_compiler_gnu=$ac_cv_c_compiler_gnu
26899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026900fi
Reid Spencer3be58f92004-11-27 22:01:43 +000026901echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26902echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26903 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000026904
26905cat >>confdefs.h <<\_ACEOF
26906#define HAVE_PRINTF_A 1
26907_ACEOF
26908
Reid Spencer2706f8c2004-09-19 23:53:36 +000026909 fi
John Criswella0137d32003-10-13 16:22:01 +000026910
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26912# for constant arguments. Useless!
26913echo "$as_me:$LINENO: checking for working alloca.h" >&5
26914echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26915if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000026916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
John Criswell0021c312004-02-13 21:57:29 +000026918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000026919/* confdefs.h. */
26920_ACEOF
26921cat confdefs.h >>conftest.$ac_ext
26922cat >>conftest.$ac_ext <<_ACEOF
26923/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026924#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000026925int
26926main ()
26927{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026928char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000026929 ;
26930 return 0;
26931}
26932_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026933rm -f conftest.$ac_objext conftest$ac_exeext
26934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26935 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000026936 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000026940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026942 { 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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026949 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000026950 { (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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026955 ac_cv_working_alloca_h=yes
26956else
26957 echo "$as_me: failed program was:" >&5
26958sed 's/^/| /' conftest.$ac_ext >&5
26959
26960ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000026961fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026962rm -f conftest.err conftest.$ac_objext \
26963 conftest$ac_exeext conftest.$ac_ext
26964fi
26965echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26966echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26967if test $ac_cv_working_alloca_h = yes; then
26968
26969cat >>confdefs.h <<\_ACEOF
26970#define HAVE_ALLOCA_H 1
26971_ACEOF
26972
26973fi
26974
26975echo "$as_me:$LINENO: checking for alloca" >&5
26976echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26977if test "${ac_cv_func_alloca_works+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26979else
26980 cat >conftest.$ac_ext <<_ACEOF
26981/* confdefs.h. */
26982_ACEOF
26983cat confdefs.h >>conftest.$ac_ext
26984cat >>conftest.$ac_ext <<_ACEOF
26985/* end confdefs.h. */
26986#ifdef __GNUC__
26987# define alloca __builtin_alloca
26988#else
26989# ifdef _MSC_VER
26990# include <malloc.h>
26991# define alloca _alloca
26992# else
26993# if HAVE_ALLOCA_H
26994# include <alloca.h>
26995# else
26996# ifdef _AIX
26997 #pragma alloca
26998# else
26999# ifndef alloca /* predefined by HP cc +Olibcalls */
27000char *alloca ();
27001# endif
27002# endif
27003# endif
27004# endif
27005#endif
27006
27007int
27008main ()
27009{
27010char *p = (char *) alloca (1);
27011 ;
27012 return 0;
27013}
27014_ACEOF
27015rm -f conftest.$ac_objext conftest$ac_exeext
27016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27017 (eval $ac_link) 2>conftest.er1
27018 ac_status=$?
27019 grep -v '^ *+' conftest.er1 >conftest.err
27020 rm -f conftest.er1
27021 cat conftest.err >&5
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
27024 { ac_try='test -z "$ac_c_werror_flag"
27025 || test ! -s conftest.err'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest$ac_exeext'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ac_cv_func_alloca_works=yes
27038else
27039 echo "$as_me: failed program was:" >&5
27040sed 's/^/| /' conftest.$ac_ext >&5
27041
27042ac_cv_func_alloca_works=no
27043fi
27044rm -f conftest.err conftest.$ac_objext \
27045 conftest$ac_exeext conftest.$ac_ext
27046fi
27047echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27048echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27049
27050if test $ac_cv_func_alloca_works = yes; then
27051
27052cat >>confdefs.h <<\_ACEOF
27053#define HAVE_ALLOCA 1
27054_ACEOF
27055
27056else
27057 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27058# that cause trouble. Some versions do not even contain alloca or
27059# contain a buggy version. If you still want to use their alloca,
27060# use ar to extract alloca.o from them instead of compiling alloca.c.
27061
27062ALLOCA=alloca.$ac_objext
27063
27064cat >>confdefs.h <<\_ACEOF
27065#define C_ALLOCA 1
27066_ACEOF
27067
27068
27069echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27070echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27071if test "${ac_cv_os_cray+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27073else
27074 cat >conftest.$ac_ext <<_ACEOF
27075/* confdefs.h. */
27076_ACEOF
27077cat confdefs.h >>conftest.$ac_ext
27078cat >>conftest.$ac_ext <<_ACEOF
27079/* end confdefs.h. */
27080#if defined(CRAY) && ! defined(CRAY2)
27081webecray
27082#else
27083wenotbecray
27084#endif
27085
27086_ACEOF
27087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27088 $EGREP "webecray" >/dev/null 2>&1; then
27089 ac_cv_os_cray=yes
27090else
27091 ac_cv_os_cray=no
27092fi
27093rm -f conftest*
27094
27095fi
27096echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27097echo "${ECHO_T}$ac_cv_os_cray" >&6
27098if test $ac_cv_os_cray = yes; then
27099 for ac_func in _getb67 GETB67 getb67; do
27100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27101echo "$as_me:$LINENO: checking for $ac_func" >&5
27102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27103if eval "test \"\${$as_ac_var+set}\" = set"; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27105else
27106 cat >conftest.$ac_ext <<_ACEOF
27107/* confdefs.h. */
27108_ACEOF
27109cat confdefs.h >>conftest.$ac_ext
27110cat >>conftest.$ac_ext <<_ACEOF
27111/* end confdefs.h. */
27112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27114#define $ac_func innocuous_$ac_func
27115
27116/* System header to define __stub macros and hopefully few prototypes,
27117 which can conflict with char $ac_func (); below.
27118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27119 <limits.h> exists even on freestanding compilers. */
27120
27121#ifdef __STDC__
27122# include <limits.h>
27123#else
27124# include <assert.h>
27125#endif
27126
27127#undef $ac_func
27128
27129/* Override any gcc2 internal prototype to avoid an error. */
27130#ifdef __cplusplus
27131extern "C"
27132{
27133#endif
27134/* We use char because int might match the return type of a gcc2
27135 builtin and then its argument prototype would still apply. */
27136char $ac_func ();
27137/* The GNU C library defines this for functions which it implements
27138 to always fail with ENOSYS. Some functions are actually named
27139 something starting with __ and the normal name is an alias. */
27140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27141choke me
27142#else
27143char (*f) () = $ac_func;
27144#endif
27145#ifdef __cplusplus
27146}
27147#endif
27148
27149int
27150main ()
27151{
27152return f != $ac_func;
27153 ;
27154 return 0;
27155}
27156_ACEOF
27157rm -f conftest.$ac_objext conftest$ac_exeext
27158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27159 (eval $ac_link) 2>conftest.er1
27160 ac_status=$?
27161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } &&
27166 { ac_try='test -z "$ac_c_werror_flag"
27167 || test ! -s conftest.err'
27168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169 (eval $ac_try) 2>&5
27170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; } &&
27173 { ac_try='test -s conftest$ac_exeext'
27174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; }; then
27179 eval "$as_ac_var=yes"
27180else
27181 echo "$as_me: failed program was:" >&5
27182sed 's/^/| /' conftest.$ac_ext >&5
27183
27184eval "$as_ac_var=no"
27185fi
27186rm -f conftest.err conftest.$ac_objext \
27187 conftest$ac_exeext conftest.$ac_ext
27188fi
27189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27191if test `eval echo '${'$as_ac_var'}'` = yes; then
27192
27193cat >>confdefs.h <<_ACEOF
27194#define CRAY_STACKSEG_END $ac_func
27195_ACEOF
27196
27197 break
27198fi
27199
27200 done
27201fi
27202
27203echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27204echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27205if test "${ac_cv_c_stack_direction+set}" = set; then
27206 echo $ECHO_N "(cached) $ECHO_C" >&6
27207else
27208 if test "$cross_compiling" = yes; then
27209 ac_cv_c_stack_direction=0
27210else
27211 cat >conftest.$ac_ext <<_ACEOF
27212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
27217int
27218find_stack_direction ()
27219{
27220 static char *addr = 0;
27221 auto char dummy;
27222 if (addr == 0)
27223 {
27224 addr = &dummy;
27225 return find_stack_direction ();
27226 }
John Criswell0021c312004-02-13 21:57:29 +000027227 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027228 return (&dummy > addr) ? 1 : -1;
27229}
John Criswell0021c312004-02-13 21:57:29 +000027230
John Criswell0021c312004-02-13 21:57:29 +000027231int
27232main ()
27233{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027234 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027235}
27236_ACEOF
27237rm -f conftest$ac_exeext
27238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27239 (eval $ac_link) 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027248 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027249else
27250 echo "$as_me: program exited with status $ac_status" >&5
27251echo "$as_me: failed program was:" >&5
27252sed 's/^/| /' conftest.$ac_ext >&5
27253
27254( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027255ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027256fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027257rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027258fi
27259fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027260echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27261echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27262
27263cat >>confdefs.h <<_ACEOF
27264#define STACK_DIRECTION $ac_cv_c_stack_direction
27265_ACEOF
27266
27267
John Criswell0021c312004-02-13 21:57:29 +000027268fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027269
27270
27271echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27272echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27273if test "${ac_cv_func_rand48+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275else
27276 ac_ext=cc
27277ac_cpp='$CXXCPP $CPPFLAGS'
27278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27281
27282 cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h. */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h. */
27288#include <stdlib.h>
27289int
27290main ()
27291{
27292srand48(0);lrand48();drand48();
27293 ;
27294 return 0;
27295}
27296_ACEOF
27297rm -f conftest.$ac_objext
27298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27299 (eval $ac_compile) 2>conftest.er1
27300 ac_status=$?
27301 grep -v '^ *+' conftest.er1 >conftest.err
27302 rm -f conftest.er1
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try='test -z "$ac_cxx_werror_flag"
27307 || test ! -s conftest.err'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest.$ac_objext'
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 ac_cv_func_rand48=yes
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324ac_cv_func_rand48=no
27325fi
27326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327 ac_ext=c
27328ac_cpp='$CPP $CPPFLAGS'
27329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27331ac_compiler_gnu=$ac_cv_c_compiler_gnu
27332
27333fi
27334echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27335echo "${ECHO_T}$ac_cv_func_rand48" >&6
27336
27337if test "$ac_cv_func_rand48" = "yes" ; then
27338
27339cat >>confdefs.h <<\_ACEOF
27340#define HAVE_RAND48 1
27341_ACEOF
27342
27343fi
John Criswell0021c312004-02-13 21:57:29 +000027344
27345
John Criswell7a73b802003-06-30 21:59:07 +000027346echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27347echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27348if test "${ac_cv_cxx_namespaces+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027351 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027352ac_cpp='$CXXCPP $CPPFLAGS'
27353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27356
27357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027358/* confdefs.h. */
27359_ACEOF
27360cat confdefs.h >>conftest.$ac_ext
27361cat >>conftest.$ac_ext <<_ACEOF
27362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027363namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027364int
27365main ()
27366{
27367using namespace Outer::Inner; return i;
27368 ;
27369 return 0;
27370}
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027374 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027376 grep -v '^ *+' conftest.er1 >conftest.err
27377 rm -f conftest.er1
27378 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027381 { ac_try='test -z "$ac_cxx_werror_flag"
27382 || test ! -s conftest.err'
27383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 ac_cv_cxx_namespaces=yes
27395else
27396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027397sed 's/^/| /' conftest.$ac_ext >&5
27398
John Criswell7a73b802003-06-30 21:59:07 +000027399ac_cv_cxx_namespaces=no
27400fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027402 ac_ext=c
27403ac_cpp='$CPP $CPPFLAGS'
27404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27406ac_compiler_gnu=$ac_cv_c_compiler_gnu
27407
27408
27409fi
27410echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27411echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27412if test "$ac_cv_cxx_namespaces" = yes; then
27413
27414cat >>confdefs.h <<\_ACEOF
27415#define HAVE_NAMESPACES
27416_ACEOF
27417
27418fi
27419
Brian Gaeke90583492003-11-10 03:06:28 +000027420echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27421echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27422if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027423 echo $ECHO_N "(cached) $ECHO_C" >&6
27424else
27425
John Criswell7a73b802003-06-30 21:59:07 +000027426 ac_ext=cc
27427ac_cpp='$CXXCPP $CPPFLAGS'
27428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27431
27432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027433/* confdefs.h. */
27434_ACEOF
27435cat confdefs.h >>conftest.$ac_ext
27436cat >>conftest.$ac_ext <<_ACEOF
27437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027438#include <ext/hash_map>
27439#ifdef HAVE_NAMESPACES
27440using namespace std;
27441#endif
John Criswell7a73b802003-06-30 21:59:07 +000027442int
27443main ()
27444{
Brian Gaeke90583492003-11-10 03:06:28 +000027445hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027446 ;
27447 return 0;
27448}
27449_ACEOF
27450rm -f conftest.$ac_objext
27451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027452 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027459 { ac_try='test -z "$ac_cxx_werror_flag"
27460 || test ! -s conftest.err'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027467 { (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); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027472 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027473else
27474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027475sed 's/^/| /' conftest.$ac_ext >&5
27476
Brian Gaeke90583492003-11-10 03:06:28 +000027477ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027480 ac_ext=c
27481ac_cpp='$CPP $CPPFLAGS'
27482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27484ac_compiler_gnu=$ac_cv_c_compiler_gnu
27485
John Criswell7a73b802003-06-30 21:59:07 +000027486fi
Brian Gaeke90583492003-11-10 03:06:28 +000027487echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27488echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027489 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27490 then
John Criswell9f011862004-09-24 18:28:00 +000027491
27492cat >>confdefs.h <<\_ACEOF
27493#define HAVE_STD_EXT_HASH_MAP 1
27494_ACEOF
27495
27496 else
27497
27498cat >>confdefs.h <<\_ACEOF
27499#define HAVE_STD_EXT_HASH_MAP 0
27500_ACEOF
27501
Brian Gaeke90583492003-11-10 03:06:28 +000027502 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027503
Brian Gaeke90583492003-11-10 03:06:28 +000027504 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27505echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27506if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27507 echo $ECHO_N "(cached) $ECHO_C" >&6
27508else
27509
Brian Gaeke90583492003-11-10 03:06:28 +000027510 ac_ext=cc
27511ac_cpp='$CXXCPP $CPPFLAGS'
27512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27515
27516 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027517/* confdefs.h. */
27518_ACEOF
27519cat confdefs.h >>conftest.$ac_ext
27520cat >>conftest.$ac_ext <<_ACEOF
27521/* end confdefs.h. */
27522#include <ext/hash_map>
27523#ifdef HAVE_NAMESPACES
27524using namespace __gnu_cxx;
27525#endif
27526int
27527main ()
27528{
27529hash_map<int,int> t;
27530 ;
27531 return 0;
27532}
27533_ACEOF
27534rm -f conftest.$ac_objext
27535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027536 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027538 grep -v '^ *+' conftest.er1 >conftest.err
27539 rm -f conftest.er1
27540 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027543 { ac_try='test -z "$ac_cxx_werror_flag"
27544 || test ! -s conftest.err'
27545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552 (eval $ac_try) 2>&5
27553 ac_status=$?
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
27556 ac_cv_cxx_have_gnu_ext_hash_map=yes
27557else
27558 echo "$as_me: failed program was:" >&5
27559sed 's/^/| /' conftest.$ac_ext >&5
27560
27561ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027564 ac_ext=c
27565ac_cpp='$CPP $CPPFLAGS'
27566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27568ac_compiler_gnu=$ac_cv_c_compiler_gnu
27569
27570fi
27571echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27572echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027573 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27574 then
John Criswell9f011862004-09-24 18:28:00 +000027575
27576cat >>confdefs.h <<\_ACEOF
27577#define HAVE_GNU_EXT_HASH_MAP 1
27578_ACEOF
27579
27580 else
27581
27582cat >>confdefs.h <<\_ACEOF
27583#define HAVE_GNU_EXT_HASH_MAP 0
27584_ACEOF
27585
Brian Gaeke90583492003-11-10 03:06:28 +000027586 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027587
Brian Gaeke90583492003-11-10 03:06:28 +000027588 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27589echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27590if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592else
John Criswell7a73b802003-06-30 21:59:07 +000027593
Brian Gaeke90583492003-11-10 03:06:28 +000027594 ac_ext=cc
27595ac_cpp='$CXXCPP $CPPFLAGS'
27596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27599
27600 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027601/* confdefs.h. */
27602_ACEOF
27603cat confdefs.h >>conftest.$ac_ext
27604cat >>conftest.$ac_ext <<_ACEOF
27605/* end confdefs.h. */
27606#include <hash_map>
27607int
27608main ()
27609{
27610hash_map<int,int> t;
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615rm -f conftest.$ac_objext
27616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027617 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027619 grep -v '^ *+' conftest.er1 >conftest.err
27620 rm -f conftest.er1
27621 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027624 { ac_try='test -z "$ac_cxx_werror_flag"
27625 || test ! -s conftest.err'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; } &&
27631 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27634 ac_status=$?
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; }; then
27637 ac_cv_cxx_have_global_hash_map=yes
27638else
27639 echo "$as_me: failed program was:" >&5
27640sed 's/^/| /' conftest.$ac_ext >&5
27641
27642ac_cv_cxx_have_global_hash_map=no
27643fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027645 ac_ext=c
27646ac_cpp='$CPP $CPPFLAGS'
27647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27649ac_compiler_gnu=$ac_cv_c_compiler_gnu
27650
27651fi
27652echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27653echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027654 if test "$ac_cv_cxx_have_global_hash_map" = yes
27655 then
John Criswell9f011862004-09-24 18:28:00 +000027656
27657cat >>confdefs.h <<\_ACEOF
27658#define HAVE_GLOBAL_HASH_MAP 1
27659_ACEOF
27660
27661 else
27662
27663cat >>confdefs.h <<\_ACEOF
27664#define HAVE_GLOBAL_HASH_MAP 0
27665_ACEOF
27666
Brian Gaeke90583492003-11-10 03:06:28 +000027667 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027668
Brian Gaeke90583492003-11-10 03:06:28 +000027669echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27670echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27671if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673else
27674
John Criswell7a73b802003-06-30 21:59:07 +000027675 ac_ext=cc
27676ac_cpp='$CXXCPP $CPPFLAGS'
27677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27680
27681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027682/* confdefs.h. */
27683_ACEOF
27684cat confdefs.h >>conftest.$ac_ext
27685cat >>conftest.$ac_ext <<_ACEOF
27686/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027687#include <ext/hash_set>
27688#ifdef HAVE_NAMESPACES
27689using namespace std;
27690#endif
John Criswell7a73b802003-06-30 21:59:07 +000027691int
27692main ()
27693{
Brian Gaeke90583492003-11-10 03:06:28 +000027694hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027695 ;
27696 return 0;
27697}
27698_ACEOF
27699rm -f conftest.$ac_objext
27700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027701 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027703 grep -v '^ *+' conftest.er1 >conftest.err
27704 rm -f conftest.er1
27705 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027708 { ac_try='test -z "$ac_cxx_werror_flag"
27709 || test ! -s conftest.err'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27712 ac_status=$?
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; } &&
27715 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717 (eval $ac_try) 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027721 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027722else
27723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027724sed 's/^/| /' conftest.$ac_ext >&5
27725
Brian Gaeke90583492003-11-10 03:06:28 +000027726ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027729 ac_ext=c
27730ac_cpp='$CPP $CPPFLAGS'
27731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27733ac_compiler_gnu=$ac_cv_c_compiler_gnu
27734
27735fi
27736echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27737echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027738 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27739 then
John Criswell9f011862004-09-24 18:28:00 +000027740
27741cat >>confdefs.h <<\_ACEOF
27742#define HAVE_STD_EXT_HASH_SET 1
27743_ACEOF
27744
27745 else
27746
27747cat >>confdefs.h <<\_ACEOF
27748#define HAVE_STD_EXT_HASH_SET 0
27749_ACEOF
27750
Brian Gaeke90583492003-11-10 03:06:28 +000027751 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027752
Brian Gaeke90583492003-11-10 03:06:28 +000027753 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27754echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27755if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27756 echo $ECHO_N "(cached) $ECHO_C" >&6
27757else
27758
Brian Gaeke90583492003-11-10 03:06:28 +000027759 ac_ext=cc
27760ac_cpp='$CXXCPP $CPPFLAGS'
27761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27764
John Criswell7a73b802003-06-30 21:59:07 +000027765 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027766/* confdefs.h. */
27767_ACEOF
27768cat confdefs.h >>conftest.$ac_ext
27769cat >>conftest.$ac_ext <<_ACEOF
27770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027771#include <ext/hash_set>
27772#ifdef HAVE_NAMESPACES
27773using namespace __gnu_cxx;
27774#endif
John Criswell7a73b802003-06-30 21:59:07 +000027775int
27776main ()
27777{
Brian Gaeke90583492003-11-10 03:06:28 +000027778hash_set<int> t;
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext
27784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027785 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027787 grep -v '^ *+' conftest.er1 >conftest.err
27788 rm -f conftest.er1
27789 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027792 { ac_try='test -z "$ac_cxx_werror_flag"
27793 || test ! -s conftest.err'
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; } &&
27799 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027800 { (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); }; }; then
27805 ac_cv_cxx_have_gnu_ext_hash_set=yes
27806else
27807 echo "$as_me: failed program was:" >&5
27808sed 's/^/| /' conftest.$ac_ext >&5
27809
27810ac_cv_cxx_have_gnu_ext_hash_set=no
27811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027813 ac_ext=c
27814ac_cpp='$CPP $CPPFLAGS'
27815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27817ac_compiler_gnu=$ac_cv_c_compiler_gnu
27818
27819fi
27820echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27821echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027822 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27823 then
John Criswell9f011862004-09-24 18:28:00 +000027824
27825cat >>confdefs.h <<\_ACEOF
27826#define HAVE_GNU_EXT_HASH_SET 1
27827_ACEOF
27828
27829 else
27830
27831cat >>confdefs.h <<\_ACEOF
27832#define HAVE_GNU_EXT_HASH_SET 0
27833_ACEOF
27834
Brian Gaeke90583492003-11-10 03:06:28 +000027835 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027836
Brian Gaeke90583492003-11-10 03:06:28 +000027837 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27838echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27839if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27841else
27842
Brian Gaeke90583492003-11-10 03:06:28 +000027843 ac_ext=cc
27844ac_cpp='$CXXCPP $CPPFLAGS'
27845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27848
27849 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027850/* confdefs.h. */
27851_ACEOF
27852cat confdefs.h >>conftest.$ac_ext
27853cat >>conftest.$ac_ext <<_ACEOF
27854/* end confdefs.h. */
27855#include <hash_set>
27856int
27857main ()
27858{
John Criswell7a73b802003-06-30 21:59:07 +000027859hash_set<int> t; return 0;
27860 ;
27861 return 0;
27862}
27863_ACEOF
27864rm -f conftest.$ac_objext
27865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027866 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027867 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027868 grep -v '^ *+' conftest.er1 >conftest.err
27869 rm -f conftest.er1
27870 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027873 { ac_try='test -z "$ac_cxx_werror_flag"
27874 || test ! -s conftest.err'
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; } &&
27880 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027886 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027887else
27888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027889sed 's/^/| /' conftest.$ac_ext >&5
27890
Brian Gaeke90583492003-11-10 03:06:28 +000027891ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027892fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027894 ac_ext=c
27895ac_cpp='$CPP $CPPFLAGS'
27896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27898ac_compiler_gnu=$ac_cv_c_compiler_gnu
27899
John Criswell7a73b802003-06-30 21:59:07 +000027900fi
Brian Gaeke90583492003-11-10 03:06:28 +000027901echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27902echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027903 if test "$ac_cv_cxx_have_global_hash_set" = yes
27904 then
John Criswell9f011862004-09-24 18:28:00 +000027905
27906cat >>confdefs.h <<\_ACEOF
27907#define HAVE_GLOBAL_HASH_SET 1
27908_ACEOF
27909
27910 else
27911
27912cat >>confdefs.h <<\_ACEOF
27913#define HAVE_GLOBAL_HASH_SET 0
27914_ACEOF
27915
Brian Gaeke90583492003-11-10 03:06:28 +000027916 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027917
John Criswell7a73b802003-06-30 21:59:07 +000027918echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27919echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27920if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27921 echo $ECHO_N "(cached) $ECHO_C" >&6
27922else
27923
John Criswell7a73b802003-06-30 21:59:07 +000027924 ac_ext=cc
27925ac_cpp='$CXXCPP $CPPFLAGS'
27926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27929
27930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027931/* confdefs.h. */
27932_ACEOF
27933cat confdefs.h >>conftest.$ac_ext
27934cat >>conftest.$ac_ext <<_ACEOF
27935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027936#include <iterator>
27937#ifdef HAVE_NAMESPACES
27938using namespace std;
27939#endif
John Criswell7a73b802003-06-30 21:59:07 +000027940int
27941main ()
27942{
27943iterator<int,int,int> t; return 0;
27944 ;
27945 return 0;
27946}
27947_ACEOF
27948rm -f conftest.$ac_objext
27949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027950 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027951 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027952 grep -v '^ *+' conftest.er1 >conftest.err
27953 rm -f conftest.er1
27954 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027957 { ac_try='test -z "$ac_cxx_werror_flag"
27958 || test ! -s conftest.err'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27970 ac_cv_cxx_have_std_iterator=yes
27971else
27972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027973sed 's/^/| /' conftest.$ac_ext >&5
27974
John Criswell7a73b802003-06-30 21:59:07 +000027975ac_cv_cxx_have_std_iterator=no
27976fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027978 ac_ext=c
27979ac_cpp='$CPP $CPPFLAGS'
27980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27982ac_compiler_gnu=$ac_cv_c_compiler_gnu
27983
27984
27985fi
27986echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27987echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000027988if test "$ac_cv_cxx_have_std_iterator" = yes
27989then
John Criswell40468462004-09-24 21:19:06 +000027990
27991cat >>confdefs.h <<\_ACEOF
27992#define HAVE_STD_ITERATOR 1
27993_ACEOF
27994
27995else
27996
27997cat >>confdefs.h <<\_ACEOF
27998#define HAVE_STD_ITERATOR 0
27999_ACEOF
28000
John Criswell7a73b802003-06-30 21:59:07 +000028001fi
28002
28003echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28004echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28005if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28007else
28008
John Criswell7a73b802003-06-30 21:59:07 +000028009 ac_ext=cc
28010ac_cpp='$CXXCPP $CPPFLAGS'
28011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28014
28015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028021#include <iterator>
28022#ifdef HAVE_NAMESPACES
28023using namespace std;
28024#endif
John Criswell7a73b802003-06-30 21:59:07 +000028025int
28026main ()
28027{
John Criswellc78022e2003-07-29 19:11:58 +000028028bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028029 ;
28030 return 0;
28031}
28032_ACEOF
28033rm -f conftest.$ac_objext
28034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028035 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028042 { ac_try='test -z "$ac_cxx_werror_flag"
28043 || test ! -s conftest.err'
28044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; } &&
28049 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28051 (eval $ac_try) 2>&5
28052 ac_status=$?
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); }; }; then
28055 ac_cv_cxx_have_bi_iterator=yes
28056else
28057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028058sed 's/^/| /' conftest.$ac_ext >&5
28059
John Criswell7a73b802003-06-30 21:59:07 +000028060ac_cv_cxx_have_bi_iterator=no
28061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028063 ac_ext=c
28064ac_cpp='$CPP $CPPFLAGS'
28065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067ac_compiler_gnu=$ac_cv_c_compiler_gnu
28068
28069
28070fi
28071echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28072echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028073if test "$ac_cv_cxx_have_bi_iterator" = yes
28074then
John Criswell40468462004-09-24 21:19:06 +000028075
28076cat >>confdefs.h <<\_ACEOF
28077#define HAVE_BI_ITERATOR 1
28078_ACEOF
28079
28080else
28081
28082cat >>confdefs.h <<\_ACEOF
28083#define HAVE_BI_ITERATOR 0
28084_ACEOF
28085
John Criswell7a73b802003-06-30 21:59:07 +000028086fi
28087
28088echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28089echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28090if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28092else
28093
John Criswell7a73b802003-06-30 21:59:07 +000028094 ac_ext=cc
28095ac_cpp='$CXXCPP $CPPFLAGS'
28096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28099
28100 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028101/* confdefs.h. */
28102_ACEOF
28103cat confdefs.h >>conftest.$ac_ext
28104cat >>conftest.$ac_ext <<_ACEOF
28105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028106#include <iterator>
28107#ifdef HAVE_NAMESPACES
28108using namespace std;
28109#endif
John Criswell7a73b802003-06-30 21:59:07 +000028110int
28111main ()
28112{
John Criswellc78022e2003-07-29 19:11:58 +000028113forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028114 ;
28115 return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext
28119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028120 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028122 grep -v '^ *+' conftest.er1 >conftest.err
28123 rm -f conftest.er1
28124 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028127 { ac_try='test -z "$ac_cxx_werror_flag"
28128 || test ! -s conftest.err'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_cv_cxx_have_fwd_iterator=yes
28141else
28142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028143sed 's/^/| /' conftest.$ac_ext >&5
28144
John Criswell7a73b802003-06-30 21:59:07 +000028145ac_cv_cxx_have_fwd_iterator=no
28146fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028148 ac_ext=c
28149ac_cpp='$CPP $CPPFLAGS'
28150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28152ac_compiler_gnu=$ac_cv_c_compiler_gnu
28153
28154
28155fi
28156echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28157echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028158if test "$ac_cv_cxx_have_fwd_iterator" = yes
28159then
John Criswell40468462004-09-24 21:19:06 +000028160
28161cat >>confdefs.h <<\_ACEOF
28162#define HAVE_FWD_ITERATOR 1
28163_ACEOF
28164
28165else
28166
28167cat >>confdefs.h <<\_ACEOF
28168#define HAVE_FWD_ITERATOR 0
28169_ACEOF
28170
John Criswell7a73b802003-06-30 21:59:07 +000028171fi
28172
28173
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028174echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28175echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28176if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28177 echo $ECHO_N "(cached) $ECHO_C" >&6
28178else
28179 ac_ext=cc
28180ac_cpp='$CXXCPP $CPPFLAGS'
28181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28184
Reid Spencerabec8f92004-10-27 23:03:44 +000028185 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
28191#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028192int
28193main ()
28194{
28195float f; isnan(f);
28196 ;
28197 return 0;
28198}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028199_ACEOF
28200rm -f conftest.$ac_objext
28201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028202 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028209 { ac_try='test -z "$ac_cxx_werror_flag"
28210 || test ! -s conftest.err'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; } &&
28216 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; }; then
28222 ac_cv_func_isnan_in_math_h=yes
28223else
28224 echo "$as_me: failed program was:" >&5
28225sed 's/^/| /' conftest.$ac_ext >&5
28226
28227ac_cv_func_isnan_in_math_h=no
28228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028230 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028231ac_cpp='$CPP $CPPFLAGS'
28232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28234ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235
28236fi
28237echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28238echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028239
28240
28241if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028242
28243cat >>confdefs.h <<\_ACEOF
28244#define HAVE_ISNAN_IN_MATH_H 1
28245_ACEOF
28246
Reid Spencerabec8f92004-10-27 23:03:44 +000028247fi
28248
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028249echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28250echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28251if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28252 echo $ECHO_N "(cached) $ECHO_C" >&6
28253else
28254 ac_ext=cc
28255ac_cpp='$CXXCPP $CPPFLAGS'
28256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28259
Reid Spencerabec8f92004-10-27 23:03:44 +000028260 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
28266#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028267int
28268main ()
28269{
28270float f; isnan(f);
28271 ;
28272 return 0;
28273}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028274_ACEOF
28275rm -f conftest.$ac_objext
28276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028277 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028278 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028279 grep -v '^ *+' conftest.er1 >conftest.err
28280 rm -f conftest.er1
28281 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028284 { ac_try='test -z "$ac_cxx_werror_flag"
28285 || test ! -s conftest.err'
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; } &&
28291 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_func_isnan_in_cmath=yes
28298else
28299 echo "$as_me: failed program was:" >&5
28300sed 's/^/| /' conftest.$ac_ext >&5
28301
28302ac_cv_func_isnan_in_cmath=no
28303fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028305 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028306ac_cpp='$CPP $CPPFLAGS'
28307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310
28311fi
28312echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28313echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028314
28315if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028316
28317cat >>confdefs.h <<\_ACEOF
28318#define HAVE_ISNAN_IN_CMATH 1
28319_ACEOF
28320
Reid Spencerabec8f92004-10-27 23:03:44 +000028321fi
28322
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028323echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28324echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28325if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 ac_ext=cc
28329ac_cpp='$CXXCPP $CPPFLAGS'
28330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28333
Reid Spencerabec8f92004-10-27 23:03:44 +000028334 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028335/* confdefs.h. */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h. */
28340#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028341int
28342main ()
28343{
28344float f; std::isnan(f);
28345 ;
28346 return 0;
28347}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028348_ACEOF
28349rm -f conftest.$ac_objext
28350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028351 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028358 { ac_try='test -z "$ac_cxx_werror_flag"
28359 || test ! -s conftest.err'
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28362 ac_status=$?
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; } &&
28365 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28368 ac_status=$?
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; }; then
28371 ac_cv_func_std_isnan_in_cmath=yes
28372else
28373 echo "$as_me: failed program was:" >&5
28374sed 's/^/| /' conftest.$ac_ext >&5
28375
28376ac_cv_func_std_isnan_in_cmath=no
28377fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028379 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028380ac_cpp='$CPP $CPPFLAGS'
28381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28383ac_compiler_gnu=$ac_cv_c_compiler_gnu
28384
28385fi
28386echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28387echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028388
28389if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028390
28391cat >>confdefs.h <<\_ACEOF
28392#define HAVE_STD_ISNAN_IN_CMATH 1
28393_ACEOF
28394
Reid Spencerabec8f92004-10-27 23:03:44 +000028395fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028396
28397
Brian Gaeke52a551d2004-07-21 03:14:12 +000028398echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28399echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28400if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403 ac_ext=cc
28404ac_cpp='$CXXCPP $CPPFLAGS'
28405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28408
Reid Spencerabec8f92004-10-27 23:03:44 +000028409 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028410/* confdefs.h. */
28411_ACEOF
28412cat confdefs.h >>conftest.$ac_ext
28413cat >>conftest.$ac_ext <<_ACEOF
28414/* end confdefs.h. */
28415#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028416int
28417main ()
28418{
28419float f; isinf(f);
28420 ;
28421 return 0;
28422}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028423_ACEOF
28424rm -f conftest.$ac_objext
28425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028426 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028433 { ac_try='test -z "$ac_cxx_werror_flag"
28434 || test ! -s conftest.err'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 ac_cv_func_isinf_in_math_h=yes
28447else
28448 echo "$as_me: failed program was:" >&5
28449sed 's/^/| /' conftest.$ac_ext >&5
28450
28451ac_cv_func_isinf_in_math_h=no
28452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028454 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028455ac_cpp='$CPP $CPPFLAGS'
28456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28458ac_compiler_gnu=$ac_cv_c_compiler_gnu
28459
28460fi
28461echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28462echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028463
28464if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028465
28466cat >>confdefs.h <<\_ACEOF
28467#define HAVE_ISINF_IN_MATH_H 1
28468_ACEOF
28469
Reid Spencerabec8f92004-10-27 23:03:44 +000028470fi
28471
Brian Gaeke52a551d2004-07-21 03:14:12 +000028472echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28473echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28474if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28475 echo $ECHO_N "(cached) $ECHO_C" >&6
28476else
28477 ac_ext=cc
28478ac_cpp='$CXXCPP $CPPFLAGS'
28479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28482
Reid Spencerabec8f92004-10-27 23:03:44 +000028483 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
28489#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028490int
28491main ()
28492{
28493float f; isinf(f);
28494 ;
28495 return 0;
28496}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028497_ACEOF
28498rm -f conftest.$ac_objext
28499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028500 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028501 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028507 { ac_try='test -z "$ac_cxx_werror_flag"
28508 || test ! -s conftest.err'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 ac_cv_func_isinf_in_cmath=yes
28521else
28522 echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
28525ac_cv_func_isinf_in_cmath=no
28526fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028528 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028529ac_cpp='$CPP $CPPFLAGS'
28530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28532ac_compiler_gnu=$ac_cv_c_compiler_gnu
28533
28534fi
28535echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28536echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028537
28538if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028539
28540cat >>confdefs.h <<\_ACEOF
28541#define HAVE_ISINF_IN_CMATH 1
28542_ACEOF
28543
Reid Spencerabec8f92004-10-27 23:03:44 +000028544fi
28545
Brian Gaeke52a551d2004-07-21 03:14:12 +000028546echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28547echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28548if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551 ac_ext=cc
28552ac_cpp='$CXXCPP $CPPFLAGS'
28553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28556
Reid Spencerabec8f92004-10-27 23:03:44 +000028557 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028558/* confdefs.h. */
28559_ACEOF
28560cat confdefs.h >>conftest.$ac_ext
28561cat >>conftest.$ac_ext <<_ACEOF
28562/* end confdefs.h. */
28563#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028564int
28565main ()
28566{
28567float f; std::isinf(f)}
28568 ;
28569 return 0;
28570}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028571_ACEOF
28572rm -f conftest.$ac_objext
28573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028574 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028576 grep -v '^ *+' conftest.er1 >conftest.err
28577 rm -f conftest.er1
28578 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028581 { ac_try='test -z "$ac_cxx_werror_flag"
28582 || test ! -s conftest.err'
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; } &&
28588 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; }; then
28594 ac_cv_func_std_isinf_in_cmath=yes
28595else
28596 echo "$as_me: failed program was:" >&5
28597sed 's/^/| /' conftest.$ac_ext >&5
28598
28599ac_cv_func_std_isinf_in_cmath=no
28600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028602 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028603ac_cpp='$CPP $CPPFLAGS'
28604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28606ac_compiler_gnu=$ac_cv_c_compiler_gnu
28607
28608fi
28609echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28610echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028611
28612if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028613
28614cat >>confdefs.h <<\_ACEOF
28615#define HAVE_STD_ISINF_IN_CMATH 1
28616_ACEOF
28617
Reid Spencerabec8f92004-10-27 23:03:44 +000028618fi
28619
Brian Gaeked59a6472004-07-21 03:33:58 +000028620echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28621echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28622if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28623 echo $ECHO_N "(cached) $ECHO_C" >&6
28624else
28625 ac_ext=cc
28626ac_cpp='$CXXCPP $CPPFLAGS'
28627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28630
Reid Spencerabec8f92004-10-27 23:03:44 +000028631 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028632/* confdefs.h. */
28633_ACEOF
28634cat confdefs.h >>conftest.$ac_ext
28635cat >>conftest.$ac_ext <<_ACEOF
28636/* end confdefs.h. */
28637#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028638int
28639main ()
28640{
28641float f; finite(f);
28642 ;
28643 return 0;
28644}
Brian Gaeked59a6472004-07-21 03:33:58 +000028645_ACEOF
28646rm -f conftest.$ac_objext
28647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028648 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028655 { ac_try='test -z "$ac_cxx_werror_flag"
28656 || test ! -s conftest.err'
28657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28658 (eval $ac_try) 2>&5
28659 ac_status=$?
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); }; } &&
28662 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; }; then
28668 ac_cv_func_finite_in_ieeefp_h=yes
28669else
28670 echo "$as_me: failed program was:" >&5
28671sed 's/^/| /' conftest.$ac_ext >&5
28672
28673ac_cv_func_finite_in_ieeefp_h=no
28674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028676 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028677ac_cpp='$CPP $CPPFLAGS'
28678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28680ac_compiler_gnu=$ac_cv_c_compiler_gnu
28681
28682fi
28683echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28684echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028685
Brian Gaeke6802b552004-10-28 05:06:45 +000028686if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028687
28688cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028689#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028690_ACEOF
28691
Reid Spencerabec8f92004-10-27 23:03:44 +000028692fi
28693
28694
28695
John Criswell7a73b802003-06-30 21:59:07 +000028696
28697
28698for ac_header in stdlib.h unistd.h
28699do
28700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28701if eval "test \"\${$as_ac_Header+set}\" = set"; then
28702 echo "$as_me:$LINENO: checking for $ac_header" >&5
28703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28704if eval "test \"\${$as_ac_Header+set}\" = set"; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706fi
28707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28709else
28710 # Is the header compilable?
28711echo "$as_me:$LINENO: checking $ac_header usability" >&5
28712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28713cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028714/* confdefs.h. */
28715_ACEOF
28716cat confdefs.h >>conftest.$ac_ext
28717cat >>conftest.$ac_ext <<_ACEOF
28718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028719$ac_includes_default
28720#include <$ac_header>
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_c_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_header_compiler=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_header_compiler=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 +000028752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28753echo "${ECHO_T}$ac_header_compiler" >&6
28754
28755# Is the header present?
28756echo "$as_me:$LINENO: checking $ac_header presence" >&5
28757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028764#include <$ac_header>
28765_ACEOF
28766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28768 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028769 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028777 else
28778 ac_cpp_err=
28779 fi
28780else
28781 ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28785else
28786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028787sed 's/^/| /' conftest.$ac_ext >&5
28788
John Criswell7a73b802003-06-30 21:59:07 +000028789 ac_header_preproc=no
28790fi
28791rm -f conftest.err conftest.$ac_ext
28792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28793echo "${ECHO_T}$ac_header_preproc" >&6
28794
28795# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28797 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28802 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028803 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028804 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028817 (
28818 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028819## ----------------------------------- ##
28820## Report this to llvmbugs@cs.uiuc.edu ##
28821## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028822_ASBOX
28823 ) |
28824 sed "s/^/$as_me: WARNING: /" >&2
28825 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028826esac
28827echo "$as_me:$LINENO: checking for $ac_header" >&5
28828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28829if eval "test \"\${$as_ac_Header+set}\" = set"; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28831else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028832 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028833fi
28834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28836
28837fi
28838if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841_ACEOF
28842
28843fi
28844
28845done
28846
28847
28848for ac_func in getpagesize
28849do
28850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851echo "$as_me:$LINENO: checking for $ac_func" >&5
28852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28853if eval "test \"\${$as_ac_var+set}\" = set"; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28855else
28856 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028857/* confdefs.h. */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28864#define $ac_func innocuous_$ac_func
28865
John Criswell7a73b802003-06-30 21:59:07 +000028866/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028870
John Criswell0c38eaf2003-09-10 15:17:25 +000028871#ifdef __STDC__
28872# include <limits.h>
28873#else
28874# include <assert.h>
28875#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028876
28877#undef $ac_func
28878
John Criswell7a73b802003-06-30 21:59:07 +000028879/* Override any gcc2 internal prototype to avoid an error. */
28880#ifdef __cplusplus
28881extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028882{
John Criswell7a73b802003-06-30 21:59:07 +000028883#endif
28884/* We use char because int might match the return type of a gcc2
28885 builtin and then its argument prototype would still apply. */
28886char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028887/* The GNU C library defines this for functions which it implements
28888 to always fail with ENOSYS. Some functions are actually named
28889 something starting with __ and the normal name is an alias. */
28890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28891choke me
28892#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028893char (*f) () = $ac_func;
28894#endif
28895#ifdef __cplusplus
28896}
John Criswell7a73b802003-06-30 21:59:07 +000028897#endif
28898
John Criswell0c38eaf2003-09-10 15:17:25 +000028899int
28900main ()
28901{
28902return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028903 ;
28904 return 0;
28905}
28906_ACEOF
28907rm -f conftest.$ac_objext conftest$ac_exeext
28908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028909 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028911 grep -v '^ *+' conftest.er1 >conftest.err
28912 rm -f conftest.er1
28913 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028916 { ac_try='test -z "$ac_c_werror_flag"
28917 || test ! -s conftest.err'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; } &&
28923 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925 (eval $ac_try) 2>&5
28926 ac_status=$?
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
28929 eval "$as_ac_var=yes"
28930else
28931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028932sed 's/^/| /' conftest.$ac_ext >&5
28933
John Criswell7a73b802003-06-30 21:59:07 +000028934eval "$as_ac_var=no"
28935fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028936rm -f conftest.err conftest.$ac_objext \
28937 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028938fi
28939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28940echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28941if test `eval echo '${'$as_ac_var'}'` = yes; then
28942 cat >>confdefs.h <<_ACEOF
28943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28944_ACEOF
28945
28946fi
28947done
28948
28949echo "$as_me:$LINENO: checking for working mmap" >&5
28950echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28951if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28953else
28954 if test "$cross_compiling" = yes; then
28955 ac_cv_func_mmap_fixed_mapped=no
28956else
28957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028958/* confdefs.h. */
28959_ACEOF
28960cat confdefs.h >>conftest.$ac_ext
28961cat >>conftest.$ac_ext <<_ACEOF
28962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028963$ac_includes_default
28964/* malloc might have been renamed as rpl_malloc. */
28965#undef malloc
28966
28967/* Thanks to Mike Haertel and Jim Avera for this test.
28968 Here is a matrix of mmap possibilities:
28969 mmap private not fixed
28970 mmap private fixed at somewhere currently unmapped
28971 mmap private fixed at somewhere already mapped
28972 mmap shared not fixed
28973 mmap shared fixed at somewhere currently unmapped
28974 mmap shared fixed at somewhere already mapped
28975 For private mappings, we should verify that changes cannot be read()
28976 back from the file, nor mmap's back from the file at a different
28977 address. (There have been systems where private was not correctly
28978 implemented like the infamous i386 svr4.0, and systems where the
28979 VM page cache was not coherent with the file system buffer cache
28980 like early versions of FreeBSD and possibly contemporary NetBSD.)
28981 For shared mappings, we should conversely verify that changes get
28982 propagated back to all the places they're supposed to be.
28983
28984 Grep wants private fixed already mapped.
28985 The main things grep needs to know about mmap are:
28986 * does it exist and is it safe to write into the mmap'd area
28987 * how to use it (BSD variants) */
28988
28989#include <fcntl.h>
28990#include <sys/mman.h>
28991
28992#if !STDC_HEADERS && !HAVE_STDLIB_H
28993char *malloc ();
28994#endif
28995
28996/* This mess was copied from the GNU getpagesize.h. */
28997#if !HAVE_GETPAGESIZE
28998/* Assume that all systems that can run configure have sys/param.h. */
28999# if !HAVE_SYS_PARAM_H
29000# define HAVE_SYS_PARAM_H 1
29001# endif
29002
29003# ifdef _SC_PAGESIZE
29004# define getpagesize() sysconf(_SC_PAGESIZE)
29005# else /* no _SC_PAGESIZE */
29006# if HAVE_SYS_PARAM_H
29007# include <sys/param.h>
29008# ifdef EXEC_PAGESIZE
29009# define getpagesize() EXEC_PAGESIZE
29010# else /* no EXEC_PAGESIZE */
29011# ifdef NBPG
29012# define getpagesize() NBPG * CLSIZE
29013# ifndef CLSIZE
29014# define CLSIZE 1
29015# endif /* no CLSIZE */
29016# else /* no NBPG */
29017# ifdef NBPC
29018# define getpagesize() NBPC
29019# else /* no NBPC */
29020# ifdef PAGESIZE
29021# define getpagesize() PAGESIZE
29022# endif /* PAGESIZE */
29023# endif /* no NBPC */
29024# endif /* no NBPG */
29025# endif /* no EXEC_PAGESIZE */
29026# else /* no HAVE_SYS_PARAM_H */
29027# define getpagesize() 8192 /* punt totally */
29028# endif /* no HAVE_SYS_PARAM_H */
29029# endif /* no _SC_PAGESIZE */
29030
29031#endif /* no HAVE_GETPAGESIZE */
29032
29033int
29034main ()
29035{
29036 char *data, *data2, *data3;
29037 int i, pagesize;
29038 int fd;
29039
29040 pagesize = getpagesize ();
29041
29042 /* First, make a file with some known garbage in it. */
29043 data = (char *) malloc (pagesize);
29044 if (!data)
29045 exit (1);
29046 for (i = 0; i < pagesize; ++i)
29047 *(data + i) = rand ();
29048 umask (0);
29049 fd = creat ("conftest.mmap", 0600);
29050 if (fd < 0)
29051 exit (1);
29052 if (write (fd, data, pagesize) != pagesize)
29053 exit (1);
29054 close (fd);
29055
29056 /* Next, try to mmap the file at a fixed address which already has
29057 something else allocated at it. If we can, also make sure that
29058 we see the same garbage. */
29059 fd = open ("conftest.mmap", O_RDWR);
29060 if (fd < 0)
29061 exit (1);
29062 data2 = (char *) malloc (2 * pagesize);
29063 if (!data2)
29064 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029065 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029066 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029067 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029068 exit (1);
29069 for (i = 0; i < pagesize; ++i)
29070 if (*(data + i) != *(data2 + i))
29071 exit (1);
29072
29073 /* Finally, make sure that changes to the mapped area do not
29074 percolate back to the file as seen by read(). (This is a bug on
29075 some variants of i386 svr4.0.) */
29076 for (i = 0; i < pagesize; ++i)
29077 *(data2 + i) = *(data2 + i) + 1;
29078 data3 = (char *) malloc (pagesize);
29079 if (!data3)
29080 exit (1);
29081 if (read (fd, data3, pagesize) != pagesize)
29082 exit (1);
29083 for (i = 0; i < pagesize; ++i)
29084 if (*(data + i) != *(data3 + i))
29085 exit (1);
29086 close (fd);
29087 exit (0);
29088}
29089_ACEOF
29090rm -f conftest$ac_exeext
29091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092 (eval $ac_link) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101 ac_cv_func_mmap_fixed_mapped=yes
29102else
29103 echo "$as_me: program exited with status $ac_status" >&5
29104echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029105sed 's/^/| /' conftest.$ac_ext >&5
29106
John Criswell7a73b802003-06-30 21:59:07 +000029107( exit $ac_status )
29108ac_cv_func_mmap_fixed_mapped=no
29109fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029111fi
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29114echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29115if test $ac_cv_func_mmap_fixed_mapped = yes; then
29116
29117cat >>confdefs.h <<\_ACEOF
29118#define HAVE_MMAP 1
29119_ACEOF
29120
29121fi
29122rm -f conftest.mmap
29123
29124echo "$as_me:$LINENO: checking for mmap of files" >&5
29125echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29126if test "${ac_cv_func_mmap_file+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29128else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029129 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029130ac_cpp='$CPP $CPPFLAGS'
29131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29133ac_compiler_gnu=$ac_cv_c_compiler_gnu
29134
29135 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029136 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029137else
29138 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029139
Reid Spencer777ce172004-09-20 04:09:56 +000029140 /* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
29145
John Criswell7a73b802003-06-30 21:59:07 +000029146#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029147#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029148#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029149
29150int
29151main ()
29152{
John Criswell7a73b802003-06-30 21:59:07 +000029153
29154 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029155 fd = creat ("foo",0777);
29156 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29157 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029158 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029159 ;
29160 return 0;
29161}
John Criswell7a73b802003-06-30 21:59:07 +000029162_ACEOF
29163rm -f conftest$ac_exeext
29164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29165 (eval $ac_link) 2>&5
29166 ac_status=$?
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; }; then
29174 ac_cv_func_mmap_file=yes
29175else
29176 echo "$as_me: program exited with status $ac_status" >&5
29177echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029178sed 's/^/| /' conftest.$ac_ext >&5
29179
John Criswell7a73b802003-06-30 21:59:07 +000029180( exit $ac_status )
29181ac_cv_func_mmap_file=no
29182fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029183rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029184fi
29185 ac_ext=c
29186ac_cpp='$CPP $CPPFLAGS'
29187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29189ac_compiler_gnu=$ac_cv_c_compiler_gnu
29190
29191
29192fi
29193echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29194echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29195if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029196
29197cat >>confdefs.h <<\_ACEOF
29198#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029199_ACEOF
29200
29201 MMAP_FILE=yes
29202
29203fi
29204
John Criswell7a73b802003-06-30 21:59:07 +000029205echo "$as_me:$LINENO: checking for mprotect" >&5
29206echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29207if test "${ac_cv_func_mprotect+set}" = set; then
29208 echo $ECHO_N "(cached) $ECHO_C" >&6
29209else
29210 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029211/* confdefs.h. */
29212_ACEOF
29213cat confdefs.h >>conftest.$ac_ext
29214cat >>conftest.$ac_ext <<_ACEOF
29215/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029216/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29218#define mprotect innocuous_mprotect
29219
John Criswell7a73b802003-06-30 21:59:07 +000029220/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029221 which can conflict with char mprotect (); below.
29222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29223 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029224
John Criswell0c38eaf2003-09-10 15:17:25 +000029225#ifdef __STDC__
29226# include <limits.h>
29227#else
29228# include <assert.h>
29229#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029230
29231#undef mprotect
29232
John Criswell7a73b802003-06-30 21:59:07 +000029233/* Override any gcc2 internal prototype to avoid an error. */
29234#ifdef __cplusplus
29235extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029236{
John Criswell7a73b802003-06-30 21:59:07 +000029237#endif
29238/* We use char because int might match the return type of a gcc2
29239 builtin and then its argument prototype would still apply. */
29240char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029241/* The GNU C library defines this for functions which it implements
29242 to always fail with ENOSYS. Some functions are actually named
29243 something starting with __ and the normal name is an alias. */
29244#if defined (__stub_mprotect) || defined (__stub___mprotect)
29245choke me
29246#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029247char (*f) () = mprotect;
29248#endif
29249#ifdef __cplusplus
29250}
John Criswell7a73b802003-06-30 21:59:07 +000029251#endif
29252
John Criswell0c38eaf2003-09-10 15:17:25 +000029253int
29254main ()
29255{
29256return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029257 ;
29258 return 0;
29259}
29260_ACEOF
29261rm -f conftest.$ac_objext conftest$ac_exeext
29262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029263 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029264 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029265 grep -v '^ *+' conftest.er1 >conftest.err
29266 rm -f conftest.er1
29267 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029270 { ac_try='test -z "$ac_c_werror_flag"
29271 || test ! -s conftest.err'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 ac_cv_func_mprotect=yes
29284else
29285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029286sed 's/^/| /' conftest.$ac_ext >&5
29287
John Criswell7a73b802003-06-30 21:59:07 +000029288ac_cv_func_mprotect=no
29289fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029290rm -f conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029292fi
29293echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29294echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29295if test $ac_cv_func_mprotect = yes; then
29296 :
29297else
29298 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29299echo "$as_me: error: Function mprotect() required but not found" >&2;}
29300 { (exit 1); exit 1; }; }
29301fi
29302
29303
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029304if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029305then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029306 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29307echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029308fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029309if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029310then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029311 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29312echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029313fi
John Criswell7a73b802003-06-30 21:59:07 +000029314
29315
Brian Gaekef3b24102003-11-16 18:38:14 +000029316echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29317echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029318if test "${llvm_cv_llvmgcc+set}" = set; then
29319 echo $ECHO_N "(cached) $ECHO_C" >&6
29320else
29321 llvm_cv_llvmgcc='llvmgcc_not_found'
29322if test -d "$LLVMGCCDIR" ; then
29323 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29324 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29325 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029326fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029327fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029328echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29329echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29330
Brian Gaekef3b24102003-11-16 18:38:14 +000029331echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29332echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029333if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29335else
29336 llvm_cv_llvmgcc_sanity="no"
29337if test -x "$llvm_cv_llvmgcc" ; then
29338 cp /dev/null conftest.c
29339 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29340 if test $? -eq 0 ; then
29341 llvm_cv_llvmgcc_sanity="yes"
29342 fi
29343 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029344fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029345fi
29346echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29347echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29348
29349if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29350 LLVMGCC="$llvm_cv_llvmgcc"
29351
29352 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29353 LLVMCC1=$llvmcc1path
29354
29355 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29356 LLVMCC1PLUS=$llvmcc1pluspath
29357
Brian Gaekef3b24102003-11-16 18:38:14 +000029358fi
29359
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029360SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029361
29362
Reid Spencere9de0912004-08-20 09:03:57 +000029363# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029364# information into substitutions that will end up in Makefile.config.in
29365# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029366eval LLVM_PREFIX="${prefix}";
29367eval LLVM_BINDIR="${prefix}/bin";
29368eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029369eval LLVM_DATADIR="${prefix}/share/llvm";
29370eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29371eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029372eval LLVM_INCLUDEDIR="${prefix}/include";
29373eval LLVM_INFODIR="${prefix}/info";
29374eval LLVM_MANDIR="${prefix}/man";
29375LLVM_CONFIGTIME=`date`
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029387# Place the various directores into the config.h file as #defines so that we
29388# can know about the installation paths within LLVM.
29389
Reid Spencere9de0912004-08-20 09:03:57 +000029390cat >>confdefs.h <<_ACEOF
29391#define LLVM_PREFIX "$LLVM_PREFIX"
29392_ACEOF
29393
29394
29395cat >>confdefs.h <<_ACEOF
29396#define LLVM_BINDIR "$LLVM_BINDIR"
29397_ACEOF
29398
29399
29400cat >>confdefs.h <<_ACEOF
29401#define LLVM_LIBDIR "$LLVM_LIBDIR"
29402_ACEOF
29403
29404
29405cat >>confdefs.h <<_ACEOF
29406#define LLVM_DATADIR "$LLVM_DATADIR"
29407_ACEOF
29408
29409
29410cat >>confdefs.h <<_ACEOF
29411#define LLVM_DATADIR "$LLVM_DOCSDIR"
29412_ACEOF
29413
29414
29415cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029416#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029417_ACEOF
29418
29419
29420cat >>confdefs.h <<_ACEOF
29421#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29422_ACEOF
29423
29424
29425cat >>confdefs.h <<_ACEOF
29426#define LLVM_INFODIR "$LLVM_INFODIR"
29427_ACEOF
29428
29429
29430cat >>confdefs.h <<_ACEOF
29431#define LLVM_MANDIR "$LLVM_MANDIR"
29432_ACEOF
29433
29434
29435cat >>confdefs.h <<_ACEOF
29436#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29437_ACEOF
29438
29439
Reid Spencerca767402004-12-13 02:16:51 +000029440cat >>confdefs.h <<_ACEOF
29441#define LLVMGCCDIR "$LLVMGCCDIR"
29442_ACEOF
29443
29444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029445
29446 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29447
29448
29449 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29450
29451 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29452
29453 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29454
29455 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29456
29457 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29458
29459
29460 ac_config_files="$ac_config_files Makefile.config"
29461
29462
29463 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29464
29465
Reid Spencer1f319422004-11-29 04:56:35 +000029466 ac_config_files="$ac_config_files docs/doxygen.cfg"
29467
29468
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029469 ac_config_commands="$ac_config_commands Makefile"
29470
29471
29472 ac_config_commands="$ac_config_commands Makefile.common"
29473
29474
29475 ac_config_commands="$ac_config_commands examples/Makefile"
29476
29477
29478 ac_config_commands="$ac_config_commands lib/Makefile"
29479
29480
29481 ac_config_commands="$ac_config_commands runtime/Makefile"
29482
29483
29484 ac_config_commands="$ac_config_commands test/Makefile"
29485
29486
29487 ac_config_commands="$ac_config_commands test/Makefile.tests"
29488
29489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029490 ac_config_commands="$ac_config_commands tools/Makefile"
29491
29492
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029493 ac_config_commands="$ac_config_commands utils/Makefile"
29494
29495
29496 ac_config_commands="$ac_config_commands projects/Makefile"
29497
29498
29499
John Criswell7a73b802003-06-30 21:59:07 +000029500cat >confcache <<\_ACEOF
29501# This file is a shell script that caches the results of configure
29502# tests run on this system so they can be shared between configure
29503# scripts and configure runs, see configure's option --config-cache.
29504# It is not useful on other systems. If it contains results you don't
29505# want to keep, you may remove or edit it.
29506#
29507# config.status only pays attention to the cache file if you give it
29508# the --recheck option to rerun configure.
29509#
John Criswell0c38eaf2003-09-10 15:17:25 +000029510# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029511# loading this file, other *unset* `ac_cv_foo' will be assigned the
29512# following values.
29513
29514_ACEOF
29515
29516# The following way of writing the cache mishandles newlines in values,
29517# but we know of no workaround that is simple, portable, and efficient.
29518# So, don't put newlines in cache variables' values.
29519# Ultrix sh set writes to stderr and can't be redirected directly,
29520# and sets the high bit in the cache file unless we assign to the vars.
29521{
29522 (set) 2>&1 |
29523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29524 *ac_space=\ *)
29525 # `set' does not quote correctly, so add quotes (double-quote
29526 # substitution turns \\\\ into \\, and sed turns \\ into \).
29527 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029528 "s/'/'\\\\''/g;
29529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029530 ;;
29531 *)
29532 # `set' quotes correctly as required by POSIX, so do not add quotes.
29533 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029534 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029535 ;;
29536 esac;
29537} |
29538 sed '
29539 t clear
29540 : clear
29541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29542 t end
29543 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29544 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029545if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029546 if test -w $cache_file; then
29547 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29548 cat confcache >$cache_file
29549 else
29550 echo "not updating unwritable cache $cache_file"
29551 fi
29552fi
29553rm -f confcache
29554
29555test "x$prefix" = xNONE && prefix=$ac_default_prefix
29556# Let make expand exec_prefix.
29557test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29558
29559# VPATH may cause trouble with some makes, so we remove $(srcdir),
29560# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29561# trailing colons and then remove the whole line if VPATH becomes empty
29562# (actually we leave an empty line to preserve line numbers).
29563if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029565s/:*\$(srcdir):*/:/;
29566s/:*\${srcdir}:*/:/;
29567s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029568s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029569s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029570s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029571}'
29572fi
29573
29574DEFS=-DHAVE_CONFIG_H
29575
John Criswell0c38eaf2003-09-10 15:17:25 +000029576ac_libobjs=
29577ac_ltlibobjs=
29578for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29579 # 1. Remove the extension, and $U if already installed.
29580 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029581 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029582 # 2. Add them.
29583 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29584 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29585done
29586LIBOBJS=$ac_libobjs
29587
29588LTLIBOBJS=$ac_ltlibobjs
29589
29590
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029591if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29592 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29593Usually this means the macro was only invoked conditionally." >&5
29594echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29595Usually this means the macro was only invoked conditionally." >&2;}
29596 { (exit 1); exit 1; }; }
29597fi
29598if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29599 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29600Usually this means the macro was only invoked conditionally." >&5
29601echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29602Usually this means the macro was only invoked conditionally." >&2;}
29603 { (exit 1); exit 1; }; }
29604fi
John Criswell7a73b802003-06-30 21:59:07 +000029605
29606: ${CONFIG_STATUS=./config.status}
29607ac_clean_files_save=$ac_clean_files
29608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29609{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29610echo "$as_me: creating $CONFIG_STATUS" >&6;}
29611cat >$CONFIG_STATUS <<_ACEOF
29612#! $SHELL
29613# Generated by $as_me.
29614# Run this file to recreate the current configuration.
29615# Compiler output produced by configure, useful for debugging
29616# configure, is in config.log if it exists.
29617
29618debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029619ac_cs_recheck=false
29620ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029621SHELL=\${CONFIG_SHELL-$SHELL}
29622_ACEOF
29623
29624cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029625## --------------------- ##
29626## M4sh Initialization. ##
29627## --------------------- ##
29628
29629# Be Bourne compatible
29630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29631 emulate sh
29632 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29634 # is contrary to our usage. Disable this feature.
29635 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029636elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29637 set -o posix
29638fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029639DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029640
John Criswell7a73b802003-06-30 21:59:07 +000029641# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029643 as_unset=unset
29644else
29645 as_unset=false
29646fi
29647
John Criswell0c38eaf2003-09-10 15:17:25 +000029648
29649# Work around bugs in pre-3.0 UWIN ksh.
29650$as_unset ENV MAIL MAILPATH
29651PS1='$ '
29652PS2='> '
29653PS4='+ '
29654
29655# NLS nuisances.
29656for as_var in \
29657 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29658 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29659 LC_TELEPHONE LC_TIME
29660do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029661 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029662 eval $as_var=C; export $as_var
29663 else
29664 $as_unset $as_var
29665 fi
29666done
29667
29668# Required to use basename.
29669if expr a : '\(a\)' >/dev/null 2>&1; then
29670 as_expr=expr
29671else
29672 as_expr=false
29673fi
29674
29675if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29676 as_basename=basename
29677else
29678 as_basename=false
29679fi
John Criswell7a73b802003-06-30 21:59:07 +000029680
29681
29682# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029683as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29685 X"$0" : 'X\(//\)$' \| \
29686 X"$0" : 'X\(/\)$' \| \
29687 . : '\(.\)' 2>/dev/null ||
29688echo X/"$0" |
29689 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29690 /^X\/\(\/\/\)$/{ s//\1/; q; }
29691 /^X\/\(\/\).*/{ s//\1/; q; }
29692 s/.*/./; q'`
29693
John Criswell0c38eaf2003-09-10 15:17:25 +000029694
John Criswell7a73b802003-06-30 21:59:07 +000029695# PATH needs CR, and LINENO needs CR and PATH.
29696# Avoid depending upon Character Ranges.
29697as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29699as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29700as_cr_digits='0123456789'
29701as_cr_alnum=$as_cr_Letters$as_cr_digits
29702
29703# The user is always right.
29704if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029705 echo "#! /bin/sh" >conf$$.sh
29706 echo "exit 0" >>conf$$.sh
29707 chmod +x conf$$.sh
29708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029709 PATH_SEPARATOR=';'
29710 else
29711 PATH_SEPARATOR=:
29712 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029713 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029714fi
29715
29716
29717 as_lineno_1=$LINENO
29718 as_lineno_2=$LINENO
29719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29720 test "x$as_lineno_1" != "x$as_lineno_2" &&
29721 test "x$as_lineno_3" = "x$as_lineno_2" || {
29722 # Find who we are. Look in the path if we contain no path at all
29723 # relative or not.
29724 case $0 in
29725 *[\\/]* ) as_myself=$0 ;;
29726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29727for as_dir in $PATH
29728do
29729 IFS=$as_save_IFS
29730 test -z "$as_dir" && as_dir=.
29731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29732done
29733
29734 ;;
29735 esac
29736 # We did not find ourselves, most probably we were run as `sh COMMAND'
29737 # in which case we are not to be found in the path.
29738 if test "x$as_myself" = x; then
29739 as_myself=$0
29740 fi
29741 if test ! -f "$as_myself"; then
29742 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29743echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29744 { (exit 1); exit 1; }; }
29745 fi
29746 case $CONFIG_SHELL in
29747 '')
29748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29749for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29750do
29751 IFS=$as_save_IFS
29752 test -z "$as_dir" && as_dir=.
29753 for as_base in sh bash ksh sh5; do
29754 case $as_dir in
29755 /*)
29756 if ("$as_dir/$as_base" -c '
29757 as_lineno_1=$LINENO
29758 as_lineno_2=$LINENO
29759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29760 test "x$as_lineno_1" != "x$as_lineno_2" &&
29761 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029762 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29763 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029764 CONFIG_SHELL=$as_dir/$as_base
29765 export CONFIG_SHELL
29766 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29767 fi;;
29768 esac
29769 done
29770done
29771;;
29772 esac
29773
29774 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29775 # uniformly replaced by the line number. The first 'sed' inserts a
29776 # line-number line before each line; the second 'sed' does the real
29777 # work. The second script uses 'N' to pair each line-number line
29778 # with the numbered line, and appends trailing '-' during
29779 # substitution so that $LINENO is not a special case at line end.
29780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29781 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29782 sed '=' <$as_myself |
29783 sed '
29784 N
29785 s,$,-,
29786 : loop
29787 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29788 t loop
29789 s,-$,,
29790 s,^['$as_cr_digits']*\n,,
29791 ' >$as_me.lineno &&
29792 chmod +x $as_me.lineno ||
29793 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29794echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29795 { (exit 1); exit 1; }; }
29796
29797 # Don't try to exec as it changes $[0], causing all sort of problems
29798 # (the dirname of $[0] is not the place where we might find the
29799 # original and so on. Autoconf is especially sensible to this).
29800 . ./$as_me.lineno
29801 # Exit status is that of the last command.
29802 exit
29803}
29804
29805
29806case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29807 *c*,-n*) ECHO_N= ECHO_C='
29808' ECHO_T=' ' ;;
29809 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29810 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29811esac
29812
29813if expr a : '\(a\)' >/dev/null 2>&1; then
29814 as_expr=expr
29815else
29816 as_expr=false
29817fi
29818
29819rm -f conf$$ conf$$.exe conf$$.file
29820echo >conf$$.file
29821if ln -s conf$$.file conf$$ 2>/dev/null; then
29822 # We could just check for DJGPP; but this test a) works b) is more generic
29823 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29824 if test -f conf$$.exe; then
29825 # Don't use ln at all; we don't have any links
29826 as_ln_s='cp -p'
29827 else
29828 as_ln_s='ln -s'
29829 fi
29830elif ln conf$$.file conf$$ 2>/dev/null; then
29831 as_ln_s=ln
29832else
29833 as_ln_s='cp -p'
29834fi
29835rm -f conf$$ conf$$.exe conf$$.file
29836
John Criswell0c38eaf2003-09-10 15:17:25 +000029837if mkdir -p . 2>/dev/null; then
29838 as_mkdir_p=:
29839else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029840 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029841 as_mkdir_p=false
29842fi
29843
John Criswell7a73b802003-06-30 21:59:07 +000029844as_executable_p="test -f"
29845
29846# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029848
29849# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029851
29852
29853# IFS
29854# We need space, tab and new line, in precisely that order.
29855as_nl='
29856'
29857IFS=" $as_nl"
29858
29859# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029860$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029861
29862exec 6>&1
29863
29864# Open the log real soon, to keep \$[0] and so on meaningful, and to
29865# report actual input values of CONFIG_FILES etc. instead of their
29866# values after options handling. Logging --version etc. is OK.
29867exec 5>>config.log
29868{
29869 echo
29870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29871## Running $as_me. ##
29872_ASBOX
29873} >&5
29874cat >&5 <<_CSEOF
29875
Reid Spencerabec8f92004-10-27 23:03:44 +000029876This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029877generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029878
29879 CONFIG_FILES = $CONFIG_FILES
29880 CONFIG_HEADERS = $CONFIG_HEADERS
29881 CONFIG_LINKS = $CONFIG_LINKS
29882 CONFIG_COMMANDS = $CONFIG_COMMANDS
29883 $ $0 $@
29884
29885_CSEOF
29886echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29887echo >&5
29888_ACEOF
29889
29890# Files that config.status was made for.
29891if test -n "$ac_config_files"; then
29892 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29893fi
29894
29895if test -n "$ac_config_headers"; then
29896 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29897fi
29898
29899if test -n "$ac_config_links"; then
29900 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29901fi
29902
29903if test -n "$ac_config_commands"; then
29904 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29905fi
29906
29907cat >>$CONFIG_STATUS <<\_ACEOF
29908
29909ac_cs_usage="\
29910\`$as_me' instantiates files from templates according to the
29911current configuration.
29912
29913Usage: $0 [OPTIONS] [FILE]...
29914
29915 -h, --help print this help, then exit
29916 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000029917 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000029918 -d, --debug don't remove temporary files
29919 --recheck update $as_me by reconfiguring in the same conditions
29920 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029921 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000029922 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029923 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000029924
29925Configuration files:
29926$config_files
29927
29928Configuration headers:
29929$config_headers
29930
Reid Spencerde8c47f2004-08-29 19:35:28 +000029931Configuration links:
29932$config_links
29933
John Criswellc764fbc2003-09-06 15:17:13 +000029934Configuration commands:
29935$config_commands
29936
John Criswell7a73b802003-06-30 21:59:07 +000029937Report bugs to <bug-autoconf@gnu.org>."
29938_ACEOF
29939
29940cat >>$CONFIG_STATUS <<_ACEOF
29941ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000029942llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000029943configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000029944 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29945
Reid Spencer2706f8c2004-09-19 23:53:36 +000029946Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000029947This config.status script is free software; the Free Software Foundation
29948gives unlimited permission to copy, distribute and modify it."
29949srcdir=$srcdir
29950INSTALL="$INSTALL"
29951_ACEOF
29952
29953cat >>$CONFIG_STATUS <<\_ACEOF
29954# If no file are specified by the user, then we need to provide default
29955# value. By we need to know if files were specified by the user.
29956ac_need_defaults=:
29957while test $# != 0
29958do
29959 case $1 in
29960 --*=*)
29961 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29962 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029963 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000029964 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000029965 -*)
29966 ac_option=$1
29967 ac_optarg=$2
29968 ac_shift=shift
29969 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029970 *) # This is not an option, so the user has probably given explicit
29971 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000029972 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000029973 ac_need_defaults=false;;
29974 esac
29975
John Criswell0c38eaf2003-09-10 15:17:25 +000029976 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000029977 # Handling of the options.
29978_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000029979cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29981 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000029982 --version | --vers* | -V )
29983 echo "$ac_cs_version"; exit 0 ;;
29984 --he | --h)
29985 # Conflict between --help and --header
29986 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29987Try \`$0 --help' for more information." >&5
29988echo "$as_me: error: ambiguous option: $1
29989Try \`$0 --help' for more information." >&2;}
29990 { (exit 1); exit 1; }; };;
29991 --help | --hel | -h )
29992 echo "$ac_cs_usage"; exit 0 ;;
29993 --debug | --d* | -d )
29994 debug=: ;;
29995 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000029996 $ac_shift
29997 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000029998 ac_need_defaults=false;;
29999 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030000 $ac_shift
30001 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030002 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30005 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030006
30007 # This is an error.
30008 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30009Try \`$0 --help' for more information." >&5
30010echo "$as_me: error: unrecognized option: $1
30011Try \`$0 --help' for more information." >&2;}
30012 { (exit 1); exit 1; }; } ;;
30013
30014 *) ac_config_targets="$ac_config_targets $1" ;;
30015
30016 esac
30017 shift
30018done
30019
John Criswell0c38eaf2003-09-10 15:17:25 +000030020ac_configure_extra_args=
30021
30022if $ac_cs_silent; then
30023 exec 6>/dev/null
30024 ac_configure_extra_args="$ac_configure_extra_args --silent"
30025fi
30026
30027_ACEOF
30028cat >>$CONFIG_STATUS <<_ACEOF
30029if \$ac_cs_recheck; then
30030 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30031 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30032fi
30033
John Criswell7a73b802003-06-30 21:59:07 +000030034_ACEOF
30035
John Criswellc764fbc2003-09-06 15:17:13 +000030036cat >>$CONFIG_STATUS <<_ACEOF
30037#
30038# INIT-COMMANDS section.
30039#
John Criswell7a73b802003-06-30 21:59:07 +000030040
John Criswellc764fbc2003-09-06 15:17:13 +000030041${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30042${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030043${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030044${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030045${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030046${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30047${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030048${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030049${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030050${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030051
30052_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030053
30054
30055
30056cat >>$CONFIG_STATUS <<\_ACEOF
30057for ac_config_target in $ac_config_targets
30058do
30059 case "$ac_config_target" in
30060 # Handling of arguments.
30061 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030062 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30063 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30064 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30065 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030066 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030067 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030068 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30069 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030070 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030071 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030072 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030073 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30074 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030075 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030076 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030077 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030078 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030079 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030080 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30081 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030082 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30083 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030084 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30085echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30086 { (exit 1); exit 1; }; };;
30087 esac
30088done
30089
30090# If the user did not use the arguments to specify the items to instantiate,
30091# then the envvar interface is used. Set only those that are not.
30092# We use the long form for the default assignment because of an extremely
30093# bizarre bug on SunOS 4.1.3.
30094if $ac_need_defaults; then
30095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030097 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030098 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030099fi
30100
John Criswell0c38eaf2003-09-10 15:17:25 +000030101# Have a temporary directory for convenience. Make it in the build tree
30102# simply because there is no reason to put it here, and in addition,
30103# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030104# Create a temporary directory, and hook for its removal unless debugging.
30105$debug ||
30106{
30107 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30108 trap '{ (exit 1); exit 1; }' 1 2 13 15
30109}
30110
30111# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030112
John Criswell7a73b802003-06-30 21:59:07 +000030113{
John Criswell0c38eaf2003-09-10 15:17:25 +000030114 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030115 test -n "$tmp" && test -d "$tmp"
30116} ||
30117{
John Criswell0c38eaf2003-09-10 15:17:25 +000030118 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030119 (umask 077 && mkdir $tmp)
30120} ||
30121{
John Criswell0c38eaf2003-09-10 15:17:25 +000030122 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030123 { (exit 1); exit 1; }
30124}
30125
30126_ACEOF
30127
30128cat >>$CONFIG_STATUS <<_ACEOF
30129
30130#
30131# CONFIG_FILES section.
30132#
30133
30134# No need to generate the scripts if there are no CONFIG_FILES.
30135# This happens for instance when ./config.status config.h
30136if test -n "\$CONFIG_FILES"; then
30137 # Protect against being on the right side of a sed subst in config.status.
30138 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30139 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30140s,@SHELL@,$SHELL,;t t
30141s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30142s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30143s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30144s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30145s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30146s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30147s,@exec_prefix@,$exec_prefix,;t t
30148s,@prefix@,$prefix,;t t
30149s,@program_transform_name@,$program_transform_name,;t t
30150s,@bindir@,$bindir,;t t
30151s,@sbindir@,$sbindir,;t t
30152s,@libexecdir@,$libexecdir,;t t
30153s,@datadir@,$datadir,;t t
30154s,@sysconfdir@,$sysconfdir,;t t
30155s,@sharedstatedir@,$sharedstatedir,;t t
30156s,@localstatedir@,$localstatedir,;t t
30157s,@libdir@,$libdir,;t t
30158s,@includedir@,$includedir,;t t
30159s,@oldincludedir@,$oldincludedir,;t t
30160s,@infodir@,$infodir,;t t
30161s,@mandir@,$mandir,;t t
30162s,@build_alias@,$build_alias,;t t
30163s,@host_alias@,$host_alias,;t t
30164s,@target_alias@,$target_alias,;t t
30165s,@DEFS@,$DEFS,;t t
30166s,@ECHO_C@,$ECHO_C,;t t
30167s,@ECHO_N@,$ECHO_N,;t t
30168s,@ECHO_T@,$ECHO_T,;t t
30169s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030170s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030171s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030172s,@build@,$build,;t t
30173s,@build_cpu@,$build_cpu,;t t
30174s,@build_vendor@,$build_vendor,;t t
30175s,@build_os@,$build_os,;t t
30176s,@host@,$host,;t t
30177s,@host_cpu@,$host_cpu,;t t
30178s,@host_vendor@,$host_vendor,;t t
30179s,@host_os@,$host_os,;t t
30180s,@target@,$target,;t t
30181s,@target_cpu@,$target_cpu,;t t
30182s,@target_vendor@,$target_vendor,;t t
30183s,@target_os@,$target_os,;t t
30184s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030185s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030186s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030187s,@CC@,$CC,;t t
30188s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030189s,@LDFLAGS@,$LDFLAGS,;t t
30190s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030191s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030192s,@EXEEXT@,$EXEEXT,;t t
30193s,@OBJEXT@,$OBJEXT,;t t
30194s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30195s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030196s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030197s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030198s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030199s,@CXX@,$CXX,;t t
30200s,@CXXFLAGS@,$CXXFLAGS,;t t
30201s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030202s,@LEX@,$LEX,;t t
30203s,@LEXLIB@,$LEXLIB,;t t
30204s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030205s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030206s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030207s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030208s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030209s,@LN_S@,$LN_S,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030210s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030211s,@FIND@,$FIND,;t t
30212s,@GREP@,$GREP,;t t
30213s,@MKDIR@,$MKDIR,;t t
30214s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030215s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030216s,@RANLIB@,$RANLIB,;t t
30217s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030218s,@RM@,$RM,;t t
30219s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030220s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030221s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30222s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30223s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030224s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030225s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030226s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030227s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030228s,@GROFF@,$GROFF,;t t
30229s,@GZIP@,$GZIP,;t t
30230s,@POD2HTML@,$POD2HTML,;t t
30231s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030232s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030233s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030234s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030235s,@EGREP@,$EGREP,;t t
30236s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30237s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30238s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30239s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30240s,@LIBADD_DL@,$LIBADD_DL,;t t
30241s,@ECHO@,$ECHO,;t t
30242s,@AR@,$AR,;t t
30243s,@ac_ct_AR@,$ac_ct_AR,;t t
30244s,@STRIP@,$STRIP,;t t
30245s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30246s,@CXXCPP@,$CXXCPP,;t t
30247s,@F77@,$F77,;t t
30248s,@FFLAGS@,$FFLAGS,;t t
30249s,@ac_ct_F77@,$ac_ct_F77,;t t
30250s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030251s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030252s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030253s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030254s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030255s,@LLVMCC1@,$LLVMCC1,;t t
30256s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030257s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030258s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30259s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30260s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30261s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30262s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30263s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30264s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30265s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30266s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30267s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030268s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030269s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030270CEOF
30271
30272_ACEOF
30273
30274 cat >>$CONFIG_STATUS <<\_ACEOF
30275 # Split the substitutions into bite-sized pieces for seds with
30276 # small command number limits, like on Digital OSF/1 and HP-UX.
30277 ac_max_sed_lines=48
30278 ac_sed_frag=1 # Number of current file.
30279 ac_beg=1 # First line for current file.
30280 ac_end=$ac_max_sed_lines # Line after last line for current file.
30281 ac_more_lines=:
30282 ac_sed_cmds=
30283 while $ac_more_lines; do
30284 if test $ac_beg -gt 1; then
30285 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30286 else
30287 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30288 fi
30289 if test ! -s $tmp/subs.frag; then
30290 ac_more_lines=false
30291 else
30292 # The purpose of the label and of the branching condition is to
30293 # speed up the sed processing (if there are no `@' at all, there
30294 # is no need to browse any of the substitutions).
30295 # These are the two extra sed commands mentioned above.
30296 (echo ':t
30297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30298 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030299 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030300 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030301 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030302 fi
30303 ac_sed_frag=`expr $ac_sed_frag + 1`
30304 ac_beg=$ac_end
30305 ac_end=`expr $ac_end + $ac_max_sed_lines`
30306 fi
30307 done
30308 if test -z "$ac_sed_cmds"; then
30309 ac_sed_cmds=cat
30310 fi
30311fi # test -n "$CONFIG_FILES"
30312
30313_ACEOF
30314cat >>$CONFIG_STATUS <<\_ACEOF
30315for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30317 case $ac_file in
30318 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030319 cat >$tmp/stdin
30320 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030322 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030324 * ) ac_file_in=$ac_file.in ;;
30325 esac
30326
30327 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30328 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30329$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030330 X"$ac_file" : 'X\(//\)[^/]' \| \
30331 X"$ac_file" : 'X\(//\)$' \| \
30332 X"$ac_file" : 'X\(/\)' \| \
30333 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030334echo X"$ac_file" |
30335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30337 /^X\(\/\/\)$/{ s//\1/; q; }
30338 /^X\(\/\).*/{ s//\1/; q; }
30339 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030340 { if $as_mkdir_p; then
30341 mkdir -p "$ac_dir"
30342 else
30343 as_dir="$ac_dir"
30344 as_dirs=
30345 while test ! -d "$as_dir"; do
30346 as_dirs="$as_dir $as_dirs"
30347 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030349 X"$as_dir" : 'X\(//\)[^/]' \| \
30350 X"$as_dir" : 'X\(//\)$' \| \
30351 X"$as_dir" : 'X\(/\)' \| \
30352 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030353echo X"$as_dir" |
30354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30356 /^X\(\/\/\)$/{ s//\1/; q; }
30357 /^X\(\/\).*/{ s//\1/; q; }
30358 s/.*/./; q'`
30359 done
30360 test ! -n "$as_dirs" || mkdir $as_dirs
30361 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30362echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30363 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030364
30365 ac_builddir=.
30366
30367if test "$ac_dir" != .; then
30368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30369 # A "../" for each directory in $ac_dir_suffix.
30370 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30371else
30372 ac_dir_suffix= ac_top_builddir=
30373fi
30374
30375case $srcdir in
30376 .) # No --srcdir option. We are building in place.
30377 ac_srcdir=.
30378 if test -z "$ac_top_builddir"; then
30379 ac_top_srcdir=.
30380 else
30381 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30382 fi ;;
30383 [\\/]* | ?:[\\/]* ) # Absolute path.
30384 ac_srcdir=$srcdir$ac_dir_suffix;
30385 ac_top_srcdir=$srcdir ;;
30386 *) # Relative path.
30387 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30388 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30389esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030390
30391# Do not use `cd foo && pwd` to compute absolute paths, because
30392# the directories may not exist.
30393case `pwd` in
30394.) ac_abs_builddir="$ac_dir";;
30395*)
30396 case "$ac_dir" in
30397 .) ac_abs_builddir=`pwd`;;
30398 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30399 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30400 esac;;
30401esac
30402case $ac_abs_builddir in
30403.) ac_abs_top_builddir=${ac_top_builddir}.;;
30404*)
30405 case ${ac_top_builddir}. in
30406 .) ac_abs_top_builddir=$ac_abs_builddir;;
30407 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30408 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30409 esac;;
30410esac
30411case $ac_abs_builddir in
30412.) ac_abs_srcdir=$ac_srcdir;;
30413*)
30414 case $ac_srcdir in
30415 .) ac_abs_srcdir=$ac_abs_builddir;;
30416 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30417 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30418 esac;;
30419esac
30420case $ac_abs_builddir in
30421.) ac_abs_top_srcdir=$ac_top_srcdir;;
30422*)
30423 case $ac_top_srcdir in
30424 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30425 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30426 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30427 esac;;
30428esac
John Criswell7a73b802003-06-30 21:59:07 +000030429
30430
30431 case $INSTALL in
30432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30433 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30434 esac
30435
30436 if test x"$ac_file" != x-; then
30437 { echo "$as_me:$LINENO: creating $ac_file" >&5
30438echo "$as_me: creating $ac_file" >&6;}
30439 rm -f "$ac_file"
30440 fi
30441 # Let's still pretend it is `configure' which instantiates (i.e., don't
30442 # use $as_me), people would be surprised to read:
30443 # /* config.h. Generated by config.status. */
30444 if test x"$ac_file" = x-; then
30445 configure_input=
30446 else
30447 configure_input="$ac_file. "
30448 fi
30449 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030450 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030451
30452 # First look for the input files in the build tree, otherwise in the
30453 # src tree.
30454 ac_file_inputs=`IFS=:
30455 for f in $ac_file_in; do
30456 case $f in
30457 -) echo $tmp/stdin ;;
30458 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030459 # Absolute (can't be DOS-style, as IFS=:)
30460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030461echo "$as_me: error: cannot find input file: $f" >&2;}
30462 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030464 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030465 if test -f "$f"; then
30466 # Build tree
30467 echo "$f"
30468 elif test -f "$srcdir/$f"; then
30469 # Source tree
30470 echo "$srcdir/$f"
30471 else
30472 # /dev/null tree
30473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030474echo "$as_me: error: cannot find input file: $f" >&2;}
30475 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030476 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030477 esac
30478 done` || { (exit 1); exit 1; }
30479_ACEOF
30480cat >>$CONFIG_STATUS <<_ACEOF
30481 sed "$ac_vpsub
30482$extrasub
30483_ACEOF
30484cat >>$CONFIG_STATUS <<\_ACEOF
30485:t
30486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30487s,@configure_input@,$configure_input,;t t
30488s,@srcdir@,$ac_srcdir,;t t
30489s,@abs_srcdir@,$ac_abs_srcdir,;t t
30490s,@top_srcdir@,$ac_top_srcdir,;t t
30491s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30492s,@builddir@,$ac_builddir,;t t
30493s,@abs_builddir@,$ac_abs_builddir,;t t
30494s,@top_builddir@,$ac_top_builddir,;t t
30495s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30496s,@INSTALL@,$ac_INSTALL,;t t
30497" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30498 rm -f $tmp/stdin
30499 if test x"$ac_file" != x-; then
30500 mv $tmp/out $ac_file
30501 else
30502 cat $tmp/out
30503 rm -f $tmp/out
30504 fi
30505
30506done
30507_ACEOF
30508cat >>$CONFIG_STATUS <<\_ACEOF
30509
30510#
30511# CONFIG_HEADER section.
30512#
30513
30514# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30515# NAME is the cpp macro being defined and VALUE is the value it is being given.
30516#
30517# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030518ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30519ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030520ac_dC=' '
30521ac_dD=',;t'
30522# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030523ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030524ac_uB='$,\1#\2define\3'
30525ac_uC=' '
30526ac_uD=',;t'
30527
30528for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30530 case $ac_file in
30531 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532 cat >$tmp/stdin
30533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030537 * ) ac_file_in=$ac_file.in ;;
30538 esac
30539
30540 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30541echo "$as_me: creating $ac_file" >&6;}
30542
30543 # First look for the input files in the build tree, otherwise in the
30544 # src tree.
30545 ac_file_inputs=`IFS=:
30546 for f in $ac_file_in; do
30547 case $f in
30548 -) echo $tmp/stdin ;;
30549 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030550 # Absolute (can't be DOS-style, as IFS=:)
30551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030552echo "$as_me: error: cannot find input file: $f" >&2;}
30553 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030554 # Do quote $f, to prevent DOS paths from being IFS'd.
30555 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030556 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030557 if test -f "$f"; then
30558 # Build tree
30559 echo "$f"
30560 elif test -f "$srcdir/$f"; then
30561 # Source tree
30562 echo "$srcdir/$f"
30563 else
30564 # /dev/null tree
30565 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030566echo "$as_me: error: cannot find input file: $f" >&2;}
30567 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030568 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030569 esac
30570 done` || { (exit 1); exit 1; }
30571 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030572 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030573
30574_ACEOF
30575
30576# Transform confdefs.h into two sed scripts, `conftest.defines' and
30577# `conftest.undefs', that substitutes the proper values into
30578# config.h.in to produce config.h. The first handles `#define'
30579# templates, and the second `#undef' templates.
30580# And first: Protect against being on the right side of a sed subst in
30581# config.status. Protect against being in an unquoted here document
30582# in config.status.
30583rm -f conftest.defines conftest.undefs
30584# Using a here document instead of a string reduces the quoting nightmare.
30585# Putting comments in sed scripts is not portable.
30586#
30587# `end' is used to avoid that the second main sed command (meant for
30588# 0-ary CPP macros) applies to n-ary macro definitions.
30589# See the Autoconf documentation for `clear'.
30590cat >confdef2sed.sed <<\_ACEOF
30591s/[\\&,]/\\&/g
30592s,[\\$`],\\&,g
30593t clear
30594: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030595s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030596t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030597s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030598: end
30599_ACEOF
30600# If some macros were called several times there might be several times
30601# the same #defines, which is useless. Nevertheless, we may not want to
30602# sort them, since we want the *last* AC-DEFINE to be honored.
30603uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30604sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30605rm -f confdef2sed.sed
30606
30607# This sed command replaces #undef with comments. This is necessary, for
30608# example, in the case of _POSIX_SOURCE, which is predefined and required
30609# on some systems where configure will not decide to define it.
30610cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030611s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030612_ACEOF
30613
30614# Break up conftest.defines because some shells have a limit on the size
30615# of here documents, and old seds have small limits too (100 cmds).
30616echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030617echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030618echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30619echo ' :' >>$CONFIG_STATUS
30620rm -f conftest.tail
30621while grep . conftest.defines >/dev/null
30622do
30623 # Write a limited-size here document to $tmp/defines.sed.
30624 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30625 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030626 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030627 # Work around the forget-to-reset-the-flag bug.
30628 echo 't clr' >>$CONFIG_STATUS
30629 echo ': clr' >>$CONFIG_STATUS
30630 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30631 echo 'CEOF
30632 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30633 rm -f $tmp/in
30634 mv $tmp/out $tmp/in
30635' >>$CONFIG_STATUS
30636 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30637 rm -f conftest.defines
30638 mv conftest.tail conftest.defines
30639done
30640rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030641echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030642echo >>$CONFIG_STATUS
30643
30644# Break up conftest.undefs because some shells have a limit on the size
30645# of here documents, and old seds have small limits too (100 cmds).
30646echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30647rm -f conftest.tail
30648while grep . conftest.undefs >/dev/null
30649do
30650 # Write a limited-size here document to $tmp/undefs.sed.
30651 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30652 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030653 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030654 # Work around the forget-to-reset-the-flag bug.
30655 echo 't clr' >>$CONFIG_STATUS
30656 echo ': clr' >>$CONFIG_STATUS
30657 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30658 echo 'CEOF
30659 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30660 rm -f $tmp/in
30661 mv $tmp/out $tmp/in
30662' >>$CONFIG_STATUS
30663 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30664 rm -f conftest.undefs
30665 mv conftest.tail conftest.undefs
30666done
30667rm -f conftest.undefs
30668
30669cat >>$CONFIG_STATUS <<\_ACEOF
30670 # Let's still pretend it is `configure' which instantiates (i.e., don't
30671 # use $as_me), people would be surprised to read:
30672 # /* config.h. Generated by config.status. */
30673 if test x"$ac_file" = x-; then
30674 echo "/* Generated by configure. */" >$tmp/config.h
30675 else
30676 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30677 fi
30678 cat $tmp/in >>$tmp/config.h
30679 rm -f $tmp/in
30680 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030681 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30683echo "$as_me: $ac_file is unchanged" >&6;}
30684 else
30685 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30686$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030687 X"$ac_file" : 'X\(//\)[^/]' \| \
30688 X"$ac_file" : 'X\(//\)$' \| \
30689 X"$ac_file" : 'X\(/\)' \| \
30690 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030691echo X"$ac_file" |
30692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30694 /^X\(\/\/\)$/{ s//\1/; q; }
30695 /^X\(\/\).*/{ s//\1/; q; }
30696 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030697 { if $as_mkdir_p; then
30698 mkdir -p "$ac_dir"
30699 else
30700 as_dir="$ac_dir"
30701 as_dirs=
30702 while test ! -d "$as_dir"; do
30703 as_dirs="$as_dir $as_dirs"
30704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030706 X"$as_dir" : 'X\(//\)[^/]' \| \
30707 X"$as_dir" : 'X\(//\)$' \| \
30708 X"$as_dir" : 'X\(/\)' \| \
30709 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030710echo X"$as_dir" |
30711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30713 /^X\(\/\/\)$/{ s//\1/; q; }
30714 /^X\(\/\).*/{ s//\1/; q; }
30715 s/.*/./; q'`
30716 done
30717 test ! -n "$as_dirs" || mkdir $as_dirs
30718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30719echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30720 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030721
30722 rm -f $ac_file
30723 mv $tmp/config.h $ac_file
30724 fi
30725 else
30726 cat $tmp/config.h
30727 rm -f $tmp/config.h
30728 fi
30729done
30730_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030731cat >>$CONFIG_STATUS <<\_ACEOF
30732
30733#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030734# CONFIG_LINKS section.
30735#
30736
30737for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30738 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30739 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30740
30741 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30742echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30743
30744 if test ! -r $srcdir/$ac_source; then
30745 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30746echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30747 { (exit 1); exit 1; }; }
30748 fi
30749 rm -f $ac_dest
30750
30751 # Make relative symlinks.
30752 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30753$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030754 X"$ac_dest" : 'X\(//\)[^/]' \| \
30755 X"$ac_dest" : 'X\(//\)$' \| \
30756 X"$ac_dest" : 'X\(/\)' \| \
30757 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030758echo X"$ac_dest" |
30759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30761 /^X\(\/\/\)$/{ s//\1/; q; }
30762 /^X\(\/\).*/{ s//\1/; q; }
30763 s/.*/./; q'`
30764 { if $as_mkdir_p; then
30765 mkdir -p "$ac_dest_dir"
30766 else
30767 as_dir="$ac_dest_dir"
30768 as_dirs=
30769 while test ! -d "$as_dir"; do
30770 as_dirs="$as_dir $as_dirs"
30771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030773 X"$as_dir" : 'X\(//\)[^/]' \| \
30774 X"$as_dir" : 'X\(//\)$' \| \
30775 X"$as_dir" : 'X\(/\)' \| \
30776 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030777echo X"$as_dir" |
30778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30780 /^X\(\/\/\)$/{ s//\1/; q; }
30781 /^X\(\/\).*/{ s//\1/; q; }
30782 s/.*/./; q'`
30783 done
30784 test ! -n "$as_dirs" || mkdir $as_dirs
30785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30786echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30787 { (exit 1); exit 1; }; }; }
30788
30789 ac_builddir=.
30790
30791if test "$ac_dest_dir" != .; then
30792 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30793 # A "../" for each directory in $ac_dir_suffix.
30794 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30795else
30796 ac_dir_suffix= ac_top_builddir=
30797fi
30798
30799case $srcdir in
30800 .) # No --srcdir option. We are building in place.
30801 ac_srcdir=.
30802 if test -z "$ac_top_builddir"; then
30803 ac_top_srcdir=.
30804 else
30805 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30806 fi ;;
30807 [\\/]* | ?:[\\/]* ) # Absolute path.
30808 ac_srcdir=$srcdir$ac_dir_suffix;
30809 ac_top_srcdir=$srcdir ;;
30810 *) # Relative path.
30811 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30812 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30813esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030814
30815# Do not use `cd foo && pwd` to compute absolute paths, because
30816# the directories may not exist.
30817case `pwd` in
30818.) ac_abs_builddir="$ac_dest_dir";;
30819*)
30820 case "$ac_dest_dir" in
30821 .) ac_abs_builddir=`pwd`;;
30822 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30823 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30824 esac;;
30825esac
30826case $ac_abs_builddir in
30827.) ac_abs_top_builddir=${ac_top_builddir}.;;
30828*)
30829 case ${ac_top_builddir}. in
30830 .) ac_abs_top_builddir=$ac_abs_builddir;;
30831 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30832 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30833 esac;;
30834esac
30835case $ac_abs_builddir in
30836.) ac_abs_srcdir=$ac_srcdir;;
30837*)
30838 case $ac_srcdir in
30839 .) ac_abs_srcdir=$ac_abs_builddir;;
30840 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30841 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30842 esac;;
30843esac
30844case $ac_abs_builddir in
30845.) ac_abs_top_srcdir=$ac_top_srcdir;;
30846*)
30847 case $ac_top_srcdir in
30848 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30849 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30850 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30851 esac;;
30852esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030853
30854
30855 case $srcdir in
30856 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30857 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30858 esac
30859
30860 # Try a symlink, then a hard link, then a copy.
30861 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30862 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30863 cp -p $srcdir/$ac_source $ac_dest ||
30864 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30865echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30866 { (exit 1); exit 1; }; }
30867done
30868_ACEOF
30869cat >>$CONFIG_STATUS <<\_ACEOF
30870
30871#
John Criswellc764fbc2003-09-06 15:17:13 +000030872# CONFIG_COMMANDS section.
30873#
30874for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30875 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30876 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30877 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30878$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030879 X"$ac_dest" : 'X\(//\)[^/]' \| \
30880 X"$ac_dest" : 'X\(//\)$' \| \
30881 X"$ac_dest" : 'X\(/\)' \| \
30882 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030883echo X"$ac_dest" |
30884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30886 /^X\(\/\/\)$/{ s//\1/; q; }
30887 /^X\(\/\).*/{ s//\1/; q; }
30888 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030889 { if $as_mkdir_p; then
30890 mkdir -p "$ac_dir"
30891 else
30892 as_dir="$ac_dir"
30893 as_dirs=
30894 while test ! -d "$as_dir"; do
30895 as_dirs="$as_dir $as_dirs"
30896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30897$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30898 X"$as_dir" : 'X\(//\)[^/]' \| \
30899 X"$as_dir" : 'X\(//\)$' \| \
30900 X"$as_dir" : 'X\(/\)' \| \
30901 . : '\(.\)' 2>/dev/null ||
30902echo X"$as_dir" |
30903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30905 /^X\(\/\/\)$/{ s//\1/; q; }
30906 /^X\(\/\).*/{ s//\1/; q; }
30907 s/.*/./; q'`
30908 done
30909 test ! -n "$as_dirs" || mkdir $as_dirs
30910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30911echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30912 { (exit 1); exit 1; }; }; }
30913
John Criswellc764fbc2003-09-06 15:17:13 +000030914 ac_builddir=.
30915
30916if test "$ac_dir" != .; then
30917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30918 # A "../" for each directory in $ac_dir_suffix.
30919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30920else
30921 ac_dir_suffix= ac_top_builddir=
30922fi
30923
30924case $srcdir in
30925 .) # No --srcdir option. We are building in place.
30926 ac_srcdir=.
30927 if test -z "$ac_top_builddir"; then
30928 ac_top_srcdir=.
30929 else
30930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30931 fi ;;
30932 [\\/]* | ?:[\\/]* ) # Absolute path.
30933 ac_srcdir=$srcdir$ac_dir_suffix;
30934 ac_top_srcdir=$srcdir ;;
30935 *) # Relative path.
30936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30938esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030939
30940# Do not use `cd foo && pwd` to compute absolute paths, because
30941# the directories may not exist.
30942case `pwd` in
30943.) ac_abs_builddir="$ac_dir";;
30944*)
30945 case "$ac_dir" in
30946 .) ac_abs_builddir=`pwd`;;
30947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30949 esac;;
30950esac
30951case $ac_abs_builddir in
30952.) ac_abs_top_builddir=${ac_top_builddir}.;;
30953*)
30954 case ${ac_top_builddir}. in
30955 .) ac_abs_top_builddir=$ac_abs_builddir;;
30956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30958 esac;;
30959esac
30960case $ac_abs_builddir in
30961.) ac_abs_srcdir=$ac_srcdir;;
30962*)
30963 case $ac_srcdir in
30964 .) ac_abs_srcdir=$ac_abs_builddir;;
30965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30967 esac;;
30968esac
30969case $ac_abs_builddir in
30970.) ac_abs_top_srcdir=$ac_top_srcdir;;
30971*)
30972 case $ac_top_srcdir in
30973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30976 esac;;
30977esac
John Criswellc764fbc2003-09-06 15:17:13 +000030978
30979
30980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30981echo "$as_me: executing $ac_dest commands" >&6;}
30982 case $ac_dest in
30983 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30984 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030985 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030986 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030987 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030988 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30989 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030990 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030991 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030992 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030993 esac
30994done
30995_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030996
30997cat >>$CONFIG_STATUS <<\_ACEOF
30998
30999{ (exit 0); exit 0; }
31000_ACEOF
31001chmod +x $CONFIG_STATUS
31002ac_clean_files=$ac_clean_files_save
31003
31004
31005# configure is writing to config.log, and then calls config.status.
31006# config.status does its own redirection, appending to config.log.
31007# Unfortunately, on DOS this fails, as config.log is still kept open
31008# by configure, so config.status won't be able to write to it; its
31009# output is simply discarded. So we exec the FD to /dev/null,
31010# effectively closing config.log, so it can be properly (re)opened and
31011# appended to by config.status. When coming back to configure, we
31012# need to make the FD available again.
31013if test "$no_create" != yes; then
31014 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031015 ac_config_status_args=
31016 test "$silent" = yes &&
31017 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031018 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031020 exec 5>>config.log
31021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31022 # would make configure fail if this is the last instruction.
31023 $ac_cs_success || { (exit 1); exit 1; }
31024fi
31025
John Criswell12399a12003-09-30 15:55:44 +000031026#
31027# CONFIG_SUBDIRS section.
31028#
31029if test "$no_recursion" != yes; then
31030
31031 # Remove --cache-file and --srcdir arguments so they do not pile up.
31032 ac_sub_configure_args=
31033 ac_prev=
31034 for ac_arg in $ac_configure_args; do
31035 if test -n "$ac_prev"; then
31036 ac_prev=
31037 continue
31038 fi
31039 case $ac_arg in
31040 -cache-file | --cache-file | --cache-fil | --cache-fi \
31041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31042 ac_prev=cache_file ;;
31043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31045 | --c=*)
31046 ;;
31047 --config-cache | -C)
31048 ;;
31049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31050 ac_prev=srcdir ;;
31051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31052 ;;
31053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31054 ac_prev=prefix ;;
31055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31056 ;;
31057 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31058 esac
31059 done
31060
31061 # Always prepend --prefix to ensure using the same prefix
31062 # in subdir configurations.
31063 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31064
31065 ac_popdir=`pwd`
31066 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31067
31068 # Do not complain, so a configure script can configure whichever
31069 # parts of a large source tree are present.
31070 test -d $srcdir/$ac_dir || continue
31071
31072 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31073echo "$as_me: configuring in $ac_dir" >&6;}
31074 { if $as_mkdir_p; then
31075 mkdir -p "$ac_dir"
31076 else
31077 as_dir="$ac_dir"
31078 as_dirs=
31079 while test ! -d "$as_dir"; do
31080 as_dirs="$as_dir $as_dirs"
31081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031083 X"$as_dir" : 'X\(//\)[^/]' \| \
31084 X"$as_dir" : 'X\(//\)$' \| \
31085 X"$as_dir" : 'X\(/\)' \| \
31086 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031087echo X"$as_dir" |
31088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31090 /^X\(\/\/\)$/{ s//\1/; q; }
31091 /^X\(\/\).*/{ s//\1/; q; }
31092 s/.*/./; q'`
31093 done
31094 test ! -n "$as_dirs" || mkdir $as_dirs
31095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31096echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31097 { (exit 1); exit 1; }; }; }
31098
31099 ac_builddir=.
31100
31101if test "$ac_dir" != .; then
31102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31103 # A "../" for each directory in $ac_dir_suffix.
31104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31105else
31106 ac_dir_suffix= ac_top_builddir=
31107fi
31108
31109case $srcdir in
31110 .) # No --srcdir option. We are building in place.
31111 ac_srcdir=.
31112 if test -z "$ac_top_builddir"; then
31113 ac_top_srcdir=.
31114 else
31115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31116 fi ;;
31117 [\\/]* | ?:[\\/]* ) # Absolute path.
31118 ac_srcdir=$srcdir$ac_dir_suffix;
31119 ac_top_srcdir=$srcdir ;;
31120 *) # Relative path.
31121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31123esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031124
31125# Do not use `cd foo && pwd` to compute absolute paths, because
31126# the directories may not exist.
31127case `pwd` in
31128.) ac_abs_builddir="$ac_dir";;
31129*)
31130 case "$ac_dir" in
31131 .) ac_abs_builddir=`pwd`;;
31132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31134 esac;;
31135esac
31136case $ac_abs_builddir in
31137.) ac_abs_top_builddir=${ac_top_builddir}.;;
31138*)
31139 case ${ac_top_builddir}. in
31140 .) ac_abs_top_builddir=$ac_abs_builddir;;
31141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31143 esac;;
31144esac
31145case $ac_abs_builddir in
31146.) ac_abs_srcdir=$ac_srcdir;;
31147*)
31148 case $ac_srcdir in
31149 .) ac_abs_srcdir=$ac_abs_builddir;;
31150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31152 esac;;
31153esac
31154case $ac_abs_builddir in
31155.) ac_abs_top_srcdir=$ac_top_srcdir;;
31156*)
31157 case $ac_top_srcdir in
31158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31161 esac;;
31162esac
John Criswell12399a12003-09-30 15:55:44 +000031163
31164
31165 cd $ac_dir
31166
31167 # Check for guested configure; otherwise get Cygnus style configure.
31168 if test -f $ac_srcdir/configure.gnu; then
31169 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31170 elif test -f $ac_srcdir/configure; then
31171 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31172 elif test -f $ac_srcdir/configure.in; then
31173 ac_sub_configure=$ac_configure
31174 else
31175 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31176echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31177 ac_sub_configure=
31178 fi
31179
31180 # The recursion is here.
31181 if test -n "$ac_sub_configure"; then
31182 # Make the cache file name correct relative to the subdirectory.
31183 case $cache_file in
31184 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31185 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031186 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031187 esac
31188
31189 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31190echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31191 # The eval makes quoting arguments work.
31192 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031193 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31194 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031195echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31196 { (exit 1); exit 1; }; }
31197 fi
31198
31199 cd $ac_popdir
31200 done
31201fi
31202
Brian Gaekef3b24102003-11-16 18:38:14 +000031203
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31205 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031206echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031207 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031208echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031210echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031211 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031212echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031213 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031214echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031216echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31217fi