blob: af7852c9a0cd92e92f984c2a612367d0db453470 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell392aaa32003-07-22 19:18:09 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell392aaa32003-07-22 19:18:09 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell392aaa32003-07-22 19:18:09 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswellf02dbf02003-07-22 20:07:49 +0000467ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED RM MKDIR DATE MV DOT ETAGS PURIFY ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
John Criswell392aaa32003-07-22 19:18:09 +0000468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
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# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell392aaa32003-07-22 19:18:09 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053 --with-objroot Location where object files should be placed
1054 (default is .)
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell392aaa32003-07-22 19:18:09 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell392aaa32003-07-22 19:18:09 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell392aaa32003-07-22 19:18:09 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell392aaa32003-07-22 19:18:09 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell392aaa32003-07-22 19:18:09 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell392aaa32003-07-22 19:18:09 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell392aaa32003-07-22 19:18:09 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$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 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell392aaa32003-07-22 19:18:09 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell392aaa32003-07-22 19:18:09 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell392aaa32003-07-22 19:18:09 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
John Criswell7a73b802003-06-30 21:59:07 +00001487
1488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
1514 ac_config_headers="$ac_config_headers include/Config/config.h"
1515
1516
1517
John Criswell7a73b802003-06-30 21:59:07 +00001518# Find a good install program. We prefer a C program (faster),
1519# so one script is as good as another. But avoid the broken or
1520# incompatible versions:
1521# SysV /etc/install, /usr/sbin/install
1522# SunOS /usr/etc/install
1523# IRIX /sbin/install
1524# AIX /bin/install
1525# AmigaOS /C/install, which installs bootblocks on floppy discs
1526# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1527# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1528# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1529# ./install, which can be erroneously created by make from ./install.sh.
1530echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1531echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1532if test -z "$INSTALL"; then
1533if test "${ac_cv_path_install+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537for as_dir in $PATH
1538do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 # Account for people who put trailing slashes in PATH elements.
1542case $as_dir/ in
1543 ./ | .// | /cC/* | \
1544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1545 /usr/ucb/* ) ;;
1546 *)
1547 # OSF1 and SCO ODT 3.0 have their own names for install.
1548 # Don't use installbsd from OSF since it installs stuff as root
1549 # by default.
1550 for ac_prog in ginstall scoinst install; do
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1553 if test $ac_prog = install &&
1554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1555 # AIX install. It has an incompatible calling convention.
1556 :
1557 elif test $ac_prog = install &&
1558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1559 # program-specific install script used by HP pwplus--don't use.
1560 :
1561 else
1562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1563 break 3
1564 fi
1565 fi
1566 done
1567 done
1568 ;;
1569esac
1570done
1571
1572
1573fi
1574 if test "${ac_cv_path_install+set}" = set; then
1575 INSTALL=$ac_cv_path_install
1576 else
1577 # As a last resort, use the slow shell script. We don't cache a
1578 # path for INSTALL within a source directory, because that will
1579 # break other packages using the cache if that directory is
1580 # removed, or if the path is relative.
1581 INSTALL=$ac_install_sh
1582 fi
1583fi
1584echo "$as_me:$LINENO: result: $INSTALL" >&5
1585echo "${ECHO_T}$INSTALL" >&6
1586
1587# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1588# It thinks the first close brace ends the variable substitution.
1589test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1590
1591test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1592
1593test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1594
1595
1596# Make sure we can run config.sub.
1597$ac_config_sub sun4 >/dev/null 2>&1 ||
1598 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1599echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602echo "$as_me:$LINENO: checking build system type" >&5
1603echo $ECHO_N "checking build system type... $ECHO_C" >&6
1604if test "${ac_cv_build+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 ac_cv_build_alias=$build_alias
1608test -z "$ac_cv_build_alias" &&
1609 ac_cv_build_alias=`$ac_config_guess`
1610test -z "$ac_cv_build_alias" &&
1611 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1612echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1613 { (exit 1); exit 1; }; }
1614ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1621echo "${ECHO_T}$ac_cv_build" >&6
1622build=$ac_cv_build
1623build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking host system type" >&5
1629echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_host_alias=$host_alias
1634test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643echo "${ECHO_T}$ac_cv_host" >&6
1644host=$ac_cv_host
1645host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking target system type" >&5
1651echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_target_alias=$target_alias
1656test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665echo "${ECHO_T}$ac_cv_target" >&6
1666target=$ac_cv_target
1667target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672# The aliases save the names the user supplied, while $host etc.
1673# will get canonicalized.
1674test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1676 NONENONEs,x,x, &&
1677 program_prefix=${target_alias}-
1678
1679case $build in
1680 *i*86*) OS=Linux
1681
John Criswellf02dbf02003-07-22 20:07:49 +00001682 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001683
1684 ;;
1685
1686 *sparc*) OS=SunOS
1687
1688 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1689
1690 ;;
1691
1692 *) OS=Unknown
1693
1694 ;;
1695esac
1696
1697case $target in
1698 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1699
1700 ;;
1701esac
1702
John Criswell76595452003-07-01 22:07:39 +00001703case $target in
1704 *i*86*) ARCH=x86
1705
1706 ;;
1707 *sparc*solaris*) ARCH=Sparc
1708
1709 ;;
1710esac
1711
John Criswell7a73b802003-06-30 21:59:07 +00001712
1713ac_ext=cc
1714ac_cpp='$CXXCPP $CPPFLAGS'
1715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1718if test -n "$ac_tool_prefix"; then
1719 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1720 do
1721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723echo "$as_me:$LINENO: checking for $ac_word" >&5
1724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_CXX+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 if test -n "$CXX"; then
1729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1730else
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742done
1743done
1744
1745fi
1746fi
1747CXX=$ac_cv_prog_CXX
1748if test -n "$CXX"; then
1749 echo "$as_me:$LINENO: result: $CXX" >&5
1750echo "${ECHO_T}$CXX" >&6
1751else
1752 echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756 test -n "$CXX" && break
1757 done
1758fi
1759if test -z "$CXX"; then
1760 ac_ct_CXX=$CXX
1761 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1762do
1763 # Extract the first word of "$ac_prog", so it can be a program name with args.
1764set dummy $ac_prog; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 if test -n "$ac_ct_CXX"; then
1771 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CXX="$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
1786
1787fi
1788fi
1789ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1790if test -n "$ac_ct_CXX"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1792echo "${ECHO_T}$ac_ct_CXX" >&6
1793else
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798 test -n "$ac_ct_CXX" && break
1799done
1800test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1801
1802 CXX=$ac_ct_CXX
1803fi
1804
1805
1806# Provide some information about the compiler.
1807echo "$as_me:$LINENO:" \
1808 "checking for C++ compiler version" >&5
1809ac_compiler=`set X $ac_compile; echo $2`
1810{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811 (eval $ac_compiler --version </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816 (eval $ac_compiler -v </dev/null >&5) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821 (eval $ac_compiler -V </dev/null >&5) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1825
1826cat >conftest.$ac_ext <<_ACEOF
1827#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00001828/* confdefs.h. */
1829_ACEOF
1830cat confdefs.h >>conftest.$ac_ext
1831cat >>conftest.$ac_ext <<_ACEOF
1832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00001833
John Criswell7a73b802003-06-30 21:59:07 +00001834int
1835main ()
1836{
1837
1838 ;
1839 return 0;
1840}
1841_ACEOF
1842ac_clean_files_save=$ac_clean_files
John Criswell392aaa32003-07-22 19:18:09 +00001843ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00001844# Try to create an executable without -o first, disregard a.out.
1845# It will help us diagnose broken compilers, and finding out an intuition
1846# of exeext.
1847echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1848echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1849ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1850if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1851 (eval $ac_link_default) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 # Find the output, starting from the most likely. This scheme is
1856# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1857# resort.
1858
1859# Be careful to initialize this variable, since it used to be cached.
1860# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1861ac_cv_exeext=
John Criswell392aaa32003-07-22 19:18:09 +00001862# b.out is created by i960 compilers.
1863for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1864do
1865 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001866 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00001867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1868 ;;
1869 conftest.$ac_ext )
1870 # This is the source file.
1871 ;;
1872 [ab].out )
1873 # We found the default executable, but exeext='' is most
1874 # certainly right.
1875 break;;
1876 *.* )
1877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878 # FIXME: I believe we export ac_cv_exeext for Libtool,
1879 # but it would be cool to find out if it's true. Does anybody
1880 # maintain Libtool? --akim.
1881 export ac_cv_exeext
1882 break;;
1883 * )
1884 break;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886done
1887else
1888 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00001889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: C++ compiler cannot create executables
1894See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001895 { (exit 77); exit 77; }; }
1896fi
1897
1898ac_exeext=$ac_cv_exeext
1899echo "$as_me:$LINENO: result: $ac_file" >&5
1900echo "${ECHO_T}$ac_file" >&6
1901
1902# Check the compiler produces executables we can run. If not, either
1903# the compiler is broken, or we cross compile.
1904echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1905echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1906# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1907# If not cross compiling, check that we can run a simple program.
1908if test "$cross_compiling" != yes; then
1909 if { ac_try='./$ac_file'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1911 (eval $ac_try) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1915 cross_compiling=no
1916 else
1917 if test "$cross_compiling" = maybe; then
1918 cross_compiling=yes
1919 else
1920 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00001921If you meant to cross compile, use \`--host'.
1922See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00001923echo "$as_me: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00001924If you meant to cross compile, use \`--host'.
1925See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001926 { (exit 1); exit 1; }; }
1927 fi
1928 fi
1929fi
1930echo "$as_me:$LINENO: result: yes" >&5
1931echo "${ECHO_T}yes" >&6
1932
John Criswell392aaa32003-07-22 19:18:09 +00001933rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_clean_files=$ac_clean_files_save
1935# Check the compiler produces executables we can run. If not, either
1936# the compiler is broken, or we cross compile.
1937echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1938echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1939echo "$as_me:$LINENO: result: $cross_compiling" >&5
1940echo "${ECHO_T}$cross_compiling" >&6
1941
1942echo "$as_me:$LINENO: checking for suffix of executables" >&5
1943echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1945 (eval $ac_link) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; then
1949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1950# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1951# work properly (i.e., refer to `conftest.exe'), while it won't with
1952# `rm'.
John Criswell392aaa32003-07-22 19:18:09 +00001953for ac_file in conftest.exe conftest conftest.*; do
1954 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001955 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00001956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00001957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1958 export ac_cv_exeext
1959 break;;
1960 * ) break;;
1961 esac
1962done
1963else
John Criswell392aaa32003-07-22 19:18:09 +00001964 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1965See \`config.log' for more details." >&5
1966echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1967See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001968 { (exit 1); exit 1; }; }
1969fi
1970
1971rm -f conftest$ac_cv_exeext
1972echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1973echo "${ECHO_T}$ac_cv_exeext" >&6
1974
1975rm -f conftest.$ac_ext
1976EXEEXT=$ac_cv_exeext
1977ac_exeext=$EXEEXT
1978echo "$as_me:$LINENO: checking for suffix of object files" >&5
1979echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1980if test "${ac_cv_objext+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983 cat >conftest.$ac_ext <<_ACEOF
1984#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00001985/* confdefs.h. */
1986_ACEOF
1987cat confdefs.h >>conftest.$ac_ext
1988cat >>conftest.$ac_ext <<_ACEOF
1989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00001990
John Criswell7a73b802003-06-30 21:59:07 +00001991int
1992main ()
1993{
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999rm -f conftest.o conftest.obj
2000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2006 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00002007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2009 break;;
2010 esac
2011done
2012else
2013 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2017See \`config.log' for more details." >&5
2018echo "$as_me: error: cannot compute suffix of object files: cannot compile
2019See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002020 { (exit 1); exit 1; }; }
2021fi
2022
2023rm -f conftest.$ac_cv_objext conftest.$ac_ext
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026echo "${ECHO_T}$ac_cv_objext" >&6
2027OBJEXT=$ac_cv_objext
2028ac_objext=$OBJEXT
2029echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 cat >conftest.$ac_ext <<_ACEOF
2035#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002041
John Criswell7a73b802003-06-30 21:59:07 +00002042int
2043main ()
2044{
2045#ifndef __GNUC__
2046 choke me
2047#endif
2048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053rm -f conftest.$ac_objext
2054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2065 ac_compiler_gnu=yes
2066else
2067 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002068sed 's/^/| /' conftest.$ac_ext >&5
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070ac_compiler_gnu=no
2071fi
2072rm -f conftest.$ac_objext conftest.$ac_ext
2073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2074
2075fi
2076echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2078GXX=`test $ac_compiler_gnu = yes && echo yes`
2079ac_test_CXXFLAGS=${CXXFLAGS+set}
2080ac_save_CXXFLAGS=$CXXFLAGS
2081CXXFLAGS="-g"
2082echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2083echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2084if test "${ac_cv_prog_cxx_g+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087 cat >conftest.$ac_ext <<_ACEOF
2088#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002089/* confdefs.h. */
2090_ACEOF
2091cat confdefs.h >>conftest.$ac_ext
2092cat >>conftest.$ac_ext <<_ACEOF
2093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095int
2096main ()
2097{
2098
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103rm -f conftest.$ac_objext
2104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_cv_prog_cxx_g=yes
2116else
2117 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002118sed 's/^/| /' conftest.$ac_ext >&5
2119
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_cv_prog_cxx_g=no
2121fi
2122rm -f conftest.$ac_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2125echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2126if test "$ac_test_CXXFLAGS" = set; then
2127 CXXFLAGS=$ac_save_CXXFLAGS
2128elif test $ac_cv_prog_cxx_g = yes; then
2129 if test "$GXX" = yes; then
2130 CXXFLAGS="-g -O2"
2131 else
2132 CXXFLAGS="-g"
2133 fi
2134else
2135 if test "$GXX" = yes; then
2136 CXXFLAGS="-O2"
2137 else
2138 CXXFLAGS=
2139 fi
2140fi
2141for ac_declaration in \
2142 ''\
2143 '#include <stdlib.h>' \
2144 'extern "C" void std::exit (int) throw (); using std::exit;' \
2145 'extern "C" void std::exit (int); using std::exit;' \
2146 'extern "C" void exit (int) throw ();' \
2147 'extern "C" void exit (int);' \
2148 'void exit (int);'
2149do
2150 cat >conftest.$ac_ext <<_ACEOF
2151#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002157#include <stdlib.h>
2158$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002159int
2160main ()
2161{
2162exit (42);
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 :
2180else
2181 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002182sed 's/^/| /' conftest.$ac_ext >&5
2183
John Criswell7a73b802003-06-30 21:59:07 +00002184continue
2185fi
2186rm -f conftest.$ac_objext conftest.$ac_ext
2187 cat >conftest.$ac_ext <<_ACEOF
2188#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002189/* confdefs.h. */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002194$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002195int
2196main ()
2197{
2198exit (42);
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 break
2216else
2217 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002218sed 's/^/| /' conftest.$ac_ext >&5
2219
John Criswell7a73b802003-06-30 21:59:07 +00002220fi
2221rm -f conftest.$ac_objext conftest.$ac_ext
2222done
2223rm -f conftest*
2224if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2228fi
2229
2230ac_ext=c
2231ac_cpp='$CPP $CPPFLAGS'
2232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235
2236ac_ext=c
2237ac_cpp='$CPP $CPPFLAGS'
2238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241if test -n "$ac_tool_prefix"; then
2242 for ac_prog in gcc
2243 do
2244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248if test "${ac_cv_prog_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265done
2266done
2267
2268fi
2269fi
2270CC=$ac_cv_prog_CC
2271if test -n "$CC"; then
2272 echo "$as_me:$LINENO: result: $CC" >&5
2273echo "${ECHO_T}$CC" >&6
2274else
2275 echo "$as_me:$LINENO: result: no" >&5
2276echo "${ECHO_T}no" >&6
2277fi
2278
2279 test -n "$CC" && break
2280 done
2281fi
2282if test -z "$CC"; then
2283 ac_ct_CC=$CC
2284 for ac_prog in gcc
2285do
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287set dummy $ac_prog; ac_word=$2
2288echo "$as_me:$LINENO: checking for $ac_word" >&5
2289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295else
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307done
2308done
2309
2310fi
2311fi
2312ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313if test -n "$ac_ct_CC"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315echo "${ECHO_T}$ac_ct_CC" >&6
2316else
2317 echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6
2319fi
2320
2321 test -n "$ac_ct_CC" && break
2322done
2323
2324 CC=$ac_ct_CC
2325fi
2326
2327
John Criswell392aaa32003-07-22 19:18:09 +00002328test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: no acceptable C compiler found in \$PATH
2331See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002332 { (exit 1); exit 1; }; }
2333
2334# Provide some information about the compiler.
2335echo "$as_me:$LINENO:" \
2336 "checking for C compiler version" >&5
2337ac_compiler=`set X $ac_compile; echo $2`
2338{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2339 (eval $ac_compiler --version </dev/null >&5) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2344 (eval $ac_compiler -v </dev/null >&5) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2349 (eval $ac_compiler -V </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353
2354echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 cat >conftest.$ac_ext <<_ACEOF
2360#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002366
John Criswell7a73b802003-06-30 21:59:07 +00002367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_compiler_gnu=yes
2391else
2392 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002393sed 's/^/| /' conftest.$ac_ext >&5
2394
John Criswell7a73b802003-06-30 21:59:07 +00002395ac_compiler_gnu=no
2396fi
2397rm -f conftest.$ac_objext conftest.$ac_ext
2398ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400fi
2401echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403GCC=`test $ac_compiler_gnu = yes && echo yes`
2404ac_test_CFLAGS=${CFLAGS+set}
2405ac_save_CFLAGS=$CFLAGS
2406CFLAGS="-g"
2407echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
2413#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002419
John Criswell7a73b802003-06-30 21:59:07 +00002420int
2421main ()
2422{
2423
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_cv_prog_cc_g=yes
2441else
2442 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002443sed 's/^/| /' conftest.$ac_ext >&5
2444
John Criswell7a73b802003-06-30 21:59:07 +00002445ac_cv_prog_cc_g=no
2446fi
2447rm -f conftest.$ac_objext conftest.$ac_ext
2448fi
2449echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2455 CFLAGS="-g -O2"
2456 else
2457 CFLAGS="-g"
2458 fi
2459else
2460 if test "$GCC" = yes; then
2461 CFLAGS="-O2"
2462 else
2463 CFLAGS=
2464 fi
2465fi
John Criswell392aaa32003-07-22 19:18:09 +00002466echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471 ac_cv_prog_cc_stdc=no
2472ac_save_CC=$CC
2473cat >conftest.$ac_ext <<_ACEOF
2474#line $LINENO "configure"
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480#include <stdarg.h>
2481#include <stdio.h>
2482#include <sys/types.h>
2483#include <sys/stat.h>
2484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485struct buf { int x; };
2486FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487static char *e (p, i)
2488 char **p;
2489 int i;
2490{
2491 return p[i];
2492}
2493static char *f (char * (*g) (char **, int), char **p, ...)
2494{
2495 char *s;
2496 va_list v;
2497 va_start (v,p);
2498 s = g (p, va_arg (v,int));
2499 va_end (v);
2500 return s;
2501}
2502int test (int i, double x);
2503struct s1 {int (*f) (int a);};
2504struct s2 {int (*f) (double a);};
2505int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2506int argc;
2507char **argv;
2508int
2509main ()
2510{
2511return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516# Don't try gcc -ansi; that turns off useful extensions and
2517# breaks some systems' header files.
2518# AIX -qlanglvl=ansi
2519# Ultrix and OSF/1 -std1
2520# HP-UX 10.20 and later -Ae
2521# HP-UX older versions -Aa -D_HPUX_SOURCE
2522# SVR4 -Xc -D__EXTENSIONS__
2523for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2524do
2525 CC="$ac_save_CC $ac_arg"
2526 rm -f conftest.$ac_objext
2527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_prog_cc_stdc=$ac_arg
2539break
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544fi
2545rm -f conftest.$ac_objext
2546done
2547rm -f conftest.$ac_ext conftest.$ac_objext
2548CC=$ac_save_CC
2549
2550fi
2551
2552case "x$ac_cv_prog_cc_stdc" in
2553 x|xno)
2554 echo "$as_me:$LINENO: result: none needed" >&5
2555echo "${ECHO_T}none needed" >&6 ;;
2556 *)
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2558echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2559 CC="$CC $ac_cv_prog_cc_stdc" ;;
2560esac
2561
John Criswell7a73b802003-06-30 21:59:07 +00002562# Some people use a C++ compiler to compile C. Since we use `exit',
2563# in C++ we need to declare it. In case someone uses the same compiler
2564# for both compiling C and C++ we need to have the C++ compiler decide
2565# the declaration of exit, since it's the most demanding environment.
2566cat >conftest.$ac_ext <<_ACEOF
2567#ifndef __cplusplus
2568 choke me
2569#endif
2570_ACEOF
2571rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 ''\
2585 '#include <stdlib.h>' \
2586 'extern "C" void std::exit (int) throw (); using std::exit;' \
2587 'extern "C" void std::exit (int); using std::exit;' \
2588 'extern "C" void exit (int) throw ();' \
2589 'extern "C" void exit (int);' \
2590 'void exit (int);'
2591do
2592 cat >conftest.$ac_ext <<_ACEOF
2593#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002599#include <stdlib.h>
2600$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002601int
2602main ()
2603{
2604exit (42);
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609rm -f conftest.$ac_objext
2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 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'
2616 { (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 Criswell392aaa32003-07-22 19:18:09 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
2628rm -f conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2630#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002636$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002637int
2638main ()
2639{
2640exit (42);
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 break
2658else
2659 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002660sed 's/^/| /' conftest.$ac_ext >&5
2661
John Criswell7a73b802003-06-30 21:59:07 +00002662fi
2663rm -f conftest.$ac_objext conftest.$ac_ext
2664done
2665rm -f conftest*
2666if test -n "$ac_declaration"; then
2667 echo '#ifdef __cplusplus' >>confdefs.h
2668 echo $ac_declaration >>confdefs.h
2669 echo '#endif' >>confdefs.h
2670fi
2671
2672else
2673 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002674sed 's/^/| /' conftest.$ac_ext >&5
2675
John Criswell7a73b802003-06-30 21:59:07 +00002676fi
2677rm -f conftest.$ac_objext conftest.$ac_ext
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684ac_ext=c
2685ac_cpp='$CPP $CPPFLAGS'
2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2690echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2691# On Suns, sometimes $CPP names a directory.
2692if test -n "$CPP" && test -d "$CPP"; then
2693 CPP=
2694fi
2695if test -z "$CPP"; then
2696 if test "${ac_cv_prog_CPP+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # Double quotes because CPP needs to be expanded
2700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2701 do
2702 ac_preproc_ok=false
2703for ac_c_preproc_warn_flag in '' yes
2704do
2705 # Use a header file that comes with gcc, so configuring glibc
2706 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00002707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002709 # On the NeXT, cc -E runs the code through the compiler's parser,
2710 # not just through cpp. "Syntax error" is here to catch this case.
2711 cat >conftest.$ac_ext <<_ACEOF
2712#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718#ifdef __STDC__
2719# include <limits.h>
2720#else
2721# include <assert.h>
2722#endif
John Criswell7a73b802003-06-30 21:59:07 +00002723 Syntax error
2724_ACEOF
2725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2727 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002728 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2735 else
2736 ac_cpp_err=
2737 fi
2738else
2739 ac_cpp_err=yes
2740fi
2741if test -z "$ac_cpp_err"; then
2742 :
2743else
2744 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002745sed 's/^/| /' conftest.$ac_ext >&5
2746
John Criswell7a73b802003-06-30 21:59:07 +00002747 # Broken: fails on valid input.
2748continue
2749fi
2750rm -f conftest.err conftest.$ac_ext
2751
2752 # OK, works on sane cases. Now check whether non-existent headers
2753 # can be detected and how.
2754 cat >conftest.$ac_ext <<_ACEOF
2755#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002761#include <ac_nonexistent.h>
2762_ACEOF
2763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002766 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_c_preproc_warn_flag
2773 else
2774 ac_cpp_err=
2775 fi
2776else
2777 ac_cpp_err=yes
2778fi
2779if test -z "$ac_cpp_err"; then
2780 # Broken: success on invalid input.
2781continue
2782else
2783 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
John Criswell7a73b802003-06-30 21:59:07 +00002786 # Passes both tests.
2787ac_preproc_ok=:
2788break
2789fi
2790rm -f conftest.err conftest.$ac_ext
2791
2792done
2793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794rm -f conftest.err conftest.$ac_ext
2795if $ac_preproc_ok; then
2796 break
2797fi
2798
2799 done
2800 ac_cv_prog_CPP=$CPP
2801
2802fi
2803 CPP=$ac_cv_prog_CPP
2804else
2805 ac_cv_prog_CPP=$CPP
2806fi
2807echo "$as_me:$LINENO: result: $CPP" >&5
2808echo "${ECHO_T}$CPP" >&6
2809ac_preproc_ok=false
2810for ac_c_preproc_warn_flag in '' yes
2811do
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00002814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002820/* confdefs.h. */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h. */
2825#ifdef __STDC__
2826# include <limits.h>
2827#else
2828# include <assert.h>
2829#endif
John Criswell7a73b802003-06-30 21:59:07 +00002830 Syntax error
2831_ACEOF
2832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002835 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2842 else
2843 ac_cpp_err=
2844 fi
2845else
2846 ac_cpp_err=yes
2847fi
2848if test -z "$ac_cpp_err"; then
2849 :
2850else
2851 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002852sed 's/^/| /' conftest.$ac_ext >&5
2853
John Criswell7a73b802003-06-30 21:59:07 +00002854 # Broken: fails on valid input.
2855continue
2856fi
2857rm -f conftest.err conftest.$ac_ext
2858
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002868#include <ac_nonexistent.h>
2869_ACEOF
2870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002873 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2880 else
2881 ac_cpp_err=
2882 fi
2883else
2884 ac_cpp_err=yes
2885fi
2886if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2888continue
2889else
2890 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002891sed 's/^/| /' conftest.$ac_ext >&5
2892
John Criswell7a73b802003-06-30 21:59:07 +00002893 # Passes both tests.
2894ac_preproc_ok=:
2895break
2896fi
2897rm -f conftest.err conftest.$ac_ext
2898
2899done
2900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901rm -f conftest.err conftest.$ac_ext
2902if $ac_preproc_ok; then
2903 :
2904else
John Criswell392aaa32003-07-22 19:18:09 +00002905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2908See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002909 { (exit 1); exit 1; }; }
2910fi
2911
2912ac_ext=c
2913ac_cpp='$CPP $CPPFLAGS'
2914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
2918
2919if test "$GCC" != "yes"
2920then
2921 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2922echo "$as_me: error: gcc required but not found" >&2;}
2923 { (exit 1); exit 1; }; }
2924fi
2925
2926if test "$GXX" != "yes"
2927then
2928 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2929echo "$as_me: error: g++ required but not found" >&2;}
2930 { (exit 1); exit 1; }; }
2931fi
2932
2933 echo "$as_me:$LINENO: checking for GNU make" >&5
2934echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2935if test "${_cv_gnu_make_command+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 _cv_gnu_make_command='' ;
2939 for a in "$MAKE" make gmake gnumake ; do
2940 if test -z "$a" ; then continue ; fi ;
2941 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2942 _cv_gnu_make_command=$a ;
2943 break;
2944 fi
2945 done ;
2946
2947fi
2948echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2949echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2950 if test "x$_cv_gnu_make_command" != "x" ; then
2951 ifGNUmake='' ;
2952 else
2953 ifGNUmake='#' ;
2954 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2955echo "${ECHO_T}\"Not found\"" >&6;
2956 fi
2957
2958
2959if test -z "$_cv_gnu_make_command"
2960then
2961 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2962echo "$as_me: error: GNU Make required but not found" >&2;}
2963 { (exit 1); exit 1; }; }
2964fi
2965
2966
2967echo "$as_me:$LINENO: checking " >&5
2968echo $ECHO_N "checking ... $ECHO_C" >&6
2969if test "${ac_cv_has_flex+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972 for ac_prog in flex lex
2973do
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975set dummy $ac_prog; ac_word=$2
2976echo "$as_me:$LINENO: checking for $ac_word" >&5
2977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978if test "${ac_cv_prog_LEX+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 if test -n "$LEX"; then
2982 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_LEX="$ac_prog"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995done
2996done
2997
2998fi
2999fi
3000LEX=$ac_cv_prog_LEX
3001if test -n "$LEX"; then
3002 echo "$as_me:$LINENO: result: $LEX" >&5
3003echo "${ECHO_T}$LEX" >&6
3004else
3005 echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
3007fi
3008
3009 test -n "$LEX" && break
3010done
3011test -n "$LEX" || LEX=":"
3012
3013if test -z "$LEXLIB"
3014then
3015 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3016echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3017if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020 ac_check_lib_save_LIBS=$LIBS
3021LIBS="-lfl $LIBS"
3022cat >conftest.$ac_ext <<_ACEOF
3023#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003029
3030/* Override any gcc2 internal prototype to avoid an error. */
3031#ifdef __cplusplus
3032extern "C"
3033#endif
3034/* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3036char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003037int
3038main ()
3039{
3040yywrap ();
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext conftest$ac_exeext
3046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047 (eval $ac_link) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest$ac_exeext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_lib_fl_yywrap=yes
3058else
3059 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003060sed 's/^/| /' conftest.$ac_ext >&5
3061
John Criswell7a73b802003-06-30 21:59:07 +00003062ac_cv_lib_fl_yywrap=no
3063fi
3064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3065LIBS=$ac_check_lib_save_LIBS
3066fi
3067echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3068echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3069if test $ac_cv_lib_fl_yywrap = yes; then
3070 LEXLIB="-lfl"
3071else
3072 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3073echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3074if test "${ac_cv_lib_l_yywrap+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077 ac_check_lib_save_LIBS=$LIBS
3078LIBS="-ll $LIBS"
3079cat >conftest.$ac_ext <<_ACEOF
3080#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003086
3087/* Override any gcc2 internal prototype to avoid an error. */
3088#ifdef __cplusplus
3089extern "C"
3090#endif
3091/* We use char because int might match the return type of a gcc2
3092 builtin and then its argument prototype would still apply. */
3093char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003094int
3095main ()
3096{
3097yywrap ();
3098 ;
3099 return 0;
3100}
3101_ACEOF
3102rm -f conftest.$ac_objext conftest$ac_exeext
3103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3104 (eval $ac_link) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -s conftest$ac_exeext'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 (eval $ac_try) 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 ac_cv_lib_l_yywrap=yes
3115else
3116 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003117sed 's/^/| /' conftest.$ac_ext >&5
3118
John Criswell7a73b802003-06-30 21:59:07 +00003119ac_cv_lib_l_yywrap=no
3120fi
3121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3122LIBS=$ac_check_lib_save_LIBS
3123fi
3124echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3125echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3126if test $ac_cv_lib_l_yywrap = yes; then
3127 LEXLIB="-ll"
3128fi
3129
3130fi
3131
3132fi
3133
3134if test "x$LEX" != "x:"; then
3135 echo "$as_me:$LINENO: checking lex output file root" >&5
3136echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3137if test "${ac_cv_prog_lex_root+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 # The minimal lex program is just a single line: %%. But some broken lexes
3141# (Solaris, I think it was) want two %% lines, so accommodate them.
3142cat >conftest.l <<_ACEOF
3143%%
3144%%
3145_ACEOF
3146{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3147 (eval $LEX conftest.l) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151if test -f lex.yy.c; then
3152 ac_cv_prog_lex_root=lex.yy
3153elif test -f lexyy.c; then
3154 ac_cv_prog_lex_root=lexyy
3155else
3156 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3157echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3158 { (exit 1); exit 1; }; }
3159fi
3160fi
3161echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3162echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3163rm -f conftest.l
3164LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3165
3166echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3167echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3168if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171 # POSIX says lex can declare yytext either as a pointer or an array; the
3172# default is implementation-dependent. Figure out which it is, since
3173# not all implementations provide the %pointer and %array declarations.
3174ac_cv_prog_lex_yytext_pointer=no
3175echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3176ac_save_LIBS=$LIBS
3177LIBS="$LIBS $LEXLIB"
3178cat >conftest.$ac_ext <<_ACEOF
3179`cat $LEX_OUTPUT_ROOT.c`
3180_ACEOF
3181rm -f conftest.$ac_objext conftest$ac_exeext
3182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_lex_yytext_pointer=yes
3194else
3195 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003196sed 's/^/| /' conftest.$ac_ext >&5
3197
John Criswell7a73b802003-06-30 21:59:07 +00003198fi
3199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3200LIBS=$ac_save_LIBS
3201rm -f "${LEX_OUTPUT_ROOT}.c"
3202
3203fi
3204echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3205echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3206if test $ac_cv_prog_lex_yytext_pointer = yes; then
3207
3208cat >>confdefs.h <<\_ACEOF
3209#define YYTEXT_POINTER 1
3210_ACEOF
3211
3212fi
3213
3214fi
3215
3216fi
3217echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3218echo "${ECHO_T}$ac_cv_has_flex" >&6
3219if test "$LEX" != "flex"; then
3220 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3221echo "$as_me: error: flex not found but required" >&2;}
3222 { (exit 1); exit 1; }; }
3223fi
3224
3225echo "$as_me:$LINENO: checking " >&5
3226echo $ECHO_N "checking ... $ECHO_C" >&6
3227if test "${ac_cv_has_bison+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230 for ac_prog in 'bison -y' byacc
3231do
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233set dummy $ac_prog; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_prog_YACC+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 if test -n "$YACC"; then
3240 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_YACC="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253done
3254done
3255
3256fi
3257fi
3258YACC=$ac_cv_prog_YACC
3259if test -n "$YACC"; then
3260 echo "$as_me:$LINENO: result: $YACC" >&5
3261echo "${ECHO_T}$YACC" >&6
3262else
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265fi
3266
3267 test -n "$YACC" && break
3268done
3269test -n "$YACC" || YACC="yacc"
3270
3271
3272fi
3273echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3274echo "${ECHO_T}$ac_cv_has_bison" >&6
3275if test "$YACC" != "bison -y"; then
3276 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3277echo "$as_me: error: bison not found but required" >&2;}
3278 { (exit 1); exit 1; }; }
3279else
3280 YACC=bison
3281
3282fi
3283
3284
3285# Check whether --enable-shared or --disable-shared was given.
3286if test "${enable_shared+set}" = set; then
3287 enableval="$enable_shared"
3288 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003289 case $enableval in
3290 yes) enable_shared=yes ;;
3291 no) enable_shared=no ;;
3292 *)
3293 enable_shared=no
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3297 IFS="$lt_save_ifs"
3298 if test "X$pkg" = "X$p"; then
3299 enable_shared=yes
3300 fi
3301 done
3302 IFS="$lt_save_ifs"
3303 ;;
3304 esac
John Criswell7a73b802003-06-30 21:59:07 +00003305else
3306 enable_shared=yes
3307fi;
John Criswell47fdd832003-07-14 16:52:07 +00003308
John Criswell7a73b802003-06-30 21:59:07 +00003309# Check whether --enable-static or --disable-static was given.
3310if test "${enable_static+set}" = set; then
3311 enableval="$enable_static"
3312 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003313 case $enableval in
3314 yes) enable_static=yes ;;
3315 no) enable_static=no ;;
3316 *)
3317 enable_static=no
3318 # Look at the argument we got. We use all the common list separators.
3319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3320 for pkg in $enableval; do
3321 IFS="$lt_save_ifs"
3322 if test "X$pkg" = "X$p"; then
3323 enable_static=yes
3324 fi
3325 done
3326 IFS="$lt_save_ifs"
3327 ;;
3328 esac
John Criswell7a73b802003-06-30 21:59:07 +00003329else
3330 enable_static=yes
3331fi;
John Criswell47fdd832003-07-14 16:52:07 +00003332
John Criswell7a73b802003-06-30 21:59:07 +00003333# Check whether --enable-fast-install or --disable-fast-install was given.
3334if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003337 case $enableval in
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3340 *)
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3345 IFS="$lt_save_ifs"
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3348 fi
3349 done
3350 IFS="$lt_save_ifs"
3351 ;;
3352 esac
John Criswell7a73b802003-06-30 21:59:07 +00003353else
3354 enable_fast_install=yes
3355fi;
John Criswell47fdd832003-07-14 16:52:07 +00003356
3357echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3358echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3359if test "${lt_cv_path_SED+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 # Loop through the user's path and test for sed and gsed.
3363# Then use that list of sed's as ones to test for truncation.
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for lt_ac_prog in sed gsed; do
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3372 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3373 fi
3374 done
3375 done
3376done
3377lt_ac_max=0
3378lt_ac_count=0
3379# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3380# along with /bin/sed that truncates output.
3381for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3382 test ! -f $lt_ac_sed && break
3383 cat /dev/null > conftest.in
3384 lt_ac_count=0
3385 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3386 # Check for GNU sed and select it if it is found.
3387 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3388 lt_cv_path_SED=$lt_ac_sed
3389 break
3390 fi
3391 while true; do
3392 cat conftest.in conftest.in >conftest.tmp
3393 mv conftest.tmp conftest.in
3394 cp conftest.in conftest.nl
3395 echo >>conftest.nl
3396 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3397 cmp -s conftest.out conftest.nl || break
3398 # 10000 chars as input seems more than enough
3399 test $lt_ac_count -gt 10 && break
3400 lt_ac_count=`expr $lt_ac_count + 1`
3401 if test $lt_ac_count -gt $lt_ac_max; then
3402 lt_ac_max=$lt_ac_count
3403 lt_cv_path_SED=$lt_ac_sed
3404 fi
3405 done
3406done
3407SED=$lt_cv_path_SED
3408
John Criswell7a73b802003-06-30 21:59:07 +00003409fi
3410
John Criswell47fdd832003-07-14 16:52:07 +00003411echo "$as_me:$LINENO: result: $SED" >&5
3412echo "${ECHO_T}$SED" >&6
3413
3414echo "$as_me:$LINENO: checking for egrep" >&5
3415echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3416if test "${ac_cv_prog_egrep+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3420 then ac_cv_prog_egrep='grep -E'
3421 else ac_cv_prog_egrep='egrep'
3422 fi
3423fi
3424echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3425echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3426 EGREP=$ac_cv_prog_egrep
3427
3428
John Criswell7a73b802003-06-30 21:59:07 +00003429
3430# Check whether --with-gnu-ld or --without-gnu-ld was given.
3431if test "${with_gnu_ld+set}" = set; then
3432 withval="$with_gnu_ld"
3433 test "$withval" = no || with_gnu_ld=yes
3434else
3435 with_gnu_ld=no
3436fi;
3437ac_prog=ld
3438if test "$GCC" = yes; then
3439 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3441echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003442 case $host in
3443 *-*-mingw*)
3444 # gcc leaves a trailing carriage return which upsets mingw
3445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3446 *)
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3448 esac
3449 case $ac_prog in
3450 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003451 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003452 re_direlt='/[^/][^/]*/\.\./'
3453 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003454 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003455 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003456 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003457 done
3458 test -z "$LD" && LD="$ac_prog"
3459 ;;
3460 "")
3461 # If it fails, then pretend we aren't using GCC.
3462 ac_prog=ld
3463 ;;
3464 *)
3465 # If it is relative, then search for the first ld in PATH.
3466 with_gnu_ld=unknown
3467 ;;
3468 esac
3469elif test "$with_gnu_ld" = yes; then
3470 echo "$as_me:$LINENO: checking for GNU ld" >&5
3471echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3472else
3473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3474echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3475fi
3476if test "${lt_cv_path_LD+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003481 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003482 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003483 test -z "$ac_dir" && ac_dir=.
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
3486 # Check to see if the program is GNU ld. I'd rather use --version,
3487 # but apparently some GNU ld's only accept -v.
3488 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003491 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003492 ;;
3493 *)
John Criswell7a73b802003-06-30 21:59:07 +00003494 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003495 ;;
3496 esac
John Criswell7a73b802003-06-30 21:59:07 +00003497 fi
3498 done
John Criswell47fdd832003-07-14 16:52:07 +00003499 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003500else
3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3502fi
3503fi
3504
3505LD="$lt_cv_path_LD"
3506if test -n "$LD"; then
3507 echo "$as_me:$LINENO: result: $LD" >&5
3508echo "${ECHO_T}$LD" >&6
3509else
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512fi
3513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3515 { (exit 1); exit 1; }; }
3516echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3518if test "${lt_cv_prog_gnu_ld+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003522case `"$LD" -v 2>&1 </dev/null` in
3523*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003524 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003525 ;;
3526*)
John Criswell7a73b802003-06-30 21:59:07 +00003527 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003528 ;;
3529esac
John Criswell7a73b802003-06-30 21:59:07 +00003530fi
3531echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3533with_gnu_ld=$lt_cv_prog_gnu_ld
3534
3535
3536echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3537echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3538if test "${lt_cv_ld_reload_flag+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 lt_cv_ld_reload_flag='-r'
3542fi
3543echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3544echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3545reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003546case $reload_flag in
3547"" | " "*) ;;
3548*) reload_flag=" $reload_flag" ;;
3549esac
3550reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003551
3552echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554if test "${lt_cv_path_NM+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 if test -n "$NM"; then
3558 # Let the user override the test.
3559 lt_cv_path_NM="$NM"
3560else
John Criswell47fdd832003-07-14 16:52:07 +00003561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003562 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003563 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003564 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003565 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003567 # Check to see if the nm accepts a BSD-compat flag.
3568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3569 # nm: unknown option "B" ignored
3570 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3572 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003573 lt_cv_path_NM="$tmp_nm -B"
3574 break
John Criswell47fdd832003-07-14 16:52:07 +00003575 ;;
3576 *)
3577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3578 */dev/null*)
3579 lt_cv_path_NM="$tmp_nm -p"
3580 break
3581 ;;
3582 *)
3583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3584 continue # so that we can try to find one that supports BSD flags
3585 ;;
3586 esac
3587 esac
John Criswell7a73b802003-06-30 21:59:07 +00003588 fi
3589 done
John Criswell47fdd832003-07-14 16:52:07 +00003590 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003591 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3592fi
3593fi
John Criswell47fdd832003-07-14 16:52:07 +00003594echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3595echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003596NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003597
3598echo "$as_me:$LINENO: checking whether ln -s works" >&5
3599echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3600LN_S=$as_ln_s
3601if test "$LN_S" = "ln -s"; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604else
3605 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3606echo "${ECHO_T}no, using $LN_S" >&6
3607fi
3608
John Criswell47fdd832003-07-14 16:52:07 +00003609echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3610echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003611if test "${lt_cv_deplibs_check_method+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614 lt_cv_file_magic_cmd='$MAGIC_CMD'
3615lt_cv_file_magic_test_file=
3616lt_cv_deplibs_check_method='unknown'
3617# Need to set the preceding variable on all platforms that support
3618# interlibrary dependencies.
3619# 'none' -- dependencies not supported.
3620# `unknown' -- same as none, but documents that we really don't know.
3621# 'pass_all' -- all dependencies passed with no checks.
3622# 'test_compile' -- check by making test program.
3623# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003624# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003625# If you have `file' or equivalent on your system and you're not sure
3626# whether `pass_all' will *always* work, you probably want this one.
3627
3628case $host_os in
3629aix4* | aix5*)
3630 lt_cv_deplibs_check_method=pass_all
3631 ;;
3632
3633beos*)
3634 lt_cv_deplibs_check_method=pass_all
3635 ;;
3636
3637bsdi4*)
3638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3639 lt_cv_file_magic_cmd='/usr/bin/file -L'
3640 lt_cv_file_magic_test_file=/shlib/libc.so
3641 ;;
3642
3643cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003644 # win32_libid is a shell function defined in ltmain.sh
3645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3646 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003647 ;;
3648
3649darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003650 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003651 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3652 lt_cv_file_magic_cmd='/usr/bin/file -L'
3653 case "$host_os" in
3654 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003655 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003656 ;;
3657 *) # Darwin 1.3 on
3658 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3659 ;;
3660 esac
John Criswell47fdd832003-07-14 16:52:07 +00003661 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003662 ;;
3663
3664freebsd*)
3665 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3666 case $host_cpu in
3667 i*86 )
3668 # Not sure whether the presence of OpenBSD here was a mistake.
3669 # Let's accept both of them until this is cleared up.
3670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3671 lt_cv_file_magic_cmd=/usr/bin/file
3672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3673 ;;
3674 esac
3675 else
3676 lt_cv_deplibs_check_method=pass_all
3677 fi
3678 ;;
3679
3680gnu*)
3681 lt_cv_deplibs_check_method=pass_all
3682 ;;
3683
John Criswell47fdd832003-07-14 16:52:07 +00003684hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003685 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003686 case "$host_cpu" in
3687 ia64*)
3688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3690 ;;
3691 hppa*64*)
3692 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]'
3693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3694 ;;
3695 *)
3696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3698 ;;
3699 esac
John Criswell7a73b802003-06-30 21:59:07 +00003700 ;;
3701
John Criswell47fdd832003-07-14 16:52:07 +00003702irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003703 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003704 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003705 # this will be overridden with pass_all, but let us keep it just in case
3706 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3707 ;;
3708 *)
3709 case $LD in
3710 *-32|*"-32 ") libmagic=32-bit;;
3711 *-n32|*"-n32 ") libmagic=N32;;
3712 *-64|*"-64 ") libmagic=64-bit;;
3713 *) libmagic=never-match;;
3714 esac
3715 # this will be overridden with pass_all, but let us keep it just in case
3716 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3717 ;;
3718 esac
3719 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3720 lt_cv_deplibs_check_method=pass_all
3721 ;;
3722
3723# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003724linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003725 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003726 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003727 lt_cv_deplibs_check_method=pass_all ;;
3728 *)
3729 # glibc up to 2.1.1 does not perform some relocations on ARM
3730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3731 esac
3732 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3733 ;;
3734
3735netbsd*)
3736 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003738 else
John Criswell47fdd832003-07-14 16:52:07 +00003739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003740 fi
3741 ;;
3742
3743newos6*)
3744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3747 ;;
3748
John Criswell47fdd832003-07-14 16:52:07 +00003749nto-qnx)
3750 lt_cv_deplibs_check_method=unknown
3751 ;;
3752
John Criswell7a73b802003-06-30 21:59:07 +00003753openbsd*)
3754 lt_cv_file_magic_cmd=/usr/bin/file
3755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3758 else
3759 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3760 fi
3761 ;;
3762
3763osf3* | osf4* | osf5*)
3764 # this will be overridden with pass_all, but let us keep it just in case
3765 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3766 lt_cv_file_magic_test_file=/shlib/libc.so
3767 lt_cv_deplibs_check_method=pass_all
3768 ;;
3769
3770sco3.2v5*)
3771 lt_cv_deplibs_check_method=pass_all
3772 ;;
3773
3774solaris*)
3775 lt_cv_deplibs_check_method=pass_all
3776 lt_cv_file_magic_test_file=/lib/libc.so
3777 ;;
3778
John Criswell7a73b802003-06-30 21:59:07 +00003779sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3780 case $host_vendor in
3781 motorola)
3782 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]'
3783 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3784 ;;
3785 ncr)
3786 lt_cv_deplibs_check_method=pass_all
3787 ;;
3788 sequent)
3789 lt_cv_file_magic_cmd='/bin/file'
3790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3791 ;;
3792 sni)
3793 lt_cv_file_magic_cmd='/bin/file'
3794 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3795 lt_cv_file_magic_test_file=/lib/libc.so
3796 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003797 siemens)
3798 lt_cv_deplibs_check_method=pass_all
3799 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003800 esac
3801 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003802
3803sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3804 lt_cv_deplibs_check_method=pass_all
3805 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003806esac
3807
3808fi
3809echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3810echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3811file_magic_cmd=$lt_cv_file_magic_cmd
3812deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003813test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003814
3815
3816
3817
John Criswell47fdd832003-07-14 16:52:07 +00003818# If no C compiler was specified, use CC.
3819LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00003820
John Criswell47fdd832003-07-14 16:52:07 +00003821# Allow CC to be a program name with arguments.
3822compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00003823
John Criswell47fdd832003-07-14 16:52:07 +00003824# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3825if test "${enable_libtool_lock+set}" = set; then
3826 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00003827
John Criswell47fdd832003-07-14 16:52:07 +00003828fi;
3829test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00003830
John Criswell47fdd832003-07-14 16:52:07 +00003831# Some flags need to be propagated to the compiler or linker for good
3832# libtool support.
3833case $host in
3834ia64-*-hpux*)
3835 # Find out which ABI we are using.
3836 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00003842 case `/usr/bin/file conftest.$ac_objext` in
3843 *ELF-32*)
3844 HPUX_IA64_MODE="32"
3845 ;;
3846 *ELF-64*)
3847 HPUX_IA64_MODE="64"
3848 ;;
3849 esac
3850 fi
3851 rm -rf conftest*
3852 ;;
3853*-*-irix6*)
3854 # Find out which ABI we are using.
John Criswellf02dbf02003-07-22 20:07:49 +00003855 echo '#line 3855 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00003856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003860 (exit $ac_status); }; then
3861 if test "$lt_cv_prog_gnu_ld" = yes; then
3862 case `/usr/bin/file conftest.$ac_objext` in
3863 *32-bit*)
3864 LD="${LD-ld} -melf32bsmip"
3865 ;;
3866 *N32*)
3867 LD="${LD-ld} -melf32bmipn32"
3868 ;;
3869 *64-bit*)
3870 LD="${LD-ld} -melf64bmip"
3871 ;;
3872 esac
3873 else
3874 case `/usr/bin/file conftest.$ac_objext` in
3875 *32-bit*)
3876 LD="${LD-ld} -32"
3877 ;;
3878 *N32*)
3879 LD="${LD-ld} -n32"
3880 ;;
3881 *64-bit*)
3882 LD="${LD-ld} -64"
3883 ;;
3884 esac
3885 fi
3886 fi
3887 rm -rf conftest*
3888 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003889
John Criswell47fdd832003-07-14 16:52:07 +00003890x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3891 # Find out which ABI we are using.
3892 echo 'int i;' > conftest.$ac_ext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; then
3898 case "`/usr/bin/file conftest.o`" in
3899 *32-bit*)
3900 case $host in
3901 x86_64-*linux*)
3902 LD="${LD-ld} -m elf_i386"
3903 ;;
3904 ppc64-*linux*)
3905 LD="${LD-ld} -m elf32ppclinux"
3906 ;;
3907 s390x-*linux*)
3908 LD="${LD-ld} -m elf_s390"
3909 ;;
3910 sparc64-*linux*)
3911 LD="${LD-ld} -m elf32_sparc"
3912 ;;
3913 esac
3914 ;;
3915 *64-bit*)
3916 case $host in
3917 x86_64-*linux*)
3918 LD="${LD-ld} -m elf_x86_64"
3919 ;;
3920 ppc*-*linux*|powerpc*-*linux*)
3921 LD="${LD-ld} -m elf64ppc"
3922 ;;
3923 s390*-*linux*)
3924 LD="${LD-ld} -m elf64_s390"
3925 ;;
3926 sparc*-*linux*)
3927 LD="${LD-ld} -m elf64_sparc"
3928 ;;
3929 esac
3930 ;;
3931 esac
3932 fi
3933 rm -rf conftest*
3934 ;;
3935
3936*-*-sco3.2v5*)
3937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3938 SAVE_CFLAGS="$CFLAGS"
3939 CFLAGS="$CFLAGS -belf"
3940 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3941echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3942if test "${lt_cv_cc_needs_belf+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945 ac_ext=c
3946ac_cpp='$CPP $CPPFLAGS'
3947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951 cat >conftest.$ac_ext <<_ACEOF
3952#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00003958
John Criswell47fdd832003-07-14 16:52:07 +00003959int
3960main ()
John Criswell7a73b802003-06-30 21:59:07 +00003961{
John Criswell7a73b802003-06-30 21:59:07 +00003962
John Criswell47fdd832003-07-14 16:52:07 +00003963 ;
3964 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003965}
John Criswell47fdd832003-07-14 16:52:07 +00003966_ACEOF
3967rm -f conftest.$ac_objext conftest$ac_exeext
3968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00003969 (eval $ac_link) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003972 (exit $ac_status); } &&
3973 { ac_try='test -s conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00003980else
John Criswell47fdd832003-07-14 16:52:07 +00003981 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003982sed 's/^/| /' conftest.$ac_ext >&5
3983
John Criswell47fdd832003-07-14 16:52:07 +00003984lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00003985fi
John Criswell47fdd832003-07-14 16:52:07 +00003986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3987 ac_ext=c
3988ac_cpp='$CPP $CPPFLAGS'
3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
John Criswell7a73b802003-06-30 21:59:07 +00003993fi
John Criswell47fdd832003-07-14 16:52:07 +00003994echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3995echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3998 CFLAGS="$SAVE_CFLAGS"
3999 fi
4000 ;;
4001
4002esac
4003
4004need_locks="$enable_libtool_lock"
4005
John Criswell7a73b802003-06-30 21:59:07 +00004006
4007
4008echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4009echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4010if test "${ac_cv_header_stdc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 cat >conftest.$ac_ext <<_ACEOF
4014#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004015/* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004020#include <stdlib.h>
4021#include <stdarg.h>
4022#include <string.h>
4023#include <float.h>
4024
John Criswell392aaa32003-07-22 19:18:09 +00004025int
4026main ()
4027{
4028
4029 ;
4030 return 0;
4031}
John Criswell7a73b802003-06-30 21:59:07 +00004032_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +00004033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004036 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004045 ac_cv_header_stdc=yes
4046else
4047 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004051fi
John Criswell392aaa32003-07-22 19:18:09 +00004052rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004053
4054if test $ac_cv_header_stdc = yes; then
4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056 cat >conftest.$ac_ext <<_ACEOF
4057#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004063#include <string.h>
4064
4065_ACEOF
4066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004067 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004068 :
4069else
4070 ac_cv_header_stdc=no
4071fi
4072rm -f conftest*
4073
4074fi
4075
4076if test $ac_cv_header_stdc = yes; then
4077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078 cat >conftest.$ac_ext <<_ACEOF
4079#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004085#include <stdlib.h>
4086
4087_ACEOF
4088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004089 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004090 :
4091else
4092 ac_cv_header_stdc=no
4093fi
4094rm -f conftest*
4095
4096fi
4097
4098if test $ac_cv_header_stdc = yes; then
4099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4100 if test "$cross_compiling" = yes; then
4101 :
4102else
4103 cat >conftest.$ac_ext <<_ACEOF
4104#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004110#include <ctype.h>
4111#if ((' ' & 0x0FF) == 0x020)
4112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4114#else
John Criswell392aaa32003-07-22 19:18:09 +00004115# define ISLOWER(c) \
4116 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004117 || ('j' <= (c) && (c) <= 'r') \
4118 || ('s' <= (c) && (c) <= 'z'))
4119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4120#endif
4121
4122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4123int
4124main ()
4125{
4126 int i;
4127 for (i = 0; i < 256; i++)
4128 if (XOR (islower (i), ISLOWER (i))
4129 || toupper (i) != TOUPPER (i))
4130 exit(2);
4131 exit (0);
4132}
4133_ACEOF
4134rm -f conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 :
4146else
4147 echo "$as_me: program exited with status $ac_status" >&5
4148echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004149sed 's/^/| /' conftest.$ac_ext >&5
4150
John Criswell7a73b802003-06-30 21:59:07 +00004151( exit $ac_status )
4152ac_cv_header_stdc=no
4153fi
John Criswell392aaa32003-07-22 19:18:09 +00004154rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004155fi
4156fi
4157fi
4158echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4159echo "${ECHO_T}$ac_cv_header_stdc" >&6
4160if test $ac_cv_header_stdc = yes; then
4161
4162cat >>confdefs.h <<\_ACEOF
4163#define STDC_HEADERS 1
4164_ACEOF
4165
4166fi
4167
4168# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4179 inttypes.h stdint.h unistd.h
4180do
4181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4182echo "$as_me:$LINENO: checking for $ac_header" >&5
4183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4184if eval "test \"\${$as_ac_Header+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187 cat >conftest.$ac_ext <<_ACEOF
4188#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004194$ac_includes_default
4195
4196#include <$ac_header>
4197_ACEOF
4198rm -f conftest.$ac_objext
4199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 eval "$as_ac_Header=yes"
4211else
4212 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004213sed 's/^/| /' conftest.$ac_ext >&5
4214
John Criswell7a73b802003-06-30 21:59:07 +00004215eval "$as_ac_Header=no"
4216fi
4217rm -f conftest.$ac_objext conftest.$ac_ext
4218fi
4219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221if test `eval echo '${'$as_ac_Header'}'` = yes; then
4222 cat >>confdefs.h <<_ACEOF
4223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4224_ACEOF
4225
4226fi
4227
4228done
4229
4230
4231
4232for ac_header in dlfcn.h
4233do
4234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235if eval "test \"\${$as_ac_Header+set}\" = set"; then
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240fi
4241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243else
4244 # Is the header compilable?
4245echo "$as_me:$LINENO: checking $ac_header usability" >&5
4246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4247cat >conftest.$ac_ext <<_ACEOF
4248#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004254$ac_includes_default
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 ac_header_compiler=yes
4270else
4271 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004272sed 's/^/| /' conftest.$ac_ext >&5
4273
John Criswell7a73b802003-06-30 21:59:07 +00004274ac_header_compiler=no
4275fi
4276rm -f conftest.$ac_objext conftest.$ac_ext
4277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4278echo "${ECHO_T}$ac_header_compiler" >&6
4279
4280# Is the header present?
4281echo "$as_me:$LINENO: checking $ac_header presence" >&5
4282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4283cat >conftest.$ac_ext <<_ACEOF
4284#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004285/* confdefs.h. */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
4289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004290#include <$ac_header>
4291_ACEOF
4292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4294 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004295 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } >/dev/null; then
4300 if test -s conftest.err; then
4301 ac_cpp_err=$ac_c_preproc_warn_flag
4302 else
4303 ac_cpp_err=
4304 fi
4305else
4306 ac_cpp_err=yes
4307fi
4308if test -z "$ac_cpp_err"; then
4309 ac_header_preproc=yes
4310else
4311 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004312sed 's/^/| /' conftest.$ac_ext >&5
4313
John Criswell7a73b802003-06-30 21:59:07 +00004314 ac_header_preproc=no
4315fi
4316rm -f conftest.err conftest.$ac_ext
4317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4318echo "${ECHO_T}$ac_header_preproc" >&6
4319
4320# So? What about this header?
4321case $ac_header_compiler:$ac_header_preproc in
4322 yes:no )
4323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4327 (
4328 cat <<\_ASBOX
4329## ------------------------------------ ##
4330## Report this to bug-autoconf@gnu.org. ##
4331## ------------------------------------ ##
4332_ASBOX
4333 ) |
4334 sed "s/^/$as_me: WARNING: /" >&2
4335 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004336 no:yes )
4337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4343 (
4344 cat <<\_ASBOX
4345## ------------------------------------ ##
4346## Report this to bug-autoconf@gnu.org. ##
4347## ------------------------------------ ##
4348_ASBOX
4349 ) |
4350 sed "s/^/$as_me: WARNING: /" >&2
4351 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004352esac
4353echo "$as_me:$LINENO: checking for $ac_header" >&5
4354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358 eval "$as_ac_Header=$ac_header_preproc"
4359fi
4360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362
4363fi
4364if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365 cat >>confdefs.h <<_ACEOF
4366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367_ACEOF
4368
4369fi
4370
4371done
4372
John Criswell47fdd832003-07-14 16:52:07 +00004373ac_ext=cc
4374ac_cpp='$CXXCPP $CPPFLAGS'
4375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4378echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4379echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4380if test -z "$CXXCPP"; then
4381 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
John Criswell47fdd832003-07-14 16:52:07 +00004384 # Double quotes because CXXCPP needs to be expanded
4385 for CXXCPP in "$CXX -E" "/lib/cpp"
4386 do
4387 ac_preproc_ok=false
4388for ac_cxx_preproc_warn_flag in '' yes
4389do
4390 # Use a header file that comes with gcc, so configuring glibc
4391 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4393 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004394 # On the NeXT, cc -E runs the code through the compiler's parser,
4395 # not just through cpp. "Syntax error" is here to catch this case.
4396 cat >conftest.$ac_ext <<_ACEOF
4397#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
4403#ifdef __STDC__
4404# include <limits.h>
4405#else
4406# include <assert.h>
4407#endif
John Criswell47fdd832003-07-14 16:52:07 +00004408 Syntax error
4409_ACEOF
4410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004413 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null; then
4418 if test -s conftest.err; then
4419 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004420 else
John Criswell47fdd832003-07-14 16:52:07 +00004421 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004422 fi
John Criswell47fdd832003-07-14 16:52:07 +00004423else
4424 ac_cpp_err=yes
4425fi
4426if test -z "$ac_cpp_err"; then
4427 :
4428else
4429 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004430sed 's/^/| /' conftest.$ac_ext >&5
4431
John Criswell47fdd832003-07-14 16:52:07 +00004432 # Broken: fails on valid input.
4433continue
4434fi
4435rm -f conftest.err conftest.$ac_ext
4436
4437 # OK, works on sane cases. Now check whether non-existent headers
4438 # can be detected and how.
4439 cat >conftest.$ac_ext <<_ACEOF
4440#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004446#include <ac_nonexistent.h>
4447_ACEOF
4448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004451 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev/null; then
4456 if test -s conftest.err; then
4457 ac_cpp_err=$ac_cxx_preproc_warn_flag
4458 else
4459 ac_cpp_err=
4460 fi
4461else
4462 ac_cpp_err=yes
4463fi
4464if test -z "$ac_cpp_err"; then
4465 # Broken: success on invalid input.
4466continue
4467else
4468 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004469sed 's/^/| /' conftest.$ac_ext >&5
4470
John Criswell47fdd832003-07-14 16:52:07 +00004471 # Passes both tests.
4472ac_preproc_ok=:
4473break
4474fi
4475rm -f conftest.err conftest.$ac_ext
4476
4477done
4478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479rm -f conftest.err conftest.$ac_ext
4480if $ac_preproc_ok; then
4481 break
John Criswell7a73b802003-06-30 21:59:07 +00004482fi
4483
John Criswell47fdd832003-07-14 16:52:07 +00004484 done
4485 ac_cv_prog_CXXCPP=$CXXCPP
4486
4487fi
4488 CXXCPP=$ac_cv_prog_CXXCPP
4489else
4490 ac_cv_prog_CXXCPP=$CXXCPP
4491fi
4492echo "$as_me:$LINENO: result: $CXXCPP" >&5
4493echo "${ECHO_T}$CXXCPP" >&6
4494ac_preproc_ok=false
4495for ac_cxx_preproc_warn_flag in '' yes
4496do
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat >conftest.$ac_ext <<_ACEOF
4504#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
4510#ifdef __STDC__
4511# include <limits.h>
4512#else
4513# include <assert.h>
4514#endif
John Criswell47fdd832003-07-14 16:52:07 +00004515 Syntax error
4516_ACEOF
4517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004520 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev/null; then
4525 if test -s conftest.err; then
4526 ac_cpp_err=$ac_cxx_preproc_warn_flag
4527 else
4528 ac_cpp_err=
4529 fi
4530else
4531 ac_cpp_err=yes
4532fi
4533if test -z "$ac_cpp_err"; then
4534 :
4535else
4536 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004537sed 's/^/| /' conftest.$ac_ext >&5
4538
John Criswell47fdd832003-07-14 16:52:07 +00004539 # Broken: fails on valid input.
4540continue
4541fi
4542rm -f conftest.err conftest.$ac_ext
4543
4544 # OK, works on sane cases. Now check whether non-existent headers
4545 # can be detected and how.
4546 cat >conftest.$ac_ext <<_ACEOF
4547#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004548/* confdefs.h. */
4549_ACEOF
4550cat confdefs.h >>conftest.$ac_ext
4551cat >>conftest.$ac_ext <<_ACEOF
4552/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004553#include <ac_nonexistent.h>
4554_ACEOF
4555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4557 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004558 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev/null; then
4563 if test -s conftest.err; then
4564 ac_cpp_err=$ac_cxx_preproc_warn_flag
4565 else
4566 ac_cpp_err=
4567 fi
4568else
4569 ac_cpp_err=yes
4570fi
4571if test -z "$ac_cpp_err"; then
4572 # Broken: success on invalid input.
4573continue
4574else
4575 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004576sed 's/^/| /' conftest.$ac_ext >&5
4577
John Criswell47fdd832003-07-14 16:52:07 +00004578 # Passes both tests.
4579ac_preproc_ok=:
4580break
4581fi
4582rm -f conftest.err conftest.$ac_ext
4583
4584done
4585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586rm -f conftest.err conftest.$ac_ext
4587if $ac_preproc_ok; then
4588 :
4589else
John Criswell392aaa32003-07-22 19:18:09 +00004590 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4591See \`config.log' for more details." >&5
4592echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4593See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004594 { (exit 1); exit 1; }; }
4595fi
4596
4597ac_ext=cc
4598ac_cpp='$CXXCPP $CPPFLAGS'
4599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4602
4603
4604ac_ext=f
4605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4608if test -n "$ac_tool_prefix"; then
John Criswell392aaa32003-07-22 19:18:09 +00004609 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004610 do
4611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613echo "$as_me:$LINENO: checking for $ac_word" >&5
4614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615if test "${ac_cv_prog_F77+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 if test -n "$F77"; then
4619 ac_cv_prog_F77="$F77" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633done
4634
4635fi
4636fi
4637F77=$ac_cv_prog_F77
4638if test -n "$F77"; then
4639 echo "$as_me:$LINENO: result: $F77" >&5
4640echo "${ECHO_T}$F77" >&6
4641else
4642 echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644fi
4645
4646 test -n "$F77" && break
4647 done
4648fi
4649if test -z "$F77"; then
4650 ac_ct_F77=$F77
John Criswell392aaa32003-07-22 19:18:09 +00004651 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004652do
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2
4655echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 if test -n "$ac_ct_F77"; then
4661 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_ac_ct_F77="$ac_prog"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676
4677fi
4678fi
4679ac_ct_F77=$ac_cv_prog_ac_ct_F77
4680if test -n "$ac_ct_F77"; then
4681 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4682echo "${ECHO_T}$ac_ct_F77" >&6
4683else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688 test -n "$ac_ct_F77" && break
4689done
4690
4691 F77=$ac_ct_F77
4692fi
4693
4694
4695# Provide some information about the compiler.
John Criswellf02dbf02003-07-22 20:07:49 +00004696echo "$as_me:4696:" \
John Criswell47fdd832003-07-14 16:52:07 +00004697 "checking for Fortran 77 compiler version" >&5
4698ac_compiler=`set X $ac_compile; echo $2`
4699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4700 (eval $ac_compiler --version </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4705 (eval $ac_compiler -v </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4710 (eval $ac_compiler -V </dev/null >&5) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }
4714
4715# If we don't use `.F' as extension, the preprocessor is not run on the
4716# input file.
4717ac_save_ext=$ac_ext
4718ac_ext=F
4719echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4720echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4721if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 cat >conftest.$ac_ext <<_ACEOF
4725 program main
4726#ifndef __GNUC__
4727 choke me
4728#endif
4729
4730 end
4731_ACEOF
4732rm -f conftest.$ac_objext
4733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_compiler_gnu=yes
4745else
4746 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004747sed 's/^/| /' conftest.$ac_ext >&5
4748
John Criswell47fdd832003-07-14 16:52:07 +00004749ac_compiler_gnu=no
4750fi
4751rm -f conftest.$ac_objext conftest.$ac_ext
4752ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4753
4754fi
4755echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4756echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4757ac_ext=$ac_save_ext
4758G77=`test $ac_compiler_gnu = yes && echo yes`
4759ac_test_FFLAGS=${FFLAGS+set}
4760ac_save_FFLAGS=$FFLAGS
4761FFLAGS=
4762echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4763echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4764if test "${ac_cv_prog_f77_g+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 FFLAGS=-g
4768cat >conftest.$ac_ext <<_ACEOF
4769 program main
4770
4771 end
4772_ACEOF
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_prog_f77_g=yes
4786else
4787 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004788sed 's/^/| /' conftest.$ac_ext >&5
4789
John Criswell47fdd832003-07-14 16:52:07 +00004790ac_cv_prog_f77_g=no
4791fi
4792rm -f conftest.$ac_objext conftest.$ac_ext
4793
4794fi
4795echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4796echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4797if test "$ac_test_FFLAGS" = set; then
4798 FFLAGS=$ac_save_FFLAGS
4799elif test $ac_cv_prog_f77_g = yes; then
4800 if test "$G77" = yes; then
4801 FFLAGS="-g -O2"
4802 else
4803 FFLAGS="-g"
4804 fi
4805else
4806 if test "$G77" = yes; then
4807 FFLAGS="-O2"
4808 else
4809 FFLAGS=
4810 fi
4811fi
4812ac_ext=c
4813ac_cpp='$CPP $CPPFLAGS'
4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817
4818
4819
4820# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4821
4822# find the maximum length of command line arguments
4823echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4824echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4825if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 i=0
4829 testring="ABCD"
4830
4831 case $build_os in
4832 msdosdjgpp*)
4833 # On DJGPP, this test can blow up pretty badly due to problems in libc
4834 # (any single argument exceeding 2000 bytes causes a buffer overrun
4835 # during glob expansion). Even if it were fixed, the result of this
4836 # check would be larger than it should be.
4837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4838 ;;
4839
4840 gnu*)
4841 # Under GNU Hurd, this test is not required because there is
4842 # no limit to the length of command line arguments.
4843 # Libtool will interpret -1 as no limit whatsoever
4844 lt_cv_sys_max_cmd_len=-1;
4845 ;;
4846
4847 cygwin* | mingw*)
4848 # On Win9x/ME, this test blows up -- it succeeds, but takes
4849 # about 5 minutes as the teststring grows exponentially.
4850 # Worse, since 9x/ME are not pre-emptively multitasking,
4851 # you end up with a "frozen" computer, even though with patience
4852 # the test eventually succeeds (with a max line length of 256k).
4853 # Instead, let's just punt: use the minimum linelength reported by
4854 # all of the supported platforms: 8192 (on NT/2K/XP).
4855 lt_cv_sys_max_cmd_len=8192;
4856 ;;
4857
4858 *)
4859 # If test is not a shell built-in, we'll probably end up computing a
4860 # maximum length that is only half of the actual maximum length, but
4861 # we can't tell.
4862 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4863 = "XX$testring") >/dev/null 2>&1 &&
4864 new_result=`expr "X$testring" : ".*" 2>&1` &&
4865 lt_cv_sys_max_cmd_len=$new_result &&
4866 test $i != 17 # 1/2 MB should be enough
4867 do
4868 i=`expr $i + 1`
4869 testring=$testring$testring
4870 done
4871 testring=
4872 # Add a significant safety factor because C++ compilers can tack on massive
4873 # amounts of additional arguments before passing them to the linker.
4874 # It appears as though 1/2 is a usable value.
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4876 ;;
4877 esac
4878
4879fi
4880
4881if test -n $lt_cv_sys_max_cmd_len ; then
4882 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4883echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4884else
4885 echo "$as_me:$LINENO: result: none" >&5
4886echo "${ECHO_T}none" >&6
4887fi
4888
4889
4890
4891
4892# Check for command to grab the raw symbol name followed by C symbol from nm.
4893echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4894echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4895if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898
4899# These are sane defaults that work on at least a few old systems.
4900# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4901
4902# Character class describing NM global symbol codes.
4903symcode='[BCDEGRST]'
4904
4905# Regexp to match symbols that can be accessed directly from C.
4906sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4907
4908# Transform the above into a raw symbol and a C symbol.
4909symxfrm='\1 \2\3 \3'
4910
4911# Transform an extracted symbol line into a proper C declaration
4912lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4913
4914# Transform an extracted symbol line into symbol name and symbol address
4915lt_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'"
4916
4917# Define system-specific variables.
4918case $host_os in
4919aix*)
4920 symcode='[BCDT]'
4921 ;;
4922cygwin* | mingw* | pw32*)
4923 symcode='[ABCDGISTW]'
4924 ;;
4925hpux*) # Its linker distinguishes data from code symbols
4926 if test "$host_cpu" = ia64; then
4927 symcode='[ABCDEGRST]'
4928 fi
4929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4930 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'"
4931 ;;
4932irix* | nonstopux*)
4933 symcode='[BCDEGRST]'
4934 ;;
4935osf*)
4936 symcode='[BCDEGQRST]'
4937 ;;
4938solaris* | sysv5*)
4939 symcode='[BDT]'
4940 ;;
4941sysv4)
4942 symcode='[DFNSTU]'
4943 ;;
4944esac
4945
4946# Handle CRLF in mingw tool chain
4947opt_cr=
4948case $build_os in
4949mingw*)
4950 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4951 ;;
4952esac
4953
4954# If we're using GNU nm, then use its standard symbol codes.
4955case `$NM -V 2>&1` in
4956*GNU* | *'with BFD'*)
4957 symcode='[ABCDGISTW]' ;;
4958esac
4959
4960# Try without a prefix undercore, then with it.
4961for ac_symprfx in "" "_"; do
4962
4963 # Write the raw and C identifiers.
4964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4965
4966 # Check to see that the pipe works correctly.
4967 pipe_works=no
4968
4969 rm -f conftest*
4970 cat > conftest.$ac_ext <<EOF
4971#ifdef __cplusplus
4972extern "C" {
4973#endif
4974char nm_test_var;
4975void nm_test_func(){}
4976#ifdef __cplusplus
4977}
4978#endif
4979int main(){nm_test_var='a';nm_test_func();return(0);}
4980EOF
4981
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; then
4987 # Now try to grab the symbols.
4988 nlist=conftest.nm
4989 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && test -s "$nlist"; then
4994 # Try sorting and uniquifying the output.
4995 if sort "$nlist" | uniq > "$nlist"T; then
4996 mv -f "$nlist"T "$nlist"
4997 else
4998 rm -f "$nlist"T
4999 fi
5000
5001 # Make sure that we snagged all the symbols we need.
5002 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5003 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5004 cat <<EOF > conftest.$ac_ext
5005#ifdef __cplusplus
5006extern "C" {
5007#endif
5008
5009EOF
5010 # Now generate the symbol file.
5011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5012
5013 cat <<EOF >> conftest.$ac_ext
5014#if defined (__STDC__) && __STDC__
5015# define lt_ptr_t void *
5016#else
5017# define lt_ptr_t char *
5018# define const
5019#endif
5020
5021/* The mapping between symbol names and symbols. */
5022const struct {
5023 const char *name;
5024 lt_ptr_t address;
5025}
5026lt_preloaded_symbols[] =
5027{
5028EOF
5029 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5030 cat <<\EOF >> conftest.$ac_ext
5031 {0, (lt_ptr_t) 0}
5032};
5033
5034#ifdef __cplusplus
5035}
5036#endif
5037EOF
5038 # Now try linking the two files.
5039 mv conftest.$ac_objext conftstm.$ac_objext
5040 lt_save_LIBS="$LIBS"
5041 lt_save_CFLAGS="$CFLAGS"
5042 LIBS="conftstm.$ac_objext"
5043 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5045 (eval $ac_link) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5049 pipe_works=yes
5050 fi
5051 LIBS="$lt_save_LIBS"
5052 CFLAGS="$lt_save_CFLAGS"
5053 else
5054 echo "cannot find nm_test_func in $nlist" >&5
5055 fi
5056 else
5057 echo "cannot find nm_test_var in $nlist" >&5
5058 fi
5059 else
5060 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5061 fi
5062 else
5063 echo "$progname: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 fi
5066 rm -f conftest* conftst*
5067
5068 # Do not use the global_symbol_pipe unless it works.
5069 if test "$pipe_works" = yes; then
5070 break
5071 else
5072 lt_cv_sys_global_symbol_pipe=
5073 fi
5074done
5075
5076fi
5077
5078if test -z "$lt_cv_sys_global_symbol_pipe"; then
5079 lt_cv_sys_global_symbol_to_cdecl=
5080fi
5081if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5082 echo "$as_me:$LINENO: result: failed" >&5
5083echo "${ECHO_T}failed" >&6
5084else
5085 echo "$as_me:$LINENO: result: ok" >&5
5086echo "${ECHO_T}ok" >&6
5087fi
5088
5089echo "$as_me:$LINENO: checking for objdir" >&5
5090echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5091if test "${lt_cv_objdir+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 rm -f .libs 2>/dev/null
5095mkdir .libs 2>/dev/null
5096if test -d .libs; then
5097 lt_cv_objdir=.libs
5098else
5099 # MS-DOS does not allow filenames that begin with a dot.
5100 lt_cv_objdir=_libs
5101fi
5102rmdir .libs 2>/dev/null
5103fi
5104echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5105echo "${ECHO_T}$lt_cv_objdir" >&6
5106objdir=$lt_cv_objdir
5107
5108
5109
5110
5111
5112case $host_os in
5113aix3*)
5114 # AIX sometimes has problems with the GCC collect2 program. For some
5115 # reason, if we set the COLLECT_NAMES environment variable, the problems
5116 # vanish in a puff of smoke.
5117 if test "X${COLLECT_NAMES+set}" != Xset; then
5118 COLLECT_NAMES=
5119 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005120 fi
5121 ;;
5122esac
5123
John Criswell47fdd832003-07-14 16:52:07 +00005124# Sed substitution that helps us do robust quoting. It backslashifies
5125# metacharacters that are still active within double-quoted strings.
5126Xsed='sed -e s/^X//'
5127sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5128
5129# Same as above, but do not quote variable references.
5130double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5131
5132# Sed substitution to delay expansion of an escaped shell variable in a
5133# double_quote_subst'ed string.
5134delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5135
5136# Sed substitution to avoid accidental globbing in evaled expressions
5137no_glob_subst='s/\*/\\\*/g'
5138
5139# Constants:
5140rm="rm -f"
5141
5142# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005143default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005144can_build_shared=yes
5145
5146# All known linkers require a `.a' archive for static linking (except M$VC,
5147# which needs '.lib').
5148libext=a
5149ltmain="$ac_aux_dir/ltmain.sh"
5150ofile="$default_ofile"
5151with_gnu_ld="$lt_cv_prog_gnu_ld"
5152
5153if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5155set dummy ${ac_tool_prefix}ar; ac_word=$2
5156echo "$as_me:$LINENO: checking for $ac_word" >&5
5157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158if test "${ac_cv_prog_AR+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR="$AR" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR="${ac_tool_prefix}ar"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176done
5177
5178fi
5179fi
5180AR=$ac_cv_prog_AR
5181if test -n "$AR"; then
5182 echo "$as_me:$LINENO: result: $AR" >&5
5183echo "${ECHO_T}$AR" >&6
5184else
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187fi
5188
5189fi
5190if test -z "$ac_cv_prog_AR"; then
5191 ac_ct_AR=$AR
5192 # Extract the first word of "ar", so it can be a program name with args.
5193set dummy ar; ac_word=$2
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 if test -n "$ac_ct_AR"; then
5200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_AR="ar"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
5216 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5217fi
5218fi
5219ac_ct_AR=$ac_cv_prog_ac_ct_AR
5220if test -n "$ac_ct_AR"; then
5221 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5222echo "${ECHO_T}$ac_ct_AR" >&6
5223else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228 AR=$ac_ct_AR
5229else
5230 AR="$ac_cv_prog_AR"
5231fi
5232
John Criswell7a73b802003-06-30 21:59:07 +00005233if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5235set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_prog_RANLIB+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 if test -n "$RANLIB"; then
5242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
5258fi
5259fi
5260RANLIB=$ac_cv_prog_RANLIB
5261if test -n "$RANLIB"; then
5262 echo "$as_me:$LINENO: result: $RANLIB" >&5
5263echo "${ECHO_T}$RANLIB" >&6
5264else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267fi
5268
5269fi
5270if test -z "$ac_cv_prog_RANLIB"; then
5271 ac_ct_RANLIB=$RANLIB
5272 # Extract the first word of "ranlib", so it can be a program name with args.
5273set dummy ranlib; ac_word=$2
5274echo "$as_me:$LINENO: checking for $ac_word" >&5
5275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 if test -n "$ac_ct_RANLIB"; then
5280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5281else
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_ac_ct_RANLIB="ranlib"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293done
5294done
5295
5296 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5297fi
5298fi
5299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5300if test -n "$ac_ct_RANLIB"; then
5301 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5302echo "${ECHO_T}$ac_ct_RANLIB" >&6
5303else
5304 echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
5306fi
5307
5308 RANLIB=$ac_ct_RANLIB
5309else
5310 RANLIB="$ac_cv_prog_RANLIB"
5311fi
5312
5313if test -n "$ac_tool_prefix"; then
5314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5315set dummy ${ac_tool_prefix}strip; ac_word=$2
5316echo "$as_me:$LINENO: checking for $ac_word" >&5
5317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318if test "${ac_cv_prog_STRIP+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 if test -n "$STRIP"; then
5322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335done
5336done
5337
5338fi
5339fi
5340STRIP=$ac_cv_prog_STRIP
5341if test -n "$STRIP"; then
5342 echo "$as_me:$LINENO: result: $STRIP" >&5
5343echo "${ECHO_T}$STRIP" >&6
5344else
5345 echo "$as_me:$LINENO: result: no" >&5
5346echo "${ECHO_T}no" >&6
5347fi
5348
5349fi
5350if test -z "$ac_cv_prog_STRIP"; then
5351 ac_ct_STRIP=$STRIP
5352 # Extract the first word of "strip", so it can be a program name with args.
5353set dummy strip; ac_word=$2
5354echo "$as_me:$LINENO: checking for $ac_word" >&5
5355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359 if test -n "$ac_ct_STRIP"; then
5360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_STRIP="strip"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373done
5374done
5375
5376 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5377fi
5378fi
5379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5380if test -n "$ac_ct_STRIP"; then
5381 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5382echo "${ECHO_T}$ac_ct_STRIP" >&6
5383else
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386fi
5387
5388 STRIP=$ac_ct_STRIP
5389else
5390 STRIP="$ac_cv_prog_STRIP"
5391fi
5392
5393
John Criswell7a73b802003-06-30 21:59:07 +00005394old_CC="$CC"
5395old_CFLAGS="$CFLAGS"
5396
5397# Set sane defaults for various variables
5398test -z "$AR" && AR=ar
5399test -z "$AR_FLAGS" && AR_FLAGS=cru
5400test -z "$AS" && AS=as
5401test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005402test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005403test -z "$DLLTOOL" && DLLTOOL=dlltool
5404test -z "$LD" && LD=ld
5405test -z "$LN_S" && LN_S="ln -s"
5406test -z "$MAGIC_CMD" && MAGIC_CMD=file
5407test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005408test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005409test -z "$OBJDUMP" && OBJDUMP=objdump
5410test -z "$RANLIB" && RANLIB=:
5411test -z "$STRIP" && STRIP=:
5412test -z "$ac_objext" && ac_objext=o
5413
John Criswell7a73b802003-06-30 21:59:07 +00005414# Determine commands to create old-style static archives.
5415old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5416old_postinstall_cmds='chmod 644 $oldlib'
5417old_postuninstall_cmds=
5418
5419if test -n "$RANLIB"; then
5420 case $host_os in
5421 openbsd*)
5422 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5423 ;;
5424 *)
5425 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5426 ;;
5427 esac
5428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5429fi
5430
John Criswell47fdd832003-07-14 16:52:07 +00005431# Only perform the check for file, if the check method requires it
5432case $deplibs_check_method in
5433file_magic*)
5434 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5435 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5436echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5437if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005439else
John Criswell47fdd832003-07-14 16:52:07 +00005440 case $MAGIC_CMD in
5441[\\/*] | ?:[\\/]*)
5442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5443 ;;
5444*)
5445 lt_save_MAGIC_CMD="$MAGIC_CMD"
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5448 for ac_dir in $ac_dummy; do
5449 IFS="$lt_save_ifs"
5450 test -z "$ac_dir" && ac_dir=.
5451 if test -f $ac_dir/${ac_tool_prefix}file; then
5452 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5453 if test -n "$file_magic_test_file"; then
5454 case $deplibs_check_method in
5455 "file_magic "*)
5456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5459 $EGREP "$file_magic_regex" > /dev/null; then
5460 :
5461 else
5462 cat <<EOF 1>&2
5463
5464*** Warning: the command libtool uses to detect shared libraries,
5465*** $file_magic_cmd, produces output that libtool cannot recognize.
5466*** The result is that libtool may fail to recognize shared libraries
5467*** as such. This will affect the creation of libtool libraries that
5468*** depend on shared libraries, but programs linked with such libtool
5469*** libraries will work regardless of this problem. Nevertheless, you
5470*** may want to report the problem to your system manager and/or to
5471*** bug-libtool@gnu.org
5472
5473EOF
5474 fi ;;
5475 esac
5476 fi
5477 break
5478 fi
5479 done
5480 IFS="$lt_save_ifs"
5481 MAGIC_CMD="$lt_save_MAGIC_CMD"
5482 ;;
5483esac
John Criswell7a73b802003-06-30 21:59:07 +00005484fi
John Criswell7a73b802003-06-30 21:59:07 +00005485
John Criswell47fdd832003-07-14 16:52:07 +00005486MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5487if test -n "$MAGIC_CMD"; then
5488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5489echo "${ECHO_T}$MAGIC_CMD" >&6
5490else
5491 echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
John Criswell7a73b802003-06-30 21:59:07 +00005494
John Criswell47fdd832003-07-14 16:52:07 +00005495if test -z "$lt_cv_path_MAGIC_CMD"; then
5496 if test -n "$ac_tool_prefix"; then
5497 echo "$as_me:$LINENO: checking for file" >&5
5498echo $ECHO_N "checking for file... $ECHO_C" >&6
5499if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 case $MAGIC_CMD in
5503[\\/*] | ?:[\\/]*)
5504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5505 ;;
5506*)
5507 lt_save_MAGIC_CMD="$MAGIC_CMD"
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5510 for ac_dir in $ac_dummy; do
5511 IFS="$lt_save_ifs"
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f $ac_dir/file; then
5514 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5515 if test -n "$file_magic_test_file"; then
5516 case $deplibs_check_method in
5517 "file_magic "*)
5518 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5521 $EGREP "$file_magic_regex" > /dev/null; then
5522 :
5523 else
5524 cat <<EOF 1>&2
5525
5526*** Warning: the command libtool uses to detect shared libraries,
5527*** $file_magic_cmd, produces output that libtool cannot recognize.
5528*** The result is that libtool may fail to recognize shared libraries
5529*** as such. This will affect the creation of libtool libraries that
5530*** depend on shared libraries, but programs linked with such libtool
5531*** libraries will work regardless of this problem. Nevertheless, you
5532*** may want to report the problem to your system manager and/or to
5533*** bug-libtool@gnu.org
5534
5535EOF
5536 fi ;;
5537 esac
5538 fi
5539 break
5540 fi
5541 done
5542 IFS="$lt_save_ifs"
5543 MAGIC_CMD="$lt_save_MAGIC_CMD"
5544 ;;
5545esac
5546fi
5547
5548MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5549if test -n "$MAGIC_CMD"; then
5550 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5551echo "${ECHO_T}$MAGIC_CMD" >&6
5552else
5553 echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6
5555fi
5556
5557 else
5558 MAGIC_CMD=:
5559 fi
5560fi
5561
5562 fi
5563 ;;
5564esac
5565
5566enable_dlopen=no
5567enable_win32_dll=no
5568
5569# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5570if test "${enable_libtool_lock+set}" = set; then
5571 enableval="$enable_libtool_lock"
5572
5573fi;
5574test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5575
John Criswell7a73b802003-06-30 21:59:07 +00005576
5577# Check whether --with-pic or --without-pic was given.
5578if test "${with_pic+set}" = set; then
5579 withval="$with_pic"
5580 pic_mode="$withval"
5581else
5582 pic_mode=default
5583fi;
5584test -z "$pic_mode" && pic_mode=default
5585
John Criswell47fdd832003-07-14 16:52:07 +00005586# Use C for the default configuration in the libtool script
5587tagname=
5588lt_save_CC="$CC"
5589ac_ext=c
5590ac_cpp='$CPP $CPPFLAGS'
5591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595
5596# Source file extension for C test sources.
5597ac_ext=c
5598
5599# Object file extension for compiled C test sources.
5600objext=o
5601objext=$objext
5602
5603# Code to be used in simple compile tests
5604lt_simple_compile_test_code="int some_variable = 0;\n"
5605
5606# Code to be used in simple link tests
5607lt_simple_link_test_code='int main(){return(0);}\n'
5608
5609
5610# If no C compiler was specified, use CC.
5611LTCC=${LTCC-"$CC"}
5612
5613# Allow CC to be a program name with arguments.
5614compiler=$CC
5615
5616
5617#
5618# Check for any special shared library compilation flags.
5619#
5620lt_prog_cc_shlib=
5621if test "$GCC" = no; then
5622 case $host_os in
5623 sco3.2v5*)
5624 lt_prog_cc_shlib='-belf'
5625 ;;
5626 esac
5627fi
5628if test -n "$lt_prog_cc_shlib"; then
5629 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5630echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5631 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5632 else
5633 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635 lt_cv_prog_cc_can_build_shared=no
5636 fi
5637fi
5638
5639
5640#
5641# Check to make sure the static flag actually works.
5642#
5643echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5644echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5645if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
John Criswell47fdd832003-07-14 16:52:07 +00005648 lt_prog_compiler_static_works=no
5649 save_LDFLAGS="$LDFLAGS"
5650 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5651 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 # Append any errors to the config.log.
5657 cat conftest.err 1>&5
5658 else
5659 lt_prog_compiler_static_works=yes
5660 fi
5661 fi
5662 $rm conftest*
5663 LDFLAGS="$save_LDFLAGS"
5664
5665fi
5666echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5667echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5668
5669if test x"$lt_prog_compiler_static_works" = xyes; then
5670 :
5671else
5672 lt_prog_compiler_static=
5673fi
5674
5675
5676
5677## CAVEAT EMPTOR:
5678## There is no encapsulation within the following macros, do not change
5679## the running order or otherwise move them around unless you know exactly
5680## what you are doing...
5681
5682lt_prog_compiler_no_builtin_flag=
5683
5684if test "$GCC" = yes; then
5685 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5686
5687 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5688echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5689if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 lt_cv_prog_compiler_rtti_exceptions=no
5693 ac_outfile=conftest.$ac_objext
5694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5695 lt_compiler_flag="-fno-rtti -fno-exceptions"
5696 # Insert the option either (1) after the last *FLAGS variable, or
5697 # (2) before a word containing "conftest.", or (3) at the end.
5698 # Note that $ac_compile itself does not contain backslashes and begins
5699 # with a dollar sign (not a hyphen), so the echo should work correctly.
5700 # The option is referenced via a variable to avoid confusing sed.
5701 lt_compile=`echo "$ac_compile" | $SED \
5702 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5704 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +00005705 (eval echo "\"\$as_me:5705: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005706 (eval "$lt_compile" 2>conftest.err)
5707 ac_status=$?
5708 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +00005709 echo "$as_me:5709: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005710 if (exit $ac_status) && test -s "$ac_outfile"; then
5711 # The compiler can only warn and ignore the option if not recognized
5712 # So say no if there are warnings
5713 if test ! -s conftest.err; then
5714 lt_cv_prog_compiler_rtti_exceptions=yes
5715 fi
5716 fi
5717 $rm conftest*
5718
5719fi
5720echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5721echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5722
5723if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5725else
5726 :
5727fi
5728
5729fi
5730
5731lt_prog_compiler_wl=
5732lt_prog_compiler_pic=
5733lt_prog_compiler_static=
5734
5735echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5736echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005737
5738 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005739 lt_prog_compiler_wl='-Wl,'
5740 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005741
5742 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005743 aix*)
5744 # All AIX code is PIC.
5745 if test "$host_cpu" = ia64; then
5746 # AIX 5 now supports IA64 processor
5747 lt_prog_compiler_static='-Bstatic'
5748 fi
John Criswell7a73b802003-06-30 21:59:07 +00005749 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005750
John Criswell7a73b802003-06-30 21:59:07 +00005751 amigaos*)
5752 # FIXME: we need at least 68020 code to build shared libraries, but
5753 # adding the `-m68020' flag to GCC prevents building anything better,
5754 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005755 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005756 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005757
5758 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005759 # PIC is the default for these OSes.
5760 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005761
5762 mingw* | pw32* | os2*)
5763 # This hack is so that the source file can tell whether it is being
5764 # built for inclusion in a dll (and should export symbols for example).
5765 lt_prog_compiler_pic='-DDLL_EXPORT'
5766 ;;
5767
John Criswell7a73b802003-06-30 21:59:07 +00005768 darwin* | rhapsody*)
5769 # PIC is the default on this platform
5770 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005771 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005772 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005773
5774 msdosdjgpp*)
5775 # Just because we use GCC doesn't mean we suddenly get shared libraries
5776 # on systems that don't support them.
5777 lt_prog_compiler_can_build_shared=no
5778 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005779 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005780
John Criswell7a73b802003-06-30 21:59:07 +00005781 sysv4*MP*)
5782 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005783 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005784 fi
5785 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005786
5787 hpux*)
5788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5789 # not for PA HP-UX.
5790 case "$host_cpu" in
5791 hppa*64*|ia64*)
5792 # +Z the default
5793 ;;
5794 *)
5795 lt_prog_compiler_pic='-fPIC'
5796 ;;
5797 esac
5798 ;;
5799
John Criswell7a73b802003-06-30 21:59:07 +00005800 *)
John Criswell47fdd832003-07-14 16:52:07 +00005801 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005802 ;;
5803 esac
5804 else
John Criswell47fdd832003-07-14 16:52:07 +00005805 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005806 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005807 aix*)
5808 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005809 if test "$host_cpu" = ia64; then
5810 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005811 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005812 else
John Criswell47fdd832003-07-14 16:52:07 +00005813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005814 fi
5815 ;;
5816
John Criswell47fdd832003-07-14 16:52:07 +00005817 mingw* | pw32* | os2*)
5818 # This hack is so that the source file can tell whether it is being
5819 # built for inclusion in a dll (and should export symbols for example).
5820 lt_prog_compiler_pic='-DDLL_EXPORT'
5821 ;;
5822
John Criswell7a73b802003-06-30 21:59:07 +00005823 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00005824 lt_prog_compiler_wl='-Wl,'
5825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5826 # not for PA HP-UX.
5827 case "$host_cpu" in
5828 hppa*64*|ia64*)
5829 # +Z the default
5830 ;;
5831 *)
5832 lt_prog_compiler_pic='+Z'
5833 ;;
5834 esac
5835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5836 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00005837 ;;
5838
John Criswell47fdd832003-07-14 16:52:07 +00005839 irix5* | irix6* | nonstopux*)
5840 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005841 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00005842 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005843 ;;
5844
5845 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00005846 lt_prog_compiler_pic='-KPIC'
5847 lt_prog_compiler_static='-Bstatic'
5848 ;;
5849
5850 linux*)
5851 case $CC in
5852 icc|ecc)
5853 lt_prog_compiler_wl='-Wl,'
5854 lt_prog_compiler_pic='-KPIC'
5855 lt_prog_compiler_static='-static'
5856 ;;
5857 ccc)
5858 lt_prog_compiler_wl='-Wl,'
5859 # All Alpha code is PIC.
5860 lt_prog_compiler_static='-non_shared'
5861 ;;
5862 esac
John Criswell7a73b802003-06-30 21:59:07 +00005863 ;;
5864
5865 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00005866 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005867 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00005868 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005869 ;;
5870
5871 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00005872 lt_prog_compiler_pic='-Kpic'
5873 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00005874 ;;
5875
5876 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00005877 lt_prog_compiler_wl='-Wl,'
5878 lt_prog_compiler_pic='-KPIC'
5879 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005880 ;;
5881
5882 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00005883 lt_prog_compiler_wl='-Qoption ld '
5884 lt_prog_compiler_pic='-PIC'
5885 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005886 ;;
5887
5888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00005889 lt_prog_compiler_wl='-Wl,'
5890 lt_prog_compiler_pic='-KPIC'
5891 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005892 ;;
5893
5894 sysv4*MP*)
5895 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00005896 lt_prog_compiler_pic='-Kconform_pic'
5897 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005898 fi
5899 ;;
5900
John Criswell47fdd832003-07-14 16:52:07 +00005901 uts4*)
5902 lt_prog_compiler_pic='-pic'
5903 lt_prog_compiler_static='-Bstatic'
5904 ;;
5905
John Criswell7a73b802003-06-30 21:59:07 +00005906 *)
John Criswell47fdd832003-07-14 16:52:07 +00005907 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005908 ;;
5909 esac
5910 fi
5911
John Criswell47fdd832003-07-14 16:52:07 +00005912echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5913echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005914
John Criswell47fdd832003-07-14 16:52:07 +00005915#
5916# Check to make sure the PIC flag actually works.
5917#
5918if test -n "$lt_prog_compiler_pic"; then
5919 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5920echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5921if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
John Criswell47fdd832003-07-14 16:52:07 +00005924 lt_prog_compiler_pic_works=no
5925 ac_outfile=conftest.$ac_objext
5926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5928 # Insert the option either (1) after the last *FLAGS variable, or
5929 # (2) before a word containing "conftest.", or (3) at the end.
5930 # Note that $ac_compile itself does not contain backslashes and begins
5931 # with a dollar sign (not a hyphen), so the echo should work correctly.
5932 # The option is referenced via a variable to avoid confusing sed.
5933 lt_compile=`echo "$ac_compile" | $SED \
5934 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5936 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +00005937 (eval echo "\"\$as_me:5937: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005938 (eval "$lt_compile" 2>conftest.err)
5939 ac_status=$?
5940 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +00005941 echo "$as_me:5941: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005942 if (exit $ac_status) && test -s "$ac_outfile"; then
5943 # The compiler can only warn and ignore the option if not recognized
5944 # So say no if there are warnings
5945 if test ! -s conftest.err; then
5946 lt_prog_compiler_pic_works=yes
5947 fi
5948 fi
5949 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00005950
John Criswell47fdd832003-07-14 16:52:07 +00005951fi
5952echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5953echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005954
John Criswell47fdd832003-07-14 16:52:07 +00005955if test x"$lt_prog_compiler_pic_works" = xyes; then
5956 case $lt_prog_compiler_pic in
5957 "" | " "*) ;;
5958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5959 esac
John Criswell7a73b802003-06-30 21:59:07 +00005960else
John Criswell47fdd832003-07-14 16:52:07 +00005961 lt_prog_compiler_pic=
5962 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005963fi
5964
John Criswell7a73b802003-06-30 21:59:07 +00005965fi
John Criswell47fdd832003-07-14 16:52:07 +00005966case "$host_os" in
5967 # For platforms which do not support PIC, -DPIC is meaningless:
5968 *djgpp*)
5969 lt_prog_compiler_pic=
5970 ;;
5971 *)
5972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5973 ;;
5974esac
John Criswell7a73b802003-06-30 21:59:07 +00005975
John Criswell7a73b802003-06-30 21:59:07 +00005976echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5977echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00005978if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
John Criswell47fdd832003-07-14 16:52:07 +00005981 lt_cv_prog_compiler_c_o=no
5982 $rm -r conftest 2>/dev/null
5983 mkdir conftest
5984 cd conftest
5985 mkdir out
5986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005987
John Criswell47fdd832003-07-14 16:52:07 +00005988 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5989 # that will create temporary files in the current directory regardless of
5990 # the output directory. Thus, making CWD read-only will cause this test
5991 # to fail, enabling locking or at least warning the user not to do parallel
5992 # builds.
5993 chmod -w .
5994
5995 lt_compiler_flag="-o out/conftest2.$ac_objext"
5996 # Insert the option either (1) after the last *FLAGS variable, or
5997 # (2) before a word containing "conftest.", or (3) at the end.
5998 # Note that $ac_compile itself does not contain backslashes and begins
5999 # with a dollar sign (not a hyphen), so the echo should work correctly.
6000 lt_compile=`echo "$ac_compile" | $SED \
6001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6003 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +00006004 (eval echo "\"\$as_me:6004: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006005 (eval "$lt_compile" 2>out/conftest.err)
6006 ac_status=$?
6007 cat out/conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +00006008 echo "$as_me:6008: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6010 then
6011 # The compiler can only warn and ignore the option if not recognized
6012 # So say no if there are warnings
6013 if test ! -s out/conftest.err; then
6014 lt_cv_prog_compiler_c_o=yes
6015 fi
6016 fi
6017 chmod u+w .
6018 $rm conftest* out/*
6019 rmdir out
6020 cd ..
6021 rmdir conftest
6022 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006023
6024fi
John Criswell47fdd832003-07-14 16:52:07 +00006025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6026echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006027
John Criswell7a73b802003-06-30 21:59:07 +00006028
John Criswell7a73b802003-06-30 21:59:07 +00006029hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006031 # do not overwrite the value of need_locks provided by the user
6032 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6033echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6034 hard_links=yes
6035 $rm conftest*
6036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6037 touch conftest.a
6038 ln conftest.a conftest.b 2>&5 || hard_links=no
6039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6040 echo "$as_me:$LINENO: result: $hard_links" >&5
6041echo "${ECHO_T}$hard_links" >&6
6042 if test "$hard_links" = no; then
6043 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6044echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6045 need_locks=warn
6046 fi
6047else
6048 need_locks=no
6049fi
John Criswell7a73b802003-06-30 21:59:07 +00006050
John Criswell47fdd832003-07-14 16:52:07 +00006051echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6052echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6053
6054 runpath_var=
6055 allow_undefined_flag=
6056 enable_shared_with_static_runtimes=no
6057 archive_cmds=
6058 archive_expsym_cmds=
6059 old_archive_From_new_cmds=
6060 old_archive_from_expsyms_cmds=
6061 export_dynamic_flag_spec=
6062 whole_archive_flag_spec=
6063 thread_safe_flag_spec=
6064 hardcode_libdir_flag_spec=
6065 hardcode_libdir_flag_spec_ld=
6066 hardcode_libdir_separator=
6067 hardcode_direct=no
6068 hardcode_minus_L=no
6069 hardcode_shlibpath_var=unsupported
6070 link_all_deplibs=unknown
6071 hardcode_automatic=no
6072 module_cmds=
6073 module_expsym_cmds=
6074 always_export_symbols=no
6075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6076 # include_expsyms should be a list of space-separated symbols to be *always*
6077 # included in the symbol list
6078 include_expsyms=
6079 # exclude_expsyms can be an extended regexp of symbols to exclude
6080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6082 # as well as any symbol that contains `d'.
6083 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6085 # platforms (ab)use it in PIC code, but their linkers get confused if
6086 # the symbol is explicitly referenced. Since portable code cannot
6087 # rely on this symbol name, it's probably fine to never include it in
6088 # preloaded symbol tables.
6089 extract_expsyms_cmds=
6090
6091 case $host_os in
6092 cygwin* | mingw* | pw32*)
6093 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6094 # When not using gcc, we currently assume that we are using
6095 # Microsoft Visual C++.
6096 if test "$GCC" != yes; then
6097 with_gnu_ld=no
6098 fi
6099 ;;
6100 openbsd*)
6101 with_gnu_ld=no
6102 ;;
6103 esac
6104
6105 ld_shlibs=yes
6106 if test "$with_gnu_ld" = yes; then
6107 # If archive_cmds runs LD, not CC, wlarc should be empty
6108 wlarc='${wl}'
6109
6110 # See if GNU ld supports shared libraries.
6111 case $host_os in
6112 aix3* | aix4* | aix5*)
6113 # On AIX/PPC, the GNU linker is very broken
6114 if test "$host_cpu" != ia64; then
6115 ld_shlibs=no
6116 cat <<EOF 1>&2
6117
6118*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6119*** to be unable to reliably create shared libraries on AIX.
6120*** Therefore, libtool is disabling shared libraries support. If you
6121*** really care for shared libraries, you may want to modify your PATH
6122*** so that a non-GNU linker is found, and then restart.
6123
6124EOF
6125 fi
6126 ;;
6127
6128 amigaos*)
6129 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)'
6130 hardcode_libdir_flag_spec='-L$libdir'
6131 hardcode_minus_L=yes
6132
6133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6134 # that the semantics of dynamic libraries on AmigaOS, at least up
6135 # to version 4, is to share data among multiple programs linked
6136 # with the same dynamic library. Since this doesn't match the
6137 # behavior of shared libraries on other platforms, we can't use
6138 # them.
6139 ld_shlibs=no
6140 ;;
6141
6142 beos*)
6143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6144 allow_undefined_flag=unsupported
6145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6146 # support --undefined. This deserves some investigation. FIXME
6147 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6148 else
6149 ld_shlibs=no
6150 fi
6151 ;;
6152
6153 cygwin* | mingw* | pw32*)
6154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6155 # as there is no search path for DLLs.
6156 hardcode_libdir_flag_spec='-L$libdir'
6157 allow_undefined_flag=unsupported
6158 always_export_symbols=no
6159 enable_shared_with_static_runtimes=yes
6160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6161
6162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6164 # If the export-symbols file already is a .def file (1st line
6165 # is EXPORTS), use it as is; otherwise, prepend...
6166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6167 cp $export_symbols $output_objdir/$soname.def;
6168 else
6169 echo EXPORTS > $output_objdir/$soname.def;
6170 cat $export_symbols >> $output_objdir/$soname.def;
6171 fi~
6172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6173 else
6174 ld_shlibs=no
6175 fi
6176 ;;
6177
6178 netbsd*)
6179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6181 wlarc=
6182 else
6183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6185 fi
6186 ;;
6187
6188 solaris* | sysv5*)
6189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6190 ld_shlibs=no
6191 cat <<EOF 1>&2
6192
6193*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6194*** create shared libraries on Solaris systems. Therefore, libtool
6195*** is disabling shared libraries support. We urge you to upgrade GNU
6196*** binutils to release 2.9.1 or newer. Another option is to modify
6197*** your PATH or compiler configuration so that the native linker is
6198*** used, and then restart.
6199
6200EOF
6201 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6204 else
6205 ld_shlibs=no
6206 fi
6207 ;;
6208
6209 sunos4*)
6210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6211 wlarc=
6212 hardcode_direct=yes
6213 hardcode_shlibpath_var=no
6214 ;;
6215
6216 *)
6217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6220 else
6221 ld_shlibs=no
6222 fi
6223 ;;
6224 esac
6225
6226 if test "$ld_shlibs" = yes; then
6227 runpath_var=LD_RUN_PATH
6228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6229 export_dynamic_flag_spec='${wl}--export-dynamic'
6230 # ancient GNU ld didn't support --whole-archive et. al.
6231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6233 else
6234 whole_archive_flag_spec=
6235 fi
6236 fi
6237 else
6238 # PORTME fill in a description of your system's linker (not GNU ld)
6239 case $host_os in
6240 aix3*)
6241 allow_undefined_flag=unsupported
6242 always_export_symbols=yes
6243 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'
6244 # Note: this linker hardcodes the directories in LIBPATH if there
6245 # are no directories specified by -L.
6246 hardcode_minus_L=yes
6247 if test "$GCC" = yes && test -z "$link_static_flag"; then
6248 # Neither direct hardcoding nor static linking is supported with a
6249 # broken collect2.
6250 hardcode_direct=unsupported
6251 fi
6252 ;;
6253
6254 aix4* | aix5*)
6255 if test "$host_cpu" = ia64; then
6256 # On IA64, the linker does run time linking by default, so we don't
6257 # have to do anything special.
6258 aix_use_runtimelinking=no
6259 exp_sym_flag='-Bexport'
6260 no_entry_flag=""
6261 else
6262 # If we're using GNU nm, then we don't want the "-C" option.
6263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6265 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'
6266 else
6267 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'
6268 fi
6269 aix_use_runtimelinking=no
6270
6271 # Test if we are trying to use run time linking or normal
6272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6273 # need to do runtime linking.
6274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6275 for ld_flag in $LDFLAGS; do
6276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6277 aix_use_runtimelinking=yes
6278 break
6279 fi
6280 done
6281 esac
6282
6283 exp_sym_flag='-bexport'
6284 no_entry_flag='-bnoentry'
6285 fi
6286
6287 # When large executables or shared objects are built, AIX ld can
6288 # have problems creating the table of contents. If linking a library
6289 # or program results in "error TOC overflow" add -mminimal-toc to
6290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6292
6293 archive_cmds=''
6294 hardcode_direct=yes
6295 hardcode_libdir_separator=':'
6296 link_all_deplibs=yes
6297
6298 if test "$GCC" = yes; then
6299 case $host_os in aix4.012|aix4.012.*)
6300 # We only want to do this on AIX 4.2 and lower, the check
6301 # below for broken collect2 doesn't work under 4.3+
6302 collect2name=`${CC} -print-prog-name=collect2`
6303 if test -f "$collect2name" && \
6304 strings "$collect2name" | grep resolve_lib_name >/dev/null
6305 then
6306 # We have reworked collect2
6307 hardcode_direct=yes
6308 else
6309 # We have old collect2
6310 hardcode_direct=unsupported
6311 # It fails to find uninstalled libraries when the uninstalled
6312 # path is not listed in the libpath. Setting hardcode_minus_L
6313 # to unsupported forces relinking
6314 hardcode_minus_L=yes
6315 hardcode_libdir_flag_spec='-L$libdir'
6316 hardcode_libdir_separator=
6317 fi
6318 esac
6319 shared_flag='-shared'
6320 else
6321 # not using gcc
6322 if test "$host_cpu" = ia64; then
6323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6324 # chokes on -Wl,-G. The following line is correct:
6325 shared_flag='-G'
6326 else
6327 if test "$aix_use_runtimelinking" = yes; then
6328 shared_flag='${wl}-G'
6329 else
6330 shared_flag='${wl}-bM:SRE'
6331 fi
6332 fi
6333 fi
6334
6335 # It seems that -bexpall does not export symbols beginning with
6336 # underscore (_), so it is better to generate a list of symbols to export.
6337 always_export_symbols=yes
6338 if test "$aix_use_runtimelinking" = yes; then
6339 # Warning - without using the other runtime loading flags (-brtl),
6340 # -berok will link without error, but may produce a broken library.
6341 allow_undefined_flag='-berok'
6342 # Determine the default libpath from the value encoded in an empty executable.
6343 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006344#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006350
John Criswell7a73b802003-06-30 21:59:07 +00006351int
6352main ()
6353{
John Criswell47fdd832003-07-14 16:52:07 +00006354
John Criswell7a73b802003-06-30 21:59:07 +00006355 ;
6356 return 0;
6357}
6358_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006359rm -f conftest.$ac_objext conftest$ac_exeext
6360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006365 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006371
John Criswell47fdd832003-07-14 16:52:07 +00006372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6373}'`
6374# Check for a 64-bit object if we didn't find anything.
6375if 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; }
6376}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006377else
6378 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006379sed 's/^/| /' conftest.$ac_ext >&5
6380
John Criswell7a73b802003-06-30 21:59:07 +00006381fi
John Criswell47fdd832003-07-14 16:52:07 +00006382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006384
John Criswell47fdd832003-07-14 16:52:07 +00006385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6386 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"
6387 else
6388 if test "$host_cpu" = ia64; then
6389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6390 allow_undefined_flag="-z nodefs"
6391 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"
6392 else
6393 # Determine the default libpath from the value encoded in an empty executable.
6394 cat >conftest.$ac_ext <<_ACEOF
6395#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006396/* confdefs.h. */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006401
John Criswell47fdd832003-07-14 16:52:07 +00006402int
6403main ()
6404{
John Criswell7a73b802003-06-30 21:59:07 +00006405
John Criswell47fdd832003-07-14 16:52:07 +00006406 ;
6407 return 0;
6408}
6409_ACEOF
6410rm -f conftest.$ac_objext conftest$ac_exeext
6411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -s conftest$ac_exeext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006422
John Criswell47fdd832003-07-14 16:52:07 +00006423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6424}'`
6425# Check for a 64-bit object if we didn't find anything.
6426if 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; }
6427}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006428else
John Criswell47fdd832003-07-14 16:52:07 +00006429 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006430sed 's/^/| /' conftest.$ac_ext >&5
6431
John Criswell47fdd832003-07-14 16:52:07 +00006432fi
6433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006435
John Criswell47fdd832003-07-14 16:52:07 +00006436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6437 # Warning - without using the other run time loading flags,
6438 # -berok will link without error, but may produce a broken library.
6439 no_undefined_flag=' ${wl}-bernotok'
6440 allow_undefined_flag=' ${wl}-berok'
6441 # -bexpall does not export symbols beginning with underscore (_)
6442 always_export_symbols=yes
6443 # Exported symbols can be pulled into shared objects from archives
6444 whole_archive_flag_spec=' '
6445 archive_cmds_need_lc=yes
6446 # This is similar to how AIX traditionally builds it's shared libraries.
6447 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 +00006448 fi
6449 fi
John Criswell7a73b802003-06-30 21:59:07 +00006450 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006451
6452 amigaos*)
6453 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)'
6454 hardcode_libdir_flag_spec='-L$libdir'
6455 hardcode_minus_L=yes
6456 # see comment about different semantics on the GNU ld section
6457 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006458 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006459
John Criswell47fdd832003-07-14 16:52:07 +00006460 bsdi4*)
6461 export_dynamic_flag_spec=-rdynamic
6462 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006463
John Criswell47fdd832003-07-14 16:52:07 +00006464 cygwin* | mingw* | pw32*)
6465 # When not using gcc, we currently assume that we are using
6466 # Microsoft Visual C++.
6467 # hardcode_libdir_flag_spec is actually meaningless, as there is
6468 # no search path for DLLs.
6469 hardcode_libdir_flag_spec=' '
6470 allow_undefined_flag=unsupported
6471 # Tell ltmain to make .lib files, not .a files.
6472 libext=lib
6473 # Tell ltmain to make .dll files, not .so files.
6474 shrext=".dll"
6475 # FIXME: Setting linknames here is a bad hack.
6476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6477 # The linker will automatically build a .lib file if we build a DLL.
6478 old_archive_From_new_cmds='true'
6479 # FIXME: Should let the user specify the lib program.
6480 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6481 fix_srcfile_path='`cygpath -w "$srcfile"`'
6482 enable_shared_with_static_runtimes=yes
6483 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006484
John Criswell47fdd832003-07-14 16:52:07 +00006485 darwin* | rhapsody*)
6486 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6487 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006488 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006489 rhapsody* | darwin1.[012])
6490 allow_undefined_flag='-undefined suppress'
6491 ;;
6492 *) # Darwin 1.3 on
6493 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006494 ;;
6495 esac
John Criswell47fdd832003-07-14 16:52:07 +00006496 # FIXME: Relying on posixy $() will cause problems for
6497 # cross-compilation, but unfortunately the echo tests do not
6498 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6499 # `"' quotes if we put them in here... so don't!
6500 lt_int_apple_cc_single_mod=no
6501 output_verbose_link_cmd='echo'
6502 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6503 lt_int_apple_cc_single_mod=yes
6504 fi
6505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6506 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6507 else
6508 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6509 fi
6510 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6512 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6513 archive_expsym_cmds='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}'
6514 else
6515 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6516 fi
6517 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 hardcode_direct=no
6519 hardcode_automatic=yes
6520 hardcode_shlibpath_var=unsupported
6521 whole_archive_flag_spec='-all_load $convenience'
6522 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006523 fi
John Criswell47fdd832003-07-14 16:52:07 +00006524 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006525
John Criswell47fdd832003-07-14 16:52:07 +00006526 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006528 hardcode_libdir_flag_spec='-L$libdir'
6529 hardcode_shlibpath_var=no
6530 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006531
John Criswell47fdd832003-07-14 16:52:07 +00006532 freebsd1*)
6533 ld_shlibs=no
6534 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006535
John Criswell47fdd832003-07-14 16:52:07 +00006536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6537 # support. Future versions do this automatically, but an explicit c++rt0.o
6538 # does not break anything, and helps significantly (at the cost of a little
6539 # extra space).
6540 freebsd2.2*)
6541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6542 hardcode_libdir_flag_spec='-R$libdir'
6543 hardcode_direct=yes
6544 hardcode_shlibpath_var=no
6545 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006546
John Criswell47fdd832003-07-14 16:52:07 +00006547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6548 freebsd2*)
6549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6550 hardcode_direct=yes
6551 hardcode_minus_L=yes
6552 hardcode_shlibpath_var=no
6553 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006554
John Criswell47fdd832003-07-14 16:52:07 +00006555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6556 freebsd*)
6557 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6558 hardcode_libdir_flag_spec='-R$libdir'
6559 hardcode_direct=yes
6560 hardcode_shlibpath_var=no
6561 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006562
John Criswell47fdd832003-07-14 16:52:07 +00006563 hpux9*)
6564 if test "$GCC" = yes; then
6565 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'
6566 else
6567 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'
6568 fi
6569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6570 hardcode_libdir_separator=:
6571 hardcode_direct=yes
6572
6573 # hardcode_minus_L: Not really in the search PATH,
6574 # but as the default location of the library.
6575 hardcode_minus_L=yes
6576 export_dynamic_flag_spec='${wl}-E'
6577 ;;
6578
6579 hpux10* | hpux11*)
6580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6581 case "$host_cpu" in
6582 hppa*64*|ia64*)
6583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6584 ;;
6585 *)
6586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6587 ;;
6588 esac
6589 else
6590 case "$host_cpu" in
6591 hppa*64*|ia64*)
6592 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6593 ;;
6594 *)
6595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6596 ;;
6597 esac
6598 fi
6599 if test "$with_gnu_ld" = no; then
6600 case "$host_cpu" in
6601 hppa*64*)
6602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6603 hardcode_libdir_flag_spec_ld='+b $libdir'
6604 hardcode_libdir_separator=:
6605 hardcode_direct=no
6606 hardcode_shlibpath_var=no
6607 ;;
6608 ia64*)
6609 hardcode_libdir_flag_spec='-L$libdir'
6610 hardcode_direct=no
6611 hardcode_shlibpath_var=no
6612
6613 # hardcode_minus_L: Not really in the search PATH,
6614 # but as the default location of the library.
6615 hardcode_minus_L=yes
6616 ;;
6617 *)
6618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6619 hardcode_libdir_separator=:
6620 hardcode_direct=yes
6621 export_dynamic_flag_spec='${wl}-E'
6622
6623 # hardcode_minus_L: Not really in the search PATH,
6624 # but as the default location of the library.
6625 hardcode_minus_L=yes
6626 ;;
6627 esac
6628 fi
6629 ;;
6630
6631 irix5* | irix6* | nonstopux*)
6632 if test "$GCC" = yes; then
6633 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'
6634 else
6635 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'
6636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6637 fi
6638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6639 hardcode_libdir_separator=:
6640 link_all_deplibs=yes
6641 ;;
6642
6643 netbsd*)
6644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6646 else
6647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6648 fi
6649 hardcode_libdir_flag_spec='-R$libdir'
6650 hardcode_direct=yes
6651 hardcode_shlibpath_var=no
6652 ;;
6653
6654 newsos6)
6655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6656 hardcode_direct=yes
6657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6658 hardcode_libdir_separator=:
6659 hardcode_shlibpath_var=no
6660 ;;
6661
6662 openbsd*)
6663 hardcode_direct=yes
6664 hardcode_shlibpath_var=no
6665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6668 export_dynamic_flag_spec='${wl}-E'
6669 else
6670 case $host_os in
6671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6673 hardcode_libdir_flag_spec='-R$libdir'
6674 ;;
6675 *)
6676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6678 ;;
6679 esac
6680 fi
6681 ;;
6682
6683 os2*)
6684 hardcode_libdir_flag_spec='-L$libdir'
6685 hardcode_minus_L=yes
6686 allow_undefined_flag=unsupported
6687 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'
6688 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6689 ;;
6690
6691 osf3*)
6692 if test "$GCC" = yes; then
6693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6694 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'
6695 else
6696 allow_undefined_flag=' -expect_unresolved \*'
6697 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'
6698 fi
6699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6700 hardcode_libdir_separator=:
6701 ;;
6702
6703 osf4* | osf5*) # as osf3* with the addition of -msym flag
6704 if test "$GCC" = yes; then
6705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6706 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'
6707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708 else
6709 allow_undefined_flag=' -expect_unresolved \*'
6710 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'
6711 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6712 $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'
6713
6714 # Both c and cxx compiler support -rpath directly
6715 hardcode_libdir_flag_spec='-rpath $libdir'
6716 fi
6717 hardcode_libdir_separator=:
6718 ;;
6719
6720 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6722 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006723 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006724 runpath_var=LD_RUN_PATH
6725 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006726 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006727
John Criswell47fdd832003-07-14 16:52:07 +00006728 solaris*)
6729 no_undefined_flag=' -z text'
6730 if test "$GCC" = yes; then
6731 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6732 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6733 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6734 else
6735 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6736 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6738 fi
6739 hardcode_libdir_flag_spec='-R$libdir'
6740 hardcode_shlibpath_var=no
6741 case $host_os in
6742 solaris2.[0-5] | solaris2.[0-5].*) ;;
6743 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6745 esac
6746 link_all_deplibs=yes
6747 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006748
John Criswell47fdd832003-07-14 16:52:07 +00006749 sunos4*)
6750 if test "x$host_vendor" = xsequent; then
6751 # Use $CC to link under sequent, because it throws in some extra .o
6752 # files that make .init and .fini sections work.
6753 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6754 else
6755 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6756 fi
6757 hardcode_libdir_flag_spec='-L$libdir'
6758 hardcode_direct=yes
6759 hardcode_minus_L=yes
6760 hardcode_shlibpath_var=no
6761 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006762
John Criswell47fdd832003-07-14 16:52:07 +00006763 sysv4)
6764 case $host_vendor in
6765 sni)
6766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_direct=yes # is this really true???
6768 ;;
6769 siemens)
6770 ## LD is ld it makes a PLAMLIB
6771 ## CC just makes a GrossModule.
6772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6773 reload_cmds='$CC -r -o $output$reload_objs'
6774 hardcode_direct=no
6775 ;;
6776 motorola)
6777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6778 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6779 ;;
6780 esac
6781 runpath_var='LD_RUN_PATH'
6782 hardcode_shlibpath_var=no
6783 ;;
6784
6785 sysv4.3*)
6786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6787 hardcode_shlibpath_var=no
6788 export_dynamic_flag_spec='-Bexport'
6789 ;;
6790
6791 sysv4*MP*)
6792 if test -d /usr/nec; then
6793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6794 hardcode_shlibpath_var=no
6795 runpath_var=LD_RUN_PATH
6796 hardcode_runpath_var=yes
6797 ld_shlibs=yes
6798 fi
6799 ;;
6800
6801 sysv4.2uw2*)
6802 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6803 hardcode_direct=yes
6804 hardcode_minus_L=no
6805 hardcode_shlibpath_var=no
6806 hardcode_runpath_var=yes
6807 runpath_var=LD_RUN_PATH
6808 ;;
6809
6810 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6811 no_undefined_flag='${wl}-z ${wl}text'
6812 if test "$GCC" = yes; then
6813 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6814 else
6815 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6816 fi
6817 runpath_var='LD_RUN_PATH'
6818 hardcode_shlibpath_var=no
6819 ;;
6820
6821 sysv5*)
6822 no_undefined_flag=' -z text'
6823 # $CC -shared without GNU ld will not create a library from C++
6824 # object files and a static libstdc++, better avoid it by now
6825 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6828 hardcode_libdir_flag_spec=
6829 hardcode_shlibpath_var=no
6830 runpath_var='LD_RUN_PATH'
6831 ;;
6832
6833 uts4*)
6834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6835 hardcode_libdir_flag_spec='-L$libdir'
6836 hardcode_shlibpath_var=no
6837 ;;
6838
6839 *)
6840 ld_shlibs=no
6841 ;;
6842 esac
6843 fi
6844
John Criswell7a73b802003-06-30 21:59:07 +00006845echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6846echo "${ECHO_T}$ld_shlibs" >&6
6847test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006848
John Criswell47fdd832003-07-14 16:52:07 +00006849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6850if test "$GCC" = yes; then
6851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6852fi
6853
6854#
6855# Do we need to explicitly link libc?
6856#
6857case "x$archive_cmds_need_lc" in
6858x|xyes)
6859 # Assume -lc should be added
6860 archive_cmds_need_lc=yes
6861
6862 if test "$enable_shared" = yes && test "$GCC" = yes; then
6863 case $archive_cmds in
6864 *'~'*)
6865 # FIXME: we may have to deal with multi-command sequences.
6866 ;;
6867 '$CC '*)
6868 # Test whether the compiler implicitly links with -lc since on some
6869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6870 # to ld, don't add -lc before -lgcc.
6871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6873 $rm conftest*
6874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6875
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } 2>conftest.err; then
6881 soname=conftest
6882 lib=conftest
6883 libobjs=conftest.$ac_objext
6884 deplibs=
6885 wl=$lt_prog_compiler_wl
6886 compiler_flags=-v
6887 linker_flags=-v
6888 verstring=
6889 output_objdir=.
6890 libname=conftest
6891 lt_save_allow_undefined_flag=$allow_undefined_flag
6892 allow_undefined_flag=
6893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }
6898 then
6899 archive_cmds_need_lc=no
6900 else
6901 archive_cmds_need_lc=yes
6902 fi
6903 allow_undefined_flag=$lt_save_allow_undefined_flag
6904 else
6905 cat conftest.err 1>&5
6906 fi
6907 $rm conftest*
6908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6909echo "${ECHO_T}$archive_cmds_need_lc" >&6
6910 ;;
6911 esac
6912 fi
6913 ;;
6914esac
6915
John Criswell7a73b802003-06-30 21:59:07 +00006916echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6917echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6918hardcode_action=
6919if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00006920 test -n "$runpath_var " || \
6921 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00006922
6923 # We can hardcode non-existant directories.
6924 if test "$hardcode_direct" != no &&
6925 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6926 # have to relink, otherwise we might link with an installed library
6927 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00006928 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00006929 test "$hardcode_minus_L" != no; then
6930 # Linking always hardcodes the temporary library directory.
6931 hardcode_action=relink
6932 else
6933 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6934 hardcode_action=immediate
6935 fi
6936else
6937 # We cannot hardcode anything, or else we can only hardcode existing
6938 # directories.
6939 hardcode_action=unsupported
6940fi
6941echo "$as_me:$LINENO: result: $hardcode_action" >&5
6942echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006943
John Criswell47fdd832003-07-14 16:52:07 +00006944if test "$hardcode_action" = relink; then
6945 # Fast installation is not supported
6946 enable_fast_install=no
6947elif test "$shlibpath_overrides_runpath" = yes ||
6948 test "$enable_shared" = no; then
6949 # Fast installation is not necessary
6950 enable_fast_install=needless
6951fi
6952
John Criswell7a73b802003-06-30 21:59:07 +00006953striplib=
6954old_striplib=
6955echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6956echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6957if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6960 echo "$as_me:$LINENO: result: yes" >&5
6961echo "${ECHO_T}yes" >&6
6962else
John Criswell47fdd832003-07-14 16:52:07 +00006963# FIXME - insert some real tests, host_os isn't really good enough
6964 case $host_os in
6965 darwin*)
6966 if test -n "$STRIP" ; then
6967 striplib="$STRIP -x"
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
John Criswell7a73b802003-06-30 21:59:07 +00006971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973fi
John Criswell47fdd832003-07-14 16:52:07 +00006974 ;;
6975 *)
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978 ;;
6979 esac
6980fi
John Criswell7a73b802003-06-30 21:59:07 +00006981
John Criswell7a73b802003-06-30 21:59:07 +00006982echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6983echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6984library_names_spec=
6985libname_spec='lib$name'
6986soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00006987shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00006988postinstall_cmds=
6989postuninstall_cmds=
6990finish_cmds=
6991finish_eval=
6992shlibpath_var=
6993shlibpath_overrides_runpath=unknown
6994version_type=none
6995dynamic_linker="$host_os ld.so"
6996sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00006997if test "$GCC" = yes; then
6998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6999 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7000 # if the path contains ";" then we assume it to be the separator
7001 # otherwise default to the standard path separator (i.e. ":") - it is
7002 # assumed that no part of a normal pathname contains ";" but that should
7003 # okay in the real world where ";" in dirpaths is itself problematic.
7004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7005 else
7006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7007 fi
7008else
7009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7010fi
7011need_lib_prefix=unknown
7012hardcode_into_libs=no
7013
7014# when you set need_version to no, make sure it does not cause -set_version
7015# flags to be left without arguments
7016need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007017
7018case $host_os in
7019aix3*)
7020 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007022 shlibpath_var=LIBPATH
7023
John Criswell47fdd832003-07-14 16:52:07 +00007024 # AIX 3 has no versioning support, so we append a major version to the name.
7025 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007026 ;;
7027
7028aix4* | aix5*)
7029 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007030 need_lib_prefix=no
7031 need_version=no
7032 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007033 if test "$host_cpu" = ia64; then
7034 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007036 shlibpath_var=LD_LIBRARY_PATH
7037 else
7038 # With GCC up to 2.95.x, collect2 would create an import file
7039 # for dependence libraries. The import file would start with
7040 # the line `#! .'. This would cause the generated library to
7041 # depend on `.', always an invalid library. This was fixed in
7042 # development snapshots of GCC prior to 3.0.
7043 case $host_os in
7044 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7046 echo ' yes '
7047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7048 :
7049 else
7050 can_build_shared=no
7051 fi
7052 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007053 esac
John Criswell47fdd832003-07-14 16:52:07 +00007054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7055 # soname into executable. Probably we can add versioning support to
7056 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007057 if test "$aix_use_runtimelinking" = yes; then
7058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7059 # instead of lib<name>.a to let people know that these are not
7060 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007062 else
7063 # We preserve .a as extension for shared libraries through AIX4.2
7064 # and later when we are not doing run time linking.
7065 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007066 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007067 fi
7068 shlibpath_var=LIBPATH
7069 fi
7070 ;;
7071
7072amigaos*)
7073 library_names_spec='$libname.ixlibrary $libname.a'
7074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7075 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'
7076 ;;
7077
7078beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007079 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007080 dynamic_linker="$host_os ld.so"
7081 shlibpath_var=LIBRARY_PATH
7082 ;;
7083
7084bsdi4*)
7085 version_type=linux
7086 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007093 # the default ld.so.conf also contains /usr/contrib/lib and
7094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7095 # libtool to hard-code these into programs
7096 ;;
7097
7098cygwin* | mingw* | pw32*)
7099 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007100 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007101 need_version=no
7102 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007103
John Criswell7a73b802003-06-30 21:59:07 +00007104 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007105 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007106 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7108 postinstall_cmds='base_file=`basename \${file}`~
7109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007110 dldir=$destdir/`dirname \$dlpath`~
7111 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007112 $install_prog $dir/$dlname \$dldir/$dlname'
7113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007114 dlpath=$dir/\$dldll~
7115 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007116 shlibpath_overrides_runpath=yes
7117
7118 case $host_os in
7119 cygwin*)
7120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7122 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7123 ;;
7124 mingw*)
7125 # MinGW DLLs use traditional 'lib' prefix
7126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7128 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7129 # It is most probably a Windows format PATH printed by
7130 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7131 # path with ; separators, and with drive letters. We can handle the
7132 # drive letters (cygwin fileutils understands them), so leave them,
7133 # especially as we might pass files found there to a mingw objdump,
7134 # which wouldn't understand a cygwinified path. Ahh.
7135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7136 else
7137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7138 fi
7139 ;;
7140 pw32*)
7141 # pw32 DLLs use 'pw' prefix rather than 'lib'
7142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7143 ;;
7144 esac
John Criswell7a73b802003-06-30 21:59:07 +00007145 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007146
John Criswell7a73b802003-06-30 21:59:07 +00007147 *)
John Criswell47fdd832003-07-14 16:52:07 +00007148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007149 ;;
7150 esac
7151 dynamic_linker='Win32 ld.exe'
7152 # FIXME: first we should search . and the directory the executable is in
7153 shlibpath_var=PATH
7154 ;;
7155
7156darwin* | rhapsody*)
7157 dynamic_linker="$host_os dyld"
7158 version_type=darwin
7159 need_lib_prefix=no
7160 need_version=no
7161 # FIXME: Relying on posixy $() will cause problems for
7162 # cross-compilation, but unfortunately the echo tests do not
7163 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007164 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7165 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007166 shlibpath_overrides_runpath=yes
7167 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007168 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7169 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7170 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7171 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"`
7172 fi
7173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7174 ;;
7175
7176dgux*)
7177 version_type=linux
7178 need_lib_prefix=no
7179 need_version=no
7180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7181 soname_spec='${libname}${release}${shared_ext}$major'
7182 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007183 ;;
7184
7185freebsd1*)
7186 dynamic_linker=no
7187 ;;
7188
7189freebsd*)
7190 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7191 version_type=freebsd-$objformat
7192 case $version_type in
7193 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007195 need_version=no
7196 need_lib_prefix=no
7197 ;;
7198 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007200 need_version=yes
7201 ;;
7202 esac
7203 shlibpath_var=LD_LIBRARY_PATH
7204 case $host_os in
7205 freebsd2*)
7206 shlibpath_overrides_runpath=yes
7207 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007208 freebsd3.01* | freebsdelf3.01*)
7209 shlibpath_overrides_runpath=yes
7210 hardcode_into_libs=yes
7211 ;;
7212 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007213 shlibpath_overrides_runpath=no
7214 hardcode_into_libs=yes
7215 ;;
7216 esac
7217 ;;
7218
7219gnu*)
7220 version_type=linux
7221 need_lib_prefix=no
7222 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7224 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007225 shlibpath_var=LD_LIBRARY_PATH
7226 hardcode_into_libs=yes
7227 ;;
7228
7229hpux9* | hpux10* | hpux11*)
7230 # Give a soname corresponding to the major version so that dld.sl refuses to
7231 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007232 version_type=sunos
7233 need_lib_prefix=no
7234 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007235 case "$host_cpu" in
7236 ia64*)
7237 shrext='.so'
7238 hardcode_into_libs=yes
7239 dynamic_linker="$host_os dld.so"
7240 shlibpath_var=LD_LIBRARY_PATH
7241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7243 soname_spec='${libname}${release}${shared_ext}$major'
7244 if test "X$HPUX_IA64_MODE" = X32; then
7245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7246 else
7247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7248 fi
7249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7250 ;;
7251 hppa*64*)
7252 shrext='.sl'
7253 hardcode_into_libs=yes
7254 dynamic_linker="$host_os dld.sl"
7255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7258 soname_spec='${libname}${release}${shared_ext}$major'
7259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7261 ;;
7262 *)
7263 shrext='.sl'
7264 dynamic_linker="$host_os dld.sl"
7265 shlibpath_var=SHLIB_PATH
7266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7268 soname_spec='${libname}${release}${shared_ext}$major'
7269 ;;
7270 esac
John Criswell7a73b802003-06-30 21:59:07 +00007271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7272 postinstall_cmds='chmod 555 $lib'
7273 ;;
7274
John Criswell47fdd832003-07-14 16:52:07 +00007275irix5* | irix6* | nonstopux*)
7276 case $host_os in
7277 nonstopux*) version_type=nonstopux ;;
7278 *)
7279 if test "$lt_cv_prog_gnu_ld" = yes; then
7280 version_type=linux
7281 else
7282 version_type=irix
7283 fi ;;
7284 esac
John Criswell7a73b802003-06-30 21:59:07 +00007285 need_lib_prefix=no
7286 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007287 soname_spec='${libname}${release}${shared_ext}$major'
7288 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 +00007289 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007290 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007291 libsuff= shlibsuff=
7292 ;;
7293 *)
7294 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7296 libsuff= shlibsuff= libmagic=32-bit;;
7297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7298 libsuff=32 shlibsuff=N32 libmagic=N32;;
7299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007301 *) libsuff= shlibsuff= libmagic=never-match;;
7302 esac
7303 ;;
7304 esac
7305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7306 shlibpath_overrides_runpath=no
7307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007309 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007310 ;;
7311
7312# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007313linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007314 dynamic_linker=no
7315 ;;
7316
7317# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007318linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007319 version_type=linux
7320 need_lib_prefix=no
7321 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7323 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7325 shlibpath_var=LD_LIBRARY_PATH
7326 shlibpath_overrides_runpath=no
7327 # This implies no fast_install, which is unacceptable.
7328 # Some rework will be needed to allow for fast_install
7329 # before this can be enabled.
7330 hardcode_into_libs=yes
7331
7332 # We used to test for /lib/ld.so.1 and disable shared libraries on
7333 # powerpc, because MkLinux only supported shared libraries with the
7334 # GNU dynamic linker. Since this was broken with cross compilers,
7335 # most powerpc-linux boxes support dynamic linking these days and
7336 # people can always --disable-shared, the test was removed, and we
7337 # assume the GNU/Linux dynamic linker is in use.
7338 dynamic_linker='GNU/Linux ld.so'
7339 ;;
7340
7341netbsd*)
7342 version_type=sunos
7343 need_lib_prefix=no
7344 need_version=no
7345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7348 dynamic_linker='NetBSD (a.out) ld.so'
7349 else
John Criswell47fdd832003-07-14 16:52:07 +00007350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7351 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007352 dynamic_linker='NetBSD ld.elf_so'
7353 fi
7354 shlibpath_var=LD_LIBRARY_PATH
7355 shlibpath_overrides_runpath=yes
7356 hardcode_into_libs=yes
7357 ;;
7358
7359newsos6)
7360 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7364 ;;
7365
7366nto-qnx)
7367 version_type=linux
7368 need_lib_prefix=no
7369 need_version=no
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007372 shlibpath_var=LD_LIBRARY_PATH
7373 shlibpath_overrides_runpath=yes
7374 ;;
7375
7376openbsd*)
7377 version_type=sunos
7378 need_lib_prefix=no
7379 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7382 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007383 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 +00007384 case $host_os in
7385 openbsd2.[89] | openbsd2.[89].*)
7386 shlibpath_overrides_runpath=no
7387 ;;
7388 *)
7389 shlibpath_overrides_runpath=yes
7390 ;;
7391 esac
John Criswell7a73b802003-06-30 21:59:07 +00007392 else
7393 shlibpath_overrides_runpath=yes
7394 fi
John Criswell7a73b802003-06-30 21:59:07 +00007395 ;;
7396
7397os2*)
7398 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007399 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007400 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007401 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007402 dynamic_linker='OS/2 ld.exe'
7403 shlibpath_var=LIBPATH
7404 ;;
7405
7406osf3* | osf4* | osf5*)
7407 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007408 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007409 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007410 soname_spec='${libname}${release}${shared_ext}$major'
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007412 shlibpath_var=LD_LIBRARY_PATH
7413 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7414 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7415 ;;
7416
7417sco3.2v5*)
7418 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007419 soname_spec='${libname}${release}${shared_ext}$major'
7420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007421 shlibpath_var=LD_LIBRARY_PATH
7422 ;;
7423
7424solaris*)
7425 version_type=linux
7426 need_lib_prefix=no
7427 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007430 shlibpath_var=LD_LIBRARY_PATH
7431 shlibpath_overrides_runpath=yes
7432 hardcode_into_libs=yes
7433 # ldd complains unless libraries are executable
7434 postinstall_cmds='chmod +x $lib'
7435 ;;
7436
7437sunos4*)
7438 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7441 shlibpath_var=LD_LIBRARY_PATH
7442 shlibpath_overrides_runpath=yes
7443 if test "$with_gnu_ld" = yes; then
7444 need_lib_prefix=no
7445 fi
7446 need_version=yes
7447 ;;
7448
7449sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7450 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7452 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007453 shlibpath_var=LD_LIBRARY_PATH
7454 case $host_vendor in
7455 sni)
7456 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007457 need_lib_prefix=no
7458 export_dynamic_flag_spec='${wl}-Blargedynsym'
7459 runpath_var=LD_RUN_PATH
7460 ;;
7461 siemens)
7462 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007463 ;;
7464 motorola)
7465 need_lib_prefix=no
7466 need_version=no
7467 shlibpath_overrides_runpath=no
7468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7469 ;;
7470 esac
7471 ;;
7472
John Criswell7a73b802003-06-30 21:59:07 +00007473sysv4*MP*)
7474 if test -d /usr/nec ;then
7475 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7477 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007478 shlibpath_var=LD_LIBRARY_PATH
7479 fi
7480 ;;
7481
John Criswell47fdd832003-07-14 16:52:07 +00007482uts4*)
7483 version_type=linux
7484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7485 soname_spec='${libname}${release}${shared_ext}$major'
7486 shlibpath_var=LD_LIBRARY_PATH
7487 ;;
7488
John Criswell7a73b802003-06-30 21:59:07 +00007489*)
7490 dynamic_linker=no
7491 ;;
7492esac
7493echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7494echo "${ECHO_T}$dynamic_linker" >&6
7495test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007496
7497if test "x$enable_dlopen" != xyes; then
7498 enable_dlopen=unknown
7499 enable_dlopen_self=unknown
7500 enable_dlopen_self_static=unknown
7501else
7502 lt_cv_dlopen=no
7503 lt_cv_dlopen_libs=
7504
7505 case $host_os in
7506 beos*)
7507 lt_cv_dlopen="load_add_on"
7508 lt_cv_dlopen_libs=
7509 lt_cv_dlopen_self=yes
7510 ;;
7511
John Criswell47fdd832003-07-14 16:52:07 +00007512 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007513 lt_cv_dlopen="LoadLibrary"
7514 lt_cv_dlopen_libs=
7515 ;;
7516
John Criswell47fdd832003-07-14 16:52:07 +00007517 cygwin*)
7518 lt_cv_dlopen="dlopen"
7519 lt_cv_dlopen_libs=
7520 ;;
7521
7522 darwin*)
7523 # if libdl is installed we need to link against it
7524 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7525echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7526if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 ac_check_lib_save_LIBS=$LIBS
7530LIBS="-ldl $LIBS"
7531cat >conftest.$ac_ext <<_ACEOF
7532#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007533/* confdefs.h. */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007538
7539/* Override any gcc2 internal prototype to avoid an error. */
7540#ifdef __cplusplus
7541extern "C"
7542#endif
7543/* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007546int
7547main ()
7548{
7549dlopen ();
7550 ;
7551 return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext conftest$ac_exeext
7555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_lib_dl_dlopen=yes
7567else
7568 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007569sed 's/^/| /' conftest.$ac_ext >&5
7570
John Criswell47fdd832003-07-14 16:52:07 +00007571ac_cv_lib_dl_dlopen=no
7572fi
7573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574LIBS=$ac_check_lib_save_LIBS
7575fi
7576echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7577echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7578if test $ac_cv_lib_dl_dlopen = yes; then
7579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7580else
7581
7582 lt_cv_dlopen="dyld"
7583 lt_cv_dlopen_libs=
7584 lt_cv_dlopen_self=yes
7585
7586fi
7587
7588 ;;
7589
John Criswell7a73b802003-06-30 21:59:07 +00007590 *)
7591 echo "$as_me:$LINENO: checking for shl_load" >&5
7592echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7593if test "${ac_cv_func_shl_load+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596 cat >conftest.$ac_ext <<_ACEOF
7597#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007598/* confdefs.h. */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007603/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007604 which can conflict with char shl_load (); below.
7605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7606 <limits.h> exists even on freestanding compilers. */
7607#ifdef __STDC__
7608# include <limits.h>
7609#else
7610# include <assert.h>
7611#endif
John Criswell7a73b802003-06-30 21:59:07 +00007612/* Override any gcc2 internal prototype to avoid an error. */
7613#ifdef __cplusplus
7614extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007615{
John Criswell7a73b802003-06-30 21:59:07 +00007616#endif
7617/* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007620/* The GNU C library defines this for functions which it implements
7621 to always fail with ENOSYS. Some functions are actually named
7622 something starting with __ and the normal name is an alias. */
7623#if defined (__stub_shl_load) || defined (__stub___shl_load)
7624choke me
7625#else
John Criswell392aaa32003-07-22 19:18:09 +00007626char (*f) () = shl_load;
7627#endif
7628#ifdef __cplusplus
7629}
John Criswell7a73b802003-06-30 21:59:07 +00007630#endif
7631
John Criswell392aaa32003-07-22 19:18:09 +00007632int
7633main ()
7634{
7635return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007636 ;
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>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_func_shl_load=yes
7653else
7654 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007655sed 's/^/| /' conftest.$ac_ext >&5
7656
John Criswell7a73b802003-06-30 21:59:07 +00007657ac_cv_func_shl_load=no
7658fi
7659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660fi
7661echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7662echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7663if test $ac_cv_func_shl_load = yes; then
7664 lt_cv_dlopen="shl_load"
7665else
7666 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7667echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7668if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 ac_check_lib_save_LIBS=$LIBS
7672LIBS="-ldld $LIBS"
7673cat >conftest.$ac_ext <<_ACEOF
7674#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007680
7681/* Override any gcc2 internal prototype to avoid an error. */
7682#ifdef __cplusplus
7683extern "C"
7684#endif
7685/* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007688int
7689main ()
7690{
7691shl_load ();
7692 ;
7693 return 0;
7694}
7695_ACEOF
7696rm -f conftest.$ac_objext conftest$ac_exeext
7697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698 (eval $ac_link) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_cv_lib_dld_shl_load=yes
7709else
7710 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007711sed 's/^/| /' conftest.$ac_ext >&5
7712
John Criswell7a73b802003-06-30 21:59:07 +00007713ac_cv_lib_dld_shl_load=no
7714fi
7715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716LIBS=$ac_check_lib_save_LIBS
7717fi
7718echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7719echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7720if test $ac_cv_lib_dld_shl_load = yes; then
7721 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7722else
7723 echo "$as_me:$LINENO: checking for dlopen" >&5
7724echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7725if test "${ac_cv_func_dlopen+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 cat >conftest.$ac_ext <<_ACEOF
7729#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007730/* confdefs.h. */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007735/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007736 which can conflict with char dlopen (); below.
7737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7738 <limits.h> exists even on freestanding compilers. */
7739#ifdef __STDC__
7740# include <limits.h>
7741#else
7742# include <assert.h>
7743#endif
John Criswell7a73b802003-06-30 21:59:07 +00007744/* Override any gcc2 internal prototype to avoid an error. */
7745#ifdef __cplusplus
7746extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007747{
John Criswell7a73b802003-06-30 21:59:07 +00007748#endif
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007752/* The GNU C library defines this for functions which it implements
7753 to always fail with ENOSYS. Some functions are actually named
7754 something starting with __ and the normal name is an alias. */
7755#if defined (__stub_dlopen) || defined (__stub___dlopen)
7756choke me
7757#else
John Criswell392aaa32003-07-22 19:18:09 +00007758char (*f) () = dlopen;
7759#endif
7760#ifdef __cplusplus
7761}
John Criswell7a73b802003-06-30 21:59:07 +00007762#endif
7763
John Criswell392aaa32003-07-22 19:18:09 +00007764int
7765main ()
7766{
7767return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007768 ;
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>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_func_dlopen=yes
7785else
7786 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007787sed 's/^/| /' conftest.$ac_ext >&5
7788
John Criswell7a73b802003-06-30 21:59:07 +00007789ac_cv_func_dlopen=no
7790fi
7791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792fi
7793echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7794echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7795if test $ac_cv_func_dlopen = yes; then
7796 lt_cv_dlopen="dlopen"
7797else
7798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7799echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7800if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 ac_check_lib_save_LIBS=$LIBS
7804LIBS="-ldl $LIBS"
7805cat >conftest.$ac_ext <<_ACEOF
7806#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007812
7813/* Override any gcc2 internal prototype to avoid an error. */
7814#ifdef __cplusplus
7815extern "C"
7816#endif
7817/* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007820int
7821main ()
7822{
7823dlopen ();
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_dl_dlopen=yes
7841else
7842 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007843sed 's/^/| /' conftest.$ac_ext >&5
7844
John Criswell7a73b802003-06-30 21:59:07 +00007845ac_cv_lib_dl_dlopen=no
7846fi
7847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848LIBS=$ac_check_lib_save_LIBS
7849fi
7850echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7852if test $ac_cv_lib_dl_dlopen = yes; then
7853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7854else
7855 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7856echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7857if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860 ac_check_lib_save_LIBS=$LIBS
7861LIBS="-lsvld $LIBS"
7862cat >conftest.$ac_ext <<_ACEOF
7863#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007864/* confdefs.h. */
7865_ACEOF
7866cat confdefs.h >>conftest.$ac_ext
7867cat >>conftest.$ac_ext <<_ACEOF
7868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007869
7870/* Override any gcc2 internal prototype to avoid an error. */
7871#ifdef __cplusplus
7872extern "C"
7873#endif
7874/* We use char because int might match the return type of a gcc2
7875 builtin and then its argument prototype would still apply. */
7876char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007877int
7878main ()
7879{
7880dlopen ();
7881 ;
7882 return 0;
7883}
7884_ACEOF
7885rm -f conftest.$ac_objext conftest$ac_exeext
7886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7887 (eval $ac_link) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_lib_svld_dlopen=yes
7898else
7899 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007900sed 's/^/| /' conftest.$ac_ext >&5
7901
John Criswell7a73b802003-06-30 21:59:07 +00007902ac_cv_lib_svld_dlopen=no
7903fi
7904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS
7906fi
7907echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909if test $ac_cv_lib_svld_dlopen = yes; then
7910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7911else
7912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7913echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7914if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 ac_check_lib_save_LIBS=$LIBS
7918LIBS="-ldld $LIBS"
7919cat >conftest.$ac_ext <<_ACEOF
7920#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007926
7927/* Override any gcc2 internal prototype to avoid an error. */
7928#ifdef __cplusplus
7929extern "C"
7930#endif
7931/* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7933char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00007934int
7935main ()
7936{
7937dld_link ();
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942rm -f conftest.$ac_objext conftest$ac_exeext
7943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944 (eval $ac_link) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_lib_dld_dld_link=yes
7955else
7956 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007957sed 's/^/| /' conftest.$ac_ext >&5
7958
John Criswell7a73b802003-06-30 21:59:07 +00007959ac_cv_lib_dld_dld_link=no
7960fi
7961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962LIBS=$ac_check_lib_save_LIBS
7963fi
7964echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7965echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7966if test $ac_cv_lib_dld_dld_link = yes; then
7967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7968fi
7969
7970
7971fi
7972
7973
7974fi
7975
7976
7977fi
7978
7979
7980fi
7981
7982
7983fi
7984
7985 ;;
7986 esac
7987
7988 if test "x$lt_cv_dlopen" != xno; then
7989 enable_dlopen=yes
7990 else
7991 enable_dlopen=no
7992 fi
7993
7994 case $lt_cv_dlopen in
7995 dlopen)
7996 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00007997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00007998
7999 save_LDFLAGS="$LDFLAGS"
8000 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8001
8002 save_LIBS="$LIBS"
8003 LIBS="$lt_cv_dlopen_libs $LIBS"
8004
8005 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8006echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8007if test "${lt_cv_dlopen_self+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 if test "$cross_compiling" = yes; then :
8011 lt_cv_dlopen_self=cross
8012else
John Criswell47fdd832003-07-14 16:52:07 +00008013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008014 lt_status=$lt_dlunknown
8015 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +00008016#line 8016 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008017#include "confdefs.h"
8018
8019#if HAVE_DLFCN_H
8020#include <dlfcn.h>
8021#endif
8022
8023#include <stdio.h>
8024
8025#ifdef RTLD_GLOBAL
8026# define LT_DLGLOBAL RTLD_GLOBAL
8027#else
8028# ifdef DL_GLOBAL
8029# define LT_DLGLOBAL DL_GLOBAL
8030# else
8031# define LT_DLGLOBAL 0
8032# endif
8033#endif
8034
8035/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8036 find out it does not work in some platform. */
8037#ifndef LT_DLLAZY_OR_NOW
8038# ifdef RTLD_LAZY
8039# define LT_DLLAZY_OR_NOW RTLD_LAZY
8040# else
8041# ifdef DL_LAZY
8042# define LT_DLLAZY_OR_NOW DL_LAZY
8043# else
8044# ifdef RTLD_NOW
8045# define LT_DLLAZY_OR_NOW RTLD_NOW
8046# else
8047# ifdef DL_NOW
8048# define LT_DLLAZY_OR_NOW DL_NOW
8049# else
8050# define LT_DLLAZY_OR_NOW 0
8051# endif
8052# endif
8053# endif
8054# endif
8055#endif
8056
8057#ifdef __cplusplus
8058extern "C" void exit (int);
8059#endif
8060
8061void fnord() { int i=42;}
8062int main ()
8063{
8064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8065 int status = $lt_dlunknown;
8066
8067 if (self)
8068 {
8069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8071 /* dlclose (self); */
8072 }
8073
8074 exit (status);
8075}
8076EOF
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8082 (./conftest; exit; ) 2>/dev/null
8083 lt_status=$?
8084 case x$lt_status in
8085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8087 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8088 esac
8089 else :
8090 # compilation failed
8091 lt_cv_dlopen_self=no
8092 fi
8093fi
8094rm -fr conftest*
8095
8096
8097fi
8098echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8099echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8100
8101 if test "x$lt_cv_dlopen_self" = xyes; then
8102 LDFLAGS="$LDFLAGS $link_static_flag"
8103 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8104echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8105if test "${lt_cv_dlopen_self_static+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108 if test "$cross_compiling" = yes; then :
8109 lt_cv_dlopen_self_static=cross
8110else
John Criswell47fdd832003-07-14 16:52:07 +00008111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008112 lt_status=$lt_dlunknown
8113 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +00008114#line 8114 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008115#include "confdefs.h"
8116
8117#if HAVE_DLFCN_H
8118#include <dlfcn.h>
8119#endif
8120
8121#include <stdio.h>
8122
8123#ifdef RTLD_GLOBAL
8124# define LT_DLGLOBAL RTLD_GLOBAL
8125#else
8126# ifdef DL_GLOBAL
8127# define LT_DLGLOBAL DL_GLOBAL
8128# else
8129# define LT_DLGLOBAL 0
8130# endif
8131#endif
8132
8133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8134 find out it does not work in some platform. */
8135#ifndef LT_DLLAZY_OR_NOW
8136# ifdef RTLD_LAZY
8137# define LT_DLLAZY_OR_NOW RTLD_LAZY
8138# else
8139# ifdef DL_LAZY
8140# define LT_DLLAZY_OR_NOW DL_LAZY
8141# else
8142# ifdef RTLD_NOW
8143# define LT_DLLAZY_OR_NOW RTLD_NOW
8144# else
8145# ifdef DL_NOW
8146# define LT_DLLAZY_OR_NOW DL_NOW
8147# else
8148# define LT_DLLAZY_OR_NOW 0
8149# endif
8150# endif
8151# endif
8152# endif
8153#endif
8154
8155#ifdef __cplusplus
8156extern "C" void exit (int);
8157#endif
8158
8159void fnord() { int i=42;}
8160int main ()
8161{
8162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8163 int status = $lt_dlunknown;
8164
8165 if (self)
8166 {
8167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8169 /* dlclose (self); */
8170 }
8171
8172 exit (status);
8173}
8174EOF
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8180 (./conftest; exit; ) 2>/dev/null
8181 lt_status=$?
8182 case x$lt_status in
8183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8185 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8186 esac
8187 else :
8188 # compilation failed
8189 lt_cv_dlopen_self_static=no
8190 fi
8191fi
8192rm -fr conftest*
8193
8194
8195fi
8196echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8197echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8198 fi
8199
8200 CPPFLAGS="$save_CPPFLAGS"
8201 LDFLAGS="$save_LDFLAGS"
8202 LIBS="$save_LIBS"
8203 ;;
8204 esac
8205
8206 case $lt_cv_dlopen_self in
8207 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8208 *) enable_dlopen_self=unknown ;;
8209 esac
8210
8211 case $lt_cv_dlopen_self_static in
8212 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8213 *) enable_dlopen_self_static=unknown ;;
8214 esac
8215fi
8216
8217
John Criswell47fdd832003-07-14 16:52:07 +00008218# Report which librarie types wil actually be built
8219echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8220echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8221echo "$as_me:$LINENO: result: $can_build_shared" >&5
8222echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008223
John Criswell47fdd832003-07-14 16:52:07 +00008224echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8225echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8226test "$can_build_shared" = "no" && enable_shared=no
8227
8228# On AIX, shared libraries and static libraries use the same namespace, and
8229# are all built from PIC.
8230case "$host_os" in
8231aix3*)
8232 test "$enable_shared" = yes && enable_static=no
8233 if test -n "$RANLIB"; then
8234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8235 postinstall_cmds='$RANLIB $lib'
8236 fi
8237 ;;
8238
8239aix4*)
8240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8241 test "$enable_shared" = yes && enable_static=no
8242 fi
8243 ;;
8244 darwin* | rhapsody*)
8245 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8246 archive_cmds_need_lc=no
8247 case "$host_os" in
8248 rhapsody* | darwin1.[012])
8249 allow_undefined_flag='-undefined suppress'
8250 ;;
8251 *) # Darwin 1.3 on
8252 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8253 ;;
8254 esac
8255 # FIXME: Relying on posixy $() will cause problems for
8256 # cross-compilation, but unfortunately the echo tests do not
8257 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8258 # `"' quotes if we put them in here... so don't!
8259 output_verbose_link_cmd='echo'
8260 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8261 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8263 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}'
8264 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8265 hardcode_direct=no
8266 hardcode_automatic=yes
8267 hardcode_shlibpath_var=unsupported
8268 whole_archive_flag_spec='-all_load $convenience'
8269 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008270 fi
John Criswell7a73b802003-06-30 21:59:07 +00008271 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008272esac
8273echo "$as_me:$LINENO: result: $enable_shared" >&5
8274echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008275
John Criswell47fdd832003-07-14 16:52:07 +00008276echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8277echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8278# Make sure either enable_shared or enable_static is yes.
8279test "$enable_shared" = yes || enable_static=yes
8280echo "$as_me:$LINENO: result: $enable_static" >&5
8281echo "${ECHO_T}$enable_static" >&6
8282
8283# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008284# libtool distribution, otherwise you forgot to ship ltmain.sh
8285# with your package, and you will get complaints that there are
8286# no rules to generate ltmain.sh.
8287if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008288 # See if we are running on zsh, and set the options which allow our commands through
8289 # without removal of \ escapes.
8290 if test -n "${ZSH_VERSION+set}" ; then
8291 setopt NO_GLOB_SUBST
8292 fi
John Criswell7a73b802003-06-30 21:59:07 +00008293 # Now quote all the things that may contain metacharacters while being
8294 # careful not to overquote the AC_SUBSTed values. We take copies of the
8295 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8299 deplibs_check_method reload_flag reload_cmds need_locks \
8300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8301 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008303 old_postinstall_cmds old_postuninstall_cmds \
8304 compiler \
8305 CC \
8306 LD \
8307 lt_prog_compiler_wl \
8308 lt_prog_compiler_pic \
8309 lt_prog_compiler_static \
8310 lt_prog_compiler_no_builtin_flag \
8311 export_dynamic_flag_spec \
8312 thread_safe_flag_spec \
8313 whole_archive_flag_spec \
8314 enable_shared_with_static_runtimes \
8315 old_archive_cmds \
8316 old_archive_from_new_cmds \
8317 predep_objects \
8318 postdep_objects \
8319 predeps \
8320 postdeps \
8321 compiler_lib_search_path \
8322 archive_cmds \
8323 archive_expsym_cmds \
8324 postinstall_cmds \
8325 postuninstall_cmds \
8326 old_archive_from_expsyms_cmds \
8327 allow_undefined_flag \
8328 no_undefined_flag \
8329 export_symbols_cmds \
8330 hardcode_libdir_flag_spec \
8331 hardcode_libdir_flag_spec_ld \
8332 hardcode_libdir_separator \
8333 hardcode_automatic \
8334 module_cmds \
8335 module_expsym_cmds \
8336 lt_cv_prog_compiler_c_o \
8337 exclude_expsyms \
8338 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008339
8340 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008341 old_archive_cmds | \
8342 old_archive_from_new_cmds | \
8343 archive_cmds | \
8344 archive_expsym_cmds | \
8345 module_cmds | \
8346 module_expsym_cmds | \
8347 old_archive_from_expsyms_cmds | \
8348 export_symbols_cmds | \
8349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008350 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008351 old_postinstall_cmds | old_postuninstall_cmds | \
8352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008353 # Double-quote double-evaled strings.
8354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8355 ;;
8356 *)
8357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8358 ;;
8359 esac
8360 done
8361
John Criswell47fdd832003-07-14 16:52:07 +00008362 case $lt_echo in
8363 *'\$0 --fallback-echo"')
8364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8365 ;;
8366 esac
8367
8368cfgfile="${ofile}T"
8369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8370 $rm -f "$cfgfile"
8371 { echo "$as_me:$LINENO: creating $ofile" >&5
8372echo "$as_me: creating $ofile" >&6;}
8373
8374 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008375#! $SHELL
8376
John Criswell47fdd832003-07-14 16:52:07 +00008377# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008378# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8379# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8380#
John Criswell47fdd832003-07-14 16:52:07 +00008381# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8382# Free Software Foundation, Inc.
8383#
8384# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008385# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8386#
8387# This program is free software; you can redistribute it and/or modify
8388# it under the terms of the GNU General Public License as published by
8389# the Free Software Foundation; either version 2 of the License, or
8390# (at your option) any later version.
8391#
8392# This program is distributed in the hope that it will be useful, but
8393# WITHOUT ANY WARRANTY; without even the implied warranty of
8394# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8395# General Public License for more details.
8396#
8397# You should have received a copy of the GNU General Public License
8398# along with this program; if not, write to the Free Software
8399# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8400#
8401# As a special exception to the GNU General Public License, if you
8402# distribute this file as part of a program that contains a
8403# configuration script generated by Autoconf, you may include it under
8404# the same distribution terms that you use for the rest of that program.
8405
John Criswell47fdd832003-07-14 16:52:07 +00008406# A sed program that does not truncate output.
8407SED=$lt_SED
8408
John Criswell7a73b802003-06-30 21:59:07 +00008409# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008410Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008411
8412# The HP-UX ksh and POSIX shell print the target directory to stdout
8413# if CDPATH is set.
8414if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8415
John Criswell47fdd832003-07-14 16:52:07 +00008416# The names of the tagged configurations supported by this script.
8417available_tags=
8418
John Criswell7a73b802003-06-30 21:59:07 +00008419# ### BEGIN LIBTOOL CONFIG
8420
8421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8422
8423# Shell to use when invoking shell scripts.
8424SHELL=$lt_SHELL
8425
8426# Whether or not to build shared libraries.
8427build_libtool_libs=$enable_shared
8428
8429# Whether or not to build static libraries.
8430build_old_libs=$enable_static
8431
8432# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008433build_libtool_need_lc=$archive_cmds_need_lc
8434
8435# Whether or not to disallow shared libs when runtime libs are static
8436allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008437
8438# Whether or not to optimize for fast installation.
8439fast_install=$enable_fast_install
8440
8441# The host system.
8442host_alias=$host_alias
8443host=$host
8444
8445# An echo program that does not interpret backslashes.
8446echo=$lt_echo
8447
8448# The archiver.
8449AR=$lt_AR
8450AR_FLAGS=$lt_AR_FLAGS
8451
John Criswell47fdd832003-07-14 16:52:07 +00008452# A C compiler.
8453LTCC=$lt_LTCC
8454
8455# A language-specific compiler.
8456CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008457
8458# Is the compiler the GNU C compiler?
8459with_gcc=$GCC
8460
John Criswell47fdd832003-07-14 16:52:07 +00008461# An ERE matcher.
8462EGREP=$lt_EGREP
8463
John Criswell7a73b802003-06-30 21:59:07 +00008464# The linker used to build libraries.
8465LD=$lt_LD
8466
8467# Whether we need hard or soft links.
8468LN_S=$lt_LN_S
8469
8470# A BSD-compatible nm program.
8471NM=$lt_NM
8472
8473# A symbol stripping program
8474STRIP=$STRIP
8475
8476# Used to examine libraries when file_magic_cmd begins "file"
8477MAGIC_CMD=$MAGIC_CMD
8478
8479# Used on cygwin: DLL creation program.
8480DLLTOOL="$DLLTOOL"
8481
8482# Used on cygwin: object dumper.
8483OBJDUMP="$OBJDUMP"
8484
8485# Used on cygwin: assembler.
8486AS="$AS"
8487
8488# The name of the directory that contains temporary libtool files.
8489objdir=$objdir
8490
8491# How to create reloadable object files.
8492reload_flag=$lt_reload_flag
8493reload_cmds=$lt_reload_cmds
8494
8495# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008496wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008497
8498# Object file suffix (normally "o").
8499objext="$ac_objext"
8500
8501# Old archive suffix (normally "a").
8502libext="$libext"
8503
John Criswell47fdd832003-07-14 16:52:07 +00008504# Shared library suffix (normally ".so").
8505shrext='$shrext'
8506
John Criswell7a73b802003-06-30 21:59:07 +00008507# Executable file suffix (normally "").
8508exeext="$exeext"
8509
8510# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008511pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008512pic_mode=$pic_mode
8513
John Criswell47fdd832003-07-14 16:52:07 +00008514# What is the maximum length of a command?
8515max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008516
John Criswell47fdd832003-07-14 16:52:07 +00008517# Does compiler simultaneously support -c and -o options?
8518compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008519
8520# Must we lock files when doing compilation ?
8521need_locks=$lt_need_locks
8522
8523# Do we need the lib prefix for modules?
8524need_lib_prefix=$need_lib_prefix
8525
8526# Do we need a version for libraries?
8527need_version=$need_version
8528
8529# Whether dlopen is supported.
8530dlopen_support=$enable_dlopen
8531
8532# Whether dlopen of programs is supported.
8533dlopen_self=$enable_dlopen_self
8534
8535# Whether dlopen of statically linked programs is supported.
8536dlopen_self_static=$enable_dlopen_self_static
8537
8538# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008539link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008540
8541# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008543
8544# Compiler flag to allow reflexive dlopens.
8545export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8546
8547# Compiler flag to generate shared objects directly from archives.
8548whole_archive_flag_spec=$lt_whole_archive_flag_spec
8549
8550# Compiler flag to generate thread-safe objects.
8551thread_safe_flag_spec=$lt_thread_safe_flag_spec
8552
8553# Library versioning type.
8554version_type=$version_type
8555
8556# Format of library name prefix.
8557libname_spec=$lt_libname_spec
8558
8559# List of archive names. First name is the real one, the rest are links.
8560# The last name is the one that the linker finds with -lNAME.
8561library_names_spec=$lt_library_names_spec
8562
8563# The coded name of the library, if different from the real name.
8564soname_spec=$lt_soname_spec
8565
8566# Commands used to build and install an old-style archive.
8567RANLIB=$lt_RANLIB
8568old_archive_cmds=$lt_old_archive_cmds
8569old_postinstall_cmds=$lt_old_postinstall_cmds
8570old_postuninstall_cmds=$lt_old_postuninstall_cmds
8571
8572# Create an old-style archive from a shared archive.
8573old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8574
8575# Create a temporary old-style archive to link instead of a shared archive.
8576old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8577
8578# Commands used to build and install a shared archive.
8579archive_cmds=$lt_archive_cmds
8580archive_expsym_cmds=$lt_archive_expsym_cmds
8581postinstall_cmds=$lt_postinstall_cmds
8582postuninstall_cmds=$lt_postuninstall_cmds
8583
John Criswell47fdd832003-07-14 16:52:07 +00008584# Commands used to build a loadable module (assumed same as above if empty)
8585module_cmds=$lt_module_cmds
8586module_expsym_cmds=$lt_module_expsym_cmds
8587
John Criswell7a73b802003-06-30 21:59:07 +00008588# Commands to strip libraries.
8589old_striplib=$lt_old_striplib
8590striplib=$lt_striplib
8591
John Criswell47fdd832003-07-14 16:52:07 +00008592# Dependencies to place before the objects being linked to create a
8593# shared library.
8594predep_objects=$lt_predep_objects
8595
8596# Dependencies to place after the objects being linked to create a
8597# shared library.
8598postdep_objects=$lt_postdep_objects
8599
8600# Dependencies to place before the objects being linked to create a
8601# shared library.
8602predeps=$lt_predeps
8603
8604# Dependencies to place after the objects being linked to create a
8605# shared library.
8606postdeps=$lt_postdeps
8607
8608# The library search path used internally by the compiler when linking
8609# a shared library.
8610compiler_lib_search_path=$lt_compiler_lib_search_path
8611
John Criswell7a73b802003-06-30 21:59:07 +00008612# Method to check whether dependent libraries are shared objects.
8613deplibs_check_method=$lt_deplibs_check_method
8614
8615# Command to use when deplibs_check_method == file_magic.
8616file_magic_cmd=$lt_file_magic_cmd
8617
8618# Flag that allows shared libraries with undefined symbols to be built.
8619allow_undefined_flag=$lt_allow_undefined_flag
8620
8621# Flag that forces no undefined symbols.
8622no_undefined_flag=$lt_no_undefined_flag
8623
8624# Commands used to finish a libtool library installation in a directory.
8625finish_cmds=$lt_finish_cmds
8626
8627# Same as above, but a single script fragment to be evaled but not shown.
8628finish_eval=$lt_finish_eval
8629
8630# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008632
8633# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008635
8636# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008638
8639# This is the shared library runtime path variable.
8640runpath_var=$runpath_var
8641
8642# This is the shared library path variable.
8643shlibpath_var=$shlibpath_var
8644
8645# Is shlibpath searched before the hard-coded library search path?
8646shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8647
8648# How to hardcode a shared library path into an executable.
8649hardcode_action=$hardcode_action
8650
8651# Whether we should hardcode library paths into libraries.
8652hardcode_into_libs=$hardcode_into_libs
8653
8654# Flag to hardcode \$libdir into a binary during linking.
8655# This must work even if \$libdir does not exist.
8656hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8657
John Criswell47fdd832003-07-14 16:52:07 +00008658# If ld is used when linking, flag to hardcode \$libdir into
8659# a binary during linking. This must work even if \$libdir does
8660# not exist.
8661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8662
John Criswell7a73b802003-06-30 21:59:07 +00008663# Whether we need a single -rpath flag with a separated argument.
8664hardcode_libdir_separator=$lt_hardcode_libdir_separator
8665
John Criswell47fdd832003-07-14 16:52:07 +00008666# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008667# resulting binary.
8668hardcode_direct=$hardcode_direct
8669
8670# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8671# resulting binary.
8672hardcode_minus_L=$hardcode_minus_L
8673
8674# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8675# the resulting binary.
8676hardcode_shlibpath_var=$hardcode_shlibpath_var
8677
John Criswell47fdd832003-07-14 16:52:07 +00008678# Set to yes if building a shared library automatically hardcodes DIR into the library
8679# and all subsequent libraries and executables linked against it.
8680hardcode_automatic=$hardcode_automatic
8681
John Criswell7a73b802003-06-30 21:59:07 +00008682# Variables whose values should be saved in libtool wrapper scripts and
8683# restored at relink time.
8684variables_saved_for_relink="$variables_saved_for_relink"
8685
8686# Whether libtool must link a program against all its dependency libraries.
8687link_all_deplibs=$link_all_deplibs
8688
8689# Compile-time system search path for libraries
8690sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8691
8692# Run-time system search path for libraries
8693sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8694
8695# Fix the shell variable \$srcfile for the compiler.
8696fix_srcfile_path="$fix_srcfile_path"
8697
8698# Set to yes if exported symbols are required.
8699always_export_symbols=$always_export_symbols
8700
8701# The commands to list exported symbols.
8702export_symbols_cmds=$lt_export_symbols_cmds
8703
8704# The commands to extract the exported symbol list from a shared archive.
8705extract_expsyms_cmds=$lt_extract_expsyms_cmds
8706
8707# Symbols that should not be listed in the preloaded symbols.
8708exclude_expsyms=$lt_exclude_expsyms
8709
8710# Symbols that must always be exported.
8711include_expsyms=$lt_include_expsyms
8712
8713# ### END LIBTOOL CONFIG
8714
8715__EOF__
8716
John Criswell47fdd832003-07-14 16:52:07 +00008717
John Criswell7a73b802003-06-30 21:59:07 +00008718 case $host_os in
8719 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008720 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008721
8722# AIX sometimes has problems with the GCC collect2 program. For some
8723# reason, if we set the COLLECT_NAMES environment variable, the problems
8724# vanish in a puff of smoke.
8725if test "X${COLLECT_NAMES+set}" != Xset; then
8726 COLLECT_NAMES=
8727 export COLLECT_NAMES
8728fi
8729EOF
8730 ;;
8731 esac
8732
John Criswell7a73b802003-06-30 21:59:07 +00008733 # We use sed instead of cat because bash on DJGPP gets confused if
8734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8735 # text mode, it properly converts lines to CR/LF. This bash problem
8736 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008737 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008738
John Criswell47fdd832003-07-14 16:52:07 +00008739 mv -f "$cfgfile" "$ofile" || \
8740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008741 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008742
8743else
8744 # If there is no Makefile yet, we rely on a make rule to execute
8745 # `config.status --recheck' to rerun these tests and create the
8746 # libtool script then.
8747 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008748fi
John Criswell7a73b802003-06-30 21:59:07 +00008749
8750
John Criswell47fdd832003-07-14 16:52:07 +00008751ac_ext=c
8752ac_cpp='$CPP $CPPFLAGS'
8753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757CC="$lt_save_CC"
8758
8759
8760# Check whether --with-tags or --without-tags was given.
8761if test "${with_tags+set}" = set; then
8762 withval="$with_tags"
8763 tagnames="$withval"
8764fi;
8765
8766if test -f "$ltmain" && test -n "$tagnames"; then
8767 if test ! -f "${ofile}"; then
8768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8769echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8770 fi
8771
8772 if test -z "$LTCC"; then
8773 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8774 if test -z "$LTCC"; then
8775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8776echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8777 else
8778 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8779echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8780 fi
8781 fi
8782
8783 # Extract list of available tagged configurations in $ofile.
8784 # Note that this assumes the entire list is on one line.
8785 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8786
8787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8788 for tagname in $tagnames; do
8789 IFS="$lt_save_ifs"
8790 # Check whether tagname contains only valid characters
8791 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8792 "") ;;
8793 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8794echo "$as_me: error: invalid tag name: $tagname" >&2;}
8795 { (exit 1); exit 1; }; }
8796 ;;
8797 esac
8798
8799 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8800 then
8801 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8802echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8803 { (exit 1); exit 1; }; }
8804 fi
8805
8806 # Update the list of available tags.
8807 if test -n "$tagname"; then
8808 echo appending configuration tag \"$tagname\" to $ofile
8809
8810 case $tagname in
8811 CXX)
8812 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8813 ac_ext=cc
8814ac_cpp='$CXXCPP $CPPFLAGS'
8815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8818
8819
8820
8821
8822archive_cmds_need_lc_CXX=no
8823allow_undefined_flag_CXX=
8824always_export_symbols_CXX=no
8825archive_expsym_cmds_CXX=
8826export_dynamic_flag_spec_CXX=
8827hardcode_direct_CXX=no
8828hardcode_libdir_flag_spec_CXX=
8829hardcode_libdir_flag_spec_ld_CXX=
8830hardcode_libdir_separator_CXX=
8831hardcode_minus_L_CXX=no
8832hardcode_automatic_CXX=no
8833module_cmds_CXX=
8834module_expsym_cmds_CXX=
8835link_all_deplibs_CXX=unknown
8836old_archive_cmds_CXX=$old_archive_cmds
8837no_undefined_flag_CXX=
8838whole_archive_flag_spec_CXX=
8839enable_shared_with_static_runtimes_CXX=no
8840
8841# Dependencies to place before and after the object being linked:
8842predep_objects_CXX=
8843postdep_objects_CXX=
8844predeps_CXX=
8845postdeps_CXX=
8846compiler_lib_search_path_CXX=
8847
8848# Source file extension for C++ test sources.
8849ac_ext=cc
8850
8851# Object file extension for compiled C++ test sources.
8852objext=o
8853objext_CXX=$objext
8854
8855# Code to be used in simple compile tests
8856lt_simple_compile_test_code="int some_variable = 0;\n"
8857
8858# Code to be used in simple link tests
8859lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8860
8861# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8862
8863# If no C compiler was specified, use CC.
8864LTCC=${LTCC-"$CC"}
8865
8866# Allow CC to be a program name with arguments.
8867compiler=$CC
8868
8869
8870# Allow CC to be a program name with arguments.
8871lt_save_CC=$CC
8872lt_save_LD=$LD
8873lt_save_GCC=$GCC
8874GCC=$GXX
8875lt_save_with_gnu_ld=$with_gnu_ld
8876lt_save_path_LD=$lt_cv_path_LD
8877if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8879else
8880 unset lt_cv_prog_gnu_ld
8881fi
8882if test -n "${lt_cv_path_LDCXX+set}"; then
8883 lt_cv_path_LD=$lt_cv_path_LDCXX
8884else
8885 unset lt_cv_path_LD
8886fi
8887test -z "${LDCXX+set}" || LD=$LDCXX
8888CC=${CXX-"c++"}
8889compiler=$CC
8890compiler_CXX=$CC
8891cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8892
8893# We don't want -fno-exception wen compiling C++ code, so set the
8894# no_builtin_flag separately
8895if test "$GXX" = yes; then
8896 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8897else
8898 lt_prog_compiler_no_builtin_flag_CXX=
8899fi
8900
8901if test "$GXX" = yes; then
8902 # Set up default GNU C++ configuration
8903
8904
8905# Check whether --with-gnu-ld or --without-gnu-ld was given.
8906if test "${with_gnu_ld+set}" = set; then
8907 withval="$with_gnu_ld"
8908 test "$withval" = no || with_gnu_ld=yes
8909else
8910 with_gnu_ld=no
8911fi;
8912ac_prog=ld
8913if test "$GCC" = yes; then
8914 # Check if gcc -print-prog-name=ld gives a path.
8915 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8916echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8917 case $host in
8918 *-*-mingw*)
8919 # gcc leaves a trailing carriage return which upsets mingw
8920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8921 *)
8922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8923 esac
8924 case $ac_prog in
8925 # Accept absolute paths.
8926 [\\/]* | ?:[\\/]*)
8927 re_direlt='/[^/][^/]*/\.\./'
8928 # Canonicalize the path of ld
8929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8932 done
8933 test -z "$LD" && LD="$ac_prog"
8934 ;;
8935 "")
8936 # If it fails, then pretend we aren't using GCC.
8937 ac_prog=ld
8938 ;;
8939 *)
8940 # If it is relative, then search for the first ld in PATH.
8941 with_gnu_ld=unknown
8942 ;;
8943 esac
8944elif test "$with_gnu_ld" = yes; then
8945 echo "$as_me:$LINENO: checking for GNU ld" >&5
8946echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8947else
8948 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8949echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8950fi
8951if test "${lt_cv_path_LD+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 if test -z "$LD"; then
8955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8956 for ac_dir in $PATH; do
8957 IFS="$lt_save_ifs"
8958 test -z "$ac_dir" && ac_dir=.
8959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8960 lt_cv_path_LD="$ac_dir/$ac_prog"
8961 # Check to see if the program is GNU ld. I'd rather use --version,
8962 # but apparently some GNU ld's only accept -v.
8963 # Break only if it was the GNU/non-GNU ld that we prefer.
8964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8965 *GNU* | *'with BFD'*)
8966 test "$with_gnu_ld" != no && break
8967 ;;
8968 *)
8969 test "$with_gnu_ld" != yes && break
8970 ;;
8971 esac
8972 fi
8973 done
8974 IFS="$lt_save_ifs"
8975else
8976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8977fi
8978fi
8979
8980LD="$lt_cv_path_LD"
8981if test -n "$LD"; then
8982 echo "$as_me:$LINENO: result: $LD" >&5
8983echo "${ECHO_T}$LD" >&6
8984else
8985 echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
8987fi
8988test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8989echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8990 { (exit 1); exit 1; }; }
8991echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8992echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8993if test "${lt_cv_prog_gnu_ld+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995else
8996 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8997case `"$LD" -v 2>&1 </dev/null` in
8998*GNU* | *'with BFD'*)
8999 lt_cv_prog_gnu_ld=yes
9000 ;;
9001*)
9002 lt_cv_prog_gnu_ld=no
9003 ;;
9004esac
9005fi
9006echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9007echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9008with_gnu_ld=$lt_cv_prog_gnu_ld
9009
9010
9011
9012 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9013 # archiving commands below assume that GNU ld is being used.
9014 if test "$with_gnu_ld" = yes; then
9015 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 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'
9017
9018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9020
9021 # If archive_cmds runs LD, not CC, wlarc should be empty
9022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9023 # investigate it a little bit more. (MM)
9024 wlarc='${wl}'
9025
9026 # ancient GNU ld didn't support --whole-archive et. al.
9027 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9028 grep 'no-whole-archive' > /dev/null; then
9029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9030 else
9031 whole_archive_flag_spec_CXX=
9032 fi
9033 else
9034 with_gnu_ld=no
9035 wlarc=
9036
9037 # A generic and very simple default shared library creation
9038 # command for GNU C++ for the case where it uses the native
9039 # linker, instead of GNU ld. If possible, this setting should
9040 # overridden to take advantage of the native linker features on
9041 # the platform it is being used on.
9042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9043 fi
9044
9045 # Commands to make compiler produce verbose output that lists
9046 # what "hidden" libraries, object files and flags are used when
9047 # linking a shared library.
9048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9049
9050else
9051 GXX=no
9052 with_gnu_ld=no
9053 wlarc=
9054fi
9055
9056# PORTME: fill in a description of your system's C++ link characteristics
9057echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9059ld_shlibs_CXX=yes
9060case $host_os in
9061 aix3*)
9062 # FIXME: insert proper C++ library support
9063 ld_shlibs_CXX=no
9064 ;;
9065 aix4* | aix5*)
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9071 no_entry_flag=""
9072 else
9073 aix_use_runtimelinking=no
9074
9075 # Test if we are trying to use run time linking or normal
9076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077 # need to do runtime linking.
9078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9079 for ld_flag in $LDFLAGS; do
9080 case $ld_flag in
9081 *-brtl*)
9082 aix_use_runtimelinking=yes
9083 break
9084 ;;
9085 esac
9086 done
9087 esac
9088
9089 exp_sym_flag='-bexport'
9090 no_entry_flag='-bnoentry'
9091 fi
9092
9093 # When large executables or shared objects are built, AIX ld can
9094 # have problems creating the table of contents. If linking a library
9095 # or program results in "error TOC overflow" add -mminimal-toc to
9096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9098
9099 archive_cmds_CXX=''
9100 hardcode_direct_CXX=yes
9101 hardcode_libdir_separator_CXX=':'
9102 link_all_deplibs_CXX=yes
9103
9104 if test "$GXX" = yes; then
9105 case $host_os in aix4.012|aix4.012.*)
9106 # We only want to do this on AIX 4.2 and lower, the check
9107 # below for broken collect2 doesn't work under 4.3+
9108 collect2name=`${CC} -print-prog-name=collect2`
9109 if test -f "$collect2name" && \
9110 strings "$collect2name" | grep resolve_lib_name >/dev/null
9111 then
9112 # We have reworked collect2
9113 hardcode_direct_CXX=yes
9114 else
9115 # We have old collect2
9116 hardcode_direct_CXX=unsupported
9117 # It fails to find uninstalled libraries when the uninstalled
9118 # path is not listed in the libpath. Setting hardcode_minus_L
9119 # to unsupported forces relinking
9120 hardcode_minus_L_CXX=yes
9121 hardcode_libdir_flag_spec_CXX='-L$libdir'
9122 hardcode_libdir_separator_CXX=
9123 fi
9124 esac
9125 shared_flag='-shared'
9126 else
9127 # not using gcc
9128 if test "$host_cpu" = ia64; then
9129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9130 # chokes on -Wl,-G. The following line is correct:
9131 shared_flag='-G'
9132 else
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag='${wl}-G'
9135 else
9136 shared_flag='${wl}-bM:SRE'
9137 fi
9138 fi
9139 fi
9140
9141 # It seems that -bexpall does not export symbols beginning with
9142 # underscore (_), so it is better to generate a list of symbols to export.
9143 always_export_symbols_CXX=yes
9144 if test "$aix_use_runtimelinking" = yes; then
9145 # Warning - without using the other runtime loading flags (-brtl),
9146 # -berok will link without error, but may produce a broken library.
9147 allow_undefined_flag_CXX='-berok'
9148 # Determine the default libpath from the value encoded in an empty executable.
9149 cat >conftest.$ac_ext <<_ACEOF
9150#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009156
John Criswell47fdd832003-07-14 16:52:07 +00009157int
9158main ()
9159{
9160
9161 ;
9162 return 0;
9163}
9164_ACEOF
9165rm -f conftest.$ac_objext conftest$ac_exeext
9166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -s conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177
9178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9179}'`
9180# Check for a 64-bit object if we didn't find anything.
9181if 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; }
9182}'`; fi
9183else
9184 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009185sed 's/^/| /' conftest.$ac_ext >&5
9186
John Criswell47fdd832003-07-14 16:52:07 +00009187fi
9188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9190
9191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9192
9193 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"
9194 else
9195 if test "$host_cpu" = ia64; then
9196 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9197 allow_undefined_flag_CXX="-z nodefs"
9198 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"
9199 else
9200 # Determine the default libpath from the value encoded in an empty executable.
9201 cat >conftest.$ac_ext <<_ACEOF
9202#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009208
John Criswell47fdd832003-07-14 16:52:07 +00009209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229
9230aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9231}'`
9232# Check for a 64-bit object if we didn't find anything.
9233if 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; }
9234}'`; fi
9235else
9236 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009237sed 's/^/| /' conftest.$ac_ext >&5
9238
John Criswell47fdd832003-07-14 16:52:07 +00009239fi
9240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9242
9243 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 # Warning - without using the other run time loading flags,
9245 # -berok will link without error, but may produce a broken library.
9246 no_undefined_flag_CXX=' ${wl}-bernotok'
9247 allow_undefined_flag_CXX=' ${wl}-berok'
9248 # -bexpall does not export symbols beginning with underscore (_)
9249 always_export_symbols_CXX=yes
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec_CXX=' '
9252 archive_cmds_need_lc_CXX=yes
9253 # This is similar to how AIX traditionally builds it's shared libraries.
9254 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'
9255 fi
9256 fi
9257 ;;
9258 chorus*)
9259 case $cc_basename in
9260 *)
9261 # FIXME: insert proper C++ library support
9262 ld_shlibs_CXX=no
9263 ;;
9264 esac
9265 ;;
9266
9267 cygwin* | mingw* | pw32*)
9268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9269 # as there is no search path for DLLs.
9270 hardcode_libdir_flag_spec_CXX='-L$libdir'
9271 allow_undefined_flag_CXX=unsupported
9272 always_export_symbols_CXX=no
9273 enable_shared_with_static_runtimes_CXX=yes
9274
9275 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9276 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'
9277 # If the export-symbols file already is a .def file (1st line
9278 # is EXPORTS), use it as is; otherwise, prepend...
9279 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9280 cp $export_symbols $output_objdir/$soname.def;
9281 else
9282 echo EXPORTS > $output_objdir/$soname.def;
9283 cat $export_symbols >> $output_objdir/$soname.def;
9284 fi~
9285 $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'
9286 else
9287 ld_shlibs_CXX=no
9288 fi
9289 ;;
9290
9291 darwin* | rhapsody*)
9292 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9293 archive_cmds_need_lc_CXX=no
9294 case "$host_os" in
9295 rhapsody* | darwin1.[012])
9296 allow_undefined_flag_CXX='-undefined suppress'
9297 ;;
9298 *) # Darwin 1.3 on
9299 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9300 ;;
9301 esac
9302 lt_int_apple_cc_single_mod=no
9303 output_verbose_link_cmd='echo'
9304 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9305 lt_int_apple_cc_single_mod=yes
9306 fi
9307 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9308 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9309 else
9310 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9311 fi
9312 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9313
9314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9316 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}'
9317 else
9318 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9319 fi
9320 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9321 hardcode_direct_CXX=no
9322 hardcode_automatic_CXX=yes
9323 hardcode_shlibpath_var_CXX=unsupported
9324 whole_archive_flag_spec_CXX='-all_load $convenience'
9325 link_all_deplibs_CXX=yes
9326 fi
9327 ;;
9328
9329 dgux*)
9330 case $cc_basename in
9331 ec++)
9332 # FIXME: insert proper C++ library support
9333 ld_shlibs_CXX=no
9334 ;;
9335 ghcx)
9336 # Green Hills C++ Compiler
9337 # FIXME: insert proper C++ library support
9338 ld_shlibs_CXX=no
9339 ;;
9340 *)
9341 # FIXME: insert proper C++ library support
9342 ld_shlibs_CXX=no
9343 ;;
9344 esac
9345 ;;
9346 freebsd12*)
9347 # C++ shared libraries reported to be fairly broken before switch to ELF
9348 ld_shlibs_CXX=no
9349 ;;
9350 freebsd-elf*)
9351 archive_cmds_need_lc_CXX=no
9352 ;;
9353 freebsd*)
9354 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9355 # conventions
9356 ld_shlibs_CXX=yes
9357 ;;
9358 gnu*)
9359 ;;
9360 hpux9*)
9361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9362 hardcode_libdir_separator_CXX=:
9363 export_dynamic_flag_spec_CXX='${wl}-E'
9364 hardcode_direct_CXX=yes
9365 hardcode_minus_L_CXX=yes # Not in the search PATH,
9366 # but as the default
9367 # location of the library.
9368
9369 case $cc_basename in
9370 CC)
9371 # FIXME: insert proper C++ library support
9372 ld_shlibs_CXX=no
9373 ;;
9374 aCC)
9375 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'
9376 # Commands to make compiler produce verbose output that lists
9377 # what "hidden" libraries, object files and flags are used when
9378 # linking a shared library.
9379 #
9380 # There doesn't appear to be a way to prevent this compiler from
9381 # explicitly linking system object files so we need to strip them
9382 # from the output so that they don't get included in the library
9383 # dependencies.
9384 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9385 ;;
9386 *)
9387 if test "$GXX" = yes; then
9388 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'
9389 else
9390 # FIXME: insert proper C++ library support
9391 ld_shlibs_CXX=no
9392 fi
9393 ;;
9394 esac
9395 ;;
9396 hpux10*|hpux11*)
9397 if test $with_gnu_ld = no; then
9398 case "$host_cpu" in
9399 hppa*64*)
9400 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9402 hardcode_libdir_separator_CXX=:
9403 ;;
9404 ia64*)
9405 hardcode_libdir_flag_spec_CXX='-L$libdir'
9406 ;;
9407 *)
9408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_separator_CXX=:
9410 export_dynamic_flag_spec_CXX='${wl}-E'
9411 ;;
9412 esac
9413 fi
9414 case "$host_cpu" in
9415 hppa*64*)
9416 hardcode_direct_CXX=no
9417 hardcode_shlibpath_var_CXX=no
9418 ;;
9419 ia64*)
9420 hardcode_direct_CXX=no
9421 hardcode_shlibpath_var_CXX=no
9422 hardcode_minus_L_CXX=yes # Not in the search PATH,
9423 # but as the default
9424 # location of the library.
9425 ;;
9426 *)
9427 hardcode_direct_CXX=yes
9428 hardcode_minus_L_CXX=yes # Not in the search PATH,
9429 # but as the default
9430 # location of the library.
9431 ;;
9432 esac
9433
9434 case $cc_basename in
9435 CC)
9436 # FIXME: insert proper C++ library support
9437 ld_shlibs_CXX=no
9438 ;;
9439 aCC)
9440 case "$host_cpu" in
9441 hppa*64*|ia64*)
9442 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9443 ;;
9444 *)
9445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9446 ;;
9447 esac
9448 # Commands to make compiler produce verbose output that lists
9449 # what "hidden" libraries, object files and flags are used when
9450 # linking a shared library.
9451 #
9452 # There doesn't appear to be a way to prevent this compiler from
9453 # explicitly linking system object files so we need to strip them
9454 # from the output so that they don't get included in the library
9455 # dependencies.
9456 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'
9457 ;;
9458 *)
9459 if test "$GXX" = yes; then
9460 if test $with_gnu_ld = no; then
9461 case "$host_cpu" in
9462 ia64*|hppa*64*)
9463 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9464 ;;
9465 *)
9466 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'
9467 ;;
9468 esac
9469 fi
9470 else
9471 # FIXME: insert proper C++ library support
9472 ld_shlibs_CXX=no
9473 fi
9474 ;;
9475 esac
9476 ;;
9477 irix5* | irix6*)
9478 case $cc_basename in
9479 CC)
9480 # SGI C++
9481 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'
9482
9483 # Archives containing C++ object files must be created using
9484 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9485 # necessary to make sure instantiated templates are included
9486 # in the archive.
9487 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9488 ;;
9489 *)
9490 if test "$GXX" = yes; then
9491 if test "$with_gnu_ld" = no; then
9492 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'
9493 else
9494 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'
9495 fi
9496 fi
9497 link_all_deplibs_CXX=yes
9498 ;;
9499 esac
9500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9501 hardcode_libdir_separator_CXX=:
9502 ;;
9503 linux*)
9504 case $cc_basename in
9505 KCC)
9506 # Kuck and Associates, Inc. (KAI) C++ Compiler
9507
9508 # KCC will only create a shared library if the output file
9509 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9510 # to its proper name (with version) after linking.
9511 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'
9512 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'
9513 # Commands to make compiler produce verbose output that lists
9514 # what "hidden" libraries, object files and flags are used when
9515 # linking a shared library.
9516 #
9517 # There doesn't appear to be a way to prevent this compiler from
9518 # explicitly linking system object files so we need to strip them
9519 # from the output so that they don't get included in the library
9520 # dependencies.
9521 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'
9522
9523 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9525
9526 # Archives containing C++ object files must be created using
9527 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9528 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9529 ;;
9530 icpc)
9531 # Intel C++
9532 with_gnu_ld=yes
9533 archive_cmds_need_lc_CXX=no
9534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 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'
9536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9538 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9539 ;;
9540 cxx)
9541 # Compaq C++
9542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 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'
9544
9545 runpath_var=LD_RUN_PATH
9546 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9547 hardcode_libdir_separator_CXX=:
9548
9549 # Commands to make compiler produce verbose output that lists
9550 # what "hidden" libraries, object files and flags are used when
9551 # linking a shared library.
9552 #
9553 # There doesn't appear to be a way to prevent this compiler from
9554 # explicitly linking system object files so we need to strip them
9555 # from the output so that they don't get included in the library
9556 # dependencies.
9557 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'
9558 ;;
9559 esac
9560 ;;
9561 lynxos*)
9562 # FIXME: insert proper C++ library support
9563 ld_shlibs_CXX=no
9564 ;;
9565 m88k*)
9566 # FIXME: insert proper C++ library support
9567 ld_shlibs_CXX=no
9568 ;;
9569 mvs*)
9570 case $cc_basename in
9571 cxx)
9572 # FIXME: insert proper C++ library support
9573 ld_shlibs_CXX=no
9574 ;;
9575 *)
9576 # FIXME: insert proper C++ library support
9577 ld_shlibs_CXX=no
9578 ;;
9579 esac
9580 ;;
9581 netbsd*)
9582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9584 wlarc=
9585 hardcode_libdir_flag_spec_CXX='-R$libdir'
9586 hardcode_direct_CXX=yes
9587 hardcode_shlibpath_var_CXX=no
9588 fi
9589 # Workaround some broken pre-1.5 toolchains
9590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9591 ;;
9592 osf3*)
9593 case $cc_basename in
9594 KCC)
9595 # Kuck and Associates, Inc. (KAI) C++ Compiler
9596
9597 # KCC will only create a shared library if the output file
9598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9599 # to its proper name (with version) after linking.
9600 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'
9601
9602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9603 hardcode_libdir_separator_CXX=:
9604
9605 # Archives containing C++ object files must be created using
9606 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9607 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9608
9609 ;;
9610 RCC)
9611 # Rational C++ 2.4.1
9612 # FIXME: insert proper C++ library support
9613 ld_shlibs_CXX=no
9614 ;;
9615 cxx)
9616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9618
9619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator_CXX=:
9621
9622 # Commands to make compiler produce verbose output that lists
9623 # what "hidden" libraries, object files and flags are used when
9624 # linking a shared library.
9625 #
9626 # There doesn't appear to be a way to prevent this compiler from
9627 # explicitly linking system object files so we need to strip them
9628 # from the output so that they don't get included in the library
9629 # dependencies.
9630 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'
9631 ;;
9632 *)
9633 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9635 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'
9636
9637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9638 hardcode_libdir_separator_CXX=:
9639
9640 # Commands to make compiler produce verbose output that lists
9641 # what "hidden" libraries, object files and flags are used when
9642 # linking a shared library.
9643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9644
9645 else
9646 # FIXME: insert proper C++ library support
9647 ld_shlibs_CXX=no
9648 fi
9649 ;;
9650 esac
9651 ;;
9652 osf4* | osf5*)
9653 case $cc_basename in
9654 KCC)
9655 # Kuck and Associates, Inc. (KAI) C++ Compiler
9656
9657 # KCC will only create a shared library if the output file
9658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9659 # to its proper name (with version) after linking.
9660 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'
9661
9662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9663 hardcode_libdir_separator_CXX=:
9664
9665 # Archives containing C++ object files must be created using
9666 # the KAI C++ compiler.
9667 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9668 ;;
9669 RCC)
9670 # Rational C++ 2.4.1
9671 # FIXME: insert proper C++ library support
9672 ld_shlibs_CXX=no
9673 ;;
9674 cxx)
9675 allow_undefined_flag_CXX=' -expect_unresolved \*'
9676 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'
9677 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9678 echo "-hidden">> $lib.exp~
9679 $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~
9680 $rm $lib.exp'
9681
9682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9683 hardcode_libdir_separator_CXX=:
9684
9685 # Commands to make compiler produce verbose output that lists
9686 # what "hidden" libraries, object files and flags are used when
9687 # linking a shared library.
9688 #
9689 # There doesn't appear to be a way to prevent this compiler from
9690 # explicitly linking system object files so we need to strip them
9691 # from the output so that they don't get included in the library
9692 # dependencies.
9693 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'
9694 ;;
9695 *)
9696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9698 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'
9699
9700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9702
9703 # Commands to make compiler produce verbose output that lists
9704 # what "hidden" libraries, object files and flags are used when
9705 # linking a shared library.
9706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9707
9708 else
9709 # FIXME: insert proper C++ library support
9710 ld_shlibs_CXX=no
9711 fi
9712 ;;
9713 esac
9714 ;;
9715 psos*)
9716 # FIXME: insert proper C++ library support
9717 ld_shlibs_CXX=no
9718 ;;
9719 sco*)
9720 archive_cmds_need_lc_CXX=no
9721 case $cc_basename in
9722 CC)
9723 # FIXME: insert proper C++ library support
9724 ld_shlibs_CXX=no
9725 ;;
9726 *)
9727 # FIXME: insert proper C++ library support
9728 ld_shlibs_CXX=no
9729 ;;
9730 esac
9731 ;;
9732 sunos4*)
9733 case $cc_basename in
9734 CC)
9735 # Sun C++ 4.x
9736 # FIXME: insert proper C++ library support
9737 ld_shlibs_CXX=no
9738 ;;
9739 lcc)
9740 # Lucid
9741 # FIXME: insert proper C++ library support
9742 ld_shlibs_CXX=no
9743 ;;
9744 *)
9745 # FIXME: insert proper C++ library support
9746 ld_shlibs_CXX=no
9747 ;;
9748 esac
9749 ;;
9750 solaris*)
9751 case $cc_basename in
9752 CC)
9753 # Sun C++ 4.2, 5.x and Centerline C++
9754 no_undefined_flag_CXX=' -zdefs'
9755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9756 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9757 $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'
9758
9759 hardcode_libdir_flag_spec_CXX='-R$libdir'
9760 hardcode_shlibpath_var_CXX=no
9761 case $host_os in
9762 solaris2.0-5 | solaris2.0-5.*) ;;
9763 *)
9764 # The C++ compiler is used as linker so we must use $wl
9765 # flag to pass the commands to the underlying system
9766 # linker.
9767 # Supported since Solaris 2.6 (maybe 2.5.1?)
9768 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9769 ;;
9770 esac
9771 link_all_deplibs_CXX=yes
9772
9773 # Commands to make compiler produce verbose output that lists
9774 # what "hidden" libraries, object files and flags are used when
9775 # linking a shared library.
9776 #
9777 # There doesn't appear to be a way to prevent this compiler from
9778 # explicitly linking system object files so we need to strip them
9779 # from the output so that they don't get included in the library
9780 # dependencies.
9781 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'
9782
9783 # Archives containing C++ object files must be created using
9784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9785 # necessary to make sure instantiated templates are included
9786 # in the archive.
9787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9788 ;;
9789 gcx)
9790 # Green Hills C++ Compiler
9791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9792
9793 # The C++ compiler must be used to create the archive.
9794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9795 ;;
9796 *)
9797 # GNU C++ compiler with Solaris linker
9798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9800 if $CC --version | grep -v '^2\.7' > /dev/null; then
9801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9802 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9804
9805 # Commands to make compiler produce verbose output that lists
9806 # what "hidden" libraries, object files and flags are used when
9807 # linking a shared library.
9808 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9809 else
9810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9811 # platform.
9812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9813 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9815
9816 # Commands to make compiler produce verbose output that lists
9817 # what "hidden" libraries, object files and flags are used when
9818 # linking a shared library.
9819 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9820 fi
9821
9822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9823 fi
9824 ;;
9825 esac
9826 ;;
9827 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9828 archive_cmds_need_lc_CXX=no
9829 ;;
9830 tandem*)
9831 case $cc_basename in
9832 NCC)
9833 # NonStop-UX NCC 3.20
9834 # FIXME: insert proper C++ library support
9835 ld_shlibs_CXX=no
9836 ;;
9837 *)
9838 # FIXME: insert proper C++ library support
9839 ld_shlibs_CXX=no
9840 ;;
9841 esac
9842 ;;
9843 vxworks*)
9844 # FIXME: insert proper C++ library support
9845 ld_shlibs_CXX=no
9846 ;;
9847 *)
9848 # FIXME: insert proper C++ library support
9849 ld_shlibs_CXX=no
9850 ;;
9851esac
9852echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9853echo "${ECHO_T}$ld_shlibs_CXX" >&6
9854test "$ld_shlibs_CXX" = no && can_build_shared=no
9855
9856GCC_CXX="$GXX"
9857LD_CXX="$LD"
9858
9859## CAVEAT EMPTOR:
9860## There is no encapsulation within the following macros, do not change
9861## the running order or otherwise move them around unless you know exactly
9862## what you are doing...
9863
9864cat > conftest.$ac_ext <<EOF
9865class Foo
9866{
9867public:
9868 Foo (void) { a = 0; }
9869private:
9870 int a;
9871};
9872EOF
9873
9874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; then
9879 # Parse the compiler output and extract the necessary
9880 # objects, libraries and library flags.
9881
9882 # Sentinel used to keep track of whether or not we are before
9883 # the conftest object file.
9884 pre_test_object_deps_done=no
9885
9886 # The `*' in the case matches for architectures that use `case' in
9887 # $output_verbose_cmd can trigger glob expansion during the loop
9888 # eval without this substitution.
9889 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9890
9891 for p in `eval $output_verbose_link_cmd`; do
9892 case $p in
9893
9894 -L* | -R* | -l*)
9895 # Some compilers place space between "-{L,R}" and the path.
9896 # Remove the space.
9897 if test $p = "-L" \
9898 || test $p = "-R"; then
9899 prev=$p
9900 continue
9901 else
9902 prev=
9903 fi
9904
9905 if test "$pre_test_object_deps_done" = no; then
9906 case $p in
9907 -L* | -R*)
9908 # Internal compiler library paths should come after those
9909 # provided the user. The postdeps already come after the
9910 # user supplied libs so there is no need to process them.
9911 if test -z "$compiler_lib_search_path_CXX"; then
9912 compiler_lib_search_path_CXX="${prev}${p}"
9913 else
9914 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9915 fi
9916 ;;
9917 # The "-l" case would never come before the object being
9918 # linked, so don't bother handling this case.
9919 esac
9920 else
9921 if test -z "$postdeps_CXX"; then
9922 postdeps_CXX="${prev}${p}"
9923 else
9924 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9925 fi
9926 fi
9927 ;;
9928
9929 *.$objext)
9930 # This assumes that the test object file only shows up
9931 # once in the compiler output.
9932 if test "$p" = "conftest.$objext"; then
9933 pre_test_object_deps_done=yes
9934 continue
9935 fi
9936
9937 if test "$pre_test_object_deps_done" = no; then
9938 if test -z "$predep_objects_CXX"; then
9939 predep_objects_CXX="$p"
9940 else
9941 predep_objects_CXX="$predep_objects_CXX $p"
9942 fi
9943 else
9944 if test -z "$postdep_objects_CXX"; then
9945 postdep_objects_CXX="$p"
9946 else
9947 postdep_objects_CXX="$postdep_objects_CXX $p"
9948 fi
9949 fi
9950 ;;
9951
9952 *) ;; # Ignore the rest.
9953
9954 esac
9955 done
9956
9957 # Clean up.
9958 rm -f a.out a.exe
9959else
9960 echo "libtool.m4: error: problem compiling CXX test program"
9961fi
9962
9963$rm -f confest.$objext
9964
9965case " $postdeps_CXX " in
9966*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9967esac
9968
9969lt_prog_compiler_wl_CXX=
9970lt_prog_compiler_pic_CXX=
9971lt_prog_compiler_static_CXX=
9972
9973echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9975
9976 # C++ specific cases for pic, static, wl, etc.
9977 if test "$GXX" = yes; then
9978 lt_prog_compiler_wl_CXX='-Wl,'
9979 lt_prog_compiler_static_CXX='-static'
9980
9981 case $host_os in
9982 aix*)
9983 # All AIX code is PIC.
9984 if test "$host_cpu" = ia64; then
9985 # AIX 5 now supports IA64 processor
9986 lt_prog_compiler_static_CXX='-Bstatic'
9987 fi
9988 ;;
9989 amigaos*)
9990 # FIXME: we need at least 68020 code to build shared libraries, but
9991 # adding the `-m68020' flag to GCC prevents building anything better,
9992 # like `-m68040'.
9993 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9994 ;;
9995 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9996 # PIC is the default for these OSes.
9997 ;;
9998 mingw* | os2* | pw32*)
9999 # This hack is so that the source file can tell whether it is being
10000 # built for inclusion in a dll (and should export symbols for example).
10001 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10002 ;;
10003 darwin* | rhapsody*)
10004 # PIC is the default on this platform
10005 # Common symbols not allowed in MH_DYLIB files
10006 lt_prog_compiler_pic_CXX='-fno-common'
10007 ;;
10008 *djgpp*)
10009 # DJGPP does not support shared libraries at all
10010 lt_prog_compiler_pic_CXX=
10011 ;;
10012 sysv4*MP*)
10013 if test -d /usr/nec; then
10014 lt_prog_compiler_pic_CXX=-Kconform_pic
10015 fi
10016 ;;
10017 hpux*)
10018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10019 # not for PA HP-UX.
10020 case "$host_cpu" in
10021 hppa*64*|ia64*)
10022 ;;
10023 *)
10024 lt_prog_compiler_pic_CXX='-fPIC'
10025 ;;
10026 esac
10027 ;;
10028 *)
10029 lt_prog_compiler_pic_CXX='-fPIC'
10030 ;;
10031 esac
10032 else
10033 case $host_os in
10034 aix4* | aix5*)
10035 # All AIX code is PIC.
10036 if test "$host_cpu" = ia64; then
10037 # AIX 5 now supports IA64 processor
10038 lt_prog_compiler_static_CXX='-Bstatic'
10039 else
10040 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10041 fi
10042 ;;
10043 chorus*)
10044 case $cc_basename in
10045 cxch68)
10046 # Green Hills C++ Compiler
10047 # _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"
10048 ;;
10049 esac
10050 ;;
10051 dgux*)
10052 case $cc_basename in
10053 ec++)
10054 lt_prog_compiler_pic_CXX='-KPIC'
10055 ;;
10056 ghcx)
10057 # Green Hills C++ Compiler
10058 lt_prog_compiler_pic_CXX='-pic'
10059 ;;
10060 *)
10061 ;;
10062 esac
10063 ;;
10064 freebsd*)
10065 # FreeBSD uses GNU C++
10066 ;;
10067 hpux9* | hpux10* | hpux11*)
10068 case $cc_basename in
10069 CC)
10070 lt_prog_compiler_wl_CXX='-Wl,'
10071 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10072 if test "$host_cpu" != ia64; then
10073 lt_prog_compiler_pic_CXX='+Z'
10074 fi
10075 ;;
10076 aCC)
10077 lt_prog_compiler_wl_CXX='-Wl,'
10078 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10079 case "$host_cpu" in
10080 hppa*64*|ia64*)
10081 # +Z the default
10082 ;;
10083 *)
10084 lt_prog_compiler_pic_CXX='+Z'
10085 ;;
10086 esac
10087 ;;
10088 *)
10089 ;;
10090 esac
10091 ;;
10092 irix5* | irix6* | nonstopux*)
10093 case $cc_basename in
10094 CC)
10095 lt_prog_compiler_wl_CXX='-Wl,'
10096 lt_prog_compiler_static_CXX='-non_shared'
10097 # CC pic flag -KPIC is the default.
10098 ;;
10099 *)
10100 ;;
10101 esac
10102 ;;
10103 linux*)
10104 case $cc_basename in
10105 KCC)
10106 # KAI C++ Compiler
10107 lt_prog_compiler_wl_CXX='--backend -Wl,'
10108 lt_prog_compiler_pic_CXX='-fPIC'
10109 ;;
10110 icpc)
10111 # Intel C++
10112 lt_prog_compiler_wl_CXX='-Wl,'
10113 lt_prog_compiler_pic_CXX='-KPIC'
10114 lt_prog_compiler_static_CXX='-static'
10115 ;;
10116 cxx)
10117 # Compaq C++
10118 # Make sure the PIC flag is empty. It appears that all Alpha
10119 # Linux and Compaq Tru64 Unix objects are PIC.
10120 lt_prog_compiler_pic_CXX=
10121 lt_prog_compiler_static_CXX='-non_shared'
10122 ;;
10123 *)
10124 ;;
10125 esac
10126 ;;
10127 lynxos*)
10128 ;;
10129 m88k*)
10130 ;;
10131 mvs*)
10132 case $cc_basename in
10133 cxx)
10134 lt_prog_compiler_pic_CXX='-W c,exportall'
10135 ;;
10136 *)
10137 ;;
10138 esac
10139 ;;
10140 netbsd*)
10141 ;;
10142 osf3* | osf4* | osf5*)
10143 case $cc_basename in
10144 KCC)
10145 lt_prog_compiler_wl_CXX='--backend -Wl,'
10146 ;;
10147 RCC)
10148 # Rational C++ 2.4.1
10149 lt_prog_compiler_pic_CXX='-pic'
10150 ;;
10151 cxx)
10152 # Digital/Compaq C++
10153 lt_prog_compiler_wl_CXX='-Wl,'
10154 # Make sure the PIC flag is empty. It appears that all Alpha
10155 # Linux and Compaq Tru64 Unix objects are PIC.
10156 lt_prog_compiler_pic_CXX=
10157 lt_prog_compiler_static_CXX='-non_shared'
10158 ;;
10159 *)
10160 ;;
10161 esac
10162 ;;
10163 psos*)
10164 ;;
10165 sco*)
10166 case $cc_basename in
10167 CC)
10168 lt_prog_compiler_pic_CXX='-fPIC'
10169 ;;
10170 *)
10171 ;;
10172 esac
10173 ;;
10174 solaris*)
10175 case $cc_basename in
10176 CC)
10177 # Sun C++ 4.2, 5.x and Centerline C++
10178 lt_prog_compiler_pic_CXX='-KPIC'
10179 lt_prog_compiler_static_CXX='-Bstatic'
10180 lt_prog_compiler_wl_CXX='-Qoption ld '
10181 ;;
10182 gcx)
10183 # Green Hills C++ Compiler
10184 lt_prog_compiler_pic_CXX='-PIC'
10185 ;;
10186 *)
10187 ;;
10188 esac
10189 ;;
10190 sunos4*)
10191 case $cc_basename in
10192 CC)
10193 # Sun C++ 4.x
10194 lt_prog_compiler_pic_CXX='-pic'
10195 lt_prog_compiler_static_CXX='-Bstatic'
10196 ;;
10197 lcc)
10198 # Lucid
10199 lt_prog_compiler_pic_CXX='-pic'
10200 ;;
10201 *)
10202 ;;
10203 esac
10204 ;;
10205 tandem*)
10206 case $cc_basename in
10207 NCC)
10208 # NonStop-UX NCC 3.20
10209 lt_prog_compiler_pic_CXX='-KPIC'
10210 ;;
10211 *)
10212 ;;
10213 esac
10214 ;;
10215 unixware*)
10216 ;;
10217 vxworks*)
10218 ;;
10219 *)
10220 lt_prog_compiler_can_build_shared_CXX=no
10221 ;;
10222 esac
10223 fi
10224
10225echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10226echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10227
10228#
10229# Check to make sure the PIC flag actually works.
10230#
10231if test -n "$lt_prog_compiler_pic_CXX"; then
10232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10234if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237 lt_prog_compiler_pic_works_CXX=no
10238 ac_outfile=conftest.$ac_objext
10239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10241 # Insert the option either (1) after the last *FLAGS variable, or
10242 # (2) before a word containing "conftest.", or (3) at the end.
10243 # Note that $ac_compile itself does not contain backslashes and begins
10244 # with a dollar sign (not a hyphen), so the echo should work correctly.
10245 # The option is referenced via a variable to avoid confusing sed.
10246 lt_compile=`echo "$ac_compile" | $SED \
10247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10249 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000010250 (eval echo "\"\$as_me:10250: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010251 (eval "$lt_compile" 2>conftest.err)
10252 ac_status=$?
10253 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000010254 echo "$as_me:10254: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010255 if (exit $ac_status) && test -s "$ac_outfile"; then
10256 # The compiler can only warn and ignore the option if not recognized
10257 # So say no if there are warnings
10258 if test ! -s conftest.err; then
10259 lt_prog_compiler_pic_works_CXX=yes
10260 fi
10261 fi
10262 $rm conftest*
10263
10264fi
10265echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10266echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10267
10268if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10269 case $lt_prog_compiler_pic_CXX in
10270 "" | " "*) ;;
10271 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10272 esac
10273else
10274 lt_prog_compiler_pic_CXX=
10275 lt_prog_compiler_can_build_shared_CXX=no
10276fi
10277
10278fi
10279case "$host_os" in
10280 # For platforms which do not support PIC, -DPIC is meaningless:
10281 *djgpp*)
10282 lt_prog_compiler_pic_CXX=
10283 ;;
10284 *)
10285 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10286 ;;
10287esac
10288
10289echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10290echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10291if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 lt_cv_prog_compiler_c_o_CXX=no
10295 $rm -r conftest 2>/dev/null
10296 mkdir conftest
10297 cd conftest
10298 mkdir out
10299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10300
10301 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10302 # that will create temporary files in the current directory regardless of
10303 # the output directory. Thus, making CWD read-only will cause this test
10304 # to fail, enabling locking or at least warning the user not to do parallel
10305 # builds.
10306 chmod -w .
10307
10308 lt_compiler_flag="-o out/conftest2.$ac_objext"
10309 # Insert the option either (1) after the last *FLAGS variable, or
10310 # (2) before a word containing "conftest.", or (3) at the end.
10311 # Note that $ac_compile itself does not contain backslashes and begins
10312 # with a dollar sign (not a hyphen), so the echo should work correctly.
10313 lt_compile=`echo "$ac_compile" | $SED \
10314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10316 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000010317 (eval echo "\"\$as_me:10317: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010318 (eval "$lt_compile" 2>out/conftest.err)
10319 ac_status=$?
10320 cat out/conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000010321 echo "$as_me:10321: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10323 then
10324 # The compiler can only warn and ignore the option if not recognized
10325 # So say no if there are warnings
10326 if test ! -s out/conftest.err; then
10327 lt_cv_prog_compiler_c_o_CXX=yes
10328 fi
10329 fi
10330 chmod u+w .
10331 $rm conftest* out/*
10332 rmdir out
10333 cd ..
10334 rmdir conftest
10335 $rm conftest*
10336
10337fi
10338echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10339echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10340
10341
10342hard_links="nottested"
10343if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10344 # do not overwrite the value of need_locks provided by the user
10345 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10346echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10347 hard_links=yes
10348 $rm conftest*
10349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10350 touch conftest.a
10351 ln conftest.a conftest.b 2>&5 || hard_links=no
10352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10353 echo "$as_me:$LINENO: result: $hard_links" >&5
10354echo "${ECHO_T}$hard_links" >&6
10355 if test "$hard_links" = no; then
10356 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10357echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10358 need_locks=warn
10359 fi
10360else
10361 need_locks=no
10362fi
10363
10364echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10365echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10366
10367 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10368 case $host_os in
10369 aix4* | aix5*)
10370 # If we're using GNU nm, then we don't want the "-C" option.
10371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10372 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10373 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'
10374 else
10375 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'
10376 fi
10377 ;;
10378 pw32*)
10379 export_symbols_cmds_CXX="$ltdll_cmds"
10380 ;;
10381 cygwin* | mingw*)
10382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10383 ;;
10384 *)
10385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10386 ;;
10387 esac
10388
10389echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10390echo "${ECHO_T}$ld_shlibs_CXX" >&6
10391test "$ld_shlibs_CXX" = no && can_build_shared=no
10392
10393variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10394if test "$GCC" = yes; then
10395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10396fi
10397
10398#
10399# Do we need to explicitly link libc?
10400#
10401case "x$archive_cmds_need_lc_CXX" in
10402x|xyes)
10403 # Assume -lc should be added
10404 archive_cmds_need_lc_CXX=yes
10405
10406 if test "$enable_shared" = yes && test "$GCC" = yes; then
10407 case $archive_cmds_CXX in
10408 *'~'*)
10409 # FIXME: we may have to deal with multi-command sequences.
10410 ;;
10411 '$CC '*)
10412 # Test whether the compiler implicitly links with -lc since on some
10413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10414 # to ld, don't add -lc before -lgcc.
10415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10416echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10417 $rm conftest*
10418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10419
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } 2>conftest.err; then
10425 soname=conftest
10426 lib=conftest
10427 libobjs=conftest.$ac_objext
10428 deplibs=
10429 wl=$lt_prog_compiler_wl_CXX
10430 compiler_flags=-v
10431 linker_flags=-v
10432 verstring=
10433 output_objdir=.
10434 libname=conftest
10435 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10436 allow_undefined_flag_CXX=
10437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10438 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }
10442 then
10443 archive_cmds_need_lc_CXX=no
10444 else
10445 archive_cmds_need_lc_CXX=yes
10446 fi
10447 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10448 else
10449 cat conftest.err 1>&5
10450 fi
10451 $rm conftest*
10452 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10453echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10454 ;;
10455 esac
10456 fi
10457 ;;
10458esac
10459
10460echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10462hardcode_action_CXX=
10463if test -n "$hardcode_libdir_flag_spec_CXX" || \
10464 test -n "$runpath_var CXX" || \
10465 test "X$hardcode_automatic_CXX"="Xyes" ; then
10466
10467 # We can hardcode non-existant directories.
10468 if test "$hardcode_direct_CXX" != no &&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10473 test "$hardcode_minus_L_CXX" != no; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action_CXX=relink
10476 else
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action_CXX=immediate
10479 fi
10480else
10481 # We cannot hardcode anything, or else we can only hardcode existing
10482 # directories.
10483 hardcode_action_CXX=unsupported
10484fi
10485echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10486echo "${ECHO_T}$hardcode_action_CXX" >&6
10487
10488if test "$hardcode_action_CXX" = relink; then
10489 # Fast installation is not supported
10490 enable_fast_install=no
10491elif test "$shlibpath_overrides_runpath" = yes ||
10492 test "$enable_shared" = no; then
10493 # Fast installation is not necessary
10494 enable_fast_install=needless
10495fi
10496
10497striplib=
10498old_striplib=
10499echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10500echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10501if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10504 echo "$as_me:$LINENO: result: yes" >&5
10505echo "${ECHO_T}yes" >&6
10506else
10507# FIXME - insert some real tests, host_os isn't really good enough
10508 case $host_os in
10509 darwin*)
10510 if test -n "$STRIP" ; then
10511 striplib="$STRIP -x"
10512 echo "$as_me:$LINENO: result: yes" >&5
10513echo "${ECHO_T}yes" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517fi
10518 ;;
10519 *)
10520 echo "$as_me:$LINENO: result: no" >&5
10521echo "${ECHO_T}no" >&6
10522 ;;
10523 esac
10524fi
10525
10526echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10527echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10528library_names_spec=
10529libname_spec='lib$name'
10530soname_spec=
10531shrext=".so"
10532postinstall_cmds=
10533postuninstall_cmds=
10534finish_cmds=
10535finish_eval=
10536shlibpath_var=
10537shlibpath_overrides_runpath=unknown
10538version_type=none
10539dynamic_linker="$host_os ld.so"
10540sys_lib_dlsearch_path_spec="/lib /usr/lib"
10541if test "$GCC" = yes; then
10542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10543 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10544 # if the path contains ";" then we assume it to be the separator
10545 # otherwise default to the standard path separator (i.e. ":") - it is
10546 # assumed that no part of a normal pathname contains ";" but that should
10547 # okay in the real world where ";" in dirpaths is itself problematic.
10548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10549 else
10550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10551 fi
10552else
10553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554fi
10555need_lib_prefix=unknown
10556hardcode_into_libs=no
10557
10558# when you set need_version to no, make sure it does not cause -set_version
10559# flags to be left without arguments
10560need_version=unknown
10561
10562case $host_os in
10563aix3*)
10564 version_type=linux
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10566 shlibpath_var=LIBPATH
10567
10568 # AIX 3 has no versioning support, so we append a major version to the name.
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 ;;
10571
10572aix4* | aix5*)
10573 version_type=linux
10574 need_lib_prefix=no
10575 need_version=no
10576 hardcode_into_libs=yes
10577 if test "$host_cpu" = ia64; then
10578 # AIX 5 supports IA64
10579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 else
10582 # With GCC up to 2.95.x, collect2 would create an import file
10583 # for dependence libraries. The import file would start with
10584 # the line `#! .'. This would cause the generated library to
10585 # depend on `.', always an invalid library. This was fixed in
10586 # development snapshots of GCC prior to 3.0.
10587 case $host_os in
10588 aix4 | aix4.[01] | aix4.[01].*)
10589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10590 echo ' yes '
10591 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10592 :
10593 else
10594 can_build_shared=no
10595 fi
10596 ;;
10597 esac
10598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10599 # soname into executable. Probably we can add versioning support to
10600 # collect2, so additional links can be useful in future.
10601 if test "$aix_use_runtimelinking" = yes; then
10602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10603 # instead of lib<name>.a to let people know that these are not
10604 # typical AIX shared libraries.
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 else
10607 # We preserve .a as extension for shared libraries through AIX4.2
10608 # and later when we are not doing run time linking.
10609 library_names_spec='${libname}${release}.a $libname.a'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 fi
10612 shlibpath_var=LIBPATH
10613 fi
10614 ;;
10615
10616amigaos*)
10617 library_names_spec='$libname.ixlibrary $libname.a'
10618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10619 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'
10620 ;;
10621
10622beos*)
10623 library_names_spec='${libname}${shared_ext}'
10624 dynamic_linker="$host_os ld.so"
10625 shlibpath_var=LIBRARY_PATH
10626 ;;
10627
10628bsdi4*)
10629 version_type=linux
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10637 # the default ld.so.conf also contains /usr/contrib/lib and
10638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10639 # libtool to hard-code these into programs
10640 ;;
10641
10642cygwin* | mingw* | pw32*)
10643 version_type=windows
10644 shrext=".dll"
10645 need_version=no
10646 need_lib_prefix=no
10647
10648 case $GCC,$host_os in
10649 yes,cygwin* | yes,mingw* | yes,pw32*)
10650 library_names_spec='$libname.dll.a'
10651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10652 postinstall_cmds='base_file=`basename \${file}`~
10653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10654 dldir=$destdir/`dirname \$dlpath`~
10655 test -d \$dldir || mkdir -p \$dldir~
10656 $install_prog $dir/$dlname \$dldir/$dlname'
10657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10658 dlpath=$dir/\$dldll~
10659 $rm \$dlpath'
10660 shlibpath_overrides_runpath=yes
10661
10662 case $host_os in
10663 cygwin*)
10664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10667 ;;
10668 mingw*)
10669 # MinGW DLLs use traditional 'lib' prefix
10670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10673 # It is most probably a Windows format PATH printed by
10674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10675 # path with ; separators, and with drive letters. We can handle the
10676 # drive letters (cygwin fileutils understands them), so leave them,
10677 # especially as we might pass files found there to a mingw objdump,
10678 # which wouldn't understand a cygwinified path. Ahh.
10679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10680 else
10681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10682 fi
10683 ;;
10684 pw32*)
10685 # pw32 DLLs use 'pw' prefix rather than 'lib'
10686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10687 ;;
10688 esac
10689 ;;
10690
10691 *)
10692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10693 ;;
10694 esac
10695 dynamic_linker='Win32 ld.exe'
10696 # FIXME: first we should search . and the directory the executable is in
10697 shlibpath_var=PATH
10698 ;;
10699
10700darwin* | rhapsody*)
10701 dynamic_linker="$host_os dyld"
10702 version_type=darwin
10703 need_lib_prefix=no
10704 need_version=no
10705 # FIXME: Relying on posixy $() will cause problems for
10706 # cross-compilation, but unfortunately the echo tests do not
10707 # yet detect zsh echo's removal of \ escapes.
10708 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10709 soname_spec='${libname}${release}${major}$shared_ext'
10710 shlibpath_overrides_runpath=yes
10711 shlibpath_var=DYLD_LIBRARY_PATH
10712 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10713 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10714 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10715 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"`
10716 fi
10717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10718 ;;
10719
10720dgux*)
10721 version_type=linux
10722 need_lib_prefix=no
10723 need_version=no
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 ;;
10728
10729freebsd1*)
10730 dynamic_linker=no
10731 ;;
10732
10733freebsd*)
10734 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10735 version_type=freebsd-$objformat
10736 case $version_type in
10737 freebsd-elf*)
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10739 need_version=no
10740 need_lib_prefix=no
10741 ;;
10742 freebsd-*)
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10744 need_version=yes
10745 ;;
10746 esac
10747 shlibpath_var=LD_LIBRARY_PATH
10748 case $host_os in
10749 freebsd2*)
10750 shlibpath_overrides_runpath=yes
10751 ;;
10752 freebsd3.01* | freebsdelf3.01*)
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 ;;
10756 *) # from 3.2 on
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10759 ;;
10760 esac
10761 ;;
10762
10763gnu*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 hardcode_into_libs=yes
10771 ;;
10772
10773hpux9* | hpux10* | hpux11*)
10774 # Give a soname corresponding to the major version so that dld.sl refuses to
10775 # link against other versions.
10776 version_type=sunos
10777 need_lib_prefix=no
10778 need_version=no
10779 case "$host_cpu" in
10780 ia64*)
10781 shrext='.so'
10782 hardcode_into_libs=yes
10783 dynamic_linker="$host_os dld.so"
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 if test "X$HPUX_IA64_MODE" = X32; then
10789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10790 else
10791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10792 fi
10793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10794 ;;
10795 hppa*64*)
10796 shrext='.sl'
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10805 ;;
10806 *)
10807 shrext='.sl'
10808 dynamic_linker="$host_os dld.sl"
10809 shlibpath_var=SHLIB_PATH
10810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 ;;
10814 esac
10815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10816 postinstall_cmds='chmod 555 $lib'
10817 ;;
10818
10819irix5* | irix6* | nonstopux*)
10820 case $host_os in
10821 nonstopux*) version_type=nonstopux ;;
10822 *)
10823 if test "$lt_cv_prog_gnu_ld" = yes; then
10824 version_type=linux
10825 else
10826 version_type=irix
10827 fi ;;
10828 esac
10829 need_lib_prefix=no
10830 need_version=no
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 case $host_os in
10834 irix5* | nonstopux*)
10835 libsuff= shlibsuff=
10836 ;;
10837 *)
10838 case $LD in # libtool.m4 will add one of these switches to LD
10839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10840 libsuff= shlibsuff= libmagic=32-bit;;
10841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10842 libsuff=32 shlibsuff=N32 libmagic=N32;;
10843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10845 *) libsuff= shlibsuff= libmagic=never-match;;
10846 esac
10847 ;;
10848 esac
10849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10853 hardcode_into_libs=yes
10854 ;;
10855
10856# No shared lib support for Linux oldld, aout, or coff.
10857linux*oldld* | linux*aout* | linux*coff*)
10858 dynamic_linker=no
10859 ;;
10860
10861# This must be Linux ELF.
10862linux*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=no
10871 # This implies no fast_install, which is unacceptable.
10872 # Some rework will be needed to allow for fast_install
10873 # before this can be enabled.
10874 hardcode_into_libs=yes
10875
10876 # We used to test for /lib/ld.so.1 and disable shared libraries on
10877 # powerpc, because MkLinux only supported shared libraries with the
10878 # GNU dynamic linker. Since this was broken with cross compilers,
10879 # most powerpc-linux boxes support dynamic linking these days and
10880 # people can always --disable-shared, the test was removed, and we
10881 # assume the GNU/Linux dynamic linker is in use.
10882 dynamic_linker='GNU/Linux ld.so'
10883 ;;
10884
10885netbsd*)
10886 version_type=sunos
10887 need_lib_prefix=no
10888 need_version=no
10889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10892 dynamic_linker='NetBSD (a.out) ld.so'
10893 else
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 dynamic_linker='NetBSD ld.elf_so'
10897 fi
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10901 ;;
10902
10903newsos6)
10904 version_type=linux
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=yes
10908 ;;
10909
10910nto-qnx)
10911 version_type=linux
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 ;;
10919
10920openbsd*)
10921 version_type=sunos
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10928 case $host_os in
10929 openbsd2.[89] | openbsd2.[89].*)
10930 shlibpath_overrides_runpath=no
10931 ;;
10932 *)
10933 shlibpath_overrides_runpath=yes
10934 ;;
10935 esac
10936 else
10937 shlibpath_overrides_runpath=yes
10938 fi
10939 ;;
10940
10941os2*)
10942 libname_spec='$name'
10943 shrext=".dll"
10944 need_lib_prefix=no
10945 library_names_spec='$libname${shared_ext} $libname.a'
10946 dynamic_linker='OS/2 ld.exe'
10947 shlibpath_var=LIBPATH
10948 ;;
10949
10950osf3* | osf4* | osf5*)
10951 version_type=osf
10952 need_lib_prefix=no
10953 need_version=no
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10959 ;;
10960
10961sco3.2v5*)
10962 version_type=osf
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 ;;
10967
10968solaris*)
10969 version_type=linux
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 # ldd complains unless libraries are executable
10978 postinstall_cmds='chmod +x $lib'
10979 ;;
10980
10981sunos4*)
10982 version_type=sunos
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
10988 need_lib_prefix=no
10989 fi
10990 need_version=yes
10991 ;;
10992
10993sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994 version_type=linux
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 case $host_vendor in
10999 sni)
11000 shlibpath_overrides_runpath=no
11001 need_lib_prefix=no
11002 export_dynamic_flag_spec='${wl}-Blargedynsym'
11003 runpath_var=LD_RUN_PATH
11004 ;;
11005 siemens)
11006 need_lib_prefix=no
11007 ;;
11008 motorola)
11009 need_lib_prefix=no
11010 need_version=no
11011 shlibpath_overrides_runpath=no
11012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11013 ;;
11014 esac
11015 ;;
11016
11017sysv4*MP*)
11018 if test -d /usr/nec ;then
11019 version_type=linux
11020 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11021 soname_spec='$libname${shared_ext}.$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 fi
11024 ;;
11025
11026uts4*)
11027 version_type=linux
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 ;;
11032
11033*)
11034 dynamic_linker=no
11035 ;;
11036esac
11037echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11038echo "${ECHO_T}$dynamic_linker" >&6
11039test "$dynamic_linker" = no && can_build_shared=no
11040
11041if test "x$enable_dlopen" != xyes; then
11042 enable_dlopen=unknown
11043 enable_dlopen_self=unknown
11044 enable_dlopen_self_static=unknown
11045else
11046 lt_cv_dlopen=no
11047 lt_cv_dlopen_libs=
11048
11049 case $host_os in
11050 beos*)
11051 lt_cv_dlopen="load_add_on"
11052 lt_cv_dlopen_libs=
11053 lt_cv_dlopen_self=yes
11054 ;;
11055
11056 mingw* | pw32*)
11057 lt_cv_dlopen="LoadLibrary"
11058 lt_cv_dlopen_libs=
11059 ;;
11060
11061 cygwin*)
11062 lt_cv_dlopen="dlopen"
11063 lt_cv_dlopen_libs=
11064 ;;
11065
11066 darwin*)
11067 # if libdl is installed we need to link against it
11068 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11069echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11070if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 ac_check_lib_save_LIBS=$LIBS
11074LIBS="-ldl $LIBS"
11075cat >conftest.$ac_ext <<_ACEOF
11076#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011077/* confdefs.h. */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011082
11083/* Override any gcc2 internal prototype to avoid an error. */
11084#ifdef __cplusplus
11085extern "C"
11086#endif
11087/* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11089char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011090int
11091main ()
11092{
11093dlopen ();
11094 ;
11095 return 0;
11096}
11097_ACEOF
11098rm -f conftest.$ac_objext conftest$ac_exeext
11099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_lib_dl_dlopen=yes
11111else
11112 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011113sed 's/^/| /' conftest.$ac_ext >&5
11114
John Criswell47fdd832003-07-14 16:52:07 +000011115ac_cv_lib_dl_dlopen=no
11116fi
11117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118LIBS=$ac_check_lib_save_LIBS
11119fi
11120echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11121echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11122if test $ac_cv_lib_dl_dlopen = yes; then
11123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11124else
11125
11126 lt_cv_dlopen="dyld"
11127 lt_cv_dlopen_libs=
11128 lt_cv_dlopen_self=yes
11129
11130fi
11131
11132 ;;
11133
11134 *)
11135 echo "$as_me:$LINENO: checking for shl_load" >&5
11136echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11137if test "${ac_cv_func_shl_load+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140 cat >conftest.$ac_ext <<_ACEOF
11141#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
11146/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011147/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011148 which can conflict with char shl_load (); below.
11149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150 <limits.h> exists even on freestanding compilers. */
11151#ifdef __STDC__
11152# include <limits.h>
11153#else
11154# include <assert.h>
11155#endif
John Criswell47fdd832003-07-14 16:52:07 +000011156/* Override any gcc2 internal prototype to avoid an error. */
11157#ifdef __cplusplus
11158extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011159{
John Criswell47fdd832003-07-14 16:52:07 +000011160#endif
11161/* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11163char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011164/* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167#if defined (__stub_shl_load) || defined (__stub___shl_load)
11168choke me
11169#else
John Criswell392aaa32003-07-22 19:18:09 +000011170char (*f) () = shl_load;
11171#endif
11172#ifdef __cplusplus
11173}
John Criswell47fdd832003-07-14 16:52:07 +000011174#endif
11175
John Criswell392aaa32003-07-22 19:18:09 +000011176int
11177main ()
11178{
11179return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest.$ac_objext conftest$ac_exeext
11185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_func_shl_load=yes
11197else
11198 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011199sed 's/^/| /' conftest.$ac_ext >&5
11200
John Criswell47fdd832003-07-14 16:52:07 +000011201ac_cv_func_shl_load=no
11202fi
11203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204fi
11205echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11206echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11207if test $ac_cv_func_shl_load = yes; then
11208 lt_cv_dlopen="shl_load"
11209else
11210 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11211echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11212if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 ac_check_lib_save_LIBS=$LIBS
11216LIBS="-ldld $LIBS"
11217cat >conftest.$ac_ext <<_ACEOF
11218#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011224
11225/* Override any gcc2 internal prototype to avoid an error. */
11226#ifdef __cplusplus
11227extern "C"
11228#endif
11229/* We use char because int might match the return type of a gcc2
11230 builtin and then its argument prototype would still apply. */
11231char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011232int
11233main ()
11234{
11235shl_load ();
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240rm -f conftest.$ac_objext conftest$ac_exeext
11241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_lib_dld_shl_load=yes
11253else
11254 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011255sed 's/^/| /' conftest.$ac_ext >&5
11256
John Criswell47fdd832003-07-14 16:52:07 +000011257ac_cv_lib_dld_shl_load=no
11258fi
11259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260LIBS=$ac_check_lib_save_LIBS
11261fi
11262echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11263echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11264if test $ac_cv_lib_dld_shl_load = yes; then
11265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11266else
11267 echo "$as_me:$LINENO: checking for dlopen" >&5
11268echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11269if test "${ac_cv_func_dlopen+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 cat >conftest.$ac_ext <<_ACEOF
11273#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011279/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011280 which can conflict with char dlopen (); below.
11281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11282 <limits.h> exists even on freestanding compilers. */
11283#ifdef __STDC__
11284# include <limits.h>
11285#else
11286# include <assert.h>
11287#endif
John Criswell47fdd832003-07-14 16:52:07 +000011288/* Override any gcc2 internal prototype to avoid an error. */
11289#ifdef __cplusplus
11290extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011291{
John Criswell47fdd832003-07-14 16:52:07 +000011292#endif
11293/* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11295char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011296/* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299#if defined (__stub_dlopen) || defined (__stub___dlopen)
11300choke me
11301#else
John Criswell392aaa32003-07-22 19:18:09 +000011302char (*f) () = dlopen;
11303#endif
11304#ifdef __cplusplus
11305}
John Criswell47fdd832003-07-14 16:52:07 +000011306#endif
11307
John Criswell392aaa32003-07-22 19:18:09 +000011308int
11309main ()
11310{
11311return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext conftest$ac_exeext
11317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_func_dlopen=yes
11329else
11330 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011331sed 's/^/| /' conftest.$ac_ext >&5
11332
John Criswell47fdd832003-07-14 16:52:07 +000011333ac_cv_func_dlopen=no
11334fi
11335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336fi
11337echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11338echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11339if test $ac_cv_func_dlopen = yes; then
11340 lt_cv_dlopen="dlopen"
11341else
11342 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11343echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11344if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 ac_check_lib_save_LIBS=$LIBS
11348LIBS="-ldl $LIBS"
11349cat >conftest.$ac_ext <<_ACEOF
11350#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011356
11357/* Override any gcc2 internal prototype to avoid an error. */
11358#ifdef __cplusplus
11359extern "C"
11360#endif
11361/* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11363char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011364int
11365main ()
11366{
11367dlopen ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_cv_lib_dl_dlopen=yes
11385else
11386 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011387sed 's/^/| /' conftest.$ac_ext >&5
11388
John Criswell47fdd832003-07-14 16:52:07 +000011389ac_cv_lib_dl_dlopen=no
11390fi
11391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392LIBS=$ac_check_lib_save_LIBS
11393fi
11394echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11395echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11396if test $ac_cv_lib_dl_dlopen = yes; then
11397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11398else
11399 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11400echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11401if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 ac_check_lib_save_LIBS=$LIBS
11405LIBS="-lsvld $LIBS"
11406cat >conftest.$ac_ext <<_ACEOF
11407#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011413
11414/* Override any gcc2 internal prototype to avoid an error. */
11415#ifdef __cplusplus
11416extern "C"
11417#endif
11418/* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011421int
11422main ()
11423{
11424dlopen ();
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext conftest$ac_exeext
11430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_lib_svld_dlopen=yes
11442else
11443 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011444sed 's/^/| /' conftest.$ac_ext >&5
11445
John Criswell47fdd832003-07-14 16:52:07 +000011446ac_cv_lib_svld_dlopen=no
11447fi
11448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449LIBS=$ac_check_lib_save_LIBS
11450fi
11451echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11452echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11453if test $ac_cv_lib_svld_dlopen = yes; then
11454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11455else
11456 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11457echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11458if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 ac_check_lib_save_LIBS=$LIBS
11462LIBS="-ldld $LIBS"
11463cat >conftest.$ac_ext <<_ACEOF
11464#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011470
11471/* Override any gcc2 internal prototype to avoid an error. */
11472#ifdef __cplusplus
11473extern "C"
11474#endif
11475/* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11477char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011478int
11479main ()
11480{
11481dld_link ();
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext conftest$ac_exeext
11487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -s conftest$ac_exeext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ac_cv_lib_dld_dld_link=yes
11499else
11500 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011501sed 's/^/| /' conftest.$ac_ext >&5
11502
John Criswell47fdd832003-07-14 16:52:07 +000011503ac_cv_lib_dld_dld_link=no
11504fi
11505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11506LIBS=$ac_check_lib_save_LIBS
11507fi
11508echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11509echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11510if test $ac_cv_lib_dld_dld_link = yes; then
11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11512fi
11513
11514
11515fi
11516
11517
11518fi
11519
11520
11521fi
11522
11523
11524fi
11525
11526
11527fi
11528
11529 ;;
11530 esac
11531
11532 if test "x$lt_cv_dlopen" != xno; then
11533 enable_dlopen=yes
11534 else
11535 enable_dlopen=no
11536 fi
11537
11538 case $lt_cv_dlopen in
11539 dlopen)
11540 save_CPPFLAGS="$CPPFLAGS"
11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11542
11543 save_LDFLAGS="$LDFLAGS"
11544 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11545
11546 save_LIBS="$LIBS"
11547 LIBS="$lt_cv_dlopen_libs $LIBS"
11548
11549 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11550echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11551if test "${lt_cv_dlopen_self+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self=cross
11556else
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +000011560#line 11560 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011561#include "confdefs.h"
11562
11563#if HAVE_DLFCN_H
11564#include <dlfcn.h>
11565#endif
11566
11567#include <stdio.h>
11568
11569#ifdef RTLD_GLOBAL
11570# define LT_DLGLOBAL RTLD_GLOBAL
11571#else
11572# ifdef DL_GLOBAL
11573# define LT_DLGLOBAL DL_GLOBAL
11574# else
11575# define LT_DLGLOBAL 0
11576# endif
11577#endif
11578
11579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581#ifndef LT_DLLAZY_OR_NOW
11582# ifdef RTLD_LAZY
11583# define LT_DLLAZY_OR_NOW RTLD_LAZY
11584# else
11585# ifdef DL_LAZY
11586# define LT_DLLAZY_OR_NOW DL_LAZY
11587# else
11588# ifdef RTLD_NOW
11589# define LT_DLLAZY_OR_NOW RTLD_NOW
11590# else
11591# ifdef DL_NOW
11592# define LT_DLLAZY_OR_NOW DL_NOW
11593# else
11594# define LT_DLLAZY_OR_NOW 0
11595# endif
11596# endif
11597# endif
11598# endif
11599#endif
11600
11601#ifdef __cplusplus
11602extern "C" void exit (int);
11603#endif
11604
11605void fnord() { int i=42;}
11606int main ()
11607{
11608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11609 int status = $lt_dlunknown;
11610
11611 if (self)
11612 {
11613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 /* dlclose (self); */
11616 }
11617
11618 exit (status);
11619}
11620EOF
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11626 (./conftest; exit; ) 2>/dev/null
11627 lt_status=$?
11628 case x$lt_status in
11629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11631 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11632 esac
11633 else :
11634 # compilation failed
11635 lt_cv_dlopen_self=no
11636 fi
11637fi
11638rm -fr conftest*
11639
11640
11641fi
11642echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11643echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11644
11645 if test "x$lt_cv_dlopen_self" = xyes; then
11646 LDFLAGS="$LDFLAGS $link_static_flag"
11647 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11648echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11649if test "${lt_cv_dlopen_self_static+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 if test "$cross_compiling" = yes; then :
11653 lt_cv_dlopen_self_static=cross
11654else
11655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11656 lt_status=$lt_dlunknown
11657 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +000011658#line 11658 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011659#include "confdefs.h"
11660
11661#if HAVE_DLFCN_H
11662#include <dlfcn.h>
11663#endif
11664
11665#include <stdio.h>
11666
11667#ifdef RTLD_GLOBAL
11668# define LT_DLGLOBAL RTLD_GLOBAL
11669#else
11670# ifdef DL_GLOBAL
11671# define LT_DLGLOBAL DL_GLOBAL
11672# else
11673# define LT_DLGLOBAL 0
11674# endif
11675#endif
11676
11677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11678 find out it does not work in some platform. */
11679#ifndef LT_DLLAZY_OR_NOW
11680# ifdef RTLD_LAZY
11681# define LT_DLLAZY_OR_NOW RTLD_LAZY
11682# else
11683# ifdef DL_LAZY
11684# define LT_DLLAZY_OR_NOW DL_LAZY
11685# else
11686# ifdef RTLD_NOW
11687# define LT_DLLAZY_OR_NOW RTLD_NOW
11688# else
11689# ifdef DL_NOW
11690# define LT_DLLAZY_OR_NOW DL_NOW
11691# else
11692# define LT_DLLAZY_OR_NOW 0
11693# endif
11694# endif
11695# endif
11696# endif
11697#endif
11698
11699#ifdef __cplusplus
11700extern "C" void exit (int);
11701#endif
11702
11703void fnord() { int i=42;}
11704int main ()
11705{
11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707 int status = $lt_dlunknown;
11708
11709 if (self)
11710 {
11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11713 /* dlclose (self); */
11714 }
11715
11716 exit (status);
11717}
11718EOF
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11724 (./conftest; exit; ) 2>/dev/null
11725 lt_status=$?
11726 case x$lt_status in
11727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11729 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11730 esac
11731 else :
11732 # compilation failed
11733 lt_cv_dlopen_self_static=no
11734 fi
11735fi
11736rm -fr conftest*
11737
11738
11739fi
11740echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11741echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11742 fi
11743
11744 CPPFLAGS="$save_CPPFLAGS"
11745 LDFLAGS="$save_LDFLAGS"
11746 LIBS="$save_LIBS"
11747 ;;
11748 esac
11749
11750 case $lt_cv_dlopen_self in
11751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11752 *) enable_dlopen_self=unknown ;;
11753 esac
11754
11755 case $lt_cv_dlopen_self_static in
11756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11757 *) enable_dlopen_self_static=unknown ;;
11758 esac
11759fi
11760
11761
11762# The else clause should only fire when bootstrapping the
11763# libtool distribution, otherwise you forgot to ship ltmain.sh
11764# with your package, and you will get complaints that there are
11765# no rules to generate ltmain.sh.
11766if test -f "$ltmain"; then
11767 # See if we are running on zsh, and set the options which allow our commands through
11768 # without removal of \ escapes.
11769 if test -n "${ZSH_VERSION+set}" ; then
11770 setopt NO_GLOB_SUBST
11771 fi
11772 # Now quote all the things that may contain metacharacters while being
11773 # careful not to overquote the AC_SUBSTed values. We take copies of the
11774 # variables and quote the copies for generation of the libtool script.
11775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11778 deplibs_check_method reload_flag reload_cmds need_locks \
11779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11780 lt_cv_sys_global_symbol_to_c_name_address \
11781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11782 old_postinstall_cmds old_postuninstall_cmds \
11783 compiler_CXX \
11784 CC_CXX \
11785 LD_CXX \
11786 lt_prog_compiler_wl_CXX \
11787 lt_prog_compiler_pic_CXX \
11788 lt_prog_compiler_static_CXX \
11789 lt_prog_compiler_no_builtin_flag_CXX \
11790 export_dynamic_flag_spec_CXX \
11791 thread_safe_flag_spec_CXX \
11792 whole_archive_flag_spec_CXX \
11793 enable_shared_with_static_runtimes_CXX \
11794 old_archive_cmds_CXX \
11795 old_archive_from_new_cmds_CXX \
11796 predep_objects_CXX \
11797 postdep_objects_CXX \
11798 predeps_CXX \
11799 postdeps_CXX \
11800 compiler_lib_search_path_CXX \
11801 archive_cmds_CXX \
11802 archive_expsym_cmds_CXX \
11803 postinstall_cmds_CXX \
11804 postuninstall_cmds_CXX \
11805 old_archive_from_expsyms_cmds_CXX \
11806 allow_undefined_flag_CXX \
11807 no_undefined_flag_CXX \
11808 export_symbols_cmds_CXX \
11809 hardcode_libdir_flag_spec_CXX \
11810 hardcode_libdir_flag_spec_ld_CXX \
11811 hardcode_libdir_separator_CXX \
11812 hardcode_automatic_CXX \
11813 module_cmds_CXX \
11814 module_expsym_cmds_CXX \
11815 lt_cv_prog_compiler_c_o_CXX \
11816 exclude_expsyms_CXX \
11817 include_expsyms_CXX; do
11818
11819 case $var in
11820 old_archive_cmds_CXX | \
11821 old_archive_from_new_cmds_CXX | \
11822 archive_cmds_CXX | \
11823 archive_expsym_cmds_CXX | \
11824 module_cmds_CXX | \
11825 module_expsym_cmds_CXX | \
11826 old_archive_from_expsyms_cmds_CXX | \
11827 export_symbols_cmds_CXX | \
11828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11829 postinstall_cmds | postuninstall_cmds | \
11830 old_postinstall_cmds | old_postuninstall_cmds | \
11831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11832 # Double-quote double-evaled strings.
11833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11834 ;;
11835 *)
11836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11837 ;;
11838 esac
11839 done
11840
11841 case $lt_echo in
11842 *'\$0 --fallback-echo"')
11843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11844 ;;
11845 esac
11846
11847cfgfile="$ofile"
11848
11849 cat <<__EOF__ >> "$cfgfile"
11850# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11851
11852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11853
11854# Shell to use when invoking shell scripts.
11855SHELL=$lt_SHELL
11856
11857# Whether or not to build shared libraries.
11858build_libtool_libs=$enable_shared
11859
11860# Whether or not to build static libraries.
11861build_old_libs=$enable_static
11862
11863# Whether or not to add -lc for building shared libraries.
11864build_libtool_need_lc=$archive_cmds_need_lc_CXX
11865
11866# Whether or not to disallow shared libs when runtime libs are static
11867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11868
11869# Whether or not to optimize for fast installation.
11870fast_install=$enable_fast_install
11871
11872# The host system.
11873host_alias=$host_alias
11874host=$host
11875
11876# An echo program that does not interpret backslashes.
11877echo=$lt_echo
11878
11879# The archiver.
11880AR=$lt_AR
11881AR_FLAGS=$lt_AR_FLAGS
11882
11883# A C compiler.
11884LTCC=$lt_LTCC
11885
11886# A language-specific compiler.
11887CC=$lt_compiler_CXX
11888
11889# Is the compiler the GNU C compiler?
11890with_gcc=$GCC_CXX
11891
11892# An ERE matcher.
11893EGREP=$lt_EGREP
11894
11895# The linker used to build libraries.
11896LD=$lt_LD_CXX
11897
11898# Whether we need hard or soft links.
11899LN_S=$lt_LN_S
11900
11901# A BSD-compatible nm program.
11902NM=$lt_NM
11903
11904# A symbol stripping program
11905STRIP=$STRIP
11906
11907# Used to examine libraries when file_magic_cmd begins "file"
11908MAGIC_CMD=$MAGIC_CMD
11909
11910# Used on cygwin: DLL creation program.
11911DLLTOOL="$DLLTOOL"
11912
11913# Used on cygwin: object dumper.
11914OBJDUMP="$OBJDUMP"
11915
11916# Used on cygwin: assembler.
11917AS="$AS"
11918
11919# The name of the directory that contains temporary libtool files.
11920objdir=$objdir
11921
11922# How to create reloadable object files.
11923reload_flag=$lt_reload_flag
11924reload_cmds=$lt_reload_cmds
11925
11926# How to pass a linker flag through the compiler.
11927wl=$lt_lt_prog_compiler_wl_CXX
11928
11929# Object file suffix (normally "o").
11930objext="$ac_objext"
11931
11932# Old archive suffix (normally "a").
11933libext="$libext"
11934
11935# Shared library suffix (normally ".so").
11936shrext='$shrext'
11937
11938# Executable file suffix (normally "").
11939exeext="$exeext"
11940
11941# Additional compiler flags for building library objects.
11942pic_flag=$lt_lt_prog_compiler_pic_CXX
11943pic_mode=$pic_mode
11944
11945# What is the maximum length of a command?
11946max_cmd_len=$lt_cv_sys_max_cmd_len
11947
11948# Does compiler simultaneously support -c and -o options?
11949compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11950
11951# Must we lock files when doing compilation ?
11952need_locks=$lt_need_locks
11953
11954# Do we need the lib prefix for modules?
11955need_lib_prefix=$need_lib_prefix
11956
11957# Do we need a version for libraries?
11958need_version=$need_version
11959
11960# Whether dlopen is supported.
11961dlopen_support=$enable_dlopen
11962
11963# Whether dlopen of programs is supported.
11964dlopen_self=$enable_dlopen_self
11965
11966# Whether dlopen of statically linked programs is supported.
11967dlopen_self_static=$enable_dlopen_self_static
11968
11969# Compiler flag to prevent dynamic linking.
11970link_static_flag=$lt_lt_prog_compiler_static_CXX
11971
11972# Compiler flag to turn off builtin functions.
11973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11974
11975# Compiler flag to allow reflexive dlopens.
11976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11977
11978# Compiler flag to generate shared objects directly from archives.
11979whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11980
11981# Compiler flag to generate thread-safe objects.
11982thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11983
11984# Library versioning type.
11985version_type=$version_type
11986
11987# Format of library name prefix.
11988libname_spec=$lt_libname_spec
11989
11990# List of archive names. First name is the real one, the rest are links.
11991# The last name is the one that the linker finds with -lNAME.
11992library_names_spec=$lt_library_names_spec
11993
11994# The coded name of the library, if different from the real name.
11995soname_spec=$lt_soname_spec
11996
11997# Commands used to build and install an old-style archive.
11998RANLIB=$lt_RANLIB
11999old_archive_cmds=$lt_old_archive_cmds_CXX
12000old_postinstall_cmds=$lt_old_postinstall_cmds
12001old_postuninstall_cmds=$lt_old_postuninstall_cmds
12002
12003# Create an old-style archive from a shared archive.
12004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12005
12006# Create a temporary old-style archive to link instead of a shared archive.
12007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12008
12009# Commands used to build and install a shared archive.
12010archive_cmds=$lt_archive_cmds_CXX
12011archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12012postinstall_cmds=$lt_postinstall_cmds
12013postuninstall_cmds=$lt_postuninstall_cmds
12014
12015# Commands used to build a loadable module (assumed same as above if empty)
12016module_cmds=$lt_module_cmds_CXX
12017module_expsym_cmds=$lt_module_expsym_cmds_CXX
12018
12019# Commands to strip libraries.
12020old_striplib=$lt_old_striplib
12021striplib=$lt_striplib
12022
12023# Dependencies to place before the objects being linked to create a
12024# shared library.
12025predep_objects=$lt_predep_objects_CXX
12026
12027# Dependencies to place after the objects being linked to create a
12028# shared library.
12029postdep_objects=$lt_postdep_objects_CXX
12030
12031# Dependencies to place before the objects being linked to create a
12032# shared library.
12033predeps=$lt_predeps_CXX
12034
12035# Dependencies to place after the objects being linked to create a
12036# shared library.
12037postdeps=$lt_postdeps_CXX
12038
12039# The library search path used internally by the compiler when linking
12040# a shared library.
12041compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12042
12043# Method to check whether dependent libraries are shared objects.
12044deplibs_check_method=$lt_deplibs_check_method
12045
12046# Command to use when deplibs_check_method == file_magic.
12047file_magic_cmd=$lt_file_magic_cmd
12048
12049# Flag that allows shared libraries with undefined symbols to be built.
12050allow_undefined_flag=$lt_allow_undefined_flag_CXX
12051
12052# Flag that forces no undefined symbols.
12053no_undefined_flag=$lt_no_undefined_flag_CXX
12054
12055# Commands used to finish a libtool library installation in a directory.
12056finish_cmds=$lt_finish_cmds
12057
12058# Same as above, but a single script fragment to be evaled but not shown.
12059finish_eval=$lt_finish_eval
12060
12061# Take the output of nm and produce a listing of raw symbols and C names.
12062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12063
12064# Transform the output of nm in a proper C declaration
12065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12066
12067# Transform the output of nm in a C name address pair
12068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12069
12070# This is the shared library runtime path variable.
12071runpath_var=$runpath_var
12072
12073# This is the shared library path variable.
12074shlibpath_var=$shlibpath_var
12075
12076# Is shlibpath searched before the hard-coded library search path?
12077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12078
12079# How to hardcode a shared library path into an executable.
12080hardcode_action=$hardcode_action_CXX
12081
12082# Whether we should hardcode library paths into libraries.
12083hardcode_into_libs=$hardcode_into_libs
12084
12085# Flag to hardcode \$libdir into a binary during linking.
12086# This must work even if \$libdir does not exist.
12087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12088
12089# If ld is used when linking, flag to hardcode \$libdir into
12090# a binary during linking. This must work even if \$libdir does
12091# not exist.
12092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12093
12094# Whether we need a single -rpath flag with a separated argument.
12095hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12096
12097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12098# resulting binary.
12099hardcode_direct=$hardcode_direct_CXX
12100
12101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12102# resulting binary.
12103hardcode_minus_L=$hardcode_minus_L_CXX
12104
12105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12106# the resulting binary.
12107hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12108
12109# Set to yes if building a shared library automatically hardcodes DIR into the library
12110# and all subsequent libraries and executables linked against it.
12111hardcode_automatic=$hardcode_automatic_CXX
12112
12113# Variables whose values should be saved in libtool wrapper scripts and
12114# restored at relink time.
12115variables_saved_for_relink="$variables_saved_for_relink"
12116
12117# Whether libtool must link a program against all its dependency libraries.
12118link_all_deplibs=$link_all_deplibs_CXX
12119
12120# Compile-time system search path for libraries
12121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12122
12123# Run-time system search path for libraries
12124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12125
12126# Fix the shell variable \$srcfile for the compiler.
12127fix_srcfile_path="$fix_srcfile_path_CXX"
12128
12129# Set to yes if exported symbols are required.
12130always_export_symbols=$always_export_symbols_CXX
12131
12132# The commands to list exported symbols.
12133export_symbols_cmds=$lt_export_symbols_cmds_CXX
12134
12135# The commands to extract the exported symbol list from a shared archive.
12136extract_expsyms_cmds=$lt_extract_expsyms_cmds
12137
12138# Symbols that should not be listed in the preloaded symbols.
12139exclude_expsyms=$lt_exclude_expsyms_CXX
12140
12141# Symbols that must always be exported.
12142include_expsyms=$lt_include_expsyms_CXX
12143
12144# ### END LIBTOOL TAG CONFIG: $tagname
12145
12146__EOF__
12147
12148
12149else
12150 # If there is no Makefile yet, we rely on a make rule to execute
12151 # `config.status --recheck' to rerun these tests and create the
12152 # libtool script then.
12153 test -f Makefile && make "$ltmain"
12154fi
12155
12156
12157ac_ext=c
12158ac_cpp='$CPP $CPPFLAGS'
12159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161ac_compiler_gnu=$ac_cv_c_compiler_gnu
12162
12163CC=$lt_save_CC
12164LDCXX=$LD
12165LD=$lt_save_LD
12166GCC=$lt_save_GCC
12167with_gnu_ldcxx=$with_gnu_ld
12168with_gnu_ld=$lt_save_with_gnu_ld
12169lt_cv_path_LDCXX=$lt_cv_path_LD
12170lt_cv_path_LD=$lt_save_path_LD
12171lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12172lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12173
12174 else
12175 tagname=""
12176 fi
12177 ;;
12178
12179 F77)
12180 if test -n "$F77" && test "X$F77" != "Xno"; then
12181
12182ac_ext=f
12183ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12184ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12186
12187
12188archive_cmds_need_lc_F77=no
12189allow_undefined_flag_F77=
12190always_export_symbols_F77=no
12191archive_expsym_cmds_F77=
12192export_dynamic_flag_spec_F77=
12193hardcode_direct_F77=no
12194hardcode_libdir_flag_spec_F77=
12195hardcode_libdir_flag_spec_ld_F77=
12196hardcode_libdir_separator_F77=
12197hardcode_minus_L_F77=no
12198hardcode_automatic_F77=no
12199module_cmds_F77=
12200module_expsym_cmds_F77=
12201link_all_deplibs_F77=unknown
12202old_archive_cmds_F77=$old_archive_cmds
12203no_undefined_flag_F77=
12204whole_archive_flag_spec_F77=
12205enable_shared_with_static_runtimes_F77=no
12206
12207# Source file extension for f77 test sources.
12208ac_ext=f
12209
12210# Object file extension for compiled f77 test sources.
12211objext=o
12212objext_F77=$objext
12213
12214# Code to be used in simple compile tests
12215lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12216
12217# Code to be used in simple link tests
12218lt_simple_link_test_code=" program t\n end\n"
12219
12220# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12221
12222# If no C compiler was specified, use CC.
12223LTCC=${LTCC-"$CC"}
12224
12225# Allow CC to be a program name with arguments.
12226compiler=$CC
12227
12228
12229# Allow CC to be a program name with arguments.
12230lt_save_CC="$CC"
12231CC=${F77-"f77"}
12232compiler=$CC
12233compiler_F77=$CC
12234cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12235
12236echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12237echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12238echo "$as_me:$LINENO: result: $can_build_shared" >&5
12239echo "${ECHO_T}$can_build_shared" >&6
12240
12241echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12242echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12243test "$can_build_shared" = "no" && enable_shared=no
12244
12245# On AIX, shared libraries and static libraries use the same namespace, and
12246# are all built from PIC.
12247case "$host_os" in
12248aix3*)
12249 test "$enable_shared" = yes && enable_static=no
12250 if test -n "$RANLIB"; then
12251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12252 postinstall_cmds='$RANLIB $lib'
12253 fi
12254 ;;
12255aix4*)
12256 test "$enable_shared" = yes && enable_static=no
12257 ;;
12258esac
12259echo "$as_me:$LINENO: result: $enable_shared" >&5
12260echo "${ECHO_T}$enable_shared" >&6
12261
12262echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12263echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12264# Make sure either enable_shared or enable_static is yes.
12265test "$enable_shared" = yes || enable_static=yes
12266echo "$as_me:$LINENO: result: $enable_static" >&5
12267echo "${ECHO_T}$enable_static" >&6
12268
12269test "$ld_shlibs_F77" = no && can_build_shared=no
12270
12271GCC_F77="$G77"
12272LD_F77="$LD"
12273
12274lt_prog_compiler_wl_F77=
12275lt_prog_compiler_pic_F77=
12276lt_prog_compiler_static_F77=
12277
12278echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12279echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12280
12281 if test "$GCC" = yes; then
12282 lt_prog_compiler_wl_F77='-Wl,'
12283 lt_prog_compiler_static_F77='-static'
12284
12285 case $host_os in
12286 aix*)
12287 # All AIX code is PIC.
12288 if test "$host_cpu" = ia64; then
12289 # AIX 5 now supports IA64 processor
12290 lt_prog_compiler_static_F77='-Bstatic'
12291 fi
12292 ;;
12293
12294 amigaos*)
12295 # FIXME: we need at least 68020 code to build shared libraries, but
12296 # adding the `-m68020' flag to GCC prevents building anything better,
12297 # like `-m68040'.
12298 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12299 ;;
12300
12301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12302 # PIC is the default for these OSes.
12303 ;;
12304
12305 mingw* | pw32* | os2*)
12306 # This hack is so that the source file can tell whether it is being
12307 # built for inclusion in a dll (and should export symbols for example).
12308 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12309 ;;
12310
12311 darwin* | rhapsody*)
12312 # PIC is the default on this platform
12313 # Common symbols not allowed in MH_DYLIB files
12314 lt_prog_compiler_pic_F77='-fno-common'
12315 ;;
12316
12317 msdosdjgpp*)
12318 # Just because we use GCC doesn't mean we suddenly get shared libraries
12319 # on systems that don't support them.
12320 lt_prog_compiler_can_build_shared_F77=no
12321 enable_shared=no
12322 ;;
12323
12324 sysv4*MP*)
12325 if test -d /usr/nec; then
12326 lt_prog_compiler_pic_F77=-Kconform_pic
12327 fi
12328 ;;
12329
12330 hpux*)
12331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12332 # not for PA HP-UX.
12333 case "$host_cpu" in
12334 hppa*64*|ia64*)
12335 # +Z the default
12336 ;;
12337 *)
12338 lt_prog_compiler_pic_F77='-fPIC'
12339 ;;
12340 esac
12341 ;;
12342
12343 *)
12344 lt_prog_compiler_pic_F77='-fPIC'
12345 ;;
12346 esac
12347 else
12348 # PORTME Check for flag to pass linker flags through the system compiler.
12349 case $host_os in
12350 aix*)
12351 lt_prog_compiler_wl_F77='-Wl,'
12352 if test "$host_cpu" = ia64; then
12353 # AIX 5 now supports IA64 processor
12354 lt_prog_compiler_static_F77='-Bstatic'
12355 else
12356 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12357 fi
12358 ;;
12359
12360 mingw* | pw32* | os2*)
12361 # This hack is so that the source file can tell whether it is being
12362 # built for inclusion in a dll (and should export symbols for example).
12363 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12364 ;;
12365
12366 hpux9* | hpux10* | hpux11*)
12367 lt_prog_compiler_wl_F77='-Wl,'
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case "$host_cpu" in
12371 hppa*64*|ia64*)
12372 # +Z the default
12373 ;;
12374 *)
12375 lt_prog_compiler_pic_F77='+Z'
12376 ;;
12377 esac
12378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12379 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12380 ;;
12381
12382 irix5* | irix6* | nonstopux*)
12383 lt_prog_compiler_wl_F77='-Wl,'
12384 # PIC (with -KPIC) is the default.
12385 lt_prog_compiler_static_F77='-non_shared'
12386 ;;
12387
12388 newsos6)
12389 lt_prog_compiler_pic_F77='-KPIC'
12390 lt_prog_compiler_static_F77='-Bstatic'
12391 ;;
12392
12393 linux*)
12394 case $CC in
12395 icc|ecc)
12396 lt_prog_compiler_wl_F77='-Wl,'
12397 lt_prog_compiler_pic_F77='-KPIC'
12398 lt_prog_compiler_static_F77='-static'
12399 ;;
12400 ccc)
12401 lt_prog_compiler_wl_F77='-Wl,'
12402 # All Alpha code is PIC.
12403 lt_prog_compiler_static_F77='-non_shared'
12404 ;;
12405 esac
12406 ;;
12407
12408 osf3* | osf4* | osf5*)
12409 lt_prog_compiler_wl_F77='-Wl,'
12410 # All OSF/1 code is PIC.
12411 lt_prog_compiler_static_F77='-non_shared'
12412 ;;
12413
12414 sco3.2v5*)
12415 lt_prog_compiler_pic_F77='-Kpic'
12416 lt_prog_compiler_static_F77='-dn'
12417 ;;
12418
12419 solaris*)
12420 lt_prog_compiler_wl_F77='-Wl,'
12421 lt_prog_compiler_pic_F77='-KPIC'
12422 lt_prog_compiler_static_F77='-Bstatic'
12423 ;;
12424
12425 sunos4*)
12426 lt_prog_compiler_wl_F77='-Qoption ld '
12427 lt_prog_compiler_pic_F77='-PIC'
12428 lt_prog_compiler_static_F77='-Bstatic'
12429 ;;
12430
12431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12432 lt_prog_compiler_wl_F77='-Wl,'
12433 lt_prog_compiler_pic_F77='-KPIC'
12434 lt_prog_compiler_static_F77='-Bstatic'
12435 ;;
12436
12437 sysv4*MP*)
12438 if test -d /usr/nec ;then
12439 lt_prog_compiler_pic_F77='-Kconform_pic'
12440 lt_prog_compiler_static_F77='-Bstatic'
12441 fi
12442 ;;
12443
12444 uts4*)
12445 lt_prog_compiler_pic_F77='-pic'
12446 lt_prog_compiler_static_F77='-Bstatic'
12447 ;;
12448
12449 *)
12450 lt_prog_compiler_can_build_shared_F77=no
12451 ;;
12452 esac
12453 fi
12454
12455echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12456echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12457
12458#
12459# Check to make sure the PIC flag actually works.
12460#
12461if test -n "$lt_prog_compiler_pic_F77"; then
12462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12463echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12464if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 lt_prog_compiler_pic_works_F77=no
12468 ac_outfile=conftest.$ac_objext
12469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12470 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12471 # Insert the option either (1) after the last *FLAGS variable, or
12472 # (2) before a word containing "conftest.", or (3) at the end.
12473 # Note that $ac_compile itself does not contain backslashes and begins
12474 # with a dollar sign (not a hyphen), so the echo should work correctly.
12475 # The option is referenced via a variable to avoid confusing sed.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000012480 (eval echo "\"\$as_me:12480: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012481 (eval "$lt_compile" 2>conftest.err)
12482 ac_status=$?
12483 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000012484 echo "$as_me:12484: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012485 if (exit $ac_status) && test -s "$ac_outfile"; then
12486 # The compiler can only warn and ignore the option if not recognized
12487 # So say no if there are warnings
12488 if test ! -s conftest.err; then
12489 lt_prog_compiler_pic_works_F77=yes
12490 fi
12491 fi
12492 $rm conftest*
12493
12494fi
12495echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12496echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12497
12498if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12499 case $lt_prog_compiler_pic_F77 in
12500 "" | " "*) ;;
12501 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12502 esac
12503else
12504 lt_prog_compiler_pic_F77=
12505 lt_prog_compiler_can_build_shared_F77=no
12506fi
12507
12508fi
12509case "$host_os" in
12510 # For platforms which do not support PIC, -DPIC is meaningless:
12511 *djgpp*)
12512 lt_prog_compiler_pic_F77=
12513 ;;
12514 *)
12515 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12516 ;;
12517esac
12518
12519echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12520echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12521if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 lt_cv_prog_compiler_c_o_F77=no
12525 $rm -r conftest 2>/dev/null
12526 mkdir conftest
12527 cd conftest
12528 mkdir out
12529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12530
12531 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12532 # that will create temporary files in the current directory regardless of
12533 # the output directory. Thus, making CWD read-only will cause this test
12534 # to fail, enabling locking or at least warning the user not to do parallel
12535 # builds.
12536 chmod -w .
12537
12538 lt_compiler_flag="-o out/conftest2.$ac_objext"
12539 # Insert the option either (1) after the last *FLAGS variable, or
12540 # (2) before a word containing "conftest.", or (3) at the end.
12541 # Note that $ac_compile itself does not contain backslashes and begins
12542 # with a dollar sign (not a hyphen), so the echo should work correctly.
12543 lt_compile=`echo "$ac_compile" | $SED \
12544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12546 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000012547 (eval echo "\"\$as_me:12547: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012548 (eval "$lt_compile" 2>out/conftest.err)
12549 ac_status=$?
12550 cat out/conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000012551 echo "$as_me:12551: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12553 then
12554 # The compiler can only warn and ignore the option if not recognized
12555 # So say no if there are warnings
12556 if test ! -s out/conftest.err; then
12557 lt_cv_prog_compiler_c_o_F77=yes
12558 fi
12559 fi
12560 chmod u+w .
12561 $rm conftest* out/*
12562 rmdir out
12563 cd ..
12564 rmdir conftest
12565 $rm conftest*
12566
12567fi
12568echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12569echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12570
12571
12572hard_links="nottested"
12573if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12574 # do not overwrite the value of need_locks provided by the user
12575 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12576echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12577 hard_links=yes
12578 $rm conftest*
12579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12580 touch conftest.a
12581 ln conftest.a conftest.b 2>&5 || hard_links=no
12582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12583 echo "$as_me:$LINENO: result: $hard_links" >&5
12584echo "${ECHO_T}$hard_links" >&6
12585 if test "$hard_links" = no; then
12586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12587echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12588 need_locks=warn
12589 fi
12590else
12591 need_locks=no
12592fi
12593
12594echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12596
12597 runpath_var=
12598 allow_undefined_flag_F77=
12599 enable_shared_with_static_runtimes_F77=no
12600 archive_cmds_F77=
12601 archive_expsym_cmds_F77=
12602 old_archive_From_new_cmds_F77=
12603 old_archive_from_expsyms_cmds_F77=
12604 export_dynamic_flag_spec_F77=
12605 whole_archive_flag_spec_F77=
12606 thread_safe_flag_spec_F77=
12607 hardcode_libdir_flag_spec_F77=
12608 hardcode_libdir_flag_spec_ld_F77=
12609 hardcode_libdir_separator_F77=
12610 hardcode_direct_F77=no
12611 hardcode_minus_L_F77=no
12612 hardcode_shlibpath_var_F77=unsupported
12613 link_all_deplibs_F77=unknown
12614 hardcode_automatic_F77=no
12615 module_cmds_F77=
12616 module_expsym_cmds_F77=
12617 always_export_symbols_F77=no
12618 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12619 # include_expsyms should be a list of space-separated symbols to be *always*
12620 # included in the symbol list
12621 include_expsyms_F77=
12622 # exclude_expsyms can be an extended regexp of symbols to exclude
12623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12625 # as well as any symbol that contains `d'.
12626 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12628 # platforms (ab)use it in PIC code, but their linkers get confused if
12629 # the symbol is explicitly referenced. Since portable code cannot
12630 # rely on this symbol name, it's probably fine to never include it in
12631 # preloaded symbol tables.
12632 extract_expsyms_cmds=
12633
12634 case $host_os in
12635 cygwin* | mingw* | pw32*)
12636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12637 # When not using gcc, we currently assume that we are using
12638 # Microsoft Visual C++.
12639 if test "$GCC" != yes; then
12640 with_gnu_ld=no
12641 fi
12642 ;;
12643 openbsd*)
12644 with_gnu_ld=no
12645 ;;
12646 esac
12647
12648 ld_shlibs_F77=yes
12649 if test "$with_gnu_ld" = yes; then
12650 # If archive_cmds runs LD, not CC, wlarc should be empty
12651 wlarc='${wl}'
12652
12653 # See if GNU ld supports shared libraries.
12654 case $host_os in
12655 aix3* | aix4* | aix5*)
12656 # On AIX/PPC, the GNU linker is very broken
12657 if test "$host_cpu" != ia64; then
12658 ld_shlibs_F77=no
12659 cat <<EOF 1>&2
12660
12661*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12662*** to be unable to reliably create shared libraries on AIX.
12663*** Therefore, libtool is disabling shared libraries support. If you
12664*** really care for shared libraries, you may want to modify your PATH
12665*** so that a non-GNU linker is found, and then restart.
12666
12667EOF
12668 fi
12669 ;;
12670
12671 amigaos*)
12672 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)'
12673 hardcode_libdir_flag_spec_F77='-L$libdir'
12674 hardcode_minus_L_F77=yes
12675
12676 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12677 # that the semantics of dynamic libraries on AmigaOS, at least up
12678 # to version 4, is to share data among multiple programs linked
12679 # with the same dynamic library. Since this doesn't match the
12680 # behavior of shared libraries on other platforms, we can't use
12681 # them.
12682 ld_shlibs_F77=no
12683 ;;
12684
12685 beos*)
12686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12687 allow_undefined_flag_F77=unsupported
12688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12689 # support --undefined. This deserves some investigation. FIXME
12690 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 else
12692 ld_shlibs_F77=no
12693 fi
12694 ;;
12695
12696 cygwin* | mingw* | pw32*)
12697 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12698 # as there is no search path for DLLs.
12699 hardcode_libdir_flag_spec_F77='-L$libdir'
12700 allow_undefined_flag_F77=unsupported
12701 always_export_symbols_F77=no
12702 enable_shared_with_static_runtimes_F77=yes
12703 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12704
12705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12706 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12707 # If the export-symbols file already is a .def file (1st line
12708 # is EXPORTS), use it as is; otherwise, prepend...
12709 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12710 cp $export_symbols $output_objdir/$soname.def;
12711 else
12712 echo EXPORTS > $output_objdir/$soname.def;
12713 cat $export_symbols >> $output_objdir/$soname.def;
12714 fi~
12715 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12716 else
12717 ld_shlibs=no
12718 fi
12719 ;;
12720
12721 netbsd*)
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12724 wlarc=
12725 else
12726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12728 fi
12729 ;;
12730
12731 solaris* | sysv5*)
12732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12733 ld_shlibs_F77=no
12734 cat <<EOF 1>&2
12735
12736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12737*** create shared libraries on Solaris systems. Therefore, libtool
12738*** is disabling shared libraries support. We urge you to upgrade GNU
12739*** binutils to release 2.9.1 or newer. Another option is to modify
12740*** your PATH or compiler configuration so that the native linker is
12741*** used, and then restart.
12742
12743EOF
12744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12747 else
12748 ld_shlibs_F77=no
12749 fi
12750 ;;
12751
12752 sunos4*)
12753 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12754 wlarc=
12755 hardcode_direct_F77=yes
12756 hardcode_shlibpath_var_F77=no
12757 ;;
12758
12759 *)
12760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12763 else
12764 ld_shlibs_F77=no
12765 fi
12766 ;;
12767 esac
12768
12769 if test "$ld_shlibs_F77" = yes; then
12770 runpath_var=LD_RUN_PATH
12771 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12773 # ancient GNU ld didn't support --whole-archive et. al.
12774 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12775 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12776 else
12777 whole_archive_flag_spec_F77=
12778 fi
12779 fi
12780 else
12781 # PORTME fill in a description of your system's linker (not GNU ld)
12782 case $host_os in
12783 aix3*)
12784 allow_undefined_flag_F77=unsupported
12785 always_export_symbols_F77=yes
12786 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'
12787 # Note: this linker hardcodes the directories in LIBPATH if there
12788 # are no directories specified by -L.
12789 hardcode_minus_L_F77=yes
12790 if test "$GCC" = yes && test -z "$link_static_flag"; then
12791 # Neither direct hardcoding nor static linking is supported with a
12792 # broken collect2.
12793 hardcode_direct_F77=unsupported
12794 fi
12795 ;;
12796
12797 aix4* | aix5*)
12798 if test "$host_cpu" = ia64; then
12799 # On IA64, the linker does run time linking by default, so we don't
12800 # have to do anything special.
12801 aix_use_runtimelinking=no
12802 exp_sym_flag='-Bexport'
12803 no_entry_flag=""
12804 else
12805 # If we're using GNU nm, then we don't want the "-C" option.
12806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12808 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'
12809 else
12810 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'
12811 fi
12812 aix_use_runtimelinking=no
12813
12814 # Test if we are trying to use run time linking or normal
12815 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12816 # need to do runtime linking.
12817 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12818 for ld_flag in $LDFLAGS; do
12819 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12820 aix_use_runtimelinking=yes
12821 break
12822 fi
12823 done
12824 esac
12825
12826 exp_sym_flag='-bexport'
12827 no_entry_flag='-bnoentry'
12828 fi
12829
12830 # When large executables or shared objects are built, AIX ld can
12831 # have problems creating the table of contents. If linking a library
12832 # or program results in "error TOC overflow" add -mminimal-toc to
12833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12835
12836 archive_cmds_F77=''
12837 hardcode_direct_F77=yes
12838 hardcode_libdir_separator_F77=':'
12839 link_all_deplibs_F77=yes
12840
12841 if test "$GCC" = yes; then
12842 case $host_os in aix4.012|aix4.012.*)
12843 # We only want to do this on AIX 4.2 and lower, the check
12844 # below for broken collect2 doesn't work under 4.3+
12845 collect2name=`${CC} -print-prog-name=collect2`
12846 if test -f "$collect2name" && \
12847 strings "$collect2name" | grep resolve_lib_name >/dev/null
12848 then
12849 # We have reworked collect2
12850 hardcode_direct_F77=yes
12851 else
12852 # We have old collect2
12853 hardcode_direct_F77=unsupported
12854 # It fails to find uninstalled libraries when the uninstalled
12855 # path is not listed in the libpath. Setting hardcode_minus_L
12856 # to unsupported forces relinking
12857 hardcode_minus_L_F77=yes
12858 hardcode_libdir_flag_spec_F77='-L$libdir'
12859 hardcode_libdir_separator_F77=
12860 fi
12861 esac
12862 shared_flag='-shared'
12863 else
12864 # not using gcc
12865 if test "$host_cpu" = ia64; then
12866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12867 # chokes on -Wl,-G. The following line is correct:
12868 shared_flag='-G'
12869 else
12870 if test "$aix_use_runtimelinking" = yes; then
12871 shared_flag='${wl}-G'
12872 else
12873 shared_flag='${wl}-bM:SRE'
12874 fi
12875 fi
12876 fi
12877
12878 # It seems that -bexpall does not export symbols beginning with
12879 # underscore (_), so it is better to generate a list of symbols to export.
12880 always_export_symbols_F77=yes
12881 if test "$aix_use_runtimelinking" = yes; then
12882 # Warning - without using the other runtime loading flags (-brtl),
12883 # -berok will link without error, but may produce a broken library.
12884 allow_undefined_flag_F77='-berok'
12885 # Determine the default libpath from the value encoded in an empty executable.
12886 cat >conftest.$ac_ext <<_ACEOF
12887 program main
12888
12889 end
12890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
12892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893 (eval $ac_link) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903
12904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12905}'`
12906# Check for a 64-bit object if we didn't find anything.
12907if 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; }
12908}'`; fi
12909else
12910 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012911sed 's/^/| /' conftest.$ac_ext >&5
12912
John Criswell47fdd832003-07-14 16:52:07 +000012913fi
12914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12916
12917 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12918 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"
12919 else
12920 if test "$host_cpu" = ia64; then
12921 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12922 allow_undefined_flag_F77="-z nodefs"
12923 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"
12924 else
12925 # Determine the default libpath from the value encoded in an empty executable.
12926 cat >conftest.$ac_ext <<_ACEOF
12927 program main
12928
12929 end
12930_ACEOF
12931rm -f conftest.$ac_objext conftest$ac_exeext
12932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943
12944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12945}'`
12946# Check for a 64-bit object if we didn't find anything.
12947if 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; }
12948}'`; fi
12949else
12950 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012951sed 's/^/| /' conftest.$ac_ext >&5
12952
John Criswell47fdd832003-07-14 16:52:07 +000012953fi
12954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12956
12957 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12958 # Warning - without using the other run time loading flags,
12959 # -berok will link without error, but may produce a broken library.
12960 no_undefined_flag_F77=' ${wl}-bernotok'
12961 allow_undefined_flag_F77=' ${wl}-berok'
12962 # -bexpall does not export symbols beginning with underscore (_)
12963 always_export_symbols_F77=yes
12964 # Exported symbols can be pulled into shared objects from archives
12965 whole_archive_flag_spec_F77=' '
12966 archive_cmds_need_lc_F77=yes
12967 # This is similar to how AIX traditionally builds it's shared libraries.
12968 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'
12969 fi
12970 fi
12971 ;;
12972
12973 amigaos*)
12974 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)'
12975 hardcode_libdir_flag_spec_F77='-L$libdir'
12976 hardcode_minus_L_F77=yes
12977 # see comment about different semantics on the GNU ld section
12978 ld_shlibs_F77=no
12979 ;;
12980
12981 bsdi4*)
12982 export_dynamic_flag_spec_F77=-rdynamic
12983 ;;
12984
12985 cygwin* | mingw* | pw32*)
12986 # When not using gcc, we currently assume that we are using
12987 # Microsoft Visual C++.
12988 # hardcode_libdir_flag_spec is actually meaningless, as there is
12989 # no search path for DLLs.
12990 hardcode_libdir_flag_spec_F77=' '
12991 allow_undefined_flag_F77=unsupported
12992 # Tell ltmain to make .lib files, not .a files.
12993 libext=lib
12994 # Tell ltmain to make .dll files, not .so files.
12995 shrext=".dll"
12996 # FIXME: Setting linknames here is a bad hack.
12997 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12998 # The linker will automatically build a .lib file if we build a DLL.
12999 old_archive_From_new_cmds_F77='true'
13000 # FIXME: Should let the user specify the lib program.
13001 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13002 fix_srcfile_path='`cygpath -w "$srcfile"`'
13003 enable_shared_with_static_runtimes_F77=yes
13004 ;;
13005
13006 darwin* | rhapsody*)
13007 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13008 archive_cmds_need_lc_F77=no
13009 case "$host_os" in
13010 rhapsody* | darwin1.[012])
13011 allow_undefined_flag_F77='-undefined suppress'
13012 ;;
13013 *) # Darwin 1.3 on
13014 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13015 ;;
13016 esac
13017 # FIXME: Relying on posixy $() will cause problems for
13018 # cross-compilation, but unfortunately the echo tests do not
13019 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13020 # `"' quotes if we put them in here... so don't!
13021 lt_int_apple_cc_single_mod=no
13022 output_verbose_link_cmd='echo'
13023 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13024 lt_int_apple_cc_single_mod=yes
13025 fi
13026 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13027 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13028 else
13029 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13030 fi
13031 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13033 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13034 archive_expsym_cmds_F77='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}'
13035 else
13036 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13037 fi
13038 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13039 hardcode_direct_F77=no
13040 hardcode_automatic_F77=yes
13041 hardcode_shlibpath_var_F77=unsupported
13042 whole_archive_flag_spec_F77='-all_load $convenience'
13043 link_all_deplibs_F77=yes
13044 fi
13045 ;;
13046
13047 dgux*)
13048 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_libdir_flag_spec_F77='-L$libdir'
13050 hardcode_shlibpath_var_F77=no
13051 ;;
13052
13053 freebsd1*)
13054 ld_shlibs_F77=no
13055 ;;
13056
13057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13058 # support. Future versions do this automatically, but an explicit c++rt0.o
13059 # does not break anything, and helps significantly (at the cost of a little
13060 # extra space).
13061 freebsd2.2*)
13062 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13063 hardcode_libdir_flag_spec_F77='-R$libdir'
13064 hardcode_direct_F77=yes
13065 hardcode_shlibpath_var_F77=no
13066 ;;
13067
13068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13069 freebsd2*)
13070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13071 hardcode_direct_F77=yes
13072 hardcode_minus_L_F77=yes
13073 hardcode_shlibpath_var_F77=no
13074 ;;
13075
13076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13077 freebsd*)
13078 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13079 hardcode_libdir_flag_spec_F77='-R$libdir'
13080 hardcode_direct_F77=yes
13081 hardcode_shlibpath_var_F77=no
13082 ;;
13083
13084 hpux9*)
13085 if test "$GCC" = yes; then
13086 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'
13087 else
13088 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'
13089 fi
13090 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13091 hardcode_libdir_separator_F77=:
13092 hardcode_direct_F77=yes
13093
13094 # hardcode_minus_L: Not really in the search PATH,
13095 # but as the default location of the library.
13096 hardcode_minus_L_F77=yes
13097 export_dynamic_flag_spec_F77='${wl}-E'
13098 ;;
13099
13100 hpux10* | hpux11*)
13101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13102 case "$host_cpu" in
13103 hppa*64*|ia64*)
13104 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 ;;
13106 *)
13107 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13108 ;;
13109 esac
13110 else
13111 case "$host_cpu" in
13112 hppa*64*|ia64*)
13113 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13114 ;;
13115 *)
13116 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13117 ;;
13118 esac
13119 fi
13120 if test "$with_gnu_ld" = no; then
13121 case "$host_cpu" in
13122 hppa*64*)
13123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13124 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13125 hardcode_libdir_separator_F77=:
13126 hardcode_direct_F77=no
13127 hardcode_shlibpath_var_F77=no
13128 ;;
13129 ia64*)
13130 hardcode_libdir_flag_spec_F77='-L$libdir'
13131 hardcode_direct_F77=no
13132 hardcode_shlibpath_var_F77=no
13133
13134 # hardcode_minus_L: Not really in the search PATH,
13135 # but as the default location of the library.
13136 hardcode_minus_L_F77=yes
13137 ;;
13138 *)
13139 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13140 hardcode_libdir_separator_F77=:
13141 hardcode_direct_F77=yes
13142 export_dynamic_flag_spec_F77='${wl}-E'
13143
13144 # hardcode_minus_L: Not really in the search PATH,
13145 # but as the default location of the library.
13146 hardcode_minus_L_F77=yes
13147 ;;
13148 esac
13149 fi
13150 ;;
13151
13152 irix5* | irix6* | nonstopux*)
13153 if test "$GCC" = yes; then
13154 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'
13155 else
13156 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'
13157 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13158 fi
13159 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13160 hardcode_libdir_separator_F77=:
13161 link_all_deplibs_F77=yes
13162 ;;
13163
13164 netbsd*)
13165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13167 else
13168 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13169 fi
13170 hardcode_libdir_flag_spec_F77='-R$libdir'
13171 hardcode_direct_F77=yes
13172 hardcode_shlibpath_var_F77=no
13173 ;;
13174
13175 newsos6)
13176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_direct_F77=yes
13178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13179 hardcode_libdir_separator_F77=:
13180 hardcode_shlibpath_var_F77=no
13181 ;;
13182
13183 openbsd*)
13184 hardcode_direct_F77=yes
13185 hardcode_shlibpath_var_F77=no
13186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13187 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13188 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13189 export_dynamic_flag_spec_F77='${wl}-E'
13190 else
13191 case $host_os in
13192 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13193 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13194 hardcode_libdir_flag_spec_F77='-R$libdir'
13195 ;;
13196 *)
13197 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13198 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13199 ;;
13200 esac
13201 fi
13202 ;;
13203
13204 os2*)
13205 hardcode_libdir_flag_spec_F77='-L$libdir'
13206 hardcode_minus_L_F77=yes
13207 allow_undefined_flag_F77=unsupported
13208 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'
13209 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13210 ;;
13211
13212 osf3*)
13213 if test "$GCC" = yes; then
13214 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13215 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'
13216 else
13217 allow_undefined_flag_F77=' -expect_unresolved \*'
13218 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'
13219 fi
13220 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13221 hardcode_libdir_separator_F77=:
13222 ;;
13223
13224 osf4* | osf5*) # as osf3* with the addition of -msym flag
13225 if test "$GCC" = yes; then
13226 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13227 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'
13228 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13229 else
13230 allow_undefined_flag_F77=' -expect_unresolved \*'
13231 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'
13232 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~
13233 $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'
13234
13235 # Both c and cxx compiler support -rpath directly
13236 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13237 fi
13238 hardcode_libdir_separator_F77=:
13239 ;;
13240
13241 sco3.2v5*)
13242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13243 hardcode_shlibpath_var_F77=no
13244 export_dynamic_flag_spec_F77='${wl}-Bexport'
13245 runpath_var=LD_RUN_PATH
13246 hardcode_runpath_var=yes
13247 ;;
13248
13249 solaris*)
13250 no_undefined_flag_F77=' -z text'
13251 if test "$GCC" = yes; then
13252 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13254 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13255 else
13256 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13257 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13259 fi
13260 hardcode_libdir_flag_spec_F77='-R$libdir'
13261 hardcode_shlibpath_var_F77=no
13262 case $host_os in
13263 solaris2.[0-5] | solaris2.[0-5].*) ;;
13264 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13265 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13266 esac
13267 link_all_deplibs_F77=yes
13268 ;;
13269
13270 sunos4*)
13271 if test "x$host_vendor" = xsequent; then
13272 # Use $CC to link under sequent, because it throws in some extra .o
13273 # files that make .init and .fini sections work.
13274 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13275 else
13276 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13277 fi
13278 hardcode_libdir_flag_spec_F77='-L$libdir'
13279 hardcode_direct_F77=yes
13280 hardcode_minus_L_F77=yes
13281 hardcode_shlibpath_var_F77=no
13282 ;;
13283
13284 sysv4)
13285 case $host_vendor in
13286 sni)
13287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 hardcode_direct_F77=yes # is this really true???
13289 ;;
13290 siemens)
13291 ## LD is ld it makes a PLAMLIB
13292 ## CC just makes a GrossModule.
13293 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13294 reload_cmds_F77='$CC -r -o $output$reload_objs'
13295 hardcode_direct_F77=no
13296 ;;
13297 motorola)
13298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13300 ;;
13301 esac
13302 runpath_var='LD_RUN_PATH'
13303 hardcode_shlibpath_var_F77=no
13304 ;;
13305
13306 sysv4.3*)
13307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 hardcode_shlibpath_var_F77=no
13309 export_dynamic_flag_spec_F77='-Bexport'
13310 ;;
13311
13312 sysv4*MP*)
13313 if test -d /usr/nec; then
13314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13315 hardcode_shlibpath_var_F77=no
13316 runpath_var=LD_RUN_PATH
13317 hardcode_runpath_var=yes
13318 ld_shlibs_F77=yes
13319 fi
13320 ;;
13321
13322 sysv4.2uw2*)
13323 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13324 hardcode_direct_F77=yes
13325 hardcode_minus_L_F77=no
13326 hardcode_shlibpath_var_F77=no
13327 hardcode_runpath_var=yes
13328 runpath_var=LD_RUN_PATH
13329 ;;
13330
13331 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13332 no_undefined_flag_F77='${wl}-z ${wl}text'
13333 if test "$GCC" = yes; then
13334 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 else
13336 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 fi
13338 runpath_var='LD_RUN_PATH'
13339 hardcode_shlibpath_var_F77=no
13340 ;;
13341
13342 sysv5*)
13343 no_undefined_flag_F77=' -z text'
13344 # $CC -shared without GNU ld will not create a library from C++
13345 # object files and a static libstdc++, better avoid it by now
13346 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13347 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13349 hardcode_libdir_flag_spec_F77=
13350 hardcode_shlibpath_var_F77=no
13351 runpath_var='LD_RUN_PATH'
13352 ;;
13353
13354 uts4*)
13355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 hardcode_libdir_flag_spec_F77='-L$libdir'
13357 hardcode_shlibpath_var_F77=no
13358 ;;
13359
13360 *)
13361 ld_shlibs_F77=no
13362 ;;
13363 esac
13364 fi
13365
13366echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13367echo "${ECHO_T}$ld_shlibs_F77" >&6
13368test "$ld_shlibs_F77" = no && can_build_shared=no
13369
13370variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371if test "$GCC" = yes; then
13372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13373fi
13374
13375#
13376# Do we need to explicitly link libc?
13377#
13378case "x$archive_cmds_need_lc_F77" in
13379x|xyes)
13380 # Assume -lc should be added
13381 archive_cmds_need_lc_F77=yes
13382
13383 if test "$enable_shared" = yes && test "$GCC" = yes; then
13384 case $archive_cmds_F77 in
13385 *'~'*)
13386 # FIXME: we may have to deal with multi-command sequences.
13387 ;;
13388 '$CC '*)
13389 # Test whether the compiler implicitly links with -lc since on some
13390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13391 # to ld, don't add -lc before -lgcc.
13392 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13393echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13394 $rm conftest*
13395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13396
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } 2>conftest.err; then
13402 soname=conftest
13403 lib=conftest
13404 libobjs=conftest.$ac_objext
13405 deplibs=
13406 wl=$lt_prog_compiler_wl_F77
13407 compiler_flags=-v
13408 linker_flags=-v
13409 verstring=
13410 output_objdir=.
13411 libname=conftest
13412 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13413 allow_undefined_flag_F77=
13414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13415 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }
13419 then
13420 archive_cmds_need_lc_F77=no
13421 else
13422 archive_cmds_need_lc_F77=yes
13423 fi
13424 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13425 else
13426 cat conftest.err 1>&5
13427 fi
13428 $rm conftest*
13429 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13430echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13431 ;;
13432 esac
13433 fi
13434 ;;
13435esac
13436
13437echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13438echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13439hardcode_action_F77=
13440if test -n "$hardcode_libdir_flag_spec_F77" || \
13441 test -n "$runpath_var F77" || \
13442 test "X$hardcode_automatic_F77"="Xyes" ; then
13443
13444 # We can hardcode non-existant directories.
13445 if test "$hardcode_direct_F77" != no &&
13446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13447 # have to relink, otherwise we might link with an installed library
13448 # when we should be linking with a yet-to-be-installed one
13449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13450 test "$hardcode_minus_L_F77" != no; then
13451 # Linking always hardcodes the temporary library directory.
13452 hardcode_action_F77=relink
13453 else
13454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13455 hardcode_action_F77=immediate
13456 fi
13457else
13458 # We cannot hardcode anything, or else we can only hardcode existing
13459 # directories.
13460 hardcode_action_F77=unsupported
13461fi
13462echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13463echo "${ECHO_T}$hardcode_action_F77" >&6
13464
13465if test "$hardcode_action_F77" = relink; then
13466 # Fast installation is not supported
13467 enable_fast_install=no
13468elif test "$shlibpath_overrides_runpath" = yes ||
13469 test "$enable_shared" = no; then
13470 # Fast installation is not necessary
13471 enable_fast_install=needless
13472fi
13473
13474striplib=
13475old_striplib=
13476echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13477echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13478if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13481 echo "$as_me:$LINENO: result: yes" >&5
13482echo "${ECHO_T}yes" >&6
13483else
13484# FIXME - insert some real tests, host_os isn't really good enough
13485 case $host_os in
13486 darwin*)
13487 if test -n "$STRIP" ; then
13488 striplib="$STRIP -x"
13489 echo "$as_me:$LINENO: result: yes" >&5
13490echo "${ECHO_T}yes" >&6
13491 else
13492 echo "$as_me:$LINENO: result: no" >&5
13493echo "${ECHO_T}no" >&6
13494fi
13495 ;;
13496 *)
13497 echo "$as_me:$LINENO: result: no" >&5
13498echo "${ECHO_T}no" >&6
13499 ;;
13500 esac
13501fi
13502
13503echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13504echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13505library_names_spec=
13506libname_spec='lib$name'
13507soname_spec=
13508shrext=".so"
13509postinstall_cmds=
13510postuninstall_cmds=
13511finish_cmds=
13512finish_eval=
13513shlibpath_var=
13514shlibpath_overrides_runpath=unknown
13515version_type=none
13516dynamic_linker="$host_os ld.so"
13517sys_lib_dlsearch_path_spec="/lib /usr/lib"
13518if test "$GCC" = yes; then
13519 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13520 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13521 # if the path contains ";" then we assume it to be the separator
13522 # otherwise default to the standard path separator (i.e. ":") - it is
13523 # assumed that no part of a normal pathname contains ";" but that should
13524 # okay in the real world where ";" in dirpaths is itself problematic.
13525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13526 else
13527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13528 fi
13529else
13530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13531fi
13532need_lib_prefix=unknown
13533hardcode_into_libs=no
13534
13535# when you set need_version to no, make sure it does not cause -set_version
13536# flags to be left without arguments
13537need_version=unknown
13538
13539case $host_os in
13540aix3*)
13541 version_type=linux
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13543 shlibpath_var=LIBPATH
13544
13545 # AIX 3 has no versioning support, so we append a major version to the name.
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 ;;
13548
13549aix4* | aix5*)
13550 version_type=linux
13551 need_lib_prefix=no
13552 need_version=no
13553 hardcode_into_libs=yes
13554 if test "$host_cpu" = ia64; then
13555 # AIX 5 supports IA64
13556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 else
13559 # With GCC up to 2.95.x, collect2 would create an import file
13560 # for dependence libraries. The import file would start with
13561 # the line `#! .'. This would cause the generated library to
13562 # depend on `.', always an invalid library. This was fixed in
13563 # development snapshots of GCC prior to 3.0.
13564 case $host_os in
13565 aix4 | aix4.[01] | aix4.[01].*)
13566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13567 echo ' yes '
13568 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13569 :
13570 else
13571 can_build_shared=no
13572 fi
13573 ;;
13574 esac
13575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13576 # soname into executable. Probably we can add versioning support to
13577 # collect2, so additional links can be useful in future.
13578 if test "$aix_use_runtimelinking" = yes; then
13579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13580 # instead of lib<name>.a to let people know that these are not
13581 # typical AIX shared libraries.
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 else
13584 # We preserve .a as extension for shared libraries through AIX4.2
13585 # and later when we are not doing run time linking.
13586 library_names_spec='${libname}${release}.a $libname.a'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 fi
13589 shlibpath_var=LIBPATH
13590 fi
13591 ;;
13592
13593amigaos*)
13594 library_names_spec='$libname.ixlibrary $libname.a'
13595 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13596 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'
13597 ;;
13598
13599beos*)
13600 library_names_spec='${libname}${shared_ext}'
13601 dynamic_linker="$host_os ld.so"
13602 shlibpath_var=LIBRARY_PATH
13603 ;;
13604
13605bsdi4*)
13606 version_type=linux
13607 need_version=no
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609 soname_spec='${libname}${release}${shared_ext}$major'
13610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13611 shlibpath_var=LD_LIBRARY_PATH
13612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13614 # the default ld.so.conf also contains /usr/contrib/lib and
13615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13616 # libtool to hard-code these into programs
13617 ;;
13618
13619cygwin* | mingw* | pw32*)
13620 version_type=windows
13621 shrext=".dll"
13622 need_version=no
13623 need_lib_prefix=no
13624
13625 case $GCC,$host_os in
13626 yes,cygwin* | yes,mingw* | yes,pw32*)
13627 library_names_spec='$libname.dll.a'
13628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13629 postinstall_cmds='base_file=`basename \${file}`~
13630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13631 dldir=$destdir/`dirname \$dlpath`~
13632 test -d \$dldir || mkdir -p \$dldir~
13633 $install_prog $dir/$dlname \$dldir/$dlname'
13634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13635 dlpath=$dir/\$dldll~
13636 $rm \$dlpath'
13637 shlibpath_overrides_runpath=yes
13638
13639 case $host_os in
13640 cygwin*)
13641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13643 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13644 ;;
13645 mingw*)
13646 # MinGW DLLs use traditional 'lib' prefix
13647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13649 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13650 # It is most probably a Windows format PATH printed by
13651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13652 # path with ; separators, and with drive letters. We can handle the
13653 # drive letters (cygwin fileutils understands them), so leave them,
13654 # especially as we might pass files found there to a mingw objdump,
13655 # which wouldn't understand a cygwinified path. Ahh.
13656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13657 else
13658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13659 fi
13660 ;;
13661 pw32*)
13662 # pw32 DLLs use 'pw' prefix rather than 'lib'
13663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13664 ;;
13665 esac
13666 ;;
13667
13668 *)
13669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13670 ;;
13671 esac
13672 dynamic_linker='Win32 ld.exe'
13673 # FIXME: first we should search . and the directory the executable is in
13674 shlibpath_var=PATH
13675 ;;
13676
13677darwin* | rhapsody*)
13678 dynamic_linker="$host_os dyld"
13679 version_type=darwin
13680 need_lib_prefix=no
13681 need_version=no
13682 # FIXME: Relying on posixy $() will cause problems for
13683 # cross-compilation, but unfortunately the echo tests do not
13684 # yet detect zsh echo's removal of \ escapes.
13685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13686 soname_spec='${libname}${release}${major}$shared_ext'
13687 shlibpath_overrides_runpath=yes
13688 shlibpath_var=DYLD_LIBRARY_PATH
13689 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13691 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13692 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"`
13693 fi
13694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13695 ;;
13696
13697dgux*)
13698 version_type=linux
13699 need_lib_prefix=no
13700 need_version=no
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 ;;
13705
13706freebsd1*)
13707 dynamic_linker=no
13708 ;;
13709
13710freebsd*)
13711 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13712 version_type=freebsd-$objformat
13713 case $version_type in
13714 freebsd-elf*)
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13716 need_version=no
13717 need_lib_prefix=no
13718 ;;
13719 freebsd-*)
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13721 need_version=yes
13722 ;;
13723 esac
13724 shlibpath_var=LD_LIBRARY_PATH
13725 case $host_os in
13726 freebsd2*)
13727 shlibpath_overrides_runpath=yes
13728 ;;
13729 freebsd3.01* | freebsdelf3.01*)
13730 shlibpath_overrides_runpath=yes
13731 hardcode_into_libs=yes
13732 ;;
13733 *) # from 3.2 on
13734 shlibpath_overrides_runpath=no
13735 hardcode_into_libs=yes
13736 ;;
13737 esac
13738 ;;
13739
13740gnu*)
13741 version_type=linux
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 hardcode_into_libs=yes
13748 ;;
13749
13750hpux9* | hpux10* | hpux11*)
13751 # Give a soname corresponding to the major version so that dld.sl refuses to
13752 # link against other versions.
13753 version_type=sunos
13754 need_lib_prefix=no
13755 need_version=no
13756 case "$host_cpu" in
13757 ia64*)
13758 shrext='.so'
13759 hardcode_into_libs=yes
13760 dynamic_linker="$host_os dld.so"
13761 shlibpath_var=LD_LIBRARY_PATH
13762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 if test "X$HPUX_IA64_MODE" = X32; then
13766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13767 else
13768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13769 fi
13770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13771 ;;
13772 hppa*64*)
13773 shrext='.sl'
13774 hardcode_into_libs=yes
13775 dynamic_linker="$host_os dld.sl"
13776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13782 ;;
13783 *)
13784 shrext='.sl'
13785 dynamic_linker="$host_os dld.sl"
13786 shlibpath_var=SHLIB_PATH
13787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 ;;
13791 esac
13792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13793 postinstall_cmds='chmod 555 $lib'
13794 ;;
13795
13796irix5* | irix6* | nonstopux*)
13797 case $host_os in
13798 nonstopux*) version_type=nonstopux ;;
13799 *)
13800 if test "$lt_cv_prog_gnu_ld" = yes; then
13801 version_type=linux
13802 else
13803 version_type=irix
13804 fi ;;
13805 esac
13806 need_lib_prefix=no
13807 need_version=no
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13810 case $host_os in
13811 irix5* | nonstopux*)
13812 libsuff= shlibsuff=
13813 ;;
13814 *)
13815 case $LD in # libtool.m4 will add one of these switches to LD
13816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13817 libsuff= shlibsuff= libmagic=32-bit;;
13818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13819 libsuff=32 shlibsuff=N32 libmagic=N32;;
13820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13822 *) libsuff= shlibsuff= libmagic=never-match;;
13823 esac
13824 ;;
13825 esac
13826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13827 shlibpath_overrides_runpath=no
13828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13830 hardcode_into_libs=yes
13831 ;;
13832
13833# No shared lib support for Linux oldld, aout, or coff.
13834linux*oldld* | linux*aout* | linux*coff*)
13835 dynamic_linker=no
13836 ;;
13837
13838# This must be Linux ELF.
13839linux*)
13840 version_type=linux
13841 need_lib_prefix=no
13842 need_version=no
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844 soname_spec='${libname}${release}${shared_ext}$major'
13845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 shlibpath_overrides_runpath=no
13848 # This implies no fast_install, which is unacceptable.
13849 # Some rework will be needed to allow for fast_install
13850 # before this can be enabled.
13851 hardcode_into_libs=yes
13852
13853 # We used to test for /lib/ld.so.1 and disable shared libraries on
13854 # powerpc, because MkLinux only supported shared libraries with the
13855 # GNU dynamic linker. Since this was broken with cross compilers,
13856 # most powerpc-linux boxes support dynamic linking these days and
13857 # people can always --disable-shared, the test was removed, and we
13858 # assume the GNU/Linux dynamic linker is in use.
13859 dynamic_linker='GNU/Linux ld.so'
13860 ;;
13861
13862netbsd*)
13863 version_type=sunos
13864 need_lib_prefix=no
13865 need_version=no
13866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13869 dynamic_linker='NetBSD (a.out) ld.so'
13870 else
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 dynamic_linker='NetBSD ld.elf_so'
13874 fi
13875 shlibpath_var=LD_LIBRARY_PATH
13876 shlibpath_overrides_runpath=yes
13877 hardcode_into_libs=yes
13878 ;;
13879
13880newsos6)
13881 version_type=linux
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=yes
13885 ;;
13886
13887nto-qnx)
13888 version_type=linux
13889 need_lib_prefix=no
13890 need_version=no
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 shlibpath_overrides_runpath=yes
13895 ;;
13896
13897openbsd*)
13898 version_type=sunos
13899 need_lib_prefix=no
13900 need_version=no
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13905 case $host_os in
13906 openbsd2.[89] | openbsd2.[89].*)
13907 shlibpath_overrides_runpath=no
13908 ;;
13909 *)
13910 shlibpath_overrides_runpath=yes
13911 ;;
13912 esac
13913 else
13914 shlibpath_overrides_runpath=yes
13915 fi
13916 ;;
13917
13918os2*)
13919 libname_spec='$name'
13920 shrext=".dll"
13921 need_lib_prefix=no
13922 library_names_spec='$libname${shared_ext} $libname.a'
13923 dynamic_linker='OS/2 ld.exe'
13924 shlibpath_var=LIBPATH
13925 ;;
13926
13927osf3* | osf4* | osf5*)
13928 version_type=osf
13929 need_lib_prefix=no
13930 need_version=no
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13936 ;;
13937
13938sco3.2v5*)
13939 version_type=osf
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 ;;
13944
13945solaris*)
13946 version_type=linux
13947 need_lib_prefix=no
13948 need_version=no
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=yes
13953 hardcode_into_libs=yes
13954 # ldd complains unless libraries are executable
13955 postinstall_cmds='chmod +x $lib'
13956 ;;
13957
13958sunos4*)
13959 version_type=sunos
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes
13964 if test "$with_gnu_ld" = yes; then
13965 need_lib_prefix=no
13966 fi
13967 need_version=yes
13968 ;;
13969
13970sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13971 version_type=linux
13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973 soname_spec='${libname}${release}${shared_ext}$major'
13974 shlibpath_var=LD_LIBRARY_PATH
13975 case $host_vendor in
13976 sni)
13977 shlibpath_overrides_runpath=no
13978 need_lib_prefix=no
13979 export_dynamic_flag_spec='${wl}-Blargedynsym'
13980 runpath_var=LD_RUN_PATH
13981 ;;
13982 siemens)
13983 need_lib_prefix=no
13984 ;;
13985 motorola)
13986 need_lib_prefix=no
13987 need_version=no
13988 shlibpath_overrides_runpath=no
13989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13990 ;;
13991 esac
13992 ;;
13993
13994sysv4*MP*)
13995 if test -d /usr/nec ;then
13996 version_type=linux
13997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13998 soname_spec='$libname${shared_ext}.$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 fi
14001 ;;
14002
14003uts4*)
14004 version_type=linux
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 ;;
14009
14010*)
14011 dynamic_linker=no
14012 ;;
14013esac
14014echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14015echo "${ECHO_T}$dynamic_linker" >&6
14016test "$dynamic_linker" = no && can_build_shared=no
14017
14018
14019# The else clause should only fire when bootstrapping the
14020# libtool distribution, otherwise you forgot to ship ltmain.sh
14021# with your package, and you will get complaints that there are
14022# no rules to generate ltmain.sh.
14023if test -f "$ltmain"; then
14024 # See if we are running on zsh, and set the options which allow our commands through
14025 # without removal of \ escapes.
14026 if test -n "${ZSH_VERSION+set}" ; then
14027 setopt NO_GLOB_SUBST
14028 fi
14029 # Now quote all the things that may contain metacharacters while being
14030 # careful not to overquote the AC_SUBSTed values. We take copies of the
14031 # variables and quote the copies for generation of the libtool script.
14032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14035 deplibs_check_method reload_flag reload_cmds need_locks \
14036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14037 lt_cv_sys_global_symbol_to_c_name_address \
14038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14039 old_postinstall_cmds old_postuninstall_cmds \
14040 compiler_F77 \
14041 CC_F77 \
14042 LD_F77 \
14043 lt_prog_compiler_wl_F77 \
14044 lt_prog_compiler_pic_F77 \
14045 lt_prog_compiler_static_F77 \
14046 lt_prog_compiler_no_builtin_flag_F77 \
14047 export_dynamic_flag_spec_F77 \
14048 thread_safe_flag_spec_F77 \
14049 whole_archive_flag_spec_F77 \
14050 enable_shared_with_static_runtimes_F77 \
14051 old_archive_cmds_F77 \
14052 old_archive_from_new_cmds_F77 \
14053 predep_objects_F77 \
14054 postdep_objects_F77 \
14055 predeps_F77 \
14056 postdeps_F77 \
14057 compiler_lib_search_path_F77 \
14058 archive_cmds_F77 \
14059 archive_expsym_cmds_F77 \
14060 postinstall_cmds_F77 \
14061 postuninstall_cmds_F77 \
14062 old_archive_from_expsyms_cmds_F77 \
14063 allow_undefined_flag_F77 \
14064 no_undefined_flag_F77 \
14065 export_symbols_cmds_F77 \
14066 hardcode_libdir_flag_spec_F77 \
14067 hardcode_libdir_flag_spec_ld_F77 \
14068 hardcode_libdir_separator_F77 \
14069 hardcode_automatic_F77 \
14070 module_cmds_F77 \
14071 module_expsym_cmds_F77 \
14072 lt_cv_prog_compiler_c_o_F77 \
14073 exclude_expsyms_F77 \
14074 include_expsyms_F77; do
14075
14076 case $var in
14077 old_archive_cmds_F77 | \
14078 old_archive_from_new_cmds_F77 | \
14079 archive_cmds_F77 | \
14080 archive_expsym_cmds_F77 | \
14081 module_cmds_F77 | \
14082 module_expsym_cmds_F77 | \
14083 old_archive_from_expsyms_cmds_F77 | \
14084 export_symbols_cmds_F77 | \
14085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14086 postinstall_cmds | postuninstall_cmds | \
14087 old_postinstall_cmds | old_postuninstall_cmds | \
14088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14089 # Double-quote double-evaled strings.
14090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14091 ;;
14092 *)
14093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14094 ;;
14095 esac
14096 done
14097
14098 case $lt_echo in
14099 *'\$0 --fallback-echo"')
14100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14101 ;;
14102 esac
14103
14104cfgfile="$ofile"
14105
14106 cat <<__EOF__ >> "$cfgfile"
14107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14108
14109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14110
14111# Shell to use when invoking shell scripts.
14112SHELL=$lt_SHELL
14113
14114# Whether or not to build shared libraries.
14115build_libtool_libs=$enable_shared
14116
14117# Whether or not to build static libraries.
14118build_old_libs=$enable_static
14119
14120# Whether or not to add -lc for building shared libraries.
14121build_libtool_need_lc=$archive_cmds_need_lc_F77
14122
14123# Whether or not to disallow shared libs when runtime libs are static
14124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14125
14126# Whether or not to optimize for fast installation.
14127fast_install=$enable_fast_install
14128
14129# The host system.
14130host_alias=$host_alias
14131host=$host
14132
14133# An echo program that does not interpret backslashes.
14134echo=$lt_echo
14135
14136# The archiver.
14137AR=$lt_AR
14138AR_FLAGS=$lt_AR_FLAGS
14139
14140# A C compiler.
14141LTCC=$lt_LTCC
14142
14143# A language-specific compiler.
14144CC=$lt_compiler_F77
14145
14146# Is the compiler the GNU C compiler?
14147with_gcc=$GCC_F77
14148
14149# An ERE matcher.
14150EGREP=$lt_EGREP
14151
14152# The linker used to build libraries.
14153LD=$lt_LD_F77
14154
14155# Whether we need hard or soft links.
14156LN_S=$lt_LN_S
14157
14158# A BSD-compatible nm program.
14159NM=$lt_NM
14160
14161# A symbol stripping program
14162STRIP=$STRIP
14163
14164# Used to examine libraries when file_magic_cmd begins "file"
14165MAGIC_CMD=$MAGIC_CMD
14166
14167# Used on cygwin: DLL creation program.
14168DLLTOOL="$DLLTOOL"
14169
14170# Used on cygwin: object dumper.
14171OBJDUMP="$OBJDUMP"
14172
14173# Used on cygwin: assembler.
14174AS="$AS"
14175
14176# The name of the directory that contains temporary libtool files.
14177objdir=$objdir
14178
14179# How to create reloadable object files.
14180reload_flag=$lt_reload_flag
14181reload_cmds=$lt_reload_cmds
14182
14183# How to pass a linker flag through the compiler.
14184wl=$lt_lt_prog_compiler_wl_F77
14185
14186# Object file suffix (normally "o").
14187objext="$ac_objext"
14188
14189# Old archive suffix (normally "a").
14190libext="$libext"
14191
14192# Shared library suffix (normally ".so").
14193shrext='$shrext'
14194
14195# Executable file suffix (normally "").
14196exeext="$exeext"
14197
14198# Additional compiler flags for building library objects.
14199pic_flag=$lt_lt_prog_compiler_pic_F77
14200pic_mode=$pic_mode
14201
14202# What is the maximum length of a command?
14203max_cmd_len=$lt_cv_sys_max_cmd_len
14204
14205# Does compiler simultaneously support -c and -o options?
14206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14207
14208# Must we lock files when doing compilation ?
14209need_locks=$lt_need_locks
14210
14211# Do we need the lib prefix for modules?
14212need_lib_prefix=$need_lib_prefix
14213
14214# Do we need a version for libraries?
14215need_version=$need_version
14216
14217# Whether dlopen is supported.
14218dlopen_support=$enable_dlopen
14219
14220# Whether dlopen of programs is supported.
14221dlopen_self=$enable_dlopen_self
14222
14223# Whether dlopen of statically linked programs is supported.
14224dlopen_self_static=$enable_dlopen_self_static
14225
14226# Compiler flag to prevent dynamic linking.
14227link_static_flag=$lt_lt_prog_compiler_static_F77
14228
14229# Compiler flag to turn off builtin functions.
14230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14231
14232# Compiler flag to allow reflexive dlopens.
14233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14234
14235# Compiler flag to generate shared objects directly from archives.
14236whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14237
14238# Compiler flag to generate thread-safe objects.
14239thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14240
14241# Library versioning type.
14242version_type=$version_type
14243
14244# Format of library name prefix.
14245libname_spec=$lt_libname_spec
14246
14247# List of archive names. First name is the real one, the rest are links.
14248# The last name is the one that the linker finds with -lNAME.
14249library_names_spec=$lt_library_names_spec
14250
14251# The coded name of the library, if different from the real name.
14252soname_spec=$lt_soname_spec
14253
14254# Commands used to build and install an old-style archive.
14255RANLIB=$lt_RANLIB
14256old_archive_cmds=$lt_old_archive_cmds_F77
14257old_postinstall_cmds=$lt_old_postinstall_cmds
14258old_postuninstall_cmds=$lt_old_postuninstall_cmds
14259
14260# Create an old-style archive from a shared archive.
14261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14262
14263# Create a temporary old-style archive to link instead of a shared archive.
14264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14265
14266# Commands used to build and install a shared archive.
14267archive_cmds=$lt_archive_cmds_F77
14268archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14269postinstall_cmds=$lt_postinstall_cmds
14270postuninstall_cmds=$lt_postuninstall_cmds
14271
14272# Commands used to build a loadable module (assumed same as above if empty)
14273module_cmds=$lt_module_cmds_F77
14274module_expsym_cmds=$lt_module_expsym_cmds_F77
14275
14276# Commands to strip libraries.
14277old_striplib=$lt_old_striplib
14278striplib=$lt_striplib
14279
14280# Dependencies to place before the objects being linked to create a
14281# shared library.
14282predep_objects=$lt_predep_objects_F77
14283
14284# Dependencies to place after the objects being linked to create a
14285# shared library.
14286postdep_objects=$lt_postdep_objects_F77
14287
14288# Dependencies to place before the objects being linked to create a
14289# shared library.
14290predeps=$lt_predeps_F77
14291
14292# Dependencies to place after the objects being linked to create a
14293# shared library.
14294postdeps=$lt_postdeps_F77
14295
14296# The library search path used internally by the compiler when linking
14297# a shared library.
14298compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14299
14300# Method to check whether dependent libraries are shared objects.
14301deplibs_check_method=$lt_deplibs_check_method
14302
14303# Command to use when deplibs_check_method == file_magic.
14304file_magic_cmd=$lt_file_magic_cmd
14305
14306# Flag that allows shared libraries with undefined symbols to be built.
14307allow_undefined_flag=$lt_allow_undefined_flag_F77
14308
14309# Flag that forces no undefined symbols.
14310no_undefined_flag=$lt_no_undefined_flag_F77
14311
14312# Commands used to finish a libtool library installation in a directory.
14313finish_cmds=$lt_finish_cmds
14314
14315# Same as above, but a single script fragment to be evaled but not shown.
14316finish_eval=$lt_finish_eval
14317
14318# Take the output of nm and produce a listing of raw symbols and C names.
14319global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14320
14321# Transform the output of nm in a proper C declaration
14322global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14323
14324# Transform the output of nm in a C name address pair
14325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14326
14327# This is the shared library runtime path variable.
14328runpath_var=$runpath_var
14329
14330# This is the shared library path variable.
14331shlibpath_var=$shlibpath_var
14332
14333# Is shlibpath searched before the hard-coded library search path?
14334shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14335
14336# How to hardcode a shared library path into an executable.
14337hardcode_action=$hardcode_action_F77
14338
14339# Whether we should hardcode library paths into libraries.
14340hardcode_into_libs=$hardcode_into_libs
14341
14342# Flag to hardcode \$libdir into a binary during linking.
14343# This must work even if \$libdir does not exist.
14344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14345
14346# If ld is used when linking, flag to hardcode \$libdir into
14347# a binary during linking. This must work even if \$libdir does
14348# not exist.
14349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14350
14351# Whether we need a single -rpath flag with a separated argument.
14352hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14353
14354# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14355# resulting binary.
14356hardcode_direct=$hardcode_direct_F77
14357
14358# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14359# resulting binary.
14360hardcode_minus_L=$hardcode_minus_L_F77
14361
14362# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14363# the resulting binary.
14364hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14365
14366# Set to yes if building a shared library automatically hardcodes DIR into the library
14367# and all subsequent libraries and executables linked against it.
14368hardcode_automatic=$hardcode_automatic_F77
14369
14370# Variables whose values should be saved in libtool wrapper scripts and
14371# restored at relink time.
14372variables_saved_for_relink="$variables_saved_for_relink"
14373
14374# Whether libtool must link a program against all its dependency libraries.
14375link_all_deplibs=$link_all_deplibs_F77
14376
14377# Compile-time system search path for libraries
14378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14379
14380# Run-time system search path for libraries
14381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14382
14383# Fix the shell variable \$srcfile for the compiler.
14384fix_srcfile_path="$fix_srcfile_path_F77"
14385
14386# Set to yes if exported symbols are required.
14387always_export_symbols=$always_export_symbols_F77
14388
14389# The commands to list exported symbols.
14390export_symbols_cmds=$lt_export_symbols_cmds_F77
14391
14392# The commands to extract the exported symbol list from a shared archive.
14393extract_expsyms_cmds=$lt_extract_expsyms_cmds
14394
14395# Symbols that should not be listed in the preloaded symbols.
14396exclude_expsyms=$lt_exclude_expsyms_F77
14397
14398# Symbols that must always be exported.
14399include_expsyms=$lt_include_expsyms_F77
14400
14401# ### END LIBTOOL TAG CONFIG: $tagname
14402
14403__EOF__
14404
14405
14406else
14407 # If there is no Makefile yet, we rely on a make rule to execute
14408 # `config.status --recheck' to rerun these tests and create the
14409 # libtool script then.
14410 test -f Makefile && make "$ltmain"
14411fi
14412
14413
14414ac_ext=c
14415ac_cpp='$CPP $CPPFLAGS'
14416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14418ac_compiler_gnu=$ac_cv_c_compiler_gnu
14419
14420CC="$lt_save_CC"
14421
14422 else
14423 tagname=""
14424 fi
14425 ;;
14426
14427 GCJ)
14428 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14429
14430
14431
14432# Source file extension for Java test sources.
14433ac_ext=java
14434
14435# Object file extension for compiled Java test sources.
14436objext=o
14437objext_GCJ=$objext
14438
14439# Code to be used in simple compile tests
14440lt_simple_compile_test_code="class foo {}\n"
14441
14442# Code to be used in simple link tests
14443lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14444
14445# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14446
14447# If no C compiler was specified, use CC.
14448LTCC=${LTCC-"$CC"}
14449
14450# Allow CC to be a program name with arguments.
14451compiler=$CC
14452
14453
14454# Allow CC to be a program name with arguments.
14455lt_save_CC="$CC"
14456CC=${GCJ-"gcj"}
14457compiler=$CC
14458compiler_GCJ=$CC
14459
14460# GCJ did not exist at the time GCC didn't implicitly link libc in.
14461archive_cmds_need_lc_GCJ=no
14462
14463## CAVEAT EMPTOR:
14464## There is no encapsulation within the following macros, do not change
14465## the running order or otherwise move them around unless you know exactly
14466## what you are doing...
14467
14468lt_prog_compiler_no_builtin_flag_GCJ=
14469
14470if test "$GCC" = yes; then
14471 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14472
14473 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14474echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14475if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477else
14478 lt_cv_prog_compiler_rtti_exceptions=no
14479 ac_outfile=conftest.$ac_objext
14480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14481 lt_compiler_flag="-fno-rtti -fno-exceptions"
14482 # Insert the option either (1) after the last *FLAGS variable, or
14483 # (2) before a word containing "conftest.", or (3) at the end.
14484 # Note that $ac_compile itself does not contain backslashes and begins
14485 # with a dollar sign (not a hyphen), so the echo should work correctly.
14486 # The option is referenced via a variable to avoid confusing sed.
14487 lt_compile=`echo "$ac_compile" | $SED \
14488 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14490 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000014491 (eval echo "\"\$as_me:14491: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014492 (eval "$lt_compile" 2>conftest.err)
14493 ac_status=$?
14494 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000014495 echo "$as_me:14495: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014496 if (exit $ac_status) && test -s "$ac_outfile"; then
14497 # The compiler can only warn and ignore the option if not recognized
14498 # So say no if there are warnings
14499 if test ! -s conftest.err; then
14500 lt_cv_prog_compiler_rtti_exceptions=yes
14501 fi
14502 fi
14503 $rm conftest*
14504
14505fi
14506echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14507echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14508
14509if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14510 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14511else
14512 :
14513fi
14514
14515fi
14516
14517lt_prog_compiler_wl_GCJ=
14518lt_prog_compiler_pic_GCJ=
14519lt_prog_compiler_static_GCJ=
14520
14521echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14522echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14523
14524 if test "$GCC" = yes; then
14525 lt_prog_compiler_wl_GCJ='-Wl,'
14526 lt_prog_compiler_static_GCJ='-static'
14527
14528 case $host_os in
14529 aix*)
14530 # All AIX code is PIC.
14531 if test "$host_cpu" = ia64; then
14532 # AIX 5 now supports IA64 processor
14533 lt_prog_compiler_static_GCJ='-Bstatic'
14534 fi
14535 ;;
14536
14537 amigaos*)
14538 # FIXME: we need at least 68020 code to build shared libraries, but
14539 # adding the `-m68020' flag to GCC prevents building anything better,
14540 # like `-m68040'.
14541 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14542 ;;
14543
14544 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14545 # PIC is the default for these OSes.
14546 ;;
14547
14548 mingw* | pw32* | os2*)
14549 # This hack is so that the source file can tell whether it is being
14550 # built for inclusion in a dll (and should export symbols for example).
14551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14552 ;;
14553
14554 darwin* | rhapsody*)
14555 # PIC is the default on this platform
14556 # Common symbols not allowed in MH_DYLIB files
14557 lt_prog_compiler_pic_GCJ='-fno-common'
14558 ;;
14559
14560 msdosdjgpp*)
14561 # Just because we use GCC doesn't mean we suddenly get shared libraries
14562 # on systems that don't support them.
14563 lt_prog_compiler_can_build_shared_GCJ=no
14564 enable_shared=no
14565 ;;
14566
14567 sysv4*MP*)
14568 if test -d /usr/nec; then
14569 lt_prog_compiler_pic_GCJ=-Kconform_pic
14570 fi
14571 ;;
14572
14573 hpux*)
14574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14575 # not for PA HP-UX.
14576 case "$host_cpu" in
14577 hppa*64*|ia64*)
14578 # +Z the default
14579 ;;
14580 *)
14581 lt_prog_compiler_pic_GCJ='-fPIC'
14582 ;;
14583 esac
14584 ;;
14585
14586 *)
14587 lt_prog_compiler_pic_GCJ='-fPIC'
14588 ;;
14589 esac
14590 else
14591 # PORTME Check for flag to pass linker flags through the system compiler.
14592 case $host_os in
14593 aix*)
14594 lt_prog_compiler_wl_GCJ='-Wl,'
14595 if test "$host_cpu" = ia64; then
14596 # AIX 5 now supports IA64 processor
14597 lt_prog_compiler_static_GCJ='-Bstatic'
14598 else
14599 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14600 fi
14601 ;;
14602
14603 mingw* | pw32* | os2*)
14604 # This hack is so that the source file can tell whether it is being
14605 # built for inclusion in a dll (and should export symbols for example).
14606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14607 ;;
14608
14609 hpux9* | hpux10* | hpux11*)
14610 lt_prog_compiler_wl_GCJ='-Wl,'
14611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14612 # not for PA HP-UX.
14613 case "$host_cpu" in
14614 hppa*64*|ia64*)
14615 # +Z the default
14616 ;;
14617 *)
14618 lt_prog_compiler_pic_GCJ='+Z'
14619 ;;
14620 esac
14621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14622 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14623 ;;
14624
14625 irix5* | irix6* | nonstopux*)
14626 lt_prog_compiler_wl_GCJ='-Wl,'
14627 # PIC (with -KPIC) is the default.
14628 lt_prog_compiler_static_GCJ='-non_shared'
14629 ;;
14630
14631 newsos6)
14632 lt_prog_compiler_pic_GCJ='-KPIC'
14633 lt_prog_compiler_static_GCJ='-Bstatic'
14634 ;;
14635
14636 linux*)
14637 case $CC in
14638 icc|ecc)
14639 lt_prog_compiler_wl_GCJ='-Wl,'
14640 lt_prog_compiler_pic_GCJ='-KPIC'
14641 lt_prog_compiler_static_GCJ='-static'
14642 ;;
14643 ccc)
14644 lt_prog_compiler_wl_GCJ='-Wl,'
14645 # All Alpha code is PIC.
14646 lt_prog_compiler_static_GCJ='-non_shared'
14647 ;;
14648 esac
14649 ;;
14650
14651 osf3* | osf4* | osf5*)
14652 lt_prog_compiler_wl_GCJ='-Wl,'
14653 # All OSF/1 code is PIC.
14654 lt_prog_compiler_static_GCJ='-non_shared'
14655 ;;
14656
14657 sco3.2v5*)
14658 lt_prog_compiler_pic_GCJ='-Kpic'
14659 lt_prog_compiler_static_GCJ='-dn'
14660 ;;
14661
14662 solaris*)
14663 lt_prog_compiler_wl_GCJ='-Wl,'
14664 lt_prog_compiler_pic_GCJ='-KPIC'
14665 lt_prog_compiler_static_GCJ='-Bstatic'
14666 ;;
14667
14668 sunos4*)
14669 lt_prog_compiler_wl_GCJ='-Qoption ld '
14670 lt_prog_compiler_pic_GCJ='-PIC'
14671 lt_prog_compiler_static_GCJ='-Bstatic'
14672 ;;
14673
14674 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14675 lt_prog_compiler_wl_GCJ='-Wl,'
14676 lt_prog_compiler_pic_GCJ='-KPIC'
14677 lt_prog_compiler_static_GCJ='-Bstatic'
14678 ;;
14679
14680 sysv4*MP*)
14681 if test -d /usr/nec ;then
14682 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14683 lt_prog_compiler_static_GCJ='-Bstatic'
14684 fi
14685 ;;
14686
14687 uts4*)
14688 lt_prog_compiler_pic_GCJ='-pic'
14689 lt_prog_compiler_static_GCJ='-Bstatic'
14690 ;;
14691
14692 *)
14693 lt_prog_compiler_can_build_shared_GCJ=no
14694 ;;
14695 esac
14696 fi
14697
14698echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14699echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14700
14701#
14702# Check to make sure the PIC flag actually works.
14703#
14704if test -n "$lt_prog_compiler_pic_GCJ"; then
14705 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14707if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710 lt_prog_compiler_pic_works_GCJ=no
14711 ac_outfile=conftest.$ac_objext
14712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14713 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14714 # Insert the option either (1) after the last *FLAGS variable, or
14715 # (2) before a word containing "conftest.", or (3) at the end.
14716 # Note that $ac_compile itself does not contain backslashes and begins
14717 # with a dollar sign (not a hyphen), so the echo should work correctly.
14718 # The option is referenced via a variable to avoid confusing sed.
14719 lt_compile=`echo "$ac_compile" | $SED \
14720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000014723 (eval echo "\"\$as_me:14723: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014724 (eval "$lt_compile" 2>conftest.err)
14725 ac_status=$?
14726 cat conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000014727 echo "$as_me:14727: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014728 if (exit $ac_status) && test -s "$ac_outfile"; then
14729 # The compiler can only warn and ignore the option if not recognized
14730 # So say no if there are warnings
14731 if test ! -s conftest.err; then
14732 lt_prog_compiler_pic_works_GCJ=yes
14733 fi
14734 fi
14735 $rm conftest*
14736
14737fi
14738echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14739echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14740
14741if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14742 case $lt_prog_compiler_pic_GCJ in
14743 "" | " "*) ;;
14744 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14745 esac
14746else
14747 lt_prog_compiler_pic_GCJ=
14748 lt_prog_compiler_can_build_shared_GCJ=no
14749fi
14750
14751fi
14752case "$host_os" in
14753 # For platforms which do not support PIC, -DPIC is meaningless:
14754 *djgpp*)
14755 lt_prog_compiler_pic_GCJ=
14756 ;;
14757 *)
14758 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14759 ;;
14760esac
14761
14762echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14763echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14764if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 lt_cv_prog_compiler_c_o_GCJ=no
14768 $rm -r conftest 2>/dev/null
14769 mkdir conftest
14770 cd conftest
14771 mkdir out
14772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14773
14774 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14775 # that will create temporary files in the current directory regardless of
14776 # the output directory. Thus, making CWD read-only will cause this test
14777 # to fail, enabling locking or at least warning the user not to do parallel
14778 # builds.
14779 chmod -w .
14780
14781 lt_compiler_flag="-o out/conftest2.$ac_objext"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 lt_compile=`echo "$ac_compile" | $SED \
14787 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789 -e 's:$: $lt_compiler_flag:'`
John Criswellf02dbf02003-07-22 20:07:49 +000014790 (eval echo "\"\$as_me:14790: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014791 (eval "$lt_compile" 2>out/conftest.err)
14792 ac_status=$?
14793 cat out/conftest.err >&5
John Criswellf02dbf02003-07-22 20:07:49 +000014794 echo "$as_me:14794: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14796 then
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings
14799 if test ! -s out/conftest.err; then
14800 lt_cv_prog_compiler_c_o_GCJ=yes
14801 fi
14802 fi
14803 chmod u+w .
14804 $rm conftest* out/*
14805 rmdir out
14806 cd ..
14807 rmdir conftest
14808 $rm conftest*
14809
14810fi
14811echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14812echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14813
14814
14815hard_links="nottested"
14816if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14817 # do not overwrite the value of need_locks provided by the user
14818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14819echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14820 hard_links=yes
14821 $rm conftest*
14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14823 touch conftest.a
14824 ln conftest.a conftest.b 2>&5 || hard_links=no
14825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14826 echo "$as_me:$LINENO: result: $hard_links" >&5
14827echo "${ECHO_T}$hard_links" >&6
14828 if test "$hard_links" = no; then
14829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14830echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14831 need_locks=warn
14832 fi
14833else
14834 need_locks=no
14835fi
14836
14837echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14839
14840 runpath_var=
14841 allow_undefined_flag_GCJ=
14842 enable_shared_with_static_runtimes_GCJ=no
14843 archive_cmds_GCJ=
14844 archive_expsym_cmds_GCJ=
14845 old_archive_From_new_cmds_GCJ=
14846 old_archive_from_expsyms_cmds_GCJ=
14847 export_dynamic_flag_spec_GCJ=
14848 whole_archive_flag_spec_GCJ=
14849 thread_safe_flag_spec_GCJ=
14850 hardcode_libdir_flag_spec_GCJ=
14851 hardcode_libdir_flag_spec_ld_GCJ=
14852 hardcode_libdir_separator_GCJ=
14853 hardcode_direct_GCJ=no
14854 hardcode_minus_L_GCJ=no
14855 hardcode_shlibpath_var_GCJ=unsupported
14856 link_all_deplibs_GCJ=unknown
14857 hardcode_automatic_GCJ=no
14858 module_cmds_GCJ=
14859 module_expsym_cmds_GCJ=
14860 always_export_symbols_GCJ=no
14861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14862 # include_expsyms should be a list of space-separated symbols to be *always*
14863 # included in the symbol list
14864 include_expsyms_GCJ=
14865 # exclude_expsyms can be an extended regexp of symbols to exclude
14866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14868 # as well as any symbol that contains `d'.
14869 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14871 # platforms (ab)use it in PIC code, but their linkers get confused if
14872 # the symbol is explicitly referenced. Since portable code cannot
14873 # rely on this symbol name, it's probably fine to never include it in
14874 # preloaded symbol tables.
14875 extract_expsyms_cmds=
14876
14877 case $host_os in
14878 cygwin* | mingw* | pw32*)
14879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14880 # When not using gcc, we currently assume that we are using
14881 # Microsoft Visual C++.
14882 if test "$GCC" != yes; then
14883 with_gnu_ld=no
14884 fi
14885 ;;
14886 openbsd*)
14887 with_gnu_ld=no
14888 ;;
14889 esac
14890
14891 ld_shlibs_GCJ=yes
14892 if test "$with_gnu_ld" = yes; then
14893 # If archive_cmds runs LD, not CC, wlarc should be empty
14894 wlarc='${wl}'
14895
14896 # See if GNU ld supports shared libraries.
14897 case $host_os in
14898 aix3* | aix4* | aix5*)
14899 # On AIX/PPC, the GNU linker is very broken
14900 if test "$host_cpu" != ia64; then
14901 ld_shlibs_GCJ=no
14902 cat <<EOF 1>&2
14903
14904*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14905*** to be unable to reliably create shared libraries on AIX.
14906*** Therefore, libtool is disabling shared libraries support. If you
14907*** really care for shared libraries, you may want to modify your PATH
14908*** so that a non-GNU linker is found, and then restart.
14909
14910EOF
14911 fi
14912 ;;
14913
14914 amigaos*)
14915 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)'
14916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14917 hardcode_minus_L_GCJ=yes
14918
14919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14920 # that the semantics of dynamic libraries on AmigaOS, at least up
14921 # to version 4, is to share data among multiple programs linked
14922 # with the same dynamic library. Since this doesn't match the
14923 # behavior of shared libraries on other platforms, we can't use
14924 # them.
14925 ld_shlibs_GCJ=no
14926 ;;
14927
14928 beos*)
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 allow_undefined_flag_GCJ=unsupported
14931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14932 # support --undefined. This deserves some investigation. FIXME
14933 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934 else
14935 ld_shlibs_GCJ=no
14936 fi
14937 ;;
14938
14939 cygwin* | mingw* | pw32*)
14940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14941 # as there is no search path for DLLs.
14942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14943 allow_undefined_flag_GCJ=unsupported
14944 always_export_symbols_GCJ=no
14945 enable_shared_with_static_runtimes_GCJ=yes
14946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14947
14948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14950 # If the export-symbols file already is a .def file (1st line
14951 # is EXPORTS), use it as is; otherwise, prepend...
14952 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14953 cp $export_symbols $output_objdir/$soname.def;
14954 else
14955 echo EXPORTS > $output_objdir/$soname.def;
14956 cat $export_symbols >> $output_objdir/$soname.def;
14957 fi~
14958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14959 else
14960 ld_shlibs=no
14961 fi
14962 ;;
14963
14964 netbsd*)
14965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14966 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14967 wlarc=
14968 else
14969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14971 fi
14972 ;;
14973
14974 solaris* | sysv5*)
14975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14976 ld_shlibs_GCJ=no
14977 cat <<EOF 1>&2
14978
14979*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14980*** create shared libraries on Solaris systems. Therefore, libtool
14981*** is disabling shared libraries support. We urge you to upgrade GNU
14982*** binutils to release 2.9.1 or newer. Another option is to modify
14983*** your PATH or compiler configuration so that the native linker is
14984*** used, and then restart.
14985
14986EOF
14987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14990 else
14991 ld_shlibs_GCJ=no
14992 fi
14993 ;;
14994
14995 sunos4*)
14996 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997 wlarc=
14998 hardcode_direct_GCJ=yes
14999 hardcode_shlibpath_var_GCJ=no
15000 ;;
15001
15002 *)
15003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15006 else
15007 ld_shlibs_GCJ=no
15008 fi
15009 ;;
15010 esac
15011
15012 if test "$ld_shlibs_GCJ" = yes; then
15013 runpath_var=LD_RUN_PATH
15014 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15015 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15016 # ancient GNU ld didn't support --whole-archive et. al.
15017 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15018 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15019 else
15020 whole_archive_flag_spec_GCJ=
15021 fi
15022 fi
15023 else
15024 # PORTME fill in a description of your system's linker (not GNU ld)
15025 case $host_os in
15026 aix3*)
15027 allow_undefined_flag_GCJ=unsupported
15028 always_export_symbols_GCJ=yes
15029 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'
15030 # Note: this linker hardcodes the directories in LIBPATH if there
15031 # are no directories specified by -L.
15032 hardcode_minus_L_GCJ=yes
15033 if test "$GCC" = yes && test -z "$link_static_flag"; then
15034 # Neither direct hardcoding nor static linking is supported with a
15035 # broken collect2.
15036 hardcode_direct_GCJ=unsupported
15037 fi
15038 ;;
15039
15040 aix4* | aix5*)
15041 if test "$host_cpu" = ia64; then
15042 # On IA64, the linker does run time linking by default, so we don't
15043 # have to do anything special.
15044 aix_use_runtimelinking=no
15045 exp_sym_flag='-Bexport'
15046 no_entry_flag=""
15047 else
15048 # If we're using GNU nm, then we don't want the "-C" option.
15049 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15050 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15051 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'
15052 else
15053 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'
15054 fi
15055 aix_use_runtimelinking=no
15056
15057 # Test if we are trying to use run time linking or normal
15058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15059 # need to do runtime linking.
15060 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15061 for ld_flag in $LDFLAGS; do
15062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15063 aix_use_runtimelinking=yes
15064 break
15065 fi
15066 done
15067 esac
15068
15069 exp_sym_flag='-bexport'
15070 no_entry_flag='-bnoentry'
15071 fi
15072
15073 # When large executables or shared objects are built, AIX ld can
15074 # have problems creating the table of contents. If linking a library
15075 # or program results in "error TOC overflow" add -mminimal-toc to
15076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15078
15079 archive_cmds_GCJ=''
15080 hardcode_direct_GCJ=yes
15081 hardcode_libdir_separator_GCJ=':'
15082 link_all_deplibs_GCJ=yes
15083
15084 if test "$GCC" = yes; then
15085 case $host_os in aix4.012|aix4.012.*)
15086 # We only want to do this on AIX 4.2 and lower, the check
15087 # below for broken collect2 doesn't work under 4.3+
15088 collect2name=`${CC} -print-prog-name=collect2`
15089 if test -f "$collect2name" && \
15090 strings "$collect2name" | grep resolve_lib_name >/dev/null
15091 then
15092 # We have reworked collect2
15093 hardcode_direct_GCJ=yes
15094 else
15095 # We have old collect2
15096 hardcode_direct_GCJ=unsupported
15097 # It fails to find uninstalled libraries when the uninstalled
15098 # path is not listed in the libpath. Setting hardcode_minus_L
15099 # to unsupported forces relinking
15100 hardcode_minus_L_GCJ=yes
15101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15102 hardcode_libdir_separator_GCJ=
15103 fi
15104 esac
15105 shared_flag='-shared'
15106 else
15107 # not using gcc
15108 if test "$host_cpu" = ia64; then
15109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15110 # chokes on -Wl,-G. The following line is correct:
15111 shared_flag='-G'
15112 else
15113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag='${wl}-G'
15115 else
15116 shared_flag='${wl}-bM:SRE'
15117 fi
15118 fi
15119 fi
15120
15121 # It seems that -bexpall does not export symbols beginning with
15122 # underscore (_), so it is better to generate a list of symbols to export.
15123 always_export_symbols_GCJ=yes
15124 if test "$aix_use_runtimelinking" = yes; then
15125 # Warning - without using the other runtime loading flags (-brtl),
15126 # -berok will link without error, but may produce a broken library.
15127 allow_undefined_flag_GCJ='-berok'
15128 # Determine the default libpath from the value encoded in an empty executable.
15129 cat >conftest.$ac_ext <<_ACEOF
15130#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015131/* confdefs.h. */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015136
John Criswell47fdd832003-07-14 16:52:07 +000015137int
15138main ()
15139{
15140
15141 ;
15142 return 0;
15143}
15144_ACEOF
15145rm -f conftest.$ac_objext conftest$ac_exeext
15146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157
15158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15159}'`
15160# Check for a 64-bit object if we didn't find anything.
15161if 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; }
15162}'`; fi
15163else
15164 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015165sed 's/^/| /' conftest.$ac_ext >&5
15166
John Criswell47fdd832003-07-14 16:52:07 +000015167fi
15168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15170
15171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15172 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"
15173 else
15174 if test "$host_cpu" = ia64; then
15175 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15176 allow_undefined_flag_GCJ="-z nodefs"
15177 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"
15178 else
15179 # Determine the default libpath from the value encoded in an empty executable.
15180 cat >conftest.$ac_ext <<_ACEOF
15181#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015182/* confdefs.h. */
15183_ACEOF
15184cat confdefs.h >>conftest.$ac_ext
15185cat >>conftest.$ac_ext <<_ACEOF
15186/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015187
John Criswell47fdd832003-07-14 16:52:07 +000015188int
15189main ()
15190{
15191
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196rm -f conftest.$ac_objext conftest$ac_exeext
15197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208
15209aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15210}'`
15211# Check for a 64-bit object if we didn't find anything.
15212if 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; }
15213}'`; fi
15214else
15215 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015216sed 's/^/| /' conftest.$ac_ext >&5
15217
John Criswell47fdd832003-07-14 16:52:07 +000015218fi
15219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15221
15222 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15223 # Warning - without using the other run time loading flags,
15224 # -berok will link without error, but may produce a broken library.
15225 no_undefined_flag_GCJ=' ${wl}-bernotok'
15226 allow_undefined_flag_GCJ=' ${wl}-berok'
15227 # -bexpall does not export symbols beginning with underscore (_)
15228 always_export_symbols_GCJ=yes
15229 # Exported symbols can be pulled into shared objects from archives
15230 whole_archive_flag_spec_GCJ=' '
15231 archive_cmds_need_lc_GCJ=yes
15232 # This is similar to how AIX traditionally builds it's shared libraries.
15233 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'
15234 fi
15235 fi
15236 ;;
15237
15238 amigaos*)
15239 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)'
15240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15241 hardcode_minus_L_GCJ=yes
15242 # see comment about different semantics on the GNU ld section
15243 ld_shlibs_GCJ=no
15244 ;;
15245
15246 bsdi4*)
15247 export_dynamic_flag_spec_GCJ=-rdynamic
15248 ;;
15249
15250 cygwin* | mingw* | pw32*)
15251 # When not using gcc, we currently assume that we are using
15252 # Microsoft Visual C++.
15253 # hardcode_libdir_flag_spec is actually meaningless, as there is
15254 # no search path for DLLs.
15255 hardcode_libdir_flag_spec_GCJ=' '
15256 allow_undefined_flag_GCJ=unsupported
15257 # Tell ltmain to make .lib files, not .a files.
15258 libext=lib
15259 # Tell ltmain to make .dll files, not .so files.
15260 shrext=".dll"
15261 # FIXME: Setting linknames here is a bad hack.
15262 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15263 # The linker will automatically build a .lib file if we build a DLL.
15264 old_archive_From_new_cmds_GCJ='true'
15265 # FIXME: Should let the user specify the lib program.
15266 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15267 fix_srcfile_path='`cygpath -w "$srcfile"`'
15268 enable_shared_with_static_runtimes_GCJ=yes
15269 ;;
15270
15271 darwin* | rhapsody*)
15272 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15273 archive_cmds_need_lc_GCJ=no
15274 case "$host_os" in
15275 rhapsody* | darwin1.[012])
15276 allow_undefined_flag_GCJ='-undefined suppress'
15277 ;;
15278 *) # Darwin 1.3 on
15279 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15280 ;;
15281 esac
15282 # FIXME: Relying on posixy $() will cause problems for
15283 # cross-compilation, but unfortunately the echo tests do not
15284 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15285 # `"' quotes if we put them in here... so don't!
15286 lt_int_apple_cc_single_mod=no
15287 output_verbose_link_cmd='echo'
15288 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15289 lt_int_apple_cc_single_mod=yes
15290 fi
15291 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15292 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15293 else
15294 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15295 fi
15296 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15298 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15299 archive_expsym_cmds_GCJ='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}'
15300 else
15301 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15302 fi
15303 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15304 hardcode_direct_GCJ=no
15305 hardcode_automatic_GCJ=yes
15306 hardcode_shlibpath_var_GCJ=unsupported
15307 whole_archive_flag_spec_GCJ='-all_load $convenience'
15308 link_all_deplibs_GCJ=yes
15309 fi
15310 ;;
15311
15312 dgux*)
15313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15315 hardcode_shlibpath_var_GCJ=no
15316 ;;
15317
15318 freebsd1*)
15319 ld_shlibs_GCJ=no
15320 ;;
15321
15322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15323 # support. Future versions do this automatically, but an explicit c++rt0.o
15324 # does not break anything, and helps significantly (at the cost of a little
15325 # extra space).
15326 freebsd2.2*)
15327 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15328 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15329 hardcode_direct_GCJ=yes
15330 hardcode_shlibpath_var_GCJ=no
15331 ;;
15332
15333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15334 freebsd2*)
15335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336 hardcode_direct_GCJ=yes
15337 hardcode_minus_L_GCJ=yes
15338 hardcode_shlibpath_var_GCJ=no
15339 ;;
15340
15341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15342 freebsd*)
15343 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15344 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15345 hardcode_direct_GCJ=yes
15346 hardcode_shlibpath_var_GCJ=no
15347 ;;
15348
15349 hpux9*)
15350 if test "$GCC" = yes; then
15351 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'
15352 else
15353 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'
15354 fi
15355 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator_GCJ=:
15357 hardcode_direct_GCJ=yes
15358
15359 # hardcode_minus_L: Not really in the search PATH,
15360 # but as the default location of the library.
15361 hardcode_minus_L_GCJ=yes
15362 export_dynamic_flag_spec_GCJ='${wl}-E'
15363 ;;
15364
15365 hpux10* | hpux11*)
15366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15367 case "$host_cpu" in
15368 hppa*64*|ia64*)
15369 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 ;;
15371 *)
15372 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15373 ;;
15374 esac
15375 else
15376 case "$host_cpu" in
15377 hppa*64*|ia64*)
15378 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 ;;
15380 *)
15381 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15382 ;;
15383 esac
15384 fi
15385 if test "$with_gnu_ld" = no; then
15386 case "$host_cpu" in
15387 hppa*64*)
15388 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15389 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15390 hardcode_libdir_separator_GCJ=:
15391 hardcode_direct_GCJ=no
15392 hardcode_shlibpath_var_GCJ=no
15393 ;;
15394 ia64*)
15395 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15396 hardcode_direct_GCJ=no
15397 hardcode_shlibpath_var_GCJ=no
15398
15399 # hardcode_minus_L: Not really in the search PATH,
15400 # but as the default location of the library.
15401 hardcode_minus_L_GCJ=yes
15402 ;;
15403 *)
15404 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15405 hardcode_libdir_separator_GCJ=:
15406 hardcode_direct_GCJ=yes
15407 export_dynamic_flag_spec_GCJ='${wl}-E'
15408
15409 # hardcode_minus_L: Not really in the search PATH,
15410 # but as the default location of the library.
15411 hardcode_minus_L_GCJ=yes
15412 ;;
15413 esac
15414 fi
15415 ;;
15416
15417 irix5* | irix6* | nonstopux*)
15418 if test "$GCC" = yes; then
15419 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'
15420 else
15421 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'
15422 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15423 fi
15424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15425 hardcode_libdir_separator_GCJ=:
15426 link_all_deplibs_GCJ=yes
15427 ;;
15428
15429 netbsd*)
15430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15431 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15432 else
15433 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15434 fi
15435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15436 hardcode_direct_GCJ=yes
15437 hardcode_shlibpath_var_GCJ=no
15438 ;;
15439
15440 newsos6)
15441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 hardcode_direct_GCJ=yes
15443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15444 hardcode_libdir_separator_GCJ=:
15445 hardcode_shlibpath_var_GCJ=no
15446 ;;
15447
15448 openbsd*)
15449 hardcode_direct_GCJ=yes
15450 hardcode_shlibpath_var_GCJ=no
15451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15452 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15454 export_dynamic_flag_spec_GCJ='${wl}-E'
15455 else
15456 case $host_os in
15457 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15460 ;;
15461 *)
15462 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15464 ;;
15465 esac
15466 fi
15467 ;;
15468
15469 os2*)
15470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15471 hardcode_minus_L_GCJ=yes
15472 allow_undefined_flag_GCJ=unsupported
15473 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'
15474 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15475 ;;
15476
15477 osf3*)
15478 if test "$GCC" = yes; then
15479 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15480 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'
15481 else
15482 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15483 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'
15484 fi
15485 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15486 hardcode_libdir_separator_GCJ=:
15487 ;;
15488
15489 osf4* | osf5*) # as osf3* with the addition of -msym flag
15490 if test "$GCC" = yes; then
15491 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15492 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'
15493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15494 else
15495 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15496 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'
15497 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~
15498 $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'
15499
15500 # Both c and cxx compiler support -rpath directly
15501 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15502 fi
15503 hardcode_libdir_separator_GCJ=:
15504 ;;
15505
15506 sco3.2v5*)
15507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_shlibpath_var_GCJ=no
15509 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15510 runpath_var=LD_RUN_PATH
15511 hardcode_runpath_var=yes
15512 ;;
15513
15514 solaris*)
15515 no_undefined_flag_GCJ=' -z text'
15516 if test "$GCC" = yes; then
15517 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15519 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15520 else
15521 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15524 fi
15525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15526 hardcode_shlibpath_var_GCJ=no
15527 case $host_os in
15528 solaris2.[0-5] | solaris2.[0-5].*) ;;
15529 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15530 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15531 esac
15532 link_all_deplibs_GCJ=yes
15533 ;;
15534
15535 sunos4*)
15536 if test "x$host_vendor" = xsequent; then
15537 # Use $CC to link under sequent, because it throws in some extra .o
15538 # files that make .init and .fini sections work.
15539 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540 else
15541 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15542 fi
15543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15544 hardcode_direct_GCJ=yes
15545 hardcode_minus_L_GCJ=yes
15546 hardcode_shlibpath_var_GCJ=no
15547 ;;
15548
15549 sysv4)
15550 case $host_vendor in
15551 sni)
15552 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct_GCJ=yes # is this really true???
15554 ;;
15555 siemens)
15556 ## LD is ld it makes a PLAMLIB
15557 ## CC just makes a GrossModule.
15558 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15560 hardcode_direct_GCJ=no
15561 ;;
15562 motorola)
15563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15565 ;;
15566 esac
15567 runpath_var='LD_RUN_PATH'
15568 hardcode_shlibpath_var_GCJ=no
15569 ;;
15570
15571 sysv4.3*)
15572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_shlibpath_var_GCJ=no
15574 export_dynamic_flag_spec_GCJ='-Bexport'
15575 ;;
15576
15577 sysv4*MP*)
15578 if test -d /usr/nec; then
15579 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_shlibpath_var_GCJ=no
15581 runpath_var=LD_RUN_PATH
15582 hardcode_runpath_var=yes
15583 ld_shlibs_GCJ=yes
15584 fi
15585 ;;
15586
15587 sysv4.2uw2*)
15588 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_direct_GCJ=yes
15590 hardcode_minus_L_GCJ=no
15591 hardcode_shlibpath_var_GCJ=no
15592 hardcode_runpath_var=yes
15593 runpath_var=LD_RUN_PATH
15594 ;;
15595
15596 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15597 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15598 if test "$GCC" = yes; then
15599 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 else
15601 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 fi
15603 runpath_var='LD_RUN_PATH'
15604 hardcode_shlibpath_var_GCJ=no
15605 ;;
15606
15607 sysv5*)
15608 no_undefined_flag_GCJ=' -z text'
15609 # $CC -shared without GNU ld will not create a library from C++
15610 # object files and a static libstdc++, better avoid it by now
15611 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15612 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15614 hardcode_libdir_flag_spec_GCJ=
15615 hardcode_shlibpath_var_GCJ=no
15616 runpath_var='LD_RUN_PATH'
15617 ;;
15618
15619 uts4*)
15620 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15622 hardcode_shlibpath_var_GCJ=no
15623 ;;
15624
15625 *)
15626 ld_shlibs_GCJ=no
15627 ;;
15628 esac
15629 fi
15630
15631echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15632echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15633test "$ld_shlibs_GCJ" = no && can_build_shared=no
15634
15635variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15636if test "$GCC" = yes; then
15637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15638fi
15639
15640#
15641# Do we need to explicitly link libc?
15642#
15643case "x$archive_cmds_need_lc_GCJ" in
15644x|xyes)
15645 # Assume -lc should be added
15646 archive_cmds_need_lc_GCJ=yes
15647
15648 if test "$enable_shared" = yes && test "$GCC" = yes; then
15649 case $archive_cmds_GCJ in
15650 *'~'*)
15651 # FIXME: we may have to deal with multi-command sequences.
15652 ;;
15653 '$CC '*)
15654 # Test whether the compiler implicitly links with -lc since on some
15655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15656 # to ld, don't add -lc before -lgcc.
15657 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15658echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15659 $rm conftest*
15660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15661
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } 2>conftest.err; then
15667 soname=conftest
15668 lib=conftest
15669 libobjs=conftest.$ac_objext
15670 deplibs=
15671 wl=$lt_prog_compiler_wl_GCJ
15672 compiler_flags=-v
15673 linker_flags=-v
15674 verstring=
15675 output_objdir=.
15676 libname=conftest
15677 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15678 allow_undefined_flag_GCJ=
15679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15680 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }
15684 then
15685 archive_cmds_need_lc_GCJ=no
15686 else
15687 archive_cmds_need_lc_GCJ=yes
15688 fi
15689 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15690 else
15691 cat conftest.err 1>&5
15692 fi
15693 $rm conftest*
15694 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15695echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15696 ;;
15697 esac
15698 fi
15699 ;;
15700esac
15701
15702echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15703echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15704hardcode_action_GCJ=
15705if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15706 test -n "$runpath_var GCJ" || \
15707 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15708
15709 # We can hardcode non-existant directories.
15710 if test "$hardcode_direct_GCJ" != no &&
15711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15712 # have to relink, otherwise we might link with an installed library
15713 # when we should be linking with a yet-to-be-installed one
15714 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15715 test "$hardcode_minus_L_GCJ" != no; then
15716 # Linking always hardcodes the temporary library directory.
15717 hardcode_action_GCJ=relink
15718 else
15719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15720 hardcode_action_GCJ=immediate
15721 fi
15722else
15723 # We cannot hardcode anything, or else we can only hardcode existing
15724 # directories.
15725 hardcode_action_GCJ=unsupported
15726fi
15727echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15728echo "${ECHO_T}$hardcode_action_GCJ" >&6
15729
15730if test "$hardcode_action_GCJ" = relink; then
15731 # Fast installation is not supported
15732 enable_fast_install=no
15733elif test "$shlibpath_overrides_runpath" = yes ||
15734 test "$enable_shared" = no; then
15735 # Fast installation is not necessary
15736 enable_fast_install=needless
15737fi
15738
15739striplib=
15740old_striplib=
15741echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15742echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15743if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15746 echo "$as_me:$LINENO: result: yes" >&5
15747echo "${ECHO_T}yes" >&6
15748else
15749# FIXME - insert some real tests, host_os isn't really good enough
15750 case $host_os in
15751 darwin*)
15752 if test -n "$STRIP" ; then
15753 striplib="$STRIP -x"
15754 echo "$as_me:$LINENO: result: yes" >&5
15755echo "${ECHO_T}yes" >&6
15756 else
15757 echo "$as_me:$LINENO: result: no" >&5
15758echo "${ECHO_T}no" >&6
15759fi
15760 ;;
15761 *)
15762 echo "$as_me:$LINENO: result: no" >&5
15763echo "${ECHO_T}no" >&6
15764 ;;
15765 esac
15766fi
15767
15768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15770library_names_spec=
15771libname_spec='lib$name'
15772soname_spec=
15773shrext=".so"
15774postinstall_cmds=
15775postuninstall_cmds=
15776finish_cmds=
15777finish_eval=
15778shlibpath_var=
15779shlibpath_overrides_runpath=unknown
15780version_type=none
15781dynamic_linker="$host_os ld.so"
15782sys_lib_dlsearch_path_spec="/lib /usr/lib"
15783if test "$GCC" = yes; then
15784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15786 # if the path contains ";" then we assume it to be the separator
15787 # otherwise default to the standard path separator (i.e. ":") - it is
15788 # assumed that no part of a normal pathname contains ";" but that should
15789 # okay in the real world where ";" in dirpaths is itself problematic.
15790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15791 else
15792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15793 fi
15794else
15795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15796fi
15797need_lib_prefix=unknown
15798hardcode_into_libs=no
15799
15800# when you set need_version to no, make sure it does not cause -set_version
15801# flags to be left without arguments
15802need_version=unknown
15803
15804case $host_os in
15805aix3*)
15806 version_type=linux
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15808 shlibpath_var=LIBPATH
15809
15810 # AIX 3 has no versioning support, so we append a major version to the name.
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 ;;
15813
15814aix4* | aix5*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 hardcode_into_libs=yes
15819 if test "$host_cpu" = ia64; then
15820 # AIX 5 supports IA64
15821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15822 shlibpath_var=LD_LIBRARY_PATH
15823 else
15824 # With GCC up to 2.95.x, collect2 would create an import file
15825 # for dependence libraries. The import file would start with
15826 # the line `#! .'. This would cause the generated library to
15827 # depend on `.', always an invalid library. This was fixed in
15828 # development snapshots of GCC prior to 3.0.
15829 case $host_os in
15830 aix4 | aix4.[01] | aix4.[01].*)
15831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15832 echo ' yes '
15833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15834 :
15835 else
15836 can_build_shared=no
15837 fi
15838 ;;
15839 esac
15840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15841 # soname into executable. Probably we can add versioning support to
15842 # collect2, so additional links can be useful in future.
15843 if test "$aix_use_runtimelinking" = yes; then
15844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15845 # instead of lib<name>.a to let people know that these are not
15846 # typical AIX shared libraries.
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 else
15849 # We preserve .a as extension for shared libraries through AIX4.2
15850 # and later when we are not doing run time linking.
15851 library_names_spec='${libname}${release}.a $libname.a'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 fi
15854 shlibpath_var=LIBPATH
15855 fi
15856 ;;
15857
15858amigaos*)
15859 library_names_spec='$libname.ixlibrary $libname.a'
15860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15861 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'
15862 ;;
15863
15864beos*)
15865 library_names_spec='${libname}${shared_ext}'
15866 dynamic_linker="$host_os ld.so"
15867 shlibpath_var=LIBRARY_PATH
15868 ;;
15869
15870bsdi4*)
15871 version_type=linux
15872 need_version=no
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15879 # the default ld.so.conf also contains /usr/contrib/lib and
15880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15881 # libtool to hard-code these into programs
15882 ;;
15883
15884cygwin* | mingw* | pw32*)
15885 version_type=windows
15886 shrext=".dll"
15887 need_version=no
15888 need_lib_prefix=no
15889
15890 case $GCC,$host_os in
15891 yes,cygwin* | yes,mingw* | yes,pw32*)
15892 library_names_spec='$libname.dll.a'
15893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15894 postinstall_cmds='base_file=`basename \${file}`~
15895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15896 dldir=$destdir/`dirname \$dlpath`~
15897 test -d \$dldir || mkdir -p \$dldir~
15898 $install_prog $dir/$dlname \$dldir/$dlname'
15899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15900 dlpath=$dir/\$dldll~
15901 $rm \$dlpath'
15902 shlibpath_overrides_runpath=yes
15903
15904 case $host_os in
15905 cygwin*)
15906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15909 ;;
15910 mingw*)
15911 # MinGW DLLs use traditional 'lib' prefix
15912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15915 # It is most probably a Windows format PATH printed by
15916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15917 # path with ; separators, and with drive letters. We can handle the
15918 # drive letters (cygwin fileutils understands them), so leave them,
15919 # especially as we might pass files found there to a mingw objdump,
15920 # which wouldn't understand a cygwinified path. Ahh.
15921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15922 else
15923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15924 fi
15925 ;;
15926 pw32*)
15927 # pw32 DLLs use 'pw' prefix rather than 'lib'
15928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15929 ;;
15930 esac
15931 ;;
15932
15933 *)
15934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15935 ;;
15936 esac
15937 dynamic_linker='Win32 ld.exe'
15938 # FIXME: first we should search . and the directory the executable is in
15939 shlibpath_var=PATH
15940 ;;
15941
15942darwin* | rhapsody*)
15943 dynamic_linker="$host_os dyld"
15944 version_type=darwin
15945 need_lib_prefix=no
15946 need_version=no
15947 # FIXME: Relying on posixy $() will cause problems for
15948 # cross-compilation, but unfortunately the echo tests do not
15949 # yet detect zsh echo's removal of \ escapes.
15950 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15951 soname_spec='${libname}${release}${major}$shared_ext'
15952 shlibpath_overrides_runpath=yes
15953 shlibpath_var=DYLD_LIBRARY_PATH
15954 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15956 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15957 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"`
15958 fi
15959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15960 ;;
15961
15962dgux*)
15963 version_type=linux
15964 need_lib_prefix=no
15965 need_version=no
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 ;;
15970
15971freebsd1*)
15972 dynamic_linker=no
15973 ;;
15974
15975freebsd*)
15976 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15977 version_type=freebsd-$objformat
15978 case $version_type in
15979 freebsd-elf*)
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15981 need_version=no
15982 need_lib_prefix=no
15983 ;;
15984 freebsd-*)
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15986 need_version=yes
15987 ;;
15988 esac
15989 shlibpath_var=LD_LIBRARY_PATH
15990 case $host_os in
15991 freebsd2*)
15992 shlibpath_overrides_runpath=yes
15993 ;;
15994 freebsd3.01* | freebsdelf3.01*)
15995 shlibpath_overrides_runpath=yes
15996 hardcode_into_libs=yes
15997 ;;
15998 *) # from 3.2 on
15999 shlibpath_overrides_runpath=no
16000 hardcode_into_libs=yes
16001 ;;
16002 esac
16003 ;;
16004
16005gnu*)
16006 version_type=linux
16007 need_lib_prefix=no
16008 need_version=no
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 hardcode_into_libs=yes
16013 ;;
16014
16015hpux9* | hpux10* | hpux11*)
16016 # Give a soname corresponding to the major version so that dld.sl refuses to
16017 # link against other versions.
16018 version_type=sunos
16019 need_lib_prefix=no
16020 need_version=no
16021 case "$host_cpu" in
16022 ia64*)
16023 shrext='.so'
16024 hardcode_into_libs=yes
16025 dynamic_linker="$host_os dld.so"
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 if test "X$HPUX_IA64_MODE" = X32; then
16031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16032 else
16033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16034 fi
16035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16036 ;;
16037 hppa*64*)
16038 shrext='.sl'
16039 hardcode_into_libs=yes
16040 dynamic_linker="$host_os dld.sl"
16041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16047 ;;
16048 *)
16049 shrext='.sl'
16050 dynamic_linker="$host_os dld.sl"
16051 shlibpath_var=SHLIB_PATH
16052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 ;;
16056 esac
16057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16058 postinstall_cmds='chmod 555 $lib'
16059 ;;
16060
16061irix5* | irix6* | nonstopux*)
16062 case $host_os in
16063 nonstopux*) version_type=nonstopux ;;
16064 *)
16065 if test "$lt_cv_prog_gnu_ld" = yes; then
16066 version_type=linux
16067 else
16068 version_type=irix
16069 fi ;;
16070 esac
16071 need_lib_prefix=no
16072 need_version=no
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16075 case $host_os in
16076 irix5* | nonstopux*)
16077 libsuff= shlibsuff=
16078 ;;
16079 *)
16080 case $LD in # libtool.m4 will add one of these switches to LD
16081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16082 libsuff= shlibsuff= libmagic=32-bit;;
16083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16084 libsuff=32 shlibsuff=N32 libmagic=N32;;
16085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16087 *) libsuff= shlibsuff= libmagic=never-match;;
16088 esac
16089 ;;
16090 esac
16091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16092 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16095 hardcode_into_libs=yes
16096 ;;
16097
16098# No shared lib support for Linux oldld, aout, or coff.
16099linux*oldld* | linux*aout* | linux*coff*)
16100 dynamic_linker=no
16101 ;;
16102
16103# This must be Linux ELF.
16104linux*)
16105 version_type=linux
16106 need_lib_prefix=no
16107 need_version=no
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=no
16113 # This implies no fast_install, which is unacceptable.
16114 # Some rework will be needed to allow for fast_install
16115 # before this can be enabled.
16116 hardcode_into_libs=yes
16117
16118 # We used to test for /lib/ld.so.1 and disable shared libraries on
16119 # powerpc, because MkLinux only supported shared libraries with the
16120 # GNU dynamic linker. Since this was broken with cross compilers,
16121 # most powerpc-linux boxes support dynamic linking these days and
16122 # people can always --disable-shared, the test was removed, and we
16123 # assume the GNU/Linux dynamic linker is in use.
16124 dynamic_linker='GNU/Linux ld.so'
16125 ;;
16126
16127netbsd*)
16128 version_type=sunos
16129 need_lib_prefix=no
16130 need_version=no
16131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 dynamic_linker='NetBSD (a.out) ld.so'
16135 else
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 dynamic_linker='NetBSD ld.elf_so'
16139 fi
16140 shlibpath_var=LD_LIBRARY_PATH
16141 shlibpath_overrides_runpath=yes
16142 hardcode_into_libs=yes
16143 ;;
16144
16145newsos6)
16146 version_type=linux
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 ;;
16151
16152nto-qnx)
16153 version_type=linux
16154 need_lib_prefix=no
16155 need_version=no
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 ;;
16161
16162openbsd*)
16163 version_type=sunos
16164 need_lib_prefix=no
16165 need_version=no
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16170 case $host_os in
16171 openbsd2.[89] | openbsd2.[89].*)
16172 shlibpath_overrides_runpath=no
16173 ;;
16174 *)
16175 shlibpath_overrides_runpath=yes
16176 ;;
16177 esac
16178 else
16179 shlibpath_overrides_runpath=yes
16180 fi
16181 ;;
16182
16183os2*)
16184 libname_spec='$name'
16185 shrext=".dll"
16186 need_lib_prefix=no
16187 library_names_spec='$libname${shared_ext} $libname.a'
16188 dynamic_linker='OS/2 ld.exe'
16189 shlibpath_var=LIBPATH
16190 ;;
16191
16192osf3* | osf4* | osf5*)
16193 version_type=osf
16194 need_lib_prefix=no
16195 need_version=no
16196 soname_spec='${libname}${release}${shared_ext}$major'
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16200 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16201 ;;
16202
16203sco3.2v5*)
16204 version_type=osf
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 ;;
16209
16210solaris*)
16211 version_type=linux
16212 need_lib_prefix=no
16213 need_version=no
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes
16218 hardcode_into_libs=yes
16219 # ldd complains unless libraries are executable
16220 postinstall_cmds='chmod +x $lib'
16221 ;;
16222
16223sunos4*)
16224 version_type=sunos
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 if test "$with_gnu_ld" = yes; then
16230 need_lib_prefix=no
16231 fi
16232 need_version=yes
16233 ;;
16234
16235sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16236 version_type=linux
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 case $host_vendor in
16241 sni)
16242 shlibpath_overrides_runpath=no
16243 need_lib_prefix=no
16244 export_dynamic_flag_spec='${wl}-Blargedynsym'
16245 runpath_var=LD_RUN_PATH
16246 ;;
16247 siemens)
16248 need_lib_prefix=no
16249 ;;
16250 motorola)
16251 need_lib_prefix=no
16252 need_version=no
16253 shlibpath_overrides_runpath=no
16254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16255 ;;
16256 esac
16257 ;;
16258
16259sysv4*MP*)
16260 if test -d /usr/nec ;then
16261 version_type=linux
16262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16263 soname_spec='$libname${shared_ext}.$major'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 fi
16266 ;;
16267
16268uts4*)
16269 version_type=linux
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 ;;
16274
16275*)
16276 dynamic_linker=no
16277 ;;
16278esac
16279echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16280echo "${ECHO_T}$dynamic_linker" >&6
16281test "$dynamic_linker" = no && can_build_shared=no
16282
16283if test "x$enable_dlopen" != xyes; then
16284 enable_dlopen=unknown
16285 enable_dlopen_self=unknown
16286 enable_dlopen_self_static=unknown
16287else
16288 lt_cv_dlopen=no
16289 lt_cv_dlopen_libs=
16290
16291 case $host_os in
16292 beos*)
16293 lt_cv_dlopen="load_add_on"
16294 lt_cv_dlopen_libs=
16295 lt_cv_dlopen_self=yes
16296 ;;
16297
16298 mingw* | pw32*)
16299 lt_cv_dlopen="LoadLibrary"
16300 lt_cv_dlopen_libs=
16301 ;;
16302
16303 cygwin*)
16304 lt_cv_dlopen="dlopen"
16305 lt_cv_dlopen_libs=
16306 ;;
16307
16308 darwin*)
16309 # if libdl is installed we need to link against it
16310 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16311echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16312if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315 ac_check_lib_save_LIBS=$LIBS
16316LIBS="-ldl $LIBS"
16317cat >conftest.$ac_ext <<_ACEOF
16318#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016324
16325/* Override any gcc2 internal prototype to avoid an error. */
16326#ifdef __cplusplus
16327extern "C"
16328#endif
16329/* We use char because int might match the return type of a gcc2
16330 builtin and then its argument prototype would still apply. */
16331char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016332int
16333main ()
16334{
16335dlopen ();
16336 ;
16337 return 0;
16338}
16339_ACEOF
16340rm -f conftest.$ac_objext conftest$ac_exeext
16341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_cv_lib_dl_dlopen=yes
16353else
16354 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016355sed 's/^/| /' conftest.$ac_ext >&5
16356
John Criswell47fdd832003-07-14 16:52:07 +000016357ac_cv_lib_dl_dlopen=no
16358fi
16359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360LIBS=$ac_check_lib_save_LIBS
16361fi
16362echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16364if test $ac_cv_lib_dl_dlopen = yes; then
16365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16366else
16367
16368 lt_cv_dlopen="dyld"
16369 lt_cv_dlopen_libs=
16370 lt_cv_dlopen_self=yes
16371
16372fi
16373
16374 ;;
16375
16376 *)
16377 echo "$as_me:$LINENO: checking for shl_load" >&5
16378echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16379if test "${ac_cv_func_shl_load+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381else
16382 cat >conftest.$ac_ext <<_ACEOF
16383#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016389/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016390 which can conflict with char shl_load (); below.
16391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392 <limits.h> exists even on freestanding compilers. */
16393#ifdef __STDC__
16394# include <limits.h>
16395#else
16396# include <assert.h>
16397#endif
John Criswell47fdd832003-07-14 16:52:07 +000016398/* Override any gcc2 internal prototype to avoid an error. */
16399#ifdef __cplusplus
16400extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016401{
John Criswell47fdd832003-07-14 16:52:07 +000016402#endif
16403/* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16405char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016406/* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409#if defined (__stub_shl_load) || defined (__stub___shl_load)
16410choke me
16411#else
John Criswell392aaa32003-07-22 19:18:09 +000016412char (*f) () = shl_load;
16413#endif
16414#ifdef __cplusplus
16415}
John Criswell47fdd832003-07-14 16:52:07 +000016416#endif
16417
John Criswell392aaa32003-07-22 19:18:09 +000016418int
16419main ()
16420{
16421return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext conftest$ac_exeext
16427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_func_shl_load=yes
16439else
16440 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016441sed 's/^/| /' conftest.$ac_ext >&5
16442
John Criswell47fdd832003-07-14 16:52:07 +000016443ac_cv_func_shl_load=no
16444fi
16445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446fi
16447echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16448echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16449if test $ac_cv_func_shl_load = yes; then
16450 lt_cv_dlopen="shl_load"
16451else
16452 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16453echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16454if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456else
16457 ac_check_lib_save_LIBS=$LIBS
16458LIBS="-ldld $LIBS"
16459cat >conftest.$ac_ext <<_ACEOF
16460#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016466
16467/* Override any gcc2 internal prototype to avoid an error. */
16468#ifdef __cplusplus
16469extern "C"
16470#endif
16471/* We use char because int might match the return type of a gcc2
16472 builtin and then its argument prototype would still apply. */
16473char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016474int
16475main ()
16476{
16477shl_load ();
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext conftest$ac_exeext
16483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16484 (eval $ac_link) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_lib_dld_shl_load=yes
16495else
16496 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016497sed 's/^/| /' conftest.$ac_ext >&5
16498
John Criswell47fdd832003-07-14 16:52:07 +000016499ac_cv_lib_dld_shl_load=no
16500fi
16501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16502LIBS=$ac_check_lib_save_LIBS
16503fi
16504echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16505echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16506if test $ac_cv_lib_dld_shl_load = yes; then
16507 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16508else
16509 echo "$as_me:$LINENO: checking for dlopen" >&5
16510echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16511if test "${ac_cv_func_dlopen+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513else
16514 cat >conftest.$ac_ext <<_ACEOF
16515#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016521/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016522 which can conflict with char dlopen (); below.
16523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16524 <limits.h> exists even on freestanding compilers. */
16525#ifdef __STDC__
16526# include <limits.h>
16527#else
16528# include <assert.h>
16529#endif
John Criswell47fdd832003-07-14 16:52:07 +000016530/* Override any gcc2 internal prototype to avoid an error. */
16531#ifdef __cplusplus
16532extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016533{
John Criswell47fdd832003-07-14 16:52:07 +000016534#endif
16535/* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16537char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016538/* The GNU C library defines this for functions which it implements
16539 to always fail with ENOSYS. Some functions are actually named
16540 something starting with __ and the normal name is an alias. */
16541#if defined (__stub_dlopen) || defined (__stub___dlopen)
16542choke me
16543#else
John Criswell392aaa32003-07-22 19:18:09 +000016544char (*f) () = dlopen;
16545#endif
16546#ifdef __cplusplus
16547}
John Criswell47fdd832003-07-14 16:52:07 +000016548#endif
16549
John Criswell392aaa32003-07-22 19:18:09 +000016550int
16551main ()
16552{
16553return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016554 ;
16555 return 0;
16556}
16557_ACEOF
16558rm -f conftest.$ac_objext conftest$ac_exeext
16559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_func_dlopen=yes
16571else
16572 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016573sed 's/^/| /' conftest.$ac_ext >&5
16574
John Criswell47fdd832003-07-14 16:52:07 +000016575ac_cv_func_dlopen=no
16576fi
16577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16578fi
16579echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16580echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16581if test $ac_cv_func_dlopen = yes; then
16582 lt_cv_dlopen="dlopen"
16583else
16584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588else
16589 ac_check_lib_save_LIBS=$LIBS
16590LIBS="-ldl $LIBS"
16591cat >conftest.$ac_ext <<_ACEOF
16592#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
16597/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016598
16599/* Override any gcc2 internal prototype to avoid an error. */
16600#ifdef __cplusplus
16601extern "C"
16602#endif
16603/* We use char because int might match the return type of a gcc2
16604 builtin and then its argument prototype would still apply. */
16605char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016606int
16607main ()
16608{
16609dlopen ();
16610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext conftest$ac_exeext
16615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_lib_dl_dlopen=yes
16627else
16628 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016629sed 's/^/| /' conftest.$ac_ext >&5
16630
John Criswell47fdd832003-07-14 16:52:07 +000016631ac_cv_lib_dl_dlopen=no
16632fi
16633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16634LIBS=$ac_check_lib_save_LIBS
16635fi
16636echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16637echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16638if test $ac_cv_lib_dl_dlopen = yes; then
16639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16640else
16641 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16642echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16643if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 ac_check_lib_save_LIBS=$LIBS
16647LIBS="-lsvld $LIBS"
16648cat >conftest.$ac_ext <<_ACEOF
16649#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
16654/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016655
16656/* Override any gcc2 internal prototype to avoid an error. */
16657#ifdef __cplusplus
16658extern "C"
16659#endif
16660/* We use char because int might match the return type of a gcc2
16661 builtin and then its argument prototype would still apply. */
16662char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016663int
16664main ()
16665{
16666dlopen ();
16667 ;
16668 return 0;
16669}
16670_ACEOF
16671rm -f conftest.$ac_objext conftest$ac_exeext
16672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest$ac_exeext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_lib_svld_dlopen=yes
16684else
16685 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016686sed 's/^/| /' conftest.$ac_ext >&5
16687
John Criswell47fdd832003-07-14 16:52:07 +000016688ac_cv_lib_svld_dlopen=no
16689fi
16690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16691LIBS=$ac_check_lib_save_LIBS
16692fi
16693echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16694echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16695if test $ac_cv_lib_svld_dlopen = yes; then
16696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16697else
16698 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16699echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16700if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702else
16703 ac_check_lib_save_LIBS=$LIBS
16704LIBS="-ldld $LIBS"
16705cat >conftest.$ac_ext <<_ACEOF
16706#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016707/* confdefs.h. */
16708_ACEOF
16709cat confdefs.h >>conftest.$ac_ext
16710cat >>conftest.$ac_ext <<_ACEOF
16711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016712
16713/* Override any gcc2 internal prototype to avoid an error. */
16714#ifdef __cplusplus
16715extern "C"
16716#endif
16717/* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016720int
16721main ()
16722{
16723dld_link ();
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext conftest$ac_exeext
16729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730 (eval $ac_link) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_cv_lib_dld_dld_link=yes
16741else
16742 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016743sed 's/^/| /' conftest.$ac_ext >&5
16744
John Criswell47fdd832003-07-14 16:52:07 +000016745ac_cv_lib_dld_dld_link=no
16746fi
16747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16748LIBS=$ac_check_lib_save_LIBS
16749fi
16750echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16751echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16752if test $ac_cv_lib_dld_dld_link = yes; then
16753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16754fi
16755
16756
16757fi
16758
16759
16760fi
16761
16762
16763fi
16764
16765
16766fi
16767
16768
16769fi
16770
16771 ;;
16772 esac
16773
16774 if test "x$lt_cv_dlopen" != xno; then
16775 enable_dlopen=yes
16776 else
16777 enable_dlopen=no
16778 fi
16779
16780 case $lt_cv_dlopen in
16781 dlopen)
16782 save_CPPFLAGS="$CPPFLAGS"
16783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16784
16785 save_LDFLAGS="$LDFLAGS"
16786 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16787
16788 save_LIBS="$LIBS"
16789 LIBS="$lt_cv_dlopen_libs $LIBS"
16790
16791 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16792echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16793if test "${lt_cv_dlopen_self+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795else
16796 if test "$cross_compiling" = yes; then :
16797 lt_cv_dlopen_self=cross
16798else
16799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16800 lt_status=$lt_dlunknown
16801 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +000016802#line 16802 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016803#include "confdefs.h"
16804
16805#if HAVE_DLFCN_H
16806#include <dlfcn.h>
16807#endif
16808
16809#include <stdio.h>
16810
16811#ifdef RTLD_GLOBAL
16812# define LT_DLGLOBAL RTLD_GLOBAL
16813#else
16814# ifdef DL_GLOBAL
16815# define LT_DLGLOBAL DL_GLOBAL
16816# else
16817# define LT_DLGLOBAL 0
16818# endif
16819#endif
16820
16821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16822 find out it does not work in some platform. */
16823#ifndef LT_DLLAZY_OR_NOW
16824# ifdef RTLD_LAZY
16825# define LT_DLLAZY_OR_NOW RTLD_LAZY
16826# else
16827# ifdef DL_LAZY
16828# define LT_DLLAZY_OR_NOW DL_LAZY
16829# else
16830# ifdef RTLD_NOW
16831# define LT_DLLAZY_OR_NOW RTLD_NOW
16832# else
16833# ifdef DL_NOW
16834# define LT_DLLAZY_OR_NOW DL_NOW
16835# else
16836# define LT_DLLAZY_OR_NOW 0
16837# endif
16838# endif
16839# endif
16840# endif
16841#endif
16842
16843#ifdef __cplusplus
16844extern "C" void exit (int);
16845#endif
16846
16847void fnord() { int i=42;}
16848int main ()
16849{
16850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16851 int status = $lt_dlunknown;
16852
16853 if (self)
16854 {
16855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16857 /* dlclose (self); */
16858 }
16859
16860 exit (status);
16861}
16862EOF
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16868 (./conftest; exit; ) 2>/dev/null
16869 lt_status=$?
16870 case x$lt_status in
16871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16873 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16874 esac
16875 else :
16876 # compilation failed
16877 lt_cv_dlopen_self=no
16878 fi
16879fi
16880rm -fr conftest*
16881
16882
16883fi
16884echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16885echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16886
16887 if test "x$lt_cv_dlopen_self" = xyes; then
16888 LDFLAGS="$LDFLAGS $link_static_flag"
16889 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16890echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16891if test "${lt_cv_dlopen_self_static+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893else
16894 if test "$cross_compiling" = yes; then :
16895 lt_cv_dlopen_self_static=cross
16896else
16897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16898 lt_status=$lt_dlunknown
16899 cat > conftest.$ac_ext <<EOF
John Criswellf02dbf02003-07-22 20:07:49 +000016900#line 16900 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016901#include "confdefs.h"
16902
16903#if HAVE_DLFCN_H
16904#include <dlfcn.h>
16905#endif
16906
16907#include <stdio.h>
16908
16909#ifdef RTLD_GLOBAL
16910# define LT_DLGLOBAL RTLD_GLOBAL
16911#else
16912# ifdef DL_GLOBAL
16913# define LT_DLGLOBAL DL_GLOBAL
16914# else
16915# define LT_DLGLOBAL 0
16916# endif
16917#endif
16918
16919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16920 find out it does not work in some platform. */
16921#ifndef LT_DLLAZY_OR_NOW
16922# ifdef RTLD_LAZY
16923# define LT_DLLAZY_OR_NOW RTLD_LAZY
16924# else
16925# ifdef DL_LAZY
16926# define LT_DLLAZY_OR_NOW DL_LAZY
16927# else
16928# ifdef RTLD_NOW
16929# define LT_DLLAZY_OR_NOW RTLD_NOW
16930# else
16931# ifdef DL_NOW
16932# define LT_DLLAZY_OR_NOW DL_NOW
16933# else
16934# define LT_DLLAZY_OR_NOW 0
16935# endif
16936# endif
16937# endif
16938# endif
16939#endif
16940
16941#ifdef __cplusplus
16942extern "C" void exit (int);
16943#endif
16944
16945void fnord() { int i=42;}
16946int main ()
16947{
16948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16949 int status = $lt_dlunknown;
16950
16951 if (self)
16952 {
16953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16955 /* dlclose (self); */
16956 }
16957
16958 exit (status);
16959}
16960EOF
16961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16962 (eval $ac_link) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16966 (./conftest; exit; ) 2>/dev/null
16967 lt_status=$?
16968 case x$lt_status in
16969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16971 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16972 esac
16973 else :
16974 # compilation failed
16975 lt_cv_dlopen_self_static=no
16976 fi
16977fi
16978rm -fr conftest*
16979
16980
16981fi
16982echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16983echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16984 fi
16985
16986 CPPFLAGS="$save_CPPFLAGS"
16987 LDFLAGS="$save_LDFLAGS"
16988 LIBS="$save_LIBS"
16989 ;;
16990 esac
16991
16992 case $lt_cv_dlopen_self in
16993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16994 *) enable_dlopen_self=unknown ;;
16995 esac
16996
16997 case $lt_cv_dlopen_self_static in
16998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16999 *) enable_dlopen_self_static=unknown ;;
17000 esac
17001fi
17002
17003
17004# The else clause should only fire when bootstrapping the
17005# libtool distribution, otherwise you forgot to ship ltmain.sh
17006# with your package, and you will get complaints that there are
17007# no rules to generate ltmain.sh.
17008if test -f "$ltmain"; then
17009 # See if we are running on zsh, and set the options which allow our commands through
17010 # without removal of \ escapes.
17011 if test -n "${ZSH_VERSION+set}" ; then
17012 setopt NO_GLOB_SUBST
17013 fi
17014 # Now quote all the things that may contain metacharacters while being
17015 # careful not to overquote the AC_SUBSTed values. We take copies of the
17016 # variables and quote the copies for generation of the libtool script.
17017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17018 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17019 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17020 deplibs_check_method reload_flag reload_cmds need_locks \
17021 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17022 lt_cv_sys_global_symbol_to_c_name_address \
17023 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17024 old_postinstall_cmds old_postuninstall_cmds \
17025 compiler_GCJ \
17026 CC_GCJ \
17027 LD_GCJ \
17028 lt_prog_compiler_wl_GCJ \
17029 lt_prog_compiler_pic_GCJ \
17030 lt_prog_compiler_static_GCJ \
17031 lt_prog_compiler_no_builtin_flag_GCJ \
17032 export_dynamic_flag_spec_GCJ \
17033 thread_safe_flag_spec_GCJ \
17034 whole_archive_flag_spec_GCJ \
17035 enable_shared_with_static_runtimes_GCJ \
17036 old_archive_cmds_GCJ \
17037 old_archive_from_new_cmds_GCJ \
17038 predep_objects_GCJ \
17039 postdep_objects_GCJ \
17040 predeps_GCJ \
17041 postdeps_GCJ \
17042 compiler_lib_search_path_GCJ \
17043 archive_cmds_GCJ \
17044 archive_expsym_cmds_GCJ \
17045 postinstall_cmds_GCJ \
17046 postuninstall_cmds_GCJ \
17047 old_archive_from_expsyms_cmds_GCJ \
17048 allow_undefined_flag_GCJ \
17049 no_undefined_flag_GCJ \
17050 export_symbols_cmds_GCJ \
17051 hardcode_libdir_flag_spec_GCJ \
17052 hardcode_libdir_flag_spec_ld_GCJ \
17053 hardcode_libdir_separator_GCJ \
17054 hardcode_automatic_GCJ \
17055 module_cmds_GCJ \
17056 module_expsym_cmds_GCJ \
17057 lt_cv_prog_compiler_c_o_GCJ \
17058 exclude_expsyms_GCJ \
17059 include_expsyms_GCJ; do
17060
17061 case $var in
17062 old_archive_cmds_GCJ | \
17063 old_archive_from_new_cmds_GCJ | \
17064 archive_cmds_GCJ | \
17065 archive_expsym_cmds_GCJ | \
17066 module_cmds_GCJ | \
17067 module_expsym_cmds_GCJ | \
17068 old_archive_from_expsyms_cmds_GCJ | \
17069 export_symbols_cmds_GCJ | \
17070 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17071 postinstall_cmds | postuninstall_cmds | \
17072 old_postinstall_cmds | old_postuninstall_cmds | \
17073 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17074 # Double-quote double-evaled strings.
17075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17076 ;;
17077 *)
17078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17079 ;;
17080 esac
17081 done
17082
17083 case $lt_echo in
17084 *'\$0 --fallback-echo"')
17085 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17086 ;;
17087 esac
17088
17089cfgfile="$ofile"
17090
17091 cat <<__EOF__ >> "$cfgfile"
17092# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17093
17094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17095
17096# Shell to use when invoking shell scripts.
17097SHELL=$lt_SHELL
17098
17099# Whether or not to build shared libraries.
17100build_libtool_libs=$enable_shared
17101
17102# Whether or not to build static libraries.
17103build_old_libs=$enable_static
17104
17105# Whether or not to add -lc for building shared libraries.
17106build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17107
17108# Whether or not to disallow shared libs when runtime libs are static
17109allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17110
17111# Whether or not to optimize for fast installation.
17112fast_install=$enable_fast_install
17113
17114# The host system.
17115host_alias=$host_alias
17116host=$host
17117
17118# An echo program that does not interpret backslashes.
17119echo=$lt_echo
17120
17121# The archiver.
17122AR=$lt_AR
17123AR_FLAGS=$lt_AR_FLAGS
17124
17125# A C compiler.
17126LTCC=$lt_LTCC
17127
17128# A language-specific compiler.
17129CC=$lt_compiler_GCJ
17130
17131# Is the compiler the GNU C compiler?
17132with_gcc=$GCC_GCJ
17133
17134# An ERE matcher.
17135EGREP=$lt_EGREP
17136
17137# The linker used to build libraries.
17138LD=$lt_LD_GCJ
17139
17140# Whether we need hard or soft links.
17141LN_S=$lt_LN_S
17142
17143# A BSD-compatible nm program.
17144NM=$lt_NM
17145
17146# A symbol stripping program
17147STRIP=$STRIP
17148
17149# Used to examine libraries when file_magic_cmd begins "file"
17150MAGIC_CMD=$MAGIC_CMD
17151
17152# Used on cygwin: DLL creation program.
17153DLLTOOL="$DLLTOOL"
17154
17155# Used on cygwin: object dumper.
17156OBJDUMP="$OBJDUMP"
17157
17158# Used on cygwin: assembler.
17159AS="$AS"
17160
17161# The name of the directory that contains temporary libtool files.
17162objdir=$objdir
17163
17164# How to create reloadable object files.
17165reload_flag=$lt_reload_flag
17166reload_cmds=$lt_reload_cmds
17167
17168# How to pass a linker flag through the compiler.
17169wl=$lt_lt_prog_compiler_wl_GCJ
17170
17171# Object file suffix (normally "o").
17172objext="$ac_objext"
17173
17174# Old archive suffix (normally "a").
17175libext="$libext"
17176
17177# Shared library suffix (normally ".so").
17178shrext='$shrext'
17179
17180# Executable file suffix (normally "").
17181exeext="$exeext"
17182
17183# Additional compiler flags for building library objects.
17184pic_flag=$lt_lt_prog_compiler_pic_GCJ
17185pic_mode=$pic_mode
17186
17187# What is the maximum length of a command?
17188max_cmd_len=$lt_cv_sys_max_cmd_len
17189
17190# Does compiler simultaneously support -c and -o options?
17191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17192
17193# Must we lock files when doing compilation ?
17194need_locks=$lt_need_locks
17195
17196# Do we need the lib prefix for modules?
17197need_lib_prefix=$need_lib_prefix
17198
17199# Do we need a version for libraries?
17200need_version=$need_version
17201
17202# Whether dlopen is supported.
17203dlopen_support=$enable_dlopen
17204
17205# Whether dlopen of programs is supported.
17206dlopen_self=$enable_dlopen_self
17207
17208# Whether dlopen of statically linked programs is supported.
17209dlopen_self_static=$enable_dlopen_self_static
17210
17211# Compiler flag to prevent dynamic linking.
17212link_static_flag=$lt_lt_prog_compiler_static_GCJ
17213
17214# Compiler flag to turn off builtin functions.
17215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17216
17217# Compiler flag to allow reflexive dlopens.
17218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17219
17220# Compiler flag to generate shared objects directly from archives.
17221whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17222
17223# Compiler flag to generate thread-safe objects.
17224thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17225
17226# Library versioning type.
17227version_type=$version_type
17228
17229# Format of library name prefix.
17230libname_spec=$lt_libname_spec
17231
17232# List of archive names. First name is the real one, the rest are links.
17233# The last name is the one that the linker finds with -lNAME.
17234library_names_spec=$lt_library_names_spec
17235
17236# The coded name of the library, if different from the real name.
17237soname_spec=$lt_soname_spec
17238
17239# Commands used to build and install an old-style archive.
17240RANLIB=$lt_RANLIB
17241old_archive_cmds=$lt_old_archive_cmds_GCJ
17242old_postinstall_cmds=$lt_old_postinstall_cmds
17243old_postuninstall_cmds=$lt_old_postuninstall_cmds
17244
17245# Create an old-style archive from a shared archive.
17246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17247
17248# Create a temporary old-style archive to link instead of a shared archive.
17249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17250
17251# Commands used to build and install a shared archive.
17252archive_cmds=$lt_archive_cmds_GCJ
17253archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17254postinstall_cmds=$lt_postinstall_cmds
17255postuninstall_cmds=$lt_postuninstall_cmds
17256
17257# Commands used to build a loadable module (assumed same as above if empty)
17258module_cmds=$lt_module_cmds_GCJ
17259module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17260
17261# Commands to strip libraries.
17262old_striplib=$lt_old_striplib
17263striplib=$lt_striplib
17264
17265# Dependencies to place before the objects being linked to create a
17266# shared library.
17267predep_objects=$lt_predep_objects_GCJ
17268
17269# Dependencies to place after the objects being linked to create a
17270# shared library.
17271postdep_objects=$lt_postdep_objects_GCJ
17272
17273# Dependencies to place before the objects being linked to create a
17274# shared library.
17275predeps=$lt_predeps_GCJ
17276
17277# Dependencies to place after the objects being linked to create a
17278# shared library.
17279postdeps=$lt_postdeps_GCJ
17280
17281# The library search path used internally by the compiler when linking
17282# a shared library.
17283compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17284
17285# Method to check whether dependent libraries are shared objects.
17286deplibs_check_method=$lt_deplibs_check_method
17287
17288# Command to use when deplibs_check_method == file_magic.
17289file_magic_cmd=$lt_file_magic_cmd
17290
17291# Flag that allows shared libraries with undefined symbols to be built.
17292allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17293
17294# Flag that forces no undefined symbols.
17295no_undefined_flag=$lt_no_undefined_flag_GCJ
17296
17297# Commands used to finish a libtool library installation in a directory.
17298finish_cmds=$lt_finish_cmds
17299
17300# Same as above, but a single script fragment to be evaled but not shown.
17301finish_eval=$lt_finish_eval
17302
17303# Take the output of nm and produce a listing of raw symbols and C names.
17304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17305
17306# Transform the output of nm in a proper C declaration
17307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17308
17309# Transform the output of nm in a C name address pair
17310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17311
17312# This is the shared library runtime path variable.
17313runpath_var=$runpath_var
17314
17315# This is the shared library path variable.
17316shlibpath_var=$shlibpath_var
17317
17318# Is shlibpath searched before the hard-coded library search path?
17319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17320
17321# How to hardcode a shared library path into an executable.
17322hardcode_action=$hardcode_action_GCJ
17323
17324# Whether we should hardcode library paths into libraries.
17325hardcode_into_libs=$hardcode_into_libs
17326
17327# Flag to hardcode \$libdir into a binary during linking.
17328# This must work even if \$libdir does not exist.
17329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17330
17331# If ld is used when linking, flag to hardcode \$libdir into
17332# a binary during linking. This must work even if \$libdir does
17333# not exist.
17334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17335
17336# Whether we need a single -rpath flag with a separated argument.
17337hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17338
17339# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17340# resulting binary.
17341hardcode_direct=$hardcode_direct_GCJ
17342
17343# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17344# resulting binary.
17345hardcode_minus_L=$hardcode_minus_L_GCJ
17346
17347# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17348# the resulting binary.
17349hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17350
17351# Set to yes if building a shared library automatically hardcodes DIR into the library
17352# and all subsequent libraries and executables linked against it.
17353hardcode_automatic=$hardcode_automatic_GCJ
17354
17355# Variables whose values should be saved in libtool wrapper scripts and
17356# restored at relink time.
17357variables_saved_for_relink="$variables_saved_for_relink"
17358
17359# Whether libtool must link a program against all its dependency libraries.
17360link_all_deplibs=$link_all_deplibs_GCJ
17361
17362# Compile-time system search path for libraries
17363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17364
17365# Run-time system search path for libraries
17366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17367
17368# Fix the shell variable \$srcfile for the compiler.
17369fix_srcfile_path="$fix_srcfile_path_GCJ"
17370
17371# Set to yes if exported symbols are required.
17372always_export_symbols=$always_export_symbols_GCJ
17373
17374# The commands to list exported symbols.
17375export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17376
17377# The commands to extract the exported symbol list from a shared archive.
17378extract_expsyms_cmds=$lt_extract_expsyms_cmds
17379
17380# Symbols that should not be listed in the preloaded symbols.
17381exclude_expsyms=$lt_exclude_expsyms_GCJ
17382
17383# Symbols that must always be exported.
17384include_expsyms=$lt_include_expsyms_GCJ
17385
17386# ### END LIBTOOL TAG CONFIG: $tagname
17387
17388__EOF__
17389
17390
17391else
17392 # If there is no Makefile yet, we rely on a make rule to execute
17393 # `config.status --recheck' to rerun these tests and create the
17394 # libtool script then.
17395 test -f Makefile && make "$ltmain"
17396fi
17397
17398
17399ac_ext=c
17400ac_cpp='$CPP $CPPFLAGS'
17401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403ac_compiler_gnu=$ac_cv_c_compiler_gnu
17404
17405CC="$lt_save_CC"
17406
17407 else
17408 tagname=""
17409 fi
17410 ;;
17411
17412 RC)
17413
17414
17415
17416# Source file extension for RC test sources.
17417ac_ext=rc
17418
17419# Object file extension for compiled RC test sources.
17420objext=o
17421objext_RC=$objext
17422
17423# Code to be used in simple compile tests
17424lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17425
17426# Code to be used in simple link tests
17427lt_simple_link_test_code="$lt_simple_compile_test_code"
17428
17429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17430
17431# If no C compiler was specified, use CC.
17432LTCC=${LTCC-"$CC"}
17433
17434# Allow CC to be a program name with arguments.
17435compiler=$CC
17436
17437
17438# Allow CC to be a program name with arguments.
17439lt_save_CC="$CC"
17440CC=${RC-"windres"}
17441compiler=$CC
17442compiler_RC=$CC
17443lt_cv_prog_compiler_c_o_RC=yes
17444
17445# The else clause should only fire when bootstrapping the
17446# libtool distribution, otherwise you forgot to ship ltmain.sh
17447# with your package, and you will get complaints that there are
17448# no rules to generate ltmain.sh.
17449if test -f "$ltmain"; then
17450 # See if we are running on zsh, and set the options which allow our commands through
17451 # without removal of \ escapes.
17452 if test -n "${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17454 fi
17455 # Now quote all the things that may contain metacharacters while being
17456 # careful not to overquote the AC_SUBSTed values. We take copies of the
17457 # variables and quote the copies for generation of the libtool script.
17458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17461 deplibs_check_method reload_flag reload_cmds need_locks \
17462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17463 lt_cv_sys_global_symbol_to_c_name_address \
17464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17465 old_postinstall_cmds old_postuninstall_cmds \
17466 compiler_RC \
17467 CC_RC \
17468 LD_RC \
17469 lt_prog_compiler_wl_RC \
17470 lt_prog_compiler_pic_RC \
17471 lt_prog_compiler_static_RC \
17472 lt_prog_compiler_no_builtin_flag_RC \
17473 export_dynamic_flag_spec_RC \
17474 thread_safe_flag_spec_RC \
17475 whole_archive_flag_spec_RC \
17476 enable_shared_with_static_runtimes_RC \
17477 old_archive_cmds_RC \
17478 old_archive_from_new_cmds_RC \
17479 predep_objects_RC \
17480 postdep_objects_RC \
17481 predeps_RC \
17482 postdeps_RC \
17483 compiler_lib_search_path_RC \
17484 archive_cmds_RC \
17485 archive_expsym_cmds_RC \
17486 postinstall_cmds_RC \
17487 postuninstall_cmds_RC \
17488 old_archive_from_expsyms_cmds_RC \
17489 allow_undefined_flag_RC \
17490 no_undefined_flag_RC \
17491 export_symbols_cmds_RC \
17492 hardcode_libdir_flag_spec_RC \
17493 hardcode_libdir_flag_spec_ld_RC \
17494 hardcode_libdir_separator_RC \
17495 hardcode_automatic_RC \
17496 module_cmds_RC \
17497 module_expsym_cmds_RC \
17498 lt_cv_prog_compiler_c_o_RC \
17499 exclude_expsyms_RC \
17500 include_expsyms_RC; do
17501
17502 case $var in
17503 old_archive_cmds_RC | \
17504 old_archive_from_new_cmds_RC | \
17505 archive_cmds_RC | \
17506 archive_expsym_cmds_RC | \
17507 module_cmds_RC | \
17508 module_expsym_cmds_RC | \
17509 old_archive_from_expsyms_cmds_RC | \
17510 export_symbols_cmds_RC | \
17511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17512 postinstall_cmds | postuninstall_cmds | \
17513 old_postinstall_cmds | old_postuninstall_cmds | \
17514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17515 # Double-quote double-evaled strings.
17516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17517 ;;
17518 *)
17519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17520 ;;
17521 esac
17522 done
17523
17524 case $lt_echo in
17525 *'\$0 --fallback-echo"')
17526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17527 ;;
17528 esac
17529
17530cfgfile="$ofile"
17531
17532 cat <<__EOF__ >> "$cfgfile"
17533# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17534
17535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17536
17537# Shell to use when invoking shell scripts.
17538SHELL=$lt_SHELL
17539
17540# Whether or not to build shared libraries.
17541build_libtool_libs=$enable_shared
17542
17543# Whether or not to build static libraries.
17544build_old_libs=$enable_static
17545
17546# Whether or not to add -lc for building shared libraries.
17547build_libtool_need_lc=$archive_cmds_need_lc_RC
17548
17549# Whether or not to disallow shared libs when runtime libs are static
17550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17551
17552# Whether or not to optimize for fast installation.
17553fast_install=$enable_fast_install
17554
17555# The host system.
17556host_alias=$host_alias
17557host=$host
17558
17559# An echo program that does not interpret backslashes.
17560echo=$lt_echo
17561
17562# The archiver.
17563AR=$lt_AR
17564AR_FLAGS=$lt_AR_FLAGS
17565
17566# A C compiler.
17567LTCC=$lt_LTCC
17568
17569# A language-specific compiler.
17570CC=$lt_compiler_RC
17571
17572# Is the compiler the GNU C compiler?
17573with_gcc=$GCC_RC
17574
17575# An ERE matcher.
17576EGREP=$lt_EGREP
17577
17578# The linker used to build libraries.
17579LD=$lt_LD_RC
17580
17581# Whether we need hard or soft links.
17582LN_S=$lt_LN_S
17583
17584# A BSD-compatible nm program.
17585NM=$lt_NM
17586
17587# A symbol stripping program
17588STRIP=$STRIP
17589
17590# Used to examine libraries when file_magic_cmd begins "file"
17591MAGIC_CMD=$MAGIC_CMD
17592
17593# Used on cygwin: DLL creation program.
17594DLLTOOL="$DLLTOOL"
17595
17596# Used on cygwin: object dumper.
17597OBJDUMP="$OBJDUMP"
17598
17599# Used on cygwin: assembler.
17600AS="$AS"
17601
17602# The name of the directory that contains temporary libtool files.
17603objdir=$objdir
17604
17605# How to create reloadable object files.
17606reload_flag=$lt_reload_flag
17607reload_cmds=$lt_reload_cmds
17608
17609# How to pass a linker flag through the compiler.
17610wl=$lt_lt_prog_compiler_wl_RC
17611
17612# Object file suffix (normally "o").
17613objext="$ac_objext"
17614
17615# Old archive suffix (normally "a").
17616libext="$libext"
17617
17618# Shared library suffix (normally ".so").
17619shrext='$shrext'
17620
17621# Executable file suffix (normally "").
17622exeext="$exeext"
17623
17624# Additional compiler flags for building library objects.
17625pic_flag=$lt_lt_prog_compiler_pic_RC
17626pic_mode=$pic_mode
17627
17628# What is the maximum length of a command?
17629max_cmd_len=$lt_cv_sys_max_cmd_len
17630
17631# Does compiler simultaneously support -c and -o options?
17632compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17633
17634# Must we lock files when doing compilation ?
17635need_locks=$lt_need_locks
17636
17637# Do we need the lib prefix for modules?
17638need_lib_prefix=$need_lib_prefix
17639
17640# Do we need a version for libraries?
17641need_version=$need_version
17642
17643# Whether dlopen is supported.
17644dlopen_support=$enable_dlopen
17645
17646# Whether dlopen of programs is supported.
17647dlopen_self=$enable_dlopen_self
17648
17649# Whether dlopen of statically linked programs is supported.
17650dlopen_self_static=$enable_dlopen_self_static
17651
17652# Compiler flag to prevent dynamic linking.
17653link_static_flag=$lt_lt_prog_compiler_static_RC
17654
17655# Compiler flag to turn off builtin functions.
17656no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17657
17658# Compiler flag to allow reflexive dlopens.
17659export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17660
17661# Compiler flag to generate shared objects directly from archives.
17662whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17663
17664# Compiler flag to generate thread-safe objects.
17665thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17666
17667# Library versioning type.
17668version_type=$version_type
17669
17670# Format of library name prefix.
17671libname_spec=$lt_libname_spec
17672
17673# List of archive names. First name is the real one, the rest are links.
17674# The last name is the one that the linker finds with -lNAME.
17675library_names_spec=$lt_library_names_spec
17676
17677# The coded name of the library, if different from the real name.
17678soname_spec=$lt_soname_spec
17679
17680# Commands used to build and install an old-style archive.
17681RANLIB=$lt_RANLIB
17682old_archive_cmds=$lt_old_archive_cmds_RC
17683old_postinstall_cmds=$lt_old_postinstall_cmds
17684old_postuninstall_cmds=$lt_old_postuninstall_cmds
17685
17686# Create an old-style archive from a shared archive.
17687old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17688
17689# Create a temporary old-style archive to link instead of a shared archive.
17690old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17691
17692# Commands used to build and install a shared archive.
17693archive_cmds=$lt_archive_cmds_RC
17694archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17695postinstall_cmds=$lt_postinstall_cmds
17696postuninstall_cmds=$lt_postuninstall_cmds
17697
17698# Commands used to build a loadable module (assumed same as above if empty)
17699module_cmds=$lt_module_cmds_RC
17700module_expsym_cmds=$lt_module_expsym_cmds_RC
17701
17702# Commands to strip libraries.
17703old_striplib=$lt_old_striplib
17704striplib=$lt_striplib
17705
17706# Dependencies to place before the objects being linked to create a
17707# shared library.
17708predep_objects=$lt_predep_objects_RC
17709
17710# Dependencies to place after the objects being linked to create a
17711# shared library.
17712postdep_objects=$lt_postdep_objects_RC
17713
17714# Dependencies to place before the objects being linked to create a
17715# shared library.
17716predeps=$lt_predeps_RC
17717
17718# Dependencies to place after the objects being linked to create a
17719# shared library.
17720postdeps=$lt_postdeps_RC
17721
17722# The library search path used internally by the compiler when linking
17723# a shared library.
17724compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17725
17726# Method to check whether dependent libraries are shared objects.
17727deplibs_check_method=$lt_deplibs_check_method
17728
17729# Command to use when deplibs_check_method == file_magic.
17730file_magic_cmd=$lt_file_magic_cmd
17731
17732# Flag that allows shared libraries with undefined symbols to be built.
17733allow_undefined_flag=$lt_allow_undefined_flag_RC
17734
17735# Flag that forces no undefined symbols.
17736no_undefined_flag=$lt_no_undefined_flag_RC
17737
17738# Commands used to finish a libtool library installation in a directory.
17739finish_cmds=$lt_finish_cmds
17740
17741# Same as above, but a single script fragment to be evaled but not shown.
17742finish_eval=$lt_finish_eval
17743
17744# Take the output of nm and produce a listing of raw symbols and C names.
17745global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17746
17747# Transform the output of nm in a proper C declaration
17748global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17749
17750# Transform the output of nm in a C name address pair
17751global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17752
17753# This is the shared library runtime path variable.
17754runpath_var=$runpath_var
17755
17756# This is the shared library path variable.
17757shlibpath_var=$shlibpath_var
17758
17759# Is shlibpath searched before the hard-coded library search path?
17760shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17761
17762# How to hardcode a shared library path into an executable.
17763hardcode_action=$hardcode_action_RC
17764
17765# Whether we should hardcode library paths into libraries.
17766hardcode_into_libs=$hardcode_into_libs
17767
17768# Flag to hardcode \$libdir into a binary during linking.
17769# This must work even if \$libdir does not exist.
17770hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17771
17772# If ld is used when linking, flag to hardcode \$libdir into
17773# a binary during linking. This must work even if \$libdir does
17774# not exist.
17775hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17776
17777# Whether we need a single -rpath flag with a separated argument.
17778hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17779
17780# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17781# resulting binary.
17782hardcode_direct=$hardcode_direct_RC
17783
17784# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17785# resulting binary.
17786hardcode_minus_L=$hardcode_minus_L_RC
17787
17788# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17789# the resulting binary.
17790hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17791
17792# Set to yes if building a shared library automatically hardcodes DIR into the library
17793# and all subsequent libraries and executables linked against it.
17794hardcode_automatic=$hardcode_automatic_RC
17795
17796# Variables whose values should be saved in libtool wrapper scripts and
17797# restored at relink time.
17798variables_saved_for_relink="$variables_saved_for_relink"
17799
17800# Whether libtool must link a program against all its dependency libraries.
17801link_all_deplibs=$link_all_deplibs_RC
17802
17803# Compile-time system search path for libraries
17804sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17805
17806# Run-time system search path for libraries
17807sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17808
17809# Fix the shell variable \$srcfile for the compiler.
17810fix_srcfile_path="$fix_srcfile_path_RC"
17811
17812# Set to yes if exported symbols are required.
17813always_export_symbols=$always_export_symbols_RC
17814
17815# The commands to list exported symbols.
17816export_symbols_cmds=$lt_export_symbols_cmds_RC
17817
17818# The commands to extract the exported symbol list from a shared archive.
17819extract_expsyms_cmds=$lt_extract_expsyms_cmds
17820
17821# Symbols that should not be listed in the preloaded symbols.
17822exclude_expsyms=$lt_exclude_expsyms_RC
17823
17824# Symbols that must always be exported.
17825include_expsyms=$lt_include_expsyms_RC
17826
17827# ### END LIBTOOL TAG CONFIG: $tagname
17828
17829__EOF__
17830
17831
17832else
17833 # If there is no Makefile yet, we rely on a make rule to execute
17834 # `config.status --recheck' to rerun these tests and create the
17835 # libtool script then.
17836 test -f Makefile && make "$ltmain"
17837fi
17838
17839
17840ac_ext=c
17841ac_cpp='$CPP $CPPFLAGS'
17842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17844ac_compiler_gnu=$ac_cv_c_compiler_gnu
17845
17846CC="$lt_save_CC"
17847
17848 ;;
17849
17850 *)
17851 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17852echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17853 { (exit 1); exit 1; }; }
17854 ;;
17855 esac
17856
17857 # Append the new tag name to the list of available tags.
17858 if test -n "$tagname" ; then
17859 available_tags="$available_tags $tagname"
17860 fi
17861 fi
17862 done
17863 IFS="$lt_save_ifs"
17864
17865 # Now substitute the updated list of available tags.
17866 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17867 mv "${ofile}T" "$ofile"
17868 chmod +x "$ofile"
17869 else
17870 rm -f "${ofile}T"
17871 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17872echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17873 { (exit 1); exit 1; }; }
17874 fi
17875fi
John Criswell7a73b802003-06-30 21:59:07 +000017876
17877
17878
17879# This can be used to rebuild libtool when needed
17880LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17881
17882# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000017883LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000017884
17885# Prevent multiple expansion
17886
17887
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
John Criswell7a73b802003-06-30 21:59:07 +000017907# Extract the first word of "ar", so it can be a program name with args.
17908set dummy ar; ac_word=$2
17909echo "$as_me:$LINENO: checking for $ac_word" >&5
17910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17911if test "${ac_cv_path_AR+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914 case $AR in
17915 [\\/]* | ?:[\\/]*)
17916 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17917 ;;
17918 *)
17919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17920for as_dir in $PATH
17921do
17922 IFS=$as_save_IFS
17923 test -z "$as_dir" && as_dir=.
17924 for ac_exec_ext in '' $ac_executable_extensions; do
17925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17926 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17928 break 2
17929 fi
17930done
17931done
17932
17933 ;;
17934esac
17935fi
17936AR=$ac_cv_path_AR
17937
17938if test -n "$AR"; then
17939 echo "$as_me:$LINENO: result: $AR" >&5
17940echo "${ECHO_T}$AR" >&6
17941else
17942 echo "$as_me:$LINENO: result: no" >&5
17943echo "${ECHO_T}no" >&6
17944fi
17945
17946# Extract the first word of "sed", so it can be a program name with args.
17947set dummy sed; ac_word=$2
17948echo "$as_me:$LINENO: checking for $ac_word" >&5
17949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17950if test "${ac_cv_path_SED+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953 case $SED in
17954 [\\/]* | ?:[\\/]*)
17955 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17956 ;;
17957 *)
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959for as_dir in $PATH
17960do
17961 IFS=$as_save_IFS
17962 test -z "$as_dir" && as_dir=.
17963 for ac_exec_ext in '' $ac_executable_extensions; do
17964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17967 break 2
17968 fi
17969done
17970done
17971
17972 ;;
17973esac
17974fi
17975SED=$ac_cv_path_SED
17976
17977if test -n "$SED"; then
17978 echo "$as_me:$LINENO: result: $SED" >&5
17979echo "${ECHO_T}$SED" >&6
17980else
17981 echo "$as_me:$LINENO: result: no" >&5
17982echo "${ECHO_T}no" >&6
17983fi
17984
17985# Extract the first word of "rm", so it can be a program name with args.
17986set dummy rm; ac_word=$2
17987echo "$as_me:$LINENO: checking for $ac_word" >&5
17988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17989if test "${ac_cv_path_RM+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991else
17992 case $RM in
17993 [\\/]* | ?:[\\/]*)
17994 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17995 ;;
17996 *)
17997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17998for as_dir in $PATH
17999do
18000 IFS=$as_save_IFS
18001 test -z "$as_dir" && as_dir=.
18002 for ac_exec_ext in '' $ac_executable_extensions; do
18003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18004 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18006 break 2
18007 fi
18008done
18009done
18010
18011 ;;
18012esac
18013fi
18014RM=$ac_cv_path_RM
18015
18016if test -n "$RM"; then
18017 echo "$as_me:$LINENO: result: $RM" >&5
18018echo "${ECHO_T}$RM" >&6
18019else
18020 echo "$as_me:$LINENO: result: no" >&5
18021echo "${ECHO_T}no" >&6
18022fi
18023
18024# Extract the first word of "echo", so it can be a program name with args.
18025set dummy echo; ac_word=$2
18026echo "$as_me:$LINENO: checking for $ac_word" >&5
18027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18028if test "${ac_cv_path_ECHO+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030else
18031 case $ECHO in
18032 [\\/]* | ?:[\\/]*)
18033 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18034 ;;
18035 *)
18036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18037for as_dir in $PATH
18038do
18039 IFS=$as_save_IFS
18040 test -z "$as_dir" && as_dir=.
18041 for ac_exec_ext in '' $ac_executable_extensions; do
18042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18043 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18045 break 2
18046 fi
18047done
18048done
18049
18050 ;;
18051esac
18052fi
18053ECHO=$ac_cv_path_ECHO
18054
18055if test -n "$ECHO"; then
18056 echo "$as_me:$LINENO: result: $ECHO" >&5
18057echo "${ECHO_T}$ECHO" >&6
18058else
18059 echo "$as_me:$LINENO: result: no" >&5
18060echo "${ECHO_T}no" >&6
18061fi
18062
18063# Extract the first word of "mkdir", so it can be a program name with args.
18064set dummy mkdir; ac_word=$2
18065echo "$as_me:$LINENO: checking for $ac_word" >&5
18066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18067if test "${ac_cv_path_MKDIR+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070 case $MKDIR in
18071 [\\/]* | ?:[\\/]*)
18072 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18073 ;;
18074 *)
18075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18076for as_dir in $PATH
18077do
18078 IFS=$as_save_IFS
18079 test -z "$as_dir" && as_dir=.
18080 for ac_exec_ext in '' $ac_executable_extensions; do
18081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18082 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18084 break 2
18085 fi
18086done
18087done
18088
18089 ;;
18090esac
18091fi
18092MKDIR=$ac_cv_path_MKDIR
18093
18094if test -n "$MKDIR"; then
18095 echo "$as_me:$LINENO: result: $MKDIR" >&5
18096echo "${ECHO_T}$MKDIR" >&6
18097else
18098 echo "$as_me:$LINENO: result: no" >&5
18099echo "${ECHO_T}no" >&6
18100fi
18101
18102# Extract the first word of "date", so it can be a program name with args.
18103set dummy date; ac_word=$2
18104echo "$as_me:$LINENO: checking for $ac_word" >&5
18105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18106if test "${ac_cv_path_DATE+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 case $DATE in
18110 [\\/]* | ?:[\\/]*)
18111 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18112 ;;
18113 *)
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115for as_dir in $PATH
18116do
18117 IFS=$as_save_IFS
18118 test -z "$as_dir" && as_dir=.
18119 for ac_exec_ext in '' $ac_executable_extensions; do
18120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18121 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18123 break 2
18124 fi
18125done
18126done
18127
18128 ;;
18129esac
18130fi
18131DATE=$ac_cv_path_DATE
18132
18133if test -n "$DATE"; then
18134 echo "$as_me:$LINENO: result: $DATE" >&5
18135echo "${ECHO_T}$DATE" >&6
18136else
18137 echo "$as_me:$LINENO: result: no" >&5
18138echo "${ECHO_T}no" >&6
18139fi
18140
18141# Extract the first word of "mv", so it can be a program name with args.
18142set dummy mv; ac_word=$2
18143echo "$as_me:$LINENO: checking for $ac_word" >&5
18144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18145if test "${ac_cv_path_MV+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 case $MV in
18149 [\\/]* | ?:[\\/]*)
18150 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18151 ;;
18152 *)
18153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18154for as_dir in $PATH
18155do
18156 IFS=$as_save_IFS
18157 test -z "$as_dir" && as_dir=.
18158 for ac_exec_ext in '' $ac_executable_extensions; do
18159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18160 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18162 break 2
18163 fi
18164done
18165done
18166
18167 ;;
18168esac
18169fi
18170MV=$ac_cv_path_MV
18171
18172if test -n "$MV"; then
18173 echo "$as_me:$LINENO: result: $MV" >&5
18174echo "${ECHO_T}$MV" >&6
18175else
18176 echo "$as_me:$LINENO: result: no" >&5
18177echo "${ECHO_T}no" >&6
18178fi
18179
18180# Extract the first word of "dot", so it can be a program name with args.
18181set dummy dot; ac_word=$2
18182echo "$as_me:$LINENO: checking for $ac_word" >&5
18183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18184if test "${ac_cv_path_DOT+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186else
18187 case $DOT in
18188 [\\/]* | ?:[\\/]*)
18189 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18190 ;;
18191 *)
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193for as_dir in $PATH
18194do
18195 IFS=$as_save_IFS
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 break 2
18202 fi
18203done
18204done
18205
18206 ;;
18207esac
18208fi
18209DOT=$ac_cv_path_DOT
18210
18211if test -n "$DOT"; then
18212 echo "$as_me:$LINENO: result: $DOT" >&5
18213echo "${ECHO_T}$DOT" >&6
18214else
18215 echo "$as_me:$LINENO: result: no" >&5
18216echo "${ECHO_T}no" >&6
18217fi
18218
18219# Extract the first word of "etags", so it can be a program name with args.
18220set dummy etags; ac_word=$2
18221echo "$as_me:$LINENO: checking for $ac_word" >&5
18222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18223if test "${ac_cv_path_ETAGS+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226 case $ETAGS in
18227 [\\/]* | ?:[\\/]*)
18228 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18229 ;;
18230 *)
18231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18232for as_dir in $PATH
18233do
18234 IFS=$as_save_IFS
18235 test -z "$as_dir" && as_dir=.
18236 for ac_exec_ext in '' $ac_executable_extensions; do
18237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18238 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18240 break 2
18241 fi
18242done
18243done
18244
18245 ;;
18246esac
18247fi
18248ETAGS=$ac_cv_path_ETAGS
18249
18250if test -n "$ETAGS"; then
18251 echo "$as_me:$LINENO: result: $ETAGS" >&5
18252echo "${ECHO_T}$ETAGS" >&6
18253else
18254 echo "$as_me:$LINENO: result: no" >&5
18255echo "${ECHO_T}no" >&6
18256fi
18257
18258# Extract the first word of "purify", so it can be a program name with args.
18259set dummy purify; ac_word=$2
18260echo "$as_me:$LINENO: checking for $ac_word" >&5
18261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18262if test "${ac_cv_path_PURIFY+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264else
18265 case $PURIFY in
18266 [\\/]* | ?:[\\/]*)
18267 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18268 ;;
18269 *)
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271for as_dir in $PATH
18272do
18273 IFS=$as_save_IFS
18274 test -z "$as_dir" && as_dir=.
18275 for ac_exec_ext in '' $ac_executable_extensions; do
18276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18279 break 2
18280 fi
18281done
18282done
18283
18284 ;;
18285esac
18286fi
18287PURIFY=$ac_cv_path_PURIFY
18288
18289if test -n "$PURIFY"; then
18290 echo "$as_me:$LINENO: result: $PURIFY" >&5
18291echo "${ECHO_T}$PURIFY" >&6
18292else
18293 echo "$as_me:$LINENO: result: no" >&5
18294echo "${ECHO_T}no" >&6
18295fi
18296
18297
18298
18299
18300
18301
18302echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18303echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18304if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306else
18307 ac_check_lib_save_LIBS=$LIBS
18308LIBS="-lelf $LIBS"
18309cat >conftest.$ac_ext <<_ACEOF
18310#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018316
18317/* Override any gcc2 internal prototype to avoid an error. */
18318#ifdef __cplusplus
18319extern "C"
18320#endif
18321/* We use char because int might match the return type of a gcc2
18322 builtin and then its argument prototype would still apply. */
18323char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018324int
18325main ()
18326{
18327elf_begin ();
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext conftest$ac_exeext
18333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18334 (eval $ac_link) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_elf_elf_begin=yes
18345else
18346 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018347sed 's/^/| /' conftest.$ac_ext >&5
18348
John Criswell7a73b802003-06-30 21:59:07 +000018349ac_cv_lib_elf_elf_begin=no
18350fi
18351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18352LIBS=$ac_check_lib_save_LIBS
18353fi
18354echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18355echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18356if test $ac_cv_lib_elf_elf_begin = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358#define HAVE_LIBELF 1
18359_ACEOF
18360
18361 LIBS="-lelf $LIBS"
18362
18363fi
18364
18365
18366echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18367echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18368if test "${ac_cv_search_dlopen+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370else
18371 ac_func_search_save_LIBS=$LIBS
18372ac_cv_search_dlopen=no
18373cat >conftest.$ac_ext <<_ACEOF
18374#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018375/* confdefs.h. */
18376_ACEOF
18377cat confdefs.h >>conftest.$ac_ext
18378cat >>conftest.$ac_ext <<_ACEOF
18379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018380
18381/* Override any gcc2 internal prototype to avoid an error. */
18382#ifdef __cplusplus
18383extern "C"
18384#endif
18385/* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18387char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018388int
18389main ()
18390{
18391dlopen ();
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext conftest$ac_exeext
18397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_search_dlopen="none required"
18409else
18410 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018411sed 's/^/| /' conftest.$ac_ext >&5
18412
John Criswell7a73b802003-06-30 21:59:07 +000018413fi
18414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18415if test "$ac_cv_search_dlopen" = no; then
18416 for ac_lib in dl; do
18417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18418 cat >conftest.$ac_ext <<_ACEOF
18419#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018420/* confdefs.h. */
18421_ACEOF
18422cat confdefs.h >>conftest.$ac_ext
18423cat >>conftest.$ac_ext <<_ACEOF
18424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018425
18426/* Override any gcc2 internal prototype to avoid an error. */
18427#ifdef __cplusplus
18428extern "C"
18429#endif
18430/* We use char because int might match the return type of a gcc2
18431 builtin and then its argument prototype would still apply. */
18432char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018433int
18434main ()
18435{
18436dlopen ();
18437 ;
18438 return 0;
18439}
18440_ACEOF
18441rm -f conftest.$ac_objext conftest$ac_exeext
18442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18443 (eval $ac_link) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_search_dlopen="-l$ac_lib"
18454break
18455else
18456 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018457sed 's/^/| /' conftest.$ac_ext >&5
18458
John Criswell7a73b802003-06-30 21:59:07 +000018459fi
18460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18461 done
18462fi
18463LIBS=$ac_func_search_save_LIBS
18464fi
18465echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18466echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18467if test "$ac_cv_search_dlopen" != no; then
18468 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18469
18470else
18471 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18472echo "$as_me: error: dlopen() required but not found" >&2;}
18473 { (exit 1); exit 1; }; }
18474fi
18475
18476
18477echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18478echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18479if test "${ac_cv_search_mallinfo+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482 ac_func_search_save_LIBS=$LIBS
18483ac_cv_search_mallinfo=no
18484cat >conftest.$ac_ext <<_ACEOF
18485#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018486/* confdefs.h. */
18487_ACEOF
18488cat confdefs.h >>conftest.$ac_ext
18489cat >>conftest.$ac_ext <<_ACEOF
18490/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018491
18492/* Override any gcc2 internal prototype to avoid an error. */
18493#ifdef __cplusplus
18494extern "C"
18495#endif
18496/* We use char because int might match the return type of a gcc2
18497 builtin and then its argument prototype would still apply. */
18498char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018499int
18500main ()
18501{
18502mallinfo ();
18503 ;
18504 return 0;
18505}
18506_ACEOF
18507rm -f conftest.$ac_objext conftest$ac_exeext
18508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18509 (eval $ac_link) 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 ac_cv_search_mallinfo="none required"
18520else
18521 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018522sed 's/^/| /' conftest.$ac_ext >&5
18523
John Criswell7a73b802003-06-30 21:59:07 +000018524fi
18525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18526if test "$ac_cv_search_mallinfo" = no; then
18527 for ac_lib in malloc; do
18528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18529 cat >conftest.$ac_ext <<_ACEOF
18530#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018531/* confdefs.h. */
18532_ACEOF
18533cat confdefs.h >>conftest.$ac_ext
18534cat >>conftest.$ac_ext <<_ACEOF
18535/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018536
18537/* Override any gcc2 internal prototype to avoid an error. */
18538#ifdef __cplusplus
18539extern "C"
18540#endif
18541/* We use char because int might match the return type of a gcc2
18542 builtin and then its argument prototype would still apply. */
18543char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018544int
18545main ()
18546{
18547mallinfo ();
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext conftest$ac_exeext
18553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554 (eval $ac_link) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_search_mallinfo="-l$ac_lib"
18565break
18566else
18567 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018568sed 's/^/| /' conftest.$ac_ext >&5
18569
John Criswell7a73b802003-06-30 21:59:07 +000018570fi
18571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18572 done
18573fi
18574LIBS=$ac_func_search_save_LIBS
18575fi
18576echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18577echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18578if test "$ac_cv_search_mallinfo" != no; then
18579 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18580 cat >>confdefs.h <<\_ACEOF
18581#define HAVE_MALLINFO 1
18582_ACEOF
18583
18584fi
18585
18586
18587
18588echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18589echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18590if test "${ac_cv_header_stdc+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592else
18593 cat >conftest.$ac_ext <<_ACEOF
18594#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018600#include <stdlib.h>
18601#include <stdarg.h>
18602#include <string.h>
18603#include <float.h>
18604
John Criswell392aaa32003-07-22 19:18:09 +000018605int
18606main ()
18607{
18608
18609 ;
18610 return 0;
18611}
John Criswell7a73b802003-06-30 21:59:07 +000018612_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000018613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018616 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018618 (exit $ac_status); } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018625 ac_cv_header_stdc=yes
18626else
18627 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018628sed 's/^/| /' conftest.$ac_ext >&5
18629
18630ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018631fi
John Criswell392aaa32003-07-22 19:18:09 +000018632rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018633
18634if test $ac_cv_header_stdc = yes; then
18635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18636 cat >conftest.$ac_ext <<_ACEOF
18637#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018638/* confdefs.h. */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
18642/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018643#include <string.h>
18644
18645_ACEOF
18646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018647 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018648 :
18649else
18650 ac_cv_header_stdc=no
18651fi
18652rm -f conftest*
18653
18654fi
18655
18656if test $ac_cv_header_stdc = yes; then
18657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18658 cat >conftest.$ac_ext <<_ACEOF
18659#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018665#include <stdlib.h>
18666
18667_ACEOF
18668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018669 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018670 :
18671else
18672 ac_cv_header_stdc=no
18673fi
18674rm -f conftest*
18675
18676fi
18677
18678if test $ac_cv_header_stdc = yes; then
18679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18680 if test "$cross_compiling" = yes; then
18681 :
18682else
18683 cat >conftest.$ac_ext <<_ACEOF
18684#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018685/* confdefs.h. */
18686_ACEOF
18687cat confdefs.h >>conftest.$ac_ext
18688cat >>conftest.$ac_ext <<_ACEOF
18689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018690#include <ctype.h>
18691#if ((' ' & 0x0FF) == 0x020)
18692# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18693# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18694#else
John Criswell392aaa32003-07-22 19:18:09 +000018695# define ISLOWER(c) \
18696 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018697 || ('j' <= (c) && (c) <= 'r') \
18698 || ('s' <= (c) && (c) <= 'z'))
18699# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18700#endif
18701
18702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18703int
18704main ()
18705{
18706 int i;
18707 for (i = 0; i < 256; i++)
18708 if (XOR (islower (i), ISLOWER (i))
18709 || toupper (i) != TOUPPER (i))
18710 exit(2);
18711 exit (0);
18712}
18713_ACEOF
18714rm -f conftest$ac_exeext
18715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 :
18726else
18727 echo "$as_me: program exited with status $ac_status" >&5
18728echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018729sed 's/^/| /' conftest.$ac_ext >&5
18730
John Criswell7a73b802003-06-30 21:59:07 +000018731( exit $ac_status )
18732ac_cv_header_stdc=no
18733fi
John Criswell392aaa32003-07-22 19:18:09 +000018734rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018735fi
18736fi
18737fi
18738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18739echo "${ECHO_T}$ac_cv_header_stdc" >&6
18740if test $ac_cv_header_stdc = yes; then
18741
18742cat >>confdefs.h <<\_ACEOF
18743#define STDC_HEADERS 1
18744_ACEOF
18745
18746fi
18747
18748echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18749echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18750if test "${ac_cv_header_sys_wait_h+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752else
18753 cat >conftest.$ac_ext <<_ACEOF
18754#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018755/* confdefs.h. */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018760#include <sys/types.h>
18761#include <sys/wait.h>
18762#ifndef WEXITSTATUS
18763# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18764#endif
18765#ifndef WIFEXITED
18766# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18767#endif
18768
John Criswell7a73b802003-06-30 21:59:07 +000018769int
18770main ()
18771{
18772 int s;
18773 wait (&s);
18774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_header_sys_wait_h=yes
18792else
18793 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018794sed 's/^/| /' conftest.$ac_ext >&5
18795
John Criswell7a73b802003-06-30 21:59:07 +000018796ac_cv_header_sys_wait_h=no
18797fi
18798rm -f conftest.$ac_objext conftest.$ac_ext
18799fi
18800echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18801echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18802if test $ac_cv_header_sys_wait_h = yes; then
18803
18804cat >>confdefs.h <<\_ACEOF
18805#define HAVE_SYS_WAIT_H 1
18806_ACEOF
18807
18808fi
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18820do
18821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18822if eval "test \"\${$as_ac_Header+set}\" = set"; then
18823 echo "$as_me:$LINENO: checking for $ac_header" >&5
18824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18825if eval "test \"\${$as_ac_Header+set}\" = set"; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827fi
18828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18830else
18831 # Is the header compilable?
18832echo "$as_me:$LINENO: checking $ac_header usability" >&5
18833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18834cat >conftest.$ac_ext <<_ACEOF
18835#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018841$ac_includes_default
18842#include <$ac_header>
18843_ACEOF
18844rm -f conftest.$ac_objext
18845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846 (eval $ac_compile) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_header_compiler=yes
18857else
18858 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018859sed 's/^/| /' conftest.$ac_ext >&5
18860
John Criswell7a73b802003-06-30 21:59:07 +000018861ac_header_compiler=no
18862fi
18863rm -f conftest.$ac_objext conftest.$ac_ext
18864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18865echo "${ECHO_T}$ac_header_compiler" >&6
18866
18867# Is the header present?
18868echo "$as_me:$LINENO: checking $ac_header presence" >&5
18869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18870cat >conftest.$ac_ext <<_ACEOF
18871#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018872/* confdefs.h. */
18873_ACEOF
18874cat confdefs.h >>conftest.$ac_ext
18875cat >>conftest.$ac_ext <<_ACEOF
18876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018877#include <$ac_header>
18878_ACEOF
18879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18881 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000018882 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } >/dev/null; then
18887 if test -s conftest.err; then
18888 ac_cpp_err=$ac_c_preproc_warn_flag
18889 else
18890 ac_cpp_err=
18891 fi
18892else
18893 ac_cpp_err=yes
18894fi
18895if test -z "$ac_cpp_err"; then
18896 ac_header_preproc=yes
18897else
18898 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018899sed 's/^/| /' conftest.$ac_ext >&5
18900
John Criswell7a73b802003-06-30 21:59:07 +000018901 ac_header_preproc=no
18902fi
18903rm -f conftest.err conftest.$ac_ext
18904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18905echo "${ECHO_T}$ac_header_preproc" >&6
18906
18907# So? What about this header?
18908case $ac_header_compiler:$ac_header_preproc in
18909 yes:no )
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18914 (
18915 cat <<\_ASBOX
18916## ------------------------------------ ##
18917## Report this to bug-autoconf@gnu.org. ##
18918## ------------------------------------ ##
18919_ASBOX
18920 ) |
18921 sed "s/^/$as_me: WARNING: /" >&2
18922 ;;
John Criswell7a73b802003-06-30 21:59:07 +000018923 no:yes )
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18930 (
18931 cat <<\_ASBOX
18932## ------------------------------------ ##
18933## Report this to bug-autoconf@gnu.org. ##
18934## ------------------------------------ ##
18935_ASBOX
18936 ) |
18937 sed "s/^/$as_me: WARNING: /" >&2
18938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000018939esac
18940echo "$as_me:$LINENO: checking for $ac_header" >&5
18941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945 eval "$as_ac_Header=$ac_header_preproc"
18946fi
18947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18949
18950fi
18951if test `eval echo '${'$as_ac_Header'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18954_ACEOF
18955
18956fi
18957
18958done
18959
18960
18961
18962
18963
18964
18965for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18966do
18967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18968if eval "test \"\${$as_ac_Header+set}\" = set"; then
18969 echo "$as_me:$LINENO: checking for $ac_header" >&5
18970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18971if eval "test \"\${$as_ac_Header+set}\" = set"; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973fi
18974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18976else
18977 # Is the header compilable?
18978echo "$as_me:$LINENO: checking $ac_header usability" >&5
18979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18980cat >conftest.$ac_ext <<_ACEOF
18981#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018987$ac_includes_default
18988#include <$ac_header>
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_header_compiler=yes
19003else
19004 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019005sed 's/^/| /' conftest.$ac_ext >&5
19006
John Criswell7a73b802003-06-30 21:59:07 +000019007ac_header_compiler=no
19008fi
19009rm -f conftest.$ac_objext conftest.$ac_ext
19010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011echo "${ECHO_T}$ac_header_compiler" >&6
19012
19013# Is the header present?
19014echo "$as_me:$LINENO: checking $ac_header presence" >&5
19015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19016cat >conftest.$ac_ext <<_ACEOF
19017#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019018/* confdefs.h. */
19019_ACEOF
19020cat confdefs.h >>conftest.$ac_ext
19021cat >>conftest.$ac_ext <<_ACEOF
19022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019023#include <$ac_header>
19024_ACEOF
19025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19027 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019028 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } >/dev/null; then
19033 if test -s conftest.err; then
19034 ac_cpp_err=$ac_c_preproc_warn_flag
19035 else
19036 ac_cpp_err=
19037 fi
19038else
19039 ac_cpp_err=yes
19040fi
19041if test -z "$ac_cpp_err"; then
19042 ac_header_preproc=yes
19043else
19044 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019045sed 's/^/| /' conftest.$ac_ext >&5
19046
John Criswell7a73b802003-06-30 21:59:07 +000019047 ac_header_preproc=no
19048fi
19049rm -f conftest.err conftest.$ac_ext
19050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051echo "${ECHO_T}$ac_header_preproc" >&6
19052
19053# So? What about this header?
19054case $ac_header_compiler:$ac_header_preproc in
19055 yes:no )
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19060 (
19061 cat <<\_ASBOX
19062## ------------------------------------ ##
19063## Report this to bug-autoconf@gnu.org. ##
19064## ------------------------------------ ##
19065_ASBOX
19066 ) |
19067 sed "s/^/$as_me: WARNING: /" >&2
19068 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019069 no:yes )
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19076 (
19077 cat <<\_ASBOX
19078## ------------------------------------ ##
19079## Report this to bug-autoconf@gnu.org. ##
19080## ------------------------------------ ##
19081_ASBOX
19082 ) |
19083 sed "s/^/$as_me: WARNING: /" >&2
19084 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019085esac
19086echo "$as_me:$LINENO: checking for $ac_header" >&5
19087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091 eval "$as_ac_Header=$ac_header_preproc"
19092fi
19093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19095
19096fi
19097if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19100_ACEOF
19101
19102fi
19103
19104done
19105
19106
19107
19108
19109for ac_header in dlfcn.h link.h
19110do
19111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19112if eval "test \"\${$as_ac_Header+set}\" = set"; then
19113 echo "$as_me:$LINENO: checking for $ac_header" >&5
19114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19115if eval "test \"\${$as_ac_Header+set}\" = set"; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117fi
19118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19120else
19121 # Is the header compilable?
19122echo "$as_me:$LINENO: checking $ac_header usability" >&5
19123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19124cat >conftest.$ac_ext <<_ACEOF
19125#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019131$ac_includes_default
19132#include <$ac_header>
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136 (eval $ac_compile) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_header_compiler=yes
19147else
19148 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019149sed 's/^/| /' conftest.$ac_ext >&5
19150
John Criswell7a73b802003-06-30 21:59:07 +000019151ac_header_compiler=no
19152fi
19153rm -f conftest.$ac_objext conftest.$ac_ext
19154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155echo "${ECHO_T}$ac_header_compiler" >&6
19156
19157# Is the header present?
19158echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19160cat >conftest.$ac_ext <<_ACEOF
19161#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019162/* confdefs.h. */
19163_ACEOF
19164cat confdefs.h >>conftest.$ac_ext
19165cat >>conftest.$ac_ext <<_ACEOF
19166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019167#include <$ac_header>
19168_ACEOF
19169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19171 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019172 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } >/dev/null; then
19177 if test -s conftest.err; then
19178 ac_cpp_err=$ac_c_preproc_warn_flag
19179 else
19180 ac_cpp_err=
19181 fi
19182else
19183 ac_cpp_err=yes
19184fi
19185if test -z "$ac_cpp_err"; then
19186 ac_header_preproc=yes
19187else
19188 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019189sed 's/^/| /' conftest.$ac_ext >&5
19190
John Criswell7a73b802003-06-30 21:59:07 +000019191 ac_header_preproc=no
19192fi
19193rm -f conftest.err conftest.$ac_ext
19194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195echo "${ECHO_T}$ac_header_preproc" >&6
19196
19197# So? What about this header?
19198case $ac_header_compiler:$ac_header_preproc in
19199 yes:no )
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19204 (
19205 cat <<\_ASBOX
19206## ------------------------------------ ##
19207## Report this to bug-autoconf@gnu.org. ##
19208## ------------------------------------ ##
19209_ASBOX
19210 ) |
19211 sed "s/^/$as_me: WARNING: /" >&2
19212 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019213 no:yes )
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19220 (
19221 cat <<\_ASBOX
19222## ------------------------------------ ##
19223## Report this to bug-autoconf@gnu.org. ##
19224## ------------------------------------ ##
19225_ASBOX
19226 ) |
19227 sed "s/^/$as_me: WARNING: /" >&2
19228 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019229esac
19230echo "$as_me:$LINENO: checking for $ac_header" >&5
19231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19232if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235 eval "$as_ac_Header=$ac_header_preproc"
19236fi
19237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19239
19240fi
19241if test `eval echo '${'$as_ac_Header'}'` = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244_ACEOF
19245
19246fi
19247
19248done
19249
19250
19251
John Criswell7a73b802003-06-30 21:59:07 +000019252echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19253echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19254if test "${ac_cv_c_const+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256else
19257 cat >conftest.$ac_ext <<_ACEOF
19258#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019259/* confdefs.h. */
19260_ACEOF
19261cat confdefs.h >>conftest.$ac_ext
19262cat >>conftest.$ac_ext <<_ACEOF
19263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019264
John Criswell7a73b802003-06-30 21:59:07 +000019265int
19266main ()
19267{
19268/* FIXME: Include the comments suggested by Paul. */
19269#ifndef __cplusplus
19270 /* Ultrix mips cc rejects this. */
19271 typedef int charset[2];
19272 const charset x;
19273 /* SunOS 4.1.1 cc rejects this. */
19274 char const *const *ccp;
19275 char **p;
19276 /* NEC SVR4.0.2 mips cc rejects this. */
19277 struct point {int x, y;};
19278 static struct point const zero = {0,0};
19279 /* AIX XL C 1.02.0.0 rejects this.
19280 It does not let you subtract one const X* pointer from another in
19281 an arm of an if-expression whose if-part is not a constant
19282 expression */
19283 const char *g = "string";
19284 ccp = &g + (g ? g-g : 0);
19285 /* HPUX 7.0 cc rejects these. */
19286 ++ccp;
19287 p = (char**) ccp;
19288 ccp = (char const *const *) p;
19289 { /* SCO 3.2v4 cc rejects this. */
19290 char *t;
19291 char const *s = 0 ? (char *) 0 : (char const *) 0;
19292
19293 *t++ = 0;
19294 }
19295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19296 int x[] = {25, 17};
19297 const int *foo = &x[0];
19298 ++foo;
19299 }
19300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19301 typedef const int *iptr;
19302 iptr p = 0;
19303 ++p;
19304 }
19305 { /* AIX XL C 1.02.0.0 rejects this saying
19306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19307 struct s { int j; const int *ap[3]; };
19308 struct s *b; b->j = 5;
19309 }
19310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19311 const int foo = 10;
19312 }
19313#endif
19314
19315 ;
19316 return 0;
19317}
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_c_const=yes
19332else
19333 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019334sed 's/^/| /' conftest.$ac_ext >&5
19335
John Criswell7a73b802003-06-30 21:59:07 +000019336ac_cv_c_const=no
19337fi
19338rm -f conftest.$ac_objext conftest.$ac_ext
19339fi
19340echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19341echo "${ECHO_T}$ac_cv_c_const" >&6
19342if test $ac_cv_c_const = no; then
19343
19344cat >>confdefs.h <<\_ACEOF
19345#define const
19346_ACEOF
19347
19348fi
19349
19350echo "$as_me:$LINENO: checking for inline" >&5
19351echo $ECHO_N "checking for inline... $ECHO_C" >&6
19352if test "${ac_cv_c_inline+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 ac_cv_c_inline=no
19356for ac_kw in inline __inline__ __inline; do
19357 cat >conftest.$ac_ext <<_ACEOF
19358#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
19363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019364#ifndef __cplusplus
John Criswell392aaa32003-07-22 19:18:09 +000019365typedef int foo_t;
19366static $ac_kw foo_t static_foo () {return 0; }
19367$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019368#endif
19369
19370_ACEOF
19371rm -f conftest.$ac_objext
19372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_c_inline=$ac_kw; break
19384else
19385 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019386sed 's/^/| /' conftest.$ac_ext >&5
19387
John Criswell7a73b802003-06-30 21:59:07 +000019388fi
19389rm -f conftest.$ac_objext conftest.$ac_ext
19390done
19391
19392fi
19393echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19394echo "${ECHO_T}$ac_cv_c_inline" >&6
19395case $ac_cv_c_inline in
19396 inline | yes) ;;
19397 no)
19398cat >>confdefs.h <<\_ACEOF
19399#define inline
19400_ACEOF
19401 ;;
19402 *) cat >>confdefs.h <<_ACEOF
19403#define inline $ac_cv_c_inline
19404_ACEOF
19405 ;;
19406esac
19407
19408
19409echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19410echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19411if test "${ac_cv_c_bigendian+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414 # See if sys/param.h defines the BYTE_ORDER macro.
19415cat >conftest.$ac_ext <<_ACEOF
19416#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019417/* confdefs.h. */
19418_ACEOF
19419cat confdefs.h >>conftest.$ac_ext
19420cat >>conftest.$ac_ext <<_ACEOF
19421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019422#include <sys/types.h>
19423#include <sys/param.h>
19424
John Criswell7a73b802003-06-30 21:59:07 +000019425int
19426main ()
19427{
19428#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19429 bogus endian macros
19430#endif
19431
19432 ;
19433 return 0;
19434}
19435_ACEOF
19436rm -f conftest.$ac_objext
19437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19438 (eval $ac_compile) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 # It does; now see whether it defined to BIG_ENDIAN or not.
19449cat >conftest.$ac_ext <<_ACEOF
19450#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019456#include <sys/types.h>
19457#include <sys/param.h>
19458
John Criswell7a73b802003-06-30 21:59:07 +000019459int
19460main ()
19461{
19462#if BYTE_ORDER != BIG_ENDIAN
19463 not big endian
19464#endif
19465
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_c_bigendian=yes
19483else
19484 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019485sed 's/^/| /' conftest.$ac_ext >&5
19486
John Criswell7a73b802003-06-30 21:59:07 +000019487ac_cv_c_bigendian=no
19488fi
19489rm -f conftest.$ac_objext conftest.$ac_ext
19490else
19491 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019492sed 's/^/| /' conftest.$ac_ext >&5
19493
John Criswell7a73b802003-06-30 21:59:07 +000019494# It does not; compile a test program.
19495if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000019496 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019497 ac_cv_c_bigendian=unknown
19498 cat >conftest.$ac_ext <<_ACEOF
19499#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019505short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19506short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19507void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19508short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19509short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19510void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000019511int
19512main ()
19513{
19514 _ascii (); _ebcdic ();
19515 ;
19516 return 0;
19517}
19518_ACEOF
19519rm -f conftest.$ac_objext
19520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521 (eval $ac_compile) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
John Criswell392aaa32003-07-22 19:18:09 +000019531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019532 ac_cv_c_bigendian=yes
19533fi
John Criswell392aaa32003-07-22 19:18:09 +000019534if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019535 if test "$ac_cv_c_bigendian" = unknown; then
19536 ac_cv_c_bigendian=no
19537 else
19538 # finding both strings is unlikely to happen, but who knows?
19539 ac_cv_c_bigendian=unknown
19540 fi
19541fi
19542else
19543 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019544sed 's/^/| /' conftest.$ac_ext >&5
19545
John Criswell7a73b802003-06-30 21:59:07 +000019546fi
19547rm -f conftest.$ac_objext conftest.$ac_ext
19548else
19549 cat >conftest.$ac_ext <<_ACEOF
19550#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019556int
19557main ()
19558{
19559 /* Are we little or big endian? From Harbison&Steele. */
19560 union
19561 {
19562 long l;
19563 char c[sizeof (long)];
19564 } u;
19565 u.l = 1;
19566 exit (u.c[sizeof (long) - 1] == 1);
19567}
19568_ACEOF
19569rm -f conftest$ac_exeext
19570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cv_c_bigendian=no
19581else
19582 echo "$as_me: program exited with status $ac_status" >&5
19583echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019584sed 's/^/| /' conftest.$ac_ext >&5
19585
John Criswell7a73b802003-06-30 21:59:07 +000019586( exit $ac_status )
19587ac_cv_c_bigendian=yes
19588fi
John Criswell392aaa32003-07-22 19:18:09 +000019589rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019590fi
19591fi
19592rm -f conftest.$ac_objext conftest.$ac_ext
19593fi
19594echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19595echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19596case $ac_cv_c_bigendian in
19597 yes)
19598 cat >>confdefs.h <<\_ACEOF
19599#define ENDIAN_BIG 1
19600_ACEOF
19601 ;;
19602 no)
19603 cat >>confdefs.h <<\_ACEOF
19604#define ENDIAN_LITTLE 1
19605_ACEOF
19606 ;;
19607 *)
John Criswell392aaa32003-07-22 19:18:09 +000019608 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019609presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019610echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019611presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19612 { (exit 1); exit 1; }; } ;;
19613esac
19614
19615
19616echo "$as_me:$LINENO: checking for pid_t" >&5
19617echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19618if test "${ac_cv_type_pid_t+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620else
19621 cat >conftest.$ac_ext <<_ACEOF
19622#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019628$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019629int
19630main ()
19631{
19632if ((pid_t *) 0)
19633 return 0;
19634if (sizeof (pid_t))
19635 return 0;
19636 ;
19637 return 0;
19638}
19639_ACEOF
19640rm -f conftest.$ac_objext
19641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_type_pid_t=yes
19653else
19654 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019655sed 's/^/| /' conftest.$ac_ext >&5
19656
John Criswell7a73b802003-06-30 21:59:07 +000019657ac_cv_type_pid_t=no
19658fi
19659rm -f conftest.$ac_objext conftest.$ac_ext
19660fi
19661echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19662echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19663if test $ac_cv_type_pid_t = yes; then
19664 :
19665else
19666
19667cat >>confdefs.h <<_ACEOF
19668#define pid_t int
19669_ACEOF
19670
19671fi
19672
19673echo "$as_me:$LINENO: checking for size_t" >&5
19674echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19675if test "${ac_cv_type_size_t+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677else
19678 cat >conftest.$ac_ext <<_ACEOF
19679#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019685$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019686int
19687main ()
19688{
19689if ((size_t *) 0)
19690 return 0;
19691if (sizeof (size_t))
19692 return 0;
19693 ;
19694 return 0;
19695}
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_type_size_t=yes
19710else
19711 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019712sed 's/^/| /' conftest.$ac_ext >&5
19713
John Criswell7a73b802003-06-30 21:59:07 +000019714ac_cv_type_size_t=no
19715fi
19716rm -f conftest.$ac_objext conftest.$ac_ext
19717fi
19718echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19719echo "${ECHO_T}$ac_cv_type_size_t" >&6
19720if test $ac_cv_type_size_t = yes; then
19721 :
19722else
19723
19724cat >>confdefs.h <<_ACEOF
19725#define size_t unsigned
19726_ACEOF
19727
19728fi
19729
19730echo "$as_me:$LINENO: checking for int64_t" >&5
19731echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19732if test "${ac_cv_type_int64_t+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19734else
19735 cat >conftest.$ac_ext <<_ACEOF
19736#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019742$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019743int
19744main ()
19745{
19746if ((int64_t *) 0)
19747 return 0;
19748if (sizeof (int64_t))
19749 return 0;
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756 (eval $ac_compile) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_cv_type_int64_t=yes
19767else
19768 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019769sed 's/^/| /' conftest.$ac_ext >&5
19770
John Criswell7a73b802003-06-30 21:59:07 +000019771ac_cv_type_int64_t=no
19772fi
19773rm -f conftest.$ac_objext conftest.$ac_ext
19774fi
19775echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19776echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19777if test $ac_cv_type_int64_t = yes; then
19778
19779cat >>confdefs.h <<_ACEOF
19780#define HAVE_INT64_T 1
19781_ACEOF
19782
19783
19784else
19785 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19786echo "$as_me: error: Type int64_t required but not found" >&2;}
19787 { (exit 1); exit 1; }; }
19788fi
19789
19790echo "$as_me:$LINENO: checking for uint64_t" >&5
19791echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19792if test "${ac_cv_type_uint64_t+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794else
19795 cat >conftest.$ac_ext <<_ACEOF
19796#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019797/* confdefs.h. */
19798_ACEOF
19799cat confdefs.h >>conftest.$ac_ext
19800cat >>conftest.$ac_ext <<_ACEOF
19801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019802$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019803int
19804main ()
19805{
19806if ((uint64_t *) 0)
19807 return 0;
19808if (sizeof (uint64_t))
19809 return 0;
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_type_uint64_t=yes
19827else
19828 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019829sed 's/^/| /' conftest.$ac_ext >&5
19830
John Criswell7a73b802003-06-30 21:59:07 +000019831ac_cv_type_uint64_t=no
19832fi
19833rm -f conftest.$ac_objext conftest.$ac_ext
19834fi
19835echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19836echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19837if test $ac_cv_type_uint64_t = yes; then
19838
19839cat >>confdefs.h <<_ACEOF
19840#define HAVE_UINT64_T 1
19841_ACEOF
19842
19843
19844else
19845 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19846echo "$as_me: error: Type uint64_t required but not found" >&2;}
19847 { (exit 1); exit 1; }; }
19848fi
19849
19850echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19851echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19852if test "${ac_cv_header_time+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854else
19855 cat >conftest.$ac_ext <<_ACEOF
19856#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019862#include <sys/types.h>
19863#include <sys/time.h>
19864#include <time.h>
19865
John Criswell7a73b802003-06-30 21:59:07 +000019866int
19867main ()
19868{
19869if ((struct tm *) 0)
19870return 0;
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext
19876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_header_time=yes
19888else
19889 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019890sed 's/^/| /' conftest.$ac_ext >&5
19891
John Criswell7a73b802003-06-30 21:59:07 +000019892ac_cv_header_time=no
19893fi
19894rm -f conftest.$ac_objext conftest.$ac_ext
19895fi
19896echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19897echo "${ECHO_T}$ac_cv_header_time" >&6
19898if test $ac_cv_header_time = yes; then
19899
19900cat >>confdefs.h <<\_ACEOF
19901#define TIME_WITH_SYS_TIME 1
19902_ACEOF
19903
19904fi
19905
19906echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19907echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19908if test "${ac_cv_struct_tm+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910else
19911 cat >conftest.$ac_ext <<_ACEOF
19912#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019918#include <sys/types.h>
19919#include <time.h>
19920
John Criswell7a73b802003-06-30 21:59:07 +000019921int
19922main ()
19923{
19924struct tm *tp; tp->tm_sec;
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_struct_tm=time.h
19942else
19943 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019944sed 's/^/| /' conftest.$ac_ext >&5
19945
John Criswell7a73b802003-06-30 21:59:07 +000019946ac_cv_struct_tm=sys/time.h
19947fi
19948rm -f conftest.$ac_objext conftest.$ac_ext
19949fi
19950echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19951echo "${ECHO_T}$ac_cv_struct_tm" >&6
19952if test $ac_cv_struct_tm = sys/time.h; then
19953
19954cat >>confdefs.h <<\_ACEOF
19955#define TM_IN_SYS_TIME 1
19956_ACEOF
19957
19958fi
19959
19960
John Criswell7a73b802003-06-30 21:59:07 +000019961echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19962echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19963if test "${ac_cv_cxx_namespaces+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966
19967
19968 ac_ext=cc
19969ac_cpp='$CXXCPP $CPPFLAGS'
19970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19973
19974 cat >conftest.$ac_ext <<_ACEOF
19975#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019981namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019982int
19983main ()
19984{
19985using namespace Outer::Inner; return i;
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990rm -f conftest.$ac_objext
19991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992 (eval $ac_compile) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_cxx_namespaces=yes
20003else
20004 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020005sed 's/^/| /' conftest.$ac_ext >&5
20006
John Criswell7a73b802003-06-30 21:59:07 +000020007ac_cv_cxx_namespaces=no
20008fi
20009rm -f conftest.$ac_objext conftest.$ac_ext
20010 ac_ext=c
20011ac_cpp='$CPP $CPPFLAGS'
20012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014ac_compiler_gnu=$ac_cv_c_compiler_gnu
20015
20016
20017fi
20018echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20019echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20020if test "$ac_cv_cxx_namespaces" = yes; then
20021
20022cat >>confdefs.h <<\_ACEOF
20023#define HAVE_NAMESPACES
20024_ACEOF
20025
20026fi
20027
20028echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20029echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20030if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033
20034
20035
20036 ac_ext=cc
20037ac_cpp='$CXXCPP $CPPFLAGS'
20038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041
20042 cat >conftest.$ac_ext <<_ACEOF
20043#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020049#include <ext/hash_map>
20050#ifdef HAVE_NAMESPACES
20051using namespace std;
20052#endif
John Criswell7a73b802003-06-30 21:59:07 +000020053int
20054main ()
20055{
20056hash_map<int, int> t; return 0;
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_cxx_have_ext_hash_map=std
20074else
20075 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020076sed 's/^/| /' conftest.$ac_ext >&5
20077
John Criswell7a73b802003-06-30 21:59:07 +000020078ac_cv_cxx_have_ext_hash_map=no
20079fi
20080rm -f conftest.$ac_objext conftest.$ac_ext
20081 cat >conftest.$ac_ext <<_ACEOF
20082#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020088#include <ext/hash_map>
20089#ifdef HAVE_NAMESPACES
20090using namespace __gnu_cxx;
20091#endif
John Criswell7a73b802003-06-30 21:59:07 +000020092int
20093main ()
20094{
20095hash_map<int, int> t; return 0;
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_cxx_have_ext_hash_map=gnu
20113else
20114 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020115sed 's/^/| /' conftest.$ac_ext >&5
20116
John Criswell7a73b802003-06-30 21:59:07 +000020117ac_cv_cxx_have_ext_hash_map=no
20118fi
20119rm -f conftest.$ac_objext conftest.$ac_ext
20120 ac_ext=c
20121ac_cpp='$CPP $CPPFLAGS'
20122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124ac_compiler_gnu=$ac_cv_c_compiler_gnu
20125
20126
20127fi
20128echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20129echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20130if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20131
20132cat >>confdefs.h <<\_ACEOF
20133#define HAVE_STD_EXT_HASH_MAP
20134_ACEOF
20135
20136fi
20137if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20138
20139cat >>confdefs.h <<\_ACEOF
20140#define HAVE_GNU_EXT_HASH_MAP
20141_ACEOF
20142
20143fi
20144
20145echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20146echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20147if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149else
20150
20151
20152
20153 ac_ext=cc
20154ac_cpp='$CXXCPP $CPPFLAGS'
20155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20158
20159 cat >conftest.$ac_ext <<_ACEOF
20160#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020166#include <ext/hash_set>
20167#ifdef HAVE_NAMESPACES
20168using namespace std;
20169#endif
John Criswell7a73b802003-06-30 21:59:07 +000020170int
20171main ()
20172{
20173hash_set<int> t; return 0;
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178rm -f conftest.$ac_objext
20179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -s conftest.$ac_objext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_cxx_have_ext_hash_set=std
20191else
20192 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020193sed 's/^/| /' conftest.$ac_ext >&5
20194
John Criswell7a73b802003-06-30 21:59:07 +000020195ac_cv_cxx_have_ext_hash_set=no
20196fi
20197rm -f conftest.$ac_objext conftest.$ac_ext
20198 cat >conftest.$ac_ext <<_ACEOF
20199#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020205#include <ext/hash_set>
20206#ifdef HAVE_NAMESPACES
20207using namespace __gnu_cxx;
20208#endif
John Criswell7a73b802003-06-30 21:59:07 +000020209int
20210main ()
20211{
20212hash_set<int> t; return 0;
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_cxx_have_ext_hash_set=gnu
20230else
20231 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020232sed 's/^/| /' conftest.$ac_ext >&5
20233
John Criswell7a73b802003-06-30 21:59:07 +000020234ac_cv_cxx_have_ext_hash_set=no
20235fi
20236rm -f conftest.$ac_objext conftest.$ac_ext
20237 ac_ext=c
20238ac_cpp='$CPP $CPPFLAGS'
20239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20241ac_compiler_gnu=$ac_cv_c_compiler_gnu
20242
20243
20244fi
20245echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20246echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20247if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20248
20249cat >>confdefs.h <<\_ACEOF
20250#define HAVE_STD_EXT_HASH_SET
20251_ACEOF
20252
20253fi
20254if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20255
20256cat >>confdefs.h <<\_ACEOF
20257#define HAVE_GNU_EXT_HASH_SET
20258_ACEOF
20259
20260fi
20261
20262echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20263echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20264if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266else
20267
20268
20269
20270 ac_ext=cc
20271ac_cpp='$CXXCPP $CPPFLAGS'
20272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20275
20276 cat >conftest.$ac_ext <<_ACEOF
20277#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020283#include <ext/slist>
20284#ifdef HAVE_NAMESPACES
20285using namespace std;
20286#endif
John Criswell7a73b802003-06-30 21:59:07 +000020287int
20288main ()
20289{
20290slist<int> s; return 0;
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext
20296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_cxx_have_ext_slist=std
20308else
20309 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020310sed 's/^/| /' conftest.$ac_ext >&5
20311
John Criswell7a73b802003-06-30 21:59:07 +000020312ac_cv_cxx_have_ext_slist=no
20313fi
20314rm -f conftest.$ac_objext conftest.$ac_ext
20315 cat >conftest.$ac_ext <<_ACEOF
20316#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020317/* confdefs.h. */
20318_ACEOF
20319cat confdefs.h >>conftest.$ac_ext
20320cat >>conftest.$ac_ext <<_ACEOF
20321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020322#include <ext/slist>
20323#ifdef HAVE_NAMESPACES
20324using namespace __gnu_cxx;
20325#endif
John Criswell7a73b802003-06-30 21:59:07 +000020326int
20327main ()
20328{
20329slist<int> s; return 0;
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext
20335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336 (eval $ac_compile) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_cxx_have_ext_slist=gnu
20347else
20348 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020349sed 's/^/| /' conftest.$ac_ext >&5
20350
John Criswell7a73b802003-06-30 21:59:07 +000020351ac_cv_cxx_have_ext_slist=no
20352fi
20353rm -f conftest.$ac_objext conftest.$ac_ext
20354
20355 ac_ext=c
20356ac_cpp='$CPP $CPPFLAGS'
20357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360
20361
20362fi
20363echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20364echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20365if test "$ac_cv_cxx_have_ext_slist" = std; then
20366
20367cat >>confdefs.h <<\_ACEOF
20368#define HAVE_EXT_SLIST std
20369_ACEOF
20370
20371fi
20372if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20373
20374cat >>confdefs.h <<\_ACEOF
20375#define HAVE_EXT_SLIST gnu
20376_ACEOF
20377
20378fi
20379
20380echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20381echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20382if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384else
20385
20386
20387
20388 ac_ext=cc
20389ac_cpp='$CXXCPP $CPPFLAGS'
20390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20393
20394 cat >conftest.$ac_ext <<_ACEOF
20395#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020396/* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020401#include <iterator>
20402#ifdef HAVE_NAMESPACES
20403using namespace std;
20404#endif
John Criswell7a73b802003-06-30 21:59:07 +000020405int
20406main ()
20407{
20408iterator<int,int,int> t; return 0;
20409 ;
20410 return 0;
20411}
20412_ACEOF
20413rm -f conftest.$ac_objext
20414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415 (eval $ac_compile) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_cxx_have_std_iterator=yes
20426else
20427 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020428sed 's/^/| /' conftest.$ac_ext >&5
20429
John Criswell7a73b802003-06-30 21:59:07 +000020430ac_cv_cxx_have_std_iterator=no
20431fi
20432rm -f conftest.$ac_objext conftest.$ac_ext
20433 ac_ext=c
20434ac_cpp='$CPP $CPPFLAGS'
20435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437ac_compiler_gnu=$ac_cv_c_compiler_gnu
20438
20439
20440fi
20441echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20442echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20443if test "$ac_cv_cxx_have_std_iterator" = yes; then
20444
20445cat >>confdefs.h <<\_ACEOF
20446#define HAVE_STD_ITERATOR
20447_ACEOF
20448
20449fi
20450
20451echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20452echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20453if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456
20457
20458
20459 ac_ext=cc
20460ac_cpp='$CXXCPP $CPPFLAGS'
20461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20464
20465 cat >conftest.$ac_ext <<_ACEOF
20466#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020472#include <iterator>
20473#ifdef HAVE_NAMESPACES
20474using namespace std;
20475#endif
John Criswell7a73b802003-06-30 21:59:07 +000020476int
20477main ()
20478{
John Criswellc78022e2003-07-29 19:11:58 +000020479bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
20490 { ac_try='test -s conftest.$ac_objext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 ac_cv_cxx_have_bi_iterator=yes
20497else
20498 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020499sed 's/^/| /' conftest.$ac_ext >&5
20500
John Criswell7a73b802003-06-30 21:59:07 +000020501ac_cv_cxx_have_bi_iterator=no
20502fi
20503rm -f conftest.$ac_objext conftest.$ac_ext
20504 ac_ext=c
20505ac_cpp='$CPP $CPPFLAGS'
20506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508ac_compiler_gnu=$ac_cv_c_compiler_gnu
20509
20510
20511fi
20512echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20513echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20514if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20515
20516cat >>confdefs.h <<\_ACEOF
20517#define HAVE_BI_ITERATOR
20518_ACEOF
20519
20520fi
20521
20522echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20523echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20524if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526else
20527
20528
20529
20530 ac_ext=cc
20531ac_cpp='$CXXCPP $CPPFLAGS'
20532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20535
20536 cat >conftest.$ac_ext <<_ACEOF
20537#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020538/* confdefs.h. */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020543#include <iterator>
20544#ifdef HAVE_NAMESPACES
20545using namespace std;
20546#endif
John Criswell7a73b802003-06-30 21:59:07 +000020547int
20548main ()
20549{
John Criswellc78022e2003-07-29 19:11:58 +000020550forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020551 ;
20552 return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557 (eval $ac_compile) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_cxx_have_fwd_iterator=yes
20568else
20569 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020570sed 's/^/| /' conftest.$ac_ext >&5
20571
John Criswell7a73b802003-06-30 21:59:07 +000020572ac_cv_cxx_have_fwd_iterator=no
20573fi
20574rm -f conftest.$ac_objext conftest.$ac_ext
20575 ac_ext=c
20576ac_cpp='$CPP $CPPFLAGS'
20577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579ac_compiler_gnu=$ac_cv_c_compiler_gnu
20580
20581
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20584echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20585if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20586
20587cat >>confdefs.h <<\_ACEOF
20588#define HAVE_FWD_ITERATOR
20589_ACEOF
20590
20591fi
20592
20593
20594# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20595# for constant arguments. Useless!
20596echo "$as_me:$LINENO: checking for working alloca.h" >&5
20597echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20598if test "${ac_cv_working_alloca_h+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600else
20601 cat >conftest.$ac_ext <<_ACEOF
20602#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020608#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020609int
20610main ()
20611{
20612char *p = (char *) alloca (2 * sizeof (int));
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617rm -f conftest.$ac_objext conftest$ac_exeext
20618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_working_alloca_h=yes
20630else
20631 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020632sed 's/^/| /' conftest.$ac_ext >&5
20633
John Criswell7a73b802003-06-30 21:59:07 +000020634ac_cv_working_alloca_h=no
20635fi
20636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20637fi
20638echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20639echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20640if test $ac_cv_working_alloca_h = yes; then
20641
20642cat >>confdefs.h <<\_ACEOF
20643#define HAVE_ALLOCA_H 1
20644_ACEOF
20645
20646fi
20647
20648echo "$as_me:$LINENO: checking for alloca" >&5
20649echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20650if test "${ac_cv_func_alloca_works+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 cat >conftest.$ac_ext <<_ACEOF
20654#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020655/* confdefs.h. */
20656_ACEOF
20657cat confdefs.h >>conftest.$ac_ext
20658cat >>conftest.$ac_ext <<_ACEOF
20659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020660#ifdef __GNUC__
20661# define alloca __builtin_alloca
20662#else
20663# ifdef _MSC_VER
20664# include <malloc.h>
20665# define alloca _alloca
20666# else
20667# if HAVE_ALLOCA_H
20668# include <alloca.h>
20669# else
20670# ifdef _AIX
20671 #pragma alloca
20672# else
20673# ifndef alloca /* predefined by HP cc +Olibcalls */
20674char *alloca ();
20675# endif
20676# endif
20677# endif
20678# endif
20679#endif
20680
John Criswell7a73b802003-06-30 21:59:07 +000020681int
20682main ()
20683{
20684char *p = (char *) alloca (1);
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext conftest$ac_exeext
20690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
20695 { ac_try='test -s conftest$ac_exeext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_func_alloca_works=yes
20702else
20703 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020704sed 's/^/| /' conftest.$ac_ext >&5
20705
John Criswell7a73b802003-06-30 21:59:07 +000020706ac_cv_func_alloca_works=no
20707fi
20708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20709fi
20710echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20711echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20712
20713if test $ac_cv_func_alloca_works = yes; then
20714
20715cat >>confdefs.h <<\_ACEOF
20716#define HAVE_ALLOCA 1
20717_ACEOF
20718
20719else
20720 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20721# that cause trouble. Some versions do not even contain alloca or
20722# contain a buggy version. If you still want to use their alloca,
20723# use ar to extract alloca.o from them instead of compiling alloca.c.
20724
20725ALLOCA=alloca.$ac_objext
20726
20727cat >>confdefs.h <<\_ACEOF
20728#define C_ALLOCA 1
20729_ACEOF
20730
20731
20732echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20733echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20734if test "${ac_cv_os_cray+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737 cat >conftest.$ac_ext <<_ACEOF
20738#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020744#if defined(CRAY) && ! defined(CRAY2)
20745webecray
20746#else
20747wenotbecray
20748#endif
20749
20750_ACEOF
20751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020752 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020753 ac_cv_os_cray=yes
20754else
20755 ac_cv_os_cray=no
20756fi
20757rm -f conftest*
20758
20759fi
20760echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20761echo "${ECHO_T}$ac_cv_os_cray" >&6
20762if test $ac_cv_os_cray = yes; then
20763 for ac_func in _getb67 GETB67 getb67; do
20764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765echo "$as_me:$LINENO: checking for $ac_func" >&5
20766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20767if eval "test \"\${$as_ac_var+set}\" = set"; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769else
20770 cat >conftest.$ac_ext <<_ACEOF
20771#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020772/* confdefs.h. */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020777/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000020778 which can conflict with char $ac_func (); below.
20779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780 <limits.h> exists even on freestanding compilers. */
20781#ifdef __STDC__
20782# include <limits.h>
20783#else
20784# include <assert.h>
20785#endif
John Criswell7a73b802003-06-30 21:59:07 +000020786/* Override any gcc2 internal prototype to avoid an error. */
20787#ifdef __cplusplus
20788extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000020789{
John Criswell7a73b802003-06-30 21:59:07 +000020790#endif
20791/* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20793char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020794/* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20798choke me
20799#else
John Criswell392aaa32003-07-22 19:18:09 +000020800char (*f) () = $ac_func;
20801#endif
20802#ifdef __cplusplus
20803}
John Criswell7a73b802003-06-30 21:59:07 +000020804#endif
20805
John Criswell392aaa32003-07-22 19:18:09 +000020806int
20807main ()
20808{
20809return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext conftest$ac_exeext
20815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -s conftest$ac_exeext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 eval "$as_ac_var=yes"
20827else
20828 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020829sed 's/^/| /' conftest.$ac_ext >&5
20830
John Criswell7a73b802003-06-30 21:59:07 +000020831eval "$as_ac_var=no"
20832fi
20833rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20834fi
20835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20837if test `eval echo '${'$as_ac_var'}'` = yes; then
20838
20839cat >>confdefs.h <<_ACEOF
20840#define CRAY_STACKSEG_END $ac_func
20841_ACEOF
20842
20843 break
20844fi
20845
20846 done
20847fi
20848
20849echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20850echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20851if test "${ac_cv_c_stack_direction+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 if test "$cross_compiling" = yes; then
20855 ac_cv_c_stack_direction=0
20856else
20857 cat >conftest.$ac_ext <<_ACEOF
20858#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020864int
20865find_stack_direction ()
20866{
20867 static char *addr = 0;
20868 auto char dummy;
20869 if (addr == 0)
20870 {
20871 addr = &dummy;
20872 return find_stack_direction ();
20873 }
20874 else
20875 return (&dummy > addr) ? 1 : -1;
20876}
20877
20878int
20879main ()
20880{
20881 exit (find_stack_direction () < 0);
20882}
20883_ACEOF
20884rm -f conftest$ac_exeext
20885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_c_stack_direction=1
20896else
20897 echo "$as_me: program exited with status $ac_status" >&5
20898echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020899sed 's/^/| /' conftest.$ac_ext >&5
20900
John Criswell7a73b802003-06-30 21:59:07 +000020901( exit $ac_status )
20902ac_cv_c_stack_direction=-1
20903fi
John Criswell392aaa32003-07-22 19:18:09 +000020904rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020905fi
20906fi
20907echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20908echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20909
20910cat >>confdefs.h <<_ACEOF
20911#define STACK_DIRECTION $ac_cv_c_stack_direction
20912_ACEOF
20913
20914
20915fi
20916
20917if test $ac_cv_c_compiler_gnu = yes; then
20918 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20919echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20920if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20922else
20923 ac_pattern="Autoconf.*'x'"
20924 cat >conftest.$ac_ext <<_ACEOF
20925#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020931#include <sgtty.h>
20932Autoconf TIOCGETP
20933_ACEOF
20934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020935 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020936 ac_cv_prog_gcc_traditional=yes
20937else
20938 ac_cv_prog_gcc_traditional=no
20939fi
20940rm -f conftest*
20941
20942
20943 if test $ac_cv_prog_gcc_traditional = no; then
20944 cat >conftest.$ac_ext <<_ACEOF
20945#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020946/* confdefs.h. */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
20950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020951#include <termio.h>
20952Autoconf TCGETA
20953_ACEOF
20954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020955 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020956 ac_cv_prog_gcc_traditional=yes
20957fi
20958rm -f conftest*
20959
20960 fi
20961fi
20962echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20963echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20964 if test $ac_cv_prog_gcc_traditional = yes; then
20965 CC="$CC -traditional"
20966 fi
20967fi
20968
20969echo "$as_me:$LINENO: checking for working memcmp" >&5
20970echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20971if test "${ac_cv_func_memcmp_working+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974 if test "$cross_compiling" = yes; then
20975 ac_cv_func_memcmp_working=no
20976else
20977 cat >conftest.$ac_ext <<_ACEOF
20978#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020984
John Criswell7a73b802003-06-30 21:59:07 +000020985int
20986main ()
20987{
20988
20989 /* Some versions of memcmp are not 8-bit clean. */
20990 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20991 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20992 exit (1);
20993
20994 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20995 or more and with at least one buffer not starting on a 4-byte boundary.
20996 William Lewis provided this test program. */
20997 {
20998 char foo[21];
20999 char bar[21];
21000 int i;
21001 for (i = 0; i < 4; i++)
21002 {
21003 char *a = foo + i;
21004 char *b = bar + i;
21005 strcpy (a, "--------01111111");
21006 strcpy (b, "--------10000000");
21007 if (memcmp (a, b, 16) >= 0)
21008 exit (1);
21009 }
21010 exit (0);
21011 }
21012
21013 ;
21014 return 0;
21015}
21016_ACEOF
21017rm -f conftest$ac_exeext
21018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21019 (eval $ac_link) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_cv_func_memcmp_working=yes
21029else
21030 echo "$as_me: program exited with status $ac_status" >&5
21031echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021032sed 's/^/| /' conftest.$ac_ext >&5
21033
John Criswell7a73b802003-06-30 21:59:07 +000021034( exit $ac_status )
21035ac_cv_func_memcmp_working=no
21036fi
John Criswell392aaa32003-07-22 19:18:09 +000021037rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021038fi
21039fi
21040echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21041echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21042test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21043
21044
21045
21046for ac_header in stdlib.h unistd.h
21047do
21048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21049if eval "test \"\${$as_ac_Header+set}\" = set"; then
21050 echo "$as_me:$LINENO: checking for $ac_header" >&5
21051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21052if eval "test \"\${$as_ac_Header+set}\" = set"; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
21054fi
21055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21057else
21058 # Is the header compilable?
21059echo "$as_me:$LINENO: checking $ac_header usability" >&5
21060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21061cat >conftest.$ac_ext <<_ACEOF
21062#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021063/* confdefs.h. */
21064_ACEOF
21065cat confdefs.h >>conftest.$ac_ext
21066cat >>conftest.$ac_ext <<_ACEOF
21067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021068$ac_includes_default
21069#include <$ac_header>
21070_ACEOF
21071rm -f conftest.$ac_objext
21072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21073 (eval $ac_compile) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_header_compiler=yes
21084else
21085 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021086sed 's/^/| /' conftest.$ac_ext >&5
21087
John Criswell7a73b802003-06-30 21:59:07 +000021088ac_header_compiler=no
21089fi
21090rm -f conftest.$ac_objext conftest.$ac_ext
21091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092echo "${ECHO_T}$ac_header_compiler" >&6
21093
21094# Is the header present?
21095echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21097cat >conftest.$ac_ext <<_ACEOF
21098#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021104#include <$ac_header>
21105_ACEOF
21106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21108 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000021109 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } >/dev/null; then
21114 if test -s conftest.err; then
21115 ac_cpp_err=$ac_c_preproc_warn_flag
21116 else
21117 ac_cpp_err=
21118 fi
21119else
21120 ac_cpp_err=yes
21121fi
21122if test -z "$ac_cpp_err"; then
21123 ac_header_preproc=yes
21124else
21125 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021126sed 's/^/| /' conftest.$ac_ext >&5
21127
John Criswell7a73b802003-06-30 21:59:07 +000021128 ac_header_preproc=no
21129fi
21130rm -f conftest.err conftest.$ac_ext
21131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21132echo "${ECHO_T}$ac_header_preproc" >&6
21133
21134# So? What about this header?
21135case $ac_header_compiler:$ac_header_preproc in
21136 yes:no )
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21141 (
21142 cat <<\_ASBOX
21143## ------------------------------------ ##
21144## Report this to bug-autoconf@gnu.org. ##
21145## ------------------------------------ ##
21146_ASBOX
21147 ) |
21148 sed "s/^/$as_me: WARNING: /" >&2
21149 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021150 no:yes )
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21157 (
21158 cat <<\_ASBOX
21159## ------------------------------------ ##
21160## Report this to bug-autoconf@gnu.org. ##
21161## ------------------------------------ ##
21162_ASBOX
21163 ) |
21164 sed "s/^/$as_me: WARNING: /" >&2
21165 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021166esac
21167echo "$as_me:$LINENO: checking for $ac_header" >&5
21168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21169if eval "test \"\${$as_ac_Header+set}\" = set"; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171else
21172 eval "$as_ac_Header=$ac_header_preproc"
21173fi
21174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21176
21177fi
21178if test `eval echo '${'$as_ac_Header'}'` = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21181_ACEOF
21182
21183fi
21184
21185done
21186
21187
21188for ac_func in getpagesize
21189do
21190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21191echo "$as_me:$LINENO: checking for $ac_func" >&5
21192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21193if eval "test \"\${$as_ac_var+set}\" = set"; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196 cat >conftest.$ac_ext <<_ACEOF
21197#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021203/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021204 which can conflict with char $ac_func (); below.
21205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206 <limits.h> exists even on freestanding compilers. */
21207#ifdef __STDC__
21208# include <limits.h>
21209#else
21210# include <assert.h>
21211#endif
John Criswell7a73b802003-06-30 21:59:07 +000021212/* Override any gcc2 internal prototype to avoid an error. */
21213#ifdef __cplusplus
21214extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021215{
John Criswell7a73b802003-06-30 21:59:07 +000021216#endif
21217/* We use char because int might match the return type of a gcc2
21218 builtin and then its argument prototype would still apply. */
21219char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021220/* The GNU C library defines this for functions which it implements
21221 to always fail with ENOSYS. Some functions are actually named
21222 something starting with __ and the normal name is an alias. */
21223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21224choke me
21225#else
John Criswell392aaa32003-07-22 19:18:09 +000021226char (*f) () = $ac_func;
21227#endif
21228#ifdef __cplusplus
21229}
John Criswell7a73b802003-06-30 21:59:07 +000021230#endif
21231
John Criswell392aaa32003-07-22 19:18:09 +000021232int
21233main ()
21234{
21235return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021236 ;
21237 return 0;
21238}
21239_ACEOF
21240rm -f conftest.$ac_objext conftest$ac_exeext
21241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -s conftest$ac_exeext'
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; }; then
21252 eval "$as_ac_var=yes"
21253else
21254 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021255sed 's/^/| /' conftest.$ac_ext >&5
21256
John Criswell7a73b802003-06-30 21:59:07 +000021257eval "$as_ac_var=no"
21258fi
21259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21260fi
21261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21263if test `eval echo '${'$as_ac_var'}'` = yes; then
21264 cat >>confdefs.h <<_ACEOF
21265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21266_ACEOF
21267
21268fi
21269done
21270
21271echo "$as_me:$LINENO: checking for working mmap" >&5
21272echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21273if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 if test "$cross_compiling" = yes; then
21277 ac_cv_func_mmap_fixed_mapped=no
21278else
21279 cat >conftest.$ac_ext <<_ACEOF
21280#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021281/* confdefs.h. */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021286$ac_includes_default
21287/* malloc might have been renamed as rpl_malloc. */
21288#undef malloc
21289
21290/* Thanks to Mike Haertel and Jim Avera for this test.
21291 Here is a matrix of mmap possibilities:
21292 mmap private not fixed
21293 mmap private fixed at somewhere currently unmapped
21294 mmap private fixed at somewhere already mapped
21295 mmap shared not fixed
21296 mmap shared fixed at somewhere currently unmapped
21297 mmap shared fixed at somewhere already mapped
21298 For private mappings, we should verify that changes cannot be read()
21299 back from the file, nor mmap's back from the file at a different
21300 address. (There have been systems where private was not correctly
21301 implemented like the infamous i386 svr4.0, and systems where the
21302 VM page cache was not coherent with the file system buffer cache
21303 like early versions of FreeBSD and possibly contemporary NetBSD.)
21304 For shared mappings, we should conversely verify that changes get
21305 propagated back to all the places they're supposed to be.
21306
21307 Grep wants private fixed already mapped.
21308 The main things grep needs to know about mmap are:
21309 * does it exist and is it safe to write into the mmap'd area
21310 * how to use it (BSD variants) */
21311
21312#include <fcntl.h>
21313#include <sys/mman.h>
21314
21315#if !STDC_HEADERS && !HAVE_STDLIB_H
21316char *malloc ();
21317#endif
21318
21319/* This mess was copied from the GNU getpagesize.h. */
21320#if !HAVE_GETPAGESIZE
21321/* Assume that all systems that can run configure have sys/param.h. */
21322# if !HAVE_SYS_PARAM_H
21323# define HAVE_SYS_PARAM_H 1
21324# endif
21325
21326# ifdef _SC_PAGESIZE
21327# define getpagesize() sysconf(_SC_PAGESIZE)
21328# else /* no _SC_PAGESIZE */
21329# if HAVE_SYS_PARAM_H
21330# include <sys/param.h>
21331# ifdef EXEC_PAGESIZE
21332# define getpagesize() EXEC_PAGESIZE
21333# else /* no EXEC_PAGESIZE */
21334# ifdef NBPG
21335# define getpagesize() NBPG * CLSIZE
21336# ifndef CLSIZE
21337# define CLSIZE 1
21338# endif /* no CLSIZE */
21339# else /* no NBPG */
21340# ifdef NBPC
21341# define getpagesize() NBPC
21342# else /* no NBPC */
21343# ifdef PAGESIZE
21344# define getpagesize() PAGESIZE
21345# endif /* PAGESIZE */
21346# endif /* no NBPC */
21347# endif /* no NBPG */
21348# endif /* no EXEC_PAGESIZE */
21349# else /* no HAVE_SYS_PARAM_H */
21350# define getpagesize() 8192 /* punt totally */
21351# endif /* no HAVE_SYS_PARAM_H */
21352# endif /* no _SC_PAGESIZE */
21353
21354#endif /* no HAVE_GETPAGESIZE */
21355
21356int
21357main ()
21358{
21359 char *data, *data2, *data3;
21360 int i, pagesize;
21361 int fd;
21362
21363 pagesize = getpagesize ();
21364
21365 /* First, make a file with some known garbage in it. */
21366 data = (char *) malloc (pagesize);
21367 if (!data)
21368 exit (1);
21369 for (i = 0; i < pagesize; ++i)
21370 *(data + i) = rand ();
21371 umask (0);
21372 fd = creat ("conftest.mmap", 0600);
21373 if (fd < 0)
21374 exit (1);
21375 if (write (fd, data, pagesize) != pagesize)
21376 exit (1);
21377 close (fd);
21378
21379 /* Next, try to mmap the file at a fixed address which already has
21380 something else allocated at it. If we can, also make sure that
21381 we see the same garbage. */
21382 fd = open ("conftest.mmap", O_RDWR);
21383 if (fd < 0)
21384 exit (1);
21385 data2 = (char *) malloc (2 * pagesize);
21386 if (!data2)
21387 exit (1);
21388 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21389 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21390 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21391 exit (1);
21392 for (i = 0; i < pagesize; ++i)
21393 if (*(data + i) != *(data2 + i))
21394 exit (1);
21395
21396 /* Finally, make sure that changes to the mapped area do not
21397 percolate back to the file as seen by read(). (This is a bug on
21398 some variants of i386 svr4.0.) */
21399 for (i = 0; i < pagesize; ++i)
21400 *(data2 + i) = *(data2 + i) + 1;
21401 data3 = (char *) malloc (pagesize);
21402 if (!data3)
21403 exit (1);
21404 if (read (fd, data3, pagesize) != pagesize)
21405 exit (1);
21406 for (i = 0; i < pagesize; ++i)
21407 if (*(data + i) != *(data3 + i))
21408 exit (1);
21409 close (fd);
21410 exit (0);
21411}
21412_ACEOF
21413rm -f conftest$ac_exeext
21414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_func_mmap_fixed_mapped=yes
21425else
21426 echo "$as_me: program exited with status $ac_status" >&5
21427echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021428sed 's/^/| /' conftest.$ac_ext >&5
21429
John Criswell7a73b802003-06-30 21:59:07 +000021430( exit $ac_status )
21431ac_cv_func_mmap_fixed_mapped=no
21432fi
John Criswell392aaa32003-07-22 19:18:09 +000021433rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021434fi
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21437echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21438if test $ac_cv_func_mmap_fixed_mapped = yes; then
21439
21440cat >>confdefs.h <<\_ACEOF
21441#define HAVE_MMAP 1
21442_ACEOF
21443
21444fi
21445rm -f conftest.mmap
21446
21447echo "$as_me:$LINENO: checking for mmap of files" >&5
21448echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21449if test "${ac_cv_func_mmap_file+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
21452
21453
21454 ac_ext=c
21455ac_cpp='$CPP $CPPFLAGS'
21456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21458ac_compiler_gnu=$ac_cv_c_compiler_gnu
21459
21460 if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000021461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21462See \`config.log' for more details." >&5
21463echo "$as_me: error: cannot run test program while cross compiling
21464See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021465 { (exit 1); exit 1; }; }
21466else
21467 cat >conftest.$ac_ext <<_ACEOF
21468#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021474
21475#ifdef HAVE_SYS_MMAN_H
21476#include <sys/mman.h>
21477#endif
21478
21479#ifdef HAVE_SYS_TYPES_H
21480#include <sys/types.h>
21481#endif
21482
21483#ifdef HAVE_FCNTL_H
21484#include <fcntl.h>
21485#endif
21486
21487 int fd;
21488 int main () {
21489 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21490_ACEOF
21491rm -f conftest$ac_exeext
21492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_func_mmap_file=yes
21503else
21504 echo "$as_me: program exited with status $ac_status" >&5
21505echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021506sed 's/^/| /' conftest.$ac_ext >&5
21507
John Criswell7a73b802003-06-30 21:59:07 +000021508( exit $ac_status )
21509ac_cv_func_mmap_file=no
21510fi
John Criswell392aaa32003-07-22 19:18:09 +000021511rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021512fi
21513 ac_ext=c
21514ac_cpp='$CPP $CPPFLAGS'
21515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517ac_compiler_gnu=$ac_cv_c_compiler_gnu
21518
21519
21520fi
21521echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21522echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21523if test "$ac_cv_func_mmap_file" = yes; then
21524 cat >>confdefs.h <<\_ACEOF
21525#define HAVE_MMAP_FILE 1
21526_ACEOF
21527
21528 MMAP_FILE=yes
21529
21530fi
21531
21532if test ${ac_cv_func_mmap_file} = "no"
21533then
21534 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21535echo "$as_me: error: mmap() of files required but not found" >&2;}
21536 { (exit 1); exit 1; }; }
21537fi
21538echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21539echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21540if test "${ac_cv_header_mmap_anon+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542else
21543
21544
21545 ac_ext=c
21546ac_cpp='$CPP $CPPFLAGS'
21547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21549ac_compiler_gnu=$ac_cv_c_compiler_gnu
21550
21551 cat >conftest.$ac_ext <<_ACEOF
21552#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021558#include <sys/mman.h>
21559 #include <unistd.h>
21560 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021561int
21562main ()
21563{
21564mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21565 ;
21566 return 0;
21567}
21568_ACEOF
21569rm -f conftest.$ac_objext
21570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -s conftest.$ac_objext'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21581 ac_cv_header_mmap_anon=yes
21582else
21583 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021584sed 's/^/| /' conftest.$ac_ext >&5
21585
John Criswell7a73b802003-06-30 21:59:07 +000021586ac_cv_header_mmap_anon=no
21587fi
21588rm -f conftest.$ac_objext conftest.$ac_ext
21589 ac_ext=c
21590ac_cpp='$CPP $CPPFLAGS'
21591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21593ac_compiler_gnu=$ac_cv_c_compiler_gnu
21594
21595
21596fi
21597echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21598echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21599if test "$ac_cv_header_mmap_anon" = yes; then
21600 cat >>confdefs.h <<\_ACEOF
21601#define HAVE_MMAP_ANONYMOUS 1
21602_ACEOF
21603
21604fi
21605
21606echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21607echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21608if test "${ac_cv_type_signal+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 cat >conftest.$ac_ext <<_ACEOF
21612#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021613/* confdefs.h. */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021618#include <sys/types.h>
21619#include <signal.h>
21620#ifdef signal
21621# undef signal
21622#endif
21623#ifdef __cplusplus
21624extern "C" void (*signal (int, void (*)(int)))(int);
21625#else
21626void (*signal ()) ();
21627#endif
21628
John Criswell7a73b802003-06-30 21:59:07 +000021629int
21630main ()
21631{
21632int i;
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639 (eval $ac_compile) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } &&
21643 { ac_try='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_type_signal=void
21650else
21651 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021652sed 's/^/| /' conftest.$ac_ext >&5
21653
John Criswell7a73b802003-06-30 21:59:07 +000021654ac_cv_type_signal=int
21655fi
21656rm -f conftest.$ac_objext conftest.$ac_ext
21657fi
21658echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21659echo "${ECHO_T}$ac_cv_type_signal" >&6
21660
21661cat >>confdefs.h <<_ACEOF
21662#define RETSIGTYPE $ac_cv_type_signal
21663_ACEOF
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21676do
21677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21678echo "$as_me:$LINENO: checking for $ac_func" >&5
21679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21680if eval "test \"\${$as_ac_var+set}\" = set"; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682else
21683 cat >conftest.$ac_ext <<_ACEOF
21684#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021685/* confdefs.h. */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021690/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021691 which can conflict with char $ac_func (); below.
21692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21693 <limits.h> exists even on freestanding compilers. */
21694#ifdef __STDC__
21695# include <limits.h>
21696#else
21697# include <assert.h>
21698#endif
John Criswell7a73b802003-06-30 21:59:07 +000021699/* Override any gcc2 internal prototype to avoid an error. */
21700#ifdef __cplusplus
21701extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021702{
John Criswell7a73b802003-06-30 21:59:07 +000021703#endif
21704/* We use char because int might match the return type of a gcc2
21705 builtin and then its argument prototype would still apply. */
21706char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021707/* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21711choke me
21712#else
John Criswell392aaa32003-07-22 19:18:09 +000021713char (*f) () = $ac_func;
21714#endif
21715#ifdef __cplusplus
21716}
John Criswell7a73b802003-06-30 21:59:07 +000021717#endif
21718
John Criswell392aaa32003-07-22 19:18:09 +000021719int
21720main ()
21721{
21722return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021723 ;
21724 return 0;
21725}
21726_ACEOF
21727rm -f conftest.$ac_objext conftest$ac_exeext
21728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21729 (eval $ac_link) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } &&
21733 { ac_try='test -s conftest$ac_exeext'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }; then
21739 eval "$as_ac_var=yes"
21740else
21741 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021742sed 's/^/| /' conftest.$ac_ext >&5
21743
John Criswell7a73b802003-06-30 21:59:07 +000021744eval "$as_ac_var=no"
21745fi
21746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21747fi
21748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21750if test `eval echo '${'$as_ac_var'}'` = yes; then
21751 cat >>confdefs.h <<_ACEOF
21752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21753_ACEOF
21754
21755fi
21756done
21757
21758
21759
21760echo "$as_me:$LINENO: checking for mmap" >&5
21761echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21762if test "${ac_cv_func_mmap+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21764else
21765 cat >conftest.$ac_ext <<_ACEOF
21766#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021767/* confdefs.h. */
21768_ACEOF
21769cat confdefs.h >>conftest.$ac_ext
21770cat >>conftest.$ac_ext <<_ACEOF
21771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021772/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021773 which can conflict with char mmap (); below.
21774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775 <limits.h> exists even on freestanding compilers. */
21776#ifdef __STDC__
21777# include <limits.h>
21778#else
21779# include <assert.h>
21780#endif
John Criswell7a73b802003-06-30 21:59:07 +000021781/* Override any gcc2 internal prototype to avoid an error. */
21782#ifdef __cplusplus
21783extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021784{
John Criswell7a73b802003-06-30 21:59:07 +000021785#endif
21786/* We use char because int might match the return type of a gcc2
21787 builtin and then its argument prototype would still apply. */
21788char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000021789/* The GNU C library defines this for functions which it implements
21790 to always fail with ENOSYS. Some functions are actually named
21791 something starting with __ and the normal name is an alias. */
21792#if defined (__stub_mmap) || defined (__stub___mmap)
21793choke me
21794#else
John Criswell392aaa32003-07-22 19:18:09 +000021795char (*f) () = mmap;
21796#endif
21797#ifdef __cplusplus
21798}
John Criswell7a73b802003-06-30 21:59:07 +000021799#endif
21800
John Criswell392aaa32003-07-22 19:18:09 +000021801int
21802main ()
21803{
21804return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000021805 ;
21806 return 0;
21807}
21808_ACEOF
21809rm -f conftest.$ac_objext conftest$ac_exeext
21810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811 (eval $ac_link) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } &&
21815 { ac_try='test -s conftest$ac_exeext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_func_mmap=yes
21822else
21823 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021824sed 's/^/| /' conftest.$ac_ext >&5
21825
John Criswell7a73b802003-06-30 21:59:07 +000021826ac_cv_func_mmap=no
21827fi
21828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21829fi
21830echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21831echo "${ECHO_T}$ac_cv_func_mmap" >&6
21832if test $ac_cv_func_mmap = yes; then
21833 :
21834else
21835 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21836echo "$as_me: error: Function mmap() required but not found" >&2;}
21837 { (exit 1); exit 1; }; }
21838fi
21839
21840echo "$as_me:$LINENO: checking for mprotect" >&5
21841echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21842if test "${ac_cv_func_mprotect+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845 cat >conftest.$ac_ext <<_ACEOF
21846#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021852/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021853 which can conflict with char mprotect (); below.
21854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21855 <limits.h> exists even on freestanding compilers. */
21856#ifdef __STDC__
21857# include <limits.h>
21858#else
21859# include <assert.h>
21860#endif
John Criswell7a73b802003-06-30 21:59:07 +000021861/* Override any gcc2 internal prototype to avoid an error. */
21862#ifdef __cplusplus
21863extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021864{
John Criswell7a73b802003-06-30 21:59:07 +000021865#endif
21866/* We use char because int might match the return type of a gcc2
21867 builtin and then its argument prototype would still apply. */
21868char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021869/* The GNU C library defines this for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872#if defined (__stub_mprotect) || defined (__stub___mprotect)
21873choke me
21874#else
John Criswell392aaa32003-07-22 19:18:09 +000021875char (*f) () = mprotect;
21876#endif
21877#ifdef __cplusplus
21878}
John Criswell7a73b802003-06-30 21:59:07 +000021879#endif
21880
John Criswell392aaa32003-07-22 19:18:09 +000021881int
21882main ()
21883{
21884return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021885 ;
21886 return 0;
21887}
21888_ACEOF
21889rm -f conftest.$ac_objext conftest$ac_exeext
21890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } &&
21895 { ac_try='test -s conftest$ac_exeext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_func_mprotect=yes
21902else
21903 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021904sed 's/^/| /' conftest.$ac_ext >&5
21905
John Criswell7a73b802003-06-30 21:59:07 +000021906ac_cv_func_mprotect=no
21907fi
21908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21909fi
21910echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21911echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21912if test $ac_cv_func_mprotect = yes; then
21913 :
21914else
21915 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21916echo "$as_me: error: Function mprotect() required but not found" >&2;}
21917 { (exit 1); exit 1; }; }
21918fi
21919
21920
John Criswellb13092b2003-07-22 21:00:24 +000021921
John Criswell7a73b802003-06-30 21:59:07 +000021922# Check whether --enable-purify or --disable-purify was given.
21923if test "${enable_purify+set}" = set; then
21924 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000021925
21926else
John Criswellb13092b2003-07-22 21:00:24 +000021927 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000021928fi;
John Criswellb13092b2003-07-22 21:00:24 +000021929if test ${enableval} = "no"
21930then
21931 ENABLE_PURIFY=
21932
21933else
21934 ENABLE_PURIFY=ENABLE_PURIFY=1
21935
21936fi
21937
John Criswell7a73b802003-06-30 21:59:07 +000021938# Check whether --enable-optimized or --disable-optimized was given.
21939if test "${enable_optimized+set}" = set; then
21940 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021941
21942else
John Criswellb13092b2003-07-22 21:00:24 +000021943 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021944fi;
John Criswellb13092b2003-07-22 21:00:24 +000021945if test ${enableval} = "no"
21946then
21947 ENABLE_OPTIMIZED=
21948
21949else
21950 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21951
21952fi
21953
John Criswell7a73b802003-06-30 21:59:07 +000021954# Check whether --enable-spec or --disable-spec was given.
21955if test "${enable_spec+set}" = set; then
21956 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000021957
21958else
John Criswellb13092b2003-07-22 21:00:24 +000021959 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021960fi;
John Criswellb13092b2003-07-22 21:00:24 +000021961if test ${enableval} = "no"
21962then
21963 USE_SPEC=
21964
21965else
21966 USE_SPEC=USE_SPEC=1
21967
21968fi
21969
John Criswell7a73b802003-06-30 21:59:07 +000021970# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21971if test "${enable_precompiled_bytecode+set}" = set; then
21972 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021973
21974else
John Criswellb13092b2003-07-22 21:00:24 +000021975 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021976fi;
John Criswellb13092b2003-07-22 21:00:24 +000021977if test ${enableval} = "no"
21978then
21979 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021980
John Criswellb13092b2003-07-22 21:00:24 +000021981else
21982 UPB=USE_PRECOMPILED_BYTECODE=1
21983
21984fi
John Criswellf02dbf02003-07-22 20:07:49 +000021985
21986
21987# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21988if test "${enable_llc_diffs+set}" = set; then
21989 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000021990
21991else
John Criswellb13092b2003-07-22 21:00:24 +000021992 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000021993fi;
John Criswellb13092b2003-07-22 21:00:24 +000021994if test ${enableval} = "no"
21995then
21996 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000021997
John Criswellb13092b2003-07-22 21:00:24 +000021998else
21999 DISABLE_LLC_DIFFS=
22000
22001fi
22002
22003# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022004if test "${enable_jit+set}" = set; then
22005 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022006
22007else
John Criswellc78022e2003-07-29 19:11:58 +000022008 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022009fi;
John Criswellb13092b2003-07-22 21:00:24 +000022010
22011if test ${enableval} = "no"
22012then
22013 JIT=
22014
22015else
John Criswellc78022e2003-07-29 19:11:58 +000022016 case $target in
22017 *i*86*)
22018 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022019
John Criswellc78022e2003-07-29 19:11:58 +000022020 ;;
22021 *sparc*)
22022 JIT=TARGET_HAS_JIT=1
22023
22024 ;;
22025 *)
22026 JIT=
22027
22028 ;;
22029 esac
John Criswellb13092b2003-07-22 21:00:24 +000022030fi
John Criswell7a73b802003-06-30 21:59:07 +000022031
22032
John Criswellc78022e2003-07-29 19:11:58 +000022033
John Criswell7a73b802003-06-30 21:59:07 +000022034# Check whether --with-spec or --without-spec was given.
22035if test "${with_spec+set}" = set; then
22036 withval="$with_spec"
22037 SPEC_ROOT=$withval
22038
22039else
22040 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22041
22042fi;
22043
John Criswellc78022e2003-07-29 19:11:58 +000022044
John Criswell7a73b802003-06-30 21:59:07 +000022045# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22046if test "${with_llvmgccdir+set}" = set; then
22047 withval="$with_llvmgccdir"
22048 LLVMGCCDIR=$withval
22049
22050fi;
22051
John Criswellc78022e2003-07-29 19:11:58 +000022052
John Criswell7a73b802003-06-30 21:59:07 +000022053# Check whether --with-bcrepos or --without-bcrepos was given.
22054if test "${with_bcrepos+set}" = set; then
22055 withval="$with_bcrepos"
22056 BCR=$withval
22057
22058else
22059 BCR=/home/vadve/lattner/LLVMPrograms
22060
22061fi;
22062
John Criswellc78022e2003-07-29 19:11:58 +000022063
John Criswell7a73b802003-06-30 21:59:07 +000022064# Check whether --with-papi or --without-papi was given.
22065if test "${with_papi+set}" = set; then
22066 withval="$with_papi"
22067 PAPIDIR=$withval
22068
22069else
22070 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
22071
22072fi;
22073
John Criswell7a73b802003-06-30 21:59:07 +000022074
22075# Check whether --with-purify or --without-purify was given.
22076if test "${with_purify+set}" = set; then
22077 withval="$with_purify"
22078 PURIFY=$withval
22079
22080fi;
22081
John Criswell54ac8b12003-07-31 16:45:37 +000022082if test ${USER}
John Criswellc78022e2003-07-29 19:11:58 +000022083then
John Criswell54ac8b12003-07-31 16:45:37 +000022084 if test -d /localhome/${USER}
22085 then
22086 OBJROOT=/localhome/${USER}
John Criswellc78022e2003-07-29 19:11:58 +000022087
John Criswell54ac8b12003-07-31 16:45:37 +000022088 else
22089 OBJROOT=.
22090
22091 fi
John Criswellc78022e2003-07-29 19:11:58 +000022092else
22093 OBJROOT=.
22094
22095fi
22096
22097
22098# Check whether --with-objroot or --without-objroot was given.
22099if test "${with_objroot+set}" = set; then
22100 withval="$with_objroot"
22101 OBJROOT=$withval
22102
22103fi;
22104
John Criswell392aaa32003-07-22 19:18:09 +000022105 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022106cat >confcache <<\_ACEOF
22107# This file is a shell script that caches the results of configure
22108# tests run on this system so they can be shared between configure
22109# scripts and configure runs, see configure's option --config-cache.
22110# It is not useful on other systems. If it contains results you don't
22111# want to keep, you may remove or edit it.
22112#
22113# config.status only pays attention to the cache file if you give it
22114# the --recheck option to rerun configure.
22115#
John Criswell392aaa32003-07-22 19:18:09 +000022116# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022117# loading this file, other *unset* `ac_cv_foo' will be assigned the
22118# following values.
22119
22120_ACEOF
22121
22122# The following way of writing the cache mishandles newlines in values,
22123# but we know of no workaround that is simple, portable, and efficient.
22124# So, don't put newlines in cache variables' values.
22125# Ultrix sh set writes to stderr and can't be redirected directly,
22126# and sets the high bit in the cache file unless we assign to the vars.
22127{
22128 (set) 2>&1 |
22129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22130 *ac_space=\ *)
22131 # `set' does not quote correctly, so add quotes (double-quote
22132 # substitution turns \\\\ into \\, and sed turns \\ into \).
22133 sed -n \
22134 "s/'/'\\\\''/g;
22135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22136 ;;
22137 *)
22138 # `set' quotes correctly as required by POSIX, so do not add quotes.
22139 sed -n \
22140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22141 ;;
22142 esac;
22143} |
22144 sed '
22145 t clear
22146 : clear
22147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22148 t end
22149 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22150 : end' >>confcache
John Criswell392aaa32003-07-22 19:18:09 +000022151if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022152 if test -w $cache_file; then
22153 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22154 cat confcache >$cache_file
22155 else
22156 echo "not updating unwritable cache $cache_file"
22157 fi
22158fi
22159rm -f confcache
22160
22161test "x$prefix" = xNONE && prefix=$ac_default_prefix
22162# Let make expand exec_prefix.
22163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22164
22165# VPATH may cause trouble with some makes, so we remove $(srcdir),
22166# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22167# trailing colons and then remove the whole line if VPATH becomes empty
22168# (actually we leave an empty line to preserve line numbers).
22169if test "x$srcdir" = x.; then
22170 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22171s/:*\$(srcdir):*/:/;
22172s/:*\${srcdir}:*/:/;
22173s/:*@srcdir@:*/:/;
22174s/^\([^=]*=[ ]*\):*/\1/;
22175s/:*$//;
22176s/^[^=]*=[ ]*$//;
22177}'
22178fi
22179
22180DEFS=-DHAVE_CONFIG_H
22181
John Criswell392aaa32003-07-22 19:18:09 +000022182ac_libobjs=
22183ac_ltlibobjs=
22184for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22185 # 1. Remove the extension, and $U if already installed.
22186 ac_i=`echo "$ac_i" |
22187 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22188 # 2. Add them.
22189 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22190 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22191done
22192LIBOBJS=$ac_libobjs
22193
22194LTLIBOBJS=$ac_ltlibobjs
22195
22196
John Criswell7a73b802003-06-30 21:59:07 +000022197
22198: ${CONFIG_STATUS=./config.status}
22199ac_clean_files_save=$ac_clean_files
22200ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22201{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22202echo "$as_me: creating $CONFIG_STATUS" >&6;}
22203cat >$CONFIG_STATUS <<_ACEOF
22204#! $SHELL
22205# Generated by $as_me.
22206# Run this file to recreate the current configuration.
22207# Compiler output produced by configure, useful for debugging
22208# configure, is in config.log if it exists.
22209
22210debug=false
John Criswell392aaa32003-07-22 19:18:09 +000022211ac_cs_recheck=false
22212ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022213SHELL=\${CONFIG_SHELL-$SHELL}
22214_ACEOF
22215
22216cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022217## --------------------- ##
22218## M4sh Initialization. ##
22219## --------------------- ##
22220
22221# Be Bourne compatible
22222if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22223 emulate sh
22224 NULLCMD=:
John Criswell392aaa32003-07-22 19:18:09 +000022225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22226 # is contrary to our usage. Disable this feature.
22227 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022228elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22229 set -o posix
22230fi
22231
John Criswell7a73b802003-06-30 21:59:07 +000022232# Support unset when possible.
22233if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22234 as_unset=unset
22235else
22236 as_unset=false
22237fi
22238
John Criswell392aaa32003-07-22 19:18:09 +000022239
22240# Work around bugs in pre-3.0 UWIN ksh.
22241$as_unset ENV MAIL MAILPATH
22242PS1='$ '
22243PS2='> '
22244PS4='+ '
22245
22246# NLS nuisances.
22247for as_var in \
22248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22250 LC_TELEPHONE LC_TIME
22251do
22252 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22253 eval $as_var=C; export $as_var
22254 else
22255 $as_unset $as_var
22256 fi
22257done
22258
22259# Required to use basename.
22260if expr a : '\(a\)' >/dev/null 2>&1; then
22261 as_expr=expr
22262else
22263 as_expr=false
22264fi
22265
22266if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22267 as_basename=basename
22268else
22269 as_basename=false
22270fi
John Criswell7a73b802003-06-30 21:59:07 +000022271
22272
22273# Name of the executable.
John Criswell392aaa32003-07-22 19:18:09 +000022274as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022275$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22276 X"$0" : 'X\(//\)$' \| \
22277 X"$0" : 'X\(/\)$' \| \
22278 . : '\(.\)' 2>/dev/null ||
22279echo X/"$0" |
22280 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22281 /^X\/\(\/\/\)$/{ s//\1/; q; }
22282 /^X\/\(\/\).*/{ s//\1/; q; }
22283 s/.*/./; q'`
22284
John Criswell392aaa32003-07-22 19:18:09 +000022285
John Criswell7a73b802003-06-30 21:59:07 +000022286# PATH needs CR, and LINENO needs CR and PATH.
22287# Avoid depending upon Character Ranges.
22288as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22289as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22290as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22291as_cr_digits='0123456789'
22292as_cr_alnum=$as_cr_Letters$as_cr_digits
22293
22294# The user is always right.
22295if test "${PATH_SEPARATOR+set}" != set; then
John Criswell392aaa32003-07-22 19:18:09 +000022296 echo "#! /bin/sh" >conf$$.sh
22297 echo "exit 0" >>conf$$.sh
22298 chmod +x conf$$.sh
22299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022300 PATH_SEPARATOR=';'
22301 else
22302 PATH_SEPARATOR=:
22303 fi
John Criswell392aaa32003-07-22 19:18:09 +000022304 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022305fi
22306
22307
22308 as_lineno_1=$LINENO
22309 as_lineno_2=$LINENO
22310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22311 test "x$as_lineno_1" != "x$as_lineno_2" &&
22312 test "x$as_lineno_3" = "x$as_lineno_2" || {
22313 # Find who we are. Look in the path if we contain no path at all
22314 # relative or not.
22315 case $0 in
22316 *[\\/]* ) as_myself=$0 ;;
22317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22318for as_dir in $PATH
22319do
22320 IFS=$as_save_IFS
22321 test -z "$as_dir" && as_dir=.
22322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22323done
22324
22325 ;;
22326 esac
22327 # We did not find ourselves, most probably we were run as `sh COMMAND'
22328 # in which case we are not to be found in the path.
22329 if test "x$as_myself" = x; then
22330 as_myself=$0
22331 fi
22332 if test ! -f "$as_myself"; then
22333 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22334echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22335 { (exit 1); exit 1; }; }
22336 fi
22337 case $CONFIG_SHELL in
22338 '')
22339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22340for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22341do
22342 IFS=$as_save_IFS
22343 test -z "$as_dir" && as_dir=.
22344 for as_base in sh bash ksh sh5; do
22345 case $as_dir in
22346 /*)
22347 if ("$as_dir/$as_base" -c '
22348 as_lineno_1=$LINENO
22349 as_lineno_2=$LINENO
22350 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22351 test "x$as_lineno_1" != "x$as_lineno_2" &&
22352 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell392aaa32003-07-22 19:18:09 +000022353 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22354 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022355 CONFIG_SHELL=$as_dir/$as_base
22356 export CONFIG_SHELL
22357 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22358 fi;;
22359 esac
22360 done
22361done
22362;;
22363 esac
22364
22365 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22366 # uniformly replaced by the line number. The first 'sed' inserts a
22367 # line-number line before each line; the second 'sed' does the real
22368 # work. The second script uses 'N' to pair each line-number line
22369 # with the numbered line, and appends trailing '-' during
22370 # substitution so that $LINENO is not a special case at line end.
22371 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22372 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22373 sed '=' <$as_myself |
22374 sed '
22375 N
22376 s,$,-,
22377 : loop
22378 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22379 t loop
22380 s,-$,,
22381 s,^['$as_cr_digits']*\n,,
22382 ' >$as_me.lineno &&
22383 chmod +x $as_me.lineno ||
22384 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22385echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22386 { (exit 1); exit 1; }; }
22387
22388 # Don't try to exec as it changes $[0], causing all sort of problems
22389 # (the dirname of $[0] is not the place where we might find the
22390 # original and so on. Autoconf is especially sensible to this).
22391 . ./$as_me.lineno
22392 # Exit status is that of the last command.
22393 exit
22394}
22395
22396
22397case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22398 *c*,-n*) ECHO_N= ECHO_C='
22399' ECHO_T=' ' ;;
22400 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22401 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22402esac
22403
22404if expr a : '\(a\)' >/dev/null 2>&1; then
22405 as_expr=expr
22406else
22407 as_expr=false
22408fi
22409
22410rm -f conf$$ conf$$.exe conf$$.file
22411echo >conf$$.file
22412if ln -s conf$$.file conf$$ 2>/dev/null; then
22413 # We could just check for DJGPP; but this test a) works b) is more generic
22414 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22415 if test -f conf$$.exe; then
22416 # Don't use ln at all; we don't have any links
22417 as_ln_s='cp -p'
22418 else
22419 as_ln_s='ln -s'
22420 fi
22421elif ln conf$$.file conf$$ 2>/dev/null; then
22422 as_ln_s=ln
22423else
22424 as_ln_s='cp -p'
22425fi
22426rm -f conf$$ conf$$.exe conf$$.file
22427
John Criswell392aaa32003-07-22 19:18:09 +000022428if mkdir -p . 2>/dev/null; then
22429 as_mkdir_p=:
22430else
22431 as_mkdir_p=false
22432fi
22433
John Criswell7a73b802003-06-30 21:59:07 +000022434as_executable_p="test -f"
22435
22436# Sed expression to map a string onto a valid CPP name.
22437as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22438
22439# Sed expression to map a string onto a valid variable name.
22440as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22441
22442
22443# IFS
22444# We need space, tab and new line, in precisely that order.
22445as_nl='
22446'
22447IFS=" $as_nl"
22448
22449# CDPATH.
John Criswell392aaa32003-07-22 19:18:09 +000022450$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022451
22452exec 6>&1
22453
22454# Open the log real soon, to keep \$[0] and so on meaningful, and to
22455# report actual input values of CONFIG_FILES etc. instead of their
22456# values after options handling. Logging --version etc. is OK.
22457exec 5>>config.log
22458{
22459 echo
22460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22461## Running $as_me. ##
22462_ASBOX
22463} >&5
22464cat >&5 <<_CSEOF
22465
22466This file was extended by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +000022467generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022468
22469 CONFIG_FILES = $CONFIG_FILES
22470 CONFIG_HEADERS = $CONFIG_HEADERS
22471 CONFIG_LINKS = $CONFIG_LINKS
22472 CONFIG_COMMANDS = $CONFIG_COMMANDS
22473 $ $0 $@
22474
22475_CSEOF
22476echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22477echo >&5
22478_ACEOF
22479
22480# Files that config.status was made for.
22481if test -n "$ac_config_files"; then
22482 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22483fi
22484
22485if test -n "$ac_config_headers"; then
22486 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22487fi
22488
22489if test -n "$ac_config_links"; then
22490 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22491fi
22492
22493if test -n "$ac_config_commands"; then
22494 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22495fi
22496
22497cat >>$CONFIG_STATUS <<\_ACEOF
22498
22499ac_cs_usage="\
22500\`$as_me' instantiates files from templates according to the
22501current configuration.
22502
22503Usage: $0 [OPTIONS] [FILE]...
22504
22505 -h, --help print this help, then exit
22506 -V, --version print version number, then exit
John Criswell392aaa32003-07-22 19:18:09 +000022507 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022508 -d, --debug don't remove temporary files
22509 --recheck update $as_me by reconfiguring in the same conditions
22510 --file=FILE[:TEMPLATE]
22511 instantiate the configuration file FILE
22512 --header=FILE[:TEMPLATE]
22513 instantiate the configuration header FILE
22514
22515Configuration files:
22516$config_files
22517
22518Configuration headers:
22519$config_headers
22520
22521Report bugs to <bug-autoconf@gnu.org>."
22522_ACEOF
22523
22524cat >>$CONFIG_STATUS <<_ACEOF
22525ac_cs_version="\\
22526[LLVM] config.status [1.0]
John Criswell392aaa32003-07-22 19:18:09 +000022527configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022528 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22529
22530Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22531Free Software Foundation, Inc.
22532This config.status script is free software; the Free Software Foundation
22533gives unlimited permission to copy, distribute and modify it."
22534srcdir=$srcdir
22535INSTALL="$INSTALL"
22536_ACEOF
22537
22538cat >>$CONFIG_STATUS <<\_ACEOF
22539# If no file are specified by the user, then we need to provide default
22540# value. By we need to know if files were specified by the user.
22541ac_need_defaults=:
22542while test $# != 0
22543do
22544 case $1 in
22545 --*=*)
22546 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22547 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell392aaa32003-07-22 19:18:09 +000022548 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022549 ;;
John Criswell392aaa32003-07-22 19:18:09 +000022550 -*)
22551 ac_option=$1
22552 ac_optarg=$2
22553 ac_shift=shift
22554 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022555 *) # This is not an option, so the user has probably given explicit
22556 # arguments.
John Criswell392aaa32003-07-22 19:18:09 +000022557 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022558 ac_need_defaults=false;;
22559 esac
22560
John Criswell392aaa32003-07-22 19:18:09 +000022561 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022562 # Handling of the options.
22563_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022564cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000022565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22566 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022567 --version | --vers* | -V )
22568 echo "$ac_cs_version"; exit 0 ;;
22569 --he | --h)
22570 # Conflict between --help and --header
22571 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22572Try \`$0 --help' for more information." >&5
22573echo "$as_me: error: ambiguous option: $1
22574Try \`$0 --help' for more information." >&2;}
22575 { (exit 1); exit 1; }; };;
22576 --help | --hel | -h )
22577 echo "$ac_cs_usage"; exit 0 ;;
22578 --debug | --d* | -d )
22579 debug=: ;;
22580 --file | --fil | --fi | --f )
John Criswell392aaa32003-07-22 19:18:09 +000022581 $ac_shift
22582 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022583 ac_need_defaults=false;;
22584 --header | --heade | --head | --hea )
John Criswell392aaa32003-07-22 19:18:09 +000022585 $ac_shift
22586 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022587 ac_need_defaults=false;;
John Criswell392aaa32003-07-22 19:18:09 +000022588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22590 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022591
22592 # This is an error.
22593 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22594Try \`$0 --help' for more information." >&5
22595echo "$as_me: error: unrecognized option: $1
22596Try \`$0 --help' for more information." >&2;}
22597 { (exit 1); exit 1; }; } ;;
22598
22599 *) ac_config_targets="$ac_config_targets $1" ;;
22600
22601 esac
22602 shift
22603done
22604
John Criswell392aaa32003-07-22 19:18:09 +000022605ac_configure_extra_args=
22606
22607if $ac_cs_silent; then
22608 exec 6>/dev/null
22609 ac_configure_extra_args="$ac_configure_extra_args --silent"
22610fi
22611
22612_ACEOF
22613cat >>$CONFIG_STATUS <<_ACEOF
22614if \$ac_cs_recheck; then
22615 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22616 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22617fi
22618
John Criswell7a73b802003-06-30 21:59:07 +000022619_ACEOF
22620
22621
22622
22623
22624
22625cat >>$CONFIG_STATUS <<\_ACEOF
22626for ac_config_target in $ac_config_targets
22627do
22628 case "$ac_config_target" in
22629 # Handling of arguments.
22630 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22631 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22633echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22634 { (exit 1); exit 1; }; };;
22635 esac
22636done
22637
22638# If the user did not use the arguments to specify the items to instantiate,
22639# then the envvar interface is used. Set only those that are not.
22640# We use the long form for the default assignment because of an extremely
22641# bizarre bug on SunOS 4.1.3.
22642if $ac_need_defaults; then
22643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22645fi
22646
John Criswell392aaa32003-07-22 19:18:09 +000022647# Have a temporary directory for convenience. Make it in the build tree
22648# simply because there is no reason to put it here, and in addition,
22649# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022650# Create a temporary directory, and hook for its removal unless debugging.
22651$debug ||
22652{
22653 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22654 trap '{ (exit 1); exit 1; }' 1 2 13 15
22655}
22656
22657# Create a (secure) tmp directory for tmp files.
John Criswell392aaa32003-07-22 19:18:09 +000022658
John Criswell7a73b802003-06-30 21:59:07 +000022659{
John Criswell392aaa32003-07-22 19:18:09 +000022660 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022661 test -n "$tmp" && test -d "$tmp"
22662} ||
22663{
John Criswell392aaa32003-07-22 19:18:09 +000022664 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022665 (umask 077 && mkdir $tmp)
22666} ||
22667{
John Criswell392aaa32003-07-22 19:18:09 +000022668 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022669 { (exit 1); exit 1; }
22670}
22671
22672_ACEOF
22673
22674cat >>$CONFIG_STATUS <<_ACEOF
22675
22676#
22677# CONFIG_FILES section.
22678#
22679
22680# No need to generate the scripts if there are no CONFIG_FILES.
22681# This happens for instance when ./config.status config.h
22682if test -n "\$CONFIG_FILES"; then
22683 # Protect against being on the right side of a sed subst in config.status.
22684 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22685 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22686s,@SHELL@,$SHELL,;t t
22687s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22688s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22689s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22690s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22691s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22692s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22693s,@exec_prefix@,$exec_prefix,;t t
22694s,@prefix@,$prefix,;t t
22695s,@program_transform_name@,$program_transform_name,;t t
22696s,@bindir@,$bindir,;t t
22697s,@sbindir@,$sbindir,;t t
22698s,@libexecdir@,$libexecdir,;t t
22699s,@datadir@,$datadir,;t t
22700s,@sysconfdir@,$sysconfdir,;t t
22701s,@sharedstatedir@,$sharedstatedir,;t t
22702s,@localstatedir@,$localstatedir,;t t
22703s,@libdir@,$libdir,;t t
22704s,@includedir@,$includedir,;t t
22705s,@oldincludedir@,$oldincludedir,;t t
22706s,@infodir@,$infodir,;t t
22707s,@mandir@,$mandir,;t t
22708s,@build_alias@,$build_alias,;t t
22709s,@host_alias@,$host_alias,;t t
22710s,@target_alias@,$target_alias,;t t
22711s,@DEFS@,$DEFS,;t t
22712s,@ECHO_C@,$ECHO_C,;t t
22713s,@ECHO_N@,$ECHO_N,;t t
22714s,@ECHO_T@,$ECHO_T,;t t
22715s,@LIBS@,$LIBS,;t t
22716s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22717s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22718s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22719s,@build@,$build,;t t
22720s,@build_cpu@,$build_cpu,;t t
22721s,@build_vendor@,$build_vendor,;t t
22722s,@build_os@,$build_os,;t t
22723s,@host@,$host,;t t
22724s,@host_cpu@,$host_cpu,;t t
22725s,@host_vendor@,$host_vendor,;t t
22726s,@host_os@,$host_os,;t t
22727s,@target@,$target,;t t
22728s,@target_cpu@,$target_cpu,;t t
22729s,@target_vendor@,$target_vendor,;t t
22730s,@target_os@,$target_os,;t t
22731s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022732s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022733s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022734s,@CXX@,$CXX,;t t
22735s,@CXXFLAGS@,$CXXFLAGS,;t t
22736s,@LDFLAGS@,$LDFLAGS,;t t
22737s,@CPPFLAGS@,$CPPFLAGS,;t t
22738s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22739s,@EXEEXT@,$EXEEXT,;t t
22740s,@OBJEXT@,$OBJEXT,;t t
22741s,@CC@,$CC,;t t
22742s,@CFLAGS@,$CFLAGS,;t t
22743s,@ac_ct_CC@,$ac_ct_CC,;t t
22744s,@CPP@,$CPP,;t t
22745s,@ifGNUmake@,$ifGNUmake,;t t
22746s,@LEX@,$LEX,;t t
22747s,@LEXLIB@,$LEXLIB,;t t
22748s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22749s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022750s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022751s,@LN_S@,$LN_S,;t t
22752s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022753s,@AR@,$AR,;t t
22754s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022755s,@RANLIB@,$RANLIB,;t t
22756s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22757s,@STRIP@,$STRIP,;t t
22758s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022759s,@CXXCPP@,$CXXCPP,;t t
22760s,@F77@,$F77,;t t
22761s,@FFLAGS@,$FFLAGS,;t t
22762s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022763s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022764s,@SED@,$SED,;t t
22765s,@RM@,$RM,;t t
22766s,@MKDIR@,$MKDIR,;t t
22767s,@DATE@,$DATE,;t t
22768s,@MV@,$MV,;t t
22769s,@DOT@,$DOT,;t t
22770s,@ETAGS@,$ETAGS,;t t
22771s,@PURIFY@,$PURIFY,;t t
22772s,@ALLOCA@,$ALLOCA,;t t
22773s,@LIBOBJS@,$LIBOBJS,;t t
22774s,@MMAP_FILE@,$MMAP_FILE,;t t
22775s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022776s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22777s,@USE_SPEC@,$USE_SPEC,;t t
22778s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022779s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022780s,@JIT@,$JIT,;t t
22781s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22782s,@BCR@,$BCR,;t t
22783s,@PAPIDIR@,$PAPIDIR,;t t
22784s,@OBJROOT@,$OBJROOT,;t t
John Criswell392aaa32003-07-22 19:18:09 +000022785s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022786CEOF
22787
22788_ACEOF
22789
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22791 # Split the substitutions into bite-sized pieces for seds with
22792 # small command number limits, like on Digital OSF/1 and HP-UX.
22793 ac_max_sed_lines=48
22794 ac_sed_frag=1 # Number of current file.
22795 ac_beg=1 # First line for current file.
22796 ac_end=$ac_max_sed_lines # Line after last line for current file.
22797 ac_more_lines=:
22798 ac_sed_cmds=
22799 while $ac_more_lines; do
22800 if test $ac_beg -gt 1; then
22801 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22802 else
22803 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22804 fi
22805 if test ! -s $tmp/subs.frag; then
22806 ac_more_lines=false
22807 else
22808 # The purpose of the label and of the branching condition is to
22809 # speed up the sed processing (if there are no `@' at all, there
22810 # is no need to browse any of the substitutions).
22811 # These are the two extra sed commands mentioned above.
22812 (echo ':t
22813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22814 if test -z "$ac_sed_cmds"; then
22815 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22816 else
22817 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22818 fi
22819 ac_sed_frag=`expr $ac_sed_frag + 1`
22820 ac_beg=$ac_end
22821 ac_end=`expr $ac_end + $ac_max_sed_lines`
22822 fi
22823 done
22824 if test -z "$ac_sed_cmds"; then
22825 ac_sed_cmds=cat
22826 fi
22827fi # test -n "$CONFIG_FILES"
22828
22829_ACEOF
22830cat >>$CONFIG_STATUS <<\_ACEOF
22831for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22833 case $ac_file in
22834 - | *:- | *:-:* ) # input from stdin
22835 cat >$tmp/stdin
22836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22840 * ) ac_file_in=$ac_file.in ;;
22841 esac
22842
22843 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22844 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22846 X"$ac_file" : 'X\(//\)[^/]' \| \
22847 X"$ac_file" : 'X\(//\)$' \| \
22848 X"$ac_file" : 'X\(/\)' \| \
22849 . : '\(.\)' 2>/dev/null ||
22850echo X"$ac_file" |
22851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22853 /^X\(\/\/\)$/{ s//\1/; q; }
22854 /^X\(\/\).*/{ s//\1/; q; }
22855 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000022856 { if $as_mkdir_p; then
22857 mkdir -p "$ac_dir"
22858 else
22859 as_dir="$ac_dir"
22860 as_dirs=
22861 while test ! -d "$as_dir"; do
22862 as_dirs="$as_dir $as_dirs"
22863 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22865 X"$as_dir" : 'X\(//\)[^/]' \| \
22866 X"$as_dir" : 'X\(//\)$' \| \
22867 X"$as_dir" : 'X\(/\)' \| \
22868 . : '\(.\)' 2>/dev/null ||
22869echo X"$as_dir" |
22870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22872 /^X\(\/\/\)$/{ s//\1/; q; }
22873 /^X\(\/\).*/{ s//\1/; q; }
22874 s/.*/./; q'`
22875 done
22876 test ! -n "$as_dirs" || mkdir $as_dirs
22877 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22878echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22879 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022880
22881 ac_builddir=.
22882
22883if test "$ac_dir" != .; then
22884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22885 # A "../" for each directory in $ac_dir_suffix.
22886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22887else
22888 ac_dir_suffix= ac_top_builddir=
22889fi
22890
22891case $srcdir in
22892 .) # No --srcdir option. We are building in place.
22893 ac_srcdir=.
22894 if test -z "$ac_top_builddir"; then
22895 ac_top_srcdir=.
22896 else
22897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22898 fi ;;
22899 [\\/]* | ?:[\\/]* ) # Absolute path.
22900 ac_srcdir=$srcdir$ac_dir_suffix;
22901 ac_top_srcdir=$srcdir ;;
22902 *) # Relative path.
22903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22905esac
22906# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22907# absolute.
22908ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +000022909ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000022910ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22911ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22912
22913
22914 case $INSTALL in
22915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22916 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22917 esac
22918
22919 if test x"$ac_file" != x-; then
22920 { echo "$as_me:$LINENO: creating $ac_file" >&5
22921echo "$as_me: creating $ac_file" >&6;}
22922 rm -f "$ac_file"
22923 fi
22924 # Let's still pretend it is `configure' which instantiates (i.e., don't
22925 # use $as_me), people would be surprised to read:
22926 # /* config.h. Generated by config.status. */
22927 if test x"$ac_file" = x-; then
22928 configure_input=
22929 else
22930 configure_input="$ac_file. "
22931 fi
22932 configure_input=$configure_input"Generated from `echo $ac_file_in |
22933 sed 's,.*/,,'` by configure."
22934
22935 # First look for the input files in the build tree, otherwise in the
22936 # src tree.
22937 ac_file_inputs=`IFS=:
22938 for f in $ac_file_in; do
22939 case $f in
22940 -) echo $tmp/stdin ;;
22941 [\\/$]*)
22942 # Absolute (can't be DOS-style, as IFS=:)
22943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22944echo "$as_me: error: cannot find input file: $f" >&2;}
22945 { (exit 1); exit 1; }; }
22946 echo $f;;
22947 *) # Relative
22948 if test -f "$f"; then
22949 # Build tree
22950 echo $f
22951 elif test -f "$srcdir/$f"; then
22952 # Source tree
22953 echo $srcdir/$f
22954 else
22955 # /dev/null tree
22956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22957echo "$as_me: error: cannot find input file: $f" >&2;}
22958 { (exit 1); exit 1; }; }
22959 fi;;
22960 esac
22961 done` || { (exit 1); exit 1; }
22962_ACEOF
22963cat >>$CONFIG_STATUS <<_ACEOF
22964 sed "$ac_vpsub
22965$extrasub
22966_ACEOF
22967cat >>$CONFIG_STATUS <<\_ACEOF
22968:t
22969/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22970s,@configure_input@,$configure_input,;t t
22971s,@srcdir@,$ac_srcdir,;t t
22972s,@abs_srcdir@,$ac_abs_srcdir,;t t
22973s,@top_srcdir@,$ac_top_srcdir,;t t
22974s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22975s,@builddir@,$ac_builddir,;t t
22976s,@abs_builddir@,$ac_abs_builddir,;t t
22977s,@top_builddir@,$ac_top_builddir,;t t
22978s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22979s,@INSTALL@,$ac_INSTALL,;t t
22980" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22981 rm -f $tmp/stdin
22982 if test x"$ac_file" != x-; then
22983 mv $tmp/out $ac_file
22984 else
22985 cat $tmp/out
22986 rm -f $tmp/out
22987 fi
22988
22989done
22990_ACEOF
22991cat >>$CONFIG_STATUS <<\_ACEOF
22992
22993#
22994# CONFIG_HEADER section.
22995#
22996
22997# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22998# NAME is the cpp macro being defined and VALUE is the value it is being given.
22999#
23000# ac_d sets the value in "#define NAME VALUE" lines.
23001ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23002ac_dB='[ ].*$,\1#\2'
23003ac_dC=' '
23004ac_dD=',;t'
23005# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23006ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23007ac_uB='$,\1#\2define\3'
23008ac_uC=' '
23009ac_uD=',;t'
23010
23011for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23012 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23013 case $ac_file in
23014 - | *:- | *:-:* ) # input from stdin
23015 cat >$tmp/stdin
23016 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23018 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23020 * ) ac_file_in=$ac_file.in ;;
23021 esac
23022
23023 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23024echo "$as_me: creating $ac_file" >&6;}
23025
23026 # First look for the input files in the build tree, otherwise in the
23027 # src tree.
23028 ac_file_inputs=`IFS=:
23029 for f in $ac_file_in; do
23030 case $f in
23031 -) echo $tmp/stdin ;;
23032 [\\/$]*)
23033 # Absolute (can't be DOS-style, as IFS=:)
23034 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23035echo "$as_me: error: cannot find input file: $f" >&2;}
23036 { (exit 1); exit 1; }; }
23037 echo $f;;
23038 *) # Relative
23039 if test -f "$f"; then
23040 # Build tree
23041 echo $f
23042 elif test -f "$srcdir/$f"; then
23043 # Source tree
23044 echo $srcdir/$f
23045 else
23046 # /dev/null tree
23047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23048echo "$as_me: error: cannot find input file: $f" >&2;}
23049 { (exit 1); exit 1; }; }
23050 fi;;
23051 esac
23052 done` || { (exit 1); exit 1; }
23053 # Remove the trailing spaces.
23054 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23055
23056_ACEOF
23057
23058# Transform confdefs.h into two sed scripts, `conftest.defines' and
23059# `conftest.undefs', that substitutes the proper values into
23060# config.h.in to produce config.h. The first handles `#define'
23061# templates, and the second `#undef' templates.
23062# And first: Protect against being on the right side of a sed subst in
23063# config.status. Protect against being in an unquoted here document
23064# in config.status.
23065rm -f conftest.defines conftest.undefs
23066# Using a here document instead of a string reduces the quoting nightmare.
23067# Putting comments in sed scripts is not portable.
23068#
23069# `end' is used to avoid that the second main sed command (meant for
23070# 0-ary CPP macros) applies to n-ary macro definitions.
23071# See the Autoconf documentation for `clear'.
23072cat >confdef2sed.sed <<\_ACEOF
23073s/[\\&,]/\\&/g
23074s,[\\$`],\\&,g
23075t clear
23076: clear
23077s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23078t end
23079s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23080: end
23081_ACEOF
23082# If some macros were called several times there might be several times
23083# the same #defines, which is useless. Nevertheless, we may not want to
23084# sort them, since we want the *last* AC-DEFINE to be honored.
23085uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23086sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23087rm -f confdef2sed.sed
23088
23089# This sed command replaces #undef with comments. This is necessary, for
23090# example, in the case of _POSIX_SOURCE, which is predefined and required
23091# on some systems where configure will not decide to define it.
23092cat >>conftest.undefs <<\_ACEOF
23093s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23094_ACEOF
23095
23096# Break up conftest.defines because some shells have a limit on the size
23097# of here documents, and old seds have small limits too (100 cmds).
23098echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell392aaa32003-07-22 19:18:09 +000023099echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023100echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23101echo ' :' >>$CONFIG_STATUS
23102rm -f conftest.tail
23103while grep . conftest.defines >/dev/null
23104do
23105 # Write a limited-size here document to $tmp/defines.sed.
23106 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23107 # Speed up: don't consider the non `#define' lines.
23108 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23109 # Work around the forget-to-reset-the-flag bug.
23110 echo 't clr' >>$CONFIG_STATUS
23111 echo ': clr' >>$CONFIG_STATUS
23112 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23113 echo 'CEOF
23114 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23115 rm -f $tmp/in
23116 mv $tmp/out $tmp/in
23117' >>$CONFIG_STATUS
23118 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23119 rm -f conftest.defines
23120 mv conftest.tail conftest.defines
23121done
23122rm -f conftest.defines
John Criswell392aaa32003-07-22 19:18:09 +000023123echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023124echo >>$CONFIG_STATUS
23125
23126# Break up conftest.undefs because some shells have a limit on the size
23127# of here documents, and old seds have small limits too (100 cmds).
23128echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23129rm -f conftest.tail
23130while grep . conftest.undefs >/dev/null
23131do
23132 # Write a limited-size here document to $tmp/undefs.sed.
23133 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23134 # Speed up: don't consider the non `#undef'
23135 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23136 # Work around the forget-to-reset-the-flag bug.
23137 echo 't clr' >>$CONFIG_STATUS
23138 echo ': clr' >>$CONFIG_STATUS
23139 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23140 echo 'CEOF
23141 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23142 rm -f $tmp/in
23143 mv $tmp/out $tmp/in
23144' >>$CONFIG_STATUS
23145 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23146 rm -f conftest.undefs
23147 mv conftest.tail conftest.undefs
23148done
23149rm -f conftest.undefs
23150
23151cat >>$CONFIG_STATUS <<\_ACEOF
23152 # Let's still pretend it is `configure' which instantiates (i.e., don't
23153 # use $as_me), people would be surprised to read:
23154 # /* config.h. Generated by config.status. */
23155 if test x"$ac_file" = x-; then
23156 echo "/* Generated by configure. */" >$tmp/config.h
23157 else
23158 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23159 fi
23160 cat $tmp/in >>$tmp/config.h
23161 rm -f $tmp/in
23162 if test x"$ac_file" != x-; then
John Criswell392aaa32003-07-22 19:18:09 +000023163 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23165echo "$as_me: $ac_file is unchanged" >&6;}
23166 else
23167 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23169 X"$ac_file" : 'X\(//\)[^/]' \| \
23170 X"$ac_file" : 'X\(//\)$' \| \
23171 X"$ac_file" : 'X\(/\)' \| \
23172 . : '\(.\)' 2>/dev/null ||
23173echo X"$ac_file" |
23174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23176 /^X\(\/\/\)$/{ s//\1/; q; }
23177 /^X\(\/\).*/{ s//\1/; q; }
23178 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000023179 { if $as_mkdir_p; then
23180 mkdir -p "$ac_dir"
23181 else
23182 as_dir="$ac_dir"
23183 as_dirs=
23184 while test ! -d "$as_dir"; do
23185 as_dirs="$as_dir $as_dirs"
23186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23188 X"$as_dir" : 'X\(//\)[^/]' \| \
23189 X"$as_dir" : 'X\(//\)$' \| \
23190 X"$as_dir" : 'X\(/\)' \| \
23191 . : '\(.\)' 2>/dev/null ||
23192echo X"$as_dir" |
23193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23195 /^X\(\/\/\)$/{ s//\1/; q; }
23196 /^X\(\/\).*/{ s//\1/; q; }
23197 s/.*/./; q'`
23198 done
23199 test ! -n "$as_dirs" || mkdir $as_dirs
23200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23201echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23202 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023203
23204 rm -f $ac_file
23205 mv $tmp/config.h $ac_file
23206 fi
23207 else
23208 cat $tmp/config.h
23209 rm -f $tmp/config.h
23210 fi
23211done
23212_ACEOF
23213
23214cat >>$CONFIG_STATUS <<\_ACEOF
23215
23216{ (exit 0); exit 0; }
23217_ACEOF
23218chmod +x $CONFIG_STATUS
23219ac_clean_files=$ac_clean_files_save
23220
23221
23222# configure is writing to config.log, and then calls config.status.
23223# config.status does its own redirection, appending to config.log.
23224# Unfortunately, on DOS this fails, as config.log is still kept open
23225# by configure, so config.status won't be able to write to it; its
23226# output is simply discarded. So we exec the FD to /dev/null,
23227# effectively closing config.log, so it can be properly (re)opened and
23228# appended to by config.status. When coming back to configure, we
23229# need to make the FD available again.
23230if test "$no_create" != yes; then
23231 ac_cs_success=:
John Criswell392aaa32003-07-22 19:18:09 +000023232 ac_config_status_args=
23233 test "$silent" = yes &&
23234 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023235 exec 5>/dev/null
John Criswell392aaa32003-07-22 19:18:09 +000023236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023237 exec 5>>config.log
23238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23239 # would make configure fail if this is the last instruction.
23240 $ac_cs_success || { (exit 1); exit 1; }
23241fi
23242