blob: 6d95246ace919e7539c0a28dec26d1e56cd40e09 [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 Criswellde00db22003-08-25 16:49:54 +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 RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST 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
John Criswellde00db22003-08-25 16:49:54 +00002933gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
2934if test "$gccmajor" -lt "3"
2935then
2936 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
2937echo "$as_me: error: gcc 3.x required" >&2;}
2938 { (exit 1); exit 1; }; }
2939fi
2940
John Criswell7a73b802003-06-30 21:59:07 +00002941 echo "$as_me:$LINENO: checking for GNU make" >&5
2942echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2943if test "${_cv_gnu_make_command+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 _cv_gnu_make_command='' ;
2947 for a in "$MAKE" make gmake gnumake ; do
2948 if test -z "$a" ; then continue ; fi ;
2949 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2950 _cv_gnu_make_command=$a ;
2951 break;
2952 fi
2953 done ;
2954
2955fi
2956echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2957echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2958 if test "x$_cv_gnu_make_command" != "x" ; then
2959 ifGNUmake='' ;
2960 else
2961 ifGNUmake='#' ;
2962 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2963echo "${ECHO_T}\"Not found\"" >&6;
2964 fi
2965
2966
2967if test -z "$_cv_gnu_make_command"
2968then
2969 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2970echo "$as_me: error: GNU Make required but not found" >&2;}
2971 { (exit 1); exit 1; }; }
2972fi
2973
2974
2975echo "$as_me:$LINENO: checking " >&5
2976echo $ECHO_N "checking ... $ECHO_C" >&6
2977if test "${ac_cv_has_flex+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 for ac_prog in flex lex
2981do
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983set dummy $ac_prog; ac_word=$2
2984echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986if test "${ac_cv_prog_LEX+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 if test -n "$LEX"; then
2990 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_LEX="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004done
3005
3006fi
3007fi
3008LEX=$ac_cv_prog_LEX
3009if test -n "$LEX"; then
3010 echo "$as_me:$LINENO: result: $LEX" >&5
3011echo "${ECHO_T}$LEX" >&6
3012else
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
3015fi
3016
3017 test -n "$LEX" && break
3018done
3019test -n "$LEX" || LEX=":"
3020
3021if test -z "$LEXLIB"
3022then
3023 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3024echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3025if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027else
3028 ac_check_lib_save_LIBS=$LIBS
3029LIBS="-lfl $LIBS"
3030cat >conftest.$ac_ext <<_ACEOF
3031#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038/* Override any gcc2 internal prototype to avoid an error. */
3039#ifdef __cplusplus
3040extern "C"
3041#endif
3042/* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3044char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003045int
3046main ()
3047{
3048yywrap ();
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055 (eval $ac_link) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest$ac_exeext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_lib_fl_yywrap=yes
3066else
3067 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003068sed 's/^/| /' conftest.$ac_ext >&5
3069
John Criswell7a73b802003-06-30 21:59:07 +00003070ac_cv_lib_fl_yywrap=no
3071fi
3072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073LIBS=$ac_check_lib_save_LIBS
3074fi
3075echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3076echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3077if test $ac_cv_lib_fl_yywrap = yes; then
3078 LEXLIB="-lfl"
3079else
3080 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3081echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3082if test "${ac_cv_lib_l_yywrap+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 ac_check_lib_save_LIBS=$LIBS
3086LIBS="-ll $LIBS"
3087cat >conftest.$ac_ext <<_ACEOF
3088#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003089/* confdefs.h. */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003094
3095/* Override any gcc2 internal prototype to avoid an error. */
3096#ifdef __cplusplus
3097extern "C"
3098#endif
3099/* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3101char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003102int
3103main ()
3104{
3105yywrap ();
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110rm -f conftest.$ac_objext conftest$ac_exeext
3111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3112 (eval $ac_link) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -s conftest$ac_exeext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_lib_l_yywrap=yes
3123else
3124 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003125sed 's/^/| /' conftest.$ac_ext >&5
3126
John Criswell7a73b802003-06-30 21:59:07 +00003127ac_cv_lib_l_yywrap=no
3128fi
3129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3130LIBS=$ac_check_lib_save_LIBS
3131fi
3132echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3133echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3134if test $ac_cv_lib_l_yywrap = yes; then
3135 LEXLIB="-ll"
3136fi
3137
3138fi
3139
3140fi
3141
3142if test "x$LEX" != "x:"; then
3143 echo "$as_me:$LINENO: checking lex output file root" >&5
3144echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3145if test "${ac_cv_prog_lex_root+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 # The minimal lex program is just a single line: %%. But some broken lexes
3149# (Solaris, I think it was) want two %% lines, so accommodate them.
3150cat >conftest.l <<_ACEOF
3151%%
3152%%
3153_ACEOF
3154{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3155 (eval $LEX conftest.l) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3159if test -f lex.yy.c; then
3160 ac_cv_prog_lex_root=lex.yy
3161elif test -f lexyy.c; then
3162 ac_cv_prog_lex_root=lexyy
3163else
3164 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3165echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168fi
3169echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3170echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3171rm -f conftest.l
3172LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3173
3174echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3175echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3176if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179 # POSIX says lex can declare yytext either as a pointer or an array; the
3180# default is implementation-dependent. Figure out which it is, since
3181# not all implementations provide the %pointer and %array declarations.
3182ac_cv_prog_lex_yytext_pointer=no
3183echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3184ac_save_LIBS=$LIBS
3185LIBS="$LIBS $LEXLIB"
3186cat >conftest.$ac_ext <<_ACEOF
3187`cat $LEX_OUTPUT_ROOT.c`
3188_ACEOF
3189rm -f conftest.$ac_objext conftest$ac_exeext
3190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191 (eval $ac_link) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest$ac_exeext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_lex_yytext_pointer=yes
3202else
3203 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003204sed 's/^/| /' conftest.$ac_ext >&5
3205
John Criswell7a73b802003-06-30 21:59:07 +00003206fi
3207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3208LIBS=$ac_save_LIBS
3209rm -f "${LEX_OUTPUT_ROOT}.c"
3210
3211fi
3212echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3213echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3214if test $ac_cv_prog_lex_yytext_pointer = yes; then
3215
3216cat >>confdefs.h <<\_ACEOF
3217#define YYTEXT_POINTER 1
3218_ACEOF
3219
3220fi
3221
3222fi
3223
3224fi
3225echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3226echo "${ECHO_T}$ac_cv_has_flex" >&6
3227if test "$LEX" != "flex"; then
3228 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3229echo "$as_me: error: flex not found but required" >&2;}
3230 { (exit 1); exit 1; }; }
3231fi
3232
3233echo "$as_me:$LINENO: checking " >&5
3234echo $ECHO_N "checking ... $ECHO_C" >&6
3235if test "${ac_cv_has_bison+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238 for ac_prog in 'bison -y' byacc
3239do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241set dummy $ac_prog; ac_word=$2
3242echo "$as_me:$LINENO: checking for $ac_word" >&5
3243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244if test "${ac_cv_prog_YACC+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 if test -n "$YACC"; then
3248 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_YACC="$ac_prog"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261done
3262done
3263
3264fi
3265fi
3266YACC=$ac_cv_prog_YACC
3267if test -n "$YACC"; then
3268 echo "$as_me:$LINENO: result: $YACC" >&5
3269echo "${ECHO_T}$YACC" >&6
3270else
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273fi
3274
3275 test -n "$YACC" && break
3276done
3277test -n "$YACC" || YACC="yacc"
3278
3279
3280fi
3281echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3282echo "${ECHO_T}$ac_cv_has_bison" >&6
3283if test "$YACC" != "bison -y"; then
3284 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3285echo "$as_me: error: bison not found but required" >&2;}
3286 { (exit 1); exit 1; }; }
3287else
3288 YACC=bison
3289
3290fi
3291
3292
3293# Check whether --enable-shared or --disable-shared was given.
3294if test "${enable_shared+set}" = set; then
3295 enableval="$enable_shared"
3296 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003297 case $enableval in
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3300 *)
3301 enable_shared=no
3302 # Look at the argument we got. We use all the common list separators.
3303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 for pkg in $enableval; do
3305 IFS="$lt_save_ifs"
3306 if test "X$pkg" = "X$p"; then
3307 enable_shared=yes
3308 fi
3309 done
3310 IFS="$lt_save_ifs"
3311 ;;
3312 esac
John Criswell7a73b802003-06-30 21:59:07 +00003313else
3314 enable_shared=yes
3315fi;
John Criswell47fdd832003-07-14 16:52:07 +00003316
John Criswell7a73b802003-06-30 21:59:07 +00003317# Check whether --enable-static or --disable-static was given.
3318if test "${enable_static+set}" = set; then
3319 enableval="$enable_static"
3320 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003321 case $enableval in
3322 yes) enable_static=yes ;;
3323 no) enable_static=no ;;
3324 *)
3325 enable_static=no
3326 # Look at the argument we got. We use all the common list separators.
3327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328 for pkg in $enableval; do
3329 IFS="$lt_save_ifs"
3330 if test "X$pkg" = "X$p"; then
3331 enable_static=yes
3332 fi
3333 done
3334 IFS="$lt_save_ifs"
3335 ;;
3336 esac
John Criswell7a73b802003-06-30 21:59:07 +00003337else
3338 enable_static=yes
3339fi;
John Criswell47fdd832003-07-14 16:52:07 +00003340
John Criswell7a73b802003-06-30 21:59:07 +00003341# Check whether --enable-fast-install or --disable-fast-install was given.
3342if test "${enable_fast_install+set}" = set; then
3343 enableval="$enable_fast_install"
3344 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003345 case $enableval in
3346 yes) enable_fast_install=yes ;;
3347 no) enable_fast_install=no ;;
3348 *)
3349 enable_fast_install=no
3350 # Look at the argument we got. We use all the common list separators.
3351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352 for pkg in $enableval; do
3353 IFS="$lt_save_ifs"
3354 if test "X$pkg" = "X$p"; then
3355 enable_fast_install=yes
3356 fi
3357 done
3358 IFS="$lt_save_ifs"
3359 ;;
3360 esac
John Criswell7a73b802003-06-30 21:59:07 +00003361else
3362 enable_fast_install=yes
3363fi;
John Criswell47fdd832003-07-14 16:52:07 +00003364
3365echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367if test "${lt_cv_path_SED+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 # Loop through the user's path and test for sed and gsed.
3371# Then use that list of sed's as ones to test for truncation.
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for lt_ac_prog in sed gsed; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3381 fi
3382 done
3383 done
3384done
3385lt_ac_max=0
3386lt_ac_count=0
3387# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388# along with /bin/sed that truncates output.
3389for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390 test ! -f $lt_ac_sed && break
3391 cat /dev/null > conftest.in
3392 lt_ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394 # Check for GNU sed and select it if it is found.
3395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396 lt_cv_path_SED=$lt_ac_sed
3397 break
3398 fi
3399 while true; do
3400 cat conftest.in conftest.in >conftest.tmp
3401 mv conftest.tmp conftest.in
3402 cp conftest.in conftest.nl
3403 echo >>conftest.nl
3404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405 cmp -s conftest.out conftest.nl || break
3406 # 10000 chars as input seems more than enough
3407 test $lt_ac_count -gt 10 && break
3408 lt_ac_count=`expr $lt_ac_count + 1`
3409 if test $lt_ac_count -gt $lt_ac_max; then
3410 lt_ac_max=$lt_ac_count
3411 lt_cv_path_SED=$lt_ac_sed
3412 fi
3413 done
3414done
3415SED=$lt_cv_path_SED
3416
John Criswell7a73b802003-06-30 21:59:07 +00003417fi
3418
John Criswell47fdd832003-07-14 16:52:07 +00003419echo "$as_me:$LINENO: result: $SED" >&5
3420echo "${ECHO_T}$SED" >&6
3421
3422echo "$as_me:$LINENO: checking for egrep" >&5
3423echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424if test "${ac_cv_prog_egrep+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428 then ac_cv_prog_egrep='grep -E'
3429 else ac_cv_prog_egrep='egrep'
3430 fi
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3433echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434 EGREP=$ac_cv_prog_egrep
3435
3436
John Criswell7a73b802003-06-30 21:59:07 +00003437
3438# Check whether --with-gnu-ld or --without-gnu-ld was given.
3439if test "${with_gnu_ld+set}" = set; then
3440 withval="$with_gnu_ld"
3441 test "$withval" = no || with_gnu_ld=yes
3442else
3443 with_gnu_ld=no
3444fi;
3445ac_prog=ld
3446if test "$GCC" = yes; then
3447 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003448 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3449echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003450 case $host in
3451 *-*-mingw*)
3452 # gcc leaves a trailing carriage return which upsets mingw
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454 *)
3455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456 esac
3457 case $ac_prog in
3458 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003459 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003460 re_direlt='/[^/][^/]*/\.\./'
3461 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003465 done
3466 test -z "$LD" && LD="$ac_prog"
3467 ;;
3468 "")
3469 # If it fails, then pretend we aren't using GCC.
3470 ac_prog=ld
3471 ;;
3472 *)
3473 # If it is relative, then search for the first ld in PATH.
3474 with_gnu_ld=unknown
3475 ;;
3476 esac
3477elif test "$with_gnu_ld" = yes; then
3478 echo "$as_me:$LINENO: checking for GNU ld" >&5
3479echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3480else
3481 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3483fi
3484if test "${lt_cv_path_LD+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003489 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003490 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003491 test -z "$ac_dir" && ac_dir=.
3492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3493 lt_cv_path_LD="$ac_dir/$ac_prog"
3494 # Check to see if the program is GNU ld. I'd rather use --version,
3495 # but apparently some GNU ld's only accept -v.
3496 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3498 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003499 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003500 ;;
3501 *)
John Criswell7a73b802003-06-30 21:59:07 +00003502 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003503 ;;
3504 esac
John Criswell7a73b802003-06-30 21:59:07 +00003505 fi
3506 done
John Criswell47fdd832003-07-14 16:52:07 +00003507 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003508else
3509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3510fi
3511fi
3512
3513LD="$lt_cv_path_LD"
3514if test -n "$LD"; then
3515 echo "$as_me:$LINENO: result: $LD" >&5
3516echo "${ECHO_T}$LD" >&6
3517else
3518 echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
3520fi
3521test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3522echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3523 { (exit 1); exit 1; }; }
3524echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3525echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3526if test "${lt_cv_prog_gnu_ld+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003530case `"$LD" -v 2>&1 </dev/null` in
3531*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003532 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003533 ;;
3534*)
John Criswell7a73b802003-06-30 21:59:07 +00003535 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003536 ;;
3537esac
John Criswell7a73b802003-06-30 21:59:07 +00003538fi
3539echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3540echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3541with_gnu_ld=$lt_cv_prog_gnu_ld
3542
3543
3544echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3545echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3546if test "${lt_cv_ld_reload_flag+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 lt_cv_ld_reload_flag='-r'
3550fi
3551echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3552echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3553reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003554case $reload_flag in
3555"" | " "*) ;;
3556*) reload_flag=" $reload_flag" ;;
3557esac
3558reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003559
3560echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3561echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3562if test "${lt_cv_path_NM+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565 if test -n "$NM"; then
3566 # Let the user override the test.
3567 lt_cv_path_NM="$NM"
3568else
John Criswell47fdd832003-07-14 16:52:07 +00003569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003570 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003571 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003572 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003573 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003575 # Check to see if the nm accepts a BSD-compat flag.
3576 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3577 # nm: unknown option "B" ignored
3578 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3580 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003581 lt_cv_path_NM="$tmp_nm -B"
3582 break
John Criswell47fdd832003-07-14 16:52:07 +00003583 ;;
3584 *)
3585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3586 */dev/null*)
3587 lt_cv_path_NM="$tmp_nm -p"
3588 break
3589 ;;
3590 *)
3591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3592 continue # so that we can try to find one that supports BSD flags
3593 ;;
3594 esac
3595 esac
John Criswell7a73b802003-06-30 21:59:07 +00003596 fi
3597 done
John Criswell47fdd832003-07-14 16:52:07 +00003598 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003599 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3600fi
3601fi
John Criswell47fdd832003-07-14 16:52:07 +00003602echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3603echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003604NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003605
3606echo "$as_me:$LINENO: checking whether ln -s works" >&5
3607echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3608LN_S=$as_ln_s
3609if test "$LN_S" = "ln -s"; then
3610 echo "$as_me:$LINENO: result: yes" >&5
3611echo "${ECHO_T}yes" >&6
3612else
3613 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3614echo "${ECHO_T}no, using $LN_S" >&6
3615fi
3616
John Criswell47fdd832003-07-14 16:52:07 +00003617echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3618echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003619if test "${lt_cv_deplibs_check_method+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 lt_cv_file_magic_cmd='$MAGIC_CMD'
3623lt_cv_file_magic_test_file=
3624lt_cv_deplibs_check_method='unknown'
3625# Need to set the preceding variable on all platforms that support
3626# interlibrary dependencies.
3627# 'none' -- dependencies not supported.
3628# `unknown' -- same as none, but documents that we really don't know.
3629# 'pass_all' -- all dependencies passed with no checks.
3630# 'test_compile' -- check by making test program.
3631# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003632# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003633# If you have `file' or equivalent on your system and you're not sure
3634# whether `pass_all' will *always* work, you probably want this one.
3635
3636case $host_os in
3637aix4* | aix5*)
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
3640
3641beos*)
3642 lt_cv_deplibs_check_method=pass_all
3643 ;;
3644
3645bsdi4*)
3646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3647 lt_cv_file_magic_cmd='/usr/bin/file -L'
3648 lt_cv_file_magic_test_file=/shlib/libc.so
3649 ;;
3650
3651cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003652 # win32_libid is a shell function defined in ltmain.sh
3653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3654 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003655 ;;
3656
3657darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003658 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003659 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3660 lt_cv_file_magic_cmd='/usr/bin/file -L'
3661 case "$host_os" in
3662 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003663 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003664 ;;
3665 *) # Darwin 1.3 on
3666 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3667 ;;
3668 esac
John Criswell47fdd832003-07-14 16:52:07 +00003669 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003670 ;;
3671
3672freebsd*)
3673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3674 case $host_cpu in
3675 i*86 )
3676 # Not sure whether the presence of OpenBSD here was a mistake.
3677 # Let's accept both of them until this is cleared up.
3678 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3679 lt_cv_file_magic_cmd=/usr/bin/file
3680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3681 ;;
3682 esac
3683 else
3684 lt_cv_deplibs_check_method=pass_all
3685 fi
3686 ;;
3687
3688gnu*)
3689 lt_cv_deplibs_check_method=pass_all
3690 ;;
3691
John Criswell47fdd832003-07-14 16:52:07 +00003692hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003693 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003694 case "$host_cpu" in
3695 ia64*)
3696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3697 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3698 ;;
3699 hppa*64*)
3700 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]'
3701 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3702 ;;
3703 *)
3704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3705 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3706 ;;
3707 esac
John Criswell7a73b802003-06-30 21:59:07 +00003708 ;;
3709
John Criswell47fdd832003-07-14 16:52:07 +00003710irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003711 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003712 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003713 # this will be overridden with pass_all, but let us keep it just in case
3714 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3715 ;;
3716 *)
3717 case $LD in
3718 *-32|*"-32 ") libmagic=32-bit;;
3719 *-n32|*"-n32 ") libmagic=N32;;
3720 *-64|*"-64 ") libmagic=64-bit;;
3721 *) libmagic=never-match;;
3722 esac
3723 # this will be overridden with pass_all, but let us keep it just in case
3724 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3725 ;;
3726 esac
3727 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3728 lt_cv_deplibs_check_method=pass_all
3729 ;;
3730
3731# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003732linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003733 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003734 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003735 lt_cv_deplibs_check_method=pass_all ;;
3736 *)
3737 # glibc up to 2.1.1 does not perform some relocations on ARM
3738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3739 esac
3740 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3741 ;;
3742
3743netbsd*)
3744 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003746 else
John Criswell47fdd832003-07-14 16:52:07 +00003747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003748 fi
3749 ;;
3750
3751newos6*)
3752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3753 lt_cv_file_magic_cmd=/usr/bin/file
3754 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3755 ;;
3756
John Criswell47fdd832003-07-14 16:52:07 +00003757nto-qnx)
3758 lt_cv_deplibs_check_method=unknown
3759 ;;
3760
John Criswell7a73b802003-06-30 21:59:07 +00003761openbsd*)
3762 lt_cv_file_magic_cmd=/usr/bin/file
3763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3766 else
3767 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3768 fi
3769 ;;
3770
3771osf3* | osf4* | osf5*)
3772 # this will be overridden with pass_all, but let us keep it just in case
3773 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3774 lt_cv_file_magic_test_file=/shlib/libc.so
3775 lt_cv_deplibs_check_method=pass_all
3776 ;;
3777
3778sco3.2v5*)
3779 lt_cv_deplibs_check_method=pass_all
3780 ;;
3781
3782solaris*)
3783 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_file_magic_test_file=/lib/libc.so
3785 ;;
3786
John Criswell7a73b802003-06-30 21:59:07 +00003787sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3788 case $host_vendor in
3789 motorola)
3790 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]'
3791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3792 ;;
3793 ncr)
3794 lt_cv_deplibs_check_method=pass_all
3795 ;;
3796 sequent)
3797 lt_cv_file_magic_cmd='/bin/file'
3798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3799 ;;
3800 sni)
3801 lt_cv_file_magic_cmd='/bin/file'
3802 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3803 lt_cv_file_magic_test_file=/lib/libc.so
3804 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003805 siemens)
3806 lt_cv_deplibs_check_method=pass_all
3807 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003808 esac
3809 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003810
3811sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3812 lt_cv_deplibs_check_method=pass_all
3813 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003814esac
3815
3816fi
3817echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3818echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3819file_magic_cmd=$lt_cv_file_magic_cmd
3820deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003821test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003822
3823
3824
3825
John Criswell47fdd832003-07-14 16:52:07 +00003826# If no C compiler was specified, use CC.
3827LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00003828
John Criswell47fdd832003-07-14 16:52:07 +00003829# Allow CC to be a program name with arguments.
3830compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00003831
John Criswell47fdd832003-07-14 16:52:07 +00003832# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3833if test "${enable_libtool_lock+set}" = set; then
3834 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00003835
John Criswell47fdd832003-07-14 16:52:07 +00003836fi;
3837test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00003838
John Criswell47fdd832003-07-14 16:52:07 +00003839# Some flags need to be propagated to the compiler or linker for good
3840# libtool support.
3841case $host in
3842ia64-*-hpux*)
3843 # Find out which ABI we are using.
3844 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00003850 case `/usr/bin/file conftest.$ac_objext` in
3851 *ELF-32*)
3852 HPUX_IA64_MODE="32"
3853 ;;
3854 *ELF-64*)
3855 HPUX_IA64_MODE="64"
3856 ;;
3857 esac
3858 fi
3859 rm -rf conftest*
3860 ;;
3861*-*-irix6*)
3862 # Find out which ABI we are using.
John Criswellde00db22003-08-25 16:49:54 +00003863 echo '#line 3863 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00003864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003868 (exit $ac_status); }; then
3869 if test "$lt_cv_prog_gnu_ld" = yes; then
3870 case `/usr/bin/file conftest.$ac_objext` in
3871 *32-bit*)
3872 LD="${LD-ld} -melf32bsmip"
3873 ;;
3874 *N32*)
3875 LD="${LD-ld} -melf32bmipn32"
3876 ;;
3877 *64-bit*)
3878 LD="${LD-ld} -melf64bmip"
3879 ;;
3880 esac
3881 else
3882 case `/usr/bin/file conftest.$ac_objext` in
3883 *32-bit*)
3884 LD="${LD-ld} -32"
3885 ;;
3886 *N32*)
3887 LD="${LD-ld} -n32"
3888 ;;
3889 *64-bit*)
3890 LD="${LD-ld} -64"
3891 ;;
3892 esac
3893 fi
3894 fi
3895 rm -rf conftest*
3896 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003897
John Criswell47fdd832003-07-14 16:52:07 +00003898x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3899 # Find out which ABI we are using.
3900 echo 'int i;' > conftest.$ac_ext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902 (eval $ac_compile) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; then
3906 case "`/usr/bin/file conftest.o`" in
3907 *32-bit*)
3908 case $host in
3909 x86_64-*linux*)
3910 LD="${LD-ld} -m elf_i386"
3911 ;;
3912 ppc64-*linux*)
3913 LD="${LD-ld} -m elf32ppclinux"
3914 ;;
3915 s390x-*linux*)
3916 LD="${LD-ld} -m elf_s390"
3917 ;;
3918 sparc64-*linux*)
3919 LD="${LD-ld} -m elf32_sparc"
3920 ;;
3921 esac
3922 ;;
3923 *64-bit*)
3924 case $host in
3925 x86_64-*linux*)
3926 LD="${LD-ld} -m elf_x86_64"
3927 ;;
3928 ppc*-*linux*|powerpc*-*linux*)
3929 LD="${LD-ld} -m elf64ppc"
3930 ;;
3931 s390*-*linux*)
3932 LD="${LD-ld} -m elf64_s390"
3933 ;;
3934 sparc*-*linux*)
3935 LD="${LD-ld} -m elf64_sparc"
3936 ;;
3937 esac
3938 ;;
3939 esac
3940 fi
3941 rm -rf conftest*
3942 ;;
3943
3944*-*-sco3.2v5*)
3945 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3946 SAVE_CFLAGS="$CFLAGS"
3947 CFLAGS="$CFLAGS -belf"
3948 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3949echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3950if test "${lt_cv_cc_needs_belf+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953 ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959 cat >conftest.$ac_ext <<_ACEOF
3960#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00003966
John Criswell47fdd832003-07-14 16:52:07 +00003967int
3968main ()
John Criswell7a73b802003-06-30 21:59:07 +00003969{
John Criswell7a73b802003-06-30 21:59:07 +00003970
John Criswell47fdd832003-07-14 16:52:07 +00003971 ;
3972 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003973}
John Criswell47fdd832003-07-14 16:52:07 +00003974_ACEOF
3975rm -f conftest.$ac_objext conftest$ac_exeext
3976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00003977 (eval $ac_link) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003980 (exit $ac_status); } &&
3981 { ac_try='test -s conftest$ac_exeext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00003988else
John Criswell47fdd832003-07-14 16:52:07 +00003989 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003990sed 's/^/| /' conftest.$ac_ext >&5
3991
John Criswell47fdd832003-07-14 16:52:07 +00003992lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00003993fi
John Criswell47fdd832003-07-14 16:52:07 +00003994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3995 ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
John Criswell7a73b802003-06-30 21:59:07 +00004001fi
John Criswell47fdd832003-07-14 16:52:07 +00004002echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4003echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4006 CFLAGS="$SAVE_CFLAGS"
4007 fi
4008 ;;
4009
4010esac
4011
4012need_locks="$enable_libtool_lock"
4013
John Criswell7a73b802003-06-30 21:59:07 +00004014
4015
4016echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4017echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4018if test "${ac_cv_header_stdc+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004028#include <stdlib.h>
4029#include <stdarg.h>
4030#include <string.h>
4031#include <float.h>
4032
John Criswell392aaa32003-07-22 19:18:09 +00004033int
4034main ()
4035{
4036
4037 ;
4038 return 0;
4039}
John Criswell7a73b802003-06-30 21:59:07 +00004040_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +00004041rm -f conftest.$ac_objext
4042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004044 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004053 ac_cv_header_stdc=yes
4054else
4055 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004059fi
John Criswell392aaa32003-07-22 19:18:09 +00004060rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004061
4062if test $ac_cv_header_stdc = yes; then
4063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004071#include <string.h>
4072
4073_ACEOF
4074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004075 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004076 :
4077else
4078 ac_cv_header_stdc=no
4079fi
4080rm -f conftest*
4081
4082fi
4083
4084if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004093#include <stdlib.h>
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004097 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004098 :
4099else
4100 ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108 if test "$cross_compiling" = yes; then
4109 :
4110else
4111 cat >conftest.$ac_ext <<_ACEOF
4112#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004118#include <ctype.h>
4119#if ((' ' & 0x0FF) == 0x020)
4120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4122#else
John Criswell392aaa32003-07-22 19:18:09 +00004123# define ISLOWER(c) \
4124 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004125 || ('j' <= (c) && (c) <= 'r') \
4126 || ('s' <= (c) && (c) <= 'z'))
4127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4128#endif
4129
4130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4131int
4132main ()
4133{
4134 int i;
4135 for (i = 0; i < 256; i++)
4136 if (XOR (islower (i), ISLOWER (i))
4137 || toupper (i) != TOUPPER (i))
4138 exit(2);
4139 exit (0);
4140}
4141_ACEOF
4142rm -f conftest$ac_exeext
4143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 :
4154else
4155 echo "$as_me: program exited with status $ac_status" >&5
4156echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004157sed 's/^/| /' conftest.$ac_ext >&5
4158
John Criswell7a73b802003-06-30 21:59:07 +00004159( exit $ac_status )
4160ac_cv_header_stdc=no
4161fi
John Criswell392aaa32003-07-22 19:18:09 +00004162rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004163fi
4164fi
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4167echo "${ECHO_T}$ac_cv_header_stdc" >&6
4168if test $ac_cv_header_stdc = yes; then
4169
4170cat >>confdefs.h <<\_ACEOF
4171#define STDC_HEADERS 1
4172_ACEOF
4173
4174fi
4175
4176# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187 inttypes.h stdint.h unistd.h
4188do
4189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190echo "$as_me:$LINENO: checking for $ac_header" >&5
4191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4192if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
4196#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004202$ac_includes_default
4203
4204#include <$ac_header>
4205_ACEOF
4206rm -f conftest.$ac_objext
4207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 eval "$as_ac_Header=yes"
4219else
4220 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004221sed 's/^/| /' conftest.$ac_ext >&5
4222
John Criswell7a73b802003-06-30 21:59:07 +00004223eval "$as_ac_Header=no"
4224fi
4225rm -f conftest.$ac_objext conftest.$ac_ext
4226fi
4227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230 cat >>confdefs.h <<_ACEOF
4231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4232_ACEOF
4233
4234fi
4235
4236done
4237
4238
4239
4240for ac_header in dlfcn.h
4241do
4242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248fi
4249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4251else
4252 # Is the header compilable?
4253echo "$as_me:$LINENO: checking $ac_header usability" >&5
4254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4255cat >conftest.$ac_ext <<_ACEOF
4256#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004262$ac_includes_default
4263#include <$ac_header>
4264_ACEOF
4265rm -f conftest.$ac_objext
4266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_header_compiler=yes
4278else
4279 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004280sed 's/^/| /' conftest.$ac_ext >&5
4281
John Criswell7a73b802003-06-30 21:59:07 +00004282ac_header_compiler=no
4283fi
4284rm -f conftest.$ac_objext conftest.$ac_ext
4285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4286echo "${ECHO_T}$ac_header_compiler" >&6
4287
4288# Is the header present?
4289echo "$as_me:$LINENO: checking $ac_header presence" >&5
4290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4291cat >conftest.$ac_ext <<_ACEOF
4292#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004298#include <$ac_header>
4299_ACEOF
4300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004303 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4310 else
4311 ac_cpp_err=
4312 fi
4313else
4314 ac_cpp_err=yes
4315fi
4316if test -z "$ac_cpp_err"; then
4317 ac_header_preproc=yes
4318else
4319 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004320sed 's/^/| /' conftest.$ac_ext >&5
4321
John Criswell7a73b802003-06-30 21:59:07 +00004322 ac_header_preproc=no
4323fi
4324rm -f conftest.err conftest.$ac_ext
4325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326echo "${ECHO_T}$ac_header_preproc" >&6
4327
4328# So? What about this header?
4329case $ac_header_compiler:$ac_header_preproc in
4330 yes:no )
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4335 (
4336 cat <<\_ASBOX
4337## ------------------------------------ ##
4338## Report this to bug-autoconf@gnu.org. ##
4339## ------------------------------------ ##
4340_ASBOX
4341 ) |
4342 sed "s/^/$as_me: WARNING: /" >&2
4343 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004344 no:yes )
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4351 (
4352 cat <<\_ASBOX
4353## ------------------------------------ ##
4354## Report this to bug-autoconf@gnu.org. ##
4355## ------------------------------------ ##
4356_ASBOX
4357 ) |
4358 sed "s/^/$as_me: WARNING: /" >&2
4359 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004360esac
4361echo "$as_me:$LINENO: checking for $ac_header" >&5
4362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 eval "$as_ac_Header=$ac_header_preproc"
4367fi
4368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370
4371fi
4372if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375_ACEOF
4376
4377fi
4378
4379done
4380
John Criswell47fdd832003-07-14 16:52:07 +00004381ac_ext=cc
4382ac_cpp='$CXXCPP $CPPFLAGS'
4383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4387echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4388if test -z "$CXXCPP"; then
4389 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
John Criswell47fdd832003-07-14 16:52:07 +00004392 # Double quotes because CXXCPP needs to be expanded
4393 for CXXCPP in "$CXX -E" "/lib/cpp"
4394 do
4395 ac_preproc_ok=false
4396for ac_cxx_preproc_warn_flag in '' yes
4397do
4398 # Use a header file that comes with gcc, so configuring glibc
4399 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004402 # On the NeXT, cc -E runs the code through the compiler's parser,
4403 # not just through cpp. "Syntax error" is here to catch this case.
4404 cat >conftest.$ac_ext <<_ACEOF
4405#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004406/* confdefs.h. */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h. */
4411#ifdef __STDC__
4412# include <limits.h>
4413#else
4414# include <assert.h>
4415#endif
John Criswell47fdd832003-07-14 16:52:07 +00004416 Syntax error
4417_ACEOF
4418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004421 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004428 else
John Criswell47fdd832003-07-14 16:52:07 +00004429 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004430 fi
John Criswell47fdd832003-07-14 16:52:07 +00004431else
4432 ac_cpp_err=yes
4433fi
4434if test -z "$ac_cpp_err"; then
4435 :
4436else
4437 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004438sed 's/^/| /' conftest.$ac_ext >&5
4439
John Criswell47fdd832003-07-14 16:52:07 +00004440 # Broken: fails on valid input.
4441continue
4442fi
4443rm -f conftest.err conftest.$ac_ext
4444
4445 # OK, works on sane cases. Now check whether non-existent headers
4446 # can be detected and how.
4447 cat >conftest.$ac_ext <<_ACEOF
4448#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004454#include <ac_nonexistent.h>
4455_ACEOF
4456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4458 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004459 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } >/dev/null; then
4464 if test -s conftest.err; then
4465 ac_cpp_err=$ac_cxx_preproc_warn_flag
4466 else
4467 ac_cpp_err=
4468 fi
4469else
4470 ac_cpp_err=yes
4471fi
4472if test -z "$ac_cpp_err"; then
4473 # Broken: success on invalid input.
4474continue
4475else
4476 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004477sed 's/^/| /' conftest.$ac_ext >&5
4478
John Criswell47fdd832003-07-14 16:52:07 +00004479 # Passes both tests.
4480ac_preproc_ok=:
4481break
4482fi
4483rm -f conftest.err conftest.$ac_ext
4484
4485done
4486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487rm -f conftest.err conftest.$ac_ext
4488if $ac_preproc_ok; then
4489 break
John Criswell7a73b802003-06-30 21:59:07 +00004490fi
4491
John Criswell47fdd832003-07-14 16:52:07 +00004492 done
4493 ac_cv_prog_CXXCPP=$CXXCPP
4494
4495fi
4496 CXXCPP=$ac_cv_prog_CXXCPP
4497else
4498 ac_cv_prog_CXXCPP=$CXXCPP
4499fi
4500echo "$as_me:$LINENO: result: $CXXCPP" >&5
4501echo "${ECHO_T}$CXXCPP" >&6
4502ac_preproc_ok=false
4503for ac_cxx_preproc_warn_flag in '' yes
4504do
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat >conftest.$ac_ext <<_ACEOF
4512#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
John Criswell47fdd832003-07-14 16:52:07 +00004523 Syntax error
4524_ACEOF
4525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4527 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004528 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null; then
4533 if test -s conftest.err; then
4534 ac_cpp_err=$ac_cxx_preproc_warn_flag
4535 else
4536 ac_cpp_err=
4537 fi
4538else
4539 ac_cpp_err=yes
4540fi
4541if test -z "$ac_cpp_err"; then
4542 :
4543else
4544 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004545sed 's/^/| /' conftest.$ac_ext >&5
4546
John Criswell47fdd832003-07-14 16:52:07 +00004547 # Broken: fails on valid input.
4548continue
4549fi
4550rm -f conftest.err conftest.$ac_ext
4551
4552 # OK, works on sane cases. Now check whether non-existent headers
4553 # can be detected and how.
4554 cat >conftest.$ac_ext <<_ACEOF
4555#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004561#include <ac_nonexistent.h>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004566 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_cxx_preproc_warn_flag
4573 else
4574 ac_cpp_err=
4575 fi
4576else
4577 ac_cpp_err=yes
4578fi
4579if test -z "$ac_cpp_err"; then
4580 # Broken: success on invalid input.
4581continue
4582else
4583 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004584sed 's/^/| /' conftest.$ac_ext >&5
4585
John Criswell47fdd832003-07-14 16:52:07 +00004586 # Passes both tests.
4587ac_preproc_ok=:
4588break
4589fi
4590rm -f conftest.err conftest.$ac_ext
4591
4592done
4593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594rm -f conftest.err conftest.$ac_ext
4595if $ac_preproc_ok; then
4596 :
4597else
John Criswell392aaa32003-07-22 19:18:09 +00004598 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4599See \`config.log' for more details." >&5
4600echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4601See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004602 { (exit 1); exit 1; }; }
4603fi
4604
4605ac_ext=cc
4606ac_cpp='$CXXCPP $CPPFLAGS'
4607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4610
4611
4612ac_ext=f
4613ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4614ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4616if test -n "$ac_tool_prefix"; then
John Criswell392aaa32003-07-22 19:18:09 +00004617 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 +00004618 do
4619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623if test "${ac_cv_prog_F77+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 if test -n "$F77"; then
4627 ac_cv_prog_F77="$F77" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643fi
4644fi
4645F77=$ac_cv_prog_F77
4646if test -n "$F77"; then
4647 echo "$as_me:$LINENO: result: $F77" >&5
4648echo "${ECHO_T}$F77" >&6
4649else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
4654 test -n "$F77" && break
4655 done
4656fi
4657if test -z "$F77"; then
4658 ac_ct_F77=$F77
John Criswell392aaa32003-07-22 19:18:09 +00004659 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 +00004660do
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662set dummy $ac_prog; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$ac_ct_F77"; then
4669 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_ac_ct_F77="$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683done
4684
4685fi
4686fi
4687ac_ct_F77=$ac_cv_prog_ac_ct_F77
4688if test -n "$ac_ct_F77"; then
4689 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4690echo "${ECHO_T}$ac_ct_F77" >&6
4691else
4692 echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
4694fi
4695
4696 test -n "$ac_ct_F77" && break
4697done
4698
4699 F77=$ac_ct_F77
4700fi
4701
4702
4703# Provide some information about the compiler.
John Criswellde00db22003-08-25 16:49:54 +00004704echo "$as_me:4704:" \
John Criswell47fdd832003-07-14 16:52:07 +00004705 "checking for Fortran 77 compiler version" >&5
4706ac_compiler=`set X $ac_compile; echo $2`
4707{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4708 (eval $ac_compiler --version </dev/null >&5) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }
4712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4713 (eval $ac_compiler -v </dev/null >&5) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }
4717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4718 (eval $ac_compiler -V </dev/null >&5) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
4722
4723# If we don't use `.F' as extension, the preprocessor is not run on the
4724# input file.
4725ac_save_ext=$ac_ext
4726ac_ext=F
4727echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4728echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4729if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 program main
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 end
4739_ACEOF
4740rm -f conftest.$ac_objext
4741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_compiler_gnu=yes
4753else
4754 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004755sed 's/^/| /' conftest.$ac_ext >&5
4756
John Criswell47fdd832003-07-14 16:52:07 +00004757ac_compiler_gnu=no
4758fi
4759rm -f conftest.$ac_objext conftest.$ac_ext
4760ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4761
4762fi
4763echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4764echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4765ac_ext=$ac_save_ext
4766G77=`test $ac_compiler_gnu = yes && echo yes`
4767ac_test_FFLAGS=${FFLAGS+set}
4768ac_save_FFLAGS=$FFLAGS
4769FFLAGS=
4770echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4771echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4772if test "${ac_cv_prog_f77_g+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 FFLAGS=-g
4776cat >conftest.$ac_ext <<_ACEOF
4777 program main
4778
4779 end
4780_ACEOF
4781rm -f conftest.$ac_objext
4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_prog_f77_g=yes
4794else
4795 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004796sed 's/^/| /' conftest.$ac_ext >&5
4797
John Criswell47fdd832003-07-14 16:52:07 +00004798ac_cv_prog_f77_g=no
4799fi
4800rm -f conftest.$ac_objext conftest.$ac_ext
4801
4802fi
4803echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4804echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4805if test "$ac_test_FFLAGS" = set; then
4806 FFLAGS=$ac_save_FFLAGS
4807elif test $ac_cv_prog_f77_g = yes; then
4808 if test "$G77" = yes; then
4809 FFLAGS="-g -O2"
4810 else
4811 FFLAGS="-g"
4812 fi
4813else
4814 if test "$G77" = yes; then
4815 FFLAGS="-O2"
4816 else
4817 FFLAGS=
4818 fi
4819fi
4820ac_ext=c
4821ac_cpp='$CPP $CPPFLAGS'
4822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825
4826
4827
4828# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4829
4830# find the maximum length of command line arguments
4831echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4832echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4833if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836 i=0
4837 testring="ABCD"
4838
4839 case $build_os in
4840 msdosdjgpp*)
4841 # On DJGPP, this test can blow up pretty badly due to problems in libc
4842 # (any single argument exceeding 2000 bytes causes a buffer overrun
4843 # during glob expansion). Even if it were fixed, the result of this
4844 # check would be larger than it should be.
4845 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4846 ;;
4847
4848 gnu*)
4849 # Under GNU Hurd, this test is not required because there is
4850 # no limit to the length of command line arguments.
4851 # Libtool will interpret -1 as no limit whatsoever
4852 lt_cv_sys_max_cmd_len=-1;
4853 ;;
4854
4855 cygwin* | mingw*)
4856 # On Win9x/ME, this test blows up -- it succeeds, but takes
4857 # about 5 minutes as the teststring grows exponentially.
4858 # Worse, since 9x/ME are not pre-emptively multitasking,
4859 # you end up with a "frozen" computer, even though with patience
4860 # the test eventually succeeds (with a max line length of 256k).
4861 # Instead, let's just punt: use the minimum linelength reported by
4862 # all of the supported platforms: 8192 (on NT/2K/XP).
4863 lt_cv_sys_max_cmd_len=8192;
4864 ;;
4865
4866 *)
4867 # If test is not a shell built-in, we'll probably end up computing a
4868 # maximum length that is only half of the actual maximum length, but
4869 # we can't tell.
4870 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4871 = "XX$testring") >/dev/null 2>&1 &&
4872 new_result=`expr "X$testring" : ".*" 2>&1` &&
4873 lt_cv_sys_max_cmd_len=$new_result &&
4874 test $i != 17 # 1/2 MB should be enough
4875 do
4876 i=`expr $i + 1`
4877 testring=$testring$testring
4878 done
4879 testring=
4880 # Add a significant safety factor because C++ compilers can tack on massive
4881 # amounts of additional arguments before passing them to the linker.
4882 # It appears as though 1/2 is a usable value.
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4884 ;;
4885 esac
4886
4887fi
4888
4889if test -n $lt_cv_sys_max_cmd_len ; then
4890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4891echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4892else
4893 echo "$as_me:$LINENO: result: none" >&5
4894echo "${ECHO_T}none" >&6
4895fi
4896
4897
4898
4899
4900# Check for command to grab the raw symbol name followed by C symbol from nm.
4901echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4902echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4903if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906
4907# These are sane defaults that work on at least a few old systems.
4908# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4909
4910# Character class describing NM global symbol codes.
4911symcode='[BCDEGRST]'
4912
4913# Regexp to match symbols that can be accessed directly from C.
4914sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4915
4916# Transform the above into a raw symbol and a C symbol.
4917symxfrm='\1 \2\3 \3'
4918
4919# Transform an extracted symbol line into a proper C declaration
4920lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4921
4922# Transform an extracted symbol line into symbol name and symbol address
4923lt_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'"
4924
4925# Define system-specific variables.
4926case $host_os in
4927aix*)
4928 symcode='[BCDT]'
4929 ;;
4930cygwin* | mingw* | pw32*)
4931 symcode='[ABCDGISTW]'
4932 ;;
4933hpux*) # Its linker distinguishes data from code symbols
4934 if test "$host_cpu" = ia64; then
4935 symcode='[ABCDEGRST]'
4936 fi
4937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4938 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'"
4939 ;;
4940irix* | nonstopux*)
4941 symcode='[BCDEGRST]'
4942 ;;
4943osf*)
4944 symcode='[BCDEGQRST]'
4945 ;;
4946solaris* | sysv5*)
4947 symcode='[BDT]'
4948 ;;
4949sysv4)
4950 symcode='[DFNSTU]'
4951 ;;
4952esac
4953
4954# Handle CRLF in mingw tool chain
4955opt_cr=
4956case $build_os in
4957mingw*)
4958 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4959 ;;
4960esac
4961
4962# If we're using GNU nm, then use its standard symbol codes.
4963case `$NM -V 2>&1` in
4964*GNU* | *'with BFD'*)
4965 symcode='[ABCDGISTW]' ;;
4966esac
4967
4968# Try without a prefix undercore, then with it.
4969for ac_symprfx in "" "_"; do
4970
4971 # Write the raw and C identifiers.
4972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4973
4974 # Check to see that the pipe works correctly.
4975 pipe_works=no
4976
4977 rm -f conftest*
4978 cat > conftest.$ac_ext <<EOF
4979#ifdef __cplusplus
4980extern "C" {
4981#endif
4982char nm_test_var;
4983void nm_test_func(){}
4984#ifdef __cplusplus
4985}
4986#endif
4987int main(){nm_test_var='a';nm_test_func();return(0);}
4988EOF
4989
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; then
4995 # Now try to grab the symbols.
4996 nlist=conftest.nm
4997 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && test -s "$nlist"; then
5002 # Try sorting and uniquifying the output.
5003 if sort "$nlist" | uniq > "$nlist"T; then
5004 mv -f "$nlist"T "$nlist"
5005 else
5006 rm -f "$nlist"T
5007 fi
5008
5009 # Make sure that we snagged all the symbols we need.
5010 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5011 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5012 cat <<EOF > conftest.$ac_ext
5013#ifdef __cplusplus
5014extern "C" {
5015#endif
5016
5017EOF
5018 # Now generate the symbol file.
5019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5020
5021 cat <<EOF >> conftest.$ac_ext
5022#if defined (__STDC__) && __STDC__
5023# define lt_ptr_t void *
5024#else
5025# define lt_ptr_t char *
5026# define const
5027#endif
5028
5029/* The mapping between symbol names and symbols. */
5030const struct {
5031 const char *name;
5032 lt_ptr_t address;
5033}
5034lt_preloaded_symbols[] =
5035{
5036EOF
5037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5038 cat <<\EOF >> conftest.$ac_ext
5039 {0, (lt_ptr_t) 0}
5040};
5041
5042#ifdef __cplusplus
5043}
5044#endif
5045EOF
5046 # Now try linking the two files.
5047 mv conftest.$ac_objext conftstm.$ac_objext
5048 lt_save_LIBS="$LIBS"
5049 lt_save_CFLAGS="$CFLAGS"
5050 LIBS="conftstm.$ac_objext"
5051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5057 pipe_works=yes
5058 fi
5059 LIBS="$lt_save_LIBS"
5060 CFLAGS="$lt_save_CFLAGS"
5061 else
5062 echo "cannot find nm_test_func in $nlist" >&5
5063 fi
5064 else
5065 echo "cannot find nm_test_var in $nlist" >&5
5066 fi
5067 else
5068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5069 fi
5070 else
5071 echo "$progname: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 fi
5074 rm -f conftest* conftst*
5075
5076 # Do not use the global_symbol_pipe unless it works.
5077 if test "$pipe_works" = yes; then
5078 break
5079 else
5080 lt_cv_sys_global_symbol_pipe=
5081 fi
5082done
5083
5084fi
5085
5086if test -z "$lt_cv_sys_global_symbol_pipe"; then
5087 lt_cv_sys_global_symbol_to_cdecl=
5088fi
5089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5090 echo "$as_me:$LINENO: result: failed" >&5
5091echo "${ECHO_T}failed" >&6
5092else
5093 echo "$as_me:$LINENO: result: ok" >&5
5094echo "${ECHO_T}ok" >&6
5095fi
5096
5097echo "$as_me:$LINENO: checking for objdir" >&5
5098echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5099if test "${lt_cv_objdir+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102 rm -f .libs 2>/dev/null
5103mkdir .libs 2>/dev/null
5104if test -d .libs; then
5105 lt_cv_objdir=.libs
5106else
5107 # MS-DOS does not allow filenames that begin with a dot.
5108 lt_cv_objdir=_libs
5109fi
5110rmdir .libs 2>/dev/null
5111fi
5112echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5113echo "${ECHO_T}$lt_cv_objdir" >&6
5114objdir=$lt_cv_objdir
5115
5116
5117
5118
5119
5120case $host_os in
5121aix3*)
5122 # AIX sometimes has problems with the GCC collect2 program. For some
5123 # reason, if we set the COLLECT_NAMES environment variable, the problems
5124 # vanish in a puff of smoke.
5125 if test "X${COLLECT_NAMES+set}" != Xset; then
5126 COLLECT_NAMES=
5127 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005128 fi
5129 ;;
5130esac
5131
John Criswell47fdd832003-07-14 16:52:07 +00005132# Sed substitution that helps us do robust quoting. It backslashifies
5133# metacharacters that are still active within double-quoted strings.
5134Xsed='sed -e s/^X//'
5135sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5136
5137# Same as above, but do not quote variable references.
5138double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5139
5140# Sed substitution to delay expansion of an escaped shell variable in a
5141# double_quote_subst'ed string.
5142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5143
5144# Sed substitution to avoid accidental globbing in evaled expressions
5145no_glob_subst='s/\*/\\\*/g'
5146
5147# Constants:
5148rm="rm -f"
5149
5150# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005151default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005152can_build_shared=yes
5153
5154# All known linkers require a `.a' archive for static linking (except M$VC,
5155# which needs '.lib').
5156libext=a
5157ltmain="$ac_aux_dir/ltmain.sh"
5158ofile="$default_ofile"
5159with_gnu_ld="$lt_cv_prog_gnu_ld"
5160
5161if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5163set dummy ${ac_tool_prefix}ar; ac_word=$2
5164echo "$as_me:$LINENO: checking for $ac_word" >&5
5165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166if test "${ac_cv_prog_AR+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 if test -n "$AR"; then
5170 ac_cv_prog_AR="$AR" # Let the user override the test.
5171else
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_AR="${ac_tool_prefix}ar"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
5185
5186fi
5187fi
5188AR=$ac_cv_prog_AR
5189if test -n "$AR"; then
5190 echo "$as_me:$LINENO: result: $AR" >&5
5191echo "${ECHO_T}$AR" >&6
5192else
5193 echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195fi
5196
5197fi
5198if test -z "$ac_cv_prog_AR"; then
5199 ac_ct_AR=$AR
5200 # Extract the first word of "ar", so it can be a program name with args.
5201set dummy ar; ac_word=$2
5202echo "$as_me:$LINENO: checking for $ac_word" >&5
5203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 if test -n "$ac_ct_AR"; then
5208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_AR="ar"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222done
5223
5224 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5225fi
5226fi
5227ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228if test -n "$ac_ct_AR"; then
5229 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5230echo "${ECHO_T}$ac_ct_AR" >&6
5231else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234fi
5235
5236 AR=$ac_ct_AR
5237else
5238 AR="$ac_cv_prog_AR"
5239fi
5240
John Criswell7a73b802003-06-30 21:59:07 +00005241if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_RANLIB+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 if test -n "$RANLIB"; then
5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
5265
5266fi
5267fi
5268RANLIB=$ac_cv_prog_RANLIB
5269if test -n "$RANLIB"; then
5270 echo "$as_me:$LINENO: result: $RANLIB" >&5
5271echo "${ECHO_T}$RANLIB" >&6
5272else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275fi
5276
5277fi
5278if test -z "$ac_cv_prog_RANLIB"; then
5279 ac_ct_RANLIB=$RANLIB
5280 # Extract the first word of "ranlib", so it can be a program name with args.
5281set dummy ranlib; ac_word=$2
5282echo "$as_me:$LINENO: checking for $ac_word" >&5
5283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 if test -n "$ac_ct_RANLIB"; then
5288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5289else
5290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_ac_ct_RANLIB="ranlib"
5298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301done
5302done
5303
5304 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5305fi
5306fi
5307ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5308if test -n "$ac_ct_RANLIB"; then
5309 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5310echo "${ECHO_T}$ac_ct_RANLIB" >&6
5311else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314fi
5315
5316 RANLIB=$ac_ct_RANLIB
5317else
5318 RANLIB="$ac_cv_prog_RANLIB"
5319fi
5320
5321if test -n "$ac_tool_prefix"; then
5322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5323set dummy ${ac_tool_prefix}strip; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_prog_STRIP+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 if test -n "$STRIP"; then
5330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343done
5344done
5345
5346fi
5347fi
5348STRIP=$ac_cv_prog_STRIP
5349if test -n "$STRIP"; then
5350 echo "$as_me:$LINENO: result: $STRIP" >&5
5351echo "${ECHO_T}$STRIP" >&6
5352else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
5357fi
5358if test -z "$ac_cv_prog_STRIP"; then
5359 ac_ct_STRIP=$STRIP
5360 # Extract the first word of "strip", so it can be a program name with args.
5361set dummy strip; ac_word=$2
5362echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 if test -n "$ac_ct_STRIP"; then
5368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_ac_ct_STRIP="strip"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381done
5382done
5383
5384 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5385fi
5386fi
5387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5388if test -n "$ac_ct_STRIP"; then
5389 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5390echo "${ECHO_T}$ac_ct_STRIP" >&6
5391else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394fi
5395
5396 STRIP=$ac_ct_STRIP
5397else
5398 STRIP="$ac_cv_prog_STRIP"
5399fi
5400
5401
John Criswell7a73b802003-06-30 21:59:07 +00005402old_CC="$CC"
5403old_CFLAGS="$CFLAGS"
5404
5405# Set sane defaults for various variables
5406test -z "$AR" && AR=ar
5407test -z "$AR_FLAGS" && AR_FLAGS=cru
5408test -z "$AS" && AS=as
5409test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005410test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005411test -z "$DLLTOOL" && DLLTOOL=dlltool
5412test -z "$LD" && LD=ld
5413test -z "$LN_S" && LN_S="ln -s"
5414test -z "$MAGIC_CMD" && MAGIC_CMD=file
5415test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005416test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005417test -z "$OBJDUMP" && OBJDUMP=objdump
5418test -z "$RANLIB" && RANLIB=:
5419test -z "$STRIP" && STRIP=:
5420test -z "$ac_objext" && ac_objext=o
5421
John Criswell7a73b802003-06-30 21:59:07 +00005422# Determine commands to create old-style static archives.
5423old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5424old_postinstall_cmds='chmod 644 $oldlib'
5425old_postuninstall_cmds=
5426
5427if test -n "$RANLIB"; then
5428 case $host_os in
5429 openbsd*)
5430 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5431 ;;
5432 *)
5433 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5434 ;;
5435 esac
5436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5437fi
5438
John Criswell47fdd832003-07-14 16:52:07 +00005439# Only perform the check for file, if the check method requires it
5440case $deplibs_check_method in
5441file_magic*)
5442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5443 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5444echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5445if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005447else
John Criswell47fdd832003-07-14 16:52:07 +00005448 case $MAGIC_CMD in
5449[\\/*] | ?:[\\/]*)
5450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5451 ;;
5452*)
5453 lt_save_MAGIC_CMD="$MAGIC_CMD"
5454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5456 for ac_dir in $ac_dummy; do
5457 IFS="$lt_save_ifs"
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/${ac_tool_prefix}file; then
5460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5461 if test -n "$file_magic_test_file"; then
5462 case $deplibs_check_method in
5463 "file_magic "*)
5464 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5467 $EGREP "$file_magic_regex" > /dev/null; then
5468 :
5469 else
5470 cat <<EOF 1>&2
5471
5472*** Warning: the command libtool uses to detect shared libraries,
5473*** $file_magic_cmd, produces output that libtool cannot recognize.
5474*** The result is that libtool may fail to recognize shared libraries
5475*** as such. This will affect the creation of libtool libraries that
5476*** depend on shared libraries, but programs linked with such libtool
5477*** libraries will work regardless of this problem. Nevertheless, you
5478*** may want to report the problem to your system manager and/or to
5479*** bug-libtool@gnu.org
5480
5481EOF
5482 fi ;;
5483 esac
5484 fi
5485 break
5486 fi
5487 done
5488 IFS="$lt_save_ifs"
5489 MAGIC_CMD="$lt_save_MAGIC_CMD"
5490 ;;
5491esac
John Criswell7a73b802003-06-30 21:59:07 +00005492fi
John Criswell7a73b802003-06-30 21:59:07 +00005493
John Criswell47fdd832003-07-14 16:52:07 +00005494MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5495if test -n "$MAGIC_CMD"; then
5496 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5497echo "${ECHO_T}$MAGIC_CMD" >&6
5498else
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
John Criswell7a73b802003-06-30 21:59:07 +00005502
John Criswell47fdd832003-07-14 16:52:07 +00005503if test -z "$lt_cv_path_MAGIC_CMD"; then
5504 if test -n "$ac_tool_prefix"; then
5505 echo "$as_me:$LINENO: checking for file" >&5
5506echo $ECHO_N "checking for file... $ECHO_C" >&6
5507if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 case $MAGIC_CMD in
5511[\\/*] | ?:[\\/]*)
5512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5513 ;;
5514*)
5515 lt_save_MAGIC_CMD="$MAGIC_CMD"
5516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5518 for ac_dir in $ac_dummy; do
5519 IFS="$lt_save_ifs"
5520 test -z "$ac_dir" && ac_dir=.
5521 if test -f $ac_dir/file; then
5522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5523 if test -n "$file_magic_test_file"; then
5524 case $deplibs_check_method in
5525 "file_magic "*)
5526 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5529 $EGREP "$file_magic_regex" > /dev/null; then
5530 :
5531 else
5532 cat <<EOF 1>&2
5533
5534*** Warning: the command libtool uses to detect shared libraries,
5535*** $file_magic_cmd, produces output that libtool cannot recognize.
5536*** The result is that libtool may fail to recognize shared libraries
5537*** as such. This will affect the creation of libtool libraries that
5538*** depend on shared libraries, but programs linked with such libtool
5539*** libraries will work regardless of this problem. Nevertheless, you
5540*** may want to report the problem to your system manager and/or to
5541*** bug-libtool@gnu.org
5542
5543EOF
5544 fi ;;
5545 esac
5546 fi
5547 break
5548 fi
5549 done
5550 IFS="$lt_save_ifs"
5551 MAGIC_CMD="$lt_save_MAGIC_CMD"
5552 ;;
5553esac
5554fi
5555
5556MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5557if test -n "$MAGIC_CMD"; then
5558 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5559echo "${ECHO_T}$MAGIC_CMD" >&6
5560else
5561 echo "$as_me:$LINENO: result: no" >&5
5562echo "${ECHO_T}no" >&6
5563fi
5564
5565 else
5566 MAGIC_CMD=:
5567 fi
5568fi
5569
5570 fi
5571 ;;
5572esac
5573
5574enable_dlopen=no
5575enable_win32_dll=no
5576
5577# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5578if test "${enable_libtool_lock+set}" = set; then
5579 enableval="$enable_libtool_lock"
5580
5581fi;
5582test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
John Criswell7a73b802003-06-30 21:59:07 +00005584
5585# Check whether --with-pic or --without-pic was given.
5586if test "${with_pic+set}" = set; then
5587 withval="$with_pic"
5588 pic_mode="$withval"
5589else
5590 pic_mode=default
5591fi;
5592test -z "$pic_mode" && pic_mode=default
5593
John Criswell47fdd832003-07-14 16:52:07 +00005594# Use C for the default configuration in the libtool script
5595tagname=
5596lt_save_CC="$CC"
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603
5604# Source file extension for C test sources.
5605ac_ext=c
5606
5607# Object file extension for compiled C test sources.
5608objext=o
5609objext=$objext
5610
5611# Code to be used in simple compile tests
5612lt_simple_compile_test_code="int some_variable = 0;\n"
5613
5614# Code to be used in simple link tests
5615lt_simple_link_test_code='int main(){return(0);}\n'
5616
5617
5618# If no C compiler was specified, use CC.
5619LTCC=${LTCC-"$CC"}
5620
5621# Allow CC to be a program name with arguments.
5622compiler=$CC
5623
5624
5625#
5626# Check for any special shared library compilation flags.
5627#
5628lt_prog_cc_shlib=
5629if test "$GCC" = no; then
5630 case $host_os in
5631 sco3.2v5*)
5632 lt_prog_cc_shlib='-belf'
5633 ;;
5634 esac
5635fi
5636if test -n "$lt_prog_cc_shlib"; then
5637 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5638echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5639 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5640 else
5641 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5642echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5643 lt_cv_prog_cc_can_build_shared=no
5644 fi
5645fi
5646
5647
5648#
5649# Check to make sure the static flag actually works.
5650#
5651echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5652echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5653if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
John Criswell47fdd832003-07-14 16:52:07 +00005656 lt_prog_compiler_static_works=no
5657 save_LDFLAGS="$LDFLAGS"
5658 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5659 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5661 # The compiler can only warn and ignore the option if not recognized
5662 # So say no if there are warnings
5663 if test -s conftest.err; then
5664 # Append any errors to the config.log.
5665 cat conftest.err 1>&5
5666 else
5667 lt_prog_compiler_static_works=yes
5668 fi
5669 fi
5670 $rm conftest*
5671 LDFLAGS="$save_LDFLAGS"
5672
5673fi
5674echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5675echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5676
5677if test x"$lt_prog_compiler_static_works" = xyes; then
5678 :
5679else
5680 lt_prog_compiler_static=
5681fi
5682
5683
5684
5685## CAVEAT EMPTOR:
5686## There is no encapsulation within the following macros, do not change
5687## the running order or otherwise move them around unless you know exactly
5688## what you are doing...
5689
5690lt_prog_compiler_no_builtin_flag=
5691
5692if test "$GCC" = yes; then
5693 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5694
5695 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 lt_cv_prog_compiler_rtti_exceptions=no
5701 ac_outfile=conftest.$ac_objext
5702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5703 lt_compiler_flag="-fno-rtti -fno-exceptions"
5704 # Insert the option either (1) after the last *FLAGS variable, or
5705 # (2) before a word containing "conftest.", or (3) at the end.
5706 # Note that $ac_compile itself does not contain backslashes and begins
5707 # with a dollar sign (not a hyphen), so the echo should work correctly.
5708 # The option is referenced via a variable to avoid confusing sed.
5709 lt_compile=`echo "$ac_compile" | $SED \
5710 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5712 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +00005713 (eval echo "\"\$as_me:5713: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005714 (eval "$lt_compile" 2>conftest.err)
5715 ac_status=$?
5716 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +00005717 echo "$as_me:5717: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005718 if (exit $ac_status) && test -s "$ac_outfile"; then
5719 # The compiler can only warn and ignore the option if not recognized
5720 # So say no if there are warnings
5721 if test ! -s conftest.err; then
5722 lt_cv_prog_compiler_rtti_exceptions=yes
5723 fi
5724 fi
5725 $rm conftest*
5726
5727fi
5728echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5729echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5730
5731if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5733else
5734 :
5735fi
5736
5737fi
5738
5739lt_prog_compiler_wl=
5740lt_prog_compiler_pic=
5741lt_prog_compiler_static=
5742
5743echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5744echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005745
5746 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005747 lt_prog_compiler_wl='-Wl,'
5748 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005749
5750 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005751 aix*)
5752 # All AIX code is PIC.
5753 if test "$host_cpu" = ia64; then
5754 # AIX 5 now supports IA64 processor
5755 lt_prog_compiler_static='-Bstatic'
5756 fi
John Criswell7a73b802003-06-30 21:59:07 +00005757 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005758
John Criswell7a73b802003-06-30 21:59:07 +00005759 amigaos*)
5760 # FIXME: we need at least 68020 code to build shared libraries, but
5761 # adding the `-m68020' flag to GCC prevents building anything better,
5762 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005764 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005765
5766 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005767 # PIC is the default for these OSes.
5768 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005769
5770 mingw* | pw32* | os2*)
5771 # This hack is so that the source file can tell whether it is being
5772 # built for inclusion in a dll (and should export symbols for example).
5773 lt_prog_compiler_pic='-DDLL_EXPORT'
5774 ;;
5775
John Criswell7a73b802003-06-30 21:59:07 +00005776 darwin* | rhapsody*)
5777 # PIC is the default on this platform
5778 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005779 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005780 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005781
5782 msdosdjgpp*)
5783 # Just because we use GCC doesn't mean we suddenly get shared libraries
5784 # on systems that don't support them.
5785 lt_prog_compiler_can_build_shared=no
5786 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005787 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005788
John Criswell7a73b802003-06-30 21:59:07 +00005789 sysv4*MP*)
5790 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005791 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005792 fi
5793 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005794
5795 hpux*)
5796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5797 # not for PA HP-UX.
5798 case "$host_cpu" in
5799 hppa*64*|ia64*)
5800 # +Z the default
5801 ;;
5802 *)
5803 lt_prog_compiler_pic='-fPIC'
5804 ;;
5805 esac
5806 ;;
5807
John Criswell7a73b802003-06-30 21:59:07 +00005808 *)
John Criswell47fdd832003-07-14 16:52:07 +00005809 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005810 ;;
5811 esac
5812 else
John Criswell47fdd832003-07-14 16:52:07 +00005813 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005814 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005815 aix*)
5816 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005817 if test "$host_cpu" = ia64; then
5818 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005819 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005820 else
John Criswell47fdd832003-07-14 16:52:07 +00005821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005822 fi
5823 ;;
5824
John Criswell47fdd832003-07-14 16:52:07 +00005825 mingw* | pw32* | os2*)
5826 # This hack is so that the source file can tell whether it is being
5827 # built for inclusion in a dll (and should export symbols for example).
5828 lt_prog_compiler_pic='-DDLL_EXPORT'
5829 ;;
5830
John Criswell7a73b802003-06-30 21:59:07 +00005831 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00005832 lt_prog_compiler_wl='-Wl,'
5833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5834 # not for PA HP-UX.
5835 case "$host_cpu" in
5836 hppa*64*|ia64*)
5837 # +Z the default
5838 ;;
5839 *)
5840 lt_prog_compiler_pic='+Z'
5841 ;;
5842 esac
5843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5844 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00005845 ;;
5846
John Criswell47fdd832003-07-14 16:52:07 +00005847 irix5* | irix6* | nonstopux*)
5848 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005849 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00005850 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005851 ;;
5852
5853 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00005854 lt_prog_compiler_pic='-KPIC'
5855 lt_prog_compiler_static='-Bstatic'
5856 ;;
5857
5858 linux*)
5859 case $CC in
5860 icc|ecc)
5861 lt_prog_compiler_wl='-Wl,'
5862 lt_prog_compiler_pic='-KPIC'
5863 lt_prog_compiler_static='-static'
5864 ;;
5865 ccc)
5866 lt_prog_compiler_wl='-Wl,'
5867 # All Alpha code is PIC.
5868 lt_prog_compiler_static='-non_shared'
5869 ;;
5870 esac
John Criswell7a73b802003-06-30 21:59:07 +00005871 ;;
5872
5873 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00005874 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005875 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00005876 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005877 ;;
5878
5879 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00005880 lt_prog_compiler_pic='-Kpic'
5881 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00005882 ;;
5883
5884 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00005885 lt_prog_compiler_wl='-Wl,'
5886 lt_prog_compiler_pic='-KPIC'
5887 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005888 ;;
5889
5890 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00005891 lt_prog_compiler_wl='-Qoption ld '
5892 lt_prog_compiler_pic='-PIC'
5893 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005894 ;;
5895
5896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00005897 lt_prog_compiler_wl='-Wl,'
5898 lt_prog_compiler_pic='-KPIC'
5899 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005900 ;;
5901
5902 sysv4*MP*)
5903 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00005904 lt_prog_compiler_pic='-Kconform_pic'
5905 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005906 fi
5907 ;;
5908
John Criswell47fdd832003-07-14 16:52:07 +00005909 uts4*)
5910 lt_prog_compiler_pic='-pic'
5911 lt_prog_compiler_static='-Bstatic'
5912 ;;
5913
John Criswell7a73b802003-06-30 21:59:07 +00005914 *)
John Criswell47fdd832003-07-14 16:52:07 +00005915 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005916 ;;
5917 esac
5918 fi
5919
John Criswell47fdd832003-07-14 16:52:07 +00005920echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5921echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005922
John Criswell47fdd832003-07-14 16:52:07 +00005923#
5924# Check to make sure the PIC flag actually works.
5925#
5926if test -n "$lt_prog_compiler_pic"; then
5927 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5928echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5929if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
John Criswell47fdd832003-07-14 16:52:07 +00005932 lt_prog_compiler_pic_works=no
5933 ac_outfile=conftest.$ac_objext
5934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5935 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5936 # Insert the option either (1) after the last *FLAGS variable, or
5937 # (2) before a word containing "conftest.", or (3) at the end.
5938 # Note that $ac_compile itself does not contain backslashes and begins
5939 # with a dollar sign (not a hyphen), so the echo should work correctly.
5940 # The option is referenced via a variable to avoid confusing sed.
5941 lt_compile=`echo "$ac_compile" | $SED \
5942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5944 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +00005945 (eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005946 (eval "$lt_compile" 2>conftest.err)
5947 ac_status=$?
5948 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +00005949 echo "$as_me:5949: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005950 if (exit $ac_status) && test -s "$ac_outfile"; then
5951 # The compiler can only warn and ignore the option if not recognized
5952 # So say no if there are warnings
5953 if test ! -s conftest.err; then
5954 lt_prog_compiler_pic_works=yes
5955 fi
5956 fi
5957 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00005958
John Criswell47fdd832003-07-14 16:52:07 +00005959fi
5960echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5961echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005962
John Criswell47fdd832003-07-14 16:52:07 +00005963if test x"$lt_prog_compiler_pic_works" = xyes; then
5964 case $lt_prog_compiler_pic in
5965 "" | " "*) ;;
5966 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5967 esac
John Criswell7a73b802003-06-30 21:59:07 +00005968else
John Criswell47fdd832003-07-14 16:52:07 +00005969 lt_prog_compiler_pic=
5970 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005971fi
5972
John Criswell7a73b802003-06-30 21:59:07 +00005973fi
John Criswell47fdd832003-07-14 16:52:07 +00005974case "$host_os" in
5975 # For platforms which do not support PIC, -DPIC is meaningless:
5976 *djgpp*)
5977 lt_prog_compiler_pic=
5978 ;;
5979 *)
5980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5981 ;;
5982esac
John Criswell7a73b802003-06-30 21:59:07 +00005983
John Criswell7a73b802003-06-30 21:59:07 +00005984echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5985echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00005986if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
John Criswell47fdd832003-07-14 16:52:07 +00005989 lt_cv_prog_compiler_c_o=no
5990 $rm -r conftest 2>/dev/null
5991 mkdir conftest
5992 cd conftest
5993 mkdir out
5994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005995
John Criswell47fdd832003-07-14 16:52:07 +00005996 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5997 # that will create temporary files in the current directory regardless of
5998 # the output directory. Thus, making CWD read-only will cause this test
5999 # to fail, enabling locking or at least warning the user not to do parallel
6000 # builds.
6001 chmod -w .
6002
6003 lt_compiler_flag="-o out/conftest2.$ac_objext"
6004 # Insert the option either (1) after the last *FLAGS variable, or
6005 # (2) before a word containing "conftest.", or (3) at the end.
6006 # Note that $ac_compile itself does not contain backslashes and begins
6007 # with a dollar sign (not a hyphen), so the echo should work correctly.
6008 lt_compile=`echo "$ac_compile" | $SED \
6009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6011 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +00006012 (eval echo "\"\$as_me:6012: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006013 (eval "$lt_compile" 2>out/conftest.err)
6014 ac_status=$?
6015 cat out/conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +00006016 echo "$as_me:6016: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6018 then
6019 # The compiler can only warn and ignore the option if not recognized
6020 # So say no if there are warnings
6021 if test ! -s out/conftest.err; then
6022 lt_cv_prog_compiler_c_o=yes
6023 fi
6024 fi
6025 chmod u+w .
6026 $rm conftest* out/*
6027 rmdir out
6028 cd ..
6029 rmdir conftest
6030 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006031
6032fi
John Criswell47fdd832003-07-14 16:52:07 +00006033echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6034echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006035
John Criswell7a73b802003-06-30 21:59:07 +00006036
John Criswell7a73b802003-06-30 21:59:07 +00006037hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006038if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006039 # do not overwrite the value of need_locks provided by the user
6040 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6041echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6042 hard_links=yes
6043 $rm conftest*
6044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6045 touch conftest.a
6046 ln conftest.a conftest.b 2>&5 || hard_links=no
6047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6048 echo "$as_me:$LINENO: result: $hard_links" >&5
6049echo "${ECHO_T}$hard_links" >&6
6050 if test "$hard_links" = no; then
6051 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6052echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6053 need_locks=warn
6054 fi
6055else
6056 need_locks=no
6057fi
John Criswell7a73b802003-06-30 21:59:07 +00006058
John Criswell47fdd832003-07-14 16:52:07 +00006059echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6060echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6061
6062 runpath_var=
6063 allow_undefined_flag=
6064 enable_shared_with_static_runtimes=no
6065 archive_cmds=
6066 archive_expsym_cmds=
6067 old_archive_From_new_cmds=
6068 old_archive_from_expsyms_cmds=
6069 export_dynamic_flag_spec=
6070 whole_archive_flag_spec=
6071 thread_safe_flag_spec=
6072 hardcode_libdir_flag_spec=
6073 hardcode_libdir_flag_spec_ld=
6074 hardcode_libdir_separator=
6075 hardcode_direct=no
6076 hardcode_minus_L=no
6077 hardcode_shlibpath_var=unsupported
6078 link_all_deplibs=unknown
6079 hardcode_automatic=no
6080 module_cmds=
6081 module_expsym_cmds=
6082 always_export_symbols=no
6083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6084 # include_expsyms should be a list of space-separated symbols to be *always*
6085 # included in the symbol list
6086 include_expsyms=
6087 # exclude_expsyms can be an extended regexp of symbols to exclude
6088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6090 # as well as any symbol that contains `d'.
6091 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6093 # platforms (ab)use it in PIC code, but their linkers get confused if
6094 # the symbol is explicitly referenced. Since portable code cannot
6095 # rely on this symbol name, it's probably fine to never include it in
6096 # preloaded symbol tables.
6097 extract_expsyms_cmds=
6098
6099 case $host_os in
6100 cygwin* | mingw* | pw32*)
6101 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6102 # When not using gcc, we currently assume that we are using
6103 # Microsoft Visual C++.
6104 if test "$GCC" != yes; then
6105 with_gnu_ld=no
6106 fi
6107 ;;
6108 openbsd*)
6109 with_gnu_ld=no
6110 ;;
6111 esac
6112
6113 ld_shlibs=yes
6114 if test "$with_gnu_ld" = yes; then
6115 # If archive_cmds runs LD, not CC, wlarc should be empty
6116 wlarc='${wl}'
6117
6118 # See if GNU ld supports shared libraries.
6119 case $host_os in
6120 aix3* | aix4* | aix5*)
6121 # On AIX/PPC, the GNU linker is very broken
6122 if test "$host_cpu" != ia64; then
6123 ld_shlibs=no
6124 cat <<EOF 1>&2
6125
6126*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6127*** to be unable to reliably create shared libraries on AIX.
6128*** Therefore, libtool is disabling shared libraries support. If you
6129*** really care for shared libraries, you may want to modify your PATH
6130*** so that a non-GNU linker is found, and then restart.
6131
6132EOF
6133 fi
6134 ;;
6135
6136 amigaos*)
6137 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)'
6138 hardcode_libdir_flag_spec='-L$libdir'
6139 hardcode_minus_L=yes
6140
6141 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6142 # that the semantics of dynamic libraries on AmigaOS, at least up
6143 # to version 4, is to share data among multiple programs linked
6144 # with the same dynamic library. Since this doesn't match the
6145 # behavior of shared libraries on other platforms, we can't use
6146 # them.
6147 ld_shlibs=no
6148 ;;
6149
6150 beos*)
6151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6152 allow_undefined_flag=unsupported
6153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6154 # support --undefined. This deserves some investigation. FIXME
6155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6156 else
6157 ld_shlibs=no
6158 fi
6159 ;;
6160
6161 cygwin* | mingw* | pw32*)
6162 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6163 # as there is no search path for DLLs.
6164 hardcode_libdir_flag_spec='-L$libdir'
6165 allow_undefined_flag=unsupported
6166 always_export_symbols=no
6167 enable_shared_with_static_runtimes=yes
6168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6169
6170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6172 # If the export-symbols file already is a .def file (1st line
6173 # is EXPORTS), use it as is; otherwise, prepend...
6174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6175 cp $export_symbols $output_objdir/$soname.def;
6176 else
6177 echo EXPORTS > $output_objdir/$soname.def;
6178 cat $export_symbols >> $output_objdir/$soname.def;
6179 fi~
6180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6181 else
6182 ld_shlibs=no
6183 fi
6184 ;;
6185
6186 netbsd*)
6187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6189 wlarc=
6190 else
6191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6193 fi
6194 ;;
6195
6196 solaris* | sysv5*)
6197 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6198 ld_shlibs=no
6199 cat <<EOF 1>&2
6200
6201*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6202*** create shared libraries on Solaris systems. Therefore, libtool
6203*** is disabling shared libraries support. We urge you to upgrade GNU
6204*** binutils to release 2.9.1 or newer. Another option is to modify
6205*** your PATH or compiler configuration so that the native linker is
6206*** used, and then restart.
6207
6208EOF
6209 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6212 else
6213 ld_shlibs=no
6214 fi
6215 ;;
6216
6217 sunos4*)
6218 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6219 wlarc=
6220 hardcode_direct=yes
6221 hardcode_shlibpath_var=no
6222 ;;
6223
6224 *)
6225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6228 else
6229 ld_shlibs=no
6230 fi
6231 ;;
6232 esac
6233
6234 if test "$ld_shlibs" = yes; then
6235 runpath_var=LD_RUN_PATH
6236 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6237 export_dynamic_flag_spec='${wl}--export-dynamic'
6238 # ancient GNU ld didn't support --whole-archive et. al.
6239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6240 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6241 else
6242 whole_archive_flag_spec=
6243 fi
6244 fi
6245 else
6246 # PORTME fill in a description of your system's linker (not GNU ld)
6247 case $host_os in
6248 aix3*)
6249 allow_undefined_flag=unsupported
6250 always_export_symbols=yes
6251 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'
6252 # Note: this linker hardcodes the directories in LIBPATH if there
6253 # are no directories specified by -L.
6254 hardcode_minus_L=yes
6255 if test "$GCC" = yes && test -z "$link_static_flag"; then
6256 # Neither direct hardcoding nor static linking is supported with a
6257 # broken collect2.
6258 hardcode_direct=unsupported
6259 fi
6260 ;;
6261
6262 aix4* | aix5*)
6263 if test "$host_cpu" = ia64; then
6264 # On IA64, the linker does run time linking by default, so we don't
6265 # have to do anything special.
6266 aix_use_runtimelinking=no
6267 exp_sym_flag='-Bexport'
6268 no_entry_flag=""
6269 else
6270 # If we're using GNU nm, then we don't want the "-C" option.
6271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6273 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'
6274 else
6275 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'
6276 fi
6277 aix_use_runtimelinking=no
6278
6279 # Test if we are trying to use run time linking or normal
6280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6281 # need to do runtime linking.
6282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6283 for ld_flag in $LDFLAGS; do
6284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6285 aix_use_runtimelinking=yes
6286 break
6287 fi
6288 done
6289 esac
6290
6291 exp_sym_flag='-bexport'
6292 no_entry_flag='-bnoentry'
6293 fi
6294
6295 # When large executables or shared objects are built, AIX ld can
6296 # have problems creating the table of contents. If linking a library
6297 # or program results in "error TOC overflow" add -mminimal-toc to
6298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6300
6301 archive_cmds=''
6302 hardcode_direct=yes
6303 hardcode_libdir_separator=':'
6304 link_all_deplibs=yes
6305
6306 if test "$GCC" = yes; then
6307 case $host_os in aix4.012|aix4.012.*)
6308 # We only want to do this on AIX 4.2 and lower, the check
6309 # below for broken collect2 doesn't work under 4.3+
6310 collect2name=`${CC} -print-prog-name=collect2`
6311 if test -f "$collect2name" && \
6312 strings "$collect2name" | grep resolve_lib_name >/dev/null
6313 then
6314 # We have reworked collect2
6315 hardcode_direct=yes
6316 else
6317 # We have old collect2
6318 hardcode_direct=unsupported
6319 # It fails to find uninstalled libraries when the uninstalled
6320 # path is not listed in the libpath. Setting hardcode_minus_L
6321 # to unsupported forces relinking
6322 hardcode_minus_L=yes
6323 hardcode_libdir_flag_spec='-L$libdir'
6324 hardcode_libdir_separator=
6325 fi
6326 esac
6327 shared_flag='-shared'
6328 else
6329 # not using gcc
6330 if test "$host_cpu" = ia64; then
6331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6332 # chokes on -Wl,-G. The following line is correct:
6333 shared_flag='-G'
6334 else
6335 if test "$aix_use_runtimelinking" = yes; then
6336 shared_flag='${wl}-G'
6337 else
6338 shared_flag='${wl}-bM:SRE'
6339 fi
6340 fi
6341 fi
6342
6343 # It seems that -bexpall does not export symbols beginning with
6344 # underscore (_), so it is better to generate a list of symbols to export.
6345 always_export_symbols=yes
6346 if test "$aix_use_runtimelinking" = yes; then
6347 # Warning - without using the other runtime loading flags (-brtl),
6348 # -berok will link without error, but may produce a broken library.
6349 allow_undefined_flag='-berok'
6350 # Determine the default libpath from the value encoded in an empty executable.
6351 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006352#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006353/* confdefs.h. */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006358
John Criswell7a73b802003-06-30 21:59:07 +00006359int
6360main ()
6361{
John Criswell47fdd832003-07-14 16:52:07 +00006362
John Criswell7a73b802003-06-30 21:59:07 +00006363 ;
6364 return 0;
6365}
6366_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006373 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006379
John Criswell47fdd832003-07-14 16:52:07 +00006380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6381}'`
6382# Check for a 64-bit object if we didn't find anything.
6383if 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; }
6384}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006385else
6386 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006387sed 's/^/| /' conftest.$ac_ext >&5
6388
John Criswell7a73b802003-06-30 21:59:07 +00006389fi
John Criswell47fdd832003-07-14 16:52:07 +00006390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006392
John Criswell47fdd832003-07-14 16:52:07 +00006393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6394 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"
6395 else
6396 if test "$host_cpu" = ia64; then
6397 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6398 allow_undefined_flag="-z nodefs"
6399 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"
6400 else
6401 # Determine the default libpath from the value encoded in an empty executable.
6402 cat >conftest.$ac_ext <<_ACEOF
6403#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006404/* confdefs.h. */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006409
John Criswell47fdd832003-07-14 16:52:07 +00006410int
6411main ()
6412{
John Criswell7a73b802003-06-30 21:59:07 +00006413
John Criswell47fdd832003-07-14 16:52:07 +00006414 ;
6415 return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
6419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006430
John Criswell47fdd832003-07-14 16:52:07 +00006431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6432}'`
6433# Check for a 64-bit object if we didn't find anything.
6434if 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; }
6435}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006436else
John Criswell47fdd832003-07-14 16:52:07 +00006437 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006438sed 's/^/| /' conftest.$ac_ext >&5
6439
John Criswell47fdd832003-07-14 16:52:07 +00006440fi
6441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006443
John Criswell47fdd832003-07-14 16:52:07 +00006444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6445 # Warning - without using the other run time loading flags,
6446 # -berok will link without error, but may produce a broken library.
6447 no_undefined_flag=' ${wl}-bernotok'
6448 allow_undefined_flag=' ${wl}-berok'
6449 # -bexpall does not export symbols beginning with underscore (_)
6450 always_export_symbols=yes
6451 # Exported symbols can be pulled into shared objects from archives
6452 whole_archive_flag_spec=' '
6453 archive_cmds_need_lc=yes
6454 # This is similar to how AIX traditionally builds it's shared libraries.
6455 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 +00006456 fi
6457 fi
John Criswell7a73b802003-06-30 21:59:07 +00006458 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006459
6460 amigaos*)
6461 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)'
6462 hardcode_libdir_flag_spec='-L$libdir'
6463 hardcode_minus_L=yes
6464 # see comment about different semantics on the GNU ld section
6465 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006466 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006467
John Criswell47fdd832003-07-14 16:52:07 +00006468 bsdi4*)
6469 export_dynamic_flag_spec=-rdynamic
6470 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006471
John Criswell47fdd832003-07-14 16:52:07 +00006472 cygwin* | mingw* | pw32*)
6473 # When not using gcc, we currently assume that we are using
6474 # Microsoft Visual C++.
6475 # hardcode_libdir_flag_spec is actually meaningless, as there is
6476 # no search path for DLLs.
6477 hardcode_libdir_flag_spec=' '
6478 allow_undefined_flag=unsupported
6479 # Tell ltmain to make .lib files, not .a files.
6480 libext=lib
6481 # Tell ltmain to make .dll files, not .so files.
6482 shrext=".dll"
6483 # FIXME: Setting linknames here is a bad hack.
6484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6485 # The linker will automatically build a .lib file if we build a DLL.
6486 old_archive_From_new_cmds='true'
6487 # FIXME: Should let the user specify the lib program.
6488 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6489 fix_srcfile_path='`cygpath -w "$srcfile"`'
6490 enable_shared_with_static_runtimes=yes
6491 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006492
John Criswell47fdd832003-07-14 16:52:07 +00006493 darwin* | rhapsody*)
6494 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6495 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006496 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006497 rhapsody* | darwin1.[012])
6498 allow_undefined_flag='-undefined suppress'
6499 ;;
6500 *) # Darwin 1.3 on
6501 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006502 ;;
6503 esac
John Criswell47fdd832003-07-14 16:52:07 +00006504 # FIXME: Relying on posixy $() will cause problems for
6505 # cross-compilation, but unfortunately the echo tests do not
6506 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6507 # `"' quotes if we put them in here... so don't!
6508 lt_int_apple_cc_single_mod=no
6509 output_verbose_link_cmd='echo'
6510 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6511 lt_int_apple_cc_single_mod=yes
6512 fi
6513 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6514 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6515 else
6516 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'
6517 fi
6518 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6520 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6521 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}'
6522 else
6523 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}'
6524 fi
6525 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}'
6526 hardcode_direct=no
6527 hardcode_automatic=yes
6528 hardcode_shlibpath_var=unsupported
6529 whole_archive_flag_spec='-all_load $convenience'
6530 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006531 fi
John Criswell47fdd832003-07-14 16:52:07 +00006532 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006533
John Criswell47fdd832003-07-14 16:52:07 +00006534 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006536 hardcode_libdir_flag_spec='-L$libdir'
6537 hardcode_shlibpath_var=no
6538 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006539
John Criswell47fdd832003-07-14 16:52:07 +00006540 freebsd1*)
6541 ld_shlibs=no
6542 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006543
John Criswell47fdd832003-07-14 16:52:07 +00006544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6545 # support. Future versions do this automatically, but an explicit c++rt0.o
6546 # does not break anything, and helps significantly (at the cost of a little
6547 # extra space).
6548 freebsd2.2*)
6549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6550 hardcode_libdir_flag_spec='-R$libdir'
6551 hardcode_direct=yes
6552 hardcode_shlibpath_var=no
6553 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006554
John Criswell47fdd832003-07-14 16:52:07 +00006555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6556 freebsd2*)
6557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6558 hardcode_direct=yes
6559 hardcode_minus_L=yes
6560 hardcode_shlibpath_var=no
6561 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006562
John Criswell47fdd832003-07-14 16:52:07 +00006563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6564 freebsd*)
6565 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6566 hardcode_libdir_flag_spec='-R$libdir'
6567 hardcode_direct=yes
6568 hardcode_shlibpath_var=no
6569 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006570
John Criswell47fdd832003-07-14 16:52:07 +00006571 hpux9*)
6572 if test "$GCC" = yes; then
6573 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'
6574 else
6575 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'
6576 fi
6577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6578 hardcode_libdir_separator=:
6579 hardcode_direct=yes
6580
6581 # hardcode_minus_L: Not really in the search PATH,
6582 # but as the default location of the library.
6583 hardcode_minus_L=yes
6584 export_dynamic_flag_spec='${wl}-E'
6585 ;;
6586
6587 hpux10* | hpux11*)
6588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6589 case "$host_cpu" in
6590 hppa*64*|ia64*)
6591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6592 ;;
6593 *)
6594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6595 ;;
6596 esac
6597 else
6598 case "$host_cpu" in
6599 hppa*64*|ia64*)
6600 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6601 ;;
6602 *)
6603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6604 ;;
6605 esac
6606 fi
6607 if test "$with_gnu_ld" = no; then
6608 case "$host_cpu" in
6609 hppa*64*)
6610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6611 hardcode_libdir_flag_spec_ld='+b $libdir'
6612 hardcode_libdir_separator=:
6613 hardcode_direct=no
6614 hardcode_shlibpath_var=no
6615 ;;
6616 ia64*)
6617 hardcode_libdir_flag_spec='-L$libdir'
6618 hardcode_direct=no
6619 hardcode_shlibpath_var=no
6620
6621 # hardcode_minus_L: Not really in the search PATH,
6622 # but as the default location of the library.
6623 hardcode_minus_L=yes
6624 ;;
6625 *)
6626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6627 hardcode_libdir_separator=:
6628 hardcode_direct=yes
6629 export_dynamic_flag_spec='${wl}-E'
6630
6631 # hardcode_minus_L: Not really in the search PATH,
6632 # but as the default location of the library.
6633 hardcode_minus_L=yes
6634 ;;
6635 esac
6636 fi
6637 ;;
6638
6639 irix5* | irix6* | nonstopux*)
6640 if test "$GCC" = yes; then
6641 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'
6642 else
6643 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'
6644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6645 fi
6646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6647 hardcode_libdir_separator=:
6648 link_all_deplibs=yes
6649 ;;
6650
6651 netbsd*)
6652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6654 else
6655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6656 fi
6657 hardcode_libdir_flag_spec='-R$libdir'
6658 hardcode_direct=yes
6659 hardcode_shlibpath_var=no
6660 ;;
6661
6662 newsos6)
6663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_direct=yes
6665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6666 hardcode_libdir_separator=:
6667 hardcode_shlibpath_var=no
6668 ;;
6669
6670 openbsd*)
6671 hardcode_direct=yes
6672 hardcode_shlibpath_var=no
6673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6676 export_dynamic_flag_spec='${wl}-E'
6677 else
6678 case $host_os in
6679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_libdir_flag_spec='-R$libdir'
6682 ;;
6683 *)
6684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6686 ;;
6687 esac
6688 fi
6689 ;;
6690
6691 os2*)
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694 allow_undefined_flag=unsupported
6695 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'
6696 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6697 ;;
6698
6699 osf3*)
6700 if test "$GCC" = yes; then
6701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6702 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'
6703 else
6704 allow_undefined_flag=' -expect_unresolved \*'
6705 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'
6706 fi
6707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708 hardcode_libdir_separator=:
6709 ;;
6710
6711 osf4* | osf5*) # as osf3* with the addition of -msym flag
6712 if test "$GCC" = yes; then
6713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6714 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'
6715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6716 else
6717 allow_undefined_flag=' -expect_unresolved \*'
6718 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'
6719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6720 $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'
6721
6722 # Both c and cxx compiler support -rpath directly
6723 hardcode_libdir_flag_spec='-rpath $libdir'
6724 fi
6725 hardcode_libdir_separator=:
6726 ;;
6727
6728 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006731 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006732 runpath_var=LD_RUN_PATH
6733 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006734 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006735
John Criswell47fdd832003-07-14 16:52:07 +00006736 solaris*)
6737 no_undefined_flag=' -z text'
6738 if test "$GCC" = yes; then
6739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6742 else
6743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6746 fi
6747 hardcode_libdir_flag_spec='-R$libdir'
6748 hardcode_shlibpath_var=no
6749 case $host_os in
6750 solaris2.[0-5] | solaris2.[0-5].*) ;;
6751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6753 esac
6754 link_all_deplibs=yes
6755 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006756
John Criswell47fdd832003-07-14 16:52:07 +00006757 sunos4*)
6758 if test "x$host_vendor" = xsequent; then
6759 # Use $CC to link under sequent, because it throws in some extra .o
6760 # files that make .init and .fini sections work.
6761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6762 else
6763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6764 fi
6765 hardcode_libdir_flag_spec='-L$libdir'
6766 hardcode_direct=yes
6767 hardcode_minus_L=yes
6768 hardcode_shlibpath_var=no
6769 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006770
John Criswell47fdd832003-07-14 16:52:07 +00006771 sysv4)
6772 case $host_vendor in
6773 sni)
6774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6775 hardcode_direct=yes # is this really true???
6776 ;;
6777 siemens)
6778 ## LD is ld it makes a PLAMLIB
6779 ## CC just makes a GrossModule.
6780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6781 reload_cmds='$CC -r -o $output$reload_objs'
6782 hardcode_direct=no
6783 ;;
6784 motorola)
6785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6787 ;;
6788 esac
6789 runpath_var='LD_RUN_PATH'
6790 hardcode_shlibpath_var=no
6791 ;;
6792
6793 sysv4.3*)
6794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 hardcode_shlibpath_var=no
6796 export_dynamic_flag_spec='-Bexport'
6797 ;;
6798
6799 sysv4*MP*)
6800 if test -d /usr/nec; then
6801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6802 hardcode_shlibpath_var=no
6803 runpath_var=LD_RUN_PATH
6804 hardcode_runpath_var=yes
6805 ld_shlibs=yes
6806 fi
6807 ;;
6808
6809 sysv4.2uw2*)
6810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6811 hardcode_direct=yes
6812 hardcode_minus_L=no
6813 hardcode_shlibpath_var=no
6814 hardcode_runpath_var=yes
6815 runpath_var=LD_RUN_PATH
6816 ;;
6817
6818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6819 no_undefined_flag='${wl}-z ${wl}text'
6820 if test "$GCC" = yes; then
6821 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6822 else
6823 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 fi
6825 runpath_var='LD_RUN_PATH'
6826 hardcode_shlibpath_var=no
6827 ;;
6828
6829 sysv5*)
6830 no_undefined_flag=' -z text'
6831 # $CC -shared without GNU ld will not create a library from C++
6832 # object files and a static libstdc++, better avoid it by now
6833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6836 hardcode_libdir_flag_spec=
6837 hardcode_shlibpath_var=no
6838 runpath_var='LD_RUN_PATH'
6839 ;;
6840
6841 uts4*)
6842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843 hardcode_libdir_flag_spec='-L$libdir'
6844 hardcode_shlibpath_var=no
6845 ;;
6846
6847 *)
6848 ld_shlibs=no
6849 ;;
6850 esac
6851 fi
6852
John Criswell7a73b802003-06-30 21:59:07 +00006853echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6854echo "${ECHO_T}$ld_shlibs" >&6
6855test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006856
John Criswell47fdd832003-07-14 16:52:07 +00006857variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6858if test "$GCC" = yes; then
6859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6860fi
6861
6862#
6863# Do we need to explicitly link libc?
6864#
6865case "x$archive_cmds_need_lc" in
6866x|xyes)
6867 # Assume -lc should be added
6868 archive_cmds_need_lc=yes
6869
6870 if test "$enable_shared" = yes && test "$GCC" = yes; then
6871 case $archive_cmds in
6872 *'~'*)
6873 # FIXME: we may have to deal with multi-command sequences.
6874 ;;
6875 '$CC '*)
6876 # Test whether the compiler implicitly links with -lc since on some
6877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6878 # to ld, don't add -lc before -lgcc.
6879 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6880echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6881 $rm conftest*
6882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6883
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } 2>conftest.err; then
6889 soname=conftest
6890 lib=conftest
6891 libobjs=conftest.$ac_objext
6892 deplibs=
6893 wl=$lt_prog_compiler_wl
6894 compiler_flags=-v
6895 linker_flags=-v
6896 verstring=
6897 output_objdir=.
6898 libname=conftest
6899 lt_save_allow_undefined_flag=$allow_undefined_flag
6900 allow_undefined_flag=
6901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6902 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }
6906 then
6907 archive_cmds_need_lc=no
6908 else
6909 archive_cmds_need_lc=yes
6910 fi
6911 allow_undefined_flag=$lt_save_allow_undefined_flag
6912 else
6913 cat conftest.err 1>&5
6914 fi
6915 $rm conftest*
6916 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6917echo "${ECHO_T}$archive_cmds_need_lc" >&6
6918 ;;
6919 esac
6920 fi
6921 ;;
6922esac
6923
John Criswell7a73b802003-06-30 21:59:07 +00006924echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6925echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6926hardcode_action=
6927if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00006928 test -n "$runpath_var " || \
6929 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00006930
6931 # We can hardcode non-existant directories.
6932 if test "$hardcode_direct" != no &&
6933 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6934 # have to relink, otherwise we might link with an installed library
6935 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00006936 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00006937 test "$hardcode_minus_L" != no; then
6938 # Linking always hardcodes the temporary library directory.
6939 hardcode_action=relink
6940 else
6941 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6942 hardcode_action=immediate
6943 fi
6944else
6945 # We cannot hardcode anything, or else we can only hardcode existing
6946 # directories.
6947 hardcode_action=unsupported
6948fi
6949echo "$as_me:$LINENO: result: $hardcode_action" >&5
6950echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006951
John Criswell47fdd832003-07-14 16:52:07 +00006952if test "$hardcode_action" = relink; then
6953 # Fast installation is not supported
6954 enable_fast_install=no
6955elif test "$shlibpath_overrides_runpath" = yes ||
6956 test "$enable_shared" = no; then
6957 # Fast installation is not necessary
6958 enable_fast_install=needless
6959fi
6960
John Criswell7a73b802003-06-30 21:59:07 +00006961striplib=
6962old_striplib=
6963echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6964echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6965if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970else
John Criswell47fdd832003-07-14 16:52:07 +00006971# FIXME - insert some real tests, host_os isn't really good enough
6972 case $host_os in
6973 darwin*)
6974 if test -n "$STRIP" ; then
6975 striplib="$STRIP -x"
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
6978 else
John Criswell7a73b802003-06-30 21:59:07 +00006979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981fi
John Criswell47fdd832003-07-14 16:52:07 +00006982 ;;
6983 *)
6984 echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
6986 ;;
6987 esac
6988fi
John Criswell7a73b802003-06-30 21:59:07 +00006989
John Criswell7a73b802003-06-30 21:59:07 +00006990echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6991echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6992library_names_spec=
6993libname_spec='lib$name'
6994soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00006995shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00006996postinstall_cmds=
6997postuninstall_cmds=
6998finish_cmds=
6999finish_eval=
7000shlibpath_var=
7001shlibpath_overrides_runpath=unknown
7002version_type=none
7003dynamic_linker="$host_os ld.so"
7004sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007005if test "$GCC" = yes; then
7006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7007 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7008 # if the path contains ";" then we assume it to be the separator
7009 # otherwise default to the standard path separator (i.e. ":") - it is
7010 # assumed that no part of a normal pathname contains ";" but that should
7011 # okay in the real world where ";" in dirpaths is itself problematic.
7012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7013 else
7014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7015 fi
7016else
7017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7018fi
7019need_lib_prefix=unknown
7020hardcode_into_libs=no
7021
7022# when you set need_version to no, make sure it does not cause -set_version
7023# flags to be left without arguments
7024need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007025
7026case $host_os in
7027aix3*)
7028 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007030 shlibpath_var=LIBPATH
7031
John Criswell47fdd832003-07-14 16:52:07 +00007032 # AIX 3 has no versioning support, so we append a major version to the name.
7033 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007034 ;;
7035
7036aix4* | aix5*)
7037 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007038 need_lib_prefix=no
7039 need_version=no
7040 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007041 if test "$host_cpu" = ia64; then
7042 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007044 shlibpath_var=LD_LIBRARY_PATH
7045 else
7046 # With GCC up to 2.95.x, collect2 would create an import file
7047 # for dependence libraries. The import file would start with
7048 # the line `#! .'. This would cause the generated library to
7049 # depend on `.', always an invalid library. This was fixed in
7050 # development snapshots of GCC prior to 3.0.
7051 case $host_os in
7052 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7054 echo ' yes '
7055 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7056 :
7057 else
7058 can_build_shared=no
7059 fi
7060 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007061 esac
John Criswell47fdd832003-07-14 16:52:07 +00007062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7063 # soname into executable. Probably we can add versioning support to
7064 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007065 if test "$aix_use_runtimelinking" = yes; then
7066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7067 # instead of lib<name>.a to let people know that these are not
7068 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007070 else
7071 # We preserve .a as extension for shared libraries through AIX4.2
7072 # and later when we are not doing run time linking.
7073 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007074 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007075 fi
7076 shlibpath_var=LIBPATH
7077 fi
7078 ;;
7079
7080amigaos*)
7081 library_names_spec='$libname.ixlibrary $libname.a'
7082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7083 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'
7084 ;;
7085
7086beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007087 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007088 dynamic_linker="$host_os ld.so"
7089 shlibpath_var=LIBRARY_PATH
7090 ;;
7091
7092bsdi4*)
7093 version_type=linux
7094 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7096 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007101 # the default ld.so.conf also contains /usr/contrib/lib and
7102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7103 # libtool to hard-code these into programs
7104 ;;
7105
7106cygwin* | mingw* | pw32*)
7107 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007108 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007109 need_version=no
7110 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007111
John Criswell7a73b802003-06-30 21:59:07 +00007112 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007113 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007114 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7116 postinstall_cmds='base_file=`basename \${file}`~
7117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007118 dldir=$destdir/`dirname \$dlpath`~
7119 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007120 $install_prog $dir/$dlname \$dldir/$dlname'
7121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007122 dlpath=$dir/\$dldll~
7123 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007124 shlibpath_overrides_runpath=yes
7125
7126 case $host_os in
7127 cygwin*)
7128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7130 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7131 ;;
7132 mingw*)
7133 # MinGW DLLs use traditional 'lib' prefix
7134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7137 # It is most probably a Windows format PATH printed by
7138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7139 # path with ; separators, and with drive letters. We can handle the
7140 # drive letters (cygwin fileutils understands them), so leave them,
7141 # especially as we might pass files found there to a mingw objdump,
7142 # which wouldn't understand a cygwinified path. Ahh.
7143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7144 else
7145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7146 fi
7147 ;;
7148 pw32*)
7149 # pw32 DLLs use 'pw' prefix rather than 'lib'
7150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7151 ;;
7152 esac
John Criswell7a73b802003-06-30 21:59:07 +00007153 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007154
John Criswell7a73b802003-06-30 21:59:07 +00007155 *)
John Criswell47fdd832003-07-14 16:52:07 +00007156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007157 ;;
7158 esac
7159 dynamic_linker='Win32 ld.exe'
7160 # FIXME: first we should search . and the directory the executable is in
7161 shlibpath_var=PATH
7162 ;;
7163
7164darwin* | rhapsody*)
7165 dynamic_linker="$host_os dyld"
7166 version_type=darwin
7167 need_lib_prefix=no
7168 need_version=no
7169 # FIXME: Relying on posixy $() will cause problems for
7170 # cross-compilation, but unfortunately the echo tests do not
7171 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7173 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007174 shlibpath_overrides_runpath=yes
7175 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007176 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7178 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7179 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"`
7180 fi
7181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7182 ;;
7183
7184dgux*)
7185 version_type=linux
7186 need_lib_prefix=no
7187 need_version=no
7188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7189 soname_spec='${libname}${release}${shared_ext}$major'
7190 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007191 ;;
7192
7193freebsd1*)
7194 dynamic_linker=no
7195 ;;
7196
7197freebsd*)
7198 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7199 version_type=freebsd-$objformat
7200 case $version_type in
7201 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007203 need_version=no
7204 need_lib_prefix=no
7205 ;;
7206 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007208 need_version=yes
7209 ;;
7210 esac
7211 shlibpath_var=LD_LIBRARY_PATH
7212 case $host_os in
7213 freebsd2*)
7214 shlibpath_overrides_runpath=yes
7215 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007216 freebsd3.01* | freebsdelf3.01*)
7217 shlibpath_overrides_runpath=yes
7218 hardcode_into_libs=yes
7219 ;;
7220 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007221 shlibpath_overrides_runpath=no
7222 hardcode_into_libs=yes
7223 ;;
7224 esac
7225 ;;
7226
7227gnu*)
7228 version_type=linux
7229 need_lib_prefix=no
7230 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7232 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007233 shlibpath_var=LD_LIBRARY_PATH
7234 hardcode_into_libs=yes
7235 ;;
7236
7237hpux9* | hpux10* | hpux11*)
7238 # Give a soname corresponding to the major version so that dld.sl refuses to
7239 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007240 version_type=sunos
7241 need_lib_prefix=no
7242 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007243 case "$host_cpu" in
7244 ia64*)
7245 shrext='.so'
7246 hardcode_into_libs=yes
7247 dynamic_linker="$host_os dld.so"
7248 shlibpath_var=LD_LIBRARY_PATH
7249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251 soname_spec='${libname}${release}${shared_ext}$major'
7252 if test "X$HPUX_IA64_MODE" = X32; then
7253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7254 else
7255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7256 fi
7257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7258 ;;
7259 hppa*64*)
7260 shrext='.sl'
7261 hardcode_into_libs=yes
7262 dynamic_linker="$host_os dld.sl"
7263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7266 soname_spec='${libname}${release}${shared_ext}$major'
7267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7269 ;;
7270 *)
7271 shrext='.sl'
7272 dynamic_linker="$host_os dld.sl"
7273 shlibpath_var=SHLIB_PATH
7274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276 soname_spec='${libname}${release}${shared_ext}$major'
7277 ;;
7278 esac
John Criswell7a73b802003-06-30 21:59:07 +00007279 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7280 postinstall_cmds='chmod 555 $lib'
7281 ;;
7282
John Criswell47fdd832003-07-14 16:52:07 +00007283irix5* | irix6* | nonstopux*)
7284 case $host_os in
7285 nonstopux*) version_type=nonstopux ;;
7286 *)
7287 if test "$lt_cv_prog_gnu_ld" = yes; then
7288 version_type=linux
7289 else
7290 version_type=irix
7291 fi ;;
7292 esac
John Criswell7a73b802003-06-30 21:59:07 +00007293 need_lib_prefix=no
7294 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007295 soname_spec='${libname}${release}${shared_ext}$major'
7296 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 +00007297 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007298 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007299 libsuff= shlibsuff=
7300 ;;
7301 *)
7302 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7304 libsuff= shlibsuff= libmagic=32-bit;;
7305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7306 libsuff=32 shlibsuff=N32 libmagic=N32;;
7307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007309 *) libsuff= shlibsuff= libmagic=never-match;;
7310 esac
7311 ;;
7312 esac
7313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7314 shlibpath_overrides_runpath=no
7315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007317 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007318 ;;
7319
7320# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007321linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007322 dynamic_linker=no
7323 ;;
7324
7325# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007326linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007327 version_type=linux
7328 need_lib_prefix=no
7329 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7331 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7333 shlibpath_var=LD_LIBRARY_PATH
7334 shlibpath_overrides_runpath=no
7335 # This implies no fast_install, which is unacceptable.
7336 # Some rework will be needed to allow for fast_install
7337 # before this can be enabled.
7338 hardcode_into_libs=yes
7339
7340 # We used to test for /lib/ld.so.1 and disable shared libraries on
7341 # powerpc, because MkLinux only supported shared libraries with the
7342 # GNU dynamic linker. Since this was broken with cross compilers,
7343 # most powerpc-linux boxes support dynamic linking these days and
7344 # people can always --disable-shared, the test was removed, and we
7345 # assume the GNU/Linux dynamic linker is in use.
7346 dynamic_linker='GNU/Linux ld.so'
7347 ;;
7348
7349netbsd*)
7350 version_type=sunos
7351 need_lib_prefix=no
7352 need_version=no
7353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7356 dynamic_linker='NetBSD (a.out) ld.so'
7357 else
John Criswell47fdd832003-07-14 16:52:07 +00007358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7359 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007360 dynamic_linker='NetBSD ld.elf_so'
7361 fi
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7364 hardcode_into_libs=yes
7365 ;;
7366
7367newsos6)
7368 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 shlibpath_var=LD_LIBRARY_PATH
7371 shlibpath_overrides_runpath=yes
7372 ;;
7373
7374nto-qnx)
7375 version_type=linux
7376 need_lib_prefix=no
7377 need_version=no
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007380 shlibpath_var=LD_LIBRARY_PATH
7381 shlibpath_overrides_runpath=yes
7382 ;;
7383
7384openbsd*)
7385 version_type=sunos
7386 need_lib_prefix=no
7387 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7390 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007391 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 +00007392 case $host_os in
7393 openbsd2.[89] | openbsd2.[89].*)
7394 shlibpath_overrides_runpath=no
7395 ;;
7396 *)
7397 shlibpath_overrides_runpath=yes
7398 ;;
7399 esac
John Criswell7a73b802003-06-30 21:59:07 +00007400 else
7401 shlibpath_overrides_runpath=yes
7402 fi
John Criswell7a73b802003-06-30 21:59:07 +00007403 ;;
7404
7405os2*)
7406 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007407 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007408 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007409 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007410 dynamic_linker='OS/2 ld.exe'
7411 shlibpath_var=LIBPATH
7412 ;;
7413
7414osf3* | osf4* | osf5*)
7415 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007416 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007417 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007418 soname_spec='${libname}${release}${shared_ext}$major'
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007420 shlibpath_var=LD_LIBRARY_PATH
7421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7423 ;;
7424
7425sco3.2v5*)
7426 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007427 soname_spec='${libname}${release}${shared_ext}$major'
7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007429 shlibpath_var=LD_LIBRARY_PATH
7430 ;;
7431
7432solaris*)
7433 version_type=linux
7434 need_lib_prefix=no
7435 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7437 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007438 shlibpath_var=LD_LIBRARY_PATH
7439 shlibpath_overrides_runpath=yes
7440 hardcode_into_libs=yes
7441 # ldd complains unless libraries are executable
7442 postinstall_cmds='chmod +x $lib'
7443 ;;
7444
7445sunos4*)
7446 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7449 shlibpath_var=LD_LIBRARY_PATH
7450 shlibpath_overrides_runpath=yes
7451 if test "$with_gnu_ld" = yes; then
7452 need_lib_prefix=no
7453 fi
7454 need_version=yes
7455 ;;
7456
7457sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7458 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007461 shlibpath_var=LD_LIBRARY_PATH
7462 case $host_vendor in
7463 sni)
7464 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007465 need_lib_prefix=no
7466 export_dynamic_flag_spec='${wl}-Blargedynsym'
7467 runpath_var=LD_RUN_PATH
7468 ;;
7469 siemens)
7470 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007471 ;;
7472 motorola)
7473 need_lib_prefix=no
7474 need_version=no
7475 shlibpath_overrides_runpath=no
7476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7477 ;;
7478 esac
7479 ;;
7480
John Criswell7a73b802003-06-30 21:59:07 +00007481sysv4*MP*)
7482 if test -d /usr/nec ;then
7483 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7485 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007486 shlibpath_var=LD_LIBRARY_PATH
7487 fi
7488 ;;
7489
John Criswell47fdd832003-07-14 16:52:07 +00007490uts4*)
7491 version_type=linux
7492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493 soname_spec='${libname}${release}${shared_ext}$major'
7494 shlibpath_var=LD_LIBRARY_PATH
7495 ;;
7496
John Criswell7a73b802003-06-30 21:59:07 +00007497*)
7498 dynamic_linker=no
7499 ;;
7500esac
7501echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7502echo "${ECHO_T}$dynamic_linker" >&6
7503test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007504
7505if test "x$enable_dlopen" != xyes; then
7506 enable_dlopen=unknown
7507 enable_dlopen_self=unknown
7508 enable_dlopen_self_static=unknown
7509else
7510 lt_cv_dlopen=no
7511 lt_cv_dlopen_libs=
7512
7513 case $host_os in
7514 beos*)
7515 lt_cv_dlopen="load_add_on"
7516 lt_cv_dlopen_libs=
7517 lt_cv_dlopen_self=yes
7518 ;;
7519
John Criswell47fdd832003-07-14 16:52:07 +00007520 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007521 lt_cv_dlopen="LoadLibrary"
7522 lt_cv_dlopen_libs=
7523 ;;
7524
John Criswell47fdd832003-07-14 16:52:07 +00007525 cygwin*)
7526 lt_cv_dlopen="dlopen"
7527 lt_cv_dlopen_libs=
7528 ;;
7529
7530 darwin*)
7531 # if libdl is installed we need to link against it
7532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7533echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7534if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 ac_check_lib_save_LIBS=$LIBS
7538LIBS="-ldl $LIBS"
7539cat >conftest.$ac_ext <<_ACEOF
7540#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007541/* confdefs.h. */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007546
7547/* Override any gcc2 internal prototype to avoid an error. */
7548#ifdef __cplusplus
7549extern "C"
7550#endif
7551/* We use char because int might match the return type of a gcc2
7552 builtin and then its argument prototype would still apply. */
7553char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007554int
7555main ()
7556{
7557dlopen ();
7558 ;
7559 return 0;
7560}
7561_ACEOF
7562rm -f conftest.$ac_objext conftest$ac_exeext
7563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 ac_cv_lib_dl_dlopen=yes
7575else
7576 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007577sed 's/^/| /' conftest.$ac_ext >&5
7578
John Criswell47fdd832003-07-14 16:52:07 +00007579ac_cv_lib_dl_dlopen=no
7580fi
7581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7582LIBS=$ac_check_lib_save_LIBS
7583fi
7584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7585echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7586if test $ac_cv_lib_dl_dlopen = yes; then
7587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7588else
7589
7590 lt_cv_dlopen="dyld"
7591 lt_cv_dlopen_libs=
7592 lt_cv_dlopen_self=yes
7593
7594fi
7595
7596 ;;
7597
John Criswell7a73b802003-06-30 21:59:07 +00007598 *)
7599 echo "$as_me:$LINENO: checking for shl_load" >&5
7600echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7601if test "${ac_cv_func_shl_load+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 cat >conftest.$ac_ext <<_ACEOF
7605#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007611/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007612 which can conflict with char shl_load (); below.
7613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614 <limits.h> exists even on freestanding compilers. */
7615#ifdef __STDC__
7616# include <limits.h>
7617#else
7618# include <assert.h>
7619#endif
John Criswell7a73b802003-06-30 21:59:07 +00007620/* Override any gcc2 internal prototype to avoid an error. */
7621#ifdef __cplusplus
7622extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007623{
John Criswell7a73b802003-06-30 21:59:07 +00007624#endif
7625/* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007628/* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631#if defined (__stub_shl_load) || defined (__stub___shl_load)
7632choke me
7633#else
John Criswell392aaa32003-07-22 19:18:09 +00007634char (*f) () = shl_load;
7635#endif
7636#ifdef __cplusplus
7637}
John Criswell7a73b802003-06-30 21:59:07 +00007638#endif
7639
John Criswell392aaa32003-07-22 19:18:09 +00007640int
7641main ()
7642{
7643return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007644 ;
7645 return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext conftest$ac_exeext
7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -s conftest$ac_exeext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 ac_cv_func_shl_load=yes
7661else
7662 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007663sed 's/^/| /' conftest.$ac_ext >&5
7664
John Criswell7a73b802003-06-30 21:59:07 +00007665ac_cv_func_shl_load=no
7666fi
7667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7668fi
7669echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7670echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7671if test $ac_cv_func_shl_load = yes; then
7672 lt_cv_dlopen="shl_load"
7673else
7674 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7675echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7676if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679 ac_check_lib_save_LIBS=$LIBS
7680LIBS="-ldld $LIBS"
7681cat >conftest.$ac_ext <<_ACEOF
7682#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007683/* confdefs.h. */
7684_ACEOF
7685cat confdefs.h >>conftest.$ac_ext
7686cat >>conftest.$ac_ext <<_ACEOF
7687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007688
7689/* Override any gcc2 internal prototype to avoid an error. */
7690#ifdef __cplusplus
7691extern "C"
7692#endif
7693/* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007696int
7697main ()
7698{
7699shl_load ();
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_lib_dld_shl_load=yes
7717else
7718 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007719sed 's/^/| /' conftest.$ac_ext >&5
7720
John Criswell7a73b802003-06-30 21:59:07 +00007721ac_cv_lib_dld_shl_load=no
7722fi
7723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724LIBS=$ac_check_lib_save_LIBS
7725fi
7726echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7727echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7728if test $ac_cv_lib_dld_shl_load = yes; then
7729 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7730else
7731 echo "$as_me:$LINENO: checking for dlopen" >&5
7732echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7733if test "${ac_cv_func_dlopen+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 cat >conftest.$ac_ext <<_ACEOF
7737#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007738/* confdefs.h. */
7739_ACEOF
7740cat confdefs.h >>conftest.$ac_ext
7741cat >>conftest.$ac_ext <<_ACEOF
7742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007743/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007744 which can conflict with char dlopen (); below.
7745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746 <limits.h> exists even on freestanding compilers. */
7747#ifdef __STDC__
7748# include <limits.h>
7749#else
7750# include <assert.h>
7751#endif
John Criswell7a73b802003-06-30 21:59:07 +00007752/* Override any gcc2 internal prototype to avoid an error. */
7753#ifdef __cplusplus
7754extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007755{
John Criswell7a73b802003-06-30 21:59:07 +00007756#endif
7757/* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007760/* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763#if defined (__stub_dlopen) || defined (__stub___dlopen)
7764choke me
7765#else
John Criswell392aaa32003-07-22 19:18:09 +00007766char (*f) () = dlopen;
7767#endif
7768#ifdef __cplusplus
7769}
John Criswell7a73b802003-06-30 21:59:07 +00007770#endif
7771
John Criswell392aaa32003-07-22 19:18:09 +00007772int
7773main ()
7774{
7775return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext conftest$ac_exeext
7781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_func_dlopen=yes
7793else
7794 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007795sed 's/^/| /' conftest.$ac_ext >&5
7796
John Criswell7a73b802003-06-30 21:59:07 +00007797ac_cv_func_dlopen=no
7798fi
7799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800fi
7801echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7802echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7803if test $ac_cv_func_dlopen = yes; then
7804 lt_cv_dlopen="dlopen"
7805else
7806 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7807echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7808if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811 ac_check_lib_save_LIBS=$LIBS
7812LIBS="-ldl $LIBS"
7813cat >conftest.$ac_ext <<_ACEOF
7814#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
7819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007820
7821/* Override any gcc2 internal prototype to avoid an error. */
7822#ifdef __cplusplus
7823extern "C"
7824#endif
7825/* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7827char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007828int
7829main ()
7830{
7831dlopen ();
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_dl_dlopen=yes
7849else
7850 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007851sed 's/^/| /' conftest.$ac_ext >&5
7852
John Criswell7a73b802003-06-30 21:59:07 +00007853ac_cv_lib_dl_dlopen=no
7854fi
7855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856LIBS=$ac_check_lib_save_LIBS
7857fi
7858echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7859echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7860if test $ac_cv_lib_dl_dlopen = yes; then
7861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7862else
7863 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7864echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7865if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868 ac_check_lib_save_LIBS=$LIBS
7869LIBS="-lsvld $LIBS"
7870cat >conftest.$ac_ext <<_ACEOF
7871#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007872/* confdefs.h. */
7873_ACEOF
7874cat confdefs.h >>conftest.$ac_ext
7875cat >>conftest.$ac_ext <<_ACEOF
7876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007877
7878/* Override any gcc2 internal prototype to avoid an error. */
7879#ifdef __cplusplus
7880extern "C"
7881#endif
7882/* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007885int
7886main ()
7887{
7888dlopen ();
7889 ;
7890 return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext conftest$ac_exeext
7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_svld_dlopen=yes
7906else
7907 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007908sed 's/^/| /' conftest.$ac_ext >&5
7909
John Criswell7a73b802003-06-30 21:59:07 +00007910ac_cv_lib_svld_dlopen=no
7911fi
7912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913LIBS=$ac_check_lib_save_LIBS
7914fi
7915echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7916echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7917if test $ac_cv_lib_svld_dlopen = yes; then
7918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7919else
7920 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7921echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7922if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 ac_check_lib_save_LIBS=$LIBS
7926LIBS="-ldld $LIBS"
7927cat >conftest.$ac_ext <<_ACEOF
7928#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007934
7935/* Override any gcc2 internal prototype to avoid an error. */
7936#ifdef __cplusplus
7937extern "C"
7938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00007942int
7943main ()
7944{
7945dld_link ();
7946 ;
7947 return 0;
7948}
7949_ACEOF
7950rm -f conftest.$ac_objext conftest$ac_exeext
7951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952 (eval $ac_link) 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -s conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_lib_dld_dld_link=yes
7963else
7964 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007965sed 's/^/| /' conftest.$ac_ext >&5
7966
John Criswell7a73b802003-06-30 21:59:07 +00007967ac_cv_lib_dld_dld_link=no
7968fi
7969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970LIBS=$ac_check_lib_save_LIBS
7971fi
7972echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974if test $ac_cv_lib_dld_dld_link = yes; then
7975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7976fi
7977
7978
7979fi
7980
7981
7982fi
7983
7984
7985fi
7986
7987
7988fi
7989
7990
7991fi
7992
7993 ;;
7994 esac
7995
7996 if test "x$lt_cv_dlopen" != xno; then
7997 enable_dlopen=yes
7998 else
7999 enable_dlopen=no
8000 fi
8001
8002 case $lt_cv_dlopen in
8003 dlopen)
8004 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008006
8007 save_LDFLAGS="$LDFLAGS"
8008 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8009
8010 save_LIBS="$LIBS"
8011 LIBS="$lt_cv_dlopen_libs $LIBS"
8012
8013 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8014echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8015if test "${lt_cv_dlopen_self+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 if test "$cross_compiling" = yes; then :
8019 lt_cv_dlopen_self=cross
8020else
John Criswell47fdd832003-07-14 16:52:07 +00008021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008022 lt_status=$lt_dlunknown
8023 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +00008024#line 8024 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008025#include "confdefs.h"
8026
8027#if HAVE_DLFCN_H
8028#include <dlfcn.h>
8029#endif
8030
8031#include <stdio.h>
8032
8033#ifdef RTLD_GLOBAL
8034# define LT_DLGLOBAL RTLD_GLOBAL
8035#else
8036# ifdef DL_GLOBAL
8037# define LT_DLGLOBAL DL_GLOBAL
8038# else
8039# define LT_DLGLOBAL 0
8040# endif
8041#endif
8042
8043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8044 find out it does not work in some platform. */
8045#ifndef LT_DLLAZY_OR_NOW
8046# ifdef RTLD_LAZY
8047# define LT_DLLAZY_OR_NOW RTLD_LAZY
8048# else
8049# ifdef DL_LAZY
8050# define LT_DLLAZY_OR_NOW DL_LAZY
8051# else
8052# ifdef RTLD_NOW
8053# define LT_DLLAZY_OR_NOW RTLD_NOW
8054# else
8055# ifdef DL_NOW
8056# define LT_DLLAZY_OR_NOW DL_NOW
8057# else
8058# define LT_DLLAZY_OR_NOW 0
8059# endif
8060# endif
8061# endif
8062# endif
8063#endif
8064
8065#ifdef __cplusplus
8066extern "C" void exit (int);
8067#endif
8068
8069void fnord() { int i=42;}
8070int main ()
8071{
8072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8073 int status = $lt_dlunknown;
8074
8075 if (self)
8076 {
8077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8078 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8079 /* dlclose (self); */
8080 }
8081
8082 exit (status);
8083}
8084EOF
8085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8090 (./conftest; exit; ) 2>/dev/null
8091 lt_status=$?
8092 case x$lt_status in
8093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8095 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8096 esac
8097 else :
8098 # compilation failed
8099 lt_cv_dlopen_self=no
8100 fi
8101fi
8102rm -fr conftest*
8103
8104
8105fi
8106echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8107echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8108
8109 if test "x$lt_cv_dlopen_self" = xyes; then
8110 LDFLAGS="$LDFLAGS $link_static_flag"
8111 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8112echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8113if test "${lt_cv_dlopen_self_static+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116 if test "$cross_compiling" = yes; then :
8117 lt_cv_dlopen_self_static=cross
8118else
John Criswell47fdd832003-07-14 16:52:07 +00008119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008120 lt_status=$lt_dlunknown
8121 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +00008122#line 8122 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008123#include "confdefs.h"
8124
8125#if HAVE_DLFCN_H
8126#include <dlfcn.h>
8127#endif
8128
8129#include <stdio.h>
8130
8131#ifdef RTLD_GLOBAL
8132# define LT_DLGLOBAL RTLD_GLOBAL
8133#else
8134# ifdef DL_GLOBAL
8135# define LT_DLGLOBAL DL_GLOBAL
8136# else
8137# define LT_DLGLOBAL 0
8138# endif
8139#endif
8140
8141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8142 find out it does not work in some platform. */
8143#ifndef LT_DLLAZY_OR_NOW
8144# ifdef RTLD_LAZY
8145# define LT_DLLAZY_OR_NOW RTLD_LAZY
8146# else
8147# ifdef DL_LAZY
8148# define LT_DLLAZY_OR_NOW DL_LAZY
8149# else
8150# ifdef RTLD_NOW
8151# define LT_DLLAZY_OR_NOW RTLD_NOW
8152# else
8153# ifdef DL_NOW
8154# define LT_DLLAZY_OR_NOW DL_NOW
8155# else
8156# define LT_DLLAZY_OR_NOW 0
8157# endif
8158# endif
8159# endif
8160# endif
8161#endif
8162
8163#ifdef __cplusplus
8164extern "C" void exit (int);
8165#endif
8166
8167void fnord() { int i=42;}
8168int main ()
8169{
8170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8171 int status = $lt_dlunknown;
8172
8173 if (self)
8174 {
8175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8176 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8177 /* dlclose (self); */
8178 }
8179
8180 exit (status);
8181}
8182EOF
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8188 (./conftest; exit; ) 2>/dev/null
8189 lt_status=$?
8190 case x$lt_status in
8191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8193 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8194 esac
8195 else :
8196 # compilation failed
8197 lt_cv_dlopen_self_static=no
8198 fi
8199fi
8200rm -fr conftest*
8201
8202
8203fi
8204echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8205echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8206 fi
8207
8208 CPPFLAGS="$save_CPPFLAGS"
8209 LDFLAGS="$save_LDFLAGS"
8210 LIBS="$save_LIBS"
8211 ;;
8212 esac
8213
8214 case $lt_cv_dlopen_self in
8215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8216 *) enable_dlopen_self=unknown ;;
8217 esac
8218
8219 case $lt_cv_dlopen_self_static in
8220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8221 *) enable_dlopen_self_static=unknown ;;
8222 esac
8223fi
8224
8225
John Criswell47fdd832003-07-14 16:52:07 +00008226# Report which librarie types wil actually be built
8227echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8228echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8229echo "$as_me:$LINENO: result: $can_build_shared" >&5
8230echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008231
John Criswell47fdd832003-07-14 16:52:07 +00008232echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8233echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8234test "$can_build_shared" = "no" && enable_shared=no
8235
8236# On AIX, shared libraries and static libraries use the same namespace, and
8237# are all built from PIC.
8238case "$host_os" in
8239aix3*)
8240 test "$enable_shared" = yes && enable_static=no
8241 if test -n "$RANLIB"; then
8242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8243 postinstall_cmds='$RANLIB $lib'
8244 fi
8245 ;;
8246
8247aix4*)
8248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8249 test "$enable_shared" = yes && enable_static=no
8250 fi
8251 ;;
8252 darwin* | rhapsody*)
8253 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8254 archive_cmds_need_lc=no
8255 case "$host_os" in
8256 rhapsody* | darwin1.[012])
8257 allow_undefined_flag='-undefined suppress'
8258 ;;
8259 *) # Darwin 1.3 on
8260 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8261 ;;
8262 esac
8263 # FIXME: Relying on posixy $() will cause problems for
8264 # cross-compilation, but unfortunately the echo tests do not
8265 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8266 # `"' quotes if we put them in here... so don't!
8267 output_verbose_link_cmd='echo'
8268 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8269 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8271 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}'
8272 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}'
8273 hardcode_direct=no
8274 hardcode_automatic=yes
8275 hardcode_shlibpath_var=unsupported
8276 whole_archive_flag_spec='-all_load $convenience'
8277 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008278 fi
John Criswell7a73b802003-06-30 21:59:07 +00008279 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008280esac
8281echo "$as_me:$LINENO: result: $enable_shared" >&5
8282echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008283
John Criswell47fdd832003-07-14 16:52:07 +00008284echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8285echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8286# Make sure either enable_shared or enable_static is yes.
8287test "$enable_shared" = yes || enable_static=yes
8288echo "$as_me:$LINENO: result: $enable_static" >&5
8289echo "${ECHO_T}$enable_static" >&6
8290
8291# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008292# libtool distribution, otherwise you forgot to ship ltmain.sh
8293# with your package, and you will get complaints that there are
8294# no rules to generate ltmain.sh.
8295if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008296 # See if we are running on zsh, and set the options which allow our commands through
8297 # without removal of \ escapes.
8298 if test -n "${ZSH_VERSION+set}" ; then
8299 setopt NO_GLOB_SUBST
8300 fi
John Criswell7a73b802003-06-30 21:59:07 +00008301 # Now quote all the things that may contain metacharacters while being
8302 # careful not to overquote the AC_SUBSTed values. We take copies of the
8303 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8307 deplibs_check_method reload_flag reload_cmds need_locks \
8308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8309 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008311 old_postinstall_cmds old_postuninstall_cmds \
8312 compiler \
8313 CC \
8314 LD \
8315 lt_prog_compiler_wl \
8316 lt_prog_compiler_pic \
8317 lt_prog_compiler_static \
8318 lt_prog_compiler_no_builtin_flag \
8319 export_dynamic_flag_spec \
8320 thread_safe_flag_spec \
8321 whole_archive_flag_spec \
8322 enable_shared_with_static_runtimes \
8323 old_archive_cmds \
8324 old_archive_from_new_cmds \
8325 predep_objects \
8326 postdep_objects \
8327 predeps \
8328 postdeps \
8329 compiler_lib_search_path \
8330 archive_cmds \
8331 archive_expsym_cmds \
8332 postinstall_cmds \
8333 postuninstall_cmds \
8334 old_archive_from_expsyms_cmds \
8335 allow_undefined_flag \
8336 no_undefined_flag \
8337 export_symbols_cmds \
8338 hardcode_libdir_flag_spec \
8339 hardcode_libdir_flag_spec_ld \
8340 hardcode_libdir_separator \
8341 hardcode_automatic \
8342 module_cmds \
8343 module_expsym_cmds \
8344 lt_cv_prog_compiler_c_o \
8345 exclude_expsyms \
8346 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008347
8348 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008349 old_archive_cmds | \
8350 old_archive_from_new_cmds | \
8351 archive_cmds | \
8352 archive_expsym_cmds | \
8353 module_cmds | \
8354 module_expsym_cmds | \
8355 old_archive_from_expsyms_cmds | \
8356 export_symbols_cmds | \
8357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008358 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008359 old_postinstall_cmds | old_postuninstall_cmds | \
8360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008361 # Double-quote double-evaled strings.
8362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8363 ;;
8364 *)
8365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8366 ;;
8367 esac
8368 done
8369
John Criswell47fdd832003-07-14 16:52:07 +00008370 case $lt_echo in
8371 *'\$0 --fallback-echo"')
8372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8373 ;;
8374 esac
8375
8376cfgfile="${ofile}T"
8377 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8378 $rm -f "$cfgfile"
8379 { echo "$as_me:$LINENO: creating $ofile" >&5
8380echo "$as_me: creating $ofile" >&6;}
8381
8382 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008383#! $SHELL
8384
John Criswell47fdd832003-07-14 16:52:07 +00008385# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008386# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8387# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8388#
John Criswell47fdd832003-07-14 16:52:07 +00008389# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8390# Free Software Foundation, Inc.
8391#
8392# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008393# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8394#
8395# This program is free software; you can redistribute it and/or modify
8396# it under the terms of the GNU General Public License as published by
8397# the Free Software Foundation; either version 2 of the License, or
8398# (at your option) any later version.
8399#
8400# This program is distributed in the hope that it will be useful, but
8401# WITHOUT ANY WARRANTY; without even the implied warranty of
8402# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8403# General Public License for more details.
8404#
8405# You should have received a copy of the GNU General Public License
8406# along with this program; if not, write to the Free Software
8407# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8408#
8409# As a special exception to the GNU General Public License, if you
8410# distribute this file as part of a program that contains a
8411# configuration script generated by Autoconf, you may include it under
8412# the same distribution terms that you use for the rest of that program.
8413
John Criswell47fdd832003-07-14 16:52:07 +00008414# A sed program that does not truncate output.
8415SED=$lt_SED
8416
John Criswell7a73b802003-06-30 21:59:07 +00008417# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008418Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008419
8420# The HP-UX ksh and POSIX shell print the target directory to stdout
8421# if CDPATH is set.
8422if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8423
John Criswell47fdd832003-07-14 16:52:07 +00008424# The names of the tagged configurations supported by this script.
8425available_tags=
8426
John Criswell7a73b802003-06-30 21:59:07 +00008427# ### BEGIN LIBTOOL CONFIG
8428
8429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8430
8431# Shell to use when invoking shell scripts.
8432SHELL=$lt_SHELL
8433
8434# Whether or not to build shared libraries.
8435build_libtool_libs=$enable_shared
8436
8437# Whether or not to build static libraries.
8438build_old_libs=$enable_static
8439
8440# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008441build_libtool_need_lc=$archive_cmds_need_lc
8442
8443# Whether or not to disallow shared libs when runtime libs are static
8444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008445
8446# Whether or not to optimize for fast installation.
8447fast_install=$enable_fast_install
8448
8449# The host system.
8450host_alias=$host_alias
8451host=$host
8452
8453# An echo program that does not interpret backslashes.
8454echo=$lt_echo
8455
8456# The archiver.
8457AR=$lt_AR
8458AR_FLAGS=$lt_AR_FLAGS
8459
John Criswell47fdd832003-07-14 16:52:07 +00008460# A C compiler.
8461LTCC=$lt_LTCC
8462
8463# A language-specific compiler.
8464CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008465
8466# Is the compiler the GNU C compiler?
8467with_gcc=$GCC
8468
John Criswell47fdd832003-07-14 16:52:07 +00008469# An ERE matcher.
8470EGREP=$lt_EGREP
8471
John Criswell7a73b802003-06-30 21:59:07 +00008472# The linker used to build libraries.
8473LD=$lt_LD
8474
8475# Whether we need hard or soft links.
8476LN_S=$lt_LN_S
8477
8478# A BSD-compatible nm program.
8479NM=$lt_NM
8480
8481# A symbol stripping program
8482STRIP=$STRIP
8483
8484# Used to examine libraries when file_magic_cmd begins "file"
8485MAGIC_CMD=$MAGIC_CMD
8486
8487# Used on cygwin: DLL creation program.
8488DLLTOOL="$DLLTOOL"
8489
8490# Used on cygwin: object dumper.
8491OBJDUMP="$OBJDUMP"
8492
8493# Used on cygwin: assembler.
8494AS="$AS"
8495
8496# The name of the directory that contains temporary libtool files.
8497objdir=$objdir
8498
8499# How to create reloadable object files.
8500reload_flag=$lt_reload_flag
8501reload_cmds=$lt_reload_cmds
8502
8503# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008504wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008505
8506# Object file suffix (normally "o").
8507objext="$ac_objext"
8508
8509# Old archive suffix (normally "a").
8510libext="$libext"
8511
John Criswell47fdd832003-07-14 16:52:07 +00008512# Shared library suffix (normally ".so").
8513shrext='$shrext'
8514
John Criswell7a73b802003-06-30 21:59:07 +00008515# Executable file suffix (normally "").
8516exeext="$exeext"
8517
8518# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008519pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008520pic_mode=$pic_mode
8521
John Criswell47fdd832003-07-14 16:52:07 +00008522# What is the maximum length of a command?
8523max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008524
John Criswell47fdd832003-07-14 16:52:07 +00008525# Does compiler simultaneously support -c and -o options?
8526compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008527
8528# Must we lock files when doing compilation ?
8529need_locks=$lt_need_locks
8530
8531# Do we need the lib prefix for modules?
8532need_lib_prefix=$need_lib_prefix
8533
8534# Do we need a version for libraries?
8535need_version=$need_version
8536
8537# Whether dlopen is supported.
8538dlopen_support=$enable_dlopen
8539
8540# Whether dlopen of programs is supported.
8541dlopen_self=$enable_dlopen_self
8542
8543# Whether dlopen of statically linked programs is supported.
8544dlopen_self_static=$enable_dlopen_self_static
8545
8546# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008547link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008548
8549# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008551
8552# Compiler flag to allow reflexive dlopens.
8553export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8554
8555# Compiler flag to generate shared objects directly from archives.
8556whole_archive_flag_spec=$lt_whole_archive_flag_spec
8557
8558# Compiler flag to generate thread-safe objects.
8559thread_safe_flag_spec=$lt_thread_safe_flag_spec
8560
8561# Library versioning type.
8562version_type=$version_type
8563
8564# Format of library name prefix.
8565libname_spec=$lt_libname_spec
8566
8567# List of archive names. First name is the real one, the rest are links.
8568# The last name is the one that the linker finds with -lNAME.
8569library_names_spec=$lt_library_names_spec
8570
8571# The coded name of the library, if different from the real name.
8572soname_spec=$lt_soname_spec
8573
8574# Commands used to build and install an old-style archive.
8575RANLIB=$lt_RANLIB
8576old_archive_cmds=$lt_old_archive_cmds
8577old_postinstall_cmds=$lt_old_postinstall_cmds
8578old_postuninstall_cmds=$lt_old_postuninstall_cmds
8579
8580# Create an old-style archive from a shared archive.
8581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8582
8583# Create a temporary old-style archive to link instead of a shared archive.
8584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8585
8586# Commands used to build and install a shared archive.
8587archive_cmds=$lt_archive_cmds
8588archive_expsym_cmds=$lt_archive_expsym_cmds
8589postinstall_cmds=$lt_postinstall_cmds
8590postuninstall_cmds=$lt_postuninstall_cmds
8591
John Criswell47fdd832003-07-14 16:52:07 +00008592# Commands used to build a loadable module (assumed same as above if empty)
8593module_cmds=$lt_module_cmds
8594module_expsym_cmds=$lt_module_expsym_cmds
8595
John Criswell7a73b802003-06-30 21:59:07 +00008596# Commands to strip libraries.
8597old_striplib=$lt_old_striplib
8598striplib=$lt_striplib
8599
John Criswell47fdd832003-07-14 16:52:07 +00008600# Dependencies to place before the objects being linked to create a
8601# shared library.
8602predep_objects=$lt_predep_objects
8603
8604# Dependencies to place after the objects being linked to create a
8605# shared library.
8606postdep_objects=$lt_postdep_objects
8607
8608# Dependencies to place before the objects being linked to create a
8609# shared library.
8610predeps=$lt_predeps
8611
8612# Dependencies to place after the objects being linked to create a
8613# shared library.
8614postdeps=$lt_postdeps
8615
8616# The library search path used internally by the compiler when linking
8617# a shared library.
8618compiler_lib_search_path=$lt_compiler_lib_search_path
8619
John Criswell7a73b802003-06-30 21:59:07 +00008620# Method to check whether dependent libraries are shared objects.
8621deplibs_check_method=$lt_deplibs_check_method
8622
8623# Command to use when deplibs_check_method == file_magic.
8624file_magic_cmd=$lt_file_magic_cmd
8625
8626# Flag that allows shared libraries with undefined symbols to be built.
8627allow_undefined_flag=$lt_allow_undefined_flag
8628
8629# Flag that forces no undefined symbols.
8630no_undefined_flag=$lt_no_undefined_flag
8631
8632# Commands used to finish a libtool library installation in a directory.
8633finish_cmds=$lt_finish_cmds
8634
8635# Same as above, but a single script fragment to be evaled but not shown.
8636finish_eval=$lt_finish_eval
8637
8638# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008639global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008640
8641# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008642global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008643
8644# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008645global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008646
8647# This is the shared library runtime path variable.
8648runpath_var=$runpath_var
8649
8650# This is the shared library path variable.
8651shlibpath_var=$shlibpath_var
8652
8653# Is shlibpath searched before the hard-coded library search path?
8654shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8655
8656# How to hardcode a shared library path into an executable.
8657hardcode_action=$hardcode_action
8658
8659# Whether we should hardcode library paths into libraries.
8660hardcode_into_libs=$hardcode_into_libs
8661
8662# Flag to hardcode \$libdir into a binary during linking.
8663# This must work even if \$libdir does not exist.
8664hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8665
John Criswell47fdd832003-07-14 16:52:07 +00008666# If ld is used when linking, flag to hardcode \$libdir into
8667# a binary during linking. This must work even if \$libdir does
8668# not exist.
8669hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8670
John Criswell7a73b802003-06-30 21:59:07 +00008671# Whether we need a single -rpath flag with a separated argument.
8672hardcode_libdir_separator=$lt_hardcode_libdir_separator
8673
John Criswell47fdd832003-07-14 16:52:07 +00008674# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008675# resulting binary.
8676hardcode_direct=$hardcode_direct
8677
8678# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8679# resulting binary.
8680hardcode_minus_L=$hardcode_minus_L
8681
8682# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8683# the resulting binary.
8684hardcode_shlibpath_var=$hardcode_shlibpath_var
8685
John Criswell47fdd832003-07-14 16:52:07 +00008686# Set to yes if building a shared library automatically hardcodes DIR into the library
8687# and all subsequent libraries and executables linked against it.
8688hardcode_automatic=$hardcode_automatic
8689
John Criswell7a73b802003-06-30 21:59:07 +00008690# Variables whose values should be saved in libtool wrapper scripts and
8691# restored at relink time.
8692variables_saved_for_relink="$variables_saved_for_relink"
8693
8694# Whether libtool must link a program against all its dependency libraries.
8695link_all_deplibs=$link_all_deplibs
8696
8697# Compile-time system search path for libraries
8698sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8699
8700# Run-time system search path for libraries
8701sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8702
8703# Fix the shell variable \$srcfile for the compiler.
8704fix_srcfile_path="$fix_srcfile_path"
8705
8706# Set to yes if exported symbols are required.
8707always_export_symbols=$always_export_symbols
8708
8709# The commands to list exported symbols.
8710export_symbols_cmds=$lt_export_symbols_cmds
8711
8712# The commands to extract the exported symbol list from a shared archive.
8713extract_expsyms_cmds=$lt_extract_expsyms_cmds
8714
8715# Symbols that should not be listed in the preloaded symbols.
8716exclude_expsyms=$lt_exclude_expsyms
8717
8718# Symbols that must always be exported.
8719include_expsyms=$lt_include_expsyms
8720
8721# ### END LIBTOOL CONFIG
8722
8723__EOF__
8724
John Criswell47fdd832003-07-14 16:52:07 +00008725
John Criswell7a73b802003-06-30 21:59:07 +00008726 case $host_os in
8727 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008728 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008729
8730# AIX sometimes has problems with the GCC collect2 program. For some
8731# reason, if we set the COLLECT_NAMES environment variable, the problems
8732# vanish in a puff of smoke.
8733if test "X${COLLECT_NAMES+set}" != Xset; then
8734 COLLECT_NAMES=
8735 export COLLECT_NAMES
8736fi
8737EOF
8738 ;;
8739 esac
8740
John Criswell7a73b802003-06-30 21:59:07 +00008741 # We use sed instead of cat because bash on DJGPP gets confused if
8742 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8743 # text mode, it properly converts lines to CR/LF. This bash problem
8744 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008745 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008746
John Criswell47fdd832003-07-14 16:52:07 +00008747 mv -f "$cfgfile" "$ofile" || \
8748 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008749 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008750
8751else
8752 # If there is no Makefile yet, we rely on a make rule to execute
8753 # `config.status --recheck' to rerun these tests and create the
8754 # libtool script then.
8755 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008756fi
John Criswell7a73b802003-06-30 21:59:07 +00008757
8758
John Criswell47fdd832003-07-14 16:52:07 +00008759ac_ext=c
8760ac_cpp='$CPP $CPPFLAGS'
8761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763ac_compiler_gnu=$ac_cv_c_compiler_gnu
8764
8765CC="$lt_save_CC"
8766
8767
8768# Check whether --with-tags or --without-tags was given.
8769if test "${with_tags+set}" = set; then
8770 withval="$with_tags"
8771 tagnames="$withval"
8772fi;
8773
8774if test -f "$ltmain" && test -n "$tagnames"; then
8775 if test ! -f "${ofile}"; then
8776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8777echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8778 fi
8779
8780 if test -z "$LTCC"; then
8781 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8782 if test -z "$LTCC"; then
8783 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8784echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8785 else
8786 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8787echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8788 fi
8789 fi
8790
8791 # Extract list of available tagged configurations in $ofile.
8792 # Note that this assumes the entire list is on one line.
8793 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8794
8795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8796 for tagname in $tagnames; do
8797 IFS="$lt_save_ifs"
8798 # Check whether tagname contains only valid characters
8799 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8800 "") ;;
8801 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8802echo "$as_me: error: invalid tag name: $tagname" >&2;}
8803 { (exit 1); exit 1; }; }
8804 ;;
8805 esac
8806
8807 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8808 then
8809 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8810echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8811 { (exit 1); exit 1; }; }
8812 fi
8813
8814 # Update the list of available tags.
8815 if test -n "$tagname"; then
8816 echo appending configuration tag \"$tagname\" to $ofile
8817
8818 case $tagname in
8819 CXX)
8820 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8821 ac_ext=cc
8822ac_cpp='$CXXCPP $CPPFLAGS'
8823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8826
8827
8828
8829
8830archive_cmds_need_lc_CXX=no
8831allow_undefined_flag_CXX=
8832always_export_symbols_CXX=no
8833archive_expsym_cmds_CXX=
8834export_dynamic_flag_spec_CXX=
8835hardcode_direct_CXX=no
8836hardcode_libdir_flag_spec_CXX=
8837hardcode_libdir_flag_spec_ld_CXX=
8838hardcode_libdir_separator_CXX=
8839hardcode_minus_L_CXX=no
8840hardcode_automatic_CXX=no
8841module_cmds_CXX=
8842module_expsym_cmds_CXX=
8843link_all_deplibs_CXX=unknown
8844old_archive_cmds_CXX=$old_archive_cmds
8845no_undefined_flag_CXX=
8846whole_archive_flag_spec_CXX=
8847enable_shared_with_static_runtimes_CXX=no
8848
8849# Dependencies to place before and after the object being linked:
8850predep_objects_CXX=
8851postdep_objects_CXX=
8852predeps_CXX=
8853postdeps_CXX=
8854compiler_lib_search_path_CXX=
8855
8856# Source file extension for C++ test sources.
8857ac_ext=cc
8858
8859# Object file extension for compiled C++ test sources.
8860objext=o
8861objext_CXX=$objext
8862
8863# Code to be used in simple compile tests
8864lt_simple_compile_test_code="int some_variable = 0;\n"
8865
8866# Code to be used in simple link tests
8867lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8868
8869# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8870
8871# If no C compiler was specified, use CC.
8872LTCC=${LTCC-"$CC"}
8873
8874# Allow CC to be a program name with arguments.
8875compiler=$CC
8876
8877
8878# Allow CC to be a program name with arguments.
8879lt_save_CC=$CC
8880lt_save_LD=$LD
8881lt_save_GCC=$GCC
8882GCC=$GXX
8883lt_save_with_gnu_ld=$with_gnu_ld
8884lt_save_path_LD=$lt_cv_path_LD
8885if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8886 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8887else
8888 unset lt_cv_prog_gnu_ld
8889fi
8890if test -n "${lt_cv_path_LDCXX+set}"; then
8891 lt_cv_path_LD=$lt_cv_path_LDCXX
8892else
8893 unset lt_cv_path_LD
8894fi
8895test -z "${LDCXX+set}" || LD=$LDCXX
8896CC=${CXX-"c++"}
8897compiler=$CC
8898compiler_CXX=$CC
8899cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8900
8901# We don't want -fno-exception wen compiling C++ code, so set the
8902# no_builtin_flag separately
8903if test "$GXX" = yes; then
8904 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8905else
8906 lt_prog_compiler_no_builtin_flag_CXX=
8907fi
8908
8909if test "$GXX" = yes; then
8910 # Set up default GNU C++ configuration
8911
8912
8913# Check whether --with-gnu-ld or --without-gnu-ld was given.
8914if test "${with_gnu_ld+set}" = set; then
8915 withval="$with_gnu_ld"
8916 test "$withval" = no || with_gnu_ld=yes
8917else
8918 with_gnu_ld=no
8919fi;
8920ac_prog=ld
8921if test "$GCC" = yes; then
8922 # Check if gcc -print-prog-name=ld gives a path.
8923 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8924echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8925 case $host in
8926 *-*-mingw*)
8927 # gcc leaves a trailing carriage return which upsets mingw
8928 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8929 *)
8930 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8931 esac
8932 case $ac_prog in
8933 # Accept absolute paths.
8934 [\\/]* | ?:[\\/]*)
8935 re_direlt='/[^/][^/]*/\.\./'
8936 # Canonicalize the path of ld
8937 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8938 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8939 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8940 done
8941 test -z "$LD" && LD="$ac_prog"
8942 ;;
8943 "")
8944 # If it fails, then pretend we aren't using GCC.
8945 ac_prog=ld
8946 ;;
8947 *)
8948 # If it is relative, then search for the first ld in PATH.
8949 with_gnu_ld=unknown
8950 ;;
8951 esac
8952elif test "$with_gnu_ld" = yes; then
8953 echo "$as_me:$LINENO: checking for GNU ld" >&5
8954echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8955else
8956 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8957echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8958fi
8959if test "${lt_cv_path_LD+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962 if test -z "$LD"; then
8963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8964 for ac_dir in $PATH; do
8965 IFS="$lt_save_ifs"
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8968 lt_cv_path_LD="$ac_dir/$ac_prog"
8969 # Check to see if the program is GNU ld. I'd rather use --version,
8970 # but apparently some GNU ld's only accept -v.
8971 # Break only if it was the GNU/non-GNU ld that we prefer.
8972 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8973 *GNU* | *'with BFD'*)
8974 test "$with_gnu_ld" != no && break
8975 ;;
8976 *)
8977 test "$with_gnu_ld" != yes && break
8978 ;;
8979 esac
8980 fi
8981 done
8982 IFS="$lt_save_ifs"
8983else
8984 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8985fi
8986fi
8987
8988LD="$lt_cv_path_LD"
8989if test -n "$LD"; then
8990 echo "$as_me:$LINENO: result: $LD" >&5
8991echo "${ECHO_T}$LD" >&6
8992else
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995fi
8996test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998 { (exit 1); exit 1; }; }
8999echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9001if test "${lt_cv_prog_gnu_ld+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005case `"$LD" -v 2>&1 </dev/null` in
9006*GNU* | *'with BFD'*)
9007 lt_cv_prog_gnu_ld=yes
9008 ;;
9009*)
9010 lt_cv_prog_gnu_ld=no
9011 ;;
9012esac
9013fi
9014echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9015echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9016with_gnu_ld=$lt_cv_prog_gnu_ld
9017
9018
9019
9020 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9021 # archiving commands below assume that GNU ld is being used.
9022 if test "$with_gnu_ld" = yes; then
9023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 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'
9025
9026 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9028
9029 # If archive_cmds runs LD, not CC, wlarc should be empty
9030 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9031 # investigate it a little bit more. (MM)
9032 wlarc='${wl}'
9033
9034 # ancient GNU ld didn't support --whole-archive et. al.
9035 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9036 grep 'no-whole-archive' > /dev/null; then
9037 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9038 else
9039 whole_archive_flag_spec_CXX=
9040 fi
9041 else
9042 with_gnu_ld=no
9043 wlarc=
9044
9045 # A generic and very simple default shared library creation
9046 # command for GNU C++ for the case where it uses the native
9047 # linker, instead of GNU ld. If possible, this setting should
9048 # overridden to take advantage of the native linker features on
9049 # the platform it is being used on.
9050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9051 fi
9052
9053 # Commands to make compiler produce verbose output that lists
9054 # what "hidden" libraries, object files and flags are used when
9055 # linking a shared library.
9056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9057
9058else
9059 GXX=no
9060 with_gnu_ld=no
9061 wlarc=
9062fi
9063
9064# PORTME: fill in a description of your system's C++ link characteristics
9065echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9066echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9067ld_shlibs_CXX=yes
9068case $host_os in
9069 aix3*)
9070 # FIXME: insert proper C++ library support
9071 ld_shlibs_CXX=no
9072 ;;
9073 aix4* | aix5*)
9074 if test "$host_cpu" = ia64; then
9075 # On IA64, the linker does run time linking by default, so we don't
9076 # have to do anything special.
9077 aix_use_runtimelinking=no
9078 exp_sym_flag='-Bexport'
9079 no_entry_flag=""
9080 else
9081 aix_use_runtimelinking=no
9082
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9087 for ld_flag in $LDFLAGS; do
9088 case $ld_flag in
9089 *-brtl*)
9090 aix_use_runtimelinking=yes
9091 break
9092 ;;
9093 esac
9094 done
9095 esac
9096
9097 exp_sym_flag='-bexport'
9098 no_entry_flag='-bnoentry'
9099 fi
9100
9101 # When large executables or shared objects are built, AIX ld can
9102 # have problems creating the table of contents. If linking a library
9103 # or program results in "error TOC overflow" add -mminimal-toc to
9104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107 archive_cmds_CXX=''
9108 hardcode_direct_CXX=yes
9109 hardcode_libdir_separator_CXX=':'
9110 link_all_deplibs_CXX=yes
9111
9112 if test "$GXX" = yes; then
9113 case $host_os in aix4.012|aix4.012.*)
9114 # We only want to do this on AIX 4.2 and lower, the check
9115 # below for broken collect2 doesn't work under 4.3+
9116 collect2name=`${CC} -print-prog-name=collect2`
9117 if test -f "$collect2name" && \
9118 strings "$collect2name" | grep resolve_lib_name >/dev/null
9119 then
9120 # We have reworked collect2
9121 hardcode_direct_CXX=yes
9122 else
9123 # We have old collect2
9124 hardcode_direct_CXX=unsupported
9125 # It fails to find uninstalled libraries when the uninstalled
9126 # path is not listed in the libpath. Setting hardcode_minus_L
9127 # to unsupported forces relinking
9128 hardcode_minus_L_CXX=yes
9129 hardcode_libdir_flag_spec_CXX='-L$libdir'
9130 hardcode_libdir_separator_CXX=
9131 fi
9132 esac
9133 shared_flag='-shared'
9134 else
9135 # not using gcc
9136 if test "$host_cpu" = ia64; then
9137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138 # chokes on -Wl,-G. The following line is correct:
9139 shared_flag='-G'
9140 else
9141 if test "$aix_use_runtimelinking" = yes; then
9142 shared_flag='${wl}-G'
9143 else
9144 shared_flag='${wl}-bM:SRE'
9145 fi
9146 fi
9147 fi
9148
9149 # It seems that -bexpall does not export symbols beginning with
9150 # underscore (_), so it is better to generate a list of symbols to export.
9151 always_export_symbols_CXX=yes
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # Warning - without using the other runtime loading flags (-brtl),
9154 # -berok will link without error, but may produce a broken library.
9155 allow_undefined_flag_CXX='-berok'
9156 # Determine the default libpath from the value encoded in an empty executable.
9157 cat >conftest.$ac_ext <<_ACEOF
9158#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009164
John Criswell47fdd832003-07-14 16:52:07 +00009165int
9166main ()
9167{
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185
9186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9187}'`
9188# Check for a 64-bit object if we didn't find anything.
9189if 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; }
9190}'`; fi
9191else
9192 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009193sed 's/^/| /' conftest.$ac_ext >&5
9194
John Criswell47fdd832003-07-14 16:52:07 +00009195fi
9196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198
9199 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9200
9201 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"
9202 else
9203 if test "$host_cpu" = ia64; then
9204 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9205 allow_undefined_flag_CXX="-z nodefs"
9206 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"
9207 else
9208 # Determine the default libpath from the value encoded in an empty executable.
9209 cat >conftest.$ac_ext <<_ACEOF
9210#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009211/* confdefs.h. */
9212_ACEOF
9213cat confdefs.h >>conftest.$ac_ext
9214cat >>conftest.$ac_ext <<_ACEOF
9215/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009216
John Criswell47fdd832003-07-14 16:52:07 +00009217int
9218main ()
9219{
9220
9221 ;
9222 return 0;
9223}
9224_ACEOF
9225rm -f conftest.$ac_objext conftest$ac_exeext
9226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest$ac_exeext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237
9238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9239}'`
9240# Check for a 64-bit object if we didn't find anything.
9241if 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; }
9242}'`; fi
9243else
9244 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009245sed 's/^/| /' conftest.$ac_ext >&5
9246
John Criswell47fdd832003-07-14 16:52:07 +00009247fi
9248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9250
9251 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9252 # Warning - without using the other run time loading flags,
9253 # -berok will link without error, but may produce a broken library.
9254 no_undefined_flag_CXX=' ${wl}-bernotok'
9255 allow_undefined_flag_CXX=' ${wl}-berok'
9256 # -bexpall does not export symbols beginning with underscore (_)
9257 always_export_symbols_CXX=yes
9258 # Exported symbols can be pulled into shared objects from archives
9259 whole_archive_flag_spec_CXX=' '
9260 archive_cmds_need_lc_CXX=yes
9261 # This is similar to how AIX traditionally builds it's shared libraries.
9262 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'
9263 fi
9264 fi
9265 ;;
9266 chorus*)
9267 case $cc_basename in
9268 *)
9269 # FIXME: insert proper C++ library support
9270 ld_shlibs_CXX=no
9271 ;;
9272 esac
9273 ;;
9274
9275 cygwin* | mingw* | pw32*)
9276 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9277 # as there is no search path for DLLs.
9278 hardcode_libdir_flag_spec_CXX='-L$libdir'
9279 allow_undefined_flag_CXX=unsupported
9280 always_export_symbols_CXX=no
9281 enable_shared_with_static_runtimes_CXX=yes
9282
9283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9284 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'
9285 # If the export-symbols file already is a .def file (1st line
9286 # is EXPORTS), use it as is; otherwise, prepend...
9287 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9288 cp $export_symbols $output_objdir/$soname.def;
9289 else
9290 echo EXPORTS > $output_objdir/$soname.def;
9291 cat $export_symbols >> $output_objdir/$soname.def;
9292 fi~
9293 $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'
9294 else
9295 ld_shlibs_CXX=no
9296 fi
9297 ;;
9298
9299 darwin* | rhapsody*)
9300 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9301 archive_cmds_need_lc_CXX=no
9302 case "$host_os" in
9303 rhapsody* | darwin1.[012])
9304 allow_undefined_flag_CXX='-undefined suppress'
9305 ;;
9306 *) # Darwin 1.3 on
9307 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9308 ;;
9309 esac
9310 lt_int_apple_cc_single_mod=no
9311 output_verbose_link_cmd='echo'
9312 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9313 lt_int_apple_cc_single_mod=yes
9314 fi
9315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9316 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9317 else
9318 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'
9319 fi
9320 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9321
9322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9323 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9324 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}'
9325 else
9326 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}'
9327 fi
9328 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}'
9329 hardcode_direct_CXX=no
9330 hardcode_automatic_CXX=yes
9331 hardcode_shlibpath_var_CXX=unsupported
9332 whole_archive_flag_spec_CXX='-all_load $convenience'
9333 link_all_deplibs_CXX=yes
9334 fi
9335 ;;
9336
9337 dgux*)
9338 case $cc_basename in
9339 ec++)
9340 # FIXME: insert proper C++ library support
9341 ld_shlibs_CXX=no
9342 ;;
9343 ghcx)
9344 # Green Hills C++ Compiler
9345 # FIXME: insert proper C++ library support
9346 ld_shlibs_CXX=no
9347 ;;
9348 *)
9349 # FIXME: insert proper C++ library support
9350 ld_shlibs_CXX=no
9351 ;;
9352 esac
9353 ;;
9354 freebsd12*)
9355 # C++ shared libraries reported to be fairly broken before switch to ELF
9356 ld_shlibs_CXX=no
9357 ;;
9358 freebsd-elf*)
9359 archive_cmds_need_lc_CXX=no
9360 ;;
9361 freebsd*)
9362 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9363 # conventions
9364 ld_shlibs_CXX=yes
9365 ;;
9366 gnu*)
9367 ;;
9368 hpux9*)
9369 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator_CXX=:
9371 export_dynamic_flag_spec_CXX='${wl}-E'
9372 hardcode_direct_CXX=yes
9373 hardcode_minus_L_CXX=yes # Not in the search PATH,
9374 # but as the default
9375 # location of the library.
9376
9377 case $cc_basename in
9378 CC)
9379 # FIXME: insert proper C++ library support
9380 ld_shlibs_CXX=no
9381 ;;
9382 aCC)
9383 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'
9384 # Commands to make compiler produce verbose output that lists
9385 # what "hidden" libraries, object files and flags are used when
9386 # linking a shared library.
9387 #
9388 # There doesn't appear to be a way to prevent this compiler from
9389 # explicitly linking system object files so we need to strip them
9390 # from the output so that they don't get included in the library
9391 # dependencies.
9392 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'
9393 ;;
9394 *)
9395 if test "$GXX" = yes; then
9396 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'
9397 else
9398 # FIXME: insert proper C++ library support
9399 ld_shlibs_CXX=no
9400 fi
9401 ;;
9402 esac
9403 ;;
9404 hpux10*|hpux11*)
9405 if test $with_gnu_ld = no; then
9406 case "$host_cpu" in
9407 hppa*64*)
9408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9410 hardcode_libdir_separator_CXX=:
9411 ;;
9412 ia64*)
9413 hardcode_libdir_flag_spec_CXX='-L$libdir'
9414 ;;
9415 *)
9416 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator_CXX=:
9418 export_dynamic_flag_spec_CXX='${wl}-E'
9419 ;;
9420 esac
9421 fi
9422 case "$host_cpu" in
9423 hppa*64*)
9424 hardcode_direct_CXX=no
9425 hardcode_shlibpath_var_CXX=no
9426 ;;
9427 ia64*)
9428 hardcode_direct_CXX=no
9429 hardcode_shlibpath_var_CXX=no
9430 hardcode_minus_L_CXX=yes # Not in the search PATH,
9431 # but as the default
9432 # location of the library.
9433 ;;
9434 *)
9435 hardcode_direct_CXX=yes
9436 hardcode_minus_L_CXX=yes # Not in the search PATH,
9437 # but as the default
9438 # location of the library.
9439 ;;
9440 esac
9441
9442 case $cc_basename in
9443 CC)
9444 # FIXME: insert proper C++ library support
9445 ld_shlibs_CXX=no
9446 ;;
9447 aCC)
9448 case "$host_cpu" in
9449 hppa*64*|ia64*)
9450 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9451 ;;
9452 *)
9453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9454 ;;
9455 esac
9456 # Commands to make compiler produce verbose output that lists
9457 # what "hidden" libraries, object files and flags are used when
9458 # linking a shared library.
9459 #
9460 # There doesn't appear to be a way to prevent this compiler from
9461 # explicitly linking system object files so we need to strip them
9462 # from the output so that they don't get included in the library
9463 # dependencies.
9464 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'
9465 ;;
9466 *)
9467 if test "$GXX" = yes; then
9468 if test $with_gnu_ld = no; then
9469 case "$host_cpu" in
9470 ia64*|hppa*64*)
9471 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9472 ;;
9473 *)
9474 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'
9475 ;;
9476 esac
9477 fi
9478 else
9479 # FIXME: insert proper C++ library support
9480 ld_shlibs_CXX=no
9481 fi
9482 ;;
9483 esac
9484 ;;
9485 irix5* | irix6*)
9486 case $cc_basename in
9487 CC)
9488 # SGI C++
9489 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'
9490
9491 # Archives containing C++ object files must be created using
9492 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9493 # necessary to make sure instantiated templates are included
9494 # in the archive.
9495 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9496 ;;
9497 *)
9498 if test "$GXX" = yes; then
9499 if test "$with_gnu_ld" = no; then
9500 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'
9501 else
9502 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'
9503 fi
9504 fi
9505 link_all_deplibs_CXX=yes
9506 ;;
9507 esac
9508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9509 hardcode_libdir_separator_CXX=:
9510 ;;
9511 linux*)
9512 case $cc_basename in
9513 KCC)
9514 # Kuck and Associates, Inc. (KAI) C++ Compiler
9515
9516 # KCC will only create a shared library if the output file
9517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9518 # to its proper name (with version) after linking.
9519 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'
9520 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'
9521 # Commands to make compiler produce verbose output that lists
9522 # what "hidden" libraries, object files and flags are used when
9523 # linking a shared library.
9524 #
9525 # There doesn't appear to be a way to prevent this compiler from
9526 # explicitly linking system object files so we need to strip them
9527 # from the output so that they don't get included in the library
9528 # dependencies.
9529 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'
9530
9531 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9533
9534 # Archives containing C++ object files must be created using
9535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9537 ;;
9538 icpc)
9539 # Intel C++
9540 with_gnu_ld=yes
9541 archive_cmds_need_lc_CXX=no
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9546 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9547 ;;
9548 cxx)
9549 # Compaq C++
9550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 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'
9552
9553 runpath_var=LD_RUN_PATH
9554 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9555 hardcode_libdir_separator_CXX=:
9556
9557 # Commands to make compiler produce verbose output that lists
9558 # what "hidden" libraries, object files and flags are used when
9559 # linking a shared library.
9560 #
9561 # There doesn't appear to be a way to prevent this compiler from
9562 # explicitly linking system object files so we need to strip them
9563 # from the output so that they don't get included in the library
9564 # dependencies.
9565 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'
9566 ;;
9567 esac
9568 ;;
9569 lynxos*)
9570 # FIXME: insert proper C++ library support
9571 ld_shlibs_CXX=no
9572 ;;
9573 m88k*)
9574 # FIXME: insert proper C++ library support
9575 ld_shlibs_CXX=no
9576 ;;
9577 mvs*)
9578 case $cc_basename in
9579 cxx)
9580 # FIXME: insert proper C++ library support
9581 ld_shlibs_CXX=no
9582 ;;
9583 *)
9584 # FIXME: insert proper C++ library support
9585 ld_shlibs_CXX=no
9586 ;;
9587 esac
9588 ;;
9589 netbsd*)
9590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9592 wlarc=
9593 hardcode_libdir_flag_spec_CXX='-R$libdir'
9594 hardcode_direct_CXX=yes
9595 hardcode_shlibpath_var_CXX=no
9596 fi
9597 # Workaround some broken pre-1.5 toolchains
9598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9599 ;;
9600 osf3*)
9601 case $cc_basename in
9602 KCC)
9603 # Kuck and Associates, Inc. (KAI) C++ Compiler
9604
9605 # KCC will only create a shared library if the output file
9606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9607 # to its proper name (with version) after linking.
9608 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'
9609
9610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9611 hardcode_libdir_separator_CXX=:
9612
9613 # Archives containing C++ object files must be created using
9614 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9615 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9616
9617 ;;
9618 RCC)
9619 # Rational C++ 2.4.1
9620 # FIXME: insert proper C++ library support
9621 ld_shlibs_CXX=no
9622 ;;
9623 cxx)
9624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9625 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'
9626
9627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9628 hardcode_libdir_separator_CXX=:
9629
9630 # Commands to make compiler produce verbose output that lists
9631 # what "hidden" libraries, object files and flags are used when
9632 # linking a shared library.
9633 #
9634 # There doesn't appear to be a way to prevent this compiler from
9635 # explicitly linking system object files so we need to strip them
9636 # from the output so that they don't get included in the library
9637 # dependencies.
9638 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'
9639 ;;
9640 *)
9641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9643 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'
9644
9645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9646 hardcode_libdir_separator_CXX=:
9647
9648 # Commands to make compiler produce verbose output that lists
9649 # what "hidden" libraries, object files and flags are used when
9650 # linking a shared library.
9651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9652
9653 else
9654 # FIXME: insert proper C++ library support
9655 ld_shlibs_CXX=no
9656 fi
9657 ;;
9658 esac
9659 ;;
9660 osf4* | osf5*)
9661 case $cc_basename in
9662 KCC)
9663 # Kuck and Associates, Inc. (KAI) C++ Compiler
9664
9665 # KCC will only create a shared library if the output file
9666 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9667 # to its proper name (with version) after linking.
9668 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'
9669
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9671 hardcode_libdir_separator_CXX=:
9672
9673 # Archives containing C++ object files must be created using
9674 # the KAI C++ compiler.
9675 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9676 ;;
9677 RCC)
9678 # Rational C++ 2.4.1
9679 # FIXME: insert proper C++ library support
9680 ld_shlibs_CXX=no
9681 ;;
9682 cxx)
9683 allow_undefined_flag_CXX=' -expect_unresolved \*'
9684 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'
9685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9686 echo "-hidden">> $lib.exp~
9687 $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~
9688 $rm $lib.exp'
9689
9690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9691 hardcode_libdir_separator_CXX=:
9692
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9696 #
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9700 # dependencies.
9701 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'
9702 ;;
9703 *)
9704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9706 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'
9707
9708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9709 hardcode_libdir_separator_CXX=:
9710
9711 # Commands to make compiler produce verbose output that lists
9712 # what "hidden" libraries, object files and flags are used when
9713 # linking a shared library.
9714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9715
9716 else
9717 # FIXME: insert proper C++ library support
9718 ld_shlibs_CXX=no
9719 fi
9720 ;;
9721 esac
9722 ;;
9723 psos*)
9724 # FIXME: insert proper C++ library support
9725 ld_shlibs_CXX=no
9726 ;;
9727 sco*)
9728 archive_cmds_need_lc_CXX=no
9729 case $cc_basename in
9730 CC)
9731 # FIXME: insert proper C++ library support
9732 ld_shlibs_CXX=no
9733 ;;
9734 *)
9735 # FIXME: insert proper C++ library support
9736 ld_shlibs_CXX=no
9737 ;;
9738 esac
9739 ;;
9740 sunos4*)
9741 case $cc_basename in
9742 CC)
9743 # Sun C++ 4.x
9744 # FIXME: insert proper C++ library support
9745 ld_shlibs_CXX=no
9746 ;;
9747 lcc)
9748 # Lucid
9749 # FIXME: insert proper C++ library support
9750 ld_shlibs_CXX=no
9751 ;;
9752 *)
9753 # FIXME: insert proper C++ library support
9754 ld_shlibs_CXX=no
9755 ;;
9756 esac
9757 ;;
9758 solaris*)
9759 case $cc_basename in
9760 CC)
9761 # Sun C++ 4.2, 5.x and Centerline C++
9762 no_undefined_flag_CXX=' -zdefs'
9763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9765 $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'
9766
9767 hardcode_libdir_flag_spec_CXX='-R$libdir'
9768 hardcode_shlibpath_var_CXX=no
9769 case $host_os in
9770 solaris2.0-5 | solaris2.0-5.*) ;;
9771 *)
9772 # The C++ compiler is used as linker so we must use $wl
9773 # flag to pass the commands to the underlying system
9774 # linker.
9775 # Supported since Solaris 2.6 (maybe 2.5.1?)
9776 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9777 ;;
9778 esac
9779 link_all_deplibs_CXX=yes
9780
9781 # Commands to make compiler produce verbose output that lists
9782 # what "hidden" libraries, object files and flags are used when
9783 # linking a shared library.
9784 #
9785 # There doesn't appear to be a way to prevent this compiler from
9786 # explicitly linking system object files so we need to strip them
9787 # from the output so that they don't get included in the library
9788 # dependencies.
9789 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'
9790
9791 # Archives containing C++ object files must be created using
9792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9793 # necessary to make sure instantiated templates are included
9794 # in the archive.
9795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9796 ;;
9797 gcx)
9798 # Green Hills C++ Compiler
9799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9800
9801 # The C++ compiler must be used to create the archive.
9802 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9803 ;;
9804 *)
9805 # GNU C++ compiler with Solaris linker
9806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9807 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9808 if $CC --version | grep -v '^2\.7' > /dev/null; then
9809 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9810 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9811 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9812
9813 # Commands to make compiler produce verbose output that lists
9814 # what "hidden" libraries, object files and flags are used when
9815 # linking a shared library.
9816 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9817 else
9818 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9819 # platform.
9820 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9822 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9823
9824 # Commands to make compiler produce verbose output that lists
9825 # what "hidden" libraries, object files and flags are used when
9826 # linking a shared library.
9827 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9828 fi
9829
9830 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9831 fi
9832 ;;
9833 esac
9834 ;;
9835 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9836 archive_cmds_need_lc_CXX=no
9837 ;;
9838 tandem*)
9839 case $cc_basename in
9840 NCC)
9841 # NonStop-UX NCC 3.20
9842 # FIXME: insert proper C++ library support
9843 ld_shlibs_CXX=no
9844 ;;
9845 *)
9846 # FIXME: insert proper C++ library support
9847 ld_shlibs_CXX=no
9848 ;;
9849 esac
9850 ;;
9851 vxworks*)
9852 # FIXME: insert proper C++ library support
9853 ld_shlibs_CXX=no
9854 ;;
9855 *)
9856 # FIXME: insert proper C++ library support
9857 ld_shlibs_CXX=no
9858 ;;
9859esac
9860echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9861echo "${ECHO_T}$ld_shlibs_CXX" >&6
9862test "$ld_shlibs_CXX" = no && can_build_shared=no
9863
9864GCC_CXX="$GXX"
9865LD_CXX="$LD"
9866
9867## CAVEAT EMPTOR:
9868## There is no encapsulation within the following macros, do not change
9869## the running order or otherwise move them around unless you know exactly
9870## what you are doing...
9871
9872cat > conftest.$ac_ext <<EOF
9873class Foo
9874{
9875public:
9876 Foo (void) { a = 0; }
9877private:
9878 int a;
9879};
9880EOF
9881
9882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; then
9887 # Parse the compiler output and extract the necessary
9888 # objects, libraries and library flags.
9889
9890 # Sentinel used to keep track of whether or not we are before
9891 # the conftest object file.
9892 pre_test_object_deps_done=no
9893
9894 # The `*' in the case matches for architectures that use `case' in
9895 # $output_verbose_cmd can trigger glob expansion during the loop
9896 # eval without this substitution.
9897 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9898
9899 for p in `eval $output_verbose_link_cmd`; do
9900 case $p in
9901
9902 -L* | -R* | -l*)
9903 # Some compilers place space between "-{L,R}" and the path.
9904 # Remove the space.
9905 if test $p = "-L" \
9906 || test $p = "-R"; then
9907 prev=$p
9908 continue
9909 else
9910 prev=
9911 fi
9912
9913 if test "$pre_test_object_deps_done" = no; then
9914 case $p in
9915 -L* | -R*)
9916 # Internal compiler library paths should come after those
9917 # provided the user. The postdeps already come after the
9918 # user supplied libs so there is no need to process them.
9919 if test -z "$compiler_lib_search_path_CXX"; then
9920 compiler_lib_search_path_CXX="${prev}${p}"
9921 else
9922 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9923 fi
9924 ;;
9925 # The "-l" case would never come before the object being
9926 # linked, so don't bother handling this case.
9927 esac
9928 else
9929 if test -z "$postdeps_CXX"; then
9930 postdeps_CXX="${prev}${p}"
9931 else
9932 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9933 fi
9934 fi
9935 ;;
9936
9937 *.$objext)
9938 # This assumes that the test object file only shows up
9939 # once in the compiler output.
9940 if test "$p" = "conftest.$objext"; then
9941 pre_test_object_deps_done=yes
9942 continue
9943 fi
9944
9945 if test "$pre_test_object_deps_done" = no; then
9946 if test -z "$predep_objects_CXX"; then
9947 predep_objects_CXX="$p"
9948 else
9949 predep_objects_CXX="$predep_objects_CXX $p"
9950 fi
9951 else
9952 if test -z "$postdep_objects_CXX"; then
9953 postdep_objects_CXX="$p"
9954 else
9955 postdep_objects_CXX="$postdep_objects_CXX $p"
9956 fi
9957 fi
9958 ;;
9959
9960 *) ;; # Ignore the rest.
9961
9962 esac
9963 done
9964
9965 # Clean up.
9966 rm -f a.out a.exe
9967else
9968 echo "libtool.m4: error: problem compiling CXX test program"
9969fi
9970
9971$rm -f confest.$objext
9972
9973case " $postdeps_CXX " in
9974*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9975esac
9976
9977lt_prog_compiler_wl_CXX=
9978lt_prog_compiler_pic_CXX=
9979lt_prog_compiler_static_CXX=
9980
9981echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9982echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9983
9984 # C++ specific cases for pic, static, wl, etc.
9985 if test "$GXX" = yes; then
9986 lt_prog_compiler_wl_CXX='-Wl,'
9987 lt_prog_compiler_static_CXX='-static'
9988
9989 case $host_os in
9990 aix*)
9991 # All AIX code is PIC.
9992 if test "$host_cpu" = ia64; then
9993 # AIX 5 now supports IA64 processor
9994 lt_prog_compiler_static_CXX='-Bstatic'
9995 fi
9996 ;;
9997 amigaos*)
9998 # FIXME: we need at least 68020 code to build shared libraries, but
9999 # adding the `-m68020' flag to GCC prevents building anything better,
10000 # like `-m68040'.
10001 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10002 ;;
10003 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10004 # PIC is the default for these OSes.
10005 ;;
10006 mingw* | os2* | pw32*)
10007 # This hack is so that the source file can tell whether it is being
10008 # built for inclusion in a dll (and should export symbols for example).
10009 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10010 ;;
10011 darwin* | rhapsody*)
10012 # PIC is the default on this platform
10013 # Common symbols not allowed in MH_DYLIB files
10014 lt_prog_compiler_pic_CXX='-fno-common'
10015 ;;
10016 *djgpp*)
10017 # DJGPP does not support shared libraries at all
10018 lt_prog_compiler_pic_CXX=
10019 ;;
10020 sysv4*MP*)
10021 if test -d /usr/nec; then
10022 lt_prog_compiler_pic_CXX=-Kconform_pic
10023 fi
10024 ;;
10025 hpux*)
10026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10027 # not for PA HP-UX.
10028 case "$host_cpu" in
10029 hppa*64*|ia64*)
10030 ;;
10031 *)
10032 lt_prog_compiler_pic_CXX='-fPIC'
10033 ;;
10034 esac
10035 ;;
10036 *)
10037 lt_prog_compiler_pic_CXX='-fPIC'
10038 ;;
10039 esac
10040 else
10041 case $host_os in
10042 aix4* | aix5*)
10043 # All AIX code is PIC.
10044 if test "$host_cpu" = ia64; then
10045 # AIX 5 now supports IA64 processor
10046 lt_prog_compiler_static_CXX='-Bstatic'
10047 else
10048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10049 fi
10050 ;;
10051 chorus*)
10052 case $cc_basename in
10053 cxch68)
10054 # Green Hills C++ Compiler
10055 # _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"
10056 ;;
10057 esac
10058 ;;
10059 dgux*)
10060 case $cc_basename in
10061 ec++)
10062 lt_prog_compiler_pic_CXX='-KPIC'
10063 ;;
10064 ghcx)
10065 # Green Hills C++ Compiler
10066 lt_prog_compiler_pic_CXX='-pic'
10067 ;;
10068 *)
10069 ;;
10070 esac
10071 ;;
10072 freebsd*)
10073 # FreeBSD uses GNU C++
10074 ;;
10075 hpux9* | hpux10* | hpux11*)
10076 case $cc_basename in
10077 CC)
10078 lt_prog_compiler_wl_CXX='-Wl,'
10079 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10080 if test "$host_cpu" != ia64; then
10081 lt_prog_compiler_pic_CXX='+Z'
10082 fi
10083 ;;
10084 aCC)
10085 lt_prog_compiler_wl_CXX='-Wl,'
10086 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10087 case "$host_cpu" in
10088 hppa*64*|ia64*)
10089 # +Z the default
10090 ;;
10091 *)
10092 lt_prog_compiler_pic_CXX='+Z'
10093 ;;
10094 esac
10095 ;;
10096 *)
10097 ;;
10098 esac
10099 ;;
10100 irix5* | irix6* | nonstopux*)
10101 case $cc_basename in
10102 CC)
10103 lt_prog_compiler_wl_CXX='-Wl,'
10104 lt_prog_compiler_static_CXX='-non_shared'
10105 # CC pic flag -KPIC is the default.
10106 ;;
10107 *)
10108 ;;
10109 esac
10110 ;;
10111 linux*)
10112 case $cc_basename in
10113 KCC)
10114 # KAI C++ Compiler
10115 lt_prog_compiler_wl_CXX='--backend -Wl,'
10116 lt_prog_compiler_pic_CXX='-fPIC'
10117 ;;
10118 icpc)
10119 # Intel C++
10120 lt_prog_compiler_wl_CXX='-Wl,'
10121 lt_prog_compiler_pic_CXX='-KPIC'
10122 lt_prog_compiler_static_CXX='-static'
10123 ;;
10124 cxx)
10125 # Compaq C++
10126 # Make sure the PIC flag is empty. It appears that all Alpha
10127 # Linux and Compaq Tru64 Unix objects are PIC.
10128 lt_prog_compiler_pic_CXX=
10129 lt_prog_compiler_static_CXX='-non_shared'
10130 ;;
10131 *)
10132 ;;
10133 esac
10134 ;;
10135 lynxos*)
10136 ;;
10137 m88k*)
10138 ;;
10139 mvs*)
10140 case $cc_basename in
10141 cxx)
10142 lt_prog_compiler_pic_CXX='-W c,exportall'
10143 ;;
10144 *)
10145 ;;
10146 esac
10147 ;;
10148 netbsd*)
10149 ;;
10150 osf3* | osf4* | osf5*)
10151 case $cc_basename in
10152 KCC)
10153 lt_prog_compiler_wl_CXX='--backend -Wl,'
10154 ;;
10155 RCC)
10156 # Rational C++ 2.4.1
10157 lt_prog_compiler_pic_CXX='-pic'
10158 ;;
10159 cxx)
10160 # Digital/Compaq C++
10161 lt_prog_compiler_wl_CXX='-Wl,'
10162 # Make sure the PIC flag is empty. It appears that all Alpha
10163 # Linux and Compaq Tru64 Unix objects are PIC.
10164 lt_prog_compiler_pic_CXX=
10165 lt_prog_compiler_static_CXX='-non_shared'
10166 ;;
10167 *)
10168 ;;
10169 esac
10170 ;;
10171 psos*)
10172 ;;
10173 sco*)
10174 case $cc_basename in
10175 CC)
10176 lt_prog_compiler_pic_CXX='-fPIC'
10177 ;;
10178 *)
10179 ;;
10180 esac
10181 ;;
10182 solaris*)
10183 case $cc_basename in
10184 CC)
10185 # Sun C++ 4.2, 5.x and Centerline C++
10186 lt_prog_compiler_pic_CXX='-KPIC'
10187 lt_prog_compiler_static_CXX='-Bstatic'
10188 lt_prog_compiler_wl_CXX='-Qoption ld '
10189 ;;
10190 gcx)
10191 # Green Hills C++ Compiler
10192 lt_prog_compiler_pic_CXX='-PIC'
10193 ;;
10194 *)
10195 ;;
10196 esac
10197 ;;
10198 sunos4*)
10199 case $cc_basename in
10200 CC)
10201 # Sun C++ 4.x
10202 lt_prog_compiler_pic_CXX='-pic'
10203 lt_prog_compiler_static_CXX='-Bstatic'
10204 ;;
10205 lcc)
10206 # Lucid
10207 lt_prog_compiler_pic_CXX='-pic'
10208 ;;
10209 *)
10210 ;;
10211 esac
10212 ;;
10213 tandem*)
10214 case $cc_basename in
10215 NCC)
10216 # NonStop-UX NCC 3.20
10217 lt_prog_compiler_pic_CXX='-KPIC'
10218 ;;
10219 *)
10220 ;;
10221 esac
10222 ;;
10223 unixware*)
10224 ;;
10225 vxworks*)
10226 ;;
10227 *)
10228 lt_prog_compiler_can_build_shared_CXX=no
10229 ;;
10230 esac
10231 fi
10232
10233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10234echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10235
10236#
10237# Check to make sure the PIC flag actually works.
10238#
10239if test -n "$lt_prog_compiler_pic_CXX"; then
10240 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10241echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10242if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244else
10245 lt_prog_compiler_pic_works_CXX=no
10246 ac_outfile=conftest.$ac_objext
10247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10249 # Insert the option either (1) after the last *FLAGS variable, or
10250 # (2) before a word containing "conftest.", or (3) at the end.
10251 # Note that $ac_compile itself does not contain backslashes and begins
10252 # with a dollar sign (not a hyphen), so the echo should work correctly.
10253 # The option is referenced via a variable to avoid confusing sed.
10254 lt_compile=`echo "$ac_compile" | $SED \
10255 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10257 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000010258 (eval echo "\"\$as_me:10258: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010259 (eval "$lt_compile" 2>conftest.err)
10260 ac_status=$?
10261 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000010262 echo "$as_me:10262: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010263 if (exit $ac_status) && test -s "$ac_outfile"; then
10264 # The compiler can only warn and ignore the option if not recognized
10265 # So say no if there are warnings
10266 if test ! -s conftest.err; then
10267 lt_prog_compiler_pic_works_CXX=yes
10268 fi
10269 fi
10270 $rm conftest*
10271
10272fi
10273echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10274echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10275
10276if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10277 case $lt_prog_compiler_pic_CXX in
10278 "" | " "*) ;;
10279 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10280 esac
10281else
10282 lt_prog_compiler_pic_CXX=
10283 lt_prog_compiler_can_build_shared_CXX=no
10284fi
10285
10286fi
10287case "$host_os" in
10288 # For platforms which do not support PIC, -DPIC is meaningless:
10289 *djgpp*)
10290 lt_prog_compiler_pic_CXX=
10291 ;;
10292 *)
10293 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10294 ;;
10295esac
10296
10297echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10299if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 lt_cv_prog_compiler_c_o_CXX=no
10303 $rm -r conftest 2>/dev/null
10304 mkdir conftest
10305 cd conftest
10306 mkdir out
10307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10308
10309 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10310 # that will create temporary files in the current directory regardless of
10311 # the output directory. Thus, making CWD read-only will cause this test
10312 # to fail, enabling locking or at least warning the user not to do parallel
10313 # builds.
10314 chmod -w .
10315
10316 lt_compiler_flag="-o out/conftest2.$ac_objext"
10317 # Insert the option either (1) after the last *FLAGS variable, or
10318 # (2) before a word containing "conftest.", or (3) at the end.
10319 # Note that $ac_compile itself does not contain backslashes and begins
10320 # with a dollar sign (not a hyphen), so the echo should work correctly.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000010325 (eval echo "\"\$as_me:10325: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010326 (eval "$lt_compile" 2>out/conftest.err)
10327 ac_status=$?
10328 cat out/conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000010329 echo "$as_me:10329: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10331 then
10332 # The compiler can only warn and ignore the option if not recognized
10333 # So say no if there are warnings
10334 if test ! -s out/conftest.err; then
10335 lt_cv_prog_compiler_c_o_CXX=yes
10336 fi
10337 fi
10338 chmod u+w .
10339 $rm conftest* out/*
10340 rmdir out
10341 cd ..
10342 rmdir conftest
10343 $rm conftest*
10344
10345fi
10346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10347echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10348
10349
10350hard_links="nottested"
10351if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10352 # do not overwrite the value of need_locks provided by the user
10353 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10354echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10355 hard_links=yes
10356 $rm conftest*
10357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10358 touch conftest.a
10359 ln conftest.a conftest.b 2>&5 || hard_links=no
10360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10361 echo "$as_me:$LINENO: result: $hard_links" >&5
10362echo "${ECHO_T}$hard_links" >&6
10363 if test "$hard_links" = no; then
10364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10365echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10366 need_locks=warn
10367 fi
10368else
10369 need_locks=no
10370fi
10371
10372echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10373echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10374
10375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10376 case $host_os in
10377 aix4* | aix5*)
10378 # If we're using GNU nm, then we don't want the "-C" option.
10379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10381 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'
10382 else
10383 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'
10384 fi
10385 ;;
10386 pw32*)
10387 export_symbols_cmds_CXX="$ltdll_cmds"
10388 ;;
10389 cygwin* | mingw*)
10390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10391 ;;
10392 *)
10393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10394 ;;
10395 esac
10396
10397echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10398echo "${ECHO_T}$ld_shlibs_CXX" >&6
10399test "$ld_shlibs_CXX" = no && can_build_shared=no
10400
10401variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10402if test "$GCC" = yes; then
10403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10404fi
10405
10406#
10407# Do we need to explicitly link libc?
10408#
10409case "x$archive_cmds_need_lc_CXX" in
10410x|xyes)
10411 # Assume -lc should be added
10412 archive_cmds_need_lc_CXX=yes
10413
10414 if test "$enable_shared" = yes && test "$GCC" = yes; then
10415 case $archive_cmds_CXX in
10416 *'~'*)
10417 # FIXME: we may have to deal with multi-command sequences.
10418 ;;
10419 '$CC '*)
10420 # Test whether the compiler implicitly links with -lc since on some
10421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10422 # to ld, don't add -lc before -lgcc.
10423 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10424echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10425 $rm conftest*
10426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10427
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } 2>conftest.err; then
10433 soname=conftest
10434 lib=conftest
10435 libobjs=conftest.$ac_objext
10436 deplibs=
10437 wl=$lt_prog_compiler_wl_CXX
10438 compiler_flags=-v
10439 linker_flags=-v
10440 verstring=
10441 output_objdir=.
10442 libname=conftest
10443 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10444 allow_undefined_flag_CXX=
10445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10446 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }
10450 then
10451 archive_cmds_need_lc_CXX=no
10452 else
10453 archive_cmds_need_lc_CXX=yes
10454 fi
10455 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10456 else
10457 cat conftest.err 1>&5
10458 fi
10459 $rm conftest*
10460 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10461echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10462 ;;
10463 esac
10464 fi
10465 ;;
10466esac
10467
10468echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10469echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10470hardcode_action_CXX=
10471if test -n "$hardcode_libdir_flag_spec_CXX" || \
10472 test -n "$runpath_var CXX" || \
10473 test "X$hardcode_automatic_CXX"="Xyes" ; then
10474
10475 # We can hardcode non-existant directories.
10476 if test "$hardcode_direct_CXX" != no &&
10477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10478 # have to relink, otherwise we might link with an installed library
10479 # when we should be linking with a yet-to-be-installed one
10480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10481 test "$hardcode_minus_L_CXX" != no; then
10482 # Linking always hardcodes the temporary library directory.
10483 hardcode_action_CXX=relink
10484 else
10485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10486 hardcode_action_CXX=immediate
10487 fi
10488else
10489 # We cannot hardcode anything, or else we can only hardcode existing
10490 # directories.
10491 hardcode_action_CXX=unsupported
10492fi
10493echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10494echo "${ECHO_T}$hardcode_action_CXX" >&6
10495
10496if test "$hardcode_action_CXX" = relink; then
10497 # Fast installation is not supported
10498 enable_fast_install=no
10499elif test "$shlibpath_overrides_runpath" = yes ||
10500 test "$enable_shared" = no; then
10501 # Fast installation is not necessary
10502 enable_fast_install=needless
10503fi
10504
10505striplib=
10506old_striplib=
10507echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10508echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10509if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10512 echo "$as_me:$LINENO: result: yes" >&5
10513echo "${ECHO_T}yes" >&6
10514else
10515# FIXME - insert some real tests, host_os isn't really good enough
10516 case $host_os in
10517 darwin*)
10518 if test -n "$STRIP" ; then
10519 striplib="$STRIP -x"
10520 echo "$as_me:$LINENO: result: yes" >&5
10521echo "${ECHO_T}yes" >&6
10522 else
10523 echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6
10525fi
10526 ;;
10527 *)
10528 echo "$as_me:$LINENO: result: no" >&5
10529echo "${ECHO_T}no" >&6
10530 ;;
10531 esac
10532fi
10533
10534echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10536library_names_spec=
10537libname_spec='lib$name'
10538soname_spec=
10539shrext=".so"
10540postinstall_cmds=
10541postuninstall_cmds=
10542finish_cmds=
10543finish_eval=
10544shlibpath_var=
10545shlibpath_overrides_runpath=unknown
10546version_type=none
10547dynamic_linker="$host_os ld.so"
10548sys_lib_dlsearch_path_spec="/lib /usr/lib"
10549if test "$GCC" = yes; then
10550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10552 # if the path contains ";" then we assume it to be the separator
10553 # otherwise default to the standard path separator (i.e. ":") - it is
10554 # assumed that no part of a normal pathname contains ";" but that should
10555 # okay in the real world where ";" in dirpaths is itself problematic.
10556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557 else
10558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10559 fi
10560else
10561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10562fi
10563need_lib_prefix=unknown
10564hardcode_into_libs=no
10565
10566# when you set need_version to no, make sure it does not cause -set_version
10567# flags to be left without arguments
10568need_version=unknown
10569
10570case $host_os in
10571aix3*)
10572 version_type=linux
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10574 shlibpath_var=LIBPATH
10575
10576 # AIX 3 has no versioning support, so we append a major version to the name.
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 ;;
10579
10580aix4* | aix5*)
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 hardcode_into_libs=yes
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 supports IA64
10587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 else
10590 # With GCC up to 2.95.x, collect2 would create an import file
10591 # for dependence libraries. The import file would start with
10592 # the line `#! .'. This would cause the generated library to
10593 # depend on `.', always an invalid library. This was fixed in
10594 # development snapshots of GCC prior to 3.0.
10595 case $host_os in
10596 aix4 | aix4.[01] | aix4.[01].*)
10597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10598 echo ' yes '
10599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10600 :
10601 else
10602 can_build_shared=no
10603 fi
10604 ;;
10605 esac
10606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611 # instead of lib<name>.a to let people know that these are not
10612 # typical AIX shared libraries.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 else
10615 # We preserve .a as extension for shared libraries through AIX4.2
10616 # and later when we are not doing run time linking.
10617 library_names_spec='${libname}${release}.a $libname.a'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 fi
10620 shlibpath_var=LIBPATH
10621 fi
10622 ;;
10623
10624amigaos*)
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 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'
10628 ;;
10629
10630beos*)
10631 library_names_spec='${libname}${shared_ext}'
10632 dynamic_linker="$host_os ld.so"
10633 shlibpath_var=LIBRARY_PATH
10634 ;;
10635
10636bsdi4*)
10637 version_type=linux
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645 # the default ld.so.conf also contains /usr/contrib/lib and
10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647 # libtool to hard-code these into programs
10648 ;;
10649
10650cygwin* | mingw* | pw32*)
10651 version_type=windows
10652 shrext=".dll"
10653 need_version=no
10654 need_lib_prefix=no
10655
10656 case $GCC,$host_os in
10657 yes,cygwin* | yes,mingw* | yes,pw32*)
10658 library_names_spec='$libname.dll.a'
10659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660 postinstall_cmds='base_file=`basename \${file}`~
10661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10662 dldir=$destdir/`dirname \$dlpath`~
10663 test -d \$dldir || mkdir -p \$dldir~
10664 $install_prog $dir/$dlname \$dldir/$dlname'
10665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10666 dlpath=$dir/\$dldll~
10667 $rm \$dlpath'
10668 shlibpath_overrides_runpath=yes
10669
10670 case $host_os in
10671 cygwin*)
10672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10675 ;;
10676 mingw*)
10677 # MinGW DLLs use traditional 'lib' prefix
10678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10681 # It is most probably a Windows format PATH printed by
10682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10683 # path with ; separators, and with drive letters. We can handle the
10684 # drive letters (cygwin fileutils understands them), so leave them,
10685 # especially as we might pass files found there to a mingw objdump,
10686 # which wouldn't understand a cygwinified path. Ahh.
10687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10688 else
10689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10690 fi
10691 ;;
10692 pw32*)
10693 # pw32 DLLs use 'pw' prefix rather than 'lib'
10694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10695 ;;
10696 esac
10697 ;;
10698
10699 *)
10700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10701 ;;
10702 esac
10703 dynamic_linker='Win32 ld.exe'
10704 # FIXME: first we should search . and the directory the executable is in
10705 shlibpath_var=PATH
10706 ;;
10707
10708darwin* | rhapsody*)
10709 dynamic_linker="$host_os dyld"
10710 version_type=darwin
10711 need_lib_prefix=no
10712 need_version=no
10713 # FIXME: Relying on posixy $() will cause problems for
10714 # cross-compilation, but unfortunately the echo tests do not
10715 # yet detect zsh echo's removal of \ escapes.
10716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10717 soname_spec='${libname}${release}${major}$shared_ext'
10718 shlibpath_overrides_runpath=yes
10719 shlibpath_var=DYLD_LIBRARY_PATH
10720 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10722 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10723 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"`
10724 fi
10725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10726 ;;
10727
10728dgux*)
10729 version_type=linux
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 ;;
10736
10737freebsd1*)
10738 dynamic_linker=no
10739 ;;
10740
10741freebsd*)
10742 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10743 version_type=freebsd-$objformat
10744 case $version_type in
10745 freebsd-elf*)
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10747 need_version=no
10748 need_lib_prefix=no
10749 ;;
10750 freebsd-*)
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10752 need_version=yes
10753 ;;
10754 esac
10755 shlibpath_var=LD_LIBRARY_PATH
10756 case $host_os in
10757 freebsd2*)
10758 shlibpath_overrides_runpath=yes
10759 ;;
10760 freebsd3.01* | freebsdelf3.01*)
10761 shlibpath_overrides_runpath=yes
10762 hardcode_into_libs=yes
10763 ;;
10764 *) # from 3.2 on
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 ;;
10768 esac
10769 ;;
10770
10771gnu*)
10772 version_type=linux
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 hardcode_into_libs=yes
10779 ;;
10780
10781hpux9* | hpux10* | hpux11*)
10782 # Give a soname corresponding to the major version so that dld.sl refuses to
10783 # link against other versions.
10784 version_type=sunos
10785 need_lib_prefix=no
10786 need_version=no
10787 case "$host_cpu" in
10788 ia64*)
10789 shrext='.so'
10790 hardcode_into_libs=yes
10791 dynamic_linker="$host_os dld.so"
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 if test "X$HPUX_IA64_MODE" = X32; then
10797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10798 else
10799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10800 fi
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10802 ;;
10803 hppa*64*)
10804 shrext='.sl'
10805 hardcode_into_libs=yes
10806 dynamic_linker="$host_os dld.sl"
10807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10813 ;;
10814 *)
10815 shrext='.sl'
10816 dynamic_linker="$host_os dld.sl"
10817 shlibpath_var=SHLIB_PATH
10818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 ;;
10822 esac
10823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10824 postinstall_cmds='chmod 555 $lib'
10825 ;;
10826
10827irix5* | irix6* | nonstopux*)
10828 case $host_os in
10829 nonstopux*) version_type=nonstopux ;;
10830 *)
10831 if test "$lt_cv_prog_gnu_ld" = yes; then
10832 version_type=linux
10833 else
10834 version_type=irix
10835 fi ;;
10836 esac
10837 need_lib_prefix=no
10838 need_version=no
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10841 case $host_os in
10842 irix5* | nonstopux*)
10843 libsuff= shlibsuff=
10844 ;;
10845 *)
10846 case $LD in # libtool.m4 will add one of these switches to LD
10847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10848 libsuff= shlibsuff= libmagic=32-bit;;
10849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10850 libsuff=32 shlibsuff=N32 libmagic=N32;;
10851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10853 *) libsuff= shlibsuff= libmagic=never-match;;
10854 esac
10855 ;;
10856 esac
10857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10858 shlibpath_overrides_runpath=no
10859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10861 hardcode_into_libs=yes
10862 ;;
10863
10864# No shared lib support for Linux oldld, aout, or coff.
10865linux*oldld* | linux*aout* | linux*coff*)
10866 dynamic_linker=no
10867 ;;
10868
10869# This must be Linux ELF.
10870linux*)
10871 version_type=linux
10872 need_lib_prefix=no
10873 need_version=no
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=no
10879 # This implies no fast_install, which is unacceptable.
10880 # Some rework will be needed to allow for fast_install
10881 # before this can be enabled.
10882 hardcode_into_libs=yes
10883
10884 # We used to test for /lib/ld.so.1 and disable shared libraries on
10885 # powerpc, because MkLinux only supported shared libraries with the
10886 # GNU dynamic linker. Since this was broken with cross compilers,
10887 # most powerpc-linux boxes support dynamic linking these days and
10888 # people can always --disable-shared, the test was removed, and we
10889 # assume the GNU/Linux dynamic linker is in use.
10890 dynamic_linker='GNU/Linux ld.so'
10891 ;;
10892
10893netbsd*)
10894 version_type=sunos
10895 need_lib_prefix=no
10896 need_version=no
10897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10900 dynamic_linker='NetBSD (a.out) ld.so'
10901 else
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 dynamic_linker='NetBSD ld.elf_so'
10905 fi
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10909 ;;
10910
10911newsos6)
10912 version_type=linux
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=yes
10916 ;;
10917
10918nto-qnx)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=yes
10926 ;;
10927
10928openbsd*)
10929 version_type=sunos
10930 need_lib_prefix=no
10931 need_version=no
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10936 case $host_os in
10937 openbsd2.[89] | openbsd2.[89].*)
10938 shlibpath_overrides_runpath=no
10939 ;;
10940 *)
10941 shlibpath_overrides_runpath=yes
10942 ;;
10943 esac
10944 else
10945 shlibpath_overrides_runpath=yes
10946 fi
10947 ;;
10948
10949os2*)
10950 libname_spec='$name'
10951 shrext=".dll"
10952 need_lib_prefix=no
10953 library_names_spec='$libname${shared_ext} $libname.a'
10954 dynamic_linker='OS/2 ld.exe'
10955 shlibpath_var=LIBPATH
10956 ;;
10957
10958osf3* | osf4* | osf5*)
10959 version_type=osf
10960 need_lib_prefix=no
10961 need_version=no
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10967 ;;
10968
10969sco3.2v5*)
10970 version_type=osf
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 ;;
10975
10976solaris*)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=yes
10984 hardcode_into_libs=yes
10985 # ldd complains unless libraries are executable
10986 postinstall_cmds='chmod +x $lib'
10987 ;;
10988
10989sunos4*)
10990 version_type=sunos
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
10995 if test "$with_gnu_ld" = yes; then
10996 need_lib_prefix=no
10997 fi
10998 need_version=yes
10999 ;;
11000
11001sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11002 version_type=linux
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 case $host_vendor in
11007 sni)
11008 shlibpath_overrides_runpath=no
11009 need_lib_prefix=no
11010 export_dynamic_flag_spec='${wl}-Blargedynsym'
11011 runpath_var=LD_RUN_PATH
11012 ;;
11013 siemens)
11014 need_lib_prefix=no
11015 ;;
11016 motorola)
11017 need_lib_prefix=no
11018 need_version=no
11019 shlibpath_overrides_runpath=no
11020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11021 ;;
11022 esac
11023 ;;
11024
11025sysv4*MP*)
11026 if test -d /usr/nec ;then
11027 version_type=linux
11028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11029 soname_spec='$libname${shared_ext}.$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 fi
11032 ;;
11033
11034uts4*)
11035 version_type=linux
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 ;;
11040
11041*)
11042 dynamic_linker=no
11043 ;;
11044esac
11045echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11046echo "${ECHO_T}$dynamic_linker" >&6
11047test "$dynamic_linker" = no && can_build_shared=no
11048
11049if test "x$enable_dlopen" != xyes; then
11050 enable_dlopen=unknown
11051 enable_dlopen_self=unknown
11052 enable_dlopen_self_static=unknown
11053else
11054 lt_cv_dlopen=no
11055 lt_cv_dlopen_libs=
11056
11057 case $host_os in
11058 beos*)
11059 lt_cv_dlopen="load_add_on"
11060 lt_cv_dlopen_libs=
11061 lt_cv_dlopen_self=yes
11062 ;;
11063
11064 mingw* | pw32*)
11065 lt_cv_dlopen="LoadLibrary"
11066 lt_cv_dlopen_libs=
11067 ;;
11068
11069 cygwin*)
11070 lt_cv_dlopen="dlopen"
11071 lt_cv_dlopen_libs=
11072 ;;
11073
11074 darwin*)
11075 # if libdl is installed we need to link against it
11076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11078if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 ac_check_lib_save_LIBS=$LIBS
11082LIBS="-ldl $LIBS"
11083cat >conftest.$ac_ext <<_ACEOF
11084#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011085/* confdefs.h. */
11086_ACEOF
11087cat confdefs.h >>conftest.$ac_ext
11088cat >>conftest.$ac_ext <<_ACEOF
11089/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011090
11091/* Override any gcc2 internal prototype to avoid an error. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095/* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */
11097char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011098int
11099main ()
11100{
11101dlopen ();
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106rm -f conftest.$ac_objext conftest$ac_exeext
11107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_lib_dl_dlopen=yes
11119else
11120 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011121sed 's/^/| /' conftest.$ac_ext >&5
11122
John Criswell47fdd832003-07-14 16:52:07 +000011123ac_cv_lib_dl_dlopen=no
11124fi
11125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11126LIBS=$ac_check_lib_save_LIBS
11127fi
11128echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11130if test $ac_cv_lib_dl_dlopen = yes; then
11131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11132else
11133
11134 lt_cv_dlopen="dyld"
11135 lt_cv_dlopen_libs=
11136 lt_cv_dlopen_self=yes
11137
11138fi
11139
11140 ;;
11141
11142 *)
11143 echo "$as_me:$LINENO: checking for shl_load" >&5
11144echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11145if test "${ac_cv_func_shl_load+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 cat >conftest.$ac_ext <<_ACEOF
11149#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011155/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011156 which can conflict with char shl_load (); below.
11157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158 <limits.h> exists even on freestanding compilers. */
11159#ifdef __STDC__
11160# include <limits.h>
11161#else
11162# include <assert.h>
11163#endif
John Criswell47fdd832003-07-14 16:52:07 +000011164/* Override any gcc2 internal prototype to avoid an error. */
11165#ifdef __cplusplus
11166extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011167{
John Criswell47fdd832003-07-14 16:52:07 +000011168#endif
11169/* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11171char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011172/* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175#if defined (__stub_shl_load) || defined (__stub___shl_load)
11176choke me
11177#else
John Criswell392aaa32003-07-22 19:18:09 +000011178char (*f) () = shl_load;
11179#endif
11180#ifdef __cplusplus
11181}
John Criswell47fdd832003-07-14 16:52:07 +000011182#endif
11183
John Criswell392aaa32003-07-22 19:18:09 +000011184int
11185main ()
11186{
11187return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011188 ;
11189 return 0;
11190}
11191_ACEOF
11192rm -f conftest.$ac_objext conftest$ac_exeext
11193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func_shl_load=yes
11205else
11206 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011207sed 's/^/| /' conftest.$ac_ext >&5
11208
John Criswell47fdd832003-07-14 16:52:07 +000011209ac_cv_func_shl_load=no
11210fi
11211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11212fi
11213echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11214echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11215if test $ac_cv_func_shl_load = yes; then
11216 lt_cv_dlopen="shl_load"
11217else
11218 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11219echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11220if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 ac_check_lib_save_LIBS=$LIBS
11224LIBS="-ldld $LIBS"
11225cat >conftest.$ac_ext <<_ACEOF
11226#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011232
11233/* Override any gcc2 internal prototype to avoid an error. */
11234#ifdef __cplusplus
11235extern "C"
11236#endif
11237/* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11239char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011240int
11241main ()
11242{
11243shl_load ();
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248rm -f conftest.$ac_objext conftest$ac_exeext
11249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_dld_shl_load=yes
11261else
11262 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011263sed 's/^/| /' conftest.$ac_ext >&5
11264
John Criswell47fdd832003-07-14 16:52:07 +000011265ac_cv_lib_dld_shl_load=no
11266fi
11267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268LIBS=$ac_check_lib_save_LIBS
11269fi
11270echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11271echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11272if test $ac_cv_lib_dld_shl_load = yes; then
11273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11274else
11275 echo "$as_me:$LINENO: checking for dlopen" >&5
11276echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11277if test "${ac_cv_func_dlopen+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 cat >conftest.$ac_ext <<_ACEOF
11281#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011287/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011288 which can conflict with char dlopen (); below.
11289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 <limits.h> exists even on freestanding compilers. */
11291#ifdef __STDC__
11292# include <limits.h>
11293#else
11294# include <assert.h>
11295#endif
John Criswell47fdd832003-07-14 16:52:07 +000011296/* Override any gcc2 internal prototype to avoid an error. */
11297#ifdef __cplusplus
11298extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011299{
John Criswell47fdd832003-07-14 16:52:07 +000011300#endif
11301/* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11303char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011304/* The GNU C library defines this for functions which it implements
11305 to always fail with ENOSYS. Some functions are actually named
11306 something starting with __ and the normal name is an alias. */
11307#if defined (__stub_dlopen) || defined (__stub___dlopen)
11308choke me
11309#else
John Criswell392aaa32003-07-22 19:18:09 +000011310char (*f) () = dlopen;
11311#endif
11312#ifdef __cplusplus
11313}
John Criswell47fdd832003-07-14 16:52:07 +000011314#endif
11315
John Criswell392aaa32003-07-22 19:18:09 +000011316int
11317main ()
11318{
11319return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext conftest$ac_exeext
11325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_func_dlopen=yes
11337else
11338 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011339sed 's/^/| /' conftest.$ac_ext >&5
11340
John Criswell47fdd832003-07-14 16:52:07 +000011341ac_cv_func_dlopen=no
11342fi
11343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11344fi
11345echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11346echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11347if test $ac_cv_func_dlopen = yes; then
11348 lt_cv_dlopen="dlopen"
11349else
11350 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11351echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11352if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 ac_check_lib_save_LIBS=$LIBS
11356LIBS="-ldl $LIBS"
11357cat >conftest.$ac_ext <<_ACEOF
11358#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011364
11365/* Override any gcc2 internal prototype to avoid an error. */
11366#ifdef __cplusplus
11367extern "C"
11368#endif
11369/* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11371char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011372int
11373main ()
11374{
11375dlopen ();
11376 ;
11377 return 0;
11378}
11379_ACEOF
11380rm -f conftest.$ac_objext conftest$ac_exeext
11381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_lib_dl_dlopen=yes
11393else
11394 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011395sed 's/^/| /' conftest.$ac_ext >&5
11396
John Criswell47fdd832003-07-14 16:52:07 +000011397ac_cv_lib_dl_dlopen=no
11398fi
11399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400LIBS=$ac_check_lib_save_LIBS
11401fi
11402echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11403echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11404if test $ac_cv_lib_dl_dlopen = yes; then
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11406else
11407 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11408echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11409if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_check_lib_save_LIBS=$LIBS
11413LIBS="-lsvld $LIBS"
11414cat >conftest.$ac_ext <<_ACEOF
11415#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011421
11422/* Override any gcc2 internal prototype to avoid an error. */
11423#ifdef __cplusplus
11424extern "C"
11425#endif
11426/* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11428char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011429int
11430main ()
11431{
11432dlopen ();
11433 ;
11434 return 0;
11435}
11436_ACEOF
11437rm -f conftest.$ac_objext conftest$ac_exeext
11438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -s conftest$ac_exeext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_lib_svld_dlopen=yes
11450else
11451 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011452sed 's/^/| /' conftest.$ac_ext >&5
11453
John Criswell47fdd832003-07-14 16:52:07 +000011454ac_cv_lib_svld_dlopen=no
11455fi
11456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11457LIBS=$ac_check_lib_save_LIBS
11458fi
11459echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11460echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11461if test $ac_cv_lib_svld_dlopen = yes; then
11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11463else
11464 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11465echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11466if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 ac_check_lib_save_LIBS=$LIBS
11470LIBS="-ldld $LIBS"
11471cat >conftest.$ac_ext <<_ACEOF
11472#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011478
11479/* Override any gcc2 internal prototype to avoid an error. */
11480#ifdef __cplusplus
11481extern "C"
11482#endif
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011486int
11487main ()
11488{
11489dld_link ();
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext conftest$ac_exeext
11495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_lib_dld_dld_link=yes
11507else
11508 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011509sed 's/^/| /' conftest.$ac_ext >&5
11510
John Criswell47fdd832003-07-14 16:52:07 +000011511ac_cv_lib_dld_dld_link=no
11512fi
11513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514LIBS=$ac_check_lib_save_LIBS
11515fi
11516echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11517echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11518if test $ac_cv_lib_dld_dld_link = yes; then
11519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11520fi
11521
11522
11523fi
11524
11525
11526fi
11527
11528
11529fi
11530
11531
11532fi
11533
11534
11535fi
11536
11537 ;;
11538 esac
11539
11540 if test "x$lt_cv_dlopen" != xno; then
11541 enable_dlopen=yes
11542 else
11543 enable_dlopen=no
11544 fi
11545
11546 case $lt_cv_dlopen in
11547 dlopen)
11548 save_CPPFLAGS="$CPPFLAGS"
11549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11550
11551 save_LDFLAGS="$LDFLAGS"
11552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11553
11554 save_LIBS="$LIBS"
11555 LIBS="$lt_cv_dlopen_libs $LIBS"
11556
11557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11558echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11559if test "${lt_cv_dlopen_self+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562 if test "$cross_compiling" = yes; then :
11563 lt_cv_dlopen_self=cross
11564else
11565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566 lt_status=$lt_dlunknown
11567 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +000011568#line 11568 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011569#include "confdefs.h"
11570
11571#if HAVE_DLFCN_H
11572#include <dlfcn.h>
11573#endif
11574
11575#include <stdio.h>
11576
11577#ifdef RTLD_GLOBAL
11578# define LT_DLGLOBAL RTLD_GLOBAL
11579#else
11580# ifdef DL_GLOBAL
11581# define LT_DLGLOBAL DL_GLOBAL
11582# else
11583# define LT_DLGLOBAL 0
11584# endif
11585#endif
11586
11587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588 find out it does not work in some platform. */
11589#ifndef LT_DLLAZY_OR_NOW
11590# ifdef RTLD_LAZY
11591# define LT_DLLAZY_OR_NOW RTLD_LAZY
11592# else
11593# ifdef DL_LAZY
11594# define LT_DLLAZY_OR_NOW DL_LAZY
11595# else
11596# ifdef RTLD_NOW
11597# define LT_DLLAZY_OR_NOW RTLD_NOW
11598# else
11599# ifdef DL_NOW
11600# define LT_DLLAZY_OR_NOW DL_NOW
11601# else
11602# define LT_DLLAZY_OR_NOW 0
11603# endif
11604# endif
11605# endif
11606# endif
11607#endif
11608
11609#ifdef __cplusplus
11610extern "C" void exit (int);
11611#endif
11612
11613void fnord() { int i=42;}
11614int main ()
11615{
11616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617 int status = $lt_dlunknown;
11618
11619 if (self)
11620 {
11621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623 /* dlclose (self); */
11624 }
11625
11626 exit (status);
11627}
11628EOF
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11634 (./conftest; exit; ) 2>/dev/null
11635 lt_status=$?
11636 case x$lt_status in
11637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11640 esac
11641 else :
11642 # compilation failed
11643 lt_cv_dlopen_self=no
11644 fi
11645fi
11646rm -fr conftest*
11647
11648
11649fi
11650echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11651echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11652
11653 if test "x$lt_cv_dlopen_self" = xyes; then
11654 LDFLAGS="$LDFLAGS $link_static_flag"
11655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11656echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11657if test "${lt_cv_dlopen_self_static+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 if test "$cross_compiling" = yes; then :
11661 lt_cv_dlopen_self_static=cross
11662else
11663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11664 lt_status=$lt_dlunknown
11665 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +000011666#line 11666 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011667#include "confdefs.h"
11668
11669#if HAVE_DLFCN_H
11670#include <dlfcn.h>
11671#endif
11672
11673#include <stdio.h>
11674
11675#ifdef RTLD_GLOBAL
11676# define LT_DLGLOBAL RTLD_GLOBAL
11677#else
11678# ifdef DL_GLOBAL
11679# define LT_DLGLOBAL DL_GLOBAL
11680# else
11681# define LT_DLGLOBAL 0
11682# endif
11683#endif
11684
11685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11686 find out it does not work in some platform. */
11687#ifndef LT_DLLAZY_OR_NOW
11688# ifdef RTLD_LAZY
11689# define LT_DLLAZY_OR_NOW RTLD_LAZY
11690# else
11691# ifdef DL_LAZY
11692# define LT_DLLAZY_OR_NOW DL_LAZY
11693# else
11694# ifdef RTLD_NOW
11695# define LT_DLLAZY_OR_NOW RTLD_NOW
11696# else
11697# ifdef DL_NOW
11698# define LT_DLLAZY_OR_NOW DL_NOW
11699# else
11700# define LT_DLLAZY_OR_NOW 0
11701# endif
11702# endif
11703# endif
11704# endif
11705#endif
11706
11707#ifdef __cplusplus
11708extern "C" void exit (int);
11709#endif
11710
11711void fnord() { int i=42;}
11712int main ()
11713{
11714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11715 int status = $lt_dlunknown;
11716
11717 if (self)
11718 {
11719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721 /* dlclose (self); */
11722 }
11723
11724 exit (status);
11725}
11726EOF
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11732 (./conftest; exit; ) 2>/dev/null
11733 lt_status=$?
11734 case x$lt_status in
11735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11738 esac
11739 else :
11740 # compilation failed
11741 lt_cv_dlopen_self_static=no
11742 fi
11743fi
11744rm -fr conftest*
11745
11746
11747fi
11748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11749echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11750 fi
11751
11752 CPPFLAGS="$save_CPPFLAGS"
11753 LDFLAGS="$save_LDFLAGS"
11754 LIBS="$save_LIBS"
11755 ;;
11756 esac
11757
11758 case $lt_cv_dlopen_self in
11759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11760 *) enable_dlopen_self=unknown ;;
11761 esac
11762
11763 case $lt_cv_dlopen_self_static in
11764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11765 *) enable_dlopen_self_static=unknown ;;
11766 esac
11767fi
11768
11769
11770# The else clause should only fire when bootstrapping the
11771# libtool distribution, otherwise you forgot to ship ltmain.sh
11772# with your package, and you will get complaints that there are
11773# no rules to generate ltmain.sh.
11774if test -f "$ltmain"; then
11775 # See if we are running on zsh, and set the options which allow our commands through
11776 # without removal of \ escapes.
11777 if test -n "${ZSH_VERSION+set}" ; then
11778 setopt NO_GLOB_SUBST
11779 fi
11780 # Now quote all the things that may contain metacharacters while being
11781 # careful not to overquote the AC_SUBSTed values. We take copies of the
11782 # variables and quote the copies for generation of the libtool script.
11783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11786 deplibs_check_method reload_flag reload_cmds need_locks \
11787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11788 lt_cv_sys_global_symbol_to_c_name_address \
11789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11790 old_postinstall_cmds old_postuninstall_cmds \
11791 compiler_CXX \
11792 CC_CXX \
11793 LD_CXX \
11794 lt_prog_compiler_wl_CXX \
11795 lt_prog_compiler_pic_CXX \
11796 lt_prog_compiler_static_CXX \
11797 lt_prog_compiler_no_builtin_flag_CXX \
11798 export_dynamic_flag_spec_CXX \
11799 thread_safe_flag_spec_CXX \
11800 whole_archive_flag_spec_CXX \
11801 enable_shared_with_static_runtimes_CXX \
11802 old_archive_cmds_CXX \
11803 old_archive_from_new_cmds_CXX \
11804 predep_objects_CXX \
11805 postdep_objects_CXX \
11806 predeps_CXX \
11807 postdeps_CXX \
11808 compiler_lib_search_path_CXX \
11809 archive_cmds_CXX \
11810 archive_expsym_cmds_CXX \
11811 postinstall_cmds_CXX \
11812 postuninstall_cmds_CXX \
11813 old_archive_from_expsyms_cmds_CXX \
11814 allow_undefined_flag_CXX \
11815 no_undefined_flag_CXX \
11816 export_symbols_cmds_CXX \
11817 hardcode_libdir_flag_spec_CXX \
11818 hardcode_libdir_flag_spec_ld_CXX \
11819 hardcode_libdir_separator_CXX \
11820 hardcode_automatic_CXX \
11821 module_cmds_CXX \
11822 module_expsym_cmds_CXX \
11823 lt_cv_prog_compiler_c_o_CXX \
11824 exclude_expsyms_CXX \
11825 include_expsyms_CXX; do
11826
11827 case $var in
11828 old_archive_cmds_CXX | \
11829 old_archive_from_new_cmds_CXX | \
11830 archive_cmds_CXX | \
11831 archive_expsym_cmds_CXX | \
11832 module_cmds_CXX | \
11833 module_expsym_cmds_CXX | \
11834 old_archive_from_expsyms_cmds_CXX | \
11835 export_symbols_cmds_CXX | \
11836 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11837 postinstall_cmds | postuninstall_cmds | \
11838 old_postinstall_cmds | old_postuninstall_cmds | \
11839 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11840 # Double-quote double-evaled strings.
11841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11842 ;;
11843 *)
11844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11845 ;;
11846 esac
11847 done
11848
11849 case $lt_echo in
11850 *'\$0 --fallback-echo"')
11851 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11852 ;;
11853 esac
11854
11855cfgfile="$ofile"
11856
11857 cat <<__EOF__ >> "$cfgfile"
11858# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11859
11860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11861
11862# Shell to use when invoking shell scripts.
11863SHELL=$lt_SHELL
11864
11865# Whether or not to build shared libraries.
11866build_libtool_libs=$enable_shared
11867
11868# Whether or not to build static libraries.
11869build_old_libs=$enable_static
11870
11871# Whether or not to add -lc for building shared libraries.
11872build_libtool_need_lc=$archive_cmds_need_lc_CXX
11873
11874# Whether or not to disallow shared libs when runtime libs are static
11875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11876
11877# Whether or not to optimize for fast installation.
11878fast_install=$enable_fast_install
11879
11880# The host system.
11881host_alias=$host_alias
11882host=$host
11883
11884# An echo program that does not interpret backslashes.
11885echo=$lt_echo
11886
11887# The archiver.
11888AR=$lt_AR
11889AR_FLAGS=$lt_AR_FLAGS
11890
11891# A C compiler.
11892LTCC=$lt_LTCC
11893
11894# A language-specific compiler.
11895CC=$lt_compiler_CXX
11896
11897# Is the compiler the GNU C compiler?
11898with_gcc=$GCC_CXX
11899
11900# An ERE matcher.
11901EGREP=$lt_EGREP
11902
11903# The linker used to build libraries.
11904LD=$lt_LD_CXX
11905
11906# Whether we need hard or soft links.
11907LN_S=$lt_LN_S
11908
11909# A BSD-compatible nm program.
11910NM=$lt_NM
11911
11912# A symbol stripping program
11913STRIP=$STRIP
11914
11915# Used to examine libraries when file_magic_cmd begins "file"
11916MAGIC_CMD=$MAGIC_CMD
11917
11918# Used on cygwin: DLL creation program.
11919DLLTOOL="$DLLTOOL"
11920
11921# Used on cygwin: object dumper.
11922OBJDUMP="$OBJDUMP"
11923
11924# Used on cygwin: assembler.
11925AS="$AS"
11926
11927# The name of the directory that contains temporary libtool files.
11928objdir=$objdir
11929
11930# How to create reloadable object files.
11931reload_flag=$lt_reload_flag
11932reload_cmds=$lt_reload_cmds
11933
11934# How to pass a linker flag through the compiler.
11935wl=$lt_lt_prog_compiler_wl_CXX
11936
11937# Object file suffix (normally "o").
11938objext="$ac_objext"
11939
11940# Old archive suffix (normally "a").
11941libext="$libext"
11942
11943# Shared library suffix (normally ".so").
11944shrext='$shrext'
11945
11946# Executable file suffix (normally "").
11947exeext="$exeext"
11948
11949# Additional compiler flags for building library objects.
11950pic_flag=$lt_lt_prog_compiler_pic_CXX
11951pic_mode=$pic_mode
11952
11953# What is the maximum length of a command?
11954max_cmd_len=$lt_cv_sys_max_cmd_len
11955
11956# Does compiler simultaneously support -c and -o options?
11957compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11958
11959# Must we lock files when doing compilation ?
11960need_locks=$lt_need_locks
11961
11962# Do we need the lib prefix for modules?
11963need_lib_prefix=$need_lib_prefix
11964
11965# Do we need a version for libraries?
11966need_version=$need_version
11967
11968# Whether dlopen is supported.
11969dlopen_support=$enable_dlopen
11970
11971# Whether dlopen of programs is supported.
11972dlopen_self=$enable_dlopen_self
11973
11974# Whether dlopen of statically linked programs is supported.
11975dlopen_self_static=$enable_dlopen_self_static
11976
11977# Compiler flag to prevent dynamic linking.
11978link_static_flag=$lt_lt_prog_compiler_static_CXX
11979
11980# Compiler flag to turn off builtin functions.
11981no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11982
11983# Compiler flag to allow reflexive dlopens.
11984export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11985
11986# Compiler flag to generate shared objects directly from archives.
11987whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11988
11989# Compiler flag to generate thread-safe objects.
11990thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11991
11992# Library versioning type.
11993version_type=$version_type
11994
11995# Format of library name prefix.
11996libname_spec=$lt_libname_spec
11997
11998# List of archive names. First name is the real one, the rest are links.
11999# The last name is the one that the linker finds with -lNAME.
12000library_names_spec=$lt_library_names_spec
12001
12002# The coded name of the library, if different from the real name.
12003soname_spec=$lt_soname_spec
12004
12005# Commands used to build and install an old-style archive.
12006RANLIB=$lt_RANLIB
12007old_archive_cmds=$lt_old_archive_cmds_CXX
12008old_postinstall_cmds=$lt_old_postinstall_cmds
12009old_postuninstall_cmds=$lt_old_postuninstall_cmds
12010
12011# Create an old-style archive from a shared archive.
12012old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12013
12014# Create a temporary old-style archive to link instead of a shared archive.
12015old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12016
12017# Commands used to build and install a shared archive.
12018archive_cmds=$lt_archive_cmds_CXX
12019archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12020postinstall_cmds=$lt_postinstall_cmds
12021postuninstall_cmds=$lt_postuninstall_cmds
12022
12023# Commands used to build a loadable module (assumed same as above if empty)
12024module_cmds=$lt_module_cmds_CXX
12025module_expsym_cmds=$lt_module_expsym_cmds_CXX
12026
12027# Commands to strip libraries.
12028old_striplib=$lt_old_striplib
12029striplib=$lt_striplib
12030
12031# Dependencies to place before the objects being linked to create a
12032# shared library.
12033predep_objects=$lt_predep_objects_CXX
12034
12035# Dependencies to place after the objects being linked to create a
12036# shared library.
12037postdep_objects=$lt_postdep_objects_CXX
12038
12039# Dependencies to place before the objects being linked to create a
12040# shared library.
12041predeps=$lt_predeps_CXX
12042
12043# Dependencies to place after the objects being linked to create a
12044# shared library.
12045postdeps=$lt_postdeps_CXX
12046
12047# The library search path used internally by the compiler when linking
12048# a shared library.
12049compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12050
12051# Method to check whether dependent libraries are shared objects.
12052deplibs_check_method=$lt_deplibs_check_method
12053
12054# Command to use when deplibs_check_method == file_magic.
12055file_magic_cmd=$lt_file_magic_cmd
12056
12057# Flag that allows shared libraries with undefined symbols to be built.
12058allow_undefined_flag=$lt_allow_undefined_flag_CXX
12059
12060# Flag that forces no undefined symbols.
12061no_undefined_flag=$lt_no_undefined_flag_CXX
12062
12063# Commands used to finish a libtool library installation in a directory.
12064finish_cmds=$lt_finish_cmds
12065
12066# Same as above, but a single script fragment to be evaled but not shown.
12067finish_eval=$lt_finish_eval
12068
12069# Take the output of nm and produce a listing of raw symbols and C names.
12070global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12071
12072# Transform the output of nm in a proper C declaration
12073global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12074
12075# Transform the output of nm in a C name address pair
12076global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12077
12078# This is the shared library runtime path variable.
12079runpath_var=$runpath_var
12080
12081# This is the shared library path variable.
12082shlibpath_var=$shlibpath_var
12083
12084# Is shlibpath searched before the hard-coded library search path?
12085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12086
12087# How to hardcode a shared library path into an executable.
12088hardcode_action=$hardcode_action_CXX
12089
12090# Whether we should hardcode library paths into libraries.
12091hardcode_into_libs=$hardcode_into_libs
12092
12093# Flag to hardcode \$libdir into a binary during linking.
12094# This must work even if \$libdir does not exist.
12095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12096
12097# If ld is used when linking, flag to hardcode \$libdir into
12098# a binary during linking. This must work even if \$libdir does
12099# not exist.
12100hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12101
12102# Whether we need a single -rpath flag with a separated argument.
12103hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12104
12105# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106# resulting binary.
12107hardcode_direct=$hardcode_direct_CXX
12108
12109# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110# resulting binary.
12111hardcode_minus_L=$hardcode_minus_L_CXX
12112
12113# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114# the resulting binary.
12115hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12116
12117# Set to yes if building a shared library automatically hardcodes DIR into the library
12118# and all subsequent libraries and executables linked against it.
12119hardcode_automatic=$hardcode_automatic_CXX
12120
12121# Variables whose values should be saved in libtool wrapper scripts and
12122# restored at relink time.
12123variables_saved_for_relink="$variables_saved_for_relink"
12124
12125# Whether libtool must link a program against all its dependency libraries.
12126link_all_deplibs=$link_all_deplibs_CXX
12127
12128# Compile-time system search path for libraries
12129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12130
12131# Run-time system search path for libraries
12132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12133
12134# Fix the shell variable \$srcfile for the compiler.
12135fix_srcfile_path="$fix_srcfile_path_CXX"
12136
12137# Set to yes if exported symbols are required.
12138always_export_symbols=$always_export_symbols_CXX
12139
12140# The commands to list exported symbols.
12141export_symbols_cmds=$lt_export_symbols_cmds_CXX
12142
12143# The commands to extract the exported symbol list from a shared archive.
12144extract_expsyms_cmds=$lt_extract_expsyms_cmds
12145
12146# Symbols that should not be listed in the preloaded symbols.
12147exclude_expsyms=$lt_exclude_expsyms_CXX
12148
12149# Symbols that must always be exported.
12150include_expsyms=$lt_include_expsyms_CXX
12151
12152# ### END LIBTOOL TAG CONFIG: $tagname
12153
12154__EOF__
12155
12156
12157else
12158 # If there is no Makefile yet, we rely on a make rule to execute
12159 # `config.status --recheck' to rerun these tests and create the
12160 # libtool script then.
12161 test -f Makefile && make "$ltmain"
12162fi
12163
12164
12165ac_ext=c
12166ac_cpp='$CPP $CPPFLAGS'
12167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170
12171CC=$lt_save_CC
12172LDCXX=$LD
12173LD=$lt_save_LD
12174GCC=$lt_save_GCC
12175with_gnu_ldcxx=$with_gnu_ld
12176with_gnu_ld=$lt_save_with_gnu_ld
12177lt_cv_path_LDCXX=$lt_cv_path_LD
12178lt_cv_path_LD=$lt_save_path_LD
12179lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12180lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12181
12182 else
12183 tagname=""
12184 fi
12185 ;;
12186
12187 F77)
12188 if test -n "$F77" && test "X$F77" != "Xno"; then
12189
12190ac_ext=f
12191ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12192ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12194
12195
12196archive_cmds_need_lc_F77=no
12197allow_undefined_flag_F77=
12198always_export_symbols_F77=no
12199archive_expsym_cmds_F77=
12200export_dynamic_flag_spec_F77=
12201hardcode_direct_F77=no
12202hardcode_libdir_flag_spec_F77=
12203hardcode_libdir_flag_spec_ld_F77=
12204hardcode_libdir_separator_F77=
12205hardcode_minus_L_F77=no
12206hardcode_automatic_F77=no
12207module_cmds_F77=
12208module_expsym_cmds_F77=
12209link_all_deplibs_F77=unknown
12210old_archive_cmds_F77=$old_archive_cmds
12211no_undefined_flag_F77=
12212whole_archive_flag_spec_F77=
12213enable_shared_with_static_runtimes_F77=no
12214
12215# Source file extension for f77 test sources.
12216ac_ext=f
12217
12218# Object file extension for compiled f77 test sources.
12219objext=o
12220objext_F77=$objext
12221
12222# Code to be used in simple compile tests
12223lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12224
12225# Code to be used in simple link tests
12226lt_simple_link_test_code=" program t\n end\n"
12227
12228# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12229
12230# If no C compiler was specified, use CC.
12231LTCC=${LTCC-"$CC"}
12232
12233# Allow CC to be a program name with arguments.
12234compiler=$CC
12235
12236
12237# Allow CC to be a program name with arguments.
12238lt_save_CC="$CC"
12239CC=${F77-"f77"}
12240compiler=$CC
12241compiler_F77=$CC
12242cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12243
12244echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12245echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12246echo "$as_me:$LINENO: result: $can_build_shared" >&5
12247echo "${ECHO_T}$can_build_shared" >&6
12248
12249echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12250echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12251test "$can_build_shared" = "no" && enable_shared=no
12252
12253# On AIX, shared libraries and static libraries use the same namespace, and
12254# are all built from PIC.
12255case "$host_os" in
12256aix3*)
12257 test "$enable_shared" = yes && enable_static=no
12258 if test -n "$RANLIB"; then
12259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12260 postinstall_cmds='$RANLIB $lib'
12261 fi
12262 ;;
12263aix4*)
12264 test "$enable_shared" = yes && enable_static=no
12265 ;;
12266esac
12267echo "$as_me:$LINENO: result: $enable_shared" >&5
12268echo "${ECHO_T}$enable_shared" >&6
12269
12270echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12271echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12272# Make sure either enable_shared or enable_static is yes.
12273test "$enable_shared" = yes || enable_static=yes
12274echo "$as_me:$LINENO: result: $enable_static" >&5
12275echo "${ECHO_T}$enable_static" >&6
12276
12277test "$ld_shlibs_F77" = no && can_build_shared=no
12278
12279GCC_F77="$G77"
12280LD_F77="$LD"
12281
12282lt_prog_compiler_wl_F77=
12283lt_prog_compiler_pic_F77=
12284lt_prog_compiler_static_F77=
12285
12286echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12288
12289 if test "$GCC" = yes; then
12290 lt_prog_compiler_wl_F77='-Wl,'
12291 lt_prog_compiler_static_F77='-static'
12292
12293 case $host_os in
12294 aix*)
12295 # All AIX code is PIC.
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 now supports IA64 processor
12298 lt_prog_compiler_static_F77='-Bstatic'
12299 fi
12300 ;;
12301
12302 amigaos*)
12303 # FIXME: we need at least 68020 code to build shared libraries, but
12304 # adding the `-m68020' flag to GCC prevents building anything better,
12305 # like `-m68040'.
12306 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12307 ;;
12308
12309 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310 # PIC is the default for these OSes.
12311 ;;
12312
12313 mingw* | pw32* | os2*)
12314 # This hack is so that the source file can tell whether it is being
12315 # built for inclusion in a dll (and should export symbols for example).
12316 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12317 ;;
12318
12319 darwin* | rhapsody*)
12320 # PIC is the default on this platform
12321 # Common symbols not allowed in MH_DYLIB files
12322 lt_prog_compiler_pic_F77='-fno-common'
12323 ;;
12324
12325 msdosdjgpp*)
12326 # Just because we use GCC doesn't mean we suddenly get shared libraries
12327 # on systems that don't support them.
12328 lt_prog_compiler_can_build_shared_F77=no
12329 enable_shared=no
12330 ;;
12331
12332 sysv4*MP*)
12333 if test -d /usr/nec; then
12334 lt_prog_compiler_pic_F77=-Kconform_pic
12335 fi
12336 ;;
12337
12338 hpux*)
12339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12340 # not for PA HP-UX.
12341 case "$host_cpu" in
12342 hppa*64*|ia64*)
12343 # +Z the default
12344 ;;
12345 *)
12346 lt_prog_compiler_pic_F77='-fPIC'
12347 ;;
12348 esac
12349 ;;
12350
12351 *)
12352 lt_prog_compiler_pic_F77='-fPIC'
12353 ;;
12354 esac
12355 else
12356 # PORTME Check for flag to pass linker flags through the system compiler.
12357 case $host_os in
12358 aix*)
12359 lt_prog_compiler_wl_F77='-Wl,'
12360 if test "$host_cpu" = ia64; then
12361 # AIX 5 now supports IA64 processor
12362 lt_prog_compiler_static_F77='-Bstatic'
12363 else
12364 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12365 fi
12366 ;;
12367
12368 mingw* | pw32* | os2*)
12369 # This hack is so that the source file can tell whether it is being
12370 # built for inclusion in a dll (and should export symbols for example).
12371 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12372 ;;
12373
12374 hpux9* | hpux10* | hpux11*)
12375 lt_prog_compiler_wl_F77='-Wl,'
12376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12377 # not for PA HP-UX.
12378 case "$host_cpu" in
12379 hppa*64*|ia64*)
12380 # +Z the default
12381 ;;
12382 *)
12383 lt_prog_compiler_pic_F77='+Z'
12384 ;;
12385 esac
12386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12387 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12388 ;;
12389
12390 irix5* | irix6* | nonstopux*)
12391 lt_prog_compiler_wl_F77='-Wl,'
12392 # PIC (with -KPIC) is the default.
12393 lt_prog_compiler_static_F77='-non_shared'
12394 ;;
12395
12396 newsos6)
12397 lt_prog_compiler_pic_F77='-KPIC'
12398 lt_prog_compiler_static_F77='-Bstatic'
12399 ;;
12400
12401 linux*)
12402 case $CC in
12403 icc|ecc)
12404 lt_prog_compiler_wl_F77='-Wl,'
12405 lt_prog_compiler_pic_F77='-KPIC'
12406 lt_prog_compiler_static_F77='-static'
12407 ;;
12408 ccc)
12409 lt_prog_compiler_wl_F77='-Wl,'
12410 # All Alpha code is PIC.
12411 lt_prog_compiler_static_F77='-non_shared'
12412 ;;
12413 esac
12414 ;;
12415
12416 osf3* | osf4* | osf5*)
12417 lt_prog_compiler_wl_F77='-Wl,'
12418 # All OSF/1 code is PIC.
12419 lt_prog_compiler_static_F77='-non_shared'
12420 ;;
12421
12422 sco3.2v5*)
12423 lt_prog_compiler_pic_F77='-Kpic'
12424 lt_prog_compiler_static_F77='-dn'
12425 ;;
12426
12427 solaris*)
12428 lt_prog_compiler_wl_F77='-Wl,'
12429 lt_prog_compiler_pic_F77='-KPIC'
12430 lt_prog_compiler_static_F77='-Bstatic'
12431 ;;
12432
12433 sunos4*)
12434 lt_prog_compiler_wl_F77='-Qoption ld '
12435 lt_prog_compiler_pic_F77='-PIC'
12436 lt_prog_compiler_static_F77='-Bstatic'
12437 ;;
12438
12439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12440 lt_prog_compiler_wl_F77='-Wl,'
12441 lt_prog_compiler_pic_F77='-KPIC'
12442 lt_prog_compiler_static_F77='-Bstatic'
12443 ;;
12444
12445 sysv4*MP*)
12446 if test -d /usr/nec ;then
12447 lt_prog_compiler_pic_F77='-Kconform_pic'
12448 lt_prog_compiler_static_F77='-Bstatic'
12449 fi
12450 ;;
12451
12452 uts4*)
12453 lt_prog_compiler_pic_F77='-pic'
12454 lt_prog_compiler_static_F77='-Bstatic'
12455 ;;
12456
12457 *)
12458 lt_prog_compiler_can_build_shared_F77=no
12459 ;;
12460 esac
12461 fi
12462
12463echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12464echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12465
12466#
12467# Check to make sure the PIC flag actually works.
12468#
12469if test -n "$lt_prog_compiler_pic_F77"; then
12470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12471echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12472if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475 lt_prog_compiler_pic_works_F77=no
12476 ac_outfile=conftest.$ac_objext
12477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12478 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 # The option is referenced via a variable to avoid confusing sed.
12484 lt_compile=`echo "$ac_compile" | $SED \
12485 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000012488 (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012489 (eval "$lt_compile" 2>conftest.err)
12490 ac_status=$?
12491 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000012492 echo "$as_me:12492: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012493 if (exit $ac_status) && test -s "$ac_outfile"; then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings
12496 if test ! -s conftest.err; then
12497 lt_prog_compiler_pic_works_F77=yes
12498 fi
12499 fi
12500 $rm conftest*
12501
12502fi
12503echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12504echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12505
12506if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12507 case $lt_prog_compiler_pic_F77 in
12508 "" | " "*) ;;
12509 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12510 esac
12511else
12512 lt_prog_compiler_pic_F77=
12513 lt_prog_compiler_can_build_shared_F77=no
12514fi
12515
12516fi
12517case "$host_os" in
12518 # For platforms which do not support PIC, -DPIC is meaningless:
12519 *djgpp*)
12520 lt_prog_compiler_pic_F77=
12521 ;;
12522 *)
12523 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12524 ;;
12525esac
12526
12527echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12528echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12529if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532 lt_cv_prog_compiler_c_o_F77=no
12533 $rm -r conftest 2>/dev/null
12534 mkdir conftest
12535 cd conftest
12536 mkdir out
12537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538
12539 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12540 # that will create temporary files in the current directory regardless of
12541 # the output directory. Thus, making CWD read-only will cause this test
12542 # to fail, enabling locking or at least warning the user not to do parallel
12543 # builds.
12544 chmod -w .
12545
12546 lt_compiler_flag="-o out/conftest2.$ac_objext"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 lt_compile=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000012555 (eval echo "\"\$as_me:12555: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012556 (eval "$lt_compile" 2>out/conftest.err)
12557 ac_status=$?
12558 cat out/conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000012559 echo "$as_me:12559: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12561 then
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings
12564 if test ! -s out/conftest.err; then
12565 lt_cv_prog_compiler_c_o_F77=yes
12566 fi
12567 fi
12568 chmod u+w .
12569 $rm conftest* out/*
12570 rmdir out
12571 cd ..
12572 rmdir conftest
12573 $rm conftest*
12574
12575fi
12576echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12577echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12578
12579
12580hard_links="nottested"
12581if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12582 # do not overwrite the value of need_locks provided by the user
12583 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12584echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12585 hard_links=yes
12586 $rm conftest*
12587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12588 touch conftest.a
12589 ln conftest.a conftest.b 2>&5 || hard_links=no
12590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591 echo "$as_me:$LINENO: result: $hard_links" >&5
12592echo "${ECHO_T}$hard_links" >&6
12593 if test "$hard_links" = no; then
12594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12595echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12596 need_locks=warn
12597 fi
12598else
12599 need_locks=no
12600fi
12601
12602echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12603echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12604
12605 runpath_var=
12606 allow_undefined_flag_F77=
12607 enable_shared_with_static_runtimes_F77=no
12608 archive_cmds_F77=
12609 archive_expsym_cmds_F77=
12610 old_archive_From_new_cmds_F77=
12611 old_archive_from_expsyms_cmds_F77=
12612 export_dynamic_flag_spec_F77=
12613 whole_archive_flag_spec_F77=
12614 thread_safe_flag_spec_F77=
12615 hardcode_libdir_flag_spec_F77=
12616 hardcode_libdir_flag_spec_ld_F77=
12617 hardcode_libdir_separator_F77=
12618 hardcode_direct_F77=no
12619 hardcode_minus_L_F77=no
12620 hardcode_shlibpath_var_F77=unsupported
12621 link_all_deplibs_F77=unknown
12622 hardcode_automatic_F77=no
12623 module_cmds_F77=
12624 module_expsym_cmds_F77=
12625 always_export_symbols_F77=no
12626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12627 # include_expsyms should be a list of space-separated symbols to be *always*
12628 # included in the symbol list
12629 include_expsyms_F77=
12630 # exclude_expsyms can be an extended regexp of symbols to exclude
12631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12633 # as well as any symbol that contains `d'.
12634 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12636 # platforms (ab)use it in PIC code, but their linkers get confused if
12637 # the symbol is explicitly referenced. Since portable code cannot
12638 # rely on this symbol name, it's probably fine to never include it in
12639 # preloaded symbol tables.
12640 extract_expsyms_cmds=
12641
12642 case $host_os in
12643 cygwin* | mingw* | pw32*)
12644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12645 # When not using gcc, we currently assume that we are using
12646 # Microsoft Visual C++.
12647 if test "$GCC" != yes; then
12648 with_gnu_ld=no
12649 fi
12650 ;;
12651 openbsd*)
12652 with_gnu_ld=no
12653 ;;
12654 esac
12655
12656 ld_shlibs_F77=yes
12657 if test "$with_gnu_ld" = yes; then
12658 # If archive_cmds runs LD, not CC, wlarc should be empty
12659 wlarc='${wl}'
12660
12661 # See if GNU ld supports shared libraries.
12662 case $host_os in
12663 aix3* | aix4* | aix5*)
12664 # On AIX/PPC, the GNU linker is very broken
12665 if test "$host_cpu" != ia64; then
12666 ld_shlibs_F77=no
12667 cat <<EOF 1>&2
12668
12669*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12670*** to be unable to reliably create shared libraries on AIX.
12671*** Therefore, libtool is disabling shared libraries support. If you
12672*** really care for shared libraries, you may want to modify your PATH
12673*** so that a non-GNU linker is found, and then restart.
12674
12675EOF
12676 fi
12677 ;;
12678
12679 amigaos*)
12680 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)'
12681 hardcode_libdir_flag_spec_F77='-L$libdir'
12682 hardcode_minus_L_F77=yes
12683
12684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12685 # that the semantics of dynamic libraries on AmigaOS, at least up
12686 # to version 4, is to share data among multiple programs linked
12687 # with the same dynamic library. Since this doesn't match the
12688 # behavior of shared libraries on other platforms, we can't use
12689 # them.
12690 ld_shlibs_F77=no
12691 ;;
12692
12693 beos*)
12694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12695 allow_undefined_flag_F77=unsupported
12696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697 # support --undefined. This deserves some investigation. FIXME
12698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 else
12700 ld_shlibs_F77=no
12701 fi
12702 ;;
12703
12704 cygwin* | mingw* | pw32*)
12705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12706 # as there is no search path for DLLs.
12707 hardcode_libdir_flag_spec_F77='-L$libdir'
12708 allow_undefined_flag_F77=unsupported
12709 always_export_symbols_F77=no
12710 enable_shared_with_static_runtimes_F77=yes
12711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12712
12713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12715 # If the export-symbols file already is a .def file (1st line
12716 # is EXPORTS), use it as is; otherwise, prepend...
12717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12718 cp $export_symbols $output_objdir/$soname.def;
12719 else
12720 echo EXPORTS > $output_objdir/$soname.def;
12721 cat $export_symbols >> $output_objdir/$soname.def;
12722 fi~
12723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12724 else
12725 ld_shlibs=no
12726 fi
12727 ;;
12728
12729 netbsd*)
12730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12731 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12732 wlarc=
12733 else
12734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12736 fi
12737 ;;
12738
12739 solaris* | sysv5*)
12740 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12741 ld_shlibs_F77=no
12742 cat <<EOF 1>&2
12743
12744*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12745*** create shared libraries on Solaris systems. Therefore, libtool
12746*** is disabling shared libraries support. We urge you to upgrade GNU
12747*** binutils to release 2.9.1 or newer. Another option is to modify
12748*** your PATH or compiler configuration so that the native linker is
12749*** used, and then restart.
12750
12751EOF
12752 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12755 else
12756 ld_shlibs_F77=no
12757 fi
12758 ;;
12759
12760 sunos4*)
12761 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12762 wlarc=
12763 hardcode_direct_F77=yes
12764 hardcode_shlibpath_var_F77=no
12765 ;;
12766
12767 *)
12768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12769 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12771 else
12772 ld_shlibs_F77=no
12773 fi
12774 ;;
12775 esac
12776
12777 if test "$ld_shlibs_F77" = yes; then
12778 runpath_var=LD_RUN_PATH
12779 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12780 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12781 # ancient GNU ld didn't support --whole-archive et. al.
12782 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12783 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12784 else
12785 whole_archive_flag_spec_F77=
12786 fi
12787 fi
12788 else
12789 # PORTME fill in a description of your system's linker (not GNU ld)
12790 case $host_os in
12791 aix3*)
12792 allow_undefined_flag_F77=unsupported
12793 always_export_symbols_F77=yes
12794 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'
12795 # Note: this linker hardcodes the directories in LIBPATH if there
12796 # are no directories specified by -L.
12797 hardcode_minus_L_F77=yes
12798 if test "$GCC" = yes && test -z "$link_static_flag"; then
12799 # Neither direct hardcoding nor static linking is supported with a
12800 # broken collect2.
12801 hardcode_direct_F77=unsupported
12802 fi
12803 ;;
12804
12805 aix4* | aix5*)
12806 if test "$host_cpu" = ia64; then
12807 # On IA64, the linker does run time linking by default, so we don't
12808 # have to do anything special.
12809 aix_use_runtimelinking=no
12810 exp_sym_flag='-Bexport'
12811 no_entry_flag=""
12812 else
12813 # If we're using GNU nm, then we don't want the "-C" option.
12814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12815 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12816 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'
12817 else
12818 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'
12819 fi
12820 aix_use_runtimelinking=no
12821
12822 # Test if we are trying to use run time linking or normal
12823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824 # need to do runtime linking.
12825 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826 for ld_flag in $LDFLAGS; do
12827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12828 aix_use_runtimelinking=yes
12829 break
12830 fi
12831 done
12832 esac
12833
12834 exp_sym_flag='-bexport'
12835 no_entry_flag='-bnoentry'
12836 fi
12837
12838 # When large executables or shared objects are built, AIX ld can
12839 # have problems creating the table of contents. If linking a library
12840 # or program results in "error TOC overflow" add -mminimal-toc to
12841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12843
12844 archive_cmds_F77=''
12845 hardcode_direct_F77=yes
12846 hardcode_libdir_separator_F77=':'
12847 link_all_deplibs_F77=yes
12848
12849 if test "$GCC" = yes; then
12850 case $host_os in aix4.012|aix4.012.*)
12851 # We only want to do this on AIX 4.2 and lower, the check
12852 # below for broken collect2 doesn't work under 4.3+
12853 collect2name=`${CC} -print-prog-name=collect2`
12854 if test -f "$collect2name" && \
12855 strings "$collect2name" | grep resolve_lib_name >/dev/null
12856 then
12857 # We have reworked collect2
12858 hardcode_direct_F77=yes
12859 else
12860 # We have old collect2
12861 hardcode_direct_F77=unsupported
12862 # It fails to find uninstalled libraries when the uninstalled
12863 # path is not listed in the libpath. Setting hardcode_minus_L
12864 # to unsupported forces relinking
12865 hardcode_minus_L_F77=yes
12866 hardcode_libdir_flag_spec_F77='-L$libdir'
12867 hardcode_libdir_separator_F77=
12868 fi
12869 esac
12870 shared_flag='-shared'
12871 else
12872 # not using gcc
12873 if test "$host_cpu" = ia64; then
12874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12875 # chokes on -Wl,-G. The following line is correct:
12876 shared_flag='-G'
12877 else
12878 if test "$aix_use_runtimelinking" = yes; then
12879 shared_flag='${wl}-G'
12880 else
12881 shared_flag='${wl}-bM:SRE'
12882 fi
12883 fi
12884 fi
12885
12886 # It seems that -bexpall does not export symbols beginning with
12887 # underscore (_), so it is better to generate a list of symbols to export.
12888 always_export_symbols_F77=yes
12889 if test "$aix_use_runtimelinking" = yes; then
12890 # Warning - without using the other runtime loading flags (-brtl),
12891 # -berok will link without error, but may produce a broken library.
12892 allow_undefined_flag_F77='-berok'
12893 # Determine the default libpath from the value encoded in an empty executable.
12894 cat >conftest.$ac_ext <<_ACEOF
12895 program main
12896
12897 end
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911
12912aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12913}'`
12914# Check for a 64-bit object if we didn't find anything.
12915if 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; }
12916}'`; fi
12917else
12918 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012919sed 's/^/| /' conftest.$ac_ext >&5
12920
John Criswell47fdd832003-07-14 16:52:07 +000012921fi
12922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12924
12925 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12926 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"
12927 else
12928 if test "$host_cpu" = ia64; then
12929 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12930 allow_undefined_flag_F77="-z nodefs"
12931 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"
12932 else
12933 # Determine the default libpath from the value encoded in an empty executable.
12934 cat >conftest.$ac_ext <<_ACEOF
12935 program main
12936
12937 end
12938_ACEOF
12939rm -f conftest.$ac_objext conftest$ac_exeext
12940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951
12952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12953}'`
12954# Check for a 64-bit object if we didn't find anything.
12955if 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; }
12956}'`; fi
12957else
12958 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012959sed 's/^/| /' conftest.$ac_ext >&5
12960
John Criswell47fdd832003-07-14 16:52:07 +000012961fi
12962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12964
12965 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12966 # Warning - without using the other run time loading flags,
12967 # -berok will link without error, but may produce a broken library.
12968 no_undefined_flag_F77=' ${wl}-bernotok'
12969 allow_undefined_flag_F77=' ${wl}-berok'
12970 # -bexpall does not export symbols beginning with underscore (_)
12971 always_export_symbols_F77=yes
12972 # Exported symbols can be pulled into shared objects from archives
12973 whole_archive_flag_spec_F77=' '
12974 archive_cmds_need_lc_F77=yes
12975 # This is similar to how AIX traditionally builds it's shared libraries.
12976 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'
12977 fi
12978 fi
12979 ;;
12980
12981 amigaos*)
12982 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)'
12983 hardcode_libdir_flag_spec_F77='-L$libdir'
12984 hardcode_minus_L_F77=yes
12985 # see comment about different semantics on the GNU ld section
12986 ld_shlibs_F77=no
12987 ;;
12988
12989 bsdi4*)
12990 export_dynamic_flag_spec_F77=-rdynamic
12991 ;;
12992
12993 cygwin* | mingw* | pw32*)
12994 # When not using gcc, we currently assume that we are using
12995 # Microsoft Visual C++.
12996 # hardcode_libdir_flag_spec is actually meaningless, as there is
12997 # no search path for DLLs.
12998 hardcode_libdir_flag_spec_F77=' '
12999 allow_undefined_flag_F77=unsupported
13000 # Tell ltmain to make .lib files, not .a files.
13001 libext=lib
13002 # Tell ltmain to make .dll files, not .so files.
13003 shrext=".dll"
13004 # FIXME: Setting linknames here is a bad hack.
13005 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13006 # The linker will automatically build a .lib file if we build a DLL.
13007 old_archive_From_new_cmds_F77='true'
13008 # FIXME: Should let the user specify the lib program.
13009 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13010 fix_srcfile_path='`cygpath -w "$srcfile"`'
13011 enable_shared_with_static_runtimes_F77=yes
13012 ;;
13013
13014 darwin* | rhapsody*)
13015 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13016 archive_cmds_need_lc_F77=no
13017 case "$host_os" in
13018 rhapsody* | darwin1.[012])
13019 allow_undefined_flag_F77='-undefined suppress'
13020 ;;
13021 *) # Darwin 1.3 on
13022 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13023 ;;
13024 esac
13025 # FIXME: Relying on posixy $() will cause problems for
13026 # cross-compilation, but unfortunately the echo tests do not
13027 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13028 # `"' quotes if we put them in here... so don't!
13029 lt_int_apple_cc_single_mod=no
13030 output_verbose_link_cmd='echo'
13031 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13032 lt_int_apple_cc_single_mod=yes
13033 fi
13034 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13035 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13036 else
13037 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'
13038 fi
13039 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13040 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13041 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13042 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}'
13043 else
13044 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}'
13045 fi
13046 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}'
13047 hardcode_direct_F77=no
13048 hardcode_automatic_F77=yes
13049 hardcode_shlibpath_var_F77=unsupported
13050 whole_archive_flag_spec_F77='-all_load $convenience'
13051 link_all_deplibs_F77=yes
13052 fi
13053 ;;
13054
13055 dgux*)
13056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_libdir_flag_spec_F77='-L$libdir'
13058 hardcode_shlibpath_var_F77=no
13059 ;;
13060
13061 freebsd1*)
13062 ld_shlibs_F77=no
13063 ;;
13064
13065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13066 # support. Future versions do this automatically, but an explicit c++rt0.o
13067 # does not break anything, and helps significantly (at the cost of a little
13068 # extra space).
13069 freebsd2.2*)
13070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13071 hardcode_libdir_flag_spec_F77='-R$libdir'
13072 hardcode_direct_F77=yes
13073 hardcode_shlibpath_var_F77=no
13074 ;;
13075
13076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13077 freebsd2*)
13078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13079 hardcode_direct_F77=yes
13080 hardcode_minus_L_F77=yes
13081 hardcode_shlibpath_var_F77=no
13082 ;;
13083
13084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13085 freebsd*)
13086 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13087 hardcode_libdir_flag_spec_F77='-R$libdir'
13088 hardcode_direct_F77=yes
13089 hardcode_shlibpath_var_F77=no
13090 ;;
13091
13092 hpux9*)
13093 if test "$GCC" = yes; then
13094 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'
13095 else
13096 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'
13097 fi
13098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13099 hardcode_libdir_separator_F77=:
13100 hardcode_direct_F77=yes
13101
13102 # hardcode_minus_L: Not really in the search PATH,
13103 # but as the default location of the library.
13104 hardcode_minus_L_F77=yes
13105 export_dynamic_flag_spec_F77='${wl}-E'
13106 ;;
13107
13108 hpux10* | hpux11*)
13109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13110 case "$host_cpu" in
13111 hppa*64*|ia64*)
13112 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 ;;
13114 *)
13115 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13116 ;;
13117 esac
13118 else
13119 case "$host_cpu" in
13120 hppa*64*|ia64*)
13121 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13122 ;;
13123 *)
13124 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13125 ;;
13126 esac
13127 fi
13128 if test "$with_gnu_ld" = no; then
13129 case "$host_cpu" in
13130 hppa*64*)
13131 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13132 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13133 hardcode_libdir_separator_F77=:
13134 hardcode_direct_F77=no
13135 hardcode_shlibpath_var_F77=no
13136 ;;
13137 ia64*)
13138 hardcode_libdir_flag_spec_F77='-L$libdir'
13139 hardcode_direct_F77=no
13140 hardcode_shlibpath_var_F77=no
13141
13142 # hardcode_minus_L: Not really in the search PATH,
13143 # but as the default location of the library.
13144 hardcode_minus_L_F77=yes
13145 ;;
13146 *)
13147 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13148 hardcode_libdir_separator_F77=:
13149 hardcode_direct_F77=yes
13150 export_dynamic_flag_spec_F77='${wl}-E'
13151
13152 # hardcode_minus_L: Not really in the search PATH,
13153 # but as the default location of the library.
13154 hardcode_minus_L_F77=yes
13155 ;;
13156 esac
13157 fi
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 if test "$GCC" = yes; then
13162 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'
13163 else
13164 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'
13165 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13166 fi
13167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13168 hardcode_libdir_separator_F77=:
13169 link_all_deplibs_F77=yes
13170 ;;
13171
13172 netbsd*)
13173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13174 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13175 else
13176 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13177 fi
13178 hardcode_libdir_flag_spec_F77='-R$libdir'
13179 hardcode_direct_F77=yes
13180 hardcode_shlibpath_var_F77=no
13181 ;;
13182
13183 newsos6)
13184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13185 hardcode_direct_F77=yes
13186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13187 hardcode_libdir_separator_F77=:
13188 hardcode_shlibpath_var_F77=no
13189 ;;
13190
13191 openbsd*)
13192 hardcode_direct_F77=yes
13193 hardcode_shlibpath_var_F77=no
13194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13195 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13196 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13197 export_dynamic_flag_spec_F77='${wl}-E'
13198 else
13199 case $host_os in
13200 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13201 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202 hardcode_libdir_flag_spec_F77='-R$libdir'
13203 ;;
13204 *)
13205 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13206 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13207 ;;
13208 esac
13209 fi
13210 ;;
13211
13212 os2*)
13213 hardcode_libdir_flag_spec_F77='-L$libdir'
13214 hardcode_minus_L_F77=yes
13215 allow_undefined_flag_F77=unsupported
13216 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'
13217 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13218 ;;
13219
13220 osf3*)
13221 if test "$GCC" = yes; then
13222 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13223 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'
13224 else
13225 allow_undefined_flag_F77=' -expect_unresolved \*'
13226 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'
13227 fi
13228 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13229 hardcode_libdir_separator_F77=:
13230 ;;
13231
13232 osf4* | osf5*) # as osf3* with the addition of -msym flag
13233 if test "$GCC" = yes; then
13234 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13235 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'
13236 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13237 else
13238 allow_undefined_flag_F77=' -expect_unresolved \*'
13239 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'
13240 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~
13241 $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'
13242
13243 # Both c and cxx compiler support -rpath directly
13244 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13245 fi
13246 hardcode_libdir_separator_F77=:
13247 ;;
13248
13249 sco3.2v5*)
13250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_shlibpath_var_F77=no
13252 export_dynamic_flag_spec_F77='${wl}-Bexport'
13253 runpath_var=LD_RUN_PATH
13254 hardcode_runpath_var=yes
13255 ;;
13256
13257 solaris*)
13258 no_undefined_flag_F77=' -z text'
13259 if test "$GCC" = yes; then
13260 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13262 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13263 else
13264 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13265 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13267 fi
13268 hardcode_libdir_flag_spec_F77='-R$libdir'
13269 hardcode_shlibpath_var_F77=no
13270 case $host_os in
13271 solaris2.[0-5] | solaris2.[0-5].*) ;;
13272 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13273 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13274 esac
13275 link_all_deplibs_F77=yes
13276 ;;
13277
13278 sunos4*)
13279 if test "x$host_vendor" = xsequent; then
13280 # Use $CC to link under sequent, because it throws in some extra .o
13281 # files that make .init and .fini sections work.
13282 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13283 else
13284 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13285 fi
13286 hardcode_libdir_flag_spec_F77='-L$libdir'
13287 hardcode_direct_F77=yes
13288 hardcode_minus_L_F77=yes
13289 hardcode_shlibpath_var_F77=no
13290 ;;
13291
13292 sysv4)
13293 case $host_vendor in
13294 sni)
13295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13296 hardcode_direct_F77=yes # is this really true???
13297 ;;
13298 siemens)
13299 ## LD is ld it makes a PLAMLIB
13300 ## CC just makes a GrossModule.
13301 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13302 reload_cmds_F77='$CC -r -o $output$reload_objs'
13303 hardcode_direct_F77=no
13304 ;;
13305 motorola)
13306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13308 ;;
13309 esac
13310 runpath_var='LD_RUN_PATH'
13311 hardcode_shlibpath_var_F77=no
13312 ;;
13313
13314 sysv4.3*)
13315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13316 hardcode_shlibpath_var_F77=no
13317 export_dynamic_flag_spec_F77='-Bexport'
13318 ;;
13319
13320 sysv4*MP*)
13321 if test -d /usr/nec; then
13322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13323 hardcode_shlibpath_var_F77=no
13324 runpath_var=LD_RUN_PATH
13325 hardcode_runpath_var=yes
13326 ld_shlibs_F77=yes
13327 fi
13328 ;;
13329
13330 sysv4.2uw2*)
13331 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13332 hardcode_direct_F77=yes
13333 hardcode_minus_L_F77=no
13334 hardcode_shlibpath_var_F77=no
13335 hardcode_runpath_var=yes
13336 runpath_var=LD_RUN_PATH
13337 ;;
13338
13339 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13340 no_undefined_flag_F77='${wl}-z ${wl}text'
13341 if test "$GCC" = yes; then
13342 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 else
13344 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345 fi
13346 runpath_var='LD_RUN_PATH'
13347 hardcode_shlibpath_var_F77=no
13348 ;;
13349
13350 sysv5*)
13351 no_undefined_flag_F77=' -z text'
13352 # $CC -shared without GNU ld will not create a library from C++
13353 # object files and a static libstdc++, better avoid it by now
13354 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13357 hardcode_libdir_flag_spec_F77=
13358 hardcode_shlibpath_var_F77=no
13359 runpath_var='LD_RUN_PATH'
13360 ;;
13361
13362 uts4*)
13363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364 hardcode_libdir_flag_spec_F77='-L$libdir'
13365 hardcode_shlibpath_var_F77=no
13366 ;;
13367
13368 *)
13369 ld_shlibs_F77=no
13370 ;;
13371 esac
13372 fi
13373
13374echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13375echo "${ECHO_T}$ld_shlibs_F77" >&6
13376test "$ld_shlibs_F77" = no && can_build_shared=no
13377
13378variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13379if test "$GCC" = yes; then
13380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13381fi
13382
13383#
13384# Do we need to explicitly link libc?
13385#
13386case "x$archive_cmds_need_lc_F77" in
13387x|xyes)
13388 # Assume -lc should be added
13389 archive_cmds_need_lc_F77=yes
13390
13391 if test "$enable_shared" = yes && test "$GCC" = yes; then
13392 case $archive_cmds_F77 in
13393 *'~'*)
13394 # FIXME: we may have to deal with multi-command sequences.
13395 ;;
13396 '$CC '*)
13397 # Test whether the compiler implicitly links with -lc since on some
13398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13399 # to ld, don't add -lc before -lgcc.
13400 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13401echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13402 $rm conftest*
13403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13404
13405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406 (eval $ac_compile) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } 2>conftest.err; then
13410 soname=conftest
13411 lib=conftest
13412 libobjs=conftest.$ac_objext
13413 deplibs=
13414 wl=$lt_prog_compiler_wl_F77
13415 compiler_flags=-v
13416 linker_flags=-v
13417 verstring=
13418 output_objdir=.
13419 libname=conftest
13420 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13421 allow_undefined_flag_F77=
13422 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13423 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }
13427 then
13428 archive_cmds_need_lc_F77=no
13429 else
13430 archive_cmds_need_lc_F77=yes
13431 fi
13432 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13433 else
13434 cat conftest.err 1>&5
13435 fi
13436 $rm conftest*
13437 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13438echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13439 ;;
13440 esac
13441 fi
13442 ;;
13443esac
13444
13445echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13446echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13447hardcode_action_F77=
13448if test -n "$hardcode_libdir_flag_spec_F77" || \
13449 test -n "$runpath_var F77" || \
13450 test "X$hardcode_automatic_F77"="Xyes" ; then
13451
13452 # We can hardcode non-existant directories.
13453 if test "$hardcode_direct_F77" != no &&
13454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13455 # have to relink, otherwise we might link with an installed library
13456 # when we should be linking with a yet-to-be-installed one
13457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13458 test "$hardcode_minus_L_F77" != no; then
13459 # Linking always hardcodes the temporary library directory.
13460 hardcode_action_F77=relink
13461 else
13462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13463 hardcode_action_F77=immediate
13464 fi
13465else
13466 # We cannot hardcode anything, or else we can only hardcode existing
13467 # directories.
13468 hardcode_action_F77=unsupported
13469fi
13470echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13471echo "${ECHO_T}$hardcode_action_F77" >&6
13472
13473if test "$hardcode_action_F77" = relink; then
13474 # Fast installation is not supported
13475 enable_fast_install=no
13476elif test "$shlibpath_overrides_runpath" = yes ||
13477 test "$enable_shared" = no; then
13478 # Fast installation is not necessary
13479 enable_fast_install=needless
13480fi
13481
13482striplib=
13483old_striplib=
13484echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13485echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13486if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489 echo "$as_me:$LINENO: result: yes" >&5
13490echo "${ECHO_T}yes" >&6
13491else
13492# FIXME - insert some real tests, host_os isn't really good enough
13493 case $host_os in
13494 darwin*)
13495 if test -n "$STRIP" ; then
13496 striplib="$STRIP -x"
13497 echo "$as_me:$LINENO: result: yes" >&5
13498echo "${ECHO_T}yes" >&6
13499 else
13500 echo "$as_me:$LINENO: result: no" >&5
13501echo "${ECHO_T}no" >&6
13502fi
13503 ;;
13504 *)
13505 echo "$as_me:$LINENO: result: no" >&5
13506echo "${ECHO_T}no" >&6
13507 ;;
13508 esac
13509fi
13510
13511echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13512echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13513library_names_spec=
13514libname_spec='lib$name'
13515soname_spec=
13516shrext=".so"
13517postinstall_cmds=
13518postuninstall_cmds=
13519finish_cmds=
13520finish_eval=
13521shlibpath_var=
13522shlibpath_overrides_runpath=unknown
13523version_type=none
13524dynamic_linker="$host_os ld.so"
13525sys_lib_dlsearch_path_spec="/lib /usr/lib"
13526if test "$GCC" = yes; then
13527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13529 # if the path contains ";" then we assume it to be the separator
13530 # otherwise default to the standard path separator (i.e. ":") - it is
13531 # assumed that no part of a normal pathname contains ";" but that should
13532 # okay in the real world where ";" in dirpaths is itself problematic.
13533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13534 else
13535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13536 fi
13537else
13538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13539fi
13540need_lib_prefix=unknown
13541hardcode_into_libs=no
13542
13543# when you set need_version to no, make sure it does not cause -set_version
13544# flags to be left without arguments
13545need_version=unknown
13546
13547case $host_os in
13548aix3*)
13549 version_type=linux
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13551 shlibpath_var=LIBPATH
13552
13553 # AIX 3 has no versioning support, so we append a major version to the name.
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 ;;
13556
13557aix4* | aix5*)
13558 version_type=linux
13559 need_lib_prefix=no
13560 need_version=no
13561 hardcode_into_libs=yes
13562 if test "$host_cpu" = ia64; then
13563 # AIX 5 supports IA64
13564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 else
13567 # With GCC up to 2.95.x, collect2 would create an import file
13568 # for dependence libraries. The import file would start with
13569 # the line `#! .'. This would cause the generated library to
13570 # depend on `.', always an invalid library. This was fixed in
13571 # development snapshots of GCC prior to 3.0.
13572 case $host_os in
13573 aix4 | aix4.[01] | aix4.[01].*)
13574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13575 echo ' yes '
13576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13577 :
13578 else
13579 can_build_shared=no
13580 fi
13581 ;;
13582 esac
13583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13584 # soname into executable. Probably we can add versioning support to
13585 # collect2, so additional links can be useful in future.
13586 if test "$aix_use_runtimelinking" = yes; then
13587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13588 # instead of lib<name>.a to let people know that these are not
13589 # typical AIX shared libraries.
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591 else
13592 # We preserve .a as extension for shared libraries through AIX4.2
13593 # and later when we are not doing run time linking.
13594 library_names_spec='${libname}${release}.a $libname.a'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 fi
13597 shlibpath_var=LIBPATH
13598 fi
13599 ;;
13600
13601amigaos*)
13602 library_names_spec='$libname.ixlibrary $libname.a'
13603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13604 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'
13605 ;;
13606
13607beos*)
13608 library_names_spec='${libname}${shared_ext}'
13609 dynamic_linker="$host_os ld.so"
13610 shlibpath_var=LIBRARY_PATH
13611 ;;
13612
13613bsdi4*)
13614 version_type=linux
13615 need_version=no
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13622 # the default ld.so.conf also contains /usr/contrib/lib and
13623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13624 # libtool to hard-code these into programs
13625 ;;
13626
13627cygwin* | mingw* | pw32*)
13628 version_type=windows
13629 shrext=".dll"
13630 need_version=no
13631 need_lib_prefix=no
13632
13633 case $GCC,$host_os in
13634 yes,cygwin* | yes,mingw* | yes,pw32*)
13635 library_names_spec='$libname.dll.a'
13636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13637 postinstall_cmds='base_file=`basename \${file}`~
13638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13639 dldir=$destdir/`dirname \$dlpath`~
13640 test -d \$dldir || mkdir -p \$dldir~
13641 $install_prog $dir/$dlname \$dldir/$dlname'
13642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13643 dlpath=$dir/\$dldll~
13644 $rm \$dlpath'
13645 shlibpath_overrides_runpath=yes
13646
13647 case $host_os in
13648 cygwin*)
13649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13652 ;;
13653 mingw*)
13654 # MinGW DLLs use traditional 'lib' prefix
13655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13658 # It is most probably a Windows format PATH printed by
13659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13660 # path with ; separators, and with drive letters. We can handle the
13661 # drive letters (cygwin fileutils understands them), so leave them,
13662 # especially as we might pass files found there to a mingw objdump,
13663 # which wouldn't understand a cygwinified path. Ahh.
13664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13665 else
13666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13667 fi
13668 ;;
13669 pw32*)
13670 # pw32 DLLs use 'pw' prefix rather than 'lib'
13671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13672 ;;
13673 esac
13674 ;;
13675
13676 *)
13677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13678 ;;
13679 esac
13680 dynamic_linker='Win32 ld.exe'
13681 # FIXME: first we should search . and the directory the executable is in
13682 shlibpath_var=PATH
13683 ;;
13684
13685darwin* | rhapsody*)
13686 dynamic_linker="$host_os dyld"
13687 version_type=darwin
13688 need_lib_prefix=no
13689 need_version=no
13690 # FIXME: Relying on posixy $() will cause problems for
13691 # cross-compilation, but unfortunately the echo tests do not
13692 # yet detect zsh echo's removal of \ escapes.
13693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13694 soname_spec='${libname}${release}${major}$shared_ext'
13695 shlibpath_overrides_runpath=yes
13696 shlibpath_var=DYLD_LIBRARY_PATH
13697 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13699 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13700 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"`
13701 fi
13702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13703 ;;
13704
13705dgux*)
13706 version_type=linux
13707 need_lib_prefix=no
13708 need_version=no
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 shlibpath_var=LD_LIBRARY_PATH
13712 ;;
13713
13714freebsd1*)
13715 dynamic_linker=no
13716 ;;
13717
13718freebsd*)
13719 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13720 version_type=freebsd-$objformat
13721 case $version_type in
13722 freebsd-elf*)
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13724 need_version=no
13725 need_lib_prefix=no
13726 ;;
13727 freebsd-*)
13728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13729 need_version=yes
13730 ;;
13731 esac
13732 shlibpath_var=LD_LIBRARY_PATH
13733 case $host_os in
13734 freebsd2*)
13735 shlibpath_overrides_runpath=yes
13736 ;;
13737 freebsd3.01* | freebsdelf3.01*)
13738 shlibpath_overrides_runpath=yes
13739 hardcode_into_libs=yes
13740 ;;
13741 *) # from 3.2 on
13742 shlibpath_overrides_runpath=no
13743 hardcode_into_libs=yes
13744 ;;
13745 esac
13746 ;;
13747
13748gnu*)
13749 version_type=linux
13750 need_lib_prefix=no
13751 need_version=no
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13753 soname_spec='${libname}${release}${shared_ext}$major'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 hardcode_into_libs=yes
13756 ;;
13757
13758hpux9* | hpux10* | hpux11*)
13759 # Give a soname corresponding to the major version so that dld.sl refuses to
13760 # link against other versions.
13761 version_type=sunos
13762 need_lib_prefix=no
13763 need_version=no
13764 case "$host_cpu" in
13765 ia64*)
13766 shrext='.so'
13767 hardcode_into_libs=yes
13768 dynamic_linker="$host_os dld.so"
13769 shlibpath_var=LD_LIBRARY_PATH
13770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 if test "X$HPUX_IA64_MODE" = X32; then
13774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13775 else
13776 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13777 fi
13778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13779 ;;
13780 hppa*64*)
13781 shrext='.sl'
13782 hardcode_into_libs=yes
13783 dynamic_linker="$host_os dld.sl"
13784 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13790 ;;
13791 *)
13792 shrext='.sl'
13793 dynamic_linker="$host_os dld.sl"
13794 shlibpath_var=SHLIB_PATH
13795 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 ;;
13799 esac
13800 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13801 postinstall_cmds='chmod 555 $lib'
13802 ;;
13803
13804irix5* | irix6* | nonstopux*)
13805 case $host_os in
13806 nonstopux*) version_type=nonstopux ;;
13807 *)
13808 if test "$lt_cv_prog_gnu_ld" = yes; then
13809 version_type=linux
13810 else
13811 version_type=irix
13812 fi ;;
13813 esac
13814 need_lib_prefix=no
13815 need_version=no
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13818 case $host_os in
13819 irix5* | nonstopux*)
13820 libsuff= shlibsuff=
13821 ;;
13822 *)
13823 case $LD in # libtool.m4 will add one of these switches to LD
13824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825 libsuff= shlibsuff= libmagic=32-bit;;
13826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827 libsuff=32 shlibsuff=N32 libmagic=N32;;
13828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830 *) libsuff= shlibsuff= libmagic=never-match;;
13831 esac
13832 ;;
13833 esac
13834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835 shlibpath_overrides_runpath=no
13836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838 hardcode_into_libs=yes
13839 ;;
13840
13841# No shared lib support for Linux oldld, aout, or coff.
13842linux*oldld* | linux*aout* | linux*coff*)
13843 dynamic_linker=no
13844 ;;
13845
13846# This must be Linux ELF.
13847linux*)
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=no
13856 # This implies no fast_install, which is unacceptable.
13857 # Some rework will be needed to allow for fast_install
13858 # before this can be enabled.
13859 hardcode_into_libs=yes
13860
13861 # We used to test for /lib/ld.so.1 and disable shared libraries on
13862 # powerpc, because MkLinux only supported shared libraries with the
13863 # GNU dynamic linker. Since this was broken with cross compilers,
13864 # most powerpc-linux boxes support dynamic linking these days and
13865 # people can always --disable-shared, the test was removed, and we
13866 # assume the GNU/Linux dynamic linker is in use.
13867 dynamic_linker='GNU/Linux ld.so'
13868 ;;
13869
13870netbsd*)
13871 version_type=sunos
13872 need_lib_prefix=no
13873 need_version=no
13874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877 dynamic_linker='NetBSD (a.out) ld.so'
13878 else
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 dynamic_linker='NetBSD ld.elf_so'
13882 fi
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=yes
13885 hardcode_into_libs=yes
13886 ;;
13887
13888newsos6)
13889 version_type=linux
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 shlibpath_overrides_runpath=yes
13893 ;;
13894
13895nto-qnx)
13896 version_type=linux
13897 need_lib_prefix=no
13898 need_version=no
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 shlibpath_var=LD_LIBRARY_PATH
13902 shlibpath_overrides_runpath=yes
13903 ;;
13904
13905openbsd*)
13906 version_type=sunos
13907 need_lib_prefix=no
13908 need_version=no
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13913 case $host_os in
13914 openbsd2.[89] | openbsd2.[89].*)
13915 shlibpath_overrides_runpath=no
13916 ;;
13917 *)
13918 shlibpath_overrides_runpath=yes
13919 ;;
13920 esac
13921 else
13922 shlibpath_overrides_runpath=yes
13923 fi
13924 ;;
13925
13926os2*)
13927 libname_spec='$name'
13928 shrext=".dll"
13929 need_lib_prefix=no
13930 library_names_spec='$libname${shared_ext} $libname.a'
13931 dynamic_linker='OS/2 ld.exe'
13932 shlibpath_var=LIBPATH
13933 ;;
13934
13935osf3* | osf4* | osf5*)
13936 version_type=osf
13937 need_lib_prefix=no
13938 need_version=no
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941 shlibpath_var=LD_LIBRARY_PATH
13942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13944 ;;
13945
13946sco3.2v5*)
13947 version_type=osf
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 ;;
13952
13953solaris*)
13954 version_type=linux
13955 need_lib_prefix=no
13956 need_version=no
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 shlibpath_var=LD_LIBRARY_PATH
13960 shlibpath_overrides_runpath=yes
13961 hardcode_into_libs=yes
13962 # ldd complains unless libraries are executable
13963 postinstall_cmds='chmod +x $lib'
13964 ;;
13965
13966sunos4*)
13967 version_type=sunos
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13970 shlibpath_var=LD_LIBRARY_PATH
13971 shlibpath_overrides_runpath=yes
13972 if test "$with_gnu_ld" = yes; then
13973 need_lib_prefix=no
13974 fi
13975 need_version=yes
13976 ;;
13977
13978sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13979 version_type=linux
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 case $host_vendor in
13984 sni)
13985 shlibpath_overrides_runpath=no
13986 need_lib_prefix=no
13987 export_dynamic_flag_spec='${wl}-Blargedynsym'
13988 runpath_var=LD_RUN_PATH
13989 ;;
13990 siemens)
13991 need_lib_prefix=no
13992 ;;
13993 motorola)
13994 need_lib_prefix=no
13995 need_version=no
13996 shlibpath_overrides_runpath=no
13997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13998 ;;
13999 esac
14000 ;;
14001
14002sysv4*MP*)
14003 if test -d /usr/nec ;then
14004 version_type=linux
14005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14006 soname_spec='$libname${shared_ext}.$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 fi
14009 ;;
14010
14011uts4*)
14012 version_type=linux
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 shlibpath_var=LD_LIBRARY_PATH
14016 ;;
14017
14018*)
14019 dynamic_linker=no
14020 ;;
14021esac
14022echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14023echo "${ECHO_T}$dynamic_linker" >&6
14024test "$dynamic_linker" = no && can_build_shared=no
14025
14026
14027# The else clause should only fire when bootstrapping the
14028# libtool distribution, otherwise you forgot to ship ltmain.sh
14029# with your package, and you will get complaints that there are
14030# no rules to generate ltmain.sh.
14031if test -f "$ltmain"; then
14032 # See if we are running on zsh, and set the options which allow our commands through
14033 # without removal of \ escapes.
14034 if test -n "${ZSH_VERSION+set}" ; then
14035 setopt NO_GLOB_SUBST
14036 fi
14037 # Now quote all the things that may contain metacharacters while being
14038 # careful not to overquote the AC_SUBSTed values. We take copies of the
14039 # variables and quote the copies for generation of the libtool script.
14040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14043 deplibs_check_method reload_flag reload_cmds need_locks \
14044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14045 lt_cv_sys_global_symbol_to_c_name_address \
14046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14047 old_postinstall_cmds old_postuninstall_cmds \
14048 compiler_F77 \
14049 CC_F77 \
14050 LD_F77 \
14051 lt_prog_compiler_wl_F77 \
14052 lt_prog_compiler_pic_F77 \
14053 lt_prog_compiler_static_F77 \
14054 lt_prog_compiler_no_builtin_flag_F77 \
14055 export_dynamic_flag_spec_F77 \
14056 thread_safe_flag_spec_F77 \
14057 whole_archive_flag_spec_F77 \
14058 enable_shared_with_static_runtimes_F77 \
14059 old_archive_cmds_F77 \
14060 old_archive_from_new_cmds_F77 \
14061 predep_objects_F77 \
14062 postdep_objects_F77 \
14063 predeps_F77 \
14064 postdeps_F77 \
14065 compiler_lib_search_path_F77 \
14066 archive_cmds_F77 \
14067 archive_expsym_cmds_F77 \
14068 postinstall_cmds_F77 \
14069 postuninstall_cmds_F77 \
14070 old_archive_from_expsyms_cmds_F77 \
14071 allow_undefined_flag_F77 \
14072 no_undefined_flag_F77 \
14073 export_symbols_cmds_F77 \
14074 hardcode_libdir_flag_spec_F77 \
14075 hardcode_libdir_flag_spec_ld_F77 \
14076 hardcode_libdir_separator_F77 \
14077 hardcode_automatic_F77 \
14078 module_cmds_F77 \
14079 module_expsym_cmds_F77 \
14080 lt_cv_prog_compiler_c_o_F77 \
14081 exclude_expsyms_F77 \
14082 include_expsyms_F77; do
14083
14084 case $var in
14085 old_archive_cmds_F77 | \
14086 old_archive_from_new_cmds_F77 | \
14087 archive_cmds_F77 | \
14088 archive_expsym_cmds_F77 | \
14089 module_cmds_F77 | \
14090 module_expsym_cmds_F77 | \
14091 old_archive_from_expsyms_cmds_F77 | \
14092 export_symbols_cmds_F77 | \
14093 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14094 postinstall_cmds | postuninstall_cmds | \
14095 old_postinstall_cmds | old_postuninstall_cmds | \
14096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14097 # Double-quote double-evaled strings.
14098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14099 ;;
14100 *)
14101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14102 ;;
14103 esac
14104 done
14105
14106 case $lt_echo in
14107 *'\$0 --fallback-echo"')
14108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14109 ;;
14110 esac
14111
14112cfgfile="$ofile"
14113
14114 cat <<__EOF__ >> "$cfgfile"
14115# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14116
14117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14118
14119# Shell to use when invoking shell scripts.
14120SHELL=$lt_SHELL
14121
14122# Whether or not to build shared libraries.
14123build_libtool_libs=$enable_shared
14124
14125# Whether or not to build static libraries.
14126build_old_libs=$enable_static
14127
14128# Whether or not to add -lc for building shared libraries.
14129build_libtool_need_lc=$archive_cmds_need_lc_F77
14130
14131# Whether or not to disallow shared libs when runtime libs are static
14132allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14133
14134# Whether or not to optimize for fast installation.
14135fast_install=$enable_fast_install
14136
14137# The host system.
14138host_alias=$host_alias
14139host=$host
14140
14141# An echo program that does not interpret backslashes.
14142echo=$lt_echo
14143
14144# The archiver.
14145AR=$lt_AR
14146AR_FLAGS=$lt_AR_FLAGS
14147
14148# A C compiler.
14149LTCC=$lt_LTCC
14150
14151# A language-specific compiler.
14152CC=$lt_compiler_F77
14153
14154# Is the compiler the GNU C compiler?
14155with_gcc=$GCC_F77
14156
14157# An ERE matcher.
14158EGREP=$lt_EGREP
14159
14160# The linker used to build libraries.
14161LD=$lt_LD_F77
14162
14163# Whether we need hard or soft links.
14164LN_S=$lt_LN_S
14165
14166# A BSD-compatible nm program.
14167NM=$lt_NM
14168
14169# A symbol stripping program
14170STRIP=$STRIP
14171
14172# Used to examine libraries when file_magic_cmd begins "file"
14173MAGIC_CMD=$MAGIC_CMD
14174
14175# Used on cygwin: DLL creation program.
14176DLLTOOL="$DLLTOOL"
14177
14178# Used on cygwin: object dumper.
14179OBJDUMP="$OBJDUMP"
14180
14181# Used on cygwin: assembler.
14182AS="$AS"
14183
14184# The name of the directory that contains temporary libtool files.
14185objdir=$objdir
14186
14187# How to create reloadable object files.
14188reload_flag=$lt_reload_flag
14189reload_cmds=$lt_reload_cmds
14190
14191# How to pass a linker flag through the compiler.
14192wl=$lt_lt_prog_compiler_wl_F77
14193
14194# Object file suffix (normally "o").
14195objext="$ac_objext"
14196
14197# Old archive suffix (normally "a").
14198libext="$libext"
14199
14200# Shared library suffix (normally ".so").
14201shrext='$shrext'
14202
14203# Executable file suffix (normally "").
14204exeext="$exeext"
14205
14206# Additional compiler flags for building library objects.
14207pic_flag=$lt_lt_prog_compiler_pic_F77
14208pic_mode=$pic_mode
14209
14210# What is the maximum length of a command?
14211max_cmd_len=$lt_cv_sys_max_cmd_len
14212
14213# Does compiler simultaneously support -c and -o options?
14214compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14215
14216# Must we lock files when doing compilation ?
14217need_locks=$lt_need_locks
14218
14219# Do we need the lib prefix for modules?
14220need_lib_prefix=$need_lib_prefix
14221
14222# Do we need a version for libraries?
14223need_version=$need_version
14224
14225# Whether dlopen is supported.
14226dlopen_support=$enable_dlopen
14227
14228# Whether dlopen of programs is supported.
14229dlopen_self=$enable_dlopen_self
14230
14231# Whether dlopen of statically linked programs is supported.
14232dlopen_self_static=$enable_dlopen_self_static
14233
14234# Compiler flag to prevent dynamic linking.
14235link_static_flag=$lt_lt_prog_compiler_static_F77
14236
14237# Compiler flag to turn off builtin functions.
14238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14239
14240# Compiler flag to allow reflexive dlopens.
14241export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14242
14243# Compiler flag to generate shared objects directly from archives.
14244whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14245
14246# Compiler flag to generate thread-safe objects.
14247thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14248
14249# Library versioning type.
14250version_type=$version_type
14251
14252# Format of library name prefix.
14253libname_spec=$lt_libname_spec
14254
14255# List of archive names. First name is the real one, the rest are links.
14256# The last name is the one that the linker finds with -lNAME.
14257library_names_spec=$lt_library_names_spec
14258
14259# The coded name of the library, if different from the real name.
14260soname_spec=$lt_soname_spec
14261
14262# Commands used to build and install an old-style archive.
14263RANLIB=$lt_RANLIB
14264old_archive_cmds=$lt_old_archive_cmds_F77
14265old_postinstall_cmds=$lt_old_postinstall_cmds
14266old_postuninstall_cmds=$lt_old_postuninstall_cmds
14267
14268# Create an old-style archive from a shared archive.
14269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14270
14271# Create a temporary old-style archive to link instead of a shared archive.
14272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14273
14274# Commands used to build and install a shared archive.
14275archive_cmds=$lt_archive_cmds_F77
14276archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14277postinstall_cmds=$lt_postinstall_cmds
14278postuninstall_cmds=$lt_postuninstall_cmds
14279
14280# Commands used to build a loadable module (assumed same as above if empty)
14281module_cmds=$lt_module_cmds_F77
14282module_expsym_cmds=$lt_module_expsym_cmds_F77
14283
14284# Commands to strip libraries.
14285old_striplib=$lt_old_striplib
14286striplib=$lt_striplib
14287
14288# Dependencies to place before the objects being linked to create a
14289# shared library.
14290predep_objects=$lt_predep_objects_F77
14291
14292# Dependencies to place after the objects being linked to create a
14293# shared library.
14294postdep_objects=$lt_postdep_objects_F77
14295
14296# Dependencies to place before the objects being linked to create a
14297# shared library.
14298predeps=$lt_predeps_F77
14299
14300# Dependencies to place after the objects being linked to create a
14301# shared library.
14302postdeps=$lt_postdeps_F77
14303
14304# The library search path used internally by the compiler when linking
14305# a shared library.
14306compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14307
14308# Method to check whether dependent libraries are shared objects.
14309deplibs_check_method=$lt_deplibs_check_method
14310
14311# Command to use when deplibs_check_method == file_magic.
14312file_magic_cmd=$lt_file_magic_cmd
14313
14314# Flag that allows shared libraries with undefined symbols to be built.
14315allow_undefined_flag=$lt_allow_undefined_flag_F77
14316
14317# Flag that forces no undefined symbols.
14318no_undefined_flag=$lt_no_undefined_flag_F77
14319
14320# Commands used to finish a libtool library installation in a directory.
14321finish_cmds=$lt_finish_cmds
14322
14323# Same as above, but a single script fragment to be evaled but not shown.
14324finish_eval=$lt_finish_eval
14325
14326# Take the output of nm and produce a listing of raw symbols and C names.
14327global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14328
14329# Transform the output of nm in a proper C declaration
14330global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14331
14332# Transform the output of nm in a C name address pair
14333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14334
14335# This is the shared library runtime path variable.
14336runpath_var=$runpath_var
14337
14338# This is the shared library path variable.
14339shlibpath_var=$shlibpath_var
14340
14341# Is shlibpath searched before the hard-coded library search path?
14342shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14343
14344# How to hardcode a shared library path into an executable.
14345hardcode_action=$hardcode_action_F77
14346
14347# Whether we should hardcode library paths into libraries.
14348hardcode_into_libs=$hardcode_into_libs
14349
14350# Flag to hardcode \$libdir into a binary during linking.
14351# This must work even if \$libdir does not exist.
14352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14353
14354# If ld is used when linking, flag to hardcode \$libdir into
14355# a binary during linking. This must work even if \$libdir does
14356# not exist.
14357hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14358
14359# Whether we need a single -rpath flag with a separated argument.
14360hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14361
14362# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14363# resulting binary.
14364hardcode_direct=$hardcode_direct_F77
14365
14366# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14367# resulting binary.
14368hardcode_minus_L=$hardcode_minus_L_F77
14369
14370# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14371# the resulting binary.
14372hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14373
14374# Set to yes if building a shared library automatically hardcodes DIR into the library
14375# and all subsequent libraries and executables linked against it.
14376hardcode_automatic=$hardcode_automatic_F77
14377
14378# Variables whose values should be saved in libtool wrapper scripts and
14379# restored at relink time.
14380variables_saved_for_relink="$variables_saved_for_relink"
14381
14382# Whether libtool must link a program against all its dependency libraries.
14383link_all_deplibs=$link_all_deplibs_F77
14384
14385# Compile-time system search path for libraries
14386sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14387
14388# Run-time system search path for libraries
14389sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14390
14391# Fix the shell variable \$srcfile for the compiler.
14392fix_srcfile_path="$fix_srcfile_path_F77"
14393
14394# Set to yes if exported symbols are required.
14395always_export_symbols=$always_export_symbols_F77
14396
14397# The commands to list exported symbols.
14398export_symbols_cmds=$lt_export_symbols_cmds_F77
14399
14400# The commands to extract the exported symbol list from a shared archive.
14401extract_expsyms_cmds=$lt_extract_expsyms_cmds
14402
14403# Symbols that should not be listed in the preloaded symbols.
14404exclude_expsyms=$lt_exclude_expsyms_F77
14405
14406# Symbols that must always be exported.
14407include_expsyms=$lt_include_expsyms_F77
14408
14409# ### END LIBTOOL TAG CONFIG: $tagname
14410
14411__EOF__
14412
14413
14414else
14415 # If there is no Makefile yet, we rely on a make rule to execute
14416 # `config.status --recheck' to rerun these tests and create the
14417 # libtool script then.
14418 test -f Makefile && make "$ltmain"
14419fi
14420
14421
14422ac_ext=c
14423ac_cpp='$CPP $CPPFLAGS'
14424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428CC="$lt_save_CC"
14429
14430 else
14431 tagname=""
14432 fi
14433 ;;
14434
14435 GCJ)
14436 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14437
14438
14439
14440# Source file extension for Java test sources.
14441ac_ext=java
14442
14443# Object file extension for compiled Java test sources.
14444objext=o
14445objext_GCJ=$objext
14446
14447# Code to be used in simple compile tests
14448lt_simple_compile_test_code="class foo {}\n"
14449
14450# Code to be used in simple link tests
14451lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14452
14453# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14454
14455# If no C compiler was specified, use CC.
14456LTCC=${LTCC-"$CC"}
14457
14458# Allow CC to be a program name with arguments.
14459compiler=$CC
14460
14461
14462# Allow CC to be a program name with arguments.
14463lt_save_CC="$CC"
14464CC=${GCJ-"gcj"}
14465compiler=$CC
14466compiler_GCJ=$CC
14467
14468# GCJ did not exist at the time GCC didn't implicitly link libc in.
14469archive_cmds_need_lc_GCJ=no
14470
14471## CAVEAT EMPTOR:
14472## There is no encapsulation within the following macros, do not change
14473## the running order or otherwise move them around unless you know exactly
14474## what you are doing...
14475
14476lt_prog_compiler_no_builtin_flag_GCJ=
14477
14478if test "$GCC" = yes; then
14479 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14480
14481 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14482echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14483if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 lt_cv_prog_compiler_rtti_exceptions=no
14487 ac_outfile=conftest.$ac_objext
14488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489 lt_compiler_flag="-fno-rtti -fno-exceptions"
14490 # Insert the option either (1) after the last *FLAGS variable, or
14491 # (2) before a word containing "conftest.", or (3) at the end.
14492 # Note that $ac_compile itself does not contain backslashes and begins
14493 # with a dollar sign (not a hyphen), so the echo should work correctly.
14494 # The option is referenced via a variable to avoid confusing sed.
14495 lt_compile=`echo "$ac_compile" | $SED \
14496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000014499 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014500 (eval "$lt_compile" 2>conftest.err)
14501 ac_status=$?
14502 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000014503 echo "$as_me:14503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014504 if (exit $ac_status) && test -s "$ac_outfile"; then
14505 # The compiler can only warn and ignore the option if not recognized
14506 # So say no if there are warnings
14507 if test ! -s conftest.err; then
14508 lt_cv_prog_compiler_rtti_exceptions=yes
14509 fi
14510 fi
14511 $rm conftest*
14512
14513fi
14514echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14515echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14516
14517if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14518 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14519else
14520 :
14521fi
14522
14523fi
14524
14525lt_prog_compiler_wl_GCJ=
14526lt_prog_compiler_pic_GCJ=
14527lt_prog_compiler_static_GCJ=
14528
14529echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14530echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14531
14532 if test "$GCC" = yes; then
14533 lt_prog_compiler_wl_GCJ='-Wl,'
14534 lt_prog_compiler_static_GCJ='-static'
14535
14536 case $host_os in
14537 aix*)
14538 # All AIX code is PIC.
14539 if test "$host_cpu" = ia64; then
14540 # AIX 5 now supports IA64 processor
14541 lt_prog_compiler_static_GCJ='-Bstatic'
14542 fi
14543 ;;
14544
14545 amigaos*)
14546 # FIXME: we need at least 68020 code to build shared libraries, but
14547 # adding the `-m68020' flag to GCC prevents building anything better,
14548 # like `-m68040'.
14549 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14550 ;;
14551
14552 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14553 # PIC is the default for these OSes.
14554 ;;
14555
14556 mingw* | pw32* | os2*)
14557 # This hack is so that the source file can tell whether it is being
14558 # built for inclusion in a dll (and should export symbols for example).
14559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14560 ;;
14561
14562 darwin* | rhapsody*)
14563 # PIC is the default on this platform
14564 # Common symbols not allowed in MH_DYLIB files
14565 lt_prog_compiler_pic_GCJ='-fno-common'
14566 ;;
14567
14568 msdosdjgpp*)
14569 # Just because we use GCC doesn't mean we suddenly get shared libraries
14570 # on systems that don't support them.
14571 lt_prog_compiler_can_build_shared_GCJ=no
14572 enable_shared=no
14573 ;;
14574
14575 sysv4*MP*)
14576 if test -d /usr/nec; then
14577 lt_prog_compiler_pic_GCJ=-Kconform_pic
14578 fi
14579 ;;
14580
14581 hpux*)
14582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14583 # not for PA HP-UX.
14584 case "$host_cpu" in
14585 hppa*64*|ia64*)
14586 # +Z the default
14587 ;;
14588 *)
14589 lt_prog_compiler_pic_GCJ='-fPIC'
14590 ;;
14591 esac
14592 ;;
14593
14594 *)
14595 lt_prog_compiler_pic_GCJ='-fPIC'
14596 ;;
14597 esac
14598 else
14599 # PORTME Check for flag to pass linker flags through the system compiler.
14600 case $host_os in
14601 aix*)
14602 lt_prog_compiler_wl_GCJ='-Wl,'
14603 if test "$host_cpu" = ia64; then
14604 # AIX 5 now supports IA64 processor
14605 lt_prog_compiler_static_GCJ='-Bstatic'
14606 else
14607 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14608 fi
14609 ;;
14610
14611 mingw* | pw32* | os2*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14615 ;;
14616
14617 hpux9* | hpux10* | hpux11*)
14618 lt_prog_compiler_wl_GCJ='-Wl,'
14619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14620 # not for PA HP-UX.
14621 case "$host_cpu" in
14622 hppa*64*|ia64*)
14623 # +Z the default
14624 ;;
14625 *)
14626 lt_prog_compiler_pic_GCJ='+Z'
14627 ;;
14628 esac
14629 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14630 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14631 ;;
14632
14633 irix5* | irix6* | nonstopux*)
14634 lt_prog_compiler_wl_GCJ='-Wl,'
14635 # PIC (with -KPIC) is the default.
14636 lt_prog_compiler_static_GCJ='-non_shared'
14637 ;;
14638
14639 newsos6)
14640 lt_prog_compiler_pic_GCJ='-KPIC'
14641 lt_prog_compiler_static_GCJ='-Bstatic'
14642 ;;
14643
14644 linux*)
14645 case $CC in
14646 icc|ecc)
14647 lt_prog_compiler_wl_GCJ='-Wl,'
14648 lt_prog_compiler_pic_GCJ='-KPIC'
14649 lt_prog_compiler_static_GCJ='-static'
14650 ;;
14651 ccc)
14652 lt_prog_compiler_wl_GCJ='-Wl,'
14653 # All Alpha code is PIC.
14654 lt_prog_compiler_static_GCJ='-non_shared'
14655 ;;
14656 esac
14657 ;;
14658
14659 osf3* | osf4* | osf5*)
14660 lt_prog_compiler_wl_GCJ='-Wl,'
14661 # All OSF/1 code is PIC.
14662 lt_prog_compiler_static_GCJ='-non_shared'
14663 ;;
14664
14665 sco3.2v5*)
14666 lt_prog_compiler_pic_GCJ='-Kpic'
14667 lt_prog_compiler_static_GCJ='-dn'
14668 ;;
14669
14670 solaris*)
14671 lt_prog_compiler_wl_GCJ='-Wl,'
14672 lt_prog_compiler_pic_GCJ='-KPIC'
14673 lt_prog_compiler_static_GCJ='-Bstatic'
14674 ;;
14675
14676 sunos4*)
14677 lt_prog_compiler_wl_GCJ='-Qoption ld '
14678 lt_prog_compiler_pic_GCJ='-PIC'
14679 lt_prog_compiler_static_GCJ='-Bstatic'
14680 ;;
14681
14682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14683 lt_prog_compiler_wl_GCJ='-Wl,'
14684 lt_prog_compiler_pic_GCJ='-KPIC'
14685 lt_prog_compiler_static_GCJ='-Bstatic'
14686 ;;
14687
14688 sysv4*MP*)
14689 if test -d /usr/nec ;then
14690 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14691 lt_prog_compiler_static_GCJ='-Bstatic'
14692 fi
14693 ;;
14694
14695 uts4*)
14696 lt_prog_compiler_pic_GCJ='-pic'
14697 lt_prog_compiler_static_GCJ='-Bstatic'
14698 ;;
14699
14700 *)
14701 lt_prog_compiler_can_build_shared_GCJ=no
14702 ;;
14703 esac
14704 fi
14705
14706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14707echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14708
14709#
14710# Check to make sure the PIC flag actually works.
14711#
14712if test -n "$lt_prog_compiler_pic_GCJ"; then
14713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14715if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 lt_prog_compiler_pic_works_GCJ=no
14719 ac_outfile=conftest.$ac_objext
14720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14722 # Insert the option either (1) after the last *FLAGS variable, or
14723 # (2) before a word containing "conftest.", or (3) at the end.
14724 # Note that $ac_compile itself does not contain backslashes and begins
14725 # with a dollar sign (not a hyphen), so the echo should work correctly.
14726 # The option is referenced via a variable to avoid confusing sed.
14727 lt_compile=`echo "$ac_compile" | $SED \
14728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14730 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000014731 (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014732 (eval "$lt_compile" 2>conftest.err)
14733 ac_status=$?
14734 cat conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000014735 echo "$as_me:14735: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014736 if (exit $ac_status) && test -s "$ac_outfile"; then
14737 # The compiler can only warn and ignore the option if not recognized
14738 # So say no if there are warnings
14739 if test ! -s conftest.err; then
14740 lt_prog_compiler_pic_works_GCJ=yes
14741 fi
14742 fi
14743 $rm conftest*
14744
14745fi
14746echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14747echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14748
14749if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14750 case $lt_prog_compiler_pic_GCJ in
14751 "" | " "*) ;;
14752 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14753 esac
14754else
14755 lt_prog_compiler_pic_GCJ=
14756 lt_prog_compiler_can_build_shared_GCJ=no
14757fi
14758
14759fi
14760case "$host_os" in
14761 # For platforms which do not support PIC, -DPIC is meaningless:
14762 *djgpp*)
14763 lt_prog_compiler_pic_GCJ=
14764 ;;
14765 *)
14766 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14767 ;;
14768esac
14769
14770echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14771echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14772if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774else
14775 lt_cv_prog_compiler_c_o_GCJ=no
14776 $rm -r conftest 2>/dev/null
14777 mkdir conftest
14778 cd conftest
14779 mkdir out
14780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14781
14782 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14783 # that will create temporary files in the current directory regardless of
14784 # the output directory. Thus, making CWD read-only will cause this test
14785 # to fail, enabling locking or at least warning the user not to do parallel
14786 # builds.
14787 chmod -w .
14788
14789 lt_compiler_flag="-o out/conftest2.$ac_objext"
14790 # Insert the option either (1) after the last *FLAGS variable, or
14791 # (2) before a word containing "conftest.", or (3) at the end.
14792 # Note that $ac_compile itself does not contain backslashes and begins
14793 # with a dollar sign (not a hyphen), so the echo should work correctly.
14794 lt_compile=`echo "$ac_compile" | $SED \
14795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14797 -e 's:$: $lt_compiler_flag:'`
John Criswellde00db22003-08-25 16:49:54 +000014798 (eval echo "\"\$as_me:14798: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014799 (eval "$lt_compile" 2>out/conftest.err)
14800 ac_status=$?
14801 cat out/conftest.err >&5
John Criswellde00db22003-08-25 16:49:54 +000014802 echo "$as_me:14802: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14804 then
14805 # The compiler can only warn and ignore the option if not recognized
14806 # So say no if there are warnings
14807 if test ! -s out/conftest.err; then
14808 lt_cv_prog_compiler_c_o_GCJ=yes
14809 fi
14810 fi
14811 chmod u+w .
14812 $rm conftest* out/*
14813 rmdir out
14814 cd ..
14815 rmdir conftest
14816 $rm conftest*
14817
14818fi
14819echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14820echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14821
14822
14823hard_links="nottested"
14824if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14825 # do not overwrite the value of need_locks provided by the user
14826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14827echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14828 hard_links=yes
14829 $rm conftest*
14830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14831 touch conftest.a
14832 ln conftest.a conftest.b 2>&5 || hard_links=no
14833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14834 echo "$as_me:$LINENO: result: $hard_links" >&5
14835echo "${ECHO_T}$hard_links" >&6
14836 if test "$hard_links" = no; then
14837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14838echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14839 need_locks=warn
14840 fi
14841else
14842 need_locks=no
14843fi
14844
14845echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14847
14848 runpath_var=
14849 allow_undefined_flag_GCJ=
14850 enable_shared_with_static_runtimes_GCJ=no
14851 archive_cmds_GCJ=
14852 archive_expsym_cmds_GCJ=
14853 old_archive_From_new_cmds_GCJ=
14854 old_archive_from_expsyms_cmds_GCJ=
14855 export_dynamic_flag_spec_GCJ=
14856 whole_archive_flag_spec_GCJ=
14857 thread_safe_flag_spec_GCJ=
14858 hardcode_libdir_flag_spec_GCJ=
14859 hardcode_libdir_flag_spec_ld_GCJ=
14860 hardcode_libdir_separator_GCJ=
14861 hardcode_direct_GCJ=no
14862 hardcode_minus_L_GCJ=no
14863 hardcode_shlibpath_var_GCJ=unsupported
14864 link_all_deplibs_GCJ=unknown
14865 hardcode_automatic_GCJ=no
14866 module_cmds_GCJ=
14867 module_expsym_cmds_GCJ=
14868 always_export_symbols_GCJ=no
14869 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870 # include_expsyms should be a list of space-separated symbols to be *always*
14871 # included in the symbol list
14872 include_expsyms_GCJ=
14873 # exclude_expsyms can be an extended regexp of symbols to exclude
14874 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14875 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14876 # as well as any symbol that contains `d'.
14877 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14879 # platforms (ab)use it in PIC code, but their linkers get confused if
14880 # the symbol is explicitly referenced. Since portable code cannot
14881 # rely on this symbol name, it's probably fine to never include it in
14882 # preloaded symbol tables.
14883 extract_expsyms_cmds=
14884
14885 case $host_os in
14886 cygwin* | mingw* | pw32*)
14887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14888 # When not using gcc, we currently assume that we are using
14889 # Microsoft Visual C++.
14890 if test "$GCC" != yes; then
14891 with_gnu_ld=no
14892 fi
14893 ;;
14894 openbsd*)
14895 with_gnu_ld=no
14896 ;;
14897 esac
14898
14899 ld_shlibs_GCJ=yes
14900 if test "$with_gnu_ld" = yes; then
14901 # If archive_cmds runs LD, not CC, wlarc should be empty
14902 wlarc='${wl}'
14903
14904 # See if GNU ld supports shared libraries.
14905 case $host_os in
14906 aix3* | aix4* | aix5*)
14907 # On AIX/PPC, the GNU linker is very broken
14908 if test "$host_cpu" != ia64; then
14909 ld_shlibs_GCJ=no
14910 cat <<EOF 1>&2
14911
14912*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14913*** to be unable to reliably create shared libraries on AIX.
14914*** Therefore, libtool is disabling shared libraries support. If you
14915*** really care for shared libraries, you may want to modify your PATH
14916*** so that a non-GNU linker is found, and then restart.
14917
14918EOF
14919 fi
14920 ;;
14921
14922 amigaos*)
14923 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)'
14924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14925 hardcode_minus_L_GCJ=yes
14926
14927 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14928 # that the semantics of dynamic libraries on AmigaOS, at least up
14929 # to version 4, is to share data among multiple programs linked
14930 # with the same dynamic library. Since this doesn't match the
14931 # behavior of shared libraries on other platforms, we can't use
14932 # them.
14933 ld_shlibs_GCJ=no
14934 ;;
14935
14936 beos*)
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 allow_undefined_flag_GCJ=unsupported
14939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14940 # support --undefined. This deserves some investigation. FIXME
14941 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942 else
14943 ld_shlibs_GCJ=no
14944 fi
14945 ;;
14946
14947 cygwin* | mingw* | pw32*)
14948 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14949 # as there is no search path for DLLs.
14950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14951 allow_undefined_flag_GCJ=unsupported
14952 always_export_symbols_GCJ=no
14953 enable_shared_with_static_runtimes_GCJ=yes
14954 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14955
14956 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14957 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14958 # If the export-symbols file already is a .def file (1st line
14959 # is EXPORTS), use it as is; otherwise, prepend...
14960 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14961 cp $export_symbols $output_objdir/$soname.def;
14962 else
14963 echo EXPORTS > $output_objdir/$soname.def;
14964 cat $export_symbols >> $output_objdir/$soname.def;
14965 fi~
14966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14967 else
14968 ld_shlibs=no
14969 fi
14970 ;;
14971
14972 netbsd*)
14973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14974 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14975 wlarc=
14976 else
14977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14979 fi
14980 ;;
14981
14982 solaris* | sysv5*)
14983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14984 ld_shlibs_GCJ=no
14985 cat <<EOF 1>&2
14986
14987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14988*** create shared libraries on Solaris systems. Therefore, libtool
14989*** is disabling shared libraries support. We urge you to upgrade GNU
14990*** binutils to release 2.9.1 or newer. Another option is to modify
14991*** your PATH or compiler configuration so that the native linker is
14992*** used, and then restart.
14993
14994EOF
14995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14998 else
14999 ld_shlibs_GCJ=no
15000 fi
15001 ;;
15002
15003 sunos4*)
15004 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15005 wlarc=
15006 hardcode_direct_GCJ=yes
15007 hardcode_shlibpath_var_GCJ=no
15008 ;;
15009
15010 *)
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15014 else
15015 ld_shlibs_GCJ=no
15016 fi
15017 ;;
15018 esac
15019
15020 if test "$ld_shlibs_GCJ" = yes; then
15021 runpath_var=LD_RUN_PATH
15022 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15023 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15024 # ancient GNU ld didn't support --whole-archive et. al.
15025 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15026 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15027 else
15028 whole_archive_flag_spec_GCJ=
15029 fi
15030 fi
15031 else
15032 # PORTME fill in a description of your system's linker (not GNU ld)
15033 case $host_os in
15034 aix3*)
15035 allow_undefined_flag_GCJ=unsupported
15036 always_export_symbols_GCJ=yes
15037 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'
15038 # Note: this linker hardcodes the directories in LIBPATH if there
15039 # are no directories specified by -L.
15040 hardcode_minus_L_GCJ=yes
15041 if test "$GCC" = yes && test -z "$link_static_flag"; then
15042 # Neither direct hardcoding nor static linking is supported with a
15043 # broken collect2.
15044 hardcode_direct_GCJ=unsupported
15045 fi
15046 ;;
15047
15048 aix4* | aix5*)
15049 if test "$host_cpu" = ia64; then
15050 # On IA64, the linker does run time linking by default, so we don't
15051 # have to do anything special.
15052 aix_use_runtimelinking=no
15053 exp_sym_flag='-Bexport'
15054 no_entry_flag=""
15055 else
15056 # If we're using GNU nm, then we don't want the "-C" option.
15057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15059 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'
15060 else
15061 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'
15062 fi
15063 aix_use_runtimelinking=no
15064
15065 # Test if we are trying to use run time linking or normal
15066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15067 # need to do runtime linking.
15068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15069 for ld_flag in $LDFLAGS; do
15070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15071 aix_use_runtimelinking=yes
15072 break
15073 fi
15074 done
15075 esac
15076
15077 exp_sym_flag='-bexport'
15078 no_entry_flag='-bnoentry'
15079 fi
15080
15081 # When large executables or shared objects are built, AIX ld can
15082 # have problems creating the table of contents. If linking a library
15083 # or program results in "error TOC overflow" add -mminimal-toc to
15084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15086
15087 archive_cmds_GCJ=''
15088 hardcode_direct_GCJ=yes
15089 hardcode_libdir_separator_GCJ=':'
15090 link_all_deplibs_GCJ=yes
15091
15092 if test "$GCC" = yes; then
15093 case $host_os in aix4.012|aix4.012.*)
15094 # We only want to do this on AIX 4.2 and lower, the check
15095 # below for broken collect2 doesn't work under 4.3+
15096 collect2name=`${CC} -print-prog-name=collect2`
15097 if test -f "$collect2name" && \
15098 strings "$collect2name" | grep resolve_lib_name >/dev/null
15099 then
15100 # We have reworked collect2
15101 hardcode_direct_GCJ=yes
15102 else
15103 # We have old collect2
15104 hardcode_direct_GCJ=unsupported
15105 # It fails to find uninstalled libraries when the uninstalled
15106 # path is not listed in the libpath. Setting hardcode_minus_L
15107 # to unsupported forces relinking
15108 hardcode_minus_L_GCJ=yes
15109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15110 hardcode_libdir_separator_GCJ=
15111 fi
15112 esac
15113 shared_flag='-shared'
15114 else
15115 # not using gcc
15116 if test "$host_cpu" = ia64; then
15117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15118 # chokes on -Wl,-G. The following line is correct:
15119 shared_flag='-G'
15120 else
15121 if test "$aix_use_runtimelinking" = yes; then
15122 shared_flag='${wl}-G'
15123 else
15124 shared_flag='${wl}-bM:SRE'
15125 fi
15126 fi
15127 fi
15128
15129 # It seems that -bexpall does not export symbols beginning with
15130 # underscore (_), so it is better to generate a list of symbols to export.
15131 always_export_symbols_GCJ=yes
15132 if test "$aix_use_runtimelinking" = yes; then
15133 # Warning - without using the other runtime loading flags (-brtl),
15134 # -berok will link without error, but may produce a broken library.
15135 allow_undefined_flag_GCJ='-berok'
15136 # Determine the default libpath from the value encoded in an empty executable.
15137 cat >conftest.$ac_ext <<_ACEOF
15138#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015144
John Criswell47fdd832003-07-14 16:52:07 +000015145int
15146main ()
15147{
15148
15149 ;
15150 return 0;
15151}
15152_ACEOF
15153rm -f conftest.$ac_objext conftest$ac_exeext
15154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155 (eval $ac_link) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165
15166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15167}'`
15168# Check for a 64-bit object if we didn't find anything.
15169if 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; }
15170}'`; fi
15171else
15172 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015173sed 's/^/| /' conftest.$ac_ext >&5
15174
John Criswell47fdd832003-07-14 16:52:07 +000015175fi
15176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15178
15179 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15180 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"
15181 else
15182 if test "$host_cpu" = ia64; then
15183 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15184 allow_undefined_flag_GCJ="-z nodefs"
15185 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"
15186 else
15187 # Determine the default libpath from the value encoded in an empty executable.
15188 cat >conftest.$ac_ext <<_ACEOF
15189#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015190/* confdefs.h. */
15191_ACEOF
15192cat confdefs.h >>conftest.$ac_ext
15193cat >>conftest.$ac_ext <<_ACEOF
15194/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015195
John Criswell47fdd832003-07-14 16:52:07 +000015196int
15197main ()
15198{
15199
15200 ;
15201 return 0;
15202}
15203_ACEOF
15204rm -f conftest.$ac_objext conftest$ac_exeext
15205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15206 (eval $ac_link) 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
15210 { ac_try='test -s conftest$ac_exeext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216
15217aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15218}'`
15219# Check for a 64-bit object if we didn't find anything.
15220if 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; }
15221}'`; fi
15222else
15223 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015224sed 's/^/| /' conftest.$ac_ext >&5
15225
John Criswell47fdd832003-07-14 16:52:07 +000015226fi
15227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
15230 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15231 # Warning - without using the other run time loading flags,
15232 # -berok will link without error, but may produce a broken library.
15233 no_undefined_flag_GCJ=' ${wl}-bernotok'
15234 allow_undefined_flag_GCJ=' ${wl}-berok'
15235 # -bexpall does not export symbols beginning with underscore (_)
15236 always_export_symbols_GCJ=yes
15237 # Exported symbols can be pulled into shared objects from archives
15238 whole_archive_flag_spec_GCJ=' '
15239 archive_cmds_need_lc_GCJ=yes
15240 # This is similar to how AIX traditionally builds it's shared libraries.
15241 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'
15242 fi
15243 fi
15244 ;;
15245
15246 amigaos*)
15247 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)'
15248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15249 hardcode_minus_L_GCJ=yes
15250 # see comment about different semantics on the GNU ld section
15251 ld_shlibs_GCJ=no
15252 ;;
15253
15254 bsdi4*)
15255 export_dynamic_flag_spec_GCJ=-rdynamic
15256 ;;
15257
15258 cygwin* | mingw* | pw32*)
15259 # When not using gcc, we currently assume that we are using
15260 # Microsoft Visual C++.
15261 # hardcode_libdir_flag_spec is actually meaningless, as there is
15262 # no search path for DLLs.
15263 hardcode_libdir_flag_spec_GCJ=' '
15264 allow_undefined_flag_GCJ=unsupported
15265 # Tell ltmain to make .lib files, not .a files.
15266 libext=lib
15267 # Tell ltmain to make .dll files, not .so files.
15268 shrext=".dll"
15269 # FIXME: Setting linknames here is a bad hack.
15270 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15271 # The linker will automatically build a .lib file if we build a DLL.
15272 old_archive_From_new_cmds_GCJ='true'
15273 # FIXME: Should let the user specify the lib program.
15274 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15275 fix_srcfile_path='`cygpath -w "$srcfile"`'
15276 enable_shared_with_static_runtimes_GCJ=yes
15277 ;;
15278
15279 darwin* | rhapsody*)
15280 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15281 archive_cmds_need_lc_GCJ=no
15282 case "$host_os" in
15283 rhapsody* | darwin1.[012])
15284 allow_undefined_flag_GCJ='-undefined suppress'
15285 ;;
15286 *) # Darwin 1.3 on
15287 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15288 ;;
15289 esac
15290 # FIXME: Relying on posixy $() will cause problems for
15291 # cross-compilation, but unfortunately the echo tests do not
15292 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15293 # `"' quotes if we put them in here... so don't!
15294 lt_int_apple_cc_single_mod=no
15295 output_verbose_link_cmd='echo'
15296 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15297 lt_int_apple_cc_single_mod=yes
15298 fi
15299 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15300 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15301 else
15302 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'
15303 fi
15304 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15307 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}'
15308 else
15309 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}'
15310 fi
15311 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}'
15312 hardcode_direct_GCJ=no
15313 hardcode_automatic_GCJ=yes
15314 hardcode_shlibpath_var_GCJ=unsupported
15315 whole_archive_flag_spec_GCJ='-all_load $convenience'
15316 link_all_deplibs_GCJ=yes
15317 fi
15318 ;;
15319
15320 dgux*)
15321 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15323 hardcode_shlibpath_var_GCJ=no
15324 ;;
15325
15326 freebsd1*)
15327 ld_shlibs_GCJ=no
15328 ;;
15329
15330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15331 # support. Future versions do this automatically, but an explicit c++rt0.o
15332 # does not break anything, and helps significantly (at the cost of a little
15333 # extra space).
15334 freebsd2.2*)
15335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15336 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15337 hardcode_direct_GCJ=yes
15338 hardcode_shlibpath_var_GCJ=no
15339 ;;
15340
15341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15342 freebsd2*)
15343 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_direct_GCJ=yes
15345 hardcode_minus_L_GCJ=yes
15346 hardcode_shlibpath_var_GCJ=no
15347 ;;
15348
15349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15350 freebsd*)
15351 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15352 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15353 hardcode_direct_GCJ=yes
15354 hardcode_shlibpath_var_GCJ=no
15355 ;;
15356
15357 hpux9*)
15358 if test "$GCC" = yes; then
15359 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'
15360 else
15361 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'
15362 fi
15363 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15364 hardcode_libdir_separator_GCJ=:
15365 hardcode_direct_GCJ=yes
15366
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L_GCJ=yes
15370 export_dynamic_flag_spec_GCJ='${wl}-E'
15371 ;;
15372
15373 hpux10* | hpux11*)
15374 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15375 case "$host_cpu" in
15376 hppa*64*|ia64*)
15377 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 ;;
15379 *)
15380 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381 ;;
15382 esac
15383 else
15384 case "$host_cpu" in
15385 hppa*64*|ia64*)
15386 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 ;;
15388 *)
15389 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15390 ;;
15391 esac
15392 fi
15393 if test "$with_gnu_ld" = no; then
15394 case "$host_cpu" in
15395 hppa*64*)
15396 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15397 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15398 hardcode_libdir_separator_GCJ=:
15399 hardcode_direct_GCJ=no
15400 hardcode_shlibpath_var_GCJ=no
15401 ;;
15402 ia64*)
15403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15404 hardcode_direct_GCJ=no
15405 hardcode_shlibpath_var_GCJ=no
15406
15407 # hardcode_minus_L: Not really in the search PATH,
15408 # but as the default location of the library.
15409 hardcode_minus_L_GCJ=yes
15410 ;;
15411 *)
15412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15413 hardcode_libdir_separator_GCJ=:
15414 hardcode_direct_GCJ=yes
15415 export_dynamic_flag_spec_GCJ='${wl}-E'
15416
15417 # hardcode_minus_L: Not really in the search PATH,
15418 # but as the default location of the library.
15419 hardcode_minus_L_GCJ=yes
15420 ;;
15421 esac
15422 fi
15423 ;;
15424
15425 irix5* | irix6* | nonstopux*)
15426 if test "$GCC" = yes; then
15427 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'
15428 else
15429 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'
15430 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15431 fi
15432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15433 hardcode_libdir_separator_GCJ=:
15434 link_all_deplibs_GCJ=yes
15435 ;;
15436
15437 netbsd*)
15438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15440 else
15441 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15442 fi
15443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15444 hardcode_direct_GCJ=yes
15445 hardcode_shlibpath_var_GCJ=no
15446 ;;
15447
15448 newsos6)
15449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450 hardcode_direct_GCJ=yes
15451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15452 hardcode_libdir_separator_GCJ=:
15453 hardcode_shlibpath_var_GCJ=no
15454 ;;
15455
15456 openbsd*)
15457 hardcode_direct_GCJ=yes
15458 hardcode_shlibpath_var_GCJ=no
15459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15460 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15462 export_dynamic_flag_spec_GCJ='${wl}-E'
15463 else
15464 case $host_os in
15465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15468 ;;
15469 *)
15470 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15472 ;;
15473 esac
15474 fi
15475 ;;
15476
15477 os2*)
15478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479 hardcode_minus_L_GCJ=yes
15480 allow_undefined_flag_GCJ=unsupported
15481 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'
15482 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15483 ;;
15484
15485 osf3*)
15486 if test "$GCC" = yes; then
15487 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15488 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'
15489 else
15490 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15491 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'
15492 fi
15493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15494 hardcode_libdir_separator_GCJ=:
15495 ;;
15496
15497 osf4* | osf5*) # as osf3* with the addition of -msym flag
15498 if test "$GCC" = yes; then
15499 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15500 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'
15501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15502 else
15503 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15504 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'
15505 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~
15506 $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'
15507
15508 # Both c and cxx compiler support -rpath directly
15509 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15510 fi
15511 hardcode_libdir_separator_GCJ=:
15512 ;;
15513
15514 sco3.2v5*)
15515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_shlibpath_var_GCJ=no
15517 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15518 runpath_var=LD_RUN_PATH
15519 hardcode_runpath_var=yes
15520 ;;
15521
15522 solaris*)
15523 no_undefined_flag_GCJ=' -z text'
15524 if test "$GCC" = yes; then
15525 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15527 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15528 else
15529 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15532 fi
15533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15534 hardcode_shlibpath_var_GCJ=no
15535 case $host_os in
15536 solaris2.[0-5] | solaris2.[0-5].*) ;;
15537 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15538 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15539 esac
15540 link_all_deplibs_GCJ=yes
15541 ;;
15542
15543 sunos4*)
15544 if test "x$host_vendor" = xsequent; then
15545 # Use $CC to link under sequent, because it throws in some extra .o
15546 # files that make .init and .fini sections work.
15547 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15548 else
15549 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15550 fi
15551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15552 hardcode_direct_GCJ=yes
15553 hardcode_minus_L_GCJ=yes
15554 hardcode_shlibpath_var_GCJ=no
15555 ;;
15556
15557 sysv4)
15558 case $host_vendor in
15559 sni)
15560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_direct_GCJ=yes # is this really true???
15562 ;;
15563 siemens)
15564 ## LD is ld it makes a PLAMLIB
15565 ## CC just makes a GrossModule.
15566 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15567 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15568 hardcode_direct_GCJ=no
15569 ;;
15570 motorola)
15571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15573 ;;
15574 esac
15575 runpath_var='LD_RUN_PATH'
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578
15579 sysv4.3*)
15580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var_GCJ=no
15582 export_dynamic_flag_spec_GCJ='-Bexport'
15583 ;;
15584
15585 sysv4*MP*)
15586 if test -d /usr/nec; then
15587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_shlibpath_var_GCJ=no
15589 runpath_var=LD_RUN_PATH
15590 hardcode_runpath_var=yes
15591 ld_shlibs_GCJ=yes
15592 fi
15593 ;;
15594
15595 sysv4.2uw2*)
15596 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct_GCJ=yes
15598 hardcode_minus_L_GCJ=no
15599 hardcode_shlibpath_var_GCJ=no
15600 hardcode_runpath_var=yes
15601 runpath_var=LD_RUN_PATH
15602 ;;
15603
15604 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15605 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15606 if test "$GCC" = yes; then
15607 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 else
15609 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 fi
15611 runpath_var='LD_RUN_PATH'
15612 hardcode_shlibpath_var_GCJ=no
15613 ;;
15614
15615 sysv5*)
15616 no_undefined_flag_GCJ=' -z text'
15617 # $CC -shared without GNU ld will not create a library from C++
15618 # object files and a static libstdc++, better avoid it by now
15619 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15622 hardcode_libdir_flag_spec_GCJ=
15623 hardcode_shlibpath_var_GCJ=no
15624 runpath_var='LD_RUN_PATH'
15625 ;;
15626
15627 uts4*)
15628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15630 hardcode_shlibpath_var_GCJ=no
15631 ;;
15632
15633 *)
15634 ld_shlibs_GCJ=no
15635 ;;
15636 esac
15637 fi
15638
15639echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15640echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15641test "$ld_shlibs_GCJ" = no && can_build_shared=no
15642
15643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15644if test "$GCC" = yes; then
15645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15646fi
15647
15648#
15649# Do we need to explicitly link libc?
15650#
15651case "x$archive_cmds_need_lc_GCJ" in
15652x|xyes)
15653 # Assume -lc should be added
15654 archive_cmds_need_lc_GCJ=yes
15655
15656 if test "$enable_shared" = yes && test "$GCC" = yes; then
15657 case $archive_cmds_GCJ in
15658 *'~'*)
15659 # FIXME: we may have to deal with multi-command sequences.
15660 ;;
15661 '$CC '*)
15662 # Test whether the compiler implicitly links with -lc since on some
15663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664 # to ld, don't add -lc before -lgcc.
15665 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15667 $rm conftest*
15668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } 2>conftest.err; then
15675 soname=conftest
15676 lib=conftest
15677 libobjs=conftest.$ac_objext
15678 deplibs=
15679 wl=$lt_prog_compiler_wl_GCJ
15680 compiler_flags=-v
15681 linker_flags=-v
15682 verstring=
15683 output_objdir=.
15684 libname=conftest
15685 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15686 allow_undefined_flag_GCJ=
15687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15688 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }
15692 then
15693 archive_cmds_need_lc_GCJ=no
15694 else
15695 archive_cmds_need_lc_GCJ=yes
15696 fi
15697 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15698 else
15699 cat conftest.err 1>&5
15700 fi
15701 $rm conftest*
15702 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15703echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15704 ;;
15705 esac
15706 fi
15707 ;;
15708esac
15709
15710echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15711echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15712hardcode_action_GCJ=
15713if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15714 test -n "$runpath_var GCJ" || \
15715 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15716
15717 # We can hardcode non-existant directories.
15718 if test "$hardcode_direct_GCJ" != no &&
15719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15720 # have to relink, otherwise we might link with an installed library
15721 # when we should be linking with a yet-to-be-installed one
15722 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15723 test "$hardcode_minus_L_GCJ" != no; then
15724 # Linking always hardcodes the temporary library directory.
15725 hardcode_action_GCJ=relink
15726 else
15727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15728 hardcode_action_GCJ=immediate
15729 fi
15730else
15731 # We cannot hardcode anything, or else we can only hardcode existing
15732 # directories.
15733 hardcode_action_GCJ=unsupported
15734fi
15735echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15736echo "${ECHO_T}$hardcode_action_GCJ" >&6
15737
15738if test "$hardcode_action_GCJ" = relink; then
15739 # Fast installation is not supported
15740 enable_fast_install=no
15741elif test "$shlibpath_overrides_runpath" = yes ||
15742 test "$enable_shared" = no; then
15743 # Fast installation is not necessary
15744 enable_fast_install=needless
15745fi
15746
15747striplib=
15748old_striplib=
15749echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15750echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15751if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15754 echo "$as_me:$LINENO: result: yes" >&5
15755echo "${ECHO_T}yes" >&6
15756else
15757# FIXME - insert some real tests, host_os isn't really good enough
15758 case $host_os in
15759 darwin*)
15760 if test -n "$STRIP" ; then
15761 striplib="$STRIP -x"
15762 echo "$as_me:$LINENO: result: yes" >&5
15763echo "${ECHO_T}yes" >&6
15764 else
15765 echo "$as_me:$LINENO: result: no" >&5
15766echo "${ECHO_T}no" >&6
15767fi
15768 ;;
15769 *)
15770 echo "$as_me:$LINENO: result: no" >&5
15771echo "${ECHO_T}no" >&6
15772 ;;
15773 esac
15774fi
15775
15776echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15777echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15778library_names_spec=
15779libname_spec='lib$name'
15780soname_spec=
15781shrext=".so"
15782postinstall_cmds=
15783postuninstall_cmds=
15784finish_cmds=
15785finish_eval=
15786shlibpath_var=
15787shlibpath_overrides_runpath=unknown
15788version_type=none
15789dynamic_linker="$host_os ld.so"
15790sys_lib_dlsearch_path_spec="/lib /usr/lib"
15791if test "$GCC" = yes; then
15792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15793 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15794 # if the path contains ";" then we assume it to be the separator
15795 # otherwise default to the standard path separator (i.e. ":") - it is
15796 # assumed that no part of a normal pathname contains ";" but that should
15797 # okay in the real world where ";" in dirpaths is itself problematic.
15798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15799 else
15800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15801 fi
15802else
15803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15804fi
15805need_lib_prefix=unknown
15806hardcode_into_libs=no
15807
15808# when you set need_version to no, make sure it does not cause -set_version
15809# flags to be left without arguments
15810need_version=unknown
15811
15812case $host_os in
15813aix3*)
15814 version_type=linux
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15816 shlibpath_var=LIBPATH
15817
15818 # AIX 3 has no versioning support, so we append a major version to the name.
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 ;;
15821
15822aix4* | aix5*)
15823 version_type=linux
15824 need_lib_prefix=no
15825 need_version=no
15826 hardcode_into_libs=yes
15827 if test "$host_cpu" = ia64; then
15828 # AIX 5 supports IA64
15829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15830 shlibpath_var=LD_LIBRARY_PATH
15831 else
15832 # With GCC up to 2.95.x, collect2 would create an import file
15833 # for dependence libraries. The import file would start with
15834 # the line `#! .'. This would cause the generated library to
15835 # depend on `.', always an invalid library. This was fixed in
15836 # development snapshots of GCC prior to 3.0.
15837 case $host_os in
15838 aix4 | aix4.[01] | aix4.[01].*)
15839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15840 echo ' yes '
15841 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15842 :
15843 else
15844 can_build_shared=no
15845 fi
15846 ;;
15847 esac
15848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15849 # soname into executable. Probably we can add versioning support to
15850 # collect2, so additional links can be useful in future.
15851 if test "$aix_use_runtimelinking" = yes; then
15852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15853 # instead of lib<name>.a to let people know that these are not
15854 # typical AIX shared libraries.
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 else
15857 # We preserve .a as extension for shared libraries through AIX4.2
15858 # and later when we are not doing run time linking.
15859 library_names_spec='${libname}${release}.a $libname.a'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 fi
15862 shlibpath_var=LIBPATH
15863 fi
15864 ;;
15865
15866amigaos*)
15867 library_names_spec='$libname.ixlibrary $libname.a'
15868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15869 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'
15870 ;;
15871
15872beos*)
15873 library_names_spec='${libname}${shared_ext}'
15874 dynamic_linker="$host_os ld.so"
15875 shlibpath_var=LIBRARY_PATH
15876 ;;
15877
15878bsdi4*)
15879 version_type=linux
15880 need_version=no
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15887 # the default ld.so.conf also contains /usr/contrib/lib and
15888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15889 # libtool to hard-code these into programs
15890 ;;
15891
15892cygwin* | mingw* | pw32*)
15893 version_type=windows
15894 shrext=".dll"
15895 need_version=no
15896 need_lib_prefix=no
15897
15898 case $GCC,$host_os in
15899 yes,cygwin* | yes,mingw* | yes,pw32*)
15900 library_names_spec='$libname.dll.a'
15901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15902 postinstall_cmds='base_file=`basename \${file}`~
15903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15904 dldir=$destdir/`dirname \$dlpath`~
15905 test -d \$dldir || mkdir -p \$dldir~
15906 $install_prog $dir/$dlname \$dldir/$dlname'
15907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15908 dlpath=$dir/\$dldll~
15909 $rm \$dlpath'
15910 shlibpath_overrides_runpath=yes
15911
15912 case $host_os in
15913 cygwin*)
15914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15916 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15917 ;;
15918 mingw*)
15919 # MinGW DLLs use traditional 'lib' prefix
15920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15922 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15923 # It is most probably a Windows format PATH printed by
15924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15925 # path with ; separators, and with drive letters. We can handle the
15926 # drive letters (cygwin fileutils understands them), so leave them,
15927 # especially as we might pass files found there to a mingw objdump,
15928 # which wouldn't understand a cygwinified path. Ahh.
15929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15930 else
15931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15932 fi
15933 ;;
15934 pw32*)
15935 # pw32 DLLs use 'pw' prefix rather than 'lib'
15936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15937 ;;
15938 esac
15939 ;;
15940
15941 *)
15942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15943 ;;
15944 esac
15945 dynamic_linker='Win32 ld.exe'
15946 # FIXME: first we should search . and the directory the executable is in
15947 shlibpath_var=PATH
15948 ;;
15949
15950darwin* | rhapsody*)
15951 dynamic_linker="$host_os dyld"
15952 version_type=darwin
15953 need_lib_prefix=no
15954 need_version=no
15955 # FIXME: Relying on posixy $() will cause problems for
15956 # cross-compilation, but unfortunately the echo tests do not
15957 # yet detect zsh echo's removal of \ escapes.
15958 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15959 soname_spec='${libname}${release}${major}$shared_ext'
15960 shlibpath_overrides_runpath=yes
15961 shlibpath_var=DYLD_LIBRARY_PATH
15962 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15963 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15964 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15965 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"`
15966 fi
15967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15968 ;;
15969
15970dgux*)
15971 version_type=linux
15972 need_lib_prefix=no
15973 need_version=no
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 ;;
15978
15979freebsd1*)
15980 dynamic_linker=no
15981 ;;
15982
15983freebsd*)
15984 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15985 version_type=freebsd-$objformat
15986 case $version_type in
15987 freebsd-elf*)
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15989 need_version=no
15990 need_lib_prefix=no
15991 ;;
15992 freebsd-*)
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15994 need_version=yes
15995 ;;
15996 esac
15997 shlibpath_var=LD_LIBRARY_PATH
15998 case $host_os in
15999 freebsd2*)
16000 shlibpath_overrides_runpath=yes
16001 ;;
16002 freebsd3.01* | freebsdelf3.01*)
16003 shlibpath_overrides_runpath=yes
16004 hardcode_into_libs=yes
16005 ;;
16006 *) # from 3.2 on
16007 shlibpath_overrides_runpath=no
16008 hardcode_into_libs=yes
16009 ;;
16010 esac
16011 ;;
16012
16013gnu*)
16014 version_type=linux
16015 need_lib_prefix=no
16016 need_version=no
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 hardcode_into_libs=yes
16021 ;;
16022
16023hpux9* | hpux10* | hpux11*)
16024 # Give a soname corresponding to the major version so that dld.sl refuses to
16025 # link against other versions.
16026 version_type=sunos
16027 need_lib_prefix=no
16028 need_version=no
16029 case "$host_cpu" in
16030 ia64*)
16031 shrext='.so'
16032 hardcode_into_libs=yes
16033 dynamic_linker="$host_os dld.so"
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 if test "X$HPUX_IA64_MODE" = X32; then
16039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16040 else
16041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16042 fi
16043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16044 ;;
16045 hppa*64*)
16046 shrext='.sl'
16047 hardcode_into_libs=yes
16048 dynamic_linker="$host_os dld.sl"
16049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055 ;;
16056 *)
16057 shrext='.sl'
16058 dynamic_linker="$host_os dld.sl"
16059 shlibpath_var=SHLIB_PATH
16060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 ;;
16064 esac
16065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16066 postinstall_cmds='chmod 555 $lib'
16067 ;;
16068
16069irix5* | irix6* | nonstopux*)
16070 case $host_os in
16071 nonstopux*) version_type=nonstopux ;;
16072 *)
16073 if test "$lt_cv_prog_gnu_ld" = yes; then
16074 version_type=linux
16075 else
16076 version_type=irix
16077 fi ;;
16078 esac
16079 need_lib_prefix=no
16080 need_version=no
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16083 case $host_os in
16084 irix5* | nonstopux*)
16085 libsuff= shlibsuff=
16086 ;;
16087 *)
16088 case $LD in # libtool.m4 will add one of these switches to LD
16089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090 libsuff= shlibsuff= libmagic=32-bit;;
16091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092 libsuff=32 shlibsuff=N32 libmagic=N32;;
16093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095 *) libsuff= shlibsuff= libmagic=never-match;;
16096 esac
16097 ;;
16098 esac
16099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100 shlibpath_overrides_runpath=no
16101 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103 hardcode_into_libs=yes
16104 ;;
16105
16106# No shared lib support for Linux oldld, aout, or coff.
16107linux*oldld* | linux*aout* | linux*coff*)
16108 dynamic_linker=no
16109 ;;
16110
16111# This must be Linux ELF.
16112linux*)
16113 version_type=linux
16114 need_lib_prefix=no
16115 need_version=no
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
16121 # This implies no fast_install, which is unacceptable.
16122 # Some rework will be needed to allow for fast_install
16123 # before this can be enabled.
16124 hardcode_into_libs=yes
16125
16126 # We used to test for /lib/ld.so.1 and disable shared libraries on
16127 # powerpc, because MkLinux only supported shared libraries with the
16128 # GNU dynamic linker. Since this was broken with cross compilers,
16129 # most powerpc-linux boxes support dynamic linking these days and
16130 # people can always --disable-shared, the test was removed, and we
16131 # assume the GNU/Linux dynamic linker is in use.
16132 dynamic_linker='GNU/Linux ld.so'
16133 ;;
16134
16135netbsd*)
16136 version_type=sunos
16137 need_lib_prefix=no
16138 need_version=no
16139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142 dynamic_linker='NetBSD (a.out) ld.so'
16143 else
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 dynamic_linker='NetBSD ld.elf_so'
16147 fi
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 hardcode_into_libs=yes
16151 ;;
16152
16153newsos6)
16154 version_type=linux
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16158 ;;
16159
16160nto-qnx)
16161 version_type=linux
16162 need_lib_prefix=no
16163 need_version=no
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16168 ;;
16169
16170openbsd*)
16171 version_type=sunos
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16178 case $host_os in
16179 openbsd2.[89] | openbsd2.[89].*)
16180 shlibpath_overrides_runpath=no
16181 ;;
16182 *)
16183 shlibpath_overrides_runpath=yes
16184 ;;
16185 esac
16186 else
16187 shlibpath_overrides_runpath=yes
16188 fi
16189 ;;
16190
16191os2*)
16192 libname_spec='$name'
16193 shrext=".dll"
16194 need_lib_prefix=no
16195 library_names_spec='$libname${shared_ext} $libname.a'
16196 dynamic_linker='OS/2 ld.exe'
16197 shlibpath_var=LIBPATH
16198 ;;
16199
16200osf3* | osf4* | osf5*)
16201 version_type=osf
16202 need_lib_prefix=no
16203 need_version=no
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16209 ;;
16210
16211sco3.2v5*)
16212 version_type=osf
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 ;;
16217
16218solaris*)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=yes
16226 hardcode_into_libs=yes
16227 # ldd complains unless libraries are executable
16228 postinstall_cmds='chmod +x $lib'
16229 ;;
16230
16231sunos4*)
16232 version_type=sunos
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 if test "$with_gnu_ld" = yes; then
16238 need_lib_prefix=no
16239 fi
16240 need_version=yes
16241 ;;
16242
16243sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16244 version_type=linux
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 case $host_vendor in
16249 sni)
16250 shlibpath_overrides_runpath=no
16251 need_lib_prefix=no
16252 export_dynamic_flag_spec='${wl}-Blargedynsym'
16253 runpath_var=LD_RUN_PATH
16254 ;;
16255 siemens)
16256 need_lib_prefix=no
16257 ;;
16258 motorola)
16259 need_lib_prefix=no
16260 need_version=no
16261 shlibpath_overrides_runpath=no
16262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16263 ;;
16264 esac
16265 ;;
16266
16267sysv4*MP*)
16268 if test -d /usr/nec ;then
16269 version_type=linux
16270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16271 soname_spec='$libname${shared_ext}.$major'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 fi
16274 ;;
16275
16276uts4*)
16277 version_type=linux
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 ;;
16282
16283*)
16284 dynamic_linker=no
16285 ;;
16286esac
16287echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16288echo "${ECHO_T}$dynamic_linker" >&6
16289test "$dynamic_linker" = no && can_build_shared=no
16290
16291if test "x$enable_dlopen" != xyes; then
16292 enable_dlopen=unknown
16293 enable_dlopen_self=unknown
16294 enable_dlopen_self_static=unknown
16295else
16296 lt_cv_dlopen=no
16297 lt_cv_dlopen_libs=
16298
16299 case $host_os in
16300 beos*)
16301 lt_cv_dlopen="load_add_on"
16302 lt_cv_dlopen_libs=
16303 lt_cv_dlopen_self=yes
16304 ;;
16305
16306 mingw* | pw32*)
16307 lt_cv_dlopen="LoadLibrary"
16308 lt_cv_dlopen_libs=
16309 ;;
16310
16311 cygwin*)
16312 lt_cv_dlopen="dlopen"
16313 lt_cv_dlopen_libs=
16314 ;;
16315
16316 darwin*)
16317 # if libdl is installed we need to link against it
16318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16319echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16320if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322else
16323 ac_check_lib_save_LIBS=$LIBS
16324LIBS="-ldl $LIBS"
16325cat >conftest.$ac_ext <<_ACEOF
16326#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016332
16333/* Override any gcc2 internal prototype to avoid an error. */
16334#ifdef __cplusplus
16335extern "C"
16336#endif
16337/* We use char because int might match the return type of a gcc2
16338 builtin and then its argument prototype would still apply. */
16339char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016340int
16341main ()
16342{
16343dlopen ();
16344 ;
16345 return 0;
16346}
16347_ACEOF
16348rm -f conftest.$ac_objext conftest$ac_exeext
16349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350 (eval $ac_link) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -s conftest$ac_exeext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_cv_lib_dl_dlopen=yes
16361else
16362 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016363sed 's/^/| /' conftest.$ac_ext >&5
16364
John Criswell47fdd832003-07-14 16:52:07 +000016365ac_cv_lib_dl_dlopen=no
16366fi
16367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16368LIBS=$ac_check_lib_save_LIBS
16369fi
16370echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16371echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16372if test $ac_cv_lib_dl_dlopen = yes; then
16373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16374else
16375
16376 lt_cv_dlopen="dyld"
16377 lt_cv_dlopen_libs=
16378 lt_cv_dlopen_self=yes
16379
16380fi
16381
16382 ;;
16383
16384 *)
16385 echo "$as_me:$LINENO: checking for shl_load" >&5
16386echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16387if test "${ac_cv_func_shl_load+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
16390 cat >conftest.$ac_ext <<_ACEOF
16391#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016392/* confdefs.h. */
16393_ACEOF
16394cat confdefs.h >>conftest.$ac_ext
16395cat >>conftest.$ac_ext <<_ACEOF
16396/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016397/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016398 which can conflict with char shl_load (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
16401#ifdef __STDC__
16402# include <limits.h>
16403#else
16404# include <assert.h>
16405#endif
John Criswell47fdd832003-07-14 16:52:07 +000016406/* Override any gcc2 internal prototype to avoid an error. */
16407#ifdef __cplusplus
16408extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016409{
John Criswell47fdd832003-07-14 16:52:07 +000016410#endif
16411/* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16413char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016414/* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417#if defined (__stub_shl_load) || defined (__stub___shl_load)
16418choke me
16419#else
John Criswell392aaa32003-07-22 19:18:09 +000016420char (*f) () = shl_load;
16421#endif
16422#ifdef __cplusplus
16423}
John Criswell47fdd832003-07-14 16:52:07 +000016424#endif
16425
John Criswell392aaa32003-07-22 19:18:09 +000016426int
16427main ()
16428{
16429return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016430 ;
16431 return 0;
16432}
16433_ACEOF
16434rm -f conftest.$ac_objext conftest$ac_exeext
16435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_func_shl_load=yes
16447else
16448 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016449sed 's/^/| /' conftest.$ac_ext >&5
16450
John Criswell47fdd832003-07-14 16:52:07 +000016451ac_cv_func_shl_load=no
16452fi
16453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16456echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16457if test $ac_cv_func_shl_load = yes; then
16458 lt_cv_dlopen="shl_load"
16459else
16460 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16461echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16462if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464else
16465 ac_check_lib_save_LIBS=$LIBS
16466LIBS="-ldld $LIBS"
16467cat >conftest.$ac_ext <<_ACEOF
16468#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016474
16475/* Override any gcc2 internal prototype to avoid an error. */
16476#ifdef __cplusplus
16477extern "C"
16478#endif
16479/* We use char because int might match the return type of a gcc2
16480 builtin and then its argument prototype would still apply. */
16481char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016482int
16483main ()
16484{
16485shl_load ();
16486 ;
16487 return 0;
16488}
16489_ACEOF
16490rm -f conftest.$ac_objext conftest$ac_exeext
16491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492 (eval $ac_link) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -s conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_lib_dld_shl_load=yes
16503else
16504 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016505sed 's/^/| /' conftest.$ac_ext >&5
16506
John Criswell47fdd832003-07-14 16:52:07 +000016507ac_cv_lib_dld_shl_load=no
16508fi
16509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510LIBS=$ac_check_lib_save_LIBS
16511fi
16512echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16513echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16514if test $ac_cv_lib_dld_shl_load = yes; then
16515 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16516else
16517 echo "$as_me:$LINENO: checking for dlopen" >&5
16518echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16519if test "${ac_cv_func_dlopen+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016529/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016530 which can conflict with char dlopen (); below.
16531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16532 <limits.h> exists even on freestanding compilers. */
16533#ifdef __STDC__
16534# include <limits.h>
16535#else
16536# include <assert.h>
16537#endif
John Criswell47fdd832003-07-14 16:52:07 +000016538/* Override any gcc2 internal prototype to avoid an error. */
16539#ifdef __cplusplus
16540extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016541{
John Criswell47fdd832003-07-14 16:52:07 +000016542#endif
16543/* We use char because int might match the return type of a gcc2
16544 builtin and then its argument prototype would still apply. */
16545char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016546/* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549#if defined (__stub_dlopen) || defined (__stub___dlopen)
16550choke me
16551#else
John Criswell392aaa32003-07-22 19:18:09 +000016552char (*f) () = dlopen;
16553#endif
16554#ifdef __cplusplus
16555}
John Criswell47fdd832003-07-14 16:52:07 +000016556#endif
16557
John Criswell392aaa32003-07-22 19:18:09 +000016558int
16559main ()
16560{
16561return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016562 ;
16563 return 0;
16564}
16565_ACEOF
16566rm -f conftest.$ac_objext conftest$ac_exeext
16567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16568 (eval $ac_link) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_func_dlopen=yes
16579else
16580 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016581sed 's/^/| /' conftest.$ac_ext >&5
16582
John Criswell47fdd832003-07-14 16:52:07 +000016583ac_cv_func_dlopen=no
16584fi
16585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16586fi
16587echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16588echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16589if test $ac_cv_func_dlopen = yes; then
16590 lt_cv_dlopen="dlopen"
16591else
16592 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16594if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596else
16597 ac_check_lib_save_LIBS=$LIBS
16598LIBS="-ldl $LIBS"
16599cat >conftest.$ac_ext <<_ACEOF
16600#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016606
16607/* Override any gcc2 internal prototype to avoid an error. */
16608#ifdef __cplusplus
16609extern "C"
16610#endif
16611/* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16613char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016614int
16615main ()
16616{
16617dlopen ();
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext conftest$ac_exeext
16623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_lib_dl_dlopen=yes
16635else
16636 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016637sed 's/^/| /' conftest.$ac_ext >&5
16638
John Criswell47fdd832003-07-14 16:52:07 +000016639ac_cv_lib_dl_dlopen=no
16640fi
16641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642LIBS=$ac_check_lib_save_LIBS
16643fi
16644echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16646if test $ac_cv_lib_dl_dlopen = yes; then
16647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16648else
16649 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16650echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16651if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653else
16654 ac_check_lib_save_LIBS=$LIBS
16655LIBS="-lsvld $LIBS"
16656cat >conftest.$ac_ext <<_ACEOF
16657#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016663
16664/* Override any gcc2 internal prototype to avoid an error. */
16665#ifdef __cplusplus
16666extern "C"
16667#endif
16668/* We use char because int might match the return type of a gcc2
16669 builtin and then its argument prototype would still apply. */
16670char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016671int
16672main ()
16673{
16674dlopen ();
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext conftest$ac_exeext
16680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681 (eval $ac_link) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -s conftest$ac_exeext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_cv_lib_svld_dlopen=yes
16692else
16693 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016694sed 's/^/| /' conftest.$ac_ext >&5
16695
John Criswell47fdd832003-07-14 16:52:07 +000016696ac_cv_lib_svld_dlopen=no
16697fi
16698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16699LIBS=$ac_check_lib_save_LIBS
16700fi
16701echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16702echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16703if test $ac_cv_lib_svld_dlopen = yes; then
16704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16705else
16706 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16707echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16708if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 ac_check_lib_save_LIBS=$LIBS
16712LIBS="-ldld $LIBS"
16713cat >conftest.$ac_ext <<_ACEOF
16714#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016720
16721/* Override any gcc2 internal prototype to avoid an error. */
16722#ifdef __cplusplus
16723extern "C"
16724#endif
16725/* We use char because int might match the return type of a gcc2
16726 builtin and then its argument prototype would still apply. */
16727char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016728int
16729main ()
16730{
16731dld_link ();
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest.$ac_objext conftest$ac_exeext
16737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_lib_dld_dld_link=yes
16749else
16750 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016751sed 's/^/| /' conftest.$ac_ext >&5
16752
John Criswell47fdd832003-07-14 16:52:07 +000016753ac_cv_lib_dld_dld_link=no
16754fi
16755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756LIBS=$ac_check_lib_save_LIBS
16757fi
16758echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16759echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16760if test $ac_cv_lib_dld_dld_link = yes; then
16761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16762fi
16763
16764
16765fi
16766
16767
16768fi
16769
16770
16771fi
16772
16773
16774fi
16775
16776
16777fi
16778
16779 ;;
16780 esac
16781
16782 if test "x$lt_cv_dlopen" != xno; then
16783 enable_dlopen=yes
16784 else
16785 enable_dlopen=no
16786 fi
16787
16788 case $lt_cv_dlopen in
16789 dlopen)
16790 save_CPPFLAGS="$CPPFLAGS"
16791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16792
16793 save_LDFLAGS="$LDFLAGS"
16794 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16795
16796 save_LIBS="$LIBS"
16797 LIBS="$lt_cv_dlopen_libs $LIBS"
16798
16799 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16800echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16801if test "${lt_cv_dlopen_self+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16803else
16804 if test "$cross_compiling" = yes; then :
16805 lt_cv_dlopen_self=cross
16806else
16807 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16808 lt_status=$lt_dlunknown
16809 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +000016810#line 16810 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016811#include "confdefs.h"
16812
16813#if HAVE_DLFCN_H
16814#include <dlfcn.h>
16815#endif
16816
16817#include <stdio.h>
16818
16819#ifdef RTLD_GLOBAL
16820# define LT_DLGLOBAL RTLD_GLOBAL
16821#else
16822# ifdef DL_GLOBAL
16823# define LT_DLGLOBAL DL_GLOBAL
16824# else
16825# define LT_DLGLOBAL 0
16826# endif
16827#endif
16828
16829/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16830 find out it does not work in some platform. */
16831#ifndef LT_DLLAZY_OR_NOW
16832# ifdef RTLD_LAZY
16833# define LT_DLLAZY_OR_NOW RTLD_LAZY
16834# else
16835# ifdef DL_LAZY
16836# define LT_DLLAZY_OR_NOW DL_LAZY
16837# else
16838# ifdef RTLD_NOW
16839# define LT_DLLAZY_OR_NOW RTLD_NOW
16840# else
16841# ifdef DL_NOW
16842# define LT_DLLAZY_OR_NOW DL_NOW
16843# else
16844# define LT_DLLAZY_OR_NOW 0
16845# endif
16846# endif
16847# endif
16848# endif
16849#endif
16850
16851#ifdef __cplusplus
16852extern "C" void exit (int);
16853#endif
16854
16855void fnord() { int i=42;}
16856int main ()
16857{
16858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16859 int status = $lt_dlunknown;
16860
16861 if (self)
16862 {
16863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16864 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16865 /* dlclose (self); */
16866 }
16867
16868 exit (status);
16869}
16870EOF
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16876 (./conftest; exit; ) 2>/dev/null
16877 lt_status=$?
16878 case x$lt_status in
16879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16881 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16882 esac
16883 else :
16884 # compilation failed
16885 lt_cv_dlopen_self=no
16886 fi
16887fi
16888rm -fr conftest*
16889
16890
16891fi
16892echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16893echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16894
16895 if test "x$lt_cv_dlopen_self" = xyes; then
16896 LDFLAGS="$LDFLAGS $link_static_flag"
16897 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16898echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16899if test "${lt_cv_dlopen_self_static+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901else
16902 if test "$cross_compiling" = yes; then :
16903 lt_cv_dlopen_self_static=cross
16904else
16905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16906 lt_status=$lt_dlunknown
16907 cat > conftest.$ac_ext <<EOF
John Criswellde00db22003-08-25 16:49:54 +000016908#line 16908 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016909#include "confdefs.h"
16910
16911#if HAVE_DLFCN_H
16912#include <dlfcn.h>
16913#endif
16914
16915#include <stdio.h>
16916
16917#ifdef RTLD_GLOBAL
16918# define LT_DLGLOBAL RTLD_GLOBAL
16919#else
16920# ifdef DL_GLOBAL
16921# define LT_DLGLOBAL DL_GLOBAL
16922# else
16923# define LT_DLGLOBAL 0
16924# endif
16925#endif
16926
16927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16928 find out it does not work in some platform. */
16929#ifndef LT_DLLAZY_OR_NOW
16930# ifdef RTLD_LAZY
16931# define LT_DLLAZY_OR_NOW RTLD_LAZY
16932# else
16933# ifdef DL_LAZY
16934# define LT_DLLAZY_OR_NOW DL_LAZY
16935# else
16936# ifdef RTLD_NOW
16937# define LT_DLLAZY_OR_NOW RTLD_NOW
16938# else
16939# ifdef DL_NOW
16940# define LT_DLLAZY_OR_NOW DL_NOW
16941# else
16942# define LT_DLLAZY_OR_NOW 0
16943# endif
16944# endif
16945# endif
16946# endif
16947#endif
16948
16949#ifdef __cplusplus
16950extern "C" void exit (int);
16951#endif
16952
16953void fnord() { int i=42;}
16954int main ()
16955{
16956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16957 int status = $lt_dlunknown;
16958
16959 if (self)
16960 {
16961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16963 /* dlclose (self); */
16964 }
16965
16966 exit (status);
16967}
16968EOF
16969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970 (eval $ac_link) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16974 (./conftest; exit; ) 2>/dev/null
16975 lt_status=$?
16976 case x$lt_status in
16977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16979 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16980 esac
16981 else :
16982 # compilation failed
16983 lt_cv_dlopen_self_static=no
16984 fi
16985fi
16986rm -fr conftest*
16987
16988
16989fi
16990echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16991echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16992 fi
16993
16994 CPPFLAGS="$save_CPPFLAGS"
16995 LDFLAGS="$save_LDFLAGS"
16996 LIBS="$save_LIBS"
16997 ;;
16998 esac
16999
17000 case $lt_cv_dlopen_self in
17001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17002 *) enable_dlopen_self=unknown ;;
17003 esac
17004
17005 case $lt_cv_dlopen_self_static in
17006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17007 *) enable_dlopen_self_static=unknown ;;
17008 esac
17009fi
17010
17011
17012# The else clause should only fire when bootstrapping the
17013# libtool distribution, otherwise you forgot to ship ltmain.sh
17014# with your package, and you will get complaints that there are
17015# no rules to generate ltmain.sh.
17016if test -f "$ltmain"; then
17017 # See if we are running on zsh, and set the options which allow our commands through
17018 # without removal of \ escapes.
17019 if test -n "${ZSH_VERSION+set}" ; then
17020 setopt NO_GLOB_SUBST
17021 fi
17022 # Now quote all the things that may contain metacharacters while being
17023 # careful not to overquote the AC_SUBSTed values. We take copies of the
17024 # variables and quote the copies for generation of the libtool script.
17025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17026 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17027 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17028 deplibs_check_method reload_flag reload_cmds need_locks \
17029 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17030 lt_cv_sys_global_symbol_to_c_name_address \
17031 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17032 old_postinstall_cmds old_postuninstall_cmds \
17033 compiler_GCJ \
17034 CC_GCJ \
17035 LD_GCJ \
17036 lt_prog_compiler_wl_GCJ \
17037 lt_prog_compiler_pic_GCJ \
17038 lt_prog_compiler_static_GCJ \
17039 lt_prog_compiler_no_builtin_flag_GCJ \
17040 export_dynamic_flag_spec_GCJ \
17041 thread_safe_flag_spec_GCJ \
17042 whole_archive_flag_spec_GCJ \
17043 enable_shared_with_static_runtimes_GCJ \
17044 old_archive_cmds_GCJ \
17045 old_archive_from_new_cmds_GCJ \
17046 predep_objects_GCJ \
17047 postdep_objects_GCJ \
17048 predeps_GCJ \
17049 postdeps_GCJ \
17050 compiler_lib_search_path_GCJ \
17051 archive_cmds_GCJ \
17052 archive_expsym_cmds_GCJ \
17053 postinstall_cmds_GCJ \
17054 postuninstall_cmds_GCJ \
17055 old_archive_from_expsyms_cmds_GCJ \
17056 allow_undefined_flag_GCJ \
17057 no_undefined_flag_GCJ \
17058 export_symbols_cmds_GCJ \
17059 hardcode_libdir_flag_spec_GCJ \
17060 hardcode_libdir_flag_spec_ld_GCJ \
17061 hardcode_libdir_separator_GCJ \
17062 hardcode_automatic_GCJ \
17063 module_cmds_GCJ \
17064 module_expsym_cmds_GCJ \
17065 lt_cv_prog_compiler_c_o_GCJ \
17066 exclude_expsyms_GCJ \
17067 include_expsyms_GCJ; do
17068
17069 case $var in
17070 old_archive_cmds_GCJ | \
17071 old_archive_from_new_cmds_GCJ | \
17072 archive_cmds_GCJ | \
17073 archive_expsym_cmds_GCJ | \
17074 module_cmds_GCJ | \
17075 module_expsym_cmds_GCJ | \
17076 old_archive_from_expsyms_cmds_GCJ | \
17077 export_symbols_cmds_GCJ | \
17078 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17079 postinstall_cmds | postuninstall_cmds | \
17080 old_postinstall_cmds | old_postuninstall_cmds | \
17081 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17082 # Double-quote double-evaled strings.
17083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17084 ;;
17085 *)
17086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17087 ;;
17088 esac
17089 done
17090
17091 case $lt_echo in
17092 *'\$0 --fallback-echo"')
17093 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17094 ;;
17095 esac
17096
17097cfgfile="$ofile"
17098
17099 cat <<__EOF__ >> "$cfgfile"
17100# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17101
17102# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17103
17104# Shell to use when invoking shell scripts.
17105SHELL=$lt_SHELL
17106
17107# Whether or not to build shared libraries.
17108build_libtool_libs=$enable_shared
17109
17110# Whether or not to build static libraries.
17111build_old_libs=$enable_static
17112
17113# Whether or not to add -lc for building shared libraries.
17114build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17115
17116# Whether or not to disallow shared libs when runtime libs are static
17117allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17118
17119# Whether or not to optimize for fast installation.
17120fast_install=$enable_fast_install
17121
17122# The host system.
17123host_alias=$host_alias
17124host=$host
17125
17126# An echo program that does not interpret backslashes.
17127echo=$lt_echo
17128
17129# The archiver.
17130AR=$lt_AR
17131AR_FLAGS=$lt_AR_FLAGS
17132
17133# A C compiler.
17134LTCC=$lt_LTCC
17135
17136# A language-specific compiler.
17137CC=$lt_compiler_GCJ
17138
17139# Is the compiler the GNU C compiler?
17140with_gcc=$GCC_GCJ
17141
17142# An ERE matcher.
17143EGREP=$lt_EGREP
17144
17145# The linker used to build libraries.
17146LD=$lt_LD_GCJ
17147
17148# Whether we need hard or soft links.
17149LN_S=$lt_LN_S
17150
17151# A BSD-compatible nm program.
17152NM=$lt_NM
17153
17154# A symbol stripping program
17155STRIP=$STRIP
17156
17157# Used to examine libraries when file_magic_cmd begins "file"
17158MAGIC_CMD=$MAGIC_CMD
17159
17160# Used on cygwin: DLL creation program.
17161DLLTOOL="$DLLTOOL"
17162
17163# Used on cygwin: object dumper.
17164OBJDUMP="$OBJDUMP"
17165
17166# Used on cygwin: assembler.
17167AS="$AS"
17168
17169# The name of the directory that contains temporary libtool files.
17170objdir=$objdir
17171
17172# How to create reloadable object files.
17173reload_flag=$lt_reload_flag
17174reload_cmds=$lt_reload_cmds
17175
17176# How to pass a linker flag through the compiler.
17177wl=$lt_lt_prog_compiler_wl_GCJ
17178
17179# Object file suffix (normally "o").
17180objext="$ac_objext"
17181
17182# Old archive suffix (normally "a").
17183libext="$libext"
17184
17185# Shared library suffix (normally ".so").
17186shrext='$shrext'
17187
17188# Executable file suffix (normally "").
17189exeext="$exeext"
17190
17191# Additional compiler flags for building library objects.
17192pic_flag=$lt_lt_prog_compiler_pic_GCJ
17193pic_mode=$pic_mode
17194
17195# What is the maximum length of a command?
17196max_cmd_len=$lt_cv_sys_max_cmd_len
17197
17198# Does compiler simultaneously support -c and -o options?
17199compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17200
17201# Must we lock files when doing compilation ?
17202need_locks=$lt_need_locks
17203
17204# Do we need the lib prefix for modules?
17205need_lib_prefix=$need_lib_prefix
17206
17207# Do we need a version for libraries?
17208need_version=$need_version
17209
17210# Whether dlopen is supported.
17211dlopen_support=$enable_dlopen
17212
17213# Whether dlopen of programs is supported.
17214dlopen_self=$enable_dlopen_self
17215
17216# Whether dlopen of statically linked programs is supported.
17217dlopen_self_static=$enable_dlopen_self_static
17218
17219# Compiler flag to prevent dynamic linking.
17220link_static_flag=$lt_lt_prog_compiler_static_GCJ
17221
17222# Compiler flag to turn off builtin functions.
17223no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17224
17225# Compiler flag to allow reflexive dlopens.
17226export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17227
17228# Compiler flag to generate shared objects directly from archives.
17229whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17230
17231# Compiler flag to generate thread-safe objects.
17232thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17233
17234# Library versioning type.
17235version_type=$version_type
17236
17237# Format of library name prefix.
17238libname_spec=$lt_libname_spec
17239
17240# List of archive names. First name is the real one, the rest are links.
17241# The last name is the one that the linker finds with -lNAME.
17242library_names_spec=$lt_library_names_spec
17243
17244# The coded name of the library, if different from the real name.
17245soname_spec=$lt_soname_spec
17246
17247# Commands used to build and install an old-style archive.
17248RANLIB=$lt_RANLIB
17249old_archive_cmds=$lt_old_archive_cmds_GCJ
17250old_postinstall_cmds=$lt_old_postinstall_cmds
17251old_postuninstall_cmds=$lt_old_postuninstall_cmds
17252
17253# Create an old-style archive from a shared archive.
17254old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17255
17256# Create a temporary old-style archive to link instead of a shared archive.
17257old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17258
17259# Commands used to build and install a shared archive.
17260archive_cmds=$lt_archive_cmds_GCJ
17261archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17262postinstall_cmds=$lt_postinstall_cmds
17263postuninstall_cmds=$lt_postuninstall_cmds
17264
17265# Commands used to build a loadable module (assumed same as above if empty)
17266module_cmds=$lt_module_cmds_GCJ
17267module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17268
17269# Commands to strip libraries.
17270old_striplib=$lt_old_striplib
17271striplib=$lt_striplib
17272
17273# Dependencies to place before the objects being linked to create a
17274# shared library.
17275predep_objects=$lt_predep_objects_GCJ
17276
17277# Dependencies to place after the objects being linked to create a
17278# shared library.
17279postdep_objects=$lt_postdep_objects_GCJ
17280
17281# Dependencies to place before the objects being linked to create a
17282# shared library.
17283predeps=$lt_predeps_GCJ
17284
17285# Dependencies to place after the objects being linked to create a
17286# shared library.
17287postdeps=$lt_postdeps_GCJ
17288
17289# The library search path used internally by the compiler when linking
17290# a shared library.
17291compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17292
17293# Method to check whether dependent libraries are shared objects.
17294deplibs_check_method=$lt_deplibs_check_method
17295
17296# Command to use when deplibs_check_method == file_magic.
17297file_magic_cmd=$lt_file_magic_cmd
17298
17299# Flag that allows shared libraries with undefined symbols to be built.
17300allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17301
17302# Flag that forces no undefined symbols.
17303no_undefined_flag=$lt_no_undefined_flag_GCJ
17304
17305# Commands used to finish a libtool library installation in a directory.
17306finish_cmds=$lt_finish_cmds
17307
17308# Same as above, but a single script fragment to be evaled but not shown.
17309finish_eval=$lt_finish_eval
17310
17311# Take the output of nm and produce a listing of raw symbols and C names.
17312global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17313
17314# Transform the output of nm in a proper C declaration
17315global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17316
17317# Transform the output of nm in a C name address pair
17318global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17319
17320# This is the shared library runtime path variable.
17321runpath_var=$runpath_var
17322
17323# This is the shared library path variable.
17324shlibpath_var=$shlibpath_var
17325
17326# Is shlibpath searched before the hard-coded library search path?
17327shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17328
17329# How to hardcode a shared library path into an executable.
17330hardcode_action=$hardcode_action_GCJ
17331
17332# Whether we should hardcode library paths into libraries.
17333hardcode_into_libs=$hardcode_into_libs
17334
17335# Flag to hardcode \$libdir into a binary during linking.
17336# This must work even if \$libdir does not exist.
17337hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17338
17339# If ld is used when linking, flag to hardcode \$libdir into
17340# a binary during linking. This must work even if \$libdir does
17341# not exist.
17342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17343
17344# Whether we need a single -rpath flag with a separated argument.
17345hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17346
17347# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17348# resulting binary.
17349hardcode_direct=$hardcode_direct_GCJ
17350
17351# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17352# resulting binary.
17353hardcode_minus_L=$hardcode_minus_L_GCJ
17354
17355# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17356# the resulting binary.
17357hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17358
17359# Set to yes if building a shared library automatically hardcodes DIR into the library
17360# and all subsequent libraries and executables linked against it.
17361hardcode_automatic=$hardcode_automatic_GCJ
17362
17363# Variables whose values should be saved in libtool wrapper scripts and
17364# restored at relink time.
17365variables_saved_for_relink="$variables_saved_for_relink"
17366
17367# Whether libtool must link a program against all its dependency libraries.
17368link_all_deplibs=$link_all_deplibs_GCJ
17369
17370# Compile-time system search path for libraries
17371sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17372
17373# Run-time system search path for libraries
17374sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17375
17376# Fix the shell variable \$srcfile for the compiler.
17377fix_srcfile_path="$fix_srcfile_path_GCJ"
17378
17379# Set to yes if exported symbols are required.
17380always_export_symbols=$always_export_symbols_GCJ
17381
17382# The commands to list exported symbols.
17383export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17384
17385# The commands to extract the exported symbol list from a shared archive.
17386extract_expsyms_cmds=$lt_extract_expsyms_cmds
17387
17388# Symbols that should not be listed in the preloaded symbols.
17389exclude_expsyms=$lt_exclude_expsyms_GCJ
17390
17391# Symbols that must always be exported.
17392include_expsyms=$lt_include_expsyms_GCJ
17393
17394# ### END LIBTOOL TAG CONFIG: $tagname
17395
17396__EOF__
17397
17398
17399else
17400 # If there is no Makefile yet, we rely on a make rule to execute
17401 # `config.status --recheck' to rerun these tests and create the
17402 # libtool script then.
17403 test -f Makefile && make "$ltmain"
17404fi
17405
17406
17407ac_ext=c
17408ac_cpp='$CPP $CPPFLAGS'
17409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411ac_compiler_gnu=$ac_cv_c_compiler_gnu
17412
17413CC="$lt_save_CC"
17414
17415 else
17416 tagname=""
17417 fi
17418 ;;
17419
17420 RC)
17421
17422
17423
17424# Source file extension for RC test sources.
17425ac_ext=rc
17426
17427# Object file extension for compiled RC test sources.
17428objext=o
17429objext_RC=$objext
17430
17431# Code to be used in simple compile tests
17432lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17433
17434# Code to be used in simple link tests
17435lt_simple_link_test_code="$lt_simple_compile_test_code"
17436
17437# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17438
17439# If no C compiler was specified, use CC.
17440LTCC=${LTCC-"$CC"}
17441
17442# Allow CC to be a program name with arguments.
17443compiler=$CC
17444
17445
17446# Allow CC to be a program name with arguments.
17447lt_save_CC="$CC"
17448CC=${RC-"windres"}
17449compiler=$CC
17450compiler_RC=$CC
17451lt_cv_prog_compiler_c_o_RC=yes
17452
17453# The else clause should only fire when bootstrapping the
17454# libtool distribution, otherwise you forgot to ship ltmain.sh
17455# with your package, and you will get complaints that there are
17456# no rules to generate ltmain.sh.
17457if test -f "$ltmain"; then
17458 # See if we are running on zsh, and set the options which allow our commands through
17459 # without removal of \ escapes.
17460 if test -n "${ZSH_VERSION+set}" ; then
17461 setopt NO_GLOB_SUBST
17462 fi
17463 # Now quote all the things that may contain metacharacters while being
17464 # careful not to overquote the AC_SUBSTed values. We take copies of the
17465 # variables and quote the copies for generation of the libtool script.
17466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17469 deplibs_check_method reload_flag reload_cmds need_locks \
17470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17471 lt_cv_sys_global_symbol_to_c_name_address \
17472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17473 old_postinstall_cmds old_postuninstall_cmds \
17474 compiler_RC \
17475 CC_RC \
17476 LD_RC \
17477 lt_prog_compiler_wl_RC \
17478 lt_prog_compiler_pic_RC \
17479 lt_prog_compiler_static_RC \
17480 lt_prog_compiler_no_builtin_flag_RC \
17481 export_dynamic_flag_spec_RC \
17482 thread_safe_flag_spec_RC \
17483 whole_archive_flag_spec_RC \
17484 enable_shared_with_static_runtimes_RC \
17485 old_archive_cmds_RC \
17486 old_archive_from_new_cmds_RC \
17487 predep_objects_RC \
17488 postdep_objects_RC \
17489 predeps_RC \
17490 postdeps_RC \
17491 compiler_lib_search_path_RC \
17492 archive_cmds_RC \
17493 archive_expsym_cmds_RC \
17494 postinstall_cmds_RC \
17495 postuninstall_cmds_RC \
17496 old_archive_from_expsyms_cmds_RC \
17497 allow_undefined_flag_RC \
17498 no_undefined_flag_RC \
17499 export_symbols_cmds_RC \
17500 hardcode_libdir_flag_spec_RC \
17501 hardcode_libdir_flag_spec_ld_RC \
17502 hardcode_libdir_separator_RC \
17503 hardcode_automatic_RC \
17504 module_cmds_RC \
17505 module_expsym_cmds_RC \
17506 lt_cv_prog_compiler_c_o_RC \
17507 exclude_expsyms_RC \
17508 include_expsyms_RC; do
17509
17510 case $var in
17511 old_archive_cmds_RC | \
17512 old_archive_from_new_cmds_RC | \
17513 archive_cmds_RC | \
17514 archive_expsym_cmds_RC | \
17515 module_cmds_RC | \
17516 module_expsym_cmds_RC | \
17517 old_archive_from_expsyms_cmds_RC | \
17518 export_symbols_cmds_RC | \
17519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17520 postinstall_cmds | postuninstall_cmds | \
17521 old_postinstall_cmds | old_postuninstall_cmds | \
17522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17523 # Double-quote double-evaled strings.
17524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17525 ;;
17526 *)
17527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17528 ;;
17529 esac
17530 done
17531
17532 case $lt_echo in
17533 *'\$0 --fallback-echo"')
17534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17535 ;;
17536 esac
17537
17538cfgfile="$ofile"
17539
17540 cat <<__EOF__ >> "$cfgfile"
17541# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17542
17543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17544
17545# Shell to use when invoking shell scripts.
17546SHELL=$lt_SHELL
17547
17548# Whether or not to build shared libraries.
17549build_libtool_libs=$enable_shared
17550
17551# Whether or not to build static libraries.
17552build_old_libs=$enable_static
17553
17554# Whether or not to add -lc for building shared libraries.
17555build_libtool_need_lc=$archive_cmds_need_lc_RC
17556
17557# Whether or not to disallow shared libs when runtime libs are static
17558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17559
17560# Whether or not to optimize for fast installation.
17561fast_install=$enable_fast_install
17562
17563# The host system.
17564host_alias=$host_alias
17565host=$host
17566
17567# An echo program that does not interpret backslashes.
17568echo=$lt_echo
17569
17570# The archiver.
17571AR=$lt_AR
17572AR_FLAGS=$lt_AR_FLAGS
17573
17574# A C compiler.
17575LTCC=$lt_LTCC
17576
17577# A language-specific compiler.
17578CC=$lt_compiler_RC
17579
17580# Is the compiler the GNU C compiler?
17581with_gcc=$GCC_RC
17582
17583# An ERE matcher.
17584EGREP=$lt_EGREP
17585
17586# The linker used to build libraries.
17587LD=$lt_LD_RC
17588
17589# Whether we need hard or soft links.
17590LN_S=$lt_LN_S
17591
17592# A BSD-compatible nm program.
17593NM=$lt_NM
17594
17595# A symbol stripping program
17596STRIP=$STRIP
17597
17598# Used to examine libraries when file_magic_cmd begins "file"
17599MAGIC_CMD=$MAGIC_CMD
17600
17601# Used on cygwin: DLL creation program.
17602DLLTOOL="$DLLTOOL"
17603
17604# Used on cygwin: object dumper.
17605OBJDUMP="$OBJDUMP"
17606
17607# Used on cygwin: assembler.
17608AS="$AS"
17609
17610# The name of the directory that contains temporary libtool files.
17611objdir=$objdir
17612
17613# How to create reloadable object files.
17614reload_flag=$lt_reload_flag
17615reload_cmds=$lt_reload_cmds
17616
17617# How to pass a linker flag through the compiler.
17618wl=$lt_lt_prog_compiler_wl_RC
17619
17620# Object file suffix (normally "o").
17621objext="$ac_objext"
17622
17623# Old archive suffix (normally "a").
17624libext="$libext"
17625
17626# Shared library suffix (normally ".so").
17627shrext='$shrext'
17628
17629# Executable file suffix (normally "").
17630exeext="$exeext"
17631
17632# Additional compiler flags for building library objects.
17633pic_flag=$lt_lt_prog_compiler_pic_RC
17634pic_mode=$pic_mode
17635
17636# What is the maximum length of a command?
17637max_cmd_len=$lt_cv_sys_max_cmd_len
17638
17639# Does compiler simultaneously support -c and -o options?
17640compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17641
17642# Must we lock files when doing compilation ?
17643need_locks=$lt_need_locks
17644
17645# Do we need the lib prefix for modules?
17646need_lib_prefix=$need_lib_prefix
17647
17648# Do we need a version for libraries?
17649need_version=$need_version
17650
17651# Whether dlopen is supported.
17652dlopen_support=$enable_dlopen
17653
17654# Whether dlopen of programs is supported.
17655dlopen_self=$enable_dlopen_self
17656
17657# Whether dlopen of statically linked programs is supported.
17658dlopen_self_static=$enable_dlopen_self_static
17659
17660# Compiler flag to prevent dynamic linking.
17661link_static_flag=$lt_lt_prog_compiler_static_RC
17662
17663# Compiler flag to turn off builtin functions.
17664no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17665
17666# Compiler flag to allow reflexive dlopens.
17667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17668
17669# Compiler flag to generate shared objects directly from archives.
17670whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17671
17672# Compiler flag to generate thread-safe objects.
17673thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17674
17675# Library versioning type.
17676version_type=$version_type
17677
17678# Format of library name prefix.
17679libname_spec=$lt_libname_spec
17680
17681# List of archive names. First name is the real one, the rest are links.
17682# The last name is the one that the linker finds with -lNAME.
17683library_names_spec=$lt_library_names_spec
17684
17685# The coded name of the library, if different from the real name.
17686soname_spec=$lt_soname_spec
17687
17688# Commands used to build and install an old-style archive.
17689RANLIB=$lt_RANLIB
17690old_archive_cmds=$lt_old_archive_cmds_RC
17691old_postinstall_cmds=$lt_old_postinstall_cmds
17692old_postuninstall_cmds=$lt_old_postuninstall_cmds
17693
17694# Create an old-style archive from a shared archive.
17695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17696
17697# Create a temporary old-style archive to link instead of a shared archive.
17698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17699
17700# Commands used to build and install a shared archive.
17701archive_cmds=$lt_archive_cmds_RC
17702archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17703postinstall_cmds=$lt_postinstall_cmds
17704postuninstall_cmds=$lt_postuninstall_cmds
17705
17706# Commands used to build a loadable module (assumed same as above if empty)
17707module_cmds=$lt_module_cmds_RC
17708module_expsym_cmds=$lt_module_expsym_cmds_RC
17709
17710# Commands to strip libraries.
17711old_striplib=$lt_old_striplib
17712striplib=$lt_striplib
17713
17714# Dependencies to place before the objects being linked to create a
17715# shared library.
17716predep_objects=$lt_predep_objects_RC
17717
17718# Dependencies to place after the objects being linked to create a
17719# shared library.
17720postdep_objects=$lt_postdep_objects_RC
17721
17722# Dependencies to place before the objects being linked to create a
17723# shared library.
17724predeps=$lt_predeps_RC
17725
17726# Dependencies to place after the objects being linked to create a
17727# shared library.
17728postdeps=$lt_postdeps_RC
17729
17730# The library search path used internally by the compiler when linking
17731# a shared library.
17732compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17733
17734# Method to check whether dependent libraries are shared objects.
17735deplibs_check_method=$lt_deplibs_check_method
17736
17737# Command to use when deplibs_check_method == file_magic.
17738file_magic_cmd=$lt_file_magic_cmd
17739
17740# Flag that allows shared libraries with undefined symbols to be built.
17741allow_undefined_flag=$lt_allow_undefined_flag_RC
17742
17743# Flag that forces no undefined symbols.
17744no_undefined_flag=$lt_no_undefined_flag_RC
17745
17746# Commands used to finish a libtool library installation in a directory.
17747finish_cmds=$lt_finish_cmds
17748
17749# Same as above, but a single script fragment to be evaled but not shown.
17750finish_eval=$lt_finish_eval
17751
17752# Take the output of nm and produce a listing of raw symbols and C names.
17753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17754
17755# Transform the output of nm in a proper C declaration
17756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17757
17758# Transform the output of nm in a C name address pair
17759global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17760
17761# This is the shared library runtime path variable.
17762runpath_var=$runpath_var
17763
17764# This is the shared library path variable.
17765shlibpath_var=$shlibpath_var
17766
17767# Is shlibpath searched before the hard-coded library search path?
17768shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17769
17770# How to hardcode a shared library path into an executable.
17771hardcode_action=$hardcode_action_RC
17772
17773# Whether we should hardcode library paths into libraries.
17774hardcode_into_libs=$hardcode_into_libs
17775
17776# Flag to hardcode \$libdir into a binary during linking.
17777# This must work even if \$libdir does not exist.
17778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17779
17780# If ld is used when linking, flag to hardcode \$libdir into
17781# a binary during linking. This must work even if \$libdir does
17782# not exist.
17783hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17784
17785# Whether we need a single -rpath flag with a separated argument.
17786hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17787
17788# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17789# resulting binary.
17790hardcode_direct=$hardcode_direct_RC
17791
17792# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17793# resulting binary.
17794hardcode_minus_L=$hardcode_minus_L_RC
17795
17796# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17797# the resulting binary.
17798hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17799
17800# Set to yes if building a shared library automatically hardcodes DIR into the library
17801# and all subsequent libraries and executables linked against it.
17802hardcode_automatic=$hardcode_automatic_RC
17803
17804# Variables whose values should be saved in libtool wrapper scripts and
17805# restored at relink time.
17806variables_saved_for_relink="$variables_saved_for_relink"
17807
17808# Whether libtool must link a program against all its dependency libraries.
17809link_all_deplibs=$link_all_deplibs_RC
17810
17811# Compile-time system search path for libraries
17812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17813
17814# Run-time system search path for libraries
17815sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17816
17817# Fix the shell variable \$srcfile for the compiler.
17818fix_srcfile_path="$fix_srcfile_path_RC"
17819
17820# Set to yes if exported symbols are required.
17821always_export_symbols=$always_export_symbols_RC
17822
17823# The commands to list exported symbols.
17824export_symbols_cmds=$lt_export_symbols_cmds_RC
17825
17826# The commands to extract the exported symbol list from a shared archive.
17827extract_expsyms_cmds=$lt_extract_expsyms_cmds
17828
17829# Symbols that should not be listed in the preloaded symbols.
17830exclude_expsyms=$lt_exclude_expsyms_RC
17831
17832# Symbols that must always be exported.
17833include_expsyms=$lt_include_expsyms_RC
17834
17835# ### END LIBTOOL TAG CONFIG: $tagname
17836
17837__EOF__
17838
17839
17840else
17841 # If there is no Makefile yet, we rely on a make rule to execute
17842 # `config.status --recheck' to rerun these tests and create the
17843 # libtool script then.
17844 test -f Makefile && make "$ltmain"
17845fi
17846
17847
17848ac_ext=c
17849ac_cpp='$CPP $CPPFLAGS'
17850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852ac_compiler_gnu=$ac_cv_c_compiler_gnu
17853
17854CC="$lt_save_CC"
17855
17856 ;;
17857
17858 *)
17859 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17860echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17861 { (exit 1); exit 1; }; }
17862 ;;
17863 esac
17864
17865 # Append the new tag name to the list of available tags.
17866 if test -n "$tagname" ; then
17867 available_tags="$available_tags $tagname"
17868 fi
17869 fi
17870 done
17871 IFS="$lt_save_ifs"
17872
17873 # Now substitute the updated list of available tags.
17874 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17875 mv "${ofile}T" "$ofile"
17876 chmod +x "$ofile"
17877 else
17878 rm -f "${ofile}T"
17879 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17880echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17881 { (exit 1); exit 1; }; }
17882 fi
17883fi
John Criswell7a73b802003-06-30 21:59:07 +000017884
17885
17886
17887# This can be used to rebuild libtool when needed
17888LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17889
17890# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000017891LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000017892
17893# Prevent multiple expansion
17894
17895
17896
John Criswell47fdd832003-07-14 16:52:07 +000017897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
John Criswellde00db22003-08-25 16:49:54 +000017915# Extract the first word of "pwd", so it can be a program name with args.
17916set dummy pwd; ac_word=$2
17917echo "$as_me:$LINENO: checking for $ac_word" >&5
17918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17919if test "${ac_cv_path_RPWD+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921else
17922 case $RPWD in
17923 [\\/]* | ?:[\\/]*)
17924 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
17925 ;;
17926 *)
17927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928for as_dir in $PATH
17929do
17930 IFS=$as_save_IFS
17931 test -z "$as_dir" && as_dir=.
17932 for ac_exec_ext in '' $ac_executable_extensions; do
17933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17934 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
17935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17936 break 2
17937 fi
17938done
17939done
17940
17941 ;;
17942esac
17943fi
17944RPWD=$ac_cv_path_RPWD
17945
17946if test -n "$RPWD"; then
17947 echo "$as_me:$LINENO: result: $RPWD" >&5
17948echo "${ECHO_T}$RPWD" >&6
17949else
17950 echo "$as_me:$LINENO: result: no" >&5
17951echo "${ECHO_T}no" >&6
17952fi
17953
John Criswell7a73b802003-06-30 21:59:07 +000017954# Extract the first word of "ar", so it can be a program name with args.
17955set dummy ar; ac_word=$2
17956echo "$as_me:$LINENO: checking for $ac_word" >&5
17957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17958if test "${ac_cv_path_AR+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960else
17961 case $AR in
17962 [\\/]* | ?:[\\/]*)
17963 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17964 ;;
17965 *)
17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17967for as_dir in $PATH
17968do
17969 IFS=$as_save_IFS
17970 test -z "$as_dir" && as_dir=.
17971 for ac_exec_ext in '' $ac_executable_extensions; do
17972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17973 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17975 break 2
17976 fi
17977done
17978done
17979
17980 ;;
17981esac
17982fi
17983AR=$ac_cv_path_AR
17984
17985if test -n "$AR"; then
17986 echo "$as_me:$LINENO: result: $AR" >&5
17987echo "${ECHO_T}$AR" >&6
17988else
17989 echo "$as_me:$LINENO: result: no" >&5
17990echo "${ECHO_T}no" >&6
17991fi
17992
17993# Extract the first word of "sed", so it can be a program name with args.
17994set dummy sed; ac_word=$2
17995echo "$as_me:$LINENO: checking for $ac_word" >&5
17996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17997if test "${ac_cv_path_SED+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999else
18000 case $SED in
18001 [\\/]* | ?:[\\/]*)
18002 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18003 ;;
18004 *)
18005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006for as_dir in $PATH
18007do
18008 IFS=$as_save_IFS
18009 test -z "$as_dir" && as_dir=.
18010 for ac_exec_ext in '' $ac_executable_extensions; do
18011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18012 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18014 break 2
18015 fi
18016done
18017done
18018
18019 ;;
18020esac
18021fi
18022SED=$ac_cv_path_SED
18023
18024if test -n "$SED"; then
18025 echo "$as_me:$LINENO: result: $SED" >&5
18026echo "${ECHO_T}$SED" >&6
18027else
18028 echo "$as_me:$LINENO: result: no" >&5
18029echo "${ECHO_T}no" >&6
18030fi
18031
18032# Extract the first word of "rm", so it can be a program name with args.
18033set dummy rm; ac_word=$2
18034echo "$as_me:$LINENO: checking for $ac_word" >&5
18035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18036if test "${ac_cv_path_RM+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 case $RM in
18040 [\\/]* | ?:[\\/]*)
18041 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18042 ;;
18043 *)
18044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045for as_dir in $PATH
18046do
18047 IFS=$as_save_IFS
18048 test -z "$as_dir" && as_dir=.
18049 for ac_exec_ext in '' $ac_executable_extensions; do
18050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18053 break 2
18054 fi
18055done
18056done
18057
18058 ;;
18059esac
18060fi
18061RM=$ac_cv_path_RM
18062
18063if test -n "$RM"; then
18064 echo "$as_me:$LINENO: result: $RM" >&5
18065echo "${ECHO_T}$RM" >&6
18066else
18067 echo "$as_me:$LINENO: result: no" >&5
18068echo "${ECHO_T}no" >&6
18069fi
18070
18071# Extract the first word of "echo", so it can be a program name with args.
18072set dummy echo; ac_word=$2
18073echo "$as_me:$LINENO: checking for $ac_word" >&5
18074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18075if test "${ac_cv_path_ECHO+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 case $ECHO in
18079 [\\/]* | ?:[\\/]*)
18080 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18081 ;;
18082 *)
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084for as_dir in $PATH
18085do
18086 IFS=$as_save_IFS
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 break 2
18093 fi
18094done
18095done
18096
18097 ;;
18098esac
18099fi
18100ECHO=$ac_cv_path_ECHO
18101
18102if test -n "$ECHO"; then
18103 echo "$as_me:$LINENO: result: $ECHO" >&5
18104echo "${ECHO_T}$ECHO" >&6
18105else
18106 echo "$as_me:$LINENO: result: no" >&5
18107echo "${ECHO_T}no" >&6
18108fi
18109
18110# Extract the first word of "mkdir", so it can be a program name with args.
18111set dummy mkdir; ac_word=$2
18112echo "$as_me:$LINENO: checking for $ac_word" >&5
18113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18114if test "${ac_cv_path_MKDIR+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116else
18117 case $MKDIR in
18118 [\\/]* | ?:[\\/]*)
18119 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18120 ;;
18121 *)
18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123for as_dir in $PATH
18124do
18125 IFS=$as_save_IFS
18126 test -z "$as_dir" && as_dir=.
18127 for ac_exec_ext in '' $ac_executable_extensions; do
18128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18131 break 2
18132 fi
18133done
18134done
18135
18136 ;;
18137esac
18138fi
18139MKDIR=$ac_cv_path_MKDIR
18140
18141if test -n "$MKDIR"; then
18142 echo "$as_me:$LINENO: result: $MKDIR" >&5
18143echo "${ECHO_T}$MKDIR" >&6
18144else
18145 echo "$as_me:$LINENO: result: no" >&5
18146echo "${ECHO_T}no" >&6
18147fi
18148
18149# Extract the first word of "date", so it can be a program name with args.
18150set dummy date; ac_word=$2
18151echo "$as_me:$LINENO: checking for $ac_word" >&5
18152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18153if test "${ac_cv_path_DATE+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155else
18156 case $DATE in
18157 [\\/]* | ?:[\\/]*)
18158 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18159 ;;
18160 *)
18161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18162for as_dir in $PATH
18163do
18164 IFS=$as_save_IFS
18165 test -z "$as_dir" && as_dir=.
18166 for ac_exec_ext in '' $ac_executable_extensions; do
18167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18168 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18170 break 2
18171 fi
18172done
18173done
18174
18175 ;;
18176esac
18177fi
18178DATE=$ac_cv_path_DATE
18179
18180if test -n "$DATE"; then
18181 echo "$as_me:$LINENO: result: $DATE" >&5
18182echo "${ECHO_T}$DATE" >&6
18183else
18184 echo "$as_me:$LINENO: result: no" >&5
18185echo "${ECHO_T}no" >&6
18186fi
18187
18188# Extract the first word of "mv", so it can be a program name with args.
18189set dummy mv; ac_word=$2
18190echo "$as_me:$LINENO: checking for $ac_word" >&5
18191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18192if test "${ac_cv_path_MV+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194else
18195 case $MV in
18196 [\\/]* | ?:[\\/]*)
18197 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18198 ;;
18199 *)
18200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201for as_dir in $PATH
18202do
18203 IFS=$as_save_IFS
18204 test -z "$as_dir" && as_dir=.
18205 for ac_exec_ext in '' $ac_executable_extensions; do
18206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18209 break 2
18210 fi
18211done
18212done
18213
18214 ;;
18215esac
18216fi
18217MV=$ac_cv_path_MV
18218
18219if test -n "$MV"; then
18220 echo "$as_me:$LINENO: result: $MV" >&5
18221echo "${ECHO_T}$MV" >&6
18222else
18223 echo "$as_me:$LINENO: result: no" >&5
18224echo "${ECHO_T}no" >&6
18225fi
18226
18227# Extract the first word of "dot", so it can be a program name with args.
18228set dummy dot; ac_word=$2
18229echo "$as_me:$LINENO: checking for $ac_word" >&5
18230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18231if test "${ac_cv_path_DOT+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233else
18234 case $DOT in
18235 [\\/]* | ?:[\\/]*)
18236 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18237 ;;
18238 *)
18239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240for as_dir in $PATH
18241do
18242 IFS=$as_save_IFS
18243 test -z "$as_dir" && as_dir=.
18244 for ac_exec_ext in '' $ac_executable_extensions; do
18245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18248 break 2
18249 fi
18250done
18251done
18252
18253 ;;
18254esac
18255fi
18256DOT=$ac_cv_path_DOT
18257
18258if test -n "$DOT"; then
18259 echo "$as_me:$LINENO: result: $DOT" >&5
18260echo "${ECHO_T}$DOT" >&6
18261else
18262 echo "$as_me:$LINENO: result: no" >&5
18263echo "${ECHO_T}no" >&6
18264fi
18265
18266# Extract the first word of "etags", so it can be a program name with args.
18267set dummy etags; ac_word=$2
18268echo "$as_me:$LINENO: checking for $ac_word" >&5
18269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18270if test "${ac_cv_path_ETAGS+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18272else
18273 case $ETAGS in
18274 [\\/]* | ?:[\\/]*)
18275 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18276 ;;
18277 *)
18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279for as_dir in $PATH
18280do
18281 IFS=$as_save_IFS
18282 test -z "$as_dir" && as_dir=.
18283 for ac_exec_ext in '' $ac_executable_extensions; do
18284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18285 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18287 break 2
18288 fi
18289done
18290done
18291
18292 ;;
18293esac
18294fi
18295ETAGS=$ac_cv_path_ETAGS
18296
18297if test -n "$ETAGS"; then
18298 echo "$as_me:$LINENO: result: $ETAGS" >&5
18299echo "${ECHO_T}$ETAGS" >&6
18300else
18301 echo "$as_me:$LINENO: result: no" >&5
18302echo "${ECHO_T}no" >&6
18303fi
18304
18305# Extract the first word of "purify", so it can be a program name with args.
18306set dummy purify; ac_word=$2
18307echo "$as_me:$LINENO: checking for $ac_word" >&5
18308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18309if test "${ac_cv_path_PURIFY+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18311else
18312 case $PURIFY in
18313 [\\/]* | ?:[\\/]*)
18314 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18315 ;;
18316 *)
18317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18318for as_dir in $PATH
18319do
18320 IFS=$as_save_IFS
18321 test -z "$as_dir" && as_dir=.
18322 for ac_exec_ext in '' $ac_executable_extensions; do
18323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18324 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18326 break 2
18327 fi
18328done
18329done
18330
18331 ;;
18332esac
18333fi
18334PURIFY=$ac_cv_path_PURIFY
18335
18336if test -n "$PURIFY"; then
18337 echo "$as_me:$LINENO: result: $PURIFY" >&5
18338echo "${ECHO_T}$PURIFY" >&6
18339else
18340 echo "$as_me:$LINENO: result: no" >&5
18341echo "${ECHO_T}no" >&6
18342fi
18343
John Criswellde00db22003-08-25 16:49:54 +000018344# Extract the first word of "python", so it can be a program name with args.
18345set dummy python; ac_word=$2
18346echo "$as_me:$LINENO: checking for $ac_word" >&5
18347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18348if test "${ac_cv_path_PYTHON+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350else
18351 case $PYTHON in
18352 [\\/]* | ?:[\\/]*)
18353 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18354 ;;
18355 *)
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357for as_dir in $PATH
18358do
18359 IFS=$as_save_IFS
18360 test -z "$as_dir" && as_dir=.
18361 for ac_exec_ext in '' $ac_executable_extensions; do
18362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18365 break 2
18366 fi
18367done
18368done
18369
18370 ;;
18371esac
18372fi
18373PYTHON=$ac_cv_path_PYTHON
18374
18375if test -n "$PYTHON"; then
18376 echo "$as_me:$LINENO: result: $PYTHON" >&5
18377echo "${ECHO_T}$PYTHON" >&6
18378else
18379 echo "$as_me:$LINENO: result: no" >&5
18380echo "${ECHO_T}no" >&6
18381fi
18382
18383# Extract the first word of "qmtest", so it can be a program name with args.
18384set dummy qmtest; ac_word=$2
18385echo "$as_me:$LINENO: checking for $ac_word" >&5
18386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18387if test "${ac_cv_path_QMTEST+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390 case $QMTEST in
18391 [\\/]* | ?:[\\/]*)
18392 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18393 ;;
18394 *)
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396for as_dir in $PATH
18397do
18398 IFS=$as_save_IFS
18399 test -z "$as_dir" && as_dir=.
18400 for ac_exec_ext in '' $ac_executable_extensions; do
18401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18404 break 2
18405 fi
18406done
18407done
18408
18409 ;;
18410esac
18411fi
18412QMTEST=$ac_cv_path_QMTEST
18413
18414if test -n "$QMTEST"; then
18415 echo "$as_me:$LINENO: result: $QMTEST" >&5
18416echo "${ECHO_T}$QMTEST" >&6
18417else
18418 echo "$as_me:$LINENO: result: no" >&5
18419echo "${ECHO_T}no" >&6
18420fi
18421
18422
18423pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18424pymajor=`echo $pyversion | cut -d. -f1`
18425pyminor=`echo $pyversion | cut -d. -f2`
18426
18427if test "$pymajor" -ge "2"
18428then
18429 if test "$pymajor" -eq "2"
18430 then
18431 if test "$pyminor" -lt "2"
18432 then
18433 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18434echo "$as_me: error: Python 2.2 or greater required" >&2;}
18435 { (exit 1); exit 1; }; }
18436 fi
18437 fi
18438else
18439 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18440echo "$as_me: error: Python 2.2 or greater required" >&2;}
18441 { (exit 1); exit 1; }; }
18442fi
John Criswell7a73b802003-06-30 21:59:07 +000018443
18444
18445
18446
18447
18448echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18449echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18450if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 ac_check_lib_save_LIBS=$LIBS
18454LIBS="-lelf $LIBS"
18455cat >conftest.$ac_ext <<_ACEOF
18456#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018457/* confdefs.h. */
18458_ACEOF
18459cat confdefs.h >>conftest.$ac_ext
18460cat >>conftest.$ac_ext <<_ACEOF
18461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018462
18463/* Override any gcc2 internal prototype to avoid an error. */
18464#ifdef __cplusplus
18465extern "C"
18466#endif
18467/* We use char because int might match the return type of a gcc2
18468 builtin and then its argument prototype would still apply. */
18469char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018470int
18471main ()
18472{
18473elf_begin ();
18474 ;
18475 return 0;
18476}
18477_ACEOF
18478rm -f conftest.$ac_objext conftest$ac_exeext
18479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -s conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_cv_lib_elf_elf_begin=yes
18491else
18492 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018493sed 's/^/| /' conftest.$ac_ext >&5
18494
John Criswell7a73b802003-06-30 21:59:07 +000018495ac_cv_lib_elf_elf_begin=no
18496fi
18497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498LIBS=$ac_check_lib_save_LIBS
18499fi
18500echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18501echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18502if test $ac_cv_lib_elf_elf_begin = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504#define HAVE_LIBELF 1
18505_ACEOF
18506
18507 LIBS="-lelf $LIBS"
18508
18509fi
18510
18511
18512echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18513echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18514if test "${ac_cv_search_dlopen+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516else
18517 ac_func_search_save_LIBS=$LIBS
18518ac_cv_search_dlopen=no
18519cat >conftest.$ac_ext <<_ACEOF
18520#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018526
18527/* Override any gcc2 internal prototype to avoid an error. */
18528#ifdef __cplusplus
18529extern "C"
18530#endif
18531/* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018534int
18535main ()
18536{
18537dlopen ();
18538 ;
18539 return 0;
18540}
18541_ACEOF
18542rm -f conftest.$ac_objext conftest$ac_exeext
18543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_search_dlopen="none required"
18555else
18556 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018557sed 's/^/| /' conftest.$ac_ext >&5
18558
John Criswell7a73b802003-06-30 21:59:07 +000018559fi
18560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18561if test "$ac_cv_search_dlopen" = no; then
18562 for ac_lib in dl; do
18563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18565#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018566/* confdefs.h. */
18567_ACEOF
18568cat confdefs.h >>conftest.$ac_ext
18569cat >>conftest.$ac_ext <<_ACEOF
18570/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018571
18572/* Override any gcc2 internal prototype to avoid an error. */
18573#ifdef __cplusplus
18574extern "C"
18575#endif
18576/* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18578char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018579int
18580main ()
18581{
18582dlopen ();
18583 ;
18584 return 0;
18585}
18586_ACEOF
18587rm -f conftest.$ac_objext conftest$ac_exeext
18588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_search_dlopen="-l$ac_lib"
18600break
18601else
18602 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018603sed 's/^/| /' conftest.$ac_ext >&5
18604
John Criswell7a73b802003-06-30 21:59:07 +000018605fi
18606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18607 done
18608fi
18609LIBS=$ac_func_search_save_LIBS
18610fi
18611echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18612echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18613if test "$ac_cv_search_dlopen" != no; then
18614 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18615
18616else
18617 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18618echo "$as_me: error: dlopen() required but not found" >&2;}
18619 { (exit 1); exit 1; }; }
18620fi
18621
18622
18623echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18624echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18625if test "${ac_cv_search_mallinfo+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 ac_func_search_save_LIBS=$LIBS
18629ac_cv_search_mallinfo=no
18630cat >conftest.$ac_ext <<_ACEOF
18631#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018637
18638/* Override any gcc2 internal prototype to avoid an error. */
18639#ifdef __cplusplus
18640extern "C"
18641#endif
18642/* We use char because int might match the return type of a gcc2
18643 builtin and then its argument prototype would still apply. */
18644char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018645int
18646main ()
18647{
18648mallinfo ();
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext conftest$ac_exeext
18654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655 (eval $ac_link) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_search_mallinfo="none required"
18666else
18667 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018668sed 's/^/| /' conftest.$ac_ext >&5
18669
John Criswell7a73b802003-06-30 21:59:07 +000018670fi
18671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18672if test "$ac_cv_search_mallinfo" = no; then
18673 for ac_lib in malloc; do
18674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18675 cat >conftest.$ac_ext <<_ACEOF
18676#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018682
18683/* Override any gcc2 internal prototype to avoid an error. */
18684#ifdef __cplusplus
18685extern "C"
18686#endif
18687/* We use char because int might match the return type of a gcc2
18688 builtin and then its argument prototype would still apply. */
18689char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018690int
18691main ()
18692{
18693mallinfo ();
18694 ;
18695 return 0;
18696}
18697_ACEOF
18698rm -f conftest.$ac_objext conftest$ac_exeext
18699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700 (eval $ac_link) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_search_mallinfo="-l$ac_lib"
18711break
18712else
18713 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018714sed 's/^/| /' conftest.$ac_ext >&5
18715
John Criswell7a73b802003-06-30 21:59:07 +000018716fi
18717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18718 done
18719fi
18720LIBS=$ac_func_search_save_LIBS
18721fi
18722echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18723echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18724if test "$ac_cv_search_mallinfo" != no; then
18725 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18726 cat >>confdefs.h <<\_ACEOF
18727#define HAVE_MALLINFO 1
18728_ACEOF
18729
18730fi
18731
18732
18733
18734echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18735echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18736if test "${ac_cv_header_stdc+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739 cat >conftest.$ac_ext <<_ACEOF
18740#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018746#include <stdlib.h>
18747#include <stdarg.h>
18748#include <string.h>
18749#include <float.h>
18750
John Criswell392aaa32003-07-22 19:18:09 +000018751int
18752main ()
18753{
18754
18755 ;
18756 return 0;
18757}
John Criswell7a73b802003-06-30 21:59:07 +000018758_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000018759rm -f conftest.$ac_objext
18760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018762 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018764 (exit $ac_status); } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018771 ac_cv_header_stdc=yes
18772else
18773 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018777fi
John Criswell392aaa32003-07-22 19:18:09 +000018778rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018779
18780if test $ac_cv_header_stdc = yes; then
18781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18782 cat >conftest.$ac_ext <<_ACEOF
18783#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018784/* confdefs.h. */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018789#include <string.h>
18790
18791_ACEOF
18792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018793 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018794 :
18795else
18796 ac_cv_header_stdc=no
18797fi
18798rm -f conftest*
18799
18800fi
18801
18802if test $ac_cv_header_stdc = yes; then
18803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18804 cat >conftest.$ac_ext <<_ACEOF
18805#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018806/* confdefs.h. */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
18810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018811#include <stdlib.h>
18812
18813_ACEOF
18814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018815 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018816 :
18817else
18818 ac_cv_header_stdc=no
18819fi
18820rm -f conftest*
18821
18822fi
18823
18824if test $ac_cv_header_stdc = yes; then
18825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18826 if test "$cross_compiling" = yes; then
18827 :
18828else
18829 cat >conftest.$ac_ext <<_ACEOF
18830#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018836#include <ctype.h>
18837#if ((' ' & 0x0FF) == 0x020)
18838# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18839# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18840#else
John Criswell392aaa32003-07-22 19:18:09 +000018841# define ISLOWER(c) \
18842 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018843 || ('j' <= (c) && (c) <= 'r') \
18844 || ('s' <= (c) && (c) <= 'z'))
18845# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18846#endif
18847
18848#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18849int
18850main ()
18851{
18852 int i;
18853 for (i = 0; i < 256; i++)
18854 if (XOR (islower (i), ISLOWER (i))
18855 || toupper (i) != TOUPPER (i))
18856 exit(2);
18857 exit (0);
18858}
18859_ACEOF
18860rm -f conftest$ac_exeext
18861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 :
18872else
18873 echo "$as_me: program exited with status $ac_status" >&5
18874echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018875sed 's/^/| /' conftest.$ac_ext >&5
18876
John Criswell7a73b802003-06-30 21:59:07 +000018877( exit $ac_status )
18878ac_cv_header_stdc=no
18879fi
John Criswell392aaa32003-07-22 19:18:09 +000018880rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018881fi
18882fi
18883fi
18884echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18885echo "${ECHO_T}$ac_cv_header_stdc" >&6
18886if test $ac_cv_header_stdc = yes; then
18887
18888cat >>confdefs.h <<\_ACEOF
18889#define STDC_HEADERS 1
18890_ACEOF
18891
18892fi
18893
18894echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18895echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18896if test "${ac_cv_header_sys_wait_h+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899 cat >conftest.$ac_ext <<_ACEOF
18900#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018901/* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018906#include <sys/types.h>
18907#include <sys/wait.h>
18908#ifndef WEXITSTATUS
18909# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18910#endif
18911#ifndef WIFEXITED
18912# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18913#endif
18914
John Criswell7a73b802003-06-30 21:59:07 +000018915int
18916main ()
18917{
18918 int s;
18919 wait (&s);
18920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18921 ;
18922 return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext
18926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_header_sys_wait_h=yes
18938else
18939 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018940sed 's/^/| /' conftest.$ac_ext >&5
18941
John Criswell7a73b802003-06-30 21:59:07 +000018942ac_cv_header_sys_wait_h=no
18943fi
18944rm -f conftest.$ac_objext conftest.$ac_ext
18945fi
18946echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18947echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18948if test $ac_cv_header_sys_wait_h = yes; then
18949
18950cat >>confdefs.h <<\_ACEOF
18951#define HAVE_SYS_WAIT_H 1
18952_ACEOF
18953
18954fi
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.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
19109
19110
19111for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19112do
19113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19114if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115 echo "$as_me:$LINENO: checking for $ac_header" >&5
19116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19117if eval "test \"\${$as_ac_Header+set}\" = set"; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119fi
19120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19122else
19123 # Is the header compilable?
19124echo "$as_me:$LINENO: checking $ac_header usability" >&5
19125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19126cat >conftest.$ac_ext <<_ACEOF
19127#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019133$ac_includes_default
19134#include <$ac_header>
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19138 (eval $ac_compile) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_header_compiler=yes
19149else
19150 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019151sed 's/^/| /' conftest.$ac_ext >&5
19152
John Criswell7a73b802003-06-30 21:59:07 +000019153ac_header_compiler=no
19154fi
19155rm -f conftest.$ac_objext conftest.$ac_ext
19156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19157echo "${ECHO_T}$ac_header_compiler" >&6
19158
19159# Is the header present?
19160echo "$as_me:$LINENO: checking $ac_header presence" >&5
19161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19162cat >conftest.$ac_ext <<_ACEOF
19163#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019164/* confdefs.h. */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019169#include <$ac_header>
19170_ACEOF
19171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19173 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019174 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } >/dev/null; then
19179 if test -s conftest.err; then
19180 ac_cpp_err=$ac_c_preproc_warn_flag
19181 else
19182 ac_cpp_err=
19183 fi
19184else
19185 ac_cpp_err=yes
19186fi
19187if test -z "$ac_cpp_err"; then
19188 ac_header_preproc=yes
19189else
19190 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019191sed 's/^/| /' conftest.$ac_ext >&5
19192
John Criswell7a73b802003-06-30 21:59:07 +000019193 ac_header_preproc=no
19194fi
19195rm -f conftest.err conftest.$ac_ext
19196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19197echo "${ECHO_T}$ac_header_preproc" >&6
19198
19199# So? What about this header?
19200case $ac_header_compiler:$ac_header_preproc in
19201 yes:no )
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19206 (
19207 cat <<\_ASBOX
19208## ------------------------------------ ##
19209## Report this to bug-autoconf@gnu.org. ##
19210## ------------------------------------ ##
19211_ASBOX
19212 ) |
19213 sed "s/^/$as_me: WARNING: /" >&2
19214 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019215 no:yes )
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19222 (
19223 cat <<\_ASBOX
19224## ------------------------------------ ##
19225## Report this to bug-autoconf@gnu.org. ##
19226## ------------------------------------ ##
19227_ASBOX
19228 ) |
19229 sed "s/^/$as_me: WARNING: /" >&2
19230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019231esac
19232echo "$as_me:$LINENO: checking for $ac_header" >&5
19233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19234if eval "test \"\${$as_ac_Header+set}\" = set"; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237 eval "$as_ac_Header=$ac_header_preproc"
19238fi
19239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19241
19242fi
19243if test `eval echo '${'$as_ac_Header'}'` = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246_ACEOF
19247
19248fi
19249
19250done
19251
19252
19253
19254
19255for ac_header in dlfcn.h link.h
19256do
19257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19258if eval "test \"\${$as_ac_Header+set}\" = set"; then
19259 echo "$as_me:$LINENO: checking for $ac_header" >&5
19260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19261if eval "test \"\${$as_ac_Header+set}\" = set"; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19263fi
19264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19266else
19267 # Is the header compilable?
19268echo "$as_me:$LINENO: checking $ac_header usability" >&5
19269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19270cat >conftest.$ac_ext <<_ACEOF
19271#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019277$ac_includes_default
19278#include <$ac_header>
19279_ACEOF
19280rm -f conftest.$ac_objext
19281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282 (eval $ac_compile) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -s conftest.$ac_objext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_header_compiler=yes
19293else
19294 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019295sed 's/^/| /' conftest.$ac_ext >&5
19296
John Criswell7a73b802003-06-30 21:59:07 +000019297ac_header_compiler=no
19298fi
19299rm -f conftest.$ac_objext conftest.$ac_ext
19300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19301echo "${ECHO_T}$ac_header_compiler" >&6
19302
19303# Is the header present?
19304echo "$as_me:$LINENO: checking $ac_header presence" >&5
19305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19306cat >conftest.$ac_ext <<_ACEOF
19307#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019313#include <$ac_header>
19314_ACEOF
19315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19317 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019318 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } >/dev/null; then
19323 if test -s conftest.err; then
19324 ac_cpp_err=$ac_c_preproc_warn_flag
19325 else
19326 ac_cpp_err=
19327 fi
19328else
19329 ac_cpp_err=yes
19330fi
19331if test -z "$ac_cpp_err"; then
19332 ac_header_preproc=yes
19333else
19334 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019335sed 's/^/| /' conftest.$ac_ext >&5
19336
John Criswell7a73b802003-06-30 21:59:07 +000019337 ac_header_preproc=no
19338fi
19339rm -f conftest.err conftest.$ac_ext
19340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341echo "${ECHO_T}$ac_header_preproc" >&6
19342
19343# So? What about this header?
19344case $ac_header_compiler:$ac_header_preproc in
19345 yes:no )
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 (
19351 cat <<\_ASBOX
19352## ------------------------------------ ##
19353## Report this to bug-autoconf@gnu.org. ##
19354## ------------------------------------ ##
19355_ASBOX
19356 ) |
19357 sed "s/^/$as_me: WARNING: /" >&2
19358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019359 no:yes )
19360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19366 (
19367 cat <<\_ASBOX
19368## ------------------------------------ ##
19369## Report this to bug-autoconf@gnu.org. ##
19370## ------------------------------------ ##
19371_ASBOX
19372 ) |
19373 sed "s/^/$as_me: WARNING: /" >&2
19374 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019375esac
19376echo "$as_me:$LINENO: checking for $ac_header" >&5
19377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19378if eval "test \"\${$as_ac_Header+set}\" = set"; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 eval "$as_ac_Header=$ac_header_preproc"
19382fi
19383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19385
19386fi
19387if test `eval echo '${'$as_ac_Header'}'` = yes; then
19388 cat >>confdefs.h <<_ACEOF
19389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19390_ACEOF
19391
19392fi
19393
19394done
19395
19396
19397
John Criswell7a73b802003-06-30 21:59:07 +000019398echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19399echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19400if test "${ac_cv_c_const+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402else
19403 cat >conftest.$ac_ext <<_ACEOF
19404#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019410
John Criswell7a73b802003-06-30 21:59:07 +000019411int
19412main ()
19413{
19414/* FIXME: Include the comments suggested by Paul. */
19415#ifndef __cplusplus
19416 /* Ultrix mips cc rejects this. */
19417 typedef int charset[2];
19418 const charset x;
19419 /* SunOS 4.1.1 cc rejects this. */
19420 char const *const *ccp;
19421 char **p;
19422 /* NEC SVR4.0.2 mips cc rejects this. */
19423 struct point {int x, y;};
19424 static struct point const zero = {0,0};
19425 /* AIX XL C 1.02.0.0 rejects this.
19426 It does not let you subtract one const X* pointer from another in
19427 an arm of an if-expression whose if-part is not a constant
19428 expression */
19429 const char *g = "string";
19430 ccp = &g + (g ? g-g : 0);
19431 /* HPUX 7.0 cc rejects these. */
19432 ++ccp;
19433 p = (char**) ccp;
19434 ccp = (char const *const *) p;
19435 { /* SCO 3.2v4 cc rejects this. */
19436 char *t;
19437 char const *s = 0 ? (char *) 0 : (char const *) 0;
19438
19439 *t++ = 0;
19440 }
19441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19442 int x[] = {25, 17};
19443 const int *foo = &x[0];
19444 ++foo;
19445 }
19446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19447 typedef const int *iptr;
19448 iptr p = 0;
19449 ++p;
19450 }
19451 { /* AIX XL C 1.02.0.0 rejects this saying
19452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19453 struct s { int j; const int *ap[3]; };
19454 struct s *b; b->j = 5;
19455 }
19456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19457 const int foo = 10;
19458 }
19459#endif
19460
19461 ;
19462 return 0;
19463}
19464_ACEOF
19465rm -f conftest.$ac_objext
19466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19467 (eval $ac_compile) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -s conftest.$ac_objext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_cv_c_const=yes
19478else
19479 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019480sed 's/^/| /' conftest.$ac_ext >&5
19481
John Criswell7a73b802003-06-30 21:59:07 +000019482ac_cv_c_const=no
19483fi
19484rm -f conftest.$ac_objext conftest.$ac_ext
19485fi
19486echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19487echo "${ECHO_T}$ac_cv_c_const" >&6
19488if test $ac_cv_c_const = no; then
19489
19490cat >>confdefs.h <<\_ACEOF
19491#define const
19492_ACEOF
19493
19494fi
19495
19496echo "$as_me:$LINENO: checking for inline" >&5
19497echo $ECHO_N "checking for inline... $ECHO_C" >&6
19498if test "${ac_cv_c_inline+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500else
19501 ac_cv_c_inline=no
19502for ac_kw in inline __inline__ __inline; do
19503 cat >conftest.$ac_ext <<_ACEOF
19504#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019510#ifndef __cplusplus
John Criswell392aaa32003-07-22 19:18:09 +000019511typedef int foo_t;
19512static $ac_kw foo_t static_foo () {return 0; }
19513$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019514#endif
19515
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519 (eval $ac_compile) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_c_inline=$ac_kw; break
19530else
19531 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019532sed 's/^/| /' conftest.$ac_ext >&5
19533
John Criswell7a73b802003-06-30 21:59:07 +000019534fi
19535rm -f conftest.$ac_objext conftest.$ac_ext
19536done
19537
19538fi
19539echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19540echo "${ECHO_T}$ac_cv_c_inline" >&6
19541case $ac_cv_c_inline in
19542 inline | yes) ;;
19543 no)
19544cat >>confdefs.h <<\_ACEOF
19545#define inline
19546_ACEOF
19547 ;;
19548 *) cat >>confdefs.h <<_ACEOF
19549#define inline $ac_cv_c_inline
19550_ACEOF
19551 ;;
19552esac
19553
19554
19555echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19556echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19557if test "${ac_cv_c_bigendian+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559else
19560 # See if sys/param.h defines the BYTE_ORDER macro.
19561cat >conftest.$ac_ext <<_ACEOF
19562#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
19567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019568#include <sys/types.h>
19569#include <sys/param.h>
19570
John Criswell7a73b802003-06-30 21:59:07 +000019571int
19572main ()
19573{
19574#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19575 bogus endian macros
19576#endif
19577
19578 ;
19579 return 0;
19580}
19581_ACEOF
19582rm -f conftest.$ac_objext
19583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584 (eval $ac_compile) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 # It does; now see whether it defined to BIG_ENDIAN or not.
19595cat >conftest.$ac_ext <<_ACEOF
19596#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019602#include <sys/types.h>
19603#include <sys/param.h>
19604
John Criswell7a73b802003-06-30 21:59:07 +000019605int
19606main ()
19607{
19608#if BYTE_ORDER != BIG_ENDIAN
19609 not big endian
19610#endif
19611
19612 ;
19613 return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext
19617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_c_bigendian=yes
19629else
19630 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019631sed 's/^/| /' conftest.$ac_ext >&5
19632
John Criswell7a73b802003-06-30 21:59:07 +000019633ac_cv_c_bigendian=no
19634fi
19635rm -f conftest.$ac_objext conftest.$ac_ext
19636else
19637 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019638sed 's/^/| /' conftest.$ac_ext >&5
19639
John Criswell7a73b802003-06-30 21:59:07 +000019640# It does not; compile a test program.
19641if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000019642 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019643 ac_cv_c_bigendian=unknown
19644 cat >conftest.$ac_ext <<_ACEOF
19645#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019646/* confdefs.h. */
19647_ACEOF
19648cat confdefs.h >>conftest.$ac_ext
19649cat >>conftest.$ac_ext <<_ACEOF
19650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019651short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19652short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19653void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19654short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19655short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19656void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000019657int
19658main ()
19659{
19660 _ascii (); _ebcdic ();
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
John Criswell392aaa32003-07-22 19:18:09 +000019677 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019678 ac_cv_c_bigendian=yes
19679fi
John Criswell392aaa32003-07-22 19:18:09 +000019680if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019681 if test "$ac_cv_c_bigendian" = unknown; then
19682 ac_cv_c_bigendian=no
19683 else
19684 # finding both strings is unlikely to happen, but who knows?
19685 ac_cv_c_bigendian=unknown
19686 fi
19687fi
19688else
19689 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019690sed 's/^/| /' conftest.$ac_ext >&5
19691
John Criswell7a73b802003-06-30 21:59:07 +000019692fi
19693rm -f conftest.$ac_objext conftest.$ac_ext
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
19696#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019702int
19703main ()
19704{
19705 /* Are we little or big endian? From Harbison&Steele. */
19706 union
19707 {
19708 long l;
19709 char c[sizeof (long)];
19710 } u;
19711 u.l = 1;
19712 exit (u.c[sizeof (long) - 1] == 1);
19713}
19714_ACEOF
19715rm -f conftest$ac_exeext
19716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_c_bigendian=no
19727else
19728 echo "$as_me: program exited with status $ac_status" >&5
19729echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019730sed 's/^/| /' conftest.$ac_ext >&5
19731
John Criswell7a73b802003-06-30 21:59:07 +000019732( exit $ac_status )
19733ac_cv_c_bigendian=yes
19734fi
John Criswell392aaa32003-07-22 19:18:09 +000019735rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019736fi
19737fi
19738rm -f conftest.$ac_objext conftest.$ac_ext
19739fi
19740echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19741echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19742case $ac_cv_c_bigendian in
19743 yes)
19744 cat >>confdefs.h <<\_ACEOF
19745#define ENDIAN_BIG 1
19746_ACEOF
19747 ;;
19748 no)
19749 cat >>confdefs.h <<\_ACEOF
19750#define ENDIAN_LITTLE 1
19751_ACEOF
19752 ;;
19753 *)
John Criswell392aaa32003-07-22 19:18:09 +000019754 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019755presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019756echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019757presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19758 { (exit 1); exit 1; }; } ;;
19759esac
19760
19761
19762echo "$as_me:$LINENO: checking for pid_t" >&5
19763echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19764if test "${ac_cv_type_pid_t+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766else
19767 cat >conftest.$ac_ext <<_ACEOF
19768#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019774$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019775int
19776main ()
19777{
19778if ((pid_t *) 0)
19779 return 0;
19780if (sizeof (pid_t))
19781 return 0;
19782 ;
19783 return 0;
19784}
19785_ACEOF
19786rm -f conftest.$ac_objext
19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -s conftest.$ac_objext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ac_cv_type_pid_t=yes
19799else
19800 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019801sed 's/^/| /' conftest.$ac_ext >&5
19802
John Criswell7a73b802003-06-30 21:59:07 +000019803ac_cv_type_pid_t=no
19804fi
19805rm -f conftest.$ac_objext conftest.$ac_ext
19806fi
19807echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19808echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19809if test $ac_cv_type_pid_t = yes; then
19810 :
19811else
19812
19813cat >>confdefs.h <<_ACEOF
19814#define pid_t int
19815_ACEOF
19816
19817fi
19818
19819echo "$as_me:$LINENO: checking for size_t" >&5
19820echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19821if test "${ac_cv_type_size_t+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824 cat >conftest.$ac_ext <<_ACEOF
19825#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019831$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019832int
19833main ()
19834{
19835if ((size_t *) 0)
19836 return 0;
19837if (sizeof (size_t))
19838 return 0;
19839 ;
19840 return 0;
19841}
19842_ACEOF
19843rm -f conftest.$ac_objext
19844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845 (eval $ac_compile) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_type_size_t=yes
19856else
19857 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019858sed 's/^/| /' conftest.$ac_ext >&5
19859
John Criswell7a73b802003-06-30 21:59:07 +000019860ac_cv_type_size_t=no
19861fi
19862rm -f conftest.$ac_objext conftest.$ac_ext
19863fi
19864echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19865echo "${ECHO_T}$ac_cv_type_size_t" >&6
19866if test $ac_cv_type_size_t = yes; then
19867 :
19868else
19869
19870cat >>confdefs.h <<_ACEOF
19871#define size_t unsigned
19872_ACEOF
19873
19874fi
19875
19876echo "$as_me:$LINENO: checking for int64_t" >&5
19877echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19878if test "${ac_cv_type_int64_t+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
19881 cat >conftest.$ac_ext <<_ACEOF
19882#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019883/* confdefs.h. */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019888$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019889int
19890main ()
19891{
19892if ((int64_t *) 0)
19893 return 0;
19894if (sizeof (int64_t))
19895 return 0;
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_type_int64_t=yes
19913else
19914 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019915sed 's/^/| /' conftest.$ac_ext >&5
19916
John Criswell7a73b802003-06-30 21:59:07 +000019917ac_cv_type_int64_t=no
19918fi
19919rm -f conftest.$ac_objext conftest.$ac_ext
19920fi
19921echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19922echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19923if test $ac_cv_type_int64_t = yes; then
19924
19925cat >>confdefs.h <<_ACEOF
19926#define HAVE_INT64_T 1
19927_ACEOF
19928
19929
19930else
19931 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19932echo "$as_me: error: Type int64_t required but not found" >&2;}
19933 { (exit 1); exit 1; }; }
19934fi
19935
19936echo "$as_me:$LINENO: checking for uint64_t" >&5
19937echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19938if test "${ac_cv_type_uint64_t+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940else
19941 cat >conftest.$ac_ext <<_ACEOF
19942#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019948$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019949int
19950main ()
19951{
19952if ((uint64_t *) 0)
19953 return 0;
19954if (sizeof (uint64_t))
19955 return 0;
19956 ;
19957 return 0;
19958}
19959_ACEOF
19960rm -f conftest.$ac_objext
19961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_type_uint64_t=yes
19973else
19974 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019975sed 's/^/| /' conftest.$ac_ext >&5
19976
John Criswell7a73b802003-06-30 21:59:07 +000019977ac_cv_type_uint64_t=no
19978fi
19979rm -f conftest.$ac_objext conftest.$ac_ext
19980fi
19981echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19982echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19983if test $ac_cv_type_uint64_t = yes; then
19984
19985cat >>confdefs.h <<_ACEOF
19986#define HAVE_UINT64_T 1
19987_ACEOF
19988
19989
19990else
19991 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19992echo "$as_me: error: Type uint64_t required but not found" >&2;}
19993 { (exit 1); exit 1; }; }
19994fi
19995
19996echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19997echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19998if test "${ac_cv_header_time+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001 cat >conftest.$ac_ext <<_ACEOF
20002#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020008#include <sys/types.h>
20009#include <sys/time.h>
20010#include <time.h>
20011
John Criswell7a73b802003-06-30 21:59:07 +000020012int
20013main ()
20014{
20015if ((struct tm *) 0)
20016return 0;
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -s conftest.$ac_objext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 ac_cv_header_time=yes
20034else
20035 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020036sed 's/^/| /' conftest.$ac_ext >&5
20037
John Criswell7a73b802003-06-30 21:59:07 +000020038ac_cv_header_time=no
20039fi
20040rm -f conftest.$ac_objext conftest.$ac_ext
20041fi
20042echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20043echo "${ECHO_T}$ac_cv_header_time" >&6
20044if test $ac_cv_header_time = yes; then
20045
20046cat >>confdefs.h <<\_ACEOF
20047#define TIME_WITH_SYS_TIME 1
20048_ACEOF
20049
20050fi
20051
20052echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20053echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20054if test "${ac_cv_struct_tm+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 cat >conftest.$ac_ext <<_ACEOF
20058#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020064#include <sys/types.h>
20065#include <time.h>
20066
John Criswell7a73b802003-06-30 21:59:07 +000020067int
20068main ()
20069{
20070struct tm *tp; tp->tm_sec;
20071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext
20076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077 (eval $ac_compile) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_cv_struct_tm=time.h
20088else
20089 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020090sed 's/^/| /' conftest.$ac_ext >&5
20091
John Criswell7a73b802003-06-30 21:59:07 +000020092ac_cv_struct_tm=sys/time.h
20093fi
20094rm -f conftest.$ac_objext conftest.$ac_ext
20095fi
20096echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20097echo "${ECHO_T}$ac_cv_struct_tm" >&6
20098if test $ac_cv_struct_tm = sys/time.h; then
20099
20100cat >>confdefs.h <<\_ACEOF
20101#define TM_IN_SYS_TIME 1
20102_ACEOF
20103
20104fi
20105
20106
John Criswell7a73b802003-06-30 21:59:07 +000020107echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20108echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20109if test "${ac_cv_cxx_namespaces+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112
20113
20114 ac_ext=cc
20115ac_cpp='$CXXCPP $CPPFLAGS'
20116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20119
20120 cat >conftest.$ac_ext <<_ACEOF
20121#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020127namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020128int
20129main ()
20130{
20131using namespace Outer::Inner; return i;
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext
20137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_cv_cxx_namespaces=yes
20149else
20150 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020151sed 's/^/| /' conftest.$ac_ext >&5
20152
John Criswell7a73b802003-06-30 21:59:07 +000020153ac_cv_cxx_namespaces=no
20154fi
20155rm -f conftest.$ac_objext conftest.$ac_ext
20156 ac_ext=c
20157ac_cpp='$CPP $CPPFLAGS'
20158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20160ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161
20162
20163fi
20164echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20165echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20166if test "$ac_cv_cxx_namespaces" = yes; then
20167
20168cat >>confdefs.h <<\_ACEOF
20169#define HAVE_NAMESPACES
20170_ACEOF
20171
20172fi
20173
20174echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20175echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20176if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179
20180
20181
20182 ac_ext=cc
20183ac_cpp='$CXXCPP $CPPFLAGS'
20184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188 cat >conftest.$ac_ext <<_ACEOF
20189#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020190/* confdefs.h. */
20191_ACEOF
20192cat confdefs.h >>conftest.$ac_ext
20193cat >>conftest.$ac_ext <<_ACEOF
20194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020195#include <ext/hash_map>
20196#ifdef HAVE_NAMESPACES
20197using namespace std;
20198#endif
John Criswell7a73b802003-06-30 21:59:07 +000020199int
20200main ()
20201{
20202hash_map<int, int> t; return 0;
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207rm -f conftest.$ac_objext
20208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_cv_cxx_have_ext_hash_map=std
20220else
20221 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020222sed 's/^/| /' conftest.$ac_ext >&5
20223
John Criswell7a73b802003-06-30 21:59:07 +000020224ac_cv_cxx_have_ext_hash_map=no
20225fi
20226rm -f conftest.$ac_objext conftest.$ac_ext
20227 cat >conftest.$ac_ext <<_ACEOF
20228#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020229/* confdefs.h. */
20230_ACEOF
20231cat confdefs.h >>conftest.$ac_ext
20232cat >>conftest.$ac_ext <<_ACEOF
20233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020234#include <ext/hash_map>
20235#ifdef HAVE_NAMESPACES
20236using namespace __gnu_cxx;
20237#endif
John Criswell7a73b802003-06-30 21:59:07 +000020238int
20239main ()
20240{
20241hash_map<int, int> t; return 0;
20242 ;
20243 return 0;
20244}
20245_ACEOF
20246rm -f conftest.$ac_objext
20247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_cv_cxx_have_ext_hash_map=gnu
20259else
20260 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020261sed 's/^/| /' conftest.$ac_ext >&5
20262
John Criswell7a73b802003-06-30 21:59:07 +000020263ac_cv_cxx_have_ext_hash_map=no
20264fi
20265rm -f conftest.$ac_objext conftest.$ac_ext
20266 ac_ext=c
20267ac_cpp='$CPP $CPPFLAGS'
20268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
20272
20273fi
20274echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20275echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20276if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20277
20278cat >>confdefs.h <<\_ACEOF
20279#define HAVE_STD_EXT_HASH_MAP
20280_ACEOF
20281
20282fi
20283if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20284
20285cat >>confdefs.h <<\_ACEOF
20286#define HAVE_GNU_EXT_HASH_MAP
20287_ACEOF
20288
20289fi
20290
20291echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20292echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20293if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295else
20296
20297
20298
20299 ac_ext=cc
20300ac_cpp='$CXXCPP $CPPFLAGS'
20301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20304
20305 cat >conftest.$ac_ext <<_ACEOF
20306#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020312#include <ext/hash_set>
20313#ifdef HAVE_NAMESPACES
20314using namespace std;
20315#endif
John Criswell7a73b802003-06-30 21:59:07 +000020316int
20317main ()
20318{
20319hash_set<int> t; return 0;
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext
20325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_cv_cxx_have_ext_hash_set=std
20337else
20338 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020339sed 's/^/| /' conftest.$ac_ext >&5
20340
John Criswell7a73b802003-06-30 21:59:07 +000020341ac_cv_cxx_have_ext_hash_set=no
20342fi
20343rm -f conftest.$ac_objext conftest.$ac_ext
20344 cat >conftest.$ac_ext <<_ACEOF
20345#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020351#include <ext/hash_set>
20352#ifdef HAVE_NAMESPACES
20353using namespace __gnu_cxx;
20354#endif
John Criswell7a73b802003-06-30 21:59:07 +000020355int
20356main ()
20357{
20358hash_set<int> t; return 0;
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest.$ac_objext
20364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
20375 ac_cv_cxx_have_ext_hash_set=gnu
20376else
20377 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020378sed 's/^/| /' conftest.$ac_ext >&5
20379
John Criswell7a73b802003-06-30 21:59:07 +000020380ac_cv_cxx_have_ext_hash_set=no
20381fi
20382rm -f conftest.$ac_objext conftest.$ac_ext
20383 ac_ext=c
20384ac_cpp='$CPP $CPPFLAGS'
20385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387ac_compiler_gnu=$ac_cv_c_compiler_gnu
20388
20389
20390fi
20391echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20392echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20393if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20394
20395cat >>confdefs.h <<\_ACEOF
20396#define HAVE_STD_EXT_HASH_SET
20397_ACEOF
20398
20399fi
20400if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20401
20402cat >>confdefs.h <<\_ACEOF
20403#define HAVE_GNU_EXT_HASH_SET
20404_ACEOF
20405
20406fi
20407
20408echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20409echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20410if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412else
20413
20414
20415
20416 ac_ext=cc
20417ac_cpp='$CXXCPP $CPPFLAGS'
20418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20421
20422 cat >conftest.$ac_ext <<_ACEOF
20423#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020424/* confdefs.h. */
20425_ACEOF
20426cat confdefs.h >>conftest.$ac_ext
20427cat >>conftest.$ac_ext <<_ACEOF
20428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020429#include <ext/slist>
20430#ifdef HAVE_NAMESPACES
20431using namespace std;
20432#endif
John Criswell7a73b802003-06-30 21:59:07 +000020433int
20434main ()
20435{
20436slist<int> s; return 0;
20437 ;
20438 return 0;
20439}
20440_ACEOF
20441rm -f conftest.$ac_objext
20442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20443 (eval $ac_compile) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_cxx_have_ext_slist=std
20454else
20455 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020456sed 's/^/| /' conftest.$ac_ext >&5
20457
John Criswell7a73b802003-06-30 21:59:07 +000020458ac_cv_cxx_have_ext_slist=no
20459fi
20460rm -f conftest.$ac_objext conftest.$ac_ext
20461 cat >conftest.$ac_ext <<_ACEOF
20462#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020468#include <ext/slist>
20469#ifdef HAVE_NAMESPACES
20470using namespace __gnu_cxx;
20471#endif
John Criswell7a73b802003-06-30 21:59:07 +000020472int
20473main ()
20474{
20475slist<int> s; return 0;
20476 ;
20477 return 0;
20478}
20479_ACEOF
20480rm -f conftest.$ac_objext
20481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482 (eval $ac_compile) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_cv_cxx_have_ext_slist=gnu
20493else
20494 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020495sed 's/^/| /' conftest.$ac_ext >&5
20496
John Criswell7a73b802003-06-30 21:59:07 +000020497ac_cv_cxx_have_ext_slist=no
20498fi
20499rm -f conftest.$ac_objext conftest.$ac_ext
20500
20501 ac_ext=c
20502ac_cpp='$CPP $CPPFLAGS'
20503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505ac_compiler_gnu=$ac_cv_c_compiler_gnu
20506
20507
20508fi
20509echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20510echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20511if test "$ac_cv_cxx_have_ext_slist" = std; then
20512
20513cat >>confdefs.h <<\_ACEOF
20514#define HAVE_EXT_SLIST std
20515_ACEOF
20516
20517fi
20518if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20519
20520cat >>confdefs.h <<\_ACEOF
20521#define HAVE_EXT_SLIST gnu
20522_ACEOF
20523
20524fi
20525
20526echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20527echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20528if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530else
20531
20532
20533
20534 ac_ext=cc
20535ac_cpp='$CXXCPP $CPPFLAGS'
20536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20539
20540 cat >conftest.$ac_ext <<_ACEOF
20541#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020547#include <iterator>
20548#ifdef HAVE_NAMESPACES
20549using namespace std;
20550#endif
John Criswell7a73b802003-06-30 21:59:07 +000020551int
20552main ()
20553{
20554iterator<int,int,int> t; return 0;
20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext
20560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -s conftest.$ac_objext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_cxx_have_std_iterator=yes
20572else
20573 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020574sed 's/^/| /' conftest.$ac_ext >&5
20575
John Criswell7a73b802003-06-30 21:59:07 +000020576ac_cv_cxx_have_std_iterator=no
20577fi
20578rm -f conftest.$ac_objext conftest.$ac_ext
20579 ac_ext=c
20580ac_cpp='$CPP $CPPFLAGS'
20581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584
20585
20586fi
20587echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20588echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20589if test "$ac_cv_cxx_have_std_iterator" = yes; then
20590
20591cat >>confdefs.h <<\_ACEOF
20592#define HAVE_STD_ITERATOR
20593_ACEOF
20594
20595fi
20596
20597echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20598echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20599if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
20602
20603
20604
20605 ac_ext=cc
20606ac_cpp='$CXXCPP $CPPFLAGS'
20607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20610
20611 cat >conftest.$ac_ext <<_ACEOF
20612#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020618#include <iterator>
20619#ifdef HAVE_NAMESPACES
20620using namespace std;
20621#endif
John Criswell7a73b802003-06-30 21:59:07 +000020622int
20623main ()
20624{
John Criswellc78022e2003-07-29 19:11:58 +000020625bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020626 ;
20627 return 0;
20628}
20629_ACEOF
20630rm -f conftest.$ac_objext
20631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632 (eval $ac_compile) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -s conftest.$ac_objext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_cv_cxx_have_bi_iterator=yes
20643else
20644 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020645sed 's/^/| /' conftest.$ac_ext >&5
20646
John Criswell7a73b802003-06-30 21:59:07 +000020647ac_cv_cxx_have_bi_iterator=no
20648fi
20649rm -f conftest.$ac_objext conftest.$ac_ext
20650 ac_ext=c
20651ac_cpp='$CPP $CPPFLAGS'
20652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
20656
20657fi
20658echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20659echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20660if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20661
20662cat >>confdefs.h <<\_ACEOF
20663#define HAVE_BI_ITERATOR
20664_ACEOF
20665
20666fi
20667
20668echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20669echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20670if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673
20674
20675
20676 ac_ext=cc
20677ac_cpp='$CXXCPP $CPPFLAGS'
20678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682 cat >conftest.$ac_ext <<_ACEOF
20683#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020684/* confdefs.h. */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020689#include <iterator>
20690#ifdef HAVE_NAMESPACES
20691using namespace std;
20692#endif
John Criswell7a73b802003-06-30 21:59:07 +000020693int
20694main ()
20695{
John Criswellc78022e2003-07-29 19:11:58 +000020696forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703 (eval $ac_compile) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_cxx_have_fwd_iterator=yes
20714else
20715 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020716sed 's/^/| /' conftest.$ac_ext >&5
20717
John Criswell7a73b802003-06-30 21:59:07 +000020718ac_cv_cxx_have_fwd_iterator=no
20719fi
20720rm -f conftest.$ac_objext conftest.$ac_ext
20721 ac_ext=c
20722ac_cpp='$CPP $CPPFLAGS'
20723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725ac_compiler_gnu=$ac_cv_c_compiler_gnu
20726
20727
20728fi
20729echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20730echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20731if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20732
20733cat >>confdefs.h <<\_ACEOF
20734#define HAVE_FWD_ITERATOR
20735_ACEOF
20736
20737fi
20738
20739
20740# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20741# for constant arguments. Useless!
20742echo "$as_me:$LINENO: checking for working alloca.h" >&5
20743echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20744if test "${ac_cv_working_alloca_h+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 cat >conftest.$ac_ext <<_ACEOF
20748#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020749/* confdefs.h. */
20750_ACEOF
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020754#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020755int
20756main ()
20757{
20758char *p = (char *) alloca (2 * sizeof (int));
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext conftest$ac_exeext
20764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_cv_working_alloca_h=yes
20776else
20777 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020778sed 's/^/| /' conftest.$ac_ext >&5
20779
John Criswell7a73b802003-06-30 21:59:07 +000020780ac_cv_working_alloca_h=no
20781fi
20782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20783fi
20784echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20785echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20786if test $ac_cv_working_alloca_h = yes; then
20787
20788cat >>confdefs.h <<\_ACEOF
20789#define HAVE_ALLOCA_H 1
20790_ACEOF
20791
20792fi
20793
20794echo "$as_me:$LINENO: checking for alloca" >&5
20795echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20796if test "${ac_cv_func_alloca_works+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798else
20799 cat >conftest.$ac_ext <<_ACEOF
20800#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020806#ifdef __GNUC__
20807# define alloca __builtin_alloca
20808#else
20809# ifdef _MSC_VER
20810# include <malloc.h>
20811# define alloca _alloca
20812# else
20813# if HAVE_ALLOCA_H
20814# include <alloca.h>
20815# else
20816# ifdef _AIX
20817 #pragma alloca
20818# else
20819# ifndef alloca /* predefined by HP cc +Olibcalls */
20820char *alloca ();
20821# endif
20822# endif
20823# endif
20824# endif
20825#endif
20826
John Criswell7a73b802003-06-30 21:59:07 +000020827int
20828main ()
20829{
20830char *p = (char *) alloca (1);
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext conftest$ac_exeext
20836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837 (eval $ac_link) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
20841 { ac_try='test -s conftest$ac_exeext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_cv_func_alloca_works=yes
20848else
20849 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020850sed 's/^/| /' conftest.$ac_ext >&5
20851
John Criswell7a73b802003-06-30 21:59:07 +000020852ac_cv_func_alloca_works=no
20853fi
20854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20855fi
20856echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20857echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20858
20859if test $ac_cv_func_alloca_works = yes; then
20860
20861cat >>confdefs.h <<\_ACEOF
20862#define HAVE_ALLOCA 1
20863_ACEOF
20864
20865else
20866 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20867# that cause trouble. Some versions do not even contain alloca or
20868# contain a buggy version. If you still want to use their alloca,
20869# use ar to extract alloca.o from them instead of compiling alloca.c.
20870
20871ALLOCA=alloca.$ac_objext
20872
20873cat >>confdefs.h <<\_ACEOF
20874#define C_ALLOCA 1
20875_ACEOF
20876
20877
20878echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20879echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20880if test "${ac_cv_os_cray+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20882else
20883 cat >conftest.$ac_ext <<_ACEOF
20884#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020885/* confdefs.h. */
20886_ACEOF
20887cat confdefs.h >>conftest.$ac_ext
20888cat >>conftest.$ac_ext <<_ACEOF
20889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020890#if defined(CRAY) && ! defined(CRAY2)
20891webecray
20892#else
20893wenotbecray
20894#endif
20895
20896_ACEOF
20897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020898 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020899 ac_cv_os_cray=yes
20900else
20901 ac_cv_os_cray=no
20902fi
20903rm -f conftest*
20904
20905fi
20906echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20907echo "${ECHO_T}$ac_cv_os_cray" >&6
20908if test $ac_cv_os_cray = yes; then
20909 for ac_func in _getb67 GETB67 getb67; do
20910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911echo "$as_me:$LINENO: checking for $ac_func" >&5
20912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20913if eval "test \"\${$as_ac_var+set}\" = set"; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915else
20916 cat >conftest.$ac_ext <<_ACEOF
20917#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020923/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000020924 which can conflict with char $ac_func (); below.
20925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20926 <limits.h> exists even on freestanding compilers. */
20927#ifdef __STDC__
20928# include <limits.h>
20929#else
20930# include <assert.h>
20931#endif
John Criswell7a73b802003-06-30 21:59:07 +000020932/* Override any gcc2 internal prototype to avoid an error. */
20933#ifdef __cplusplus
20934extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000020935{
John Criswell7a73b802003-06-30 21:59:07 +000020936#endif
20937/* We use char because int might match the return type of a gcc2
20938 builtin and then its argument prototype would still apply. */
20939char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020940/* The GNU C library defines this for functions which it implements
20941 to always fail with ENOSYS. Some functions are actually named
20942 something starting with __ and the normal name is an alias. */
20943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20944choke me
20945#else
John Criswell392aaa32003-07-22 19:18:09 +000020946char (*f) () = $ac_func;
20947#endif
20948#ifdef __cplusplus
20949}
John Criswell7a73b802003-06-30 21:59:07 +000020950#endif
20951
John Criswell392aaa32003-07-22 19:18:09 +000020952int
20953main ()
20954{
20955return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020956 ;
20957 return 0;
20958}
20959_ACEOF
20960rm -f conftest.$ac_objext conftest$ac_exeext
20961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20962 (eval $ac_link) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 eval "$as_ac_var=yes"
20973else
20974 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020975sed 's/^/| /' conftest.$ac_ext >&5
20976
John Criswell7a73b802003-06-30 21:59:07 +000020977eval "$as_ac_var=no"
20978fi
20979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20980fi
20981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20983if test `eval echo '${'$as_ac_var'}'` = yes; then
20984
20985cat >>confdefs.h <<_ACEOF
20986#define CRAY_STACKSEG_END $ac_func
20987_ACEOF
20988
20989 break
20990fi
20991
20992 done
20993fi
20994
20995echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20996echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20997if test "${ac_cv_c_stack_direction+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999else
21000 if test "$cross_compiling" = yes; then
21001 ac_cv_c_stack_direction=0
21002else
21003 cat >conftest.$ac_ext <<_ACEOF
21004#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021005/* confdefs.h. */
21006_ACEOF
21007cat confdefs.h >>conftest.$ac_ext
21008cat >>conftest.$ac_ext <<_ACEOF
21009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021010int
21011find_stack_direction ()
21012{
21013 static char *addr = 0;
21014 auto char dummy;
21015 if (addr == 0)
21016 {
21017 addr = &dummy;
21018 return find_stack_direction ();
21019 }
21020 else
21021 return (&dummy > addr) ? 1 : -1;
21022}
21023
21024int
21025main ()
21026{
21027 exit (find_stack_direction () < 0);
21028}
21029_ACEOF
21030rm -f conftest$ac_exeext
21031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032 (eval $ac_link) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_c_stack_direction=1
21042else
21043 echo "$as_me: program exited with status $ac_status" >&5
21044echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021045sed 's/^/| /' conftest.$ac_ext >&5
21046
John Criswell7a73b802003-06-30 21:59:07 +000021047( exit $ac_status )
21048ac_cv_c_stack_direction=-1
21049fi
John Criswell392aaa32003-07-22 19:18:09 +000021050rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021051fi
21052fi
21053echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21054echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21055
21056cat >>confdefs.h <<_ACEOF
21057#define STACK_DIRECTION $ac_cv_c_stack_direction
21058_ACEOF
21059
21060
21061fi
21062
21063if test $ac_cv_c_compiler_gnu = yes; then
21064 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21065echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21066if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069 ac_pattern="Autoconf.*'x'"
21070 cat >conftest.$ac_ext <<_ACEOF
21071#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021072/* confdefs.h. */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021077#include <sgtty.h>
21078Autoconf TIOCGETP
21079_ACEOF
21080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000021081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021082 ac_cv_prog_gcc_traditional=yes
21083else
21084 ac_cv_prog_gcc_traditional=no
21085fi
21086rm -f conftest*
21087
21088
21089 if test $ac_cv_prog_gcc_traditional = no; then
21090 cat >conftest.$ac_ext <<_ACEOF
21091#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021092/* confdefs.h. */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021097#include <termio.h>
21098Autoconf TCGETA
21099_ACEOF
21100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000021101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021102 ac_cv_prog_gcc_traditional=yes
21103fi
21104rm -f conftest*
21105
21106 fi
21107fi
21108echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21109echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21110 if test $ac_cv_prog_gcc_traditional = yes; then
21111 CC="$CC -traditional"
21112 fi
21113fi
21114
21115echo "$as_me:$LINENO: checking for working memcmp" >&5
21116echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21117if test "${ac_cv_func_memcmp_working+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119else
21120 if test "$cross_compiling" = yes; then
21121 ac_cv_func_memcmp_working=no
21122else
21123 cat >conftest.$ac_ext <<_ACEOF
21124#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021130
John Criswell7a73b802003-06-30 21:59:07 +000021131int
21132main ()
21133{
21134
21135 /* Some versions of memcmp are not 8-bit clean. */
21136 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21137 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21138 exit (1);
21139
21140 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21141 or more and with at least one buffer not starting on a 4-byte boundary.
21142 William Lewis provided this test program. */
21143 {
21144 char foo[21];
21145 char bar[21];
21146 int i;
21147 for (i = 0; i < 4; i++)
21148 {
21149 char *a = foo + i;
21150 char *b = bar + i;
21151 strcpy (a, "--------01111111");
21152 strcpy (b, "--------10000000");
21153 if (memcmp (a, b, 16) >= 0)
21154 exit (1);
21155 }
21156 exit (0);
21157 }
21158
21159 ;
21160 return 0;
21161}
21162_ACEOF
21163rm -f conftest$ac_exeext
21164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>&5
21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_func_memcmp_working=yes
21175else
21176 echo "$as_me: program exited with status $ac_status" >&5
21177echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021178sed 's/^/| /' conftest.$ac_ext >&5
21179
John Criswell7a73b802003-06-30 21:59:07 +000021180( exit $ac_status )
21181ac_cv_func_memcmp_working=no
21182fi
John Criswell392aaa32003-07-22 19:18:09 +000021183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021184fi
21185fi
21186echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21187echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21188test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21189
21190
21191
21192for ac_header in stdlib.h unistd.h
21193do
21194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195if eval "test \"\${$as_ac_Header+set}\" = set"; then
21196 echo "$as_me:$LINENO: checking for $ac_header" >&5
21197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21198if eval "test \"\${$as_ac_Header+set}\" = set"; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200fi
21201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21203else
21204 # Is the header compilable?
21205echo "$as_me:$LINENO: checking $ac_header usability" >&5
21206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21207cat >conftest.$ac_ext <<_ACEOF
21208#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021214$ac_includes_default
21215#include <$ac_header>
21216_ACEOF
21217rm -f conftest.$ac_objext
21218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219 (eval $ac_compile) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_header_compiler=yes
21230else
21231 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021232sed 's/^/| /' conftest.$ac_ext >&5
21233
John Criswell7a73b802003-06-30 21:59:07 +000021234ac_header_compiler=no
21235fi
21236rm -f conftest.$ac_objext conftest.$ac_ext
21237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238echo "${ECHO_T}$ac_header_compiler" >&6
21239
21240# Is the header present?
21241echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21243cat >conftest.$ac_ext <<_ACEOF
21244#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021245/* confdefs.h. */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021250#include <$ac_header>
21251_ACEOF
21252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21254 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000021255 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } >/dev/null; then
21260 if test -s conftest.err; then
21261 ac_cpp_err=$ac_c_preproc_warn_flag
21262 else
21263 ac_cpp_err=
21264 fi
21265else
21266 ac_cpp_err=yes
21267fi
21268if test -z "$ac_cpp_err"; then
21269 ac_header_preproc=yes
21270else
21271 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021272sed 's/^/| /' conftest.$ac_ext >&5
21273
John Criswell7a73b802003-06-30 21:59:07 +000021274 ac_header_preproc=no
21275fi
21276rm -f conftest.err conftest.$ac_ext
21277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278echo "${ECHO_T}$ac_header_preproc" >&6
21279
21280# So? What about this header?
21281case $ac_header_compiler:$ac_header_preproc in
21282 yes:no )
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21287 (
21288 cat <<\_ASBOX
21289## ------------------------------------ ##
21290## Report this to bug-autoconf@gnu.org. ##
21291## ------------------------------------ ##
21292_ASBOX
21293 ) |
21294 sed "s/^/$as_me: WARNING: /" >&2
21295 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021296 no:yes )
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21303 (
21304 cat <<\_ASBOX
21305## ------------------------------------ ##
21306## Report this to bug-autoconf@gnu.org. ##
21307## ------------------------------------ ##
21308_ASBOX
21309 ) |
21310 sed "s/^/$as_me: WARNING: /" >&2
21311 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021312esac
21313echo "$as_me:$LINENO: checking for $ac_header" >&5
21314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21315if eval "test \"\${$as_ac_Header+set}\" = set"; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21317else
21318 eval "$as_ac_Header=$ac_header_preproc"
21319fi
21320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21322
21323fi
21324if test `eval echo '${'$as_ac_Header'}'` = yes; then
21325 cat >>confdefs.h <<_ACEOF
21326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21327_ACEOF
21328
21329fi
21330
21331done
21332
21333
21334for ac_func in getpagesize
21335do
21336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21337echo "$as_me:$LINENO: checking for $ac_func" >&5
21338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21339if eval "test \"\${$as_ac_var+set}\" = set"; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341else
21342 cat >conftest.$ac_ext <<_ACEOF
21343#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021344/* confdefs.h. */
21345_ACEOF
21346cat confdefs.h >>conftest.$ac_ext
21347cat >>conftest.$ac_ext <<_ACEOF
21348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021349/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021350 which can conflict with char $ac_func (); below.
21351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21352 <limits.h> exists even on freestanding compilers. */
21353#ifdef __STDC__
21354# include <limits.h>
21355#else
21356# include <assert.h>
21357#endif
John Criswell7a73b802003-06-30 21:59:07 +000021358/* Override any gcc2 internal prototype to avoid an error. */
21359#ifdef __cplusplus
21360extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021361{
John Criswell7a73b802003-06-30 21:59:07 +000021362#endif
21363/* We use char because int might match the return type of a gcc2
21364 builtin and then its argument prototype would still apply. */
21365char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021366/* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
21369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21370choke me
21371#else
John Criswell392aaa32003-07-22 19:18:09 +000021372char (*f) () = $ac_func;
21373#endif
21374#ifdef __cplusplus
21375}
John Criswell7a73b802003-06-30 21:59:07 +000021376#endif
21377
John Criswell392aaa32003-07-22 19:18:09 +000021378int
21379main ()
21380{
21381return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021382 ;
21383 return 0;
21384}
21385_ACEOF
21386rm -f conftest.$ac_objext conftest$ac_exeext
21387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21388 (eval $ac_link) 2>&5
21389 ac_status=$?
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
21392 { ac_try='test -s conftest$ac_exeext'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; }; then
21398 eval "$as_ac_var=yes"
21399else
21400 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021401sed 's/^/| /' conftest.$ac_ext >&5
21402
John Criswell7a73b802003-06-30 21:59:07 +000021403eval "$as_ac_var=no"
21404fi
21405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21406fi
21407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21409if test `eval echo '${'$as_ac_var'}'` = yes; then
21410 cat >>confdefs.h <<_ACEOF
21411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21412_ACEOF
21413
21414fi
21415done
21416
21417echo "$as_me:$LINENO: checking for working mmap" >&5
21418echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21419if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421else
21422 if test "$cross_compiling" = yes; then
21423 ac_cv_func_mmap_fixed_mapped=no
21424else
21425 cat >conftest.$ac_ext <<_ACEOF
21426#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021427/* confdefs.h. */
21428_ACEOF
21429cat confdefs.h >>conftest.$ac_ext
21430cat >>conftest.$ac_ext <<_ACEOF
21431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021432$ac_includes_default
21433/* malloc might have been renamed as rpl_malloc. */
21434#undef malloc
21435
21436/* Thanks to Mike Haertel and Jim Avera for this test.
21437 Here is a matrix of mmap possibilities:
21438 mmap private not fixed
21439 mmap private fixed at somewhere currently unmapped
21440 mmap private fixed at somewhere already mapped
21441 mmap shared not fixed
21442 mmap shared fixed at somewhere currently unmapped
21443 mmap shared fixed at somewhere already mapped
21444 For private mappings, we should verify that changes cannot be read()
21445 back from the file, nor mmap's back from the file at a different
21446 address. (There have been systems where private was not correctly
21447 implemented like the infamous i386 svr4.0, and systems where the
21448 VM page cache was not coherent with the file system buffer cache
21449 like early versions of FreeBSD and possibly contemporary NetBSD.)
21450 For shared mappings, we should conversely verify that changes get
21451 propagated back to all the places they're supposed to be.
21452
21453 Grep wants private fixed already mapped.
21454 The main things grep needs to know about mmap are:
21455 * does it exist and is it safe to write into the mmap'd area
21456 * how to use it (BSD variants) */
21457
21458#include <fcntl.h>
21459#include <sys/mman.h>
21460
21461#if !STDC_HEADERS && !HAVE_STDLIB_H
21462char *malloc ();
21463#endif
21464
21465/* This mess was copied from the GNU getpagesize.h. */
21466#if !HAVE_GETPAGESIZE
21467/* Assume that all systems that can run configure have sys/param.h. */
21468# if !HAVE_SYS_PARAM_H
21469# define HAVE_SYS_PARAM_H 1
21470# endif
21471
21472# ifdef _SC_PAGESIZE
21473# define getpagesize() sysconf(_SC_PAGESIZE)
21474# else /* no _SC_PAGESIZE */
21475# if HAVE_SYS_PARAM_H
21476# include <sys/param.h>
21477# ifdef EXEC_PAGESIZE
21478# define getpagesize() EXEC_PAGESIZE
21479# else /* no EXEC_PAGESIZE */
21480# ifdef NBPG
21481# define getpagesize() NBPG * CLSIZE
21482# ifndef CLSIZE
21483# define CLSIZE 1
21484# endif /* no CLSIZE */
21485# else /* no NBPG */
21486# ifdef NBPC
21487# define getpagesize() NBPC
21488# else /* no NBPC */
21489# ifdef PAGESIZE
21490# define getpagesize() PAGESIZE
21491# endif /* PAGESIZE */
21492# endif /* no NBPC */
21493# endif /* no NBPG */
21494# endif /* no EXEC_PAGESIZE */
21495# else /* no HAVE_SYS_PARAM_H */
21496# define getpagesize() 8192 /* punt totally */
21497# endif /* no HAVE_SYS_PARAM_H */
21498# endif /* no _SC_PAGESIZE */
21499
21500#endif /* no HAVE_GETPAGESIZE */
21501
21502int
21503main ()
21504{
21505 char *data, *data2, *data3;
21506 int i, pagesize;
21507 int fd;
21508
21509 pagesize = getpagesize ();
21510
21511 /* First, make a file with some known garbage in it. */
21512 data = (char *) malloc (pagesize);
21513 if (!data)
21514 exit (1);
21515 for (i = 0; i < pagesize; ++i)
21516 *(data + i) = rand ();
21517 umask (0);
21518 fd = creat ("conftest.mmap", 0600);
21519 if (fd < 0)
21520 exit (1);
21521 if (write (fd, data, pagesize) != pagesize)
21522 exit (1);
21523 close (fd);
21524
21525 /* Next, try to mmap the file at a fixed address which already has
21526 something else allocated at it. If we can, also make sure that
21527 we see the same garbage. */
21528 fd = open ("conftest.mmap", O_RDWR);
21529 if (fd < 0)
21530 exit (1);
21531 data2 = (char *) malloc (2 * pagesize);
21532 if (!data2)
21533 exit (1);
21534 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21535 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21537 exit (1);
21538 for (i = 0; i < pagesize; ++i)
21539 if (*(data + i) != *(data2 + i))
21540 exit (1);
21541
21542 /* Finally, make sure that changes to the mapped area do not
21543 percolate back to the file as seen by read(). (This is a bug on
21544 some variants of i386 svr4.0.) */
21545 for (i = 0; i < pagesize; ++i)
21546 *(data2 + i) = *(data2 + i) + 1;
21547 data3 = (char *) malloc (pagesize);
21548 if (!data3)
21549 exit (1);
21550 if (read (fd, data3, pagesize) != pagesize)
21551 exit (1);
21552 for (i = 0; i < pagesize; ++i)
21553 if (*(data + i) != *(data3 + i))
21554 exit (1);
21555 close (fd);
21556 exit (0);
21557}
21558_ACEOF
21559rm -f conftest$ac_exeext
21560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21561 (eval $ac_link) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 ac_cv_func_mmap_fixed_mapped=yes
21571else
21572 echo "$as_me: program exited with status $ac_status" >&5
21573echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021574sed 's/^/| /' conftest.$ac_ext >&5
21575
John Criswell7a73b802003-06-30 21:59:07 +000021576( exit $ac_status )
21577ac_cv_func_mmap_fixed_mapped=no
21578fi
John Criswell392aaa32003-07-22 19:18:09 +000021579rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021580fi
21581fi
21582echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21583echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21584if test $ac_cv_func_mmap_fixed_mapped = yes; then
21585
21586cat >>confdefs.h <<\_ACEOF
21587#define HAVE_MMAP 1
21588_ACEOF
21589
21590fi
21591rm -f conftest.mmap
21592
21593echo "$as_me:$LINENO: checking for mmap of files" >&5
21594echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21595if test "${ac_cv_func_mmap_file+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21597else
21598
21599
21600 ac_ext=c
21601ac_cpp='$CPP $CPPFLAGS'
21602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21604ac_compiler_gnu=$ac_cv_c_compiler_gnu
21605
21606 if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000021607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21608See \`config.log' for more details." >&5
21609echo "$as_me: error: cannot run test program while cross compiling
21610See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021611 { (exit 1); exit 1; }; }
21612else
21613 cat >conftest.$ac_ext <<_ACEOF
21614#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021620
21621#ifdef HAVE_SYS_MMAN_H
21622#include <sys/mman.h>
21623#endif
21624
21625#ifdef HAVE_SYS_TYPES_H
21626#include <sys/types.h>
21627#endif
21628
21629#ifdef HAVE_FCNTL_H
21630#include <fcntl.h>
21631#endif
21632
21633 int fd;
21634 int main () {
21635 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21636_ACEOF
21637rm -f conftest$ac_exeext
21638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639 (eval $ac_link) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_func_mmap_file=yes
21649else
21650 echo "$as_me: program exited with status $ac_status" >&5
21651echo "$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 +000021654( exit $ac_status )
21655ac_cv_func_mmap_file=no
21656fi
John Criswell392aaa32003-07-22 19:18:09 +000021657rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021658fi
21659 ac_ext=c
21660ac_cpp='$CPP $CPPFLAGS'
21661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664
21665
21666fi
21667echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21668echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21669if test "$ac_cv_func_mmap_file" = yes; then
21670 cat >>confdefs.h <<\_ACEOF
21671#define HAVE_MMAP_FILE 1
21672_ACEOF
21673
21674 MMAP_FILE=yes
21675
21676fi
21677
21678if test ${ac_cv_func_mmap_file} = "no"
21679then
21680 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21681echo "$as_me: error: mmap() of files required but not found" >&2;}
21682 { (exit 1); exit 1; }; }
21683fi
21684echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21685echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21686if test "${ac_cv_header_mmap_anon+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688else
21689
21690
21691 ac_ext=c
21692ac_cpp='$CPP $CPPFLAGS'
21693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21695ac_compiler_gnu=$ac_cv_c_compiler_gnu
21696
21697 cat >conftest.$ac_ext <<_ACEOF
21698#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021704#include <sys/mman.h>
21705 #include <unistd.h>
21706 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021707int
21708main ()
21709{
21710mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21711 ;
21712 return 0;
21713}
21714_ACEOF
21715rm -f conftest.$ac_objext
21716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -s conftest.$ac_objext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_header_mmap_anon=yes
21728else
21729 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021730sed 's/^/| /' conftest.$ac_ext >&5
21731
John Criswell7a73b802003-06-30 21:59:07 +000021732ac_cv_header_mmap_anon=no
21733fi
21734rm -f conftest.$ac_objext conftest.$ac_ext
21735 ac_ext=c
21736ac_cpp='$CPP $CPPFLAGS'
21737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21739ac_compiler_gnu=$ac_cv_c_compiler_gnu
21740
21741
21742fi
21743echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21744echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21745if test "$ac_cv_header_mmap_anon" = yes; then
21746 cat >>confdefs.h <<\_ACEOF
21747#define HAVE_MMAP_ANONYMOUS 1
21748_ACEOF
21749
21750fi
21751
21752echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21753echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21754if test "${ac_cv_type_signal+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756else
21757 cat >conftest.$ac_ext <<_ACEOF
21758#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021764#include <sys/types.h>
21765#include <signal.h>
21766#ifdef signal
21767# undef signal
21768#endif
21769#ifdef __cplusplus
21770extern "C" void (*signal (int, void (*)(int)))(int);
21771#else
21772void (*signal ()) ();
21773#endif
21774
John Criswell7a73b802003-06-30 21:59:07 +000021775int
21776main ()
21777{
21778int i;
21779 ;
21780 return 0;
21781}
21782_ACEOF
21783rm -f conftest.$ac_objext
21784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
21789 { ac_try='test -s conftest.$ac_objext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_type_signal=void
21796else
21797 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021798sed 's/^/| /' conftest.$ac_ext >&5
21799
John Criswell7a73b802003-06-30 21:59:07 +000021800ac_cv_type_signal=int
21801fi
21802rm -f conftest.$ac_objext conftest.$ac_ext
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21805echo "${ECHO_T}$ac_cv_type_signal" >&6
21806
21807cat >>confdefs.h <<_ACEOF
21808#define RETSIGTYPE $ac_cv_type_signal
21809_ACEOF
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21822do
21823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824echo "$as_me:$LINENO: checking for $ac_func" >&5
21825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21826if eval "test \"\${$as_ac_var+set}\" = set"; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828else
21829 cat >conftest.$ac_ext <<_ACEOF
21830#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021836/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021837 which can conflict with char $ac_func (); below.
21838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21839 <limits.h> exists even on freestanding compilers. */
21840#ifdef __STDC__
21841# include <limits.h>
21842#else
21843# include <assert.h>
21844#endif
John Criswell7a73b802003-06-30 21:59:07 +000021845/* Override any gcc2 internal prototype to avoid an error. */
21846#ifdef __cplusplus
21847extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021848{
John Criswell7a73b802003-06-30 21:59:07 +000021849#endif
21850/* We use char because int might match the return type of a gcc2
21851 builtin and then its argument prototype would still apply. */
21852char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021853/* The GNU C library defines this for functions which it implements
21854 to always fail with ENOSYS. Some functions are actually named
21855 something starting with __ and the normal name is an alias. */
21856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21857choke me
21858#else
John Criswell392aaa32003-07-22 19:18:09 +000021859char (*f) () = $ac_func;
21860#endif
21861#ifdef __cplusplus
21862}
John Criswell7a73b802003-06-30 21:59:07 +000021863#endif
21864
John Criswell392aaa32003-07-22 19:18:09 +000021865int
21866main ()
21867{
21868return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext conftest$ac_exeext
21874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875 (eval $ac_link) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -s conftest$ac_exeext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 eval "$as_ac_var=yes"
21886else
21887 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021888sed 's/^/| /' conftest.$ac_ext >&5
21889
John Criswell7a73b802003-06-30 21:59:07 +000021890eval "$as_ac_var=no"
21891fi
21892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21893fi
21894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21896if test `eval echo '${'$as_ac_var'}'` = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21899_ACEOF
21900
21901fi
21902done
21903
21904
21905
21906echo "$as_me:$LINENO: checking for mmap" >&5
21907echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21908if test "${ac_cv_func_mmap+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910else
21911 cat >conftest.$ac_ext <<_ACEOF
21912#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021913/* confdefs.h. */
21914_ACEOF
21915cat confdefs.h >>conftest.$ac_ext
21916cat >>conftest.$ac_ext <<_ACEOF
21917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021918/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021919 which can conflict with char mmap (); below.
21920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21921 <limits.h> exists even on freestanding compilers. */
21922#ifdef __STDC__
21923# include <limits.h>
21924#else
21925# include <assert.h>
21926#endif
John Criswell7a73b802003-06-30 21:59:07 +000021927/* Override any gcc2 internal prototype to avoid an error. */
21928#ifdef __cplusplus
21929extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021930{
John Criswell7a73b802003-06-30 21:59:07 +000021931#endif
21932/* We use char because int might match the return type of a gcc2
21933 builtin and then its argument prototype would still apply. */
21934char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000021935/* The GNU C library defines this for functions which it implements
21936 to always fail with ENOSYS. Some functions are actually named
21937 something starting with __ and the normal name is an alias. */
21938#if defined (__stub_mmap) || defined (__stub___mmap)
21939choke me
21940#else
John Criswell392aaa32003-07-22 19:18:09 +000021941char (*f) () = mmap;
21942#endif
21943#ifdef __cplusplus
21944}
John Criswell7a73b802003-06-30 21:59:07 +000021945#endif
21946
John Criswell392aaa32003-07-22 19:18:09 +000021947int
21948main ()
21949{
21950return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000021951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext conftest$ac_exeext
21956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_func_mmap=yes
21968else
21969 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021970sed 's/^/| /' conftest.$ac_ext >&5
21971
John Criswell7a73b802003-06-30 21:59:07 +000021972ac_cv_func_mmap=no
21973fi
21974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21975fi
21976echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21977echo "${ECHO_T}$ac_cv_func_mmap" >&6
21978if test $ac_cv_func_mmap = yes; then
21979 :
21980else
21981 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21982echo "$as_me: error: Function mmap() required but not found" >&2;}
21983 { (exit 1); exit 1; }; }
21984fi
21985
21986echo "$as_me:$LINENO: checking for mprotect" >&5
21987echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21988if test "${ac_cv_func_mprotect+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
21991 cat >conftest.$ac_ext <<_ACEOF
21992#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021993/* confdefs.h. */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021998/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021999 which can conflict with char mprotect (); below.
22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001 <limits.h> exists even on freestanding compilers. */
22002#ifdef __STDC__
22003# include <limits.h>
22004#else
22005# include <assert.h>
22006#endif
John Criswell7a73b802003-06-30 21:59:07 +000022007/* Override any gcc2 internal prototype to avoid an error. */
22008#ifdef __cplusplus
22009extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000022010{
John Criswell7a73b802003-06-30 21:59:07 +000022011#endif
22012/* We use char because int might match the return type of a gcc2
22013 builtin and then its argument prototype would still apply. */
22014char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022015/* The GNU C library defines this for functions which it implements
22016 to always fail with ENOSYS. Some functions are actually named
22017 something starting with __ and the normal name is an alias. */
22018#if defined (__stub_mprotect) || defined (__stub___mprotect)
22019choke me
22020#else
John Criswell392aaa32003-07-22 19:18:09 +000022021char (*f) () = mprotect;
22022#endif
22023#ifdef __cplusplus
22024}
John Criswell7a73b802003-06-30 21:59:07 +000022025#endif
22026
John Criswell392aaa32003-07-22 19:18:09 +000022027int
22028main ()
22029{
22030return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022031 ;
22032 return 0;
22033}
22034_ACEOF
22035rm -f conftest.$ac_objext conftest$ac_exeext
22036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037 (eval $ac_link) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_func_mprotect=yes
22048else
22049 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022050sed 's/^/| /' conftest.$ac_ext >&5
22051
John Criswell7a73b802003-06-30 21:59:07 +000022052ac_cv_func_mprotect=no
22053fi
22054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22055fi
22056echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22057echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22058if test $ac_cv_func_mprotect = yes; then
22059 :
22060else
22061 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22062echo "$as_me: error: Function mprotect() required but not found" >&2;}
22063 { (exit 1); exit 1; }; }
22064fi
22065
22066
John Criswellb13092b2003-07-22 21:00:24 +000022067
John Criswell7a73b802003-06-30 21:59:07 +000022068# Check whether --enable-purify or --disable-purify was given.
22069if test "${enable_purify+set}" = set; then
22070 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022071
22072else
John Criswellb13092b2003-07-22 21:00:24 +000022073 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022074fi;
John Criswellb13092b2003-07-22 21:00:24 +000022075if test ${enableval} = "no"
22076then
22077 ENABLE_PURIFY=
22078
22079else
22080 ENABLE_PURIFY=ENABLE_PURIFY=1
22081
22082fi
22083
John Criswell7a73b802003-06-30 21:59:07 +000022084# Check whether --enable-optimized or --disable-optimized was given.
22085if test "${enable_optimized+set}" = set; then
22086 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022087
22088else
John Criswellb13092b2003-07-22 21:00:24 +000022089 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022090fi;
John Criswellb13092b2003-07-22 21:00:24 +000022091if test ${enableval} = "no"
22092then
22093 ENABLE_OPTIMIZED=
22094
22095else
22096 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22097
22098fi
22099
John Criswell7a73b802003-06-30 21:59:07 +000022100# Check whether --enable-spec or --disable-spec was given.
22101if test "${enable_spec+set}" = set; then
22102 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022103
22104else
John Criswellb13092b2003-07-22 21:00:24 +000022105 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022106fi;
John Criswellb13092b2003-07-22 21:00:24 +000022107if test ${enableval} = "no"
22108then
22109 USE_SPEC=
22110
22111else
22112 USE_SPEC=USE_SPEC=1
22113
22114fi
22115
John Criswell7a73b802003-06-30 21:59:07 +000022116# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22117if test "${enable_precompiled_bytecode+set}" = set; then
22118 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022119
22120else
John Criswellb13092b2003-07-22 21:00:24 +000022121 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022122fi;
John Criswellb13092b2003-07-22 21:00:24 +000022123if test ${enableval} = "no"
22124then
22125 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022126
John Criswellb13092b2003-07-22 21:00:24 +000022127else
22128 UPB=USE_PRECOMPILED_BYTECODE=1
22129
22130fi
John Criswellf02dbf02003-07-22 20:07:49 +000022131
22132
22133# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22134if test "${enable_llc_diffs+set}" = set; then
22135 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022136
22137else
John Criswellb13092b2003-07-22 21:00:24 +000022138 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022139fi;
John Criswellb13092b2003-07-22 21:00:24 +000022140if test ${enableval} = "no"
22141then
22142 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022143
John Criswellb13092b2003-07-22 21:00:24 +000022144else
22145 DISABLE_LLC_DIFFS=
22146
22147fi
22148
22149# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022150if test "${enable_jit+set}" = set; then
22151 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022152
22153else
John Criswellc78022e2003-07-29 19:11:58 +000022154 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022155fi;
John Criswellb13092b2003-07-22 21:00:24 +000022156
22157if test ${enableval} = "no"
22158then
22159 JIT=
22160
22161else
John Criswellc78022e2003-07-29 19:11:58 +000022162 case $target in
22163 *i*86*)
22164 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022165
John Criswellc78022e2003-07-29 19:11:58 +000022166 ;;
22167 *sparc*)
22168 JIT=TARGET_HAS_JIT=1
22169
22170 ;;
22171 *)
22172 JIT=
22173
22174 ;;
22175 esac
John Criswellb13092b2003-07-22 21:00:24 +000022176fi
John Criswell7a73b802003-06-30 21:59:07 +000022177
22178
John Criswellc78022e2003-07-29 19:11:58 +000022179
John Criswell7a73b802003-06-30 21:59:07 +000022180# Check whether --with-spec or --without-spec was given.
22181if test "${with_spec+set}" = set; then
22182 withval="$with_spec"
22183 SPEC_ROOT=$withval
22184
22185else
22186 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22187
22188fi;
22189
John Criswellc78022e2003-07-29 19:11:58 +000022190
John Criswell7a73b802003-06-30 21:59:07 +000022191# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22192if test "${with_llvmgccdir+set}" = set; then
22193 withval="$with_llvmgccdir"
22194 LLVMGCCDIR=$withval
22195
22196fi;
22197
John Criswellc78022e2003-07-29 19:11:58 +000022198
John Criswell7a73b802003-06-30 21:59:07 +000022199# Check whether --with-bcrepos or --without-bcrepos was given.
22200if test "${with_bcrepos+set}" = set; then
22201 withval="$with_bcrepos"
22202 BCR=$withval
22203
22204else
22205 BCR=/home/vadve/lattner/LLVMPrograms
22206
22207fi;
22208
John Criswellc78022e2003-07-29 19:11:58 +000022209
John Criswell7a73b802003-06-30 21:59:07 +000022210# Check whether --with-papi or --without-papi was given.
22211if test "${with_papi+set}" = set; then
22212 withval="$with_papi"
22213 PAPIDIR=$withval
22214
22215else
John Criswellde00db22003-08-25 16:49:54 +000022216 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022217
22218fi;
22219
John Criswell7a73b802003-06-30 21:59:07 +000022220
22221# Check whether --with-purify or --without-purify was given.
22222if test "${with_purify+set}" = set; then
22223 withval="$with_purify"
22224 PURIFY=$withval
22225
22226fi;
22227
John Criswell54ac8b12003-07-31 16:45:37 +000022228if test ${USER}
John Criswellc78022e2003-07-29 19:11:58 +000022229then
John Criswell54ac8b12003-07-31 16:45:37 +000022230 if test -d /localhome/${USER}
22231 then
22232 OBJROOT=/localhome/${USER}
John Criswellc78022e2003-07-29 19:11:58 +000022233
John Criswell54ac8b12003-07-31 16:45:37 +000022234 else
22235 OBJROOT=.
22236
22237 fi
John Criswellc78022e2003-07-29 19:11:58 +000022238else
22239 OBJROOT=.
22240
22241fi
22242
22243
22244# Check whether --with-objroot or --without-objroot was given.
22245if test "${with_objroot+set}" = set; then
22246 withval="$with_objroot"
22247 OBJROOT=$withval
22248
22249fi;
22250
John Criswellde00db22003-08-25 16:49:54 +000022251
John Criswell392aaa32003-07-22 19:18:09 +000022252 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022253cat >confcache <<\_ACEOF
22254# This file is a shell script that caches the results of configure
22255# tests run on this system so they can be shared between configure
22256# scripts and configure runs, see configure's option --config-cache.
22257# It is not useful on other systems. If it contains results you don't
22258# want to keep, you may remove or edit it.
22259#
22260# config.status only pays attention to the cache file if you give it
22261# the --recheck option to rerun configure.
22262#
John Criswell392aaa32003-07-22 19:18:09 +000022263# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022264# loading this file, other *unset* `ac_cv_foo' will be assigned the
22265# following values.
22266
22267_ACEOF
22268
22269# The following way of writing the cache mishandles newlines in values,
22270# but we know of no workaround that is simple, portable, and efficient.
22271# So, don't put newlines in cache variables' values.
22272# Ultrix sh set writes to stderr and can't be redirected directly,
22273# and sets the high bit in the cache file unless we assign to the vars.
22274{
22275 (set) 2>&1 |
22276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22277 *ac_space=\ *)
22278 # `set' does not quote correctly, so add quotes (double-quote
22279 # substitution turns \\\\ into \\, and sed turns \\ into \).
22280 sed -n \
22281 "s/'/'\\\\''/g;
22282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22283 ;;
22284 *)
22285 # `set' quotes correctly as required by POSIX, so do not add quotes.
22286 sed -n \
22287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22288 ;;
22289 esac;
22290} |
22291 sed '
22292 t clear
22293 : clear
22294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22295 t end
22296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22297 : end' >>confcache
John Criswell392aaa32003-07-22 19:18:09 +000022298if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022299 if test -w $cache_file; then
22300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22301 cat confcache >$cache_file
22302 else
22303 echo "not updating unwritable cache $cache_file"
22304 fi
22305fi
22306rm -f confcache
22307
22308test "x$prefix" = xNONE && prefix=$ac_default_prefix
22309# Let make expand exec_prefix.
22310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22311
22312# VPATH may cause trouble with some makes, so we remove $(srcdir),
22313# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22314# trailing colons and then remove the whole line if VPATH becomes empty
22315# (actually we leave an empty line to preserve line numbers).
22316if test "x$srcdir" = x.; then
22317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22318s/:*\$(srcdir):*/:/;
22319s/:*\${srcdir}:*/:/;
22320s/:*@srcdir@:*/:/;
22321s/^\([^=]*=[ ]*\):*/\1/;
22322s/:*$//;
22323s/^[^=]*=[ ]*$//;
22324}'
22325fi
22326
22327DEFS=-DHAVE_CONFIG_H
22328
John Criswell392aaa32003-07-22 19:18:09 +000022329ac_libobjs=
22330ac_ltlibobjs=
22331for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22332 # 1. Remove the extension, and $U if already installed.
22333 ac_i=`echo "$ac_i" |
22334 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22335 # 2. Add them.
22336 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22337 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22338done
22339LIBOBJS=$ac_libobjs
22340
22341LTLIBOBJS=$ac_ltlibobjs
22342
22343
John Criswell7a73b802003-06-30 21:59:07 +000022344
22345: ${CONFIG_STATUS=./config.status}
22346ac_clean_files_save=$ac_clean_files
22347ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22348{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22349echo "$as_me: creating $CONFIG_STATUS" >&6;}
22350cat >$CONFIG_STATUS <<_ACEOF
22351#! $SHELL
22352# Generated by $as_me.
22353# Run this file to recreate the current configuration.
22354# Compiler output produced by configure, useful for debugging
22355# configure, is in config.log if it exists.
22356
22357debug=false
John Criswell392aaa32003-07-22 19:18:09 +000022358ac_cs_recheck=false
22359ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022360SHELL=\${CONFIG_SHELL-$SHELL}
22361_ACEOF
22362
22363cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022364## --------------------- ##
22365## M4sh Initialization. ##
22366## --------------------- ##
22367
22368# Be Bourne compatible
22369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22370 emulate sh
22371 NULLCMD=:
John Criswell392aaa32003-07-22 19:18:09 +000022372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22373 # is contrary to our usage. Disable this feature.
22374 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022375elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22376 set -o posix
22377fi
22378
John Criswell7a73b802003-06-30 21:59:07 +000022379# Support unset when possible.
22380if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22381 as_unset=unset
22382else
22383 as_unset=false
22384fi
22385
John Criswell392aaa32003-07-22 19:18:09 +000022386
22387# Work around bugs in pre-3.0 UWIN ksh.
22388$as_unset ENV MAIL MAILPATH
22389PS1='$ '
22390PS2='> '
22391PS4='+ '
22392
22393# NLS nuisances.
22394for as_var in \
22395 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22396 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22397 LC_TELEPHONE LC_TIME
22398do
22399 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22400 eval $as_var=C; export $as_var
22401 else
22402 $as_unset $as_var
22403 fi
22404done
22405
22406# Required to use basename.
22407if expr a : '\(a\)' >/dev/null 2>&1; then
22408 as_expr=expr
22409else
22410 as_expr=false
22411fi
22412
22413if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22414 as_basename=basename
22415else
22416 as_basename=false
22417fi
John Criswell7a73b802003-06-30 21:59:07 +000022418
22419
22420# Name of the executable.
John Criswell392aaa32003-07-22 19:18:09 +000022421as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022422$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22423 X"$0" : 'X\(//\)$' \| \
22424 X"$0" : 'X\(/\)$' \| \
22425 . : '\(.\)' 2>/dev/null ||
22426echo X/"$0" |
22427 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22428 /^X\/\(\/\/\)$/{ s//\1/; q; }
22429 /^X\/\(\/\).*/{ s//\1/; q; }
22430 s/.*/./; q'`
22431
John Criswell392aaa32003-07-22 19:18:09 +000022432
John Criswell7a73b802003-06-30 21:59:07 +000022433# PATH needs CR, and LINENO needs CR and PATH.
22434# Avoid depending upon Character Ranges.
22435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22438as_cr_digits='0123456789'
22439as_cr_alnum=$as_cr_Letters$as_cr_digits
22440
22441# The user is always right.
22442if test "${PATH_SEPARATOR+set}" != set; then
John Criswell392aaa32003-07-22 19:18:09 +000022443 echo "#! /bin/sh" >conf$$.sh
22444 echo "exit 0" >>conf$$.sh
22445 chmod +x conf$$.sh
22446 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022447 PATH_SEPARATOR=';'
22448 else
22449 PATH_SEPARATOR=:
22450 fi
John Criswell392aaa32003-07-22 19:18:09 +000022451 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022452fi
22453
22454
22455 as_lineno_1=$LINENO
22456 as_lineno_2=$LINENO
22457 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22458 test "x$as_lineno_1" != "x$as_lineno_2" &&
22459 test "x$as_lineno_3" = "x$as_lineno_2" || {
22460 # Find who we are. Look in the path if we contain no path at all
22461 # relative or not.
22462 case $0 in
22463 *[\\/]* ) as_myself=$0 ;;
22464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465for as_dir in $PATH
22466do
22467 IFS=$as_save_IFS
22468 test -z "$as_dir" && as_dir=.
22469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22470done
22471
22472 ;;
22473 esac
22474 # We did not find ourselves, most probably we were run as `sh COMMAND'
22475 # in which case we are not to be found in the path.
22476 if test "x$as_myself" = x; then
22477 as_myself=$0
22478 fi
22479 if test ! -f "$as_myself"; then
22480 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22481echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22482 { (exit 1); exit 1; }; }
22483 fi
22484 case $CONFIG_SHELL in
22485 '')
22486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22488do
22489 IFS=$as_save_IFS
22490 test -z "$as_dir" && as_dir=.
22491 for as_base in sh bash ksh sh5; do
22492 case $as_dir in
22493 /*)
22494 if ("$as_dir/$as_base" -c '
22495 as_lineno_1=$LINENO
22496 as_lineno_2=$LINENO
22497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22498 test "x$as_lineno_1" != "x$as_lineno_2" &&
22499 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell392aaa32003-07-22 19:18:09 +000022500 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22501 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022502 CONFIG_SHELL=$as_dir/$as_base
22503 export CONFIG_SHELL
22504 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22505 fi;;
22506 esac
22507 done
22508done
22509;;
22510 esac
22511
22512 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22513 # uniformly replaced by the line number. The first 'sed' inserts a
22514 # line-number line before each line; the second 'sed' does the real
22515 # work. The second script uses 'N' to pair each line-number line
22516 # with the numbered line, and appends trailing '-' during
22517 # substitution so that $LINENO is not a special case at line end.
22518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22519 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22520 sed '=' <$as_myself |
22521 sed '
22522 N
22523 s,$,-,
22524 : loop
22525 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22526 t loop
22527 s,-$,,
22528 s,^['$as_cr_digits']*\n,,
22529 ' >$as_me.lineno &&
22530 chmod +x $as_me.lineno ||
22531 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22532echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22533 { (exit 1); exit 1; }; }
22534
22535 # Don't try to exec as it changes $[0], causing all sort of problems
22536 # (the dirname of $[0] is not the place where we might find the
22537 # original and so on. Autoconf is especially sensible to this).
22538 . ./$as_me.lineno
22539 # Exit status is that of the last command.
22540 exit
22541}
22542
22543
22544case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22545 *c*,-n*) ECHO_N= ECHO_C='
22546' ECHO_T=' ' ;;
22547 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22548 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22549esac
22550
22551if expr a : '\(a\)' >/dev/null 2>&1; then
22552 as_expr=expr
22553else
22554 as_expr=false
22555fi
22556
22557rm -f conf$$ conf$$.exe conf$$.file
22558echo >conf$$.file
22559if ln -s conf$$.file conf$$ 2>/dev/null; then
22560 # We could just check for DJGPP; but this test a) works b) is more generic
22561 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22562 if test -f conf$$.exe; then
22563 # Don't use ln at all; we don't have any links
22564 as_ln_s='cp -p'
22565 else
22566 as_ln_s='ln -s'
22567 fi
22568elif ln conf$$.file conf$$ 2>/dev/null; then
22569 as_ln_s=ln
22570else
22571 as_ln_s='cp -p'
22572fi
22573rm -f conf$$ conf$$.exe conf$$.file
22574
John Criswell392aaa32003-07-22 19:18:09 +000022575if mkdir -p . 2>/dev/null; then
22576 as_mkdir_p=:
22577else
22578 as_mkdir_p=false
22579fi
22580
John Criswell7a73b802003-06-30 21:59:07 +000022581as_executable_p="test -f"
22582
22583# Sed expression to map a string onto a valid CPP name.
22584as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22585
22586# Sed expression to map a string onto a valid variable name.
22587as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22588
22589
22590# IFS
22591# We need space, tab and new line, in precisely that order.
22592as_nl='
22593'
22594IFS=" $as_nl"
22595
22596# CDPATH.
John Criswell392aaa32003-07-22 19:18:09 +000022597$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022598
22599exec 6>&1
22600
22601# Open the log real soon, to keep \$[0] and so on meaningful, and to
22602# report actual input values of CONFIG_FILES etc. instead of their
22603# values after options handling. Logging --version etc. is OK.
22604exec 5>>config.log
22605{
22606 echo
22607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22608## Running $as_me. ##
22609_ASBOX
22610} >&5
22611cat >&5 <<_CSEOF
22612
22613This file was extended by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +000022614generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022615
22616 CONFIG_FILES = $CONFIG_FILES
22617 CONFIG_HEADERS = $CONFIG_HEADERS
22618 CONFIG_LINKS = $CONFIG_LINKS
22619 CONFIG_COMMANDS = $CONFIG_COMMANDS
22620 $ $0 $@
22621
22622_CSEOF
22623echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22624echo >&5
22625_ACEOF
22626
22627# Files that config.status was made for.
22628if test -n "$ac_config_files"; then
22629 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22630fi
22631
22632if test -n "$ac_config_headers"; then
22633 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22634fi
22635
22636if test -n "$ac_config_links"; then
22637 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22638fi
22639
22640if test -n "$ac_config_commands"; then
22641 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22642fi
22643
22644cat >>$CONFIG_STATUS <<\_ACEOF
22645
22646ac_cs_usage="\
22647\`$as_me' instantiates files from templates according to the
22648current configuration.
22649
22650Usage: $0 [OPTIONS] [FILE]...
22651
22652 -h, --help print this help, then exit
22653 -V, --version print version number, then exit
John Criswell392aaa32003-07-22 19:18:09 +000022654 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022655 -d, --debug don't remove temporary files
22656 --recheck update $as_me by reconfiguring in the same conditions
22657 --file=FILE[:TEMPLATE]
22658 instantiate the configuration file FILE
22659 --header=FILE[:TEMPLATE]
22660 instantiate the configuration header FILE
22661
22662Configuration files:
22663$config_files
22664
22665Configuration headers:
22666$config_headers
22667
22668Report bugs to <bug-autoconf@gnu.org>."
22669_ACEOF
22670
22671cat >>$CONFIG_STATUS <<_ACEOF
22672ac_cs_version="\\
22673[LLVM] config.status [1.0]
John Criswell392aaa32003-07-22 19:18:09 +000022674configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022675 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22676
22677Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22678Free Software Foundation, Inc.
22679This config.status script is free software; the Free Software Foundation
22680gives unlimited permission to copy, distribute and modify it."
22681srcdir=$srcdir
22682INSTALL="$INSTALL"
22683_ACEOF
22684
22685cat >>$CONFIG_STATUS <<\_ACEOF
22686# If no file are specified by the user, then we need to provide default
22687# value. By we need to know if files were specified by the user.
22688ac_need_defaults=:
22689while test $# != 0
22690do
22691 case $1 in
22692 --*=*)
22693 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22694 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell392aaa32003-07-22 19:18:09 +000022695 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022696 ;;
John Criswell392aaa32003-07-22 19:18:09 +000022697 -*)
22698 ac_option=$1
22699 ac_optarg=$2
22700 ac_shift=shift
22701 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022702 *) # This is not an option, so the user has probably given explicit
22703 # arguments.
John Criswell392aaa32003-07-22 19:18:09 +000022704 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022705 ac_need_defaults=false;;
22706 esac
22707
John Criswell392aaa32003-07-22 19:18:09 +000022708 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022709 # Handling of the options.
22710_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022711cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000022712 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22713 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022714 --version | --vers* | -V )
22715 echo "$ac_cs_version"; exit 0 ;;
22716 --he | --h)
22717 # Conflict between --help and --header
22718 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22719Try \`$0 --help' for more information." >&5
22720echo "$as_me: error: ambiguous option: $1
22721Try \`$0 --help' for more information." >&2;}
22722 { (exit 1); exit 1; }; };;
22723 --help | --hel | -h )
22724 echo "$ac_cs_usage"; exit 0 ;;
22725 --debug | --d* | -d )
22726 debug=: ;;
22727 --file | --fil | --fi | --f )
John Criswell392aaa32003-07-22 19:18:09 +000022728 $ac_shift
22729 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022730 ac_need_defaults=false;;
22731 --header | --heade | --head | --hea )
John Criswell392aaa32003-07-22 19:18:09 +000022732 $ac_shift
22733 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022734 ac_need_defaults=false;;
John Criswell392aaa32003-07-22 19:18:09 +000022735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22737 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022738
22739 # This is an error.
22740 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22741Try \`$0 --help' for more information." >&5
22742echo "$as_me: error: unrecognized option: $1
22743Try \`$0 --help' for more information." >&2;}
22744 { (exit 1); exit 1; }; } ;;
22745
22746 *) ac_config_targets="$ac_config_targets $1" ;;
22747
22748 esac
22749 shift
22750done
22751
John Criswell392aaa32003-07-22 19:18:09 +000022752ac_configure_extra_args=
22753
22754if $ac_cs_silent; then
22755 exec 6>/dev/null
22756 ac_configure_extra_args="$ac_configure_extra_args --silent"
22757fi
22758
22759_ACEOF
22760cat >>$CONFIG_STATUS <<_ACEOF
22761if \$ac_cs_recheck; then
22762 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22763 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22764fi
22765
John Criswell7a73b802003-06-30 21:59:07 +000022766_ACEOF
22767
22768
22769
22770
22771
22772cat >>$CONFIG_STATUS <<\_ACEOF
22773for ac_config_target in $ac_config_targets
22774do
22775 case "$ac_config_target" in
22776 # Handling of arguments.
22777 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22778 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22780echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22781 { (exit 1); exit 1; }; };;
22782 esac
22783done
22784
22785# If the user did not use the arguments to specify the items to instantiate,
22786# then the envvar interface is used. Set only those that are not.
22787# We use the long form for the default assignment because of an extremely
22788# bizarre bug on SunOS 4.1.3.
22789if $ac_need_defaults; then
22790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22792fi
22793
John Criswell392aaa32003-07-22 19:18:09 +000022794# Have a temporary directory for convenience. Make it in the build tree
22795# simply because there is no reason to put it here, and in addition,
22796# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022797# Create a temporary directory, and hook for its removal unless debugging.
22798$debug ||
22799{
22800 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22801 trap '{ (exit 1); exit 1; }' 1 2 13 15
22802}
22803
22804# Create a (secure) tmp directory for tmp files.
John Criswell392aaa32003-07-22 19:18:09 +000022805
John Criswell7a73b802003-06-30 21:59:07 +000022806{
John Criswell392aaa32003-07-22 19:18:09 +000022807 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022808 test -n "$tmp" && test -d "$tmp"
22809} ||
22810{
John Criswell392aaa32003-07-22 19:18:09 +000022811 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022812 (umask 077 && mkdir $tmp)
22813} ||
22814{
John Criswell392aaa32003-07-22 19:18:09 +000022815 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022816 { (exit 1); exit 1; }
22817}
22818
22819_ACEOF
22820
22821cat >>$CONFIG_STATUS <<_ACEOF
22822
22823#
22824# CONFIG_FILES section.
22825#
22826
22827# No need to generate the scripts if there are no CONFIG_FILES.
22828# This happens for instance when ./config.status config.h
22829if test -n "\$CONFIG_FILES"; then
22830 # Protect against being on the right side of a sed subst in config.status.
22831 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22832 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22833s,@SHELL@,$SHELL,;t t
22834s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22835s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22836s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22837s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22838s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22839s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22840s,@exec_prefix@,$exec_prefix,;t t
22841s,@prefix@,$prefix,;t t
22842s,@program_transform_name@,$program_transform_name,;t t
22843s,@bindir@,$bindir,;t t
22844s,@sbindir@,$sbindir,;t t
22845s,@libexecdir@,$libexecdir,;t t
22846s,@datadir@,$datadir,;t t
22847s,@sysconfdir@,$sysconfdir,;t t
22848s,@sharedstatedir@,$sharedstatedir,;t t
22849s,@localstatedir@,$localstatedir,;t t
22850s,@libdir@,$libdir,;t t
22851s,@includedir@,$includedir,;t t
22852s,@oldincludedir@,$oldincludedir,;t t
22853s,@infodir@,$infodir,;t t
22854s,@mandir@,$mandir,;t t
22855s,@build_alias@,$build_alias,;t t
22856s,@host_alias@,$host_alias,;t t
22857s,@target_alias@,$target_alias,;t t
22858s,@DEFS@,$DEFS,;t t
22859s,@ECHO_C@,$ECHO_C,;t t
22860s,@ECHO_N@,$ECHO_N,;t t
22861s,@ECHO_T@,$ECHO_T,;t t
22862s,@LIBS@,$LIBS,;t t
22863s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22864s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22865s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22866s,@build@,$build,;t t
22867s,@build_cpu@,$build_cpu,;t t
22868s,@build_vendor@,$build_vendor,;t t
22869s,@build_os@,$build_os,;t t
22870s,@host@,$host,;t t
22871s,@host_cpu@,$host_cpu,;t t
22872s,@host_vendor@,$host_vendor,;t t
22873s,@host_os@,$host_os,;t t
22874s,@target@,$target,;t t
22875s,@target_cpu@,$target_cpu,;t t
22876s,@target_vendor@,$target_vendor,;t t
22877s,@target_os@,$target_os,;t t
22878s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022879s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022880s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022881s,@CXX@,$CXX,;t t
22882s,@CXXFLAGS@,$CXXFLAGS,;t t
22883s,@LDFLAGS@,$LDFLAGS,;t t
22884s,@CPPFLAGS@,$CPPFLAGS,;t t
22885s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22886s,@EXEEXT@,$EXEEXT,;t t
22887s,@OBJEXT@,$OBJEXT,;t t
22888s,@CC@,$CC,;t t
22889s,@CFLAGS@,$CFLAGS,;t t
22890s,@ac_ct_CC@,$ac_ct_CC,;t t
22891s,@CPP@,$CPP,;t t
22892s,@ifGNUmake@,$ifGNUmake,;t t
22893s,@LEX@,$LEX,;t t
22894s,@LEXLIB@,$LEXLIB,;t t
22895s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22896s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022897s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022898s,@LN_S@,$LN_S,;t t
22899s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022900s,@AR@,$AR,;t t
22901s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022902s,@RANLIB@,$RANLIB,;t t
22903s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22904s,@STRIP@,$STRIP,;t t
22905s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022906s,@CXXCPP@,$CXXCPP,;t t
22907s,@F77@,$F77,;t t
22908s,@FFLAGS@,$FFLAGS,;t t
22909s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022910s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000022911s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022912s,@SED@,$SED,;t t
22913s,@RM@,$RM,;t t
22914s,@MKDIR@,$MKDIR,;t t
22915s,@DATE@,$DATE,;t t
22916s,@MV@,$MV,;t t
22917s,@DOT@,$DOT,;t t
22918s,@ETAGS@,$ETAGS,;t t
22919s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000022920s,@PYTHON@,$PYTHON,;t t
22921s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022922s,@ALLOCA@,$ALLOCA,;t t
22923s,@LIBOBJS@,$LIBOBJS,;t t
22924s,@MMAP_FILE@,$MMAP_FILE,;t t
22925s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022926s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22927s,@USE_SPEC@,$USE_SPEC,;t t
22928s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022929s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022930s,@JIT@,$JIT,;t t
22931s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22932s,@BCR@,$BCR,;t t
22933s,@PAPIDIR@,$PAPIDIR,;t t
22934s,@OBJROOT@,$OBJROOT,;t t
John Criswell392aaa32003-07-22 19:18:09 +000022935s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022936CEOF
22937
22938_ACEOF
22939
22940 cat >>$CONFIG_STATUS <<\_ACEOF
22941 # Split the substitutions into bite-sized pieces for seds with
22942 # small command number limits, like on Digital OSF/1 and HP-UX.
22943 ac_max_sed_lines=48
22944 ac_sed_frag=1 # Number of current file.
22945 ac_beg=1 # First line for current file.
22946 ac_end=$ac_max_sed_lines # Line after last line for current file.
22947 ac_more_lines=:
22948 ac_sed_cmds=
22949 while $ac_more_lines; do
22950 if test $ac_beg -gt 1; then
22951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22952 else
22953 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22954 fi
22955 if test ! -s $tmp/subs.frag; then
22956 ac_more_lines=false
22957 else
22958 # The purpose of the label and of the branching condition is to
22959 # speed up the sed processing (if there are no `@' at all, there
22960 # is no need to browse any of the substitutions).
22961 # These are the two extra sed commands mentioned above.
22962 (echo ':t
22963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22964 if test -z "$ac_sed_cmds"; then
22965 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22966 else
22967 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22968 fi
22969 ac_sed_frag=`expr $ac_sed_frag + 1`
22970 ac_beg=$ac_end
22971 ac_end=`expr $ac_end + $ac_max_sed_lines`
22972 fi
22973 done
22974 if test -z "$ac_sed_cmds"; then
22975 ac_sed_cmds=cat
22976 fi
22977fi # test -n "$CONFIG_FILES"
22978
22979_ACEOF
22980cat >>$CONFIG_STATUS <<\_ACEOF
22981for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22983 case $ac_file in
22984 - | *:- | *:-:* ) # input from stdin
22985 cat >$tmp/stdin
22986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990 * ) ac_file_in=$ac_file.in ;;
22991 esac
22992
22993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996 X"$ac_file" : 'X\(//\)[^/]' \| \
22997 X"$ac_file" : 'X\(//\)$' \| \
22998 X"$ac_file" : 'X\(/\)' \| \
22999 . : '\(.\)' 2>/dev/null ||
23000echo X"$ac_file" |
23001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23003 /^X\(\/\/\)$/{ s//\1/; q; }
23004 /^X\(\/\).*/{ s//\1/; q; }
23005 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000023006 { if $as_mkdir_p; then
23007 mkdir -p "$ac_dir"
23008 else
23009 as_dir="$ac_dir"
23010 as_dirs=
23011 while test ! -d "$as_dir"; do
23012 as_dirs="$as_dir $as_dirs"
23013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23015 X"$as_dir" : 'X\(//\)[^/]' \| \
23016 X"$as_dir" : 'X\(//\)$' \| \
23017 X"$as_dir" : 'X\(/\)' \| \
23018 . : '\(.\)' 2>/dev/null ||
23019echo X"$as_dir" |
23020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23022 /^X\(\/\/\)$/{ s//\1/; q; }
23023 /^X\(\/\).*/{ s//\1/; q; }
23024 s/.*/./; q'`
23025 done
23026 test ! -n "$as_dirs" || mkdir $as_dirs
23027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23028echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23029 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023030
23031 ac_builddir=.
23032
23033if test "$ac_dir" != .; then
23034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23035 # A "../" for each directory in $ac_dir_suffix.
23036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23037else
23038 ac_dir_suffix= ac_top_builddir=
23039fi
23040
23041case $srcdir in
23042 .) # No --srcdir option. We are building in place.
23043 ac_srcdir=.
23044 if test -z "$ac_top_builddir"; then
23045 ac_top_srcdir=.
23046 else
23047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23048 fi ;;
23049 [\\/]* | ?:[\\/]* ) # Absolute path.
23050 ac_srcdir=$srcdir$ac_dir_suffix;
23051 ac_top_srcdir=$srcdir ;;
23052 *) # Relative path.
23053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23055esac
23056# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23057# absolute.
23058ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +000023059ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023060ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23061ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23062
23063
23064 case $INSTALL in
23065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23066 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23067 esac
23068
23069 if test x"$ac_file" != x-; then
23070 { echo "$as_me:$LINENO: creating $ac_file" >&5
23071echo "$as_me: creating $ac_file" >&6;}
23072 rm -f "$ac_file"
23073 fi
23074 # Let's still pretend it is `configure' which instantiates (i.e., don't
23075 # use $as_me), people would be surprised to read:
23076 # /* config.h. Generated by config.status. */
23077 if test x"$ac_file" = x-; then
23078 configure_input=
23079 else
23080 configure_input="$ac_file. "
23081 fi
23082 configure_input=$configure_input"Generated from `echo $ac_file_in |
23083 sed 's,.*/,,'` by configure."
23084
23085 # First look for the input files in the build tree, otherwise in the
23086 # src tree.
23087 ac_file_inputs=`IFS=:
23088 for f in $ac_file_in; do
23089 case $f in
23090 -) echo $tmp/stdin ;;
23091 [\\/$]*)
23092 # Absolute (can't be DOS-style, as IFS=:)
23093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23094echo "$as_me: error: cannot find input file: $f" >&2;}
23095 { (exit 1); exit 1; }; }
23096 echo $f;;
23097 *) # Relative
23098 if test -f "$f"; then
23099 # Build tree
23100 echo $f
23101 elif test -f "$srcdir/$f"; then
23102 # Source tree
23103 echo $srcdir/$f
23104 else
23105 # /dev/null tree
23106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23107echo "$as_me: error: cannot find input file: $f" >&2;}
23108 { (exit 1); exit 1; }; }
23109 fi;;
23110 esac
23111 done` || { (exit 1); exit 1; }
23112_ACEOF
23113cat >>$CONFIG_STATUS <<_ACEOF
23114 sed "$ac_vpsub
23115$extrasub
23116_ACEOF
23117cat >>$CONFIG_STATUS <<\_ACEOF
23118:t
23119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23120s,@configure_input@,$configure_input,;t t
23121s,@srcdir@,$ac_srcdir,;t t
23122s,@abs_srcdir@,$ac_abs_srcdir,;t t
23123s,@top_srcdir@,$ac_top_srcdir,;t t
23124s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23125s,@builddir@,$ac_builddir,;t t
23126s,@abs_builddir@,$ac_abs_builddir,;t t
23127s,@top_builddir@,$ac_top_builddir,;t t
23128s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23129s,@INSTALL@,$ac_INSTALL,;t t
23130" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23131 rm -f $tmp/stdin
23132 if test x"$ac_file" != x-; then
23133 mv $tmp/out $ac_file
23134 else
23135 cat $tmp/out
23136 rm -f $tmp/out
23137 fi
23138
23139done
23140_ACEOF
23141cat >>$CONFIG_STATUS <<\_ACEOF
23142
23143#
23144# CONFIG_HEADER section.
23145#
23146
23147# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23148# NAME is the cpp macro being defined and VALUE is the value it is being given.
23149#
23150# ac_d sets the value in "#define NAME VALUE" lines.
23151ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23152ac_dB='[ ].*$,\1#\2'
23153ac_dC=' '
23154ac_dD=',;t'
23155# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23156ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23157ac_uB='$,\1#\2define\3'
23158ac_uC=' '
23159ac_uD=',;t'
23160
23161for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23163 case $ac_file in
23164 - | *:- | *:-:* ) # input from stdin
23165 cat >$tmp/stdin
23166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23170 * ) ac_file_in=$ac_file.in ;;
23171 esac
23172
23173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23174echo "$as_me: creating $ac_file" >&6;}
23175
23176 # First look for the input files in the build tree, otherwise in the
23177 # src tree.
23178 ac_file_inputs=`IFS=:
23179 for f in $ac_file_in; do
23180 case $f in
23181 -) echo $tmp/stdin ;;
23182 [\\/$]*)
23183 # Absolute (can't be DOS-style, as IFS=:)
23184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23185echo "$as_me: error: cannot find input file: $f" >&2;}
23186 { (exit 1); exit 1; }; }
23187 echo $f;;
23188 *) # Relative
23189 if test -f "$f"; then
23190 # Build tree
23191 echo $f
23192 elif test -f "$srcdir/$f"; then
23193 # Source tree
23194 echo $srcdir/$f
23195 else
23196 # /dev/null tree
23197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23198echo "$as_me: error: cannot find input file: $f" >&2;}
23199 { (exit 1); exit 1; }; }
23200 fi;;
23201 esac
23202 done` || { (exit 1); exit 1; }
23203 # Remove the trailing spaces.
23204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23205
23206_ACEOF
23207
23208# Transform confdefs.h into two sed scripts, `conftest.defines' and
23209# `conftest.undefs', that substitutes the proper values into
23210# config.h.in to produce config.h. The first handles `#define'
23211# templates, and the second `#undef' templates.
23212# And first: Protect against being on the right side of a sed subst in
23213# config.status. Protect against being in an unquoted here document
23214# in config.status.
23215rm -f conftest.defines conftest.undefs
23216# Using a here document instead of a string reduces the quoting nightmare.
23217# Putting comments in sed scripts is not portable.
23218#
23219# `end' is used to avoid that the second main sed command (meant for
23220# 0-ary CPP macros) applies to n-ary macro definitions.
23221# See the Autoconf documentation for `clear'.
23222cat >confdef2sed.sed <<\_ACEOF
23223s/[\\&,]/\\&/g
23224s,[\\$`],\\&,g
23225t clear
23226: clear
23227s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23228t end
23229s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23230: end
23231_ACEOF
23232# If some macros were called several times there might be several times
23233# the same #defines, which is useless. Nevertheless, we may not want to
23234# sort them, since we want the *last* AC-DEFINE to be honored.
23235uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23236sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23237rm -f confdef2sed.sed
23238
23239# This sed command replaces #undef with comments. This is necessary, for
23240# example, in the case of _POSIX_SOURCE, which is predefined and required
23241# on some systems where configure will not decide to define it.
23242cat >>conftest.undefs <<\_ACEOF
23243s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23244_ACEOF
23245
23246# Break up conftest.defines because some shells have a limit on the size
23247# of here documents, and old seds have small limits too (100 cmds).
23248echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell392aaa32003-07-22 19:18:09 +000023249echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023250echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23251echo ' :' >>$CONFIG_STATUS
23252rm -f conftest.tail
23253while grep . conftest.defines >/dev/null
23254do
23255 # Write a limited-size here document to $tmp/defines.sed.
23256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23257 # Speed up: don't consider the non `#define' lines.
23258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23259 # Work around the forget-to-reset-the-flag bug.
23260 echo 't clr' >>$CONFIG_STATUS
23261 echo ': clr' >>$CONFIG_STATUS
23262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23263 echo 'CEOF
23264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23265 rm -f $tmp/in
23266 mv $tmp/out $tmp/in
23267' >>$CONFIG_STATUS
23268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23269 rm -f conftest.defines
23270 mv conftest.tail conftest.defines
23271done
23272rm -f conftest.defines
John Criswell392aaa32003-07-22 19:18:09 +000023273echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023274echo >>$CONFIG_STATUS
23275
23276# Break up conftest.undefs because some shells have a limit on the size
23277# of here documents, and old seds have small limits too (100 cmds).
23278echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23279rm -f conftest.tail
23280while grep . conftest.undefs >/dev/null
23281do
23282 # Write a limited-size here document to $tmp/undefs.sed.
23283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23284 # Speed up: don't consider the non `#undef'
23285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23286 # Work around the forget-to-reset-the-flag bug.
23287 echo 't clr' >>$CONFIG_STATUS
23288 echo ': clr' >>$CONFIG_STATUS
23289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23290 echo 'CEOF
23291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23292 rm -f $tmp/in
23293 mv $tmp/out $tmp/in
23294' >>$CONFIG_STATUS
23295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23296 rm -f conftest.undefs
23297 mv conftest.tail conftest.undefs
23298done
23299rm -f conftest.undefs
23300
23301cat >>$CONFIG_STATUS <<\_ACEOF
23302 # Let's still pretend it is `configure' which instantiates (i.e., don't
23303 # use $as_me), people would be surprised to read:
23304 # /* config.h. Generated by config.status. */
23305 if test x"$ac_file" = x-; then
23306 echo "/* Generated by configure. */" >$tmp/config.h
23307 else
23308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23309 fi
23310 cat $tmp/in >>$tmp/config.h
23311 rm -f $tmp/in
23312 if test x"$ac_file" != x-; then
John Criswell392aaa32003-07-22 19:18:09 +000023313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23315echo "$as_me: $ac_file is unchanged" >&6;}
23316 else
23317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23319 X"$ac_file" : 'X\(//\)[^/]' \| \
23320 X"$ac_file" : 'X\(//\)$' \| \
23321 X"$ac_file" : 'X\(/\)' \| \
23322 . : '\(.\)' 2>/dev/null ||
23323echo X"$ac_file" |
23324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23326 /^X\(\/\/\)$/{ s//\1/; q; }
23327 /^X\(\/\).*/{ s//\1/; q; }
23328 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000023329 { if $as_mkdir_p; then
23330 mkdir -p "$ac_dir"
23331 else
23332 as_dir="$ac_dir"
23333 as_dirs=
23334 while test ! -d "$as_dir"; do
23335 as_dirs="$as_dir $as_dirs"
23336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338 X"$as_dir" : 'X\(//\)[^/]' \| \
23339 X"$as_dir" : 'X\(//\)$' \| \
23340 X"$as_dir" : 'X\(/\)' \| \
23341 . : '\(.\)' 2>/dev/null ||
23342echo X"$as_dir" |
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345 /^X\(\/\/\)$/{ s//\1/; q; }
23346 /^X\(\/\).*/{ s//\1/; q; }
23347 s/.*/./; q'`
23348 done
23349 test ! -n "$as_dirs" || mkdir $as_dirs
23350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23351echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23352 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023353
23354 rm -f $ac_file
23355 mv $tmp/config.h $ac_file
23356 fi
23357 else
23358 cat $tmp/config.h
23359 rm -f $tmp/config.h
23360 fi
23361done
23362_ACEOF
23363
23364cat >>$CONFIG_STATUS <<\_ACEOF
23365
23366{ (exit 0); exit 0; }
23367_ACEOF
23368chmod +x $CONFIG_STATUS
23369ac_clean_files=$ac_clean_files_save
23370
23371
23372# configure is writing to config.log, and then calls config.status.
23373# config.status does its own redirection, appending to config.log.
23374# Unfortunately, on DOS this fails, as config.log is still kept open
23375# by configure, so config.status won't be able to write to it; its
23376# output is simply discarded. So we exec the FD to /dev/null,
23377# effectively closing config.log, so it can be properly (re)opened and
23378# appended to by config.status. When coming back to configure, we
23379# need to make the FD available again.
23380if test "$no_create" != yes; then
23381 ac_cs_success=:
John Criswell392aaa32003-07-22 19:18:09 +000023382 ac_config_status_args=
23383 test "$silent" = yes &&
23384 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023385 exec 5>/dev/null
John Criswell392aaa32003-07-22 19:18:09 +000023386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023387 exec 5>>config.log
23388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23389 # would make configure fail if this is the last instruction.
23390 $ac_cs_success || { (exit 1); exit 1; }
23391fi
23392