blob: a2b64bca70e94ac7e7e09b17d5ebebd93838197a [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 Criswell392aaa32003-07-22 19:18:09 +0000467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED RM MKDIR DATE MV DOT ETAGS PURIFY ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
468ac_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)
1037 --enable-jit Enable Just In Time Compiling (default is NO)
1038
1039Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001042 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1043 --with-pic try to use only PIC/non-PIC objects [default=use
1044 both]
1045 --with-tags[=TAGS]
1046 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --with-spec Location of SPEC benchmarks
1048 --with-llvmgccdir Location of LLVM GCC front-end
1049 --with-bcrepos Location of Bytecode Repository
1050 --with-papi Location of PAPI
1051 --with-objroot Location where object files should be placed
1052 (default is .)
1053 --with-purify Location of purify program
1054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +00001109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135[LLVM] configure [1.0]
John Criswell392aaa32003-07-22 19:18:09 +00001136generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001137
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +00001151generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell392aaa32003-07-22 19:18:09 +00001203# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001204# Also quote any args containing shell meta-characters.
John Criswell392aaa32003-07-22 19:18:09 +00001205# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001206ac_configure_args=
John Criswell392aaa32003-07-22 19:18:09 +00001207ac_configure_args0=
1208ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001209ac_sep=
John Criswell392aaa32003-07-22 19:18:09 +00001210ac_must_keep_next=false
1211for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001212do
John Criswell392aaa32003-07-22 19:18:09 +00001213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
John Criswell7a73b802003-06-30 21:59:07 +00001248done
John Criswell392aaa32003-07-22 19:18:09 +00001249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$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 +00001251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
John Criswell392aaa32003-07-22 19:18:09 +00001261
John Criswell7a73b802003-06-30 21:59:07 +00001262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
John Criswell392aaa32003-07-22 19:18:09 +00001284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
John Criswell7a73b802003-06-30 21:59:07 +00001313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
John Criswell392aaa32003-07-22 19:18:09 +00001320 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
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
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001488for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
John Criswell392aaa32003-07-22 19:18:09 +00001512
1513 ac_config_headers="$ac_config_headers include/Config/config.h"
1514
1515
1516
John Criswell7a73b802003-06-30 21:59:07 +00001517# Find a good install program. We prefer a C program (faster),
1518# so one script is as good as another. But avoid the broken or
1519# incompatible versions:
1520# SysV /etc/install, /usr/sbin/install
1521# SunOS /usr/etc/install
1522# IRIX /sbin/install
1523# AIX /bin/install
1524# AmigaOS /C/install, which installs bootblocks on floppy discs
1525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1528# ./install, which can be erroneously created by make from ./install.sh.
1529echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1530echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1531if test -z "$INSTALL"; then
1532if test "${ac_cv_path_install+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 # Account for people who put trailing slashes in PATH elements.
1541case $as_dir/ in
1542 ./ | .// | /cC/* | \
1543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1544 /usr/ucb/* ) ;;
1545 *)
1546 # OSF1 and SCO ODT 3.0 have their own names for install.
1547 # Don't use installbsd from OSF since it installs stuff as root
1548 # by default.
1549 for ac_prog in ginstall scoinst install; do
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1552 if test $ac_prog = install &&
1553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554 # AIX install. It has an incompatible calling convention.
1555 :
1556 elif test $ac_prog = install &&
1557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558 # program-specific install script used by HP pwplus--don't use.
1559 :
1560 else
1561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1562 break 3
1563 fi
1564 fi
1565 done
1566 done
1567 ;;
1568esac
1569done
1570
1571
1572fi
1573 if test "${ac_cv_path_install+set}" = set; then
1574 INSTALL=$ac_cv_path_install
1575 else
1576 # As a last resort, use the slow shell script. We don't cache a
1577 # path for INSTALL within a source directory, because that will
1578 # break other packages using the cache if that directory is
1579 # removed, or if the path is relative.
1580 INSTALL=$ac_install_sh
1581 fi
1582fi
1583echo "$as_me:$LINENO: result: $INSTALL" >&5
1584echo "${ECHO_T}$INSTALL" >&6
1585
1586# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1587# It thinks the first close brace ends the variable substitution.
1588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1589
1590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1591
1592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1593
1594
1595# Make sure we can run config.sub.
1596$ac_config_sub sun4 >/dev/null 2>&1 ||
1597 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1598echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601echo "$as_me:$LINENO: checking build system type" >&5
1602echo $ECHO_N "checking build system type... $ECHO_C" >&6
1603if test "${ac_cv_build+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_build_alias=$build_alias
1607test -z "$ac_cv_build_alias" &&
1608 ac_cv_build_alias=`$ac_config_guess`
1609test -z "$ac_cv_build_alias" &&
1610 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1611echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1612 { (exit 1); exit 1; }; }
1613ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1620echo "${ECHO_T}$ac_cv_build" >&6
1621build=$ac_cv_build
1622build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627echo "$as_me:$LINENO: checking host system type" >&5
1628echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 ac_cv_host_alias=$host_alias
1633test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642echo "${ECHO_T}$ac_cv_host" >&6
1643host=$ac_cv_host
1644host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking target system type" >&5
1650echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_target_alias=$target_alias
1655test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
1663echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664echo "${ECHO_T}$ac_cv_target" >&6
1665target=$ac_cv_target
1666target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671# The aliases save the names the user supplied, while $host etc.
1672# will get canonicalized.
1673test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1675 NONENONEs,x,x, &&
1676 program_prefix=${target_alias}-
1677
1678case $build in
1679 *i*86*) OS=Linux
1680
John Criswell392aaa32003-07-22 19:18:09 +00001681 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001682
1683 ;;
1684
1685 *sparc*) OS=SunOS
1686
1687 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1688
1689 ;;
1690
1691 *) OS=Unknown
1692
1693 ;;
1694esac
1695
1696case $target in
1697 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1698
1699 ;;
1700esac
1701
John Criswell76595452003-07-01 22:07:39 +00001702case $target in
1703 *i*86*) ARCH=x86
1704
1705 ;;
1706 *sparc*solaris*) ARCH=Sparc
1707
1708 ;;
1709esac
1710
John Criswell7a73b802003-06-30 21:59:07 +00001711
1712ac_ext=cc
1713ac_cpp='$CXXCPP $CPPFLAGS'
1714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1717if test -n "$ac_tool_prefix"; then
1718 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1719 do
1720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
1742done
1743
1744fi
1745fi
1746CXX=$ac_cv_prog_CXX
1747if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749echo "${ECHO_T}$CXX" >&6
1750else
1751 echo "$as_me:$LINENO: result: no" >&5
1752echo "${ECHO_T}no" >&6
1753fi
1754
1755 test -n "$CXX" && break
1756 done
1757fi
1758if test -z "$CXX"; then
1759 ac_ct_CXX=$CXX
1760 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1761do
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763set dummy $ac_prog; ac_word=$2
1764echo "$as_me:$LINENO: checking for $ac_word" >&5
1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769 if test -n "$ac_ct_CXX"; then
1770 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1771else
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_ac_ct_CXX="$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1782 fi
1783done
1784done
1785
1786fi
1787fi
1788ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1789if test -n "$ac_ct_CXX"; then
1790 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1791echo "${ECHO_T}$ac_ct_CXX" >&6
1792else
1793 echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797 test -n "$ac_ct_CXX" && break
1798done
1799test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1800
1801 CXX=$ac_ct_CXX
1802fi
1803
1804
1805# Provide some information about the compiler.
1806echo "$as_me:$LINENO:" \
1807 "checking for C++ compiler version" >&5
1808ac_compiler=`set X $ac_compile; echo $2`
1809{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1810 (eval $ac_compiler --version </dev/null >&5) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }
1814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1815 (eval $ac_compiler -v </dev/null >&5) 2>&5
1816 ac_status=$?
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }
1819{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1820 (eval $ac_compiler -V </dev/null >&5) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }
1824
1825cat >conftest.$ac_ext <<_ACEOF
1826#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00001827/* confdefs.h. */
1828_ACEOF
1829cat confdefs.h >>conftest.$ac_ext
1830cat >>conftest.$ac_ext <<_ACEOF
1831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00001832
John Criswell7a73b802003-06-30 21:59:07 +00001833int
1834main ()
1835{
1836
1837 ;
1838 return 0;
1839}
1840_ACEOF
1841ac_clean_files_save=$ac_clean_files
John Criswell392aaa32003-07-22 19:18:09 +00001842ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00001843# Try to create an executable without -o first, disregard a.out.
1844# It will help us diagnose broken compilers, and finding out an intuition
1845# of exeext.
1846echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1847echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1848ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850 (eval $ac_link_default) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # Find the output, starting from the most likely. This scheme is
1855# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856# resort.
1857
1858# Be careful to initialize this variable, since it used to be cached.
1859# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1860ac_cv_exeext=
John Criswell392aaa32003-07-22 19:18:09 +00001861# b.out is created by i960 compilers.
1862for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1863do
1864 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001865 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00001866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867 ;;
1868 conftest.$ac_ext )
1869 # This is the source file.
1870 ;;
1871 [ab].out )
1872 # We found the default executable, but exeext='' is most
1873 # certainly right.
1874 break;;
1875 *.* )
1876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 # FIXME: I believe we export ac_cv_exeext for Libtool,
1878 # but it would be cool to find out if it's true. Does anybody
1879 # maintain Libtool? --akim.
1880 export ac_cv_exeext
1881 break;;
1882 * )
1883 break;;
John Criswell7a73b802003-06-30 21:59:07 +00001884 esac
1885done
1886else
1887 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00001888sed 's/^/| /' conftest.$ac_ext >&5
1889
1890{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: C++ compiler cannot create executables
1893See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001894 { (exit 77); exit 77; }; }
1895fi
1896
1897ac_exeext=$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_file" >&5
1899echo "${ECHO_T}$ac_file" >&6
1900
1901# Check the compiler produces executables we can run. If not, either
1902# the compiler is broken, or we cross compile.
1903echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1904echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1905# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906# If not cross compiling, check that we can run a simple program.
1907if test "$cross_compiling" != yes; then
1908 if { ac_try='./$ac_file'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 (eval $ac_try) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 cross_compiling=no
1915 else
1916 if test "$cross_compiling" = maybe; then
1917 cross_compiling=yes
1918 else
1919 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00001920If you meant to cross compile, use \`--host'.
1921See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00001922echo "$as_me: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00001923If you meant to cross compile, use \`--host'.
1924See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001925 { (exit 1); exit 1; }; }
1926 fi
1927 fi
1928fi
1929echo "$as_me:$LINENO: result: yes" >&5
1930echo "${ECHO_T}yes" >&6
1931
John Criswell392aaa32003-07-22 19:18:09 +00001932rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00001933ac_clean_files=$ac_clean_files_save
1934# Check the compiler produces executables we can run. If not, either
1935# the compiler is broken, or we cross compile.
1936echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939echo "${ECHO_T}$cross_compiling" >&6
1940
1941echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944 (eval $ac_link) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1950# work properly (i.e., refer to `conftest.exe'), while it won't with
1951# `rm'.
John Criswell392aaa32003-07-22 19:18:09 +00001952for ac_file in conftest.exe conftest conftest.*; do
1953 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001954 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00001955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00001956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1957 export ac_cv_exeext
1958 break;;
1959 * ) break;;
1960 esac
1961done
1962else
John Criswell392aaa32003-07-22 19:18:09 +00001963 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001967 { (exit 1); exit 1; }; }
1968fi
1969
1970rm -f conftest$ac_cv_exeext
1971echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972echo "${ECHO_T}$ac_cv_exeext" >&6
1973
1974rm -f conftest.$ac_ext
1975EXEEXT=$ac_cv_exeext
1976ac_exeext=$EXEEXT
1977echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979if test "${ac_cv_objext+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 cat >conftest.$ac_ext <<_ACEOF
1983#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00001984/* confdefs.h. */
1985_ACEOF
1986cat confdefs.h >>conftest.$ac_ext
1987cat >>conftest.$ac_ext <<_ACEOF
1988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00001989
John Criswell7a73b802003-06-30 21:59:07 +00001990int
1991main ()
1992{
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998rm -f conftest.o conftest.obj
1999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; then
2004 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2005 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00002006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2008 break;;
2009 esac
2010done
2011else
2012 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2016See \`config.log' for more details." >&5
2017echo "$as_me: error: cannot compute suffix of object files: cannot compile
2018See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002019 { (exit 1); exit 1; }; }
2020fi
2021
2022rm -f conftest.$ac_cv_objext conftest.$ac_ext
2023fi
2024echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2025echo "${ECHO_T}$ac_cv_objext" >&6
2026OBJEXT=$ac_cv_objext
2027ac_objext=$OBJEXT
2028echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2029echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2030if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 cat >conftest.$ac_ext <<_ACEOF
2034#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002035/* confdefs.h. */
2036_ACEOF
2037cat confdefs.h >>conftest.$ac_ext
2038cat >>conftest.$ac_ext <<_ACEOF
2039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002040
John Criswell7a73b802003-06-30 21:59:07 +00002041int
2042main ()
2043{
2044#ifndef __GNUC__
2045 choke me
2046#endif
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052rm -f conftest.$ac_objext
2053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_compiler_gnu=yes
2065else
2066 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002067sed 's/^/| /' conftest.$ac_ext >&5
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069ac_compiler_gnu=no
2070fi
2071rm -f conftest.$ac_objext conftest.$ac_ext
2072ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2073
2074fi
2075echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2076echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2077GXX=`test $ac_compiler_gnu = yes && echo yes`
2078ac_test_CXXFLAGS=${CXXFLAGS+set}
2079ac_save_CXXFLAGS=$CXXFLAGS
2080CXXFLAGS="-g"
2081echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2082echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2083if test "${ac_cv_prog_cxx_g+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 cat >conftest.$ac_ext <<_ACEOF
2087#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002088/* confdefs.h. */
2089_ACEOF
2090cat confdefs.h >>conftest.$ac_ext
2091cat >>conftest.$ac_ext <<_ACEOF
2092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002093
John Criswell7a73b802003-06-30 21:59:07 +00002094int
2095main ()
2096{
2097
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102rm -f conftest.$ac_objext
2103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cxx_g=yes
2115else
2116 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002117sed 's/^/| /' conftest.$ac_ext >&5
2118
John Criswell7a73b802003-06-30 21:59:07 +00002119ac_cv_prog_cxx_g=no
2120fi
2121rm -f conftest.$ac_objext conftest.$ac_ext
2122fi
2123echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2124echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2125if test "$ac_test_CXXFLAGS" = set; then
2126 CXXFLAGS=$ac_save_CXXFLAGS
2127elif test $ac_cv_prog_cxx_g = yes; then
2128 if test "$GXX" = yes; then
2129 CXXFLAGS="-g -O2"
2130 else
2131 CXXFLAGS="-g"
2132 fi
2133else
2134 if test "$GXX" = yes; then
2135 CXXFLAGS="-O2"
2136 else
2137 CXXFLAGS=
2138 fi
2139fi
2140for ac_declaration in \
2141 ''\
2142 '#include <stdlib.h>' \
2143 'extern "C" void std::exit (int) throw (); using std::exit;' \
2144 'extern "C" void std::exit (int); using std::exit;' \
2145 'extern "C" void exit (int) throw ();' \
2146 'extern "C" void exit (int);' \
2147 'void exit (int);'
2148do
2149 cat >conftest.$ac_ext <<_ACEOF
2150#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002156#include <stdlib.h>
2157$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002158int
2159main ()
2160{
2161exit (42);
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 :
2179else
2180 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002181sed 's/^/| /' conftest.$ac_ext >&5
2182
John Criswell7a73b802003-06-30 21:59:07 +00002183continue
2184fi
2185rm -f conftest.$ac_objext conftest.$ac_ext
2186 cat >conftest.$ac_ext <<_ACEOF
2187#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002188/* confdefs.h. */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002193$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002194int
2195main ()
2196{
2197exit (42);
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 break
2215else
2216 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002217sed 's/^/| /' conftest.$ac_ext >&5
2218
John Criswell7a73b802003-06-30 21:59:07 +00002219fi
2220rm -f conftest.$ac_objext conftest.$ac_ext
2221done
2222rm -f conftest*
2223if test -n "$ac_declaration"; then
2224 echo '#ifdef __cplusplus' >>confdefs.h
2225 echo $ac_declaration >>confdefs.h
2226 echo '#endif' >>confdefs.h
2227fi
2228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240if test -n "$ac_tool_prefix"; then
2241 for ac_prog in gcc
2242 do
2243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245echo "$as_me:$LINENO: checking for $ac_word" >&5
2246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252else
2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264done
2265done
2266
2267fi
2268fi
2269CC=$ac_cv_prog_CC
2270if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272echo "${ECHO_T}$CC" >&6
2273else
2274 echo "$as_me:$LINENO: result: no" >&5
2275echo "${ECHO_T}no" >&6
2276fi
2277
2278 test -n "$CC" && break
2279 done
2280fi
2281if test -z "$CC"; then
2282 ac_ct_CC=$CC
2283 for ac_prog in gcc
2284do
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286set dummy $ac_prog; ac_word=$2
2287echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
2307done
2308
2309fi
2310fi
2311ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312if test -n "$ac_ct_CC"; then
2313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314echo "${ECHO_T}$ac_ct_CC" >&6
2315else
2316 echo "$as_me:$LINENO: result: no" >&5
2317echo "${ECHO_T}no" >&6
2318fi
2319
2320 test -n "$ac_ct_CC" && break
2321done
2322
2323 CC=$ac_ct_CC
2324fi
2325
2326
John Criswell392aaa32003-07-22 19:18:09 +00002327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002331 { (exit 1); exit 1; }; }
2332
2333# Provide some information about the compiler.
2334echo "$as_me:$LINENO:" \
2335 "checking for C compiler version" >&5
2336ac_compiler=`set X $ac_compile; echo $2`
2337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2338 (eval $ac_compiler --version </dev/null >&5) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2343 (eval $ac_compiler -v </dev/null >&5) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2348 (eval $ac_compiler -V </dev/null >&5) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352
2353echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 cat >conftest.$ac_ext <<_ACEOF
2359#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002360/* confdefs.h. */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002365
John Criswell7a73b802003-06-30 21:59:07 +00002366int
2367main ()
2368{
2369#ifndef __GNUC__
2370 choke me
2371#endif
2372
2373 ;
2374 return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -s conftest.$ac_objext'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2389 ac_compiler_gnu=yes
2390else
2391 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002392sed 's/^/| /' conftest.$ac_ext >&5
2393
John Criswell7a73b802003-06-30 21:59:07 +00002394ac_compiler_gnu=no
2395fi
2396rm -f conftest.$ac_objext conftest.$ac_ext
2397ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398
2399fi
2400echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402GCC=`test $ac_compiler_gnu = yes && echo yes`
2403ac_test_CFLAGS=${CFLAGS+set}
2404ac_save_CFLAGS=$CFLAGS
2405CFLAGS="-g"
2406echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408if test "${ac_cv_prog_cc_g+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 cat >conftest.$ac_ext <<_ACEOF
2412#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 ac_cv_prog_cc_g=yes
2440else
2441 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002442sed 's/^/| /' conftest.$ac_ext >&5
2443
John Criswell7a73b802003-06-30 21:59:07 +00002444ac_cv_prog_cc_g=no
2445fi
2446rm -f conftest.$ac_objext conftest.$ac_ext
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450if test "$ac_test_CFLAGS" = set; then
2451 CFLAGS=$ac_save_CFLAGS
2452elif test $ac_cv_prog_cc_g = yes; then
2453 if test "$GCC" = yes; then
2454 CFLAGS="-g -O2"
2455 else
2456 CFLAGS="-g"
2457 fi
2458else
2459 if test "$GCC" = yes; then
2460 CFLAGS="-O2"
2461 else
2462 CFLAGS=
2463 fi
2464fi
John Criswell392aaa32003-07-22 19:18:09 +00002465echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 ac_cv_prog_cc_stdc=no
2471ac_save_CC=$CC
2472cat >conftest.$ac_ext <<_ACEOF
2473#line $LINENO "configure"
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479#include <stdarg.h>
2480#include <stdio.h>
2481#include <sys/types.h>
2482#include <sys/stat.h>
2483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484struct buf { int x; };
2485FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486static char *e (p, i)
2487 char **p;
2488 int i;
2489{
2490 return p[i];
2491}
2492static char *f (char * (*g) (char **, int), char **p, ...)
2493{
2494 char *s;
2495 va_list v;
2496 va_start (v,p);
2497 s = g (p, va_arg (v,int));
2498 va_end (v);
2499 return s;
2500}
2501int test (int i, double x);
2502struct s1 {int (*f) (int a);};
2503struct s2 {int (*f) (double a);};
2504int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2505int argc;
2506char **argv;
2507int
2508main ()
2509{
2510return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2511 ;
2512 return 0;
2513}
2514_ACEOF
2515# Don't try gcc -ansi; that turns off useful extensions and
2516# breaks some systems' header files.
2517# AIX -qlanglvl=ansi
2518# Ultrix and OSF/1 -std1
2519# HP-UX 10.20 and later -Ae
2520# HP-UX older versions -Aa -D_HPUX_SOURCE
2521# SVR4 -Xc -D__EXTENSIONS__
2522for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2523do
2524 CC="$ac_save_CC $ac_arg"
2525 rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_prog_cc_stdc=$ac_arg
2538break
2539else
2540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543fi
2544rm -f conftest.$ac_objext
2545done
2546rm -f conftest.$ac_ext conftest.$ac_objext
2547CC=$ac_save_CC
2548
2549fi
2550
2551case "x$ac_cv_prog_cc_stdc" in
2552 x|xno)
2553 echo "$as_me:$LINENO: result: none needed" >&5
2554echo "${ECHO_T}none needed" >&6 ;;
2555 *)
2556 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2557echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2558 CC="$CC $ac_cv_prog_cc_stdc" ;;
2559esac
2560
John Criswell7a73b802003-06-30 21:59:07 +00002561# Some people use a C++ compiler to compile C. Since we use `exit',
2562# in C++ we need to declare it. In case someone uses the same compiler
2563# for both compiling C and C++ we need to have the C++ compiler decide
2564# the declaration of exit, since it's the most demanding environment.
2565cat >conftest.$ac_ext <<_ACEOF
2566#ifndef __cplusplus
2567 choke me
2568#endif
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 for ac_declaration in \
2583 ''\
2584 '#include <stdlib.h>' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2590do
2591 cat >conftest.$ac_ext <<_ACEOF
2592#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002593/* confdefs.h. */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002598#include <stdlib.h>
2599$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002600int
2601main ()
2602{
2603exit (42);
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 :
2621else
2622 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002623sed 's/^/| /' conftest.$ac_ext >&5
2624
John Criswell7a73b802003-06-30 21:59:07 +00002625continue
2626fi
2627rm -f conftest.$ac_objext conftest.$ac_ext
2628 cat >conftest.$ac_ext <<_ACEOF
2629#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 break
2657else
2658 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002659sed 's/^/| /' conftest.$ac_ext >&5
2660
John Criswell7a73b802003-06-30 21:59:07 +00002661fi
2662rm -f conftest.$ac_objext conftest.$ac_ext
2663done
2664rm -f conftest*
2665if test -n "$ac_declaration"; then
2666 echo '#ifdef __cplusplus' >>confdefs.h
2667 echo $ac_declaration >>confdefs.h
2668 echo '#endif' >>confdefs.h
2669fi
2670
2671else
2672 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002673sed 's/^/| /' conftest.$ac_ext >&5
2674
John Criswell7a73b802003-06-30 21:59:07 +00002675fi
2676rm -f conftest.$ac_objext conftest.$ac_ext
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683ac_ext=c
2684ac_cpp='$CPP $CPPFLAGS'
2685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2689echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690# On Suns, sometimes $CPP names a directory.
2691if test -n "$CPP" && test -d "$CPP"; then
2692 CPP=
2693fi
2694if test -z "$CPP"; then
2695 if test "${ac_cv_prog_CPP+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 # Double quotes because CPP needs to be expanded
2699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2700 do
2701 ac_preproc_ok=false
2702for ac_c_preproc_warn_flag in '' yes
2703do
2704 # Use a header file that comes with gcc, so configuring glibc
2705 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00002706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002708 # On the NeXT, cc -E runs the code through the compiler's parser,
2709 # not just through cpp. "Syntax error" is here to catch this case.
2710 cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
2717#ifdef __STDC__
2718# include <limits.h>
2719#else
2720# include <assert.h>
2721#endif
John Criswell7a73b802003-06-30 21:59:07 +00002722 Syntax error
2723_ACEOF
2724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2726 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002727 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } >/dev/null; then
2732 if test -s conftest.err; then
2733 ac_cpp_err=$ac_c_preproc_warn_flag
2734 else
2735 ac_cpp_err=
2736 fi
2737else
2738 ac_cpp_err=yes
2739fi
2740if test -z "$ac_cpp_err"; then
2741 :
2742else
2743 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002744sed 's/^/| /' conftest.$ac_ext >&5
2745
John Criswell7a73b802003-06-30 21:59:07 +00002746 # Broken: fails on valid input.
2747continue
2748fi
2749rm -f conftest.err conftest.$ac_ext
2750
2751 # OK, works on sane cases. Now check whether non-existent headers
2752 # can be detected and how.
2753 cat >conftest.$ac_ext <<_ACEOF
2754#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002760#include <ac_nonexistent.h>
2761_ACEOF
2762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2764 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002765 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } >/dev/null; then
2770 if test -s conftest.err; then
2771 ac_cpp_err=$ac_c_preproc_warn_flag
2772 else
2773 ac_cpp_err=
2774 fi
2775else
2776 ac_cpp_err=yes
2777fi
2778if test -z "$ac_cpp_err"; then
2779 # Broken: success on invalid input.
2780continue
2781else
2782 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002783sed 's/^/| /' conftest.$ac_ext >&5
2784
John Criswell7a73b802003-06-30 21:59:07 +00002785 # Passes both tests.
2786ac_preproc_ok=:
2787break
2788fi
2789rm -f conftest.err conftest.$ac_ext
2790
2791done
2792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2793rm -f conftest.err conftest.$ac_ext
2794if $ac_preproc_ok; then
2795 break
2796fi
2797
2798 done
2799 ac_cv_prog_CPP=$CPP
2800
2801fi
2802 CPP=$ac_cv_prog_CPP
2803else
2804 ac_cv_prog_CPP=$CPP
2805fi
2806echo "$as_me:$LINENO: result: $CPP" >&5
2807echo "${ECHO_T}$CPP" >&6
2808ac_preproc_ok=false
2809for ac_c_preproc_warn_flag in '' yes
2810do
2811 # Use a header file that comes with gcc, so configuring glibc
2812 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00002813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002815 # On the NeXT, cc -E runs the code through the compiler's parser,
2816 # not just through cpp. "Syntax error" is here to catch this case.
2817 cat >conftest.$ac_ext <<_ACEOF
2818#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
2824#ifdef __STDC__
2825# include <limits.h>
2826#else
2827# include <assert.h>
2828#endif
John Criswell7a73b802003-06-30 21:59:07 +00002829 Syntax error
2830_ACEOF
2831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002834 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2841 else
2842 ac_cpp_err=
2843 fi
2844else
2845 ac_cpp_err=yes
2846fi
2847if test -z "$ac_cpp_err"; then
2848 :
2849else
2850 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002851sed 's/^/| /' conftest.$ac_ext >&5
2852
John Criswell7a73b802003-06-30 21:59:07 +00002853 # Broken: fails on valid input.
2854continue
2855fi
2856rm -f conftest.err conftest.$ac_ext
2857
2858 # OK, works on sane cases. Now check whether non-existent headers
2859 # can be detected and how.
2860 cat >conftest.$ac_ext <<_ACEOF
2861#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002867#include <ac_nonexistent.h>
2868_ACEOF
2869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00002872 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } >/dev/null; then
2877 if test -s conftest.err; then
2878 ac_cpp_err=$ac_c_preproc_warn_flag
2879 else
2880 ac_cpp_err=
2881 fi
2882else
2883 ac_cpp_err=yes
2884fi
2885if test -z "$ac_cpp_err"; then
2886 # Broken: success on invalid input.
2887continue
2888else
2889 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002890sed 's/^/| /' conftest.$ac_ext >&5
2891
John Criswell7a73b802003-06-30 21:59:07 +00002892 # Passes both tests.
2893ac_preproc_ok=:
2894break
2895fi
2896rm -f conftest.err conftest.$ac_ext
2897
2898done
2899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900rm -f conftest.err conftest.$ac_ext
2901if $ac_preproc_ok; then
2902 :
2903else
John Criswell392aaa32003-07-22 19:18:09 +00002904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2907See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002908 { (exit 1); exit 1; }; }
2909fi
2910
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918if test "$GCC" != "yes"
2919then
2920 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2921echo "$as_me: error: gcc required but not found" >&2;}
2922 { (exit 1); exit 1; }; }
2923fi
2924
2925if test "$GXX" != "yes"
2926then
2927 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2928echo "$as_me: error: g++ required but not found" >&2;}
2929 { (exit 1); exit 1; }; }
2930fi
2931
2932 echo "$as_me:$LINENO: checking for GNU make" >&5
2933echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2934if test "${_cv_gnu_make_command+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 _cv_gnu_make_command='' ;
2938 for a in "$MAKE" make gmake gnumake ; do
2939 if test -z "$a" ; then continue ; fi ;
2940 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2941 _cv_gnu_make_command=$a ;
2942 break;
2943 fi
2944 done ;
2945
2946fi
2947echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2948echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2949 if test "x$_cv_gnu_make_command" != "x" ; then
2950 ifGNUmake='' ;
2951 else
2952 ifGNUmake='#' ;
2953 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2954echo "${ECHO_T}\"Not found\"" >&6;
2955 fi
2956
2957
2958if test -z "$_cv_gnu_make_command"
2959then
2960 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2961echo "$as_me: error: GNU Make required but not found" >&2;}
2962 { (exit 1); exit 1; }; }
2963fi
2964
2965
2966echo "$as_me:$LINENO: checking " >&5
2967echo $ECHO_N "checking ... $ECHO_C" >&6
2968if test "${ac_cv_has_flex+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 for ac_prog in flex lex
2972do
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974set dummy $ac_prog; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_LEX+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$LEX"; then
2981 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_LEX="$ac_prog"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
2996
2997fi
2998fi
2999LEX=$ac_cv_prog_LEX
3000if test -n "$LEX"; then
3001 echo "$as_me:$LINENO: result: $LEX" >&5
3002echo "${ECHO_T}$LEX" >&6
3003else
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006fi
3007
3008 test -n "$LEX" && break
3009done
3010test -n "$LEX" || LEX=":"
3011
3012if test -z "$LEXLIB"
3013then
3014 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3015echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3016if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 ac_check_lib_save_LIBS=$LIBS
3020LIBS="-lfl $LIBS"
3021cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003028
3029/* Override any gcc2 internal prototype to avoid an error. */
3030#ifdef __cplusplus
3031extern "C"
3032#endif
3033/* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3035char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003036int
3037main ()
3038{
3039yywrap ();
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_lib_fl_yywrap=yes
3057else
3058 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003059sed 's/^/| /' conftest.$ac_ext >&5
3060
John Criswell7a73b802003-06-30 21:59:07 +00003061ac_cv_lib_fl_yywrap=no
3062fi
3063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064LIBS=$ac_check_lib_save_LIBS
3065fi
3066echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3067echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3068if test $ac_cv_lib_fl_yywrap = yes; then
3069 LEXLIB="-lfl"
3070else
3071 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3072echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3073if test "${ac_cv_lib_l_yywrap+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076 ac_check_lib_save_LIBS=$LIBS
3077LIBS="-ll $LIBS"
3078cat >conftest.$ac_ext <<_ACEOF
3079#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003085
3086/* Override any gcc2 internal prototype to avoid an error. */
3087#ifdef __cplusplus
3088extern "C"
3089#endif
3090/* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3092char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003093int
3094main ()
3095{
3096yywrap ();
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext conftest$ac_exeext
3102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103 (eval $ac_link) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -s conftest$ac_exeext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_cv_lib_l_yywrap=yes
3114else
3115 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003116sed 's/^/| /' conftest.$ac_ext >&5
3117
John Criswell7a73b802003-06-30 21:59:07 +00003118ac_cv_lib_l_yywrap=no
3119fi
3120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3121LIBS=$ac_check_lib_save_LIBS
3122fi
3123echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3124echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3125if test $ac_cv_lib_l_yywrap = yes; then
3126 LEXLIB="-ll"
3127fi
3128
3129fi
3130
3131fi
3132
3133if test "x$LEX" != "x:"; then
3134 echo "$as_me:$LINENO: checking lex output file root" >&5
3135echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3136if test "${ac_cv_prog_lex_root+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 # The minimal lex program is just a single line: %%. But some broken lexes
3140# (Solaris, I think it was) want two %% lines, so accommodate them.
3141cat >conftest.l <<_ACEOF
3142%%
3143%%
3144_ACEOF
3145{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3146 (eval $LEX conftest.l) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }
3150if test -f lex.yy.c; then
3151 ac_cv_prog_lex_root=lex.yy
3152elif test -f lexyy.c; then
3153 ac_cv_prog_lex_root=lexyy
3154else
3155 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3156echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3157 { (exit 1); exit 1; }; }
3158fi
3159fi
3160echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3161echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3162rm -f conftest.l
3163LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3164
3165echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3166echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3167if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170 # POSIX says lex can declare yytext either as a pointer or an array; the
3171# default is implementation-dependent. Figure out which it is, since
3172# not all implementations provide the %pointer and %array declarations.
3173ac_cv_prog_lex_yytext_pointer=no
3174echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3175ac_save_LIBS=$LIBS
3176LIBS="$LIBS $LEXLIB"
3177cat >conftest.$ac_ext <<_ACEOF
3178`cat $LEX_OUTPUT_ROOT.c`
3179_ACEOF
3180rm -f conftest.$ac_objext conftest$ac_exeext
3181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_lex_yytext_pointer=yes
3193else
3194 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003195sed 's/^/| /' conftest.$ac_ext >&5
3196
John Criswell7a73b802003-06-30 21:59:07 +00003197fi
3198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199LIBS=$ac_save_LIBS
3200rm -f "${LEX_OUTPUT_ROOT}.c"
3201
3202fi
3203echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3204echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3205if test $ac_cv_prog_lex_yytext_pointer = yes; then
3206
3207cat >>confdefs.h <<\_ACEOF
3208#define YYTEXT_POINTER 1
3209_ACEOF
3210
3211fi
3212
3213fi
3214
3215fi
3216echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3217echo "${ECHO_T}$ac_cv_has_flex" >&6
3218if test "$LEX" != "flex"; then
3219 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3220echo "$as_me: error: flex not found but required" >&2;}
3221 { (exit 1); exit 1; }; }
3222fi
3223
3224echo "$as_me:$LINENO: checking " >&5
3225echo $ECHO_N "checking ... $ECHO_C" >&6
3226if test "${ac_cv_has_bison+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229 for ac_prog in 'bison -y' byacc
3230do
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232set dummy $ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_YACC+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238 if test -n "$YACC"; then
3239 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_YACC="$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252done
3253done
3254
3255fi
3256fi
3257YACC=$ac_cv_prog_YACC
3258if test -n "$YACC"; then
3259 echo "$as_me:$LINENO: result: $YACC" >&5
3260echo "${ECHO_T}$YACC" >&6
3261else
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266 test -n "$YACC" && break
3267done
3268test -n "$YACC" || YACC="yacc"
3269
3270
3271fi
3272echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3273echo "${ECHO_T}$ac_cv_has_bison" >&6
3274if test "$YACC" != "bison -y"; then
3275 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3276echo "$as_me: error: bison not found but required" >&2;}
3277 { (exit 1); exit 1; }; }
3278else
3279 YACC=bison
3280
3281fi
3282
3283
3284# Check whether --enable-shared or --disable-shared was given.
3285if test "${enable_shared+set}" = set; then
3286 enableval="$enable_shared"
3287 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003288 case $enableval in
3289 yes) enable_shared=yes ;;
3290 no) enable_shared=no ;;
3291 *)
3292 enable_shared=no
3293 # Look at the argument we got. We use all the common list separators.
3294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295 for pkg in $enableval; do
3296 IFS="$lt_save_ifs"
3297 if test "X$pkg" = "X$p"; then
3298 enable_shared=yes
3299 fi
3300 done
3301 IFS="$lt_save_ifs"
3302 ;;
3303 esac
John Criswell7a73b802003-06-30 21:59:07 +00003304else
3305 enable_shared=yes
3306fi;
John Criswell47fdd832003-07-14 16:52:07 +00003307
John Criswell7a73b802003-06-30 21:59:07 +00003308# Check whether --enable-static or --disable-static was given.
3309if test "${enable_static+set}" = set; then
3310 enableval="$enable_static"
3311 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003312 case $enableval in
3313 yes) enable_static=yes ;;
3314 no) enable_static=no ;;
3315 *)
3316 enable_static=no
3317 # Look at the argument we got. We use all the common list separators.
3318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3319 for pkg in $enableval; do
3320 IFS="$lt_save_ifs"
3321 if test "X$pkg" = "X$p"; then
3322 enable_static=yes
3323 fi
3324 done
3325 IFS="$lt_save_ifs"
3326 ;;
3327 esac
John Criswell7a73b802003-06-30 21:59:07 +00003328else
3329 enable_static=yes
3330fi;
John Criswell47fdd832003-07-14 16:52:07 +00003331
John Criswell7a73b802003-06-30 21:59:07 +00003332# Check whether --enable-fast-install or --disable-fast-install was given.
3333if test "${enable_fast_install+set}" = set; then
3334 enableval="$enable_fast_install"
3335 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003336 case $enableval in
3337 yes) enable_fast_install=yes ;;
3338 no) enable_fast_install=no ;;
3339 *)
3340 enable_fast_install=no
3341 # Look at the argument we got. We use all the common list separators.
3342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3343 for pkg in $enableval; do
3344 IFS="$lt_save_ifs"
3345 if test "X$pkg" = "X$p"; then
3346 enable_fast_install=yes
3347 fi
3348 done
3349 IFS="$lt_save_ifs"
3350 ;;
3351 esac
John Criswell7a73b802003-06-30 21:59:07 +00003352else
3353 enable_fast_install=yes
3354fi;
John Criswell47fdd832003-07-14 16:52:07 +00003355
3356echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3357echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3358if test "${lt_cv_path_SED+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 # Loop through the user's path and test for sed and gsed.
3362# Then use that list of sed's as ones to test for truncation.
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for lt_ac_prog in sed gsed; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3371 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3372 fi
3373 done
3374 done
3375done
3376lt_ac_max=0
3377lt_ac_count=0
3378# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3379# along with /bin/sed that truncates output.
3380for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3381 test ! -f $lt_ac_sed && break
3382 cat /dev/null > conftest.in
3383 lt_ac_count=0
3384 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3385 # Check for GNU sed and select it if it is found.
3386 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3387 lt_cv_path_SED=$lt_ac_sed
3388 break
3389 fi
3390 while true; do
3391 cat conftest.in conftest.in >conftest.tmp
3392 mv conftest.tmp conftest.in
3393 cp conftest.in conftest.nl
3394 echo >>conftest.nl
3395 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3396 cmp -s conftest.out conftest.nl || break
3397 # 10000 chars as input seems more than enough
3398 test $lt_ac_count -gt 10 && break
3399 lt_ac_count=`expr $lt_ac_count + 1`
3400 if test $lt_ac_count -gt $lt_ac_max; then
3401 lt_ac_max=$lt_ac_count
3402 lt_cv_path_SED=$lt_ac_sed
3403 fi
3404 done
3405done
3406SED=$lt_cv_path_SED
3407
John Criswell7a73b802003-06-30 21:59:07 +00003408fi
3409
John Criswell47fdd832003-07-14 16:52:07 +00003410echo "$as_me:$LINENO: result: $SED" >&5
3411echo "${ECHO_T}$SED" >&6
3412
3413echo "$as_me:$LINENO: checking for egrep" >&5
3414echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3415if test "${ac_cv_prog_egrep+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3419 then ac_cv_prog_egrep='grep -E'
3420 else ac_cv_prog_egrep='egrep'
3421 fi
3422fi
3423echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3424echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3425 EGREP=$ac_cv_prog_egrep
3426
3427
John Criswell7a73b802003-06-30 21:59:07 +00003428
3429# Check whether --with-gnu-ld or --without-gnu-ld was given.
3430if test "${with_gnu_ld+set}" = set; then
3431 withval="$with_gnu_ld"
3432 test "$withval" = no || with_gnu_ld=yes
3433else
3434 with_gnu_ld=no
3435fi;
3436ac_prog=ld
3437if test "$GCC" = yes; then
3438 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003439 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3440echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003441 case $host in
3442 *-*-mingw*)
3443 # gcc leaves a trailing carriage return which upsets mingw
3444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3445 *)
3446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3447 esac
3448 case $ac_prog in
3449 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003450 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003451 re_direlt='/[^/][^/]*/\.\./'
3452 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003453 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003454 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003455 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003456 done
3457 test -z "$LD" && LD="$ac_prog"
3458 ;;
3459 "")
3460 # If it fails, then pretend we aren't using GCC.
3461 ac_prog=ld
3462 ;;
3463 *)
3464 # If it is relative, then search for the first ld in PATH.
3465 with_gnu_ld=unknown
3466 ;;
3467 esac
3468elif test "$with_gnu_ld" = yes; then
3469 echo "$as_me:$LINENO: checking for GNU ld" >&5
3470echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3471else
3472 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3473echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3474fi
3475if test "${lt_cv_path_LD+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003480 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003481 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003482 test -z "$ac_dir" && ac_dir=.
3483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3484 lt_cv_path_LD="$ac_dir/$ac_prog"
3485 # Check to see if the program is GNU ld. I'd rather use --version,
3486 # but apparently some GNU ld's only accept -v.
3487 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3489 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003490 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003491 ;;
3492 *)
John Criswell7a73b802003-06-30 21:59:07 +00003493 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003494 ;;
3495 esac
John Criswell7a73b802003-06-30 21:59:07 +00003496 fi
3497 done
John Criswell47fdd832003-07-14 16:52:07 +00003498 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003499else
3500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3501fi
3502fi
3503
3504LD="$lt_cv_path_LD"
3505if test -n "$LD"; then
3506 echo "$as_me:$LINENO: result: $LD" >&5
3507echo "${ECHO_T}$LD" >&6
3508else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511fi
3512test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3513echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3514 { (exit 1); exit 1; }; }
3515echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3516echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3517if test "${lt_cv_prog_gnu_ld+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003521case `"$LD" -v 2>&1 </dev/null` in
3522*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003523 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003524 ;;
3525*)
John Criswell7a73b802003-06-30 21:59:07 +00003526 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003527 ;;
3528esac
John Criswell7a73b802003-06-30 21:59:07 +00003529fi
3530echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3531echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3532with_gnu_ld=$lt_cv_prog_gnu_ld
3533
3534
3535echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3536echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3537if test "${lt_cv_ld_reload_flag+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 lt_cv_ld_reload_flag='-r'
3541fi
3542echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3543echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3544reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003545case $reload_flag in
3546"" | " "*) ;;
3547*) reload_flag=" $reload_flag" ;;
3548esac
3549reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003550
3551echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3552echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3553if test "${lt_cv_path_NM+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if test -n "$NM"; then
3557 # Let the user override the test.
3558 lt_cv_path_NM="$NM"
3559else
John Criswell47fdd832003-07-14 16:52:07 +00003560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003561 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003562 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003563 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003564 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3571 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003572 lt_cv_path_NM="$tmp_nm -B"
3573 break
John Criswell47fdd832003-07-14 16:52:07 +00003574 ;;
3575 *)
3576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3577 */dev/null*)
3578 lt_cv_path_NM="$tmp_nm -p"
3579 break
3580 ;;
3581 *)
3582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583 continue # so that we can try to find one that supports BSD flags
3584 ;;
3585 esac
3586 esac
John Criswell7a73b802003-06-30 21:59:07 +00003587 fi
3588 done
John Criswell47fdd832003-07-14 16:52:07 +00003589 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003590 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3591fi
3592fi
John Criswell47fdd832003-07-14 16:52:07 +00003593echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3594echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003595NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003596
3597echo "$as_me:$LINENO: checking whether ln -s works" >&5
3598echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3599LN_S=$as_ln_s
3600if test "$LN_S" = "ln -s"; then
3601 echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6
3603else
3604 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3605echo "${ECHO_T}no, using $LN_S" >&6
3606fi
3607
John Criswell47fdd832003-07-14 16:52:07 +00003608echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3609echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003610if test "${lt_cv_deplibs_check_method+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613 lt_cv_file_magic_cmd='$MAGIC_CMD'
3614lt_cv_file_magic_test_file=
3615lt_cv_deplibs_check_method='unknown'
3616# Need to set the preceding variable on all platforms that support
3617# interlibrary dependencies.
3618# 'none' -- dependencies not supported.
3619# `unknown' -- same as none, but documents that we really don't know.
3620# 'pass_all' -- all dependencies passed with no checks.
3621# 'test_compile' -- check by making test program.
3622# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003623# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003624# If you have `file' or equivalent on your system and you're not sure
3625# whether `pass_all' will *always* work, you probably want this one.
3626
3627case $host_os in
3628aix4* | aix5*)
3629 lt_cv_deplibs_check_method=pass_all
3630 ;;
3631
3632beos*)
3633 lt_cv_deplibs_check_method=pass_all
3634 ;;
3635
3636bsdi4*)
3637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3638 lt_cv_file_magic_cmd='/usr/bin/file -L'
3639 lt_cv_file_magic_test_file=/shlib/libc.so
3640 ;;
3641
3642cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003643 # win32_libid is a shell function defined in ltmain.sh
3644 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3645 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003646 ;;
3647
3648darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003649 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003650 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3651 lt_cv_file_magic_cmd='/usr/bin/file -L'
3652 case "$host_os" in
3653 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003654 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003655 ;;
3656 *) # Darwin 1.3 on
3657 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3658 ;;
3659 esac
John Criswell47fdd832003-07-14 16:52:07 +00003660 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003661 ;;
3662
3663freebsd*)
3664 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3665 case $host_cpu in
3666 i*86 )
3667 # Not sure whether the presence of OpenBSD here was a mistake.
3668 # Let's accept both of them until this is cleared up.
3669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3670 lt_cv_file_magic_cmd=/usr/bin/file
3671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3672 ;;
3673 esac
3674 else
3675 lt_cv_deplibs_check_method=pass_all
3676 fi
3677 ;;
3678
3679gnu*)
3680 lt_cv_deplibs_check_method=pass_all
3681 ;;
3682
John Criswell47fdd832003-07-14 16:52:07 +00003683hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003684 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003685 case "$host_cpu" in
3686 ia64*)
3687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3689 ;;
3690 hppa*64*)
3691 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]'
3692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3693 ;;
3694 *)
3695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3697 ;;
3698 esac
John Criswell7a73b802003-06-30 21:59:07 +00003699 ;;
3700
John Criswell47fdd832003-07-14 16:52:07 +00003701irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003702 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003703 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003704 # this will be overridden with pass_all, but let us keep it just in case
3705 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3706 ;;
3707 *)
3708 case $LD in
3709 *-32|*"-32 ") libmagic=32-bit;;
3710 *-n32|*"-n32 ") libmagic=N32;;
3711 *-64|*"-64 ") libmagic=64-bit;;
3712 *) libmagic=never-match;;
3713 esac
3714 # this will be overridden with pass_all, but let us keep it just in case
3715 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3716 ;;
3717 esac
3718 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3719 lt_cv_deplibs_check_method=pass_all
3720 ;;
3721
3722# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003723linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003724 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003725 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003726 lt_cv_deplibs_check_method=pass_all ;;
3727 *)
3728 # glibc up to 2.1.1 does not perform some relocations on ARM
3729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3730 esac
3731 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3732 ;;
3733
3734netbsd*)
3735 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003737 else
John Criswell47fdd832003-07-14 16:52:07 +00003738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003739 fi
3740 ;;
3741
3742newos6*)
3743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3744 lt_cv_file_magic_cmd=/usr/bin/file
3745 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3746 ;;
3747
John Criswell47fdd832003-07-14 16:52:07 +00003748nto-qnx)
3749 lt_cv_deplibs_check_method=unknown
3750 ;;
3751
John Criswell7a73b802003-06-30 21:59:07 +00003752openbsd*)
3753 lt_cv_file_magic_cmd=/usr/bin/file
3754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3757 else
3758 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3759 fi
3760 ;;
3761
3762osf3* | osf4* | osf5*)
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3765 lt_cv_file_magic_test_file=/shlib/libc.so
3766 lt_cv_deplibs_check_method=pass_all
3767 ;;
3768
3769sco3.2v5*)
3770 lt_cv_deplibs_check_method=pass_all
3771 ;;
3772
3773solaris*)
3774 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_file_magic_test_file=/lib/libc.so
3776 ;;
3777
John Criswell7a73b802003-06-30 21:59:07 +00003778sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3779 case $host_vendor in
3780 motorola)
3781 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]'
3782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3783 ;;
3784 ncr)
3785 lt_cv_deplibs_check_method=pass_all
3786 ;;
3787 sequent)
3788 lt_cv_file_magic_cmd='/bin/file'
3789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3790 ;;
3791 sni)
3792 lt_cv_file_magic_cmd='/bin/file'
3793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3794 lt_cv_file_magic_test_file=/lib/libc.so
3795 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003796 siemens)
3797 lt_cv_deplibs_check_method=pass_all
3798 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003799 esac
3800 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003801
3802sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3803 lt_cv_deplibs_check_method=pass_all
3804 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003805esac
3806
3807fi
3808echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3809echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3810file_magic_cmd=$lt_cv_file_magic_cmd
3811deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003812test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003813
3814
3815
3816
John Criswell47fdd832003-07-14 16:52:07 +00003817# If no C compiler was specified, use CC.
3818LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00003819
John Criswell47fdd832003-07-14 16:52:07 +00003820# Allow CC to be a program name with arguments.
3821compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00003822
John Criswell47fdd832003-07-14 16:52:07 +00003823# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3824if test "${enable_libtool_lock+set}" = set; then
3825 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00003826
John Criswell47fdd832003-07-14 16:52:07 +00003827fi;
3828test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00003829
John Criswell47fdd832003-07-14 16:52:07 +00003830# Some flags need to be propagated to the compiler or linker for good
3831# libtool support.
3832case $host in
3833ia64-*-hpux*)
3834 # Find out which ABI we are using.
3835 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00003841 case `/usr/bin/file conftest.$ac_objext` in
3842 *ELF-32*)
3843 HPUX_IA64_MODE="32"
3844 ;;
3845 *ELF-64*)
3846 HPUX_IA64_MODE="64"
3847 ;;
3848 esac
3849 fi
3850 rm -rf conftest*
3851 ;;
3852*-*-irix6*)
3853 # Find out which ABI we are using.
John Criswell392aaa32003-07-22 19:18:09 +00003854 echo '#line 3854 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00003855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003859 (exit $ac_status); }; then
3860 if test "$lt_cv_prog_gnu_ld" = yes; then
3861 case `/usr/bin/file conftest.$ac_objext` in
3862 *32-bit*)
3863 LD="${LD-ld} -melf32bsmip"
3864 ;;
3865 *N32*)
3866 LD="${LD-ld} -melf32bmipn32"
3867 ;;
3868 *64-bit*)
3869 LD="${LD-ld} -melf64bmip"
3870 ;;
3871 esac
3872 else
3873 case `/usr/bin/file conftest.$ac_objext` in
3874 *32-bit*)
3875 LD="${LD-ld} -32"
3876 ;;
3877 *N32*)
3878 LD="${LD-ld} -n32"
3879 ;;
3880 *64-bit*)
3881 LD="${LD-ld} -64"
3882 ;;
3883 esac
3884 fi
3885 fi
3886 rm -rf conftest*
3887 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003888
John Criswell47fdd832003-07-14 16:52:07 +00003889x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3890 # Find out which ABI we are using.
3891 echo 'int i;' > conftest.$ac_ext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 case "`/usr/bin/file conftest.o`" in
3898 *32-bit*)
3899 case $host in
3900 x86_64-*linux*)
3901 LD="${LD-ld} -m elf_i386"
3902 ;;
3903 ppc64-*linux*)
3904 LD="${LD-ld} -m elf32ppclinux"
3905 ;;
3906 s390x-*linux*)
3907 LD="${LD-ld} -m elf_s390"
3908 ;;
3909 sparc64-*linux*)
3910 LD="${LD-ld} -m elf32_sparc"
3911 ;;
3912 esac
3913 ;;
3914 *64-bit*)
3915 case $host in
3916 x86_64-*linux*)
3917 LD="${LD-ld} -m elf_x86_64"
3918 ;;
3919 ppc*-*linux*|powerpc*-*linux*)
3920 LD="${LD-ld} -m elf64ppc"
3921 ;;
3922 s390*-*linux*)
3923 LD="${LD-ld} -m elf64_s390"
3924 ;;
3925 sparc*-*linux*)
3926 LD="${LD-ld} -m elf64_sparc"
3927 ;;
3928 esac
3929 ;;
3930 esac
3931 fi
3932 rm -rf conftest*
3933 ;;
3934
3935*-*-sco3.2v5*)
3936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3937 SAVE_CFLAGS="$CFLAGS"
3938 CFLAGS="$CFLAGS -belf"
3939 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3940echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3941if test "${lt_cv_cc_needs_belf+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950 cat >conftest.$ac_ext <<_ACEOF
3951#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00003957
John Criswell47fdd832003-07-14 16:52:07 +00003958int
3959main ()
John Criswell7a73b802003-06-30 21:59:07 +00003960{
John Criswell7a73b802003-06-30 21:59:07 +00003961
John Criswell47fdd832003-07-14 16:52:07 +00003962 ;
3963 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003964}
John Criswell47fdd832003-07-14 16:52:07 +00003965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00003968 (eval $ac_link) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest$ac_exeext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00003979else
John Criswell47fdd832003-07-14 16:52:07 +00003980 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003981sed 's/^/| /' conftest.$ac_ext >&5
3982
John Criswell47fdd832003-07-14 16:52:07 +00003983lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00003984fi
John Criswell47fdd832003-07-14 16:52:07 +00003985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986 ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
John Criswell47fdd832003-07-14 16:52:07 +00003993echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3994echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3997 CFLAGS="$SAVE_CFLAGS"
3998 fi
3999 ;;
4000
4001esac
4002
4003need_locks="$enable_libtool_lock"
4004
John Criswell7a73b802003-06-30 21:59:07 +00004005
4006
4007echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004014/* confdefs.h. */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004019#include <stdlib.h>
4020#include <stdarg.h>
4021#include <string.h>
4022#include <float.h>
4023
John Criswell392aaa32003-07-22 19:18:09 +00004024int
4025main ()
4026{
4027
4028 ;
4029 return 0;
4030}
John Criswell7a73b802003-06-30 21:59:07 +00004031_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +00004032rm -f conftest.$ac_objext
4033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004035 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004044 ac_cv_header_stdc=yes
4045else
4046 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004047sed 's/^/| /' conftest.$ac_ext >&5
4048
4049ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004050fi
John Criswell392aaa32003-07-22 19:18:09 +00004051rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004052
4053if test $ac_cv_header_stdc = yes; then
4054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004057/* confdefs.h. */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004062#include <string.h>
4063
4064_ACEOF
4065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004066 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004067 :
4068else
4069 ac_cv_header_stdc=no
4070fi
4071rm -f conftest*
4072
4073fi
4074
4075if test $ac_cv_header_stdc = yes; then
4076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4078#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004084#include <stdlib.h>
4085
4086_ACEOF
4087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004088 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004089 :
4090else
4091 ac_cv_header_stdc=no
4092fi
4093rm -f conftest*
4094
4095fi
4096
4097if test $ac_cv_header_stdc = yes; then
4098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4099 if test "$cross_compiling" = yes; then
4100 :
4101else
4102 cat >conftest.$ac_ext <<_ACEOF
4103#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004109#include <ctype.h>
4110#if ((' ' & 0x0FF) == 0x020)
4111# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4112# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4113#else
John Criswell392aaa32003-07-22 19:18:09 +00004114# define ISLOWER(c) \
4115 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004116 || ('j' <= (c) && (c) <= 'r') \
4117 || ('s' <= (c) && (c) <= 'z'))
4118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4119#endif
4120
4121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4122int
4123main ()
4124{
4125 int i;
4126 for (i = 0; i < 256; i++)
4127 if (XOR (islower (i), ISLOWER (i))
4128 || toupper (i) != TOUPPER (i))
4129 exit(2);
4130 exit (0);
4131}
4132_ACEOF
4133rm -f conftest$ac_exeext
4134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135 (eval $ac_link) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 :
4145else
4146 echo "$as_me: program exited with status $ac_status" >&5
4147echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004148sed 's/^/| /' conftest.$ac_ext >&5
4149
John Criswell7a73b802003-06-30 21:59:07 +00004150( exit $ac_status )
4151ac_cv_header_stdc=no
4152fi
John Criswell392aaa32003-07-22 19:18:09 +00004153rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004154fi
4155fi
4156fi
4157echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4158echo "${ECHO_T}$ac_cv_header_stdc" >&6
4159if test $ac_cv_header_stdc = yes; then
4160
4161cat >>confdefs.h <<\_ACEOF
4162#define STDC_HEADERS 1
4163_ACEOF
4164
4165fi
4166
4167# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4178 inttypes.h stdint.h unistd.h
4179do
4180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4181echo "$as_me:$LINENO: checking for $ac_header" >&5
4182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4183if eval "test \"\${$as_ac_Header+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 cat >conftest.$ac_ext <<_ACEOF
4187#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004193$ac_includes_default
4194
4195#include <$ac_header>
4196_ACEOF
4197rm -f conftest.$ac_objext
4198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 eval "$as_ac_Header=yes"
4210else
4211 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004212sed 's/^/| /' conftest.$ac_ext >&5
4213
John Criswell7a73b802003-06-30 21:59:07 +00004214eval "$as_ac_Header=no"
4215fi
4216rm -f conftest.$ac_objext conftest.$ac_ext
4217fi
4218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220if test `eval echo '${'$as_ac_Header'}'` = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223_ACEOF
4224
4225fi
4226
4227done
4228
4229
4230
4231for ac_header in dlfcn.h
4232do
4233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234if eval "test \"\${$as_ac_Header+set}\" = set"; then
4235 echo "$as_me:$LINENO: checking for $ac_header" >&5
4236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239fi
4240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4242else
4243 # Is the header compilable?
4244echo "$as_me:$LINENO: checking $ac_header usability" >&5
4245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4246cat >conftest.$ac_ext <<_ACEOF
4247#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004253$ac_includes_default
4254#include <$ac_header>
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_header_compiler=yes
4269else
4270 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004271sed 's/^/| /' conftest.$ac_ext >&5
4272
John Criswell7a73b802003-06-30 21:59:07 +00004273ac_header_compiler=no
4274fi
4275rm -f conftest.$ac_objext conftest.$ac_ext
4276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4277echo "${ECHO_T}$ac_header_compiler" >&6
4278
4279# Is the header present?
4280echo "$as_me:$LINENO: checking $ac_header presence" >&5
4281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4282cat >conftest.$ac_ext <<_ACEOF
4283#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004289#include <$ac_header>
4290_ACEOF
4291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4293 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004294 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } >/dev/null; then
4299 if test -s conftest.err; then
4300 ac_cpp_err=$ac_c_preproc_warn_flag
4301 else
4302 ac_cpp_err=
4303 fi
4304else
4305 ac_cpp_err=yes
4306fi
4307if test -z "$ac_cpp_err"; then
4308 ac_header_preproc=yes
4309else
4310 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004311sed 's/^/| /' conftest.$ac_ext >&5
4312
John Criswell7a73b802003-06-30 21:59:07 +00004313 ac_header_preproc=no
4314fi
4315rm -f conftest.err conftest.$ac_ext
4316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4317echo "${ECHO_T}$ac_header_preproc" >&6
4318
4319# So? What about this header?
4320case $ac_header_compiler:$ac_header_preproc in
4321 yes:no )
4322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4326 (
4327 cat <<\_ASBOX
4328## ------------------------------------ ##
4329## Report this to bug-autoconf@gnu.org. ##
4330## ------------------------------------ ##
4331_ASBOX
4332 ) |
4333 sed "s/^/$as_me: WARNING: /" >&2
4334 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004335 no:yes )
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4342 (
4343 cat <<\_ASBOX
4344## ------------------------------------ ##
4345## Report this to bug-autoconf@gnu.org. ##
4346## ------------------------------------ ##
4347_ASBOX
4348 ) |
4349 sed "s/^/$as_me: WARNING: /" >&2
4350 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004351esac
4352echo "$as_me:$LINENO: checking for $ac_header" >&5
4353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 eval "$as_ac_Header=$ac_header_preproc"
4358fi
4359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361
4362fi
4363if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364 cat >>confdefs.h <<_ACEOF
4365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366_ACEOF
4367
4368fi
4369
4370done
4371
John Criswell47fdd832003-07-14 16:52:07 +00004372ac_ext=cc
4373ac_cpp='$CXXCPP $CPPFLAGS'
4374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4377echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4378echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4379if test -z "$CXXCPP"; then
4380 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
John Criswell47fdd832003-07-14 16:52:07 +00004383 # Double quotes because CXXCPP needs to be expanded
4384 for CXXCPP in "$CXX -E" "/lib/cpp"
4385 do
4386 ac_preproc_ok=false
4387for ac_cxx_preproc_warn_flag in '' yes
4388do
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat >conftest.$ac_ext <<_ACEOF
4396#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004397/* confdefs.h. */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h. */
4402#ifdef __STDC__
4403# include <limits.h>
4404#else
4405# include <assert.h>
4406#endif
John Criswell47fdd832003-07-14 16:52:07 +00004407 Syntax error
4408_ACEOF
4409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004412 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } >/dev/null; then
4417 if test -s conftest.err; then
4418 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004419 else
John Criswell47fdd832003-07-14 16:52:07 +00004420 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004421 fi
John Criswell47fdd832003-07-14 16:52:07 +00004422else
4423 ac_cpp_err=yes
4424fi
4425if test -z "$ac_cpp_err"; then
4426 :
4427else
4428 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004429sed 's/^/| /' conftest.$ac_ext >&5
4430
John Criswell47fdd832003-07-14 16:52:07 +00004431 # Broken: fails on valid input.
4432continue
4433fi
4434rm -f conftest.err conftest.$ac_ext
4435
4436 # OK, works on sane cases. Now check whether non-existent headers
4437 # can be detected and how.
4438 cat >conftest.$ac_ext <<_ACEOF
4439#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004440/* confdefs.h. */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004445#include <ac_nonexistent.h>
4446_ACEOF
4447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4449 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004450 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } >/dev/null; then
4455 if test -s conftest.err; then
4456 ac_cpp_err=$ac_cxx_preproc_warn_flag
4457 else
4458 ac_cpp_err=
4459 fi
4460else
4461 ac_cpp_err=yes
4462fi
4463if test -z "$ac_cpp_err"; then
4464 # Broken: success on invalid input.
4465continue
4466else
4467 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004468sed 's/^/| /' conftest.$ac_ext >&5
4469
John Criswell47fdd832003-07-14 16:52:07 +00004470 # Passes both tests.
4471ac_preproc_ok=:
4472break
4473fi
4474rm -f conftest.err conftest.$ac_ext
4475
4476done
4477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478rm -f conftest.err conftest.$ac_ext
4479if $ac_preproc_ok; then
4480 break
John Criswell7a73b802003-06-30 21:59:07 +00004481fi
4482
John Criswell47fdd832003-07-14 16:52:07 +00004483 done
4484 ac_cv_prog_CXXCPP=$CXXCPP
4485
4486fi
4487 CXXCPP=$ac_cv_prog_CXXCPP
4488else
4489 ac_cv_prog_CXXCPP=$CXXCPP
4490fi
4491echo "$as_me:$LINENO: result: $CXXCPP" >&5
4492echo "${ECHO_T}$CXXCPP" >&6
4493ac_preproc_ok=false
4494for ac_cxx_preproc_warn_flag in '' yes
4495do
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat >conftest.$ac_ext <<_ACEOF
4503#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509#ifdef __STDC__
4510# include <limits.h>
4511#else
4512# include <assert.h>
4513#endif
John Criswell47fdd832003-07-14 16:52:07 +00004514 Syntax error
4515_ACEOF
4516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004519 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_cxx_preproc_warn_flag
4526 else
4527 ac_cpp_err=
4528 fi
4529else
4530 ac_cpp_err=yes
4531fi
4532if test -z "$ac_cpp_err"; then
4533 :
4534else
4535 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004536sed 's/^/| /' conftest.$ac_ext >&5
4537
John Criswell47fdd832003-07-14 16:52:07 +00004538 # Broken: fails on valid input.
4539continue
4540fi
4541rm -f conftest.err conftest.$ac_ext
4542
4543 # OK, works on sane cases. Now check whether non-existent headers
4544 # can be detected and how.
4545 cat >conftest.$ac_ext <<_ACEOF
4546#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004552#include <ac_nonexistent.h>
4553_ACEOF
4554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4556 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004557 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } >/dev/null; then
4562 if test -s conftest.err; then
4563 ac_cpp_err=$ac_cxx_preproc_warn_flag
4564 else
4565 ac_cpp_err=
4566 fi
4567else
4568 ac_cpp_err=yes
4569fi
4570if test -z "$ac_cpp_err"; then
4571 # Broken: success on invalid input.
4572continue
4573else
4574 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004575sed 's/^/| /' conftest.$ac_ext >&5
4576
John Criswell47fdd832003-07-14 16:52:07 +00004577 # Passes both tests.
4578ac_preproc_ok=:
4579break
4580fi
4581rm -f conftest.err conftest.$ac_ext
4582
4583done
4584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585rm -f conftest.err conftest.$ac_ext
4586if $ac_preproc_ok; then
4587 :
4588else
John Criswell392aaa32003-07-22 19:18:09 +00004589 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4590See \`config.log' for more details." >&5
4591echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4592See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004593 { (exit 1); exit 1; }; }
4594fi
4595
4596ac_ext=cc
4597ac_cpp='$CXXCPP $CPPFLAGS'
4598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4601
4602
4603ac_ext=f
4604ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4605ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4607if test -n "$ac_tool_prefix"; then
John Criswell392aaa32003-07-22 19:18:09 +00004608 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 +00004609 do
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4614if test "${ac_cv_prog_F77+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$F77"; then
4618 ac_cv_prog_F77="$F77" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633
4634fi
4635fi
4636F77=$ac_cv_prog_F77
4637if test -n "$F77"; then
4638 echo "$as_me:$LINENO: result: $F77" >&5
4639echo "${ECHO_T}$F77" >&6
4640else
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
4644
4645 test -n "$F77" && break
4646 done
4647fi
4648if test -z "$F77"; then
4649 ac_ct_F77=$F77
John Criswell392aaa32003-07-22 19:18:09 +00004650 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 +00004651do
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653set dummy $ac_prog; ac_word=$2
4654echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 if test -n "$ac_ct_F77"; then
4660 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_ac_ct_F77="$ac_prog"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673done
4674done
4675
4676fi
4677fi
4678ac_ct_F77=$ac_cv_prog_ac_ct_F77
4679if test -n "$ac_ct_F77"; then
4680 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4681echo "${ECHO_T}$ac_ct_F77" >&6
4682else
4683 echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685fi
4686
4687 test -n "$ac_ct_F77" && break
4688done
4689
4690 F77=$ac_ct_F77
4691fi
4692
4693
4694# Provide some information about the compiler.
John Criswell392aaa32003-07-22 19:18:09 +00004695echo "$as_me:4695:" \
John Criswell47fdd832003-07-14 16:52:07 +00004696 "checking for Fortran 77 compiler version" >&5
4697ac_compiler=`set X $ac_compile; echo $2`
4698{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4699 (eval $ac_compiler --version </dev/null >&5) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }
4703{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4704 (eval $ac_compiler -v </dev/null >&5) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4709 (eval $ac_compiler -V </dev/null >&5) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }
4713
4714# If we don't use `.F' as extension, the preprocessor is not run on the
4715# input file.
4716ac_save_ext=$ac_ext
4717ac_ext=F
4718echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4719echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4720if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 cat >conftest.$ac_ext <<_ACEOF
4724 program main
4725#ifndef __GNUC__
4726 choke me
4727#endif
4728
4729 end
4730_ACEOF
4731rm -f conftest.$ac_objext
4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_compiler_gnu=yes
4744else
4745 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004746sed 's/^/| /' conftest.$ac_ext >&5
4747
John Criswell47fdd832003-07-14 16:52:07 +00004748ac_compiler_gnu=no
4749fi
4750rm -f conftest.$ac_objext conftest.$ac_ext
4751ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4752
4753fi
4754echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4755echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4756ac_ext=$ac_save_ext
4757G77=`test $ac_compiler_gnu = yes && echo yes`
4758ac_test_FFLAGS=${FFLAGS+set}
4759ac_save_FFLAGS=$FFLAGS
4760FFLAGS=
4761echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4762echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4763if test "${ac_cv_prog_f77_g+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766 FFLAGS=-g
4767cat >conftest.$ac_ext <<_ACEOF
4768 program main
4769
4770 end
4771_ACEOF
4772rm -f conftest.$ac_objext
4773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 ac_cv_prog_f77_g=yes
4785else
4786 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004787sed 's/^/| /' conftest.$ac_ext >&5
4788
John Criswell47fdd832003-07-14 16:52:07 +00004789ac_cv_prog_f77_g=no
4790fi
4791rm -f conftest.$ac_objext conftest.$ac_ext
4792
4793fi
4794echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4795echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4796if test "$ac_test_FFLAGS" = set; then
4797 FFLAGS=$ac_save_FFLAGS
4798elif test $ac_cv_prog_f77_g = yes; then
4799 if test "$G77" = yes; then
4800 FFLAGS="-g -O2"
4801 else
4802 FFLAGS="-g"
4803 fi
4804else
4805 if test "$G77" = yes; then
4806 FFLAGS="-O2"
4807 else
4808 FFLAGS=
4809 fi
4810fi
4811ac_ext=c
4812ac_cpp='$CPP $CPPFLAGS'
4813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816
4817
4818
4819# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4820
4821# find the maximum length of command line arguments
4822echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4823echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4824if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 i=0
4828 testring="ABCD"
4829
4830 case $build_os in
4831 msdosdjgpp*)
4832 # On DJGPP, this test can blow up pretty badly due to problems in libc
4833 # (any single argument exceeding 2000 bytes causes a buffer overrun
4834 # during glob expansion). Even if it were fixed, the result of this
4835 # check would be larger than it should be.
4836 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4837 ;;
4838
4839 gnu*)
4840 # Under GNU Hurd, this test is not required because there is
4841 # no limit to the length of command line arguments.
4842 # Libtool will interpret -1 as no limit whatsoever
4843 lt_cv_sys_max_cmd_len=-1;
4844 ;;
4845
4846 cygwin* | mingw*)
4847 # On Win9x/ME, this test blows up -- it succeeds, but takes
4848 # about 5 minutes as the teststring grows exponentially.
4849 # Worse, since 9x/ME are not pre-emptively multitasking,
4850 # you end up with a "frozen" computer, even though with patience
4851 # the test eventually succeeds (with a max line length of 256k).
4852 # Instead, let's just punt: use the minimum linelength reported by
4853 # all of the supported platforms: 8192 (on NT/2K/XP).
4854 lt_cv_sys_max_cmd_len=8192;
4855 ;;
4856
4857 *)
4858 # If test is not a shell built-in, we'll probably end up computing a
4859 # maximum length that is only half of the actual maximum length, but
4860 # we can't tell.
4861 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4862 = "XX$testring") >/dev/null 2>&1 &&
4863 new_result=`expr "X$testring" : ".*" 2>&1` &&
4864 lt_cv_sys_max_cmd_len=$new_result &&
4865 test $i != 17 # 1/2 MB should be enough
4866 do
4867 i=`expr $i + 1`
4868 testring=$testring$testring
4869 done
4870 testring=
4871 # Add a significant safety factor because C++ compilers can tack on massive
4872 # amounts of additional arguments before passing them to the linker.
4873 # It appears as though 1/2 is a usable value.
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875 ;;
4876 esac
4877
4878fi
4879
4880if test -n $lt_cv_sys_max_cmd_len ; then
4881 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4882echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4883else
4884 echo "$as_me:$LINENO: result: none" >&5
4885echo "${ECHO_T}none" >&6
4886fi
4887
4888
4889
4890
4891# Check for command to grab the raw symbol name followed by C symbol from nm.
4892echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4893echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4894if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897
4898# These are sane defaults that work on at least a few old systems.
4899# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4900
4901# Character class describing NM global symbol codes.
4902symcode='[BCDEGRST]'
4903
4904# Regexp to match symbols that can be accessed directly from C.
4905sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4906
4907# Transform the above into a raw symbol and a C symbol.
4908symxfrm='\1 \2\3 \3'
4909
4910# Transform an extracted symbol line into a proper C declaration
4911lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4912
4913# Transform an extracted symbol line into symbol name and symbol address
4914lt_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'"
4915
4916# Define system-specific variables.
4917case $host_os in
4918aix*)
4919 symcode='[BCDT]'
4920 ;;
4921cygwin* | mingw* | pw32*)
4922 symcode='[ABCDGISTW]'
4923 ;;
4924hpux*) # Its linker distinguishes data from code symbols
4925 if test "$host_cpu" = ia64; then
4926 symcode='[ABCDEGRST]'
4927 fi
4928 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4929 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'"
4930 ;;
4931irix* | nonstopux*)
4932 symcode='[BCDEGRST]'
4933 ;;
4934osf*)
4935 symcode='[BCDEGQRST]'
4936 ;;
4937solaris* | sysv5*)
4938 symcode='[BDT]'
4939 ;;
4940sysv4)
4941 symcode='[DFNSTU]'
4942 ;;
4943esac
4944
4945# Handle CRLF in mingw tool chain
4946opt_cr=
4947case $build_os in
4948mingw*)
4949 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4950 ;;
4951esac
4952
4953# If we're using GNU nm, then use its standard symbol codes.
4954case `$NM -V 2>&1` in
4955*GNU* | *'with BFD'*)
4956 symcode='[ABCDGISTW]' ;;
4957esac
4958
4959# Try without a prefix undercore, then with it.
4960for ac_symprfx in "" "_"; do
4961
4962 # Write the raw and C identifiers.
4963 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4964
4965 # Check to see that the pipe works correctly.
4966 pipe_works=no
4967
4968 rm -f conftest*
4969 cat > conftest.$ac_ext <<EOF
4970#ifdef __cplusplus
4971extern "C" {
4972#endif
4973char nm_test_var;
4974void nm_test_func(){}
4975#ifdef __cplusplus
4976}
4977#endif
4978int main(){nm_test_var='a';nm_test_func();return(0);}
4979EOF
4980
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; then
4986 # Now try to grab the symbols.
4987 nlist=conftest.nm
4988 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4989 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && test -s "$nlist"; then
4993 # Try sorting and uniquifying the output.
4994 if sort "$nlist" | uniq > "$nlist"T; then
4995 mv -f "$nlist"T "$nlist"
4996 else
4997 rm -f "$nlist"T
4998 fi
4999
5000 # Make sure that we snagged all the symbols we need.
5001 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5002 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5003 cat <<EOF > conftest.$ac_ext
5004#ifdef __cplusplus
5005extern "C" {
5006#endif
5007
5008EOF
5009 # Now generate the symbol file.
5010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5011
5012 cat <<EOF >> conftest.$ac_ext
5013#if defined (__STDC__) && __STDC__
5014# define lt_ptr_t void *
5015#else
5016# define lt_ptr_t char *
5017# define const
5018#endif
5019
5020/* The mapping between symbol names and symbols. */
5021const struct {
5022 const char *name;
5023 lt_ptr_t address;
5024}
5025lt_preloaded_symbols[] =
5026{
5027EOF
5028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5029 cat <<\EOF >> conftest.$ac_ext
5030 {0, (lt_ptr_t) 0}
5031};
5032
5033#ifdef __cplusplus
5034}
5035#endif
5036EOF
5037 # Now try linking the two files.
5038 mv conftest.$ac_objext conftstm.$ac_objext
5039 lt_save_LIBS="$LIBS"
5040 lt_save_CFLAGS="$CFLAGS"
5041 LIBS="conftstm.$ac_objext"
5042 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044 (eval $ac_link) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5048 pipe_works=yes
5049 fi
5050 LIBS="$lt_save_LIBS"
5051 CFLAGS="$lt_save_CFLAGS"
5052 else
5053 echo "cannot find nm_test_func in $nlist" >&5
5054 fi
5055 else
5056 echo "cannot find nm_test_var in $nlist" >&5
5057 fi
5058 else
5059 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5060 fi
5061 else
5062 echo "$progname: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5064 fi
5065 rm -f conftest* conftst*
5066
5067 # Do not use the global_symbol_pipe unless it works.
5068 if test "$pipe_works" = yes; then
5069 break
5070 else
5071 lt_cv_sys_global_symbol_pipe=
5072 fi
5073done
5074
5075fi
5076
5077if test -z "$lt_cv_sys_global_symbol_pipe"; then
5078 lt_cv_sys_global_symbol_to_cdecl=
5079fi
5080if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5081 echo "$as_me:$LINENO: result: failed" >&5
5082echo "${ECHO_T}failed" >&6
5083else
5084 echo "$as_me:$LINENO: result: ok" >&5
5085echo "${ECHO_T}ok" >&6
5086fi
5087
5088echo "$as_me:$LINENO: checking for objdir" >&5
5089echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5090if test "${lt_cv_objdir+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 rm -f .libs 2>/dev/null
5094mkdir .libs 2>/dev/null
5095if test -d .libs; then
5096 lt_cv_objdir=.libs
5097else
5098 # MS-DOS does not allow filenames that begin with a dot.
5099 lt_cv_objdir=_libs
5100fi
5101rmdir .libs 2>/dev/null
5102fi
5103echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5104echo "${ECHO_T}$lt_cv_objdir" >&6
5105objdir=$lt_cv_objdir
5106
5107
5108
5109
5110
5111case $host_os in
5112aix3*)
5113 # AIX sometimes has problems with the GCC collect2 program. For some
5114 # reason, if we set the COLLECT_NAMES environment variable, the problems
5115 # vanish in a puff of smoke.
5116 if test "X${COLLECT_NAMES+set}" != Xset; then
5117 COLLECT_NAMES=
5118 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005119 fi
5120 ;;
5121esac
5122
John Criswell47fdd832003-07-14 16:52:07 +00005123# Sed substitution that helps us do robust quoting. It backslashifies
5124# metacharacters that are still active within double-quoted strings.
5125Xsed='sed -e s/^X//'
5126sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5127
5128# Same as above, but do not quote variable references.
5129double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5130
5131# Sed substitution to delay expansion of an escaped shell variable in a
5132# double_quote_subst'ed string.
5133delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5134
5135# Sed substitution to avoid accidental globbing in evaled expressions
5136no_glob_subst='s/\*/\\\*/g'
5137
5138# Constants:
5139rm="rm -f"
5140
5141# Global variables:
5142default_ofile=libtool
5143can_build_shared=yes
5144
5145# All known linkers require a `.a' archive for static linking (except M$VC,
5146# which needs '.lib').
5147libext=a
5148ltmain="$ac_aux_dir/ltmain.sh"
5149ofile="$default_ofile"
5150with_gnu_ld="$lt_cv_prog_gnu_ld"
5151
5152if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}ar; ac_word=$2
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_prog_AR+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 if test -n "$AR"; then
5161 ac_cv_prog_AR="$AR" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_AR="${ac_tool_prefix}ar"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175done
5176
5177fi
5178fi
5179AR=$ac_cv_prog_AR
5180if test -n "$AR"; then
5181 echo "$as_me:$LINENO: result: $AR" >&5
5182echo "${ECHO_T}$AR" >&6
5183else
5184 echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
5187
5188fi
5189if test -z "$ac_cv_prog_AR"; then
5190 ac_ct_AR=$AR
5191 # Extract the first word of "ar", so it can be a program name with args.
5192set dummy ar; ac_word=$2
5193echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 if test -n "$ac_ct_AR"; then
5199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_AR="ar"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213done
5214
5215 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5216fi
5217fi
5218ac_ct_AR=$ac_cv_prog_ac_ct_AR
5219if test -n "$ac_ct_AR"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5221echo "${ECHO_T}$ac_ct_AR" >&6
5222else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225fi
5226
5227 AR=$ac_ct_AR
5228else
5229 AR="$ac_cv_prog_AR"
5230fi
5231
John Criswell7a73b802003-06-30 21:59:07 +00005232if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5234set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5235echo "$as_me:$LINENO: checking for $ac_word" >&5
5236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237if test "${ac_cv_prog_RANLIB+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240 if test -n "$RANLIB"; then
5241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254done
5255done
5256
5257fi
5258fi
5259RANLIB=$ac_cv_prog_RANLIB
5260if test -n "$RANLIB"; then
5261 echo "$as_me:$LINENO: result: $RANLIB" >&5
5262echo "${ECHO_T}$RANLIB" >&6
5263else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266fi
5267
5268fi
5269if test -z "$ac_cv_prog_RANLIB"; then
5270 ac_ct_RANLIB=$RANLIB
5271 # Extract the first word of "ranlib", so it can be a program name with args.
5272set dummy ranlib; ac_word=$2
5273echo "$as_me:$LINENO: checking for $ac_word" >&5
5274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278 if test -n "$ac_ct_RANLIB"; then
5279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_RANLIB="ranlib"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292done
5293done
5294
5295 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5296fi
5297fi
5298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299if test -n "$ac_ct_RANLIB"; then
5300 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5301echo "${ECHO_T}$ac_ct_RANLIB" >&6
5302else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305fi
5306
5307 RANLIB=$ac_ct_RANLIB
5308else
5309 RANLIB="$ac_cv_prog_RANLIB"
5310fi
5311
5312if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314set dummy ${ac_tool_prefix}strip; ac_word=$2
5315echo "$as_me:$LINENO: checking for $ac_word" >&5
5316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317if test "${ac_cv_prog_STRIP+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320 if test -n "$STRIP"; then
5321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334done
5335done
5336
5337fi
5338fi
5339STRIP=$ac_cv_prog_STRIP
5340if test -n "$STRIP"; then
5341 echo "$as_me:$LINENO: result: $STRIP" >&5
5342echo "${ECHO_T}$STRIP" >&6
5343else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346fi
5347
5348fi
5349if test -z "$ac_cv_prog_STRIP"; then
5350 ac_ct_STRIP=$STRIP
5351 # Extract the first word of "strip", so it can be a program name with args.
5352set dummy strip; ac_word=$2
5353echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 if test -n "$ac_ct_STRIP"; then
5359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_ac_ct_STRIP="strip"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373done
5374
5375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5376fi
5377fi
5378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5379if test -n "$ac_ct_STRIP"; then
5380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5381echo "${ECHO_T}$ac_ct_STRIP" >&6
5382else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385fi
5386
5387 STRIP=$ac_ct_STRIP
5388else
5389 STRIP="$ac_cv_prog_STRIP"
5390fi
5391
5392
John Criswell7a73b802003-06-30 21:59:07 +00005393old_CC="$CC"
5394old_CFLAGS="$CFLAGS"
5395
5396# Set sane defaults for various variables
5397test -z "$AR" && AR=ar
5398test -z "$AR_FLAGS" && AR_FLAGS=cru
5399test -z "$AS" && AS=as
5400test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005401test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005402test -z "$DLLTOOL" && DLLTOOL=dlltool
5403test -z "$LD" && LD=ld
5404test -z "$LN_S" && LN_S="ln -s"
5405test -z "$MAGIC_CMD" && MAGIC_CMD=file
5406test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005407test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005408test -z "$OBJDUMP" && OBJDUMP=objdump
5409test -z "$RANLIB" && RANLIB=:
5410test -z "$STRIP" && STRIP=:
5411test -z "$ac_objext" && ac_objext=o
5412
John Criswell7a73b802003-06-30 21:59:07 +00005413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
5417
5418if test -n "$RANLIB"; then
5419 case $host_os in
5420 openbsd*)
5421 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5422 ;;
5423 *)
5424 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5425 ;;
5426 esac
5427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5428fi
5429
John Criswell47fdd832003-07-14 16:52:07 +00005430# Only perform the check for file, if the check method requires it
5431case $deplibs_check_method in
5432file_magic*)
5433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5434 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5435echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5436if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005438else
John Criswell47fdd832003-07-14 16:52:07 +00005439 case $MAGIC_CMD in
5440[\\/*] | ?:[\\/]*)
5441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5442 ;;
5443*)
5444 lt_save_MAGIC_CMD="$MAGIC_CMD"
5445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5447 for ac_dir in $ac_dummy; do
5448 IFS="$lt_save_ifs"
5449 test -z "$ac_dir" && ac_dir=.
5450 if test -f $ac_dir/${ac_tool_prefix}file; then
5451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5452 if test -n "$file_magic_test_file"; then
5453 case $deplibs_check_method in
5454 "file_magic "*)
5455 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5458 $EGREP "$file_magic_regex" > /dev/null; then
5459 :
5460 else
5461 cat <<EOF 1>&2
5462
5463*** Warning: the command libtool uses to detect shared libraries,
5464*** $file_magic_cmd, produces output that libtool cannot recognize.
5465*** The result is that libtool may fail to recognize shared libraries
5466*** as such. This will affect the creation of libtool libraries that
5467*** depend on shared libraries, but programs linked with such libtool
5468*** libraries will work regardless of this problem. Nevertheless, you
5469*** may want to report the problem to your system manager and/or to
5470*** bug-libtool@gnu.org
5471
5472EOF
5473 fi ;;
5474 esac
5475 fi
5476 break
5477 fi
5478 done
5479 IFS="$lt_save_ifs"
5480 MAGIC_CMD="$lt_save_MAGIC_CMD"
5481 ;;
5482esac
John Criswell7a73b802003-06-30 21:59:07 +00005483fi
John Criswell7a73b802003-06-30 21:59:07 +00005484
John Criswell47fdd832003-07-14 16:52:07 +00005485MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5486if test -n "$MAGIC_CMD"; then
5487 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5488echo "${ECHO_T}$MAGIC_CMD" >&6
5489else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492fi
John Criswell7a73b802003-06-30 21:59:07 +00005493
John Criswell47fdd832003-07-14 16:52:07 +00005494if test -z "$lt_cv_path_MAGIC_CMD"; then
5495 if test -n "$ac_tool_prefix"; then
5496 echo "$as_me:$LINENO: checking for file" >&5
5497echo $ECHO_N "checking for file... $ECHO_C" >&6
5498if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 case $MAGIC_CMD in
5502[\\/*] | ?:[\\/]*)
5503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5504 ;;
5505*)
5506 lt_save_MAGIC_CMD="$MAGIC_CMD"
5507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5509 for ac_dir in $ac_dummy; do
5510 IFS="$lt_save_ifs"
5511 test -z "$ac_dir" && ac_dir=.
5512 if test -f $ac_dir/file; then
5513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5514 if test -n "$file_magic_test_file"; then
5515 case $deplibs_check_method in
5516 "file_magic "*)
5517 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5520 $EGREP "$file_magic_regex" > /dev/null; then
5521 :
5522 else
5523 cat <<EOF 1>&2
5524
5525*** Warning: the command libtool uses to detect shared libraries,
5526*** $file_magic_cmd, produces output that libtool cannot recognize.
5527*** The result is that libtool may fail to recognize shared libraries
5528*** as such. This will affect the creation of libtool libraries that
5529*** depend on shared libraries, but programs linked with such libtool
5530*** libraries will work regardless of this problem. Nevertheless, you
5531*** may want to report the problem to your system manager and/or to
5532*** bug-libtool@gnu.org
5533
5534EOF
5535 fi ;;
5536 esac
5537 fi
5538 break
5539 fi
5540 done
5541 IFS="$lt_save_ifs"
5542 MAGIC_CMD="$lt_save_MAGIC_CMD"
5543 ;;
5544esac
5545fi
5546
5547MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5548if test -n "$MAGIC_CMD"; then
5549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5550echo "${ECHO_T}$MAGIC_CMD" >&6
5551else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554fi
5555
5556 else
5557 MAGIC_CMD=:
5558 fi
5559fi
5560
5561 fi
5562 ;;
5563esac
5564
5565enable_dlopen=no
5566enable_win32_dll=no
5567
5568# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5571
5572fi;
5573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5574
John Criswell7a73b802003-06-30 21:59:07 +00005575
5576# Check whether --with-pic or --without-pic was given.
5577if test "${with_pic+set}" = set; then
5578 withval="$with_pic"
5579 pic_mode="$withval"
5580else
5581 pic_mode=default
5582fi;
5583test -z "$pic_mode" && pic_mode=default
5584
John Criswell47fdd832003-07-14 16:52:07 +00005585# Use C for the default configuration in the libtool script
5586tagname=
5587lt_save_CC="$CC"
5588ac_ext=c
5589ac_cpp='$CPP $CPPFLAGS'
5590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593
5594
5595# Source file extension for C test sources.
5596ac_ext=c
5597
5598# Object file extension for compiled C test sources.
5599objext=o
5600objext=$objext
5601
5602# Code to be used in simple compile tests
5603lt_simple_compile_test_code="int some_variable = 0;\n"
5604
5605# Code to be used in simple link tests
5606lt_simple_link_test_code='int main(){return(0);}\n'
5607
5608
5609# If no C compiler was specified, use CC.
5610LTCC=${LTCC-"$CC"}
5611
5612# Allow CC to be a program name with arguments.
5613compiler=$CC
5614
5615
5616#
5617# Check for any special shared library compilation flags.
5618#
5619lt_prog_cc_shlib=
5620if test "$GCC" = no; then
5621 case $host_os in
5622 sco3.2v5*)
5623 lt_prog_cc_shlib='-belf'
5624 ;;
5625 esac
5626fi
5627if test -n "$lt_prog_cc_shlib"; then
5628 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5629echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5630 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5631 else
5632 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5633echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5634 lt_cv_prog_cc_can_build_shared=no
5635 fi
5636fi
5637
5638
5639#
5640# Check to make sure the static flag actually works.
5641#
5642echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5643echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5644if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
John Criswell47fdd832003-07-14 16:52:07 +00005647 lt_prog_compiler_static_works=no
5648 save_LDFLAGS="$LDFLAGS"
5649 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5650 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5652 # The compiler can only warn and ignore the option if not recognized
5653 # So say no if there are warnings
5654 if test -s conftest.err; then
5655 # Append any errors to the config.log.
5656 cat conftest.err 1>&5
5657 else
5658 lt_prog_compiler_static_works=yes
5659 fi
5660 fi
5661 $rm conftest*
5662 LDFLAGS="$save_LDFLAGS"
5663
5664fi
5665echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5666echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5667
5668if test x"$lt_prog_compiler_static_works" = xyes; then
5669 :
5670else
5671 lt_prog_compiler_static=
5672fi
5673
5674
5675
5676## CAVEAT EMPTOR:
5677## There is no encapsulation within the following macros, do not change
5678## the running order or otherwise move them around unless you know exactly
5679## what you are doing...
5680
5681lt_prog_compiler_no_builtin_flag=
5682
5683if test "$GCC" = yes; then
5684 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5685
5686 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5687echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5688if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691 lt_cv_prog_compiler_rtti_exceptions=no
5692 ac_outfile=conftest.$ac_objext
5693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5694 lt_compiler_flag="-fno-rtti -fno-exceptions"
5695 # Insert the option either (1) after the last *FLAGS variable, or
5696 # (2) before a word containing "conftest.", or (3) at the end.
5697 # Note that $ac_compile itself does not contain backslashes and begins
5698 # with a dollar sign (not a hyphen), so the echo should work correctly.
5699 # The option is referenced via a variable to avoid confusing sed.
5700 lt_compile=`echo "$ac_compile" | $SED \
5701 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5703 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +00005704 (eval echo "\"\$as_me:5704: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005705 (eval "$lt_compile" 2>conftest.err)
5706 ac_status=$?
5707 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +00005708 echo "$as_me:5708: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005709 if (exit $ac_status) && test -s "$ac_outfile"; then
5710 # The compiler can only warn and ignore the option if not recognized
5711 # So say no if there are warnings
5712 if test ! -s conftest.err; then
5713 lt_cv_prog_compiler_rtti_exceptions=yes
5714 fi
5715 fi
5716 $rm conftest*
5717
5718fi
5719echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5720echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5721
5722if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5724else
5725 :
5726fi
5727
5728fi
5729
5730lt_prog_compiler_wl=
5731lt_prog_compiler_pic=
5732lt_prog_compiler_static=
5733
5734echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5735echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005736
5737 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005738 lt_prog_compiler_wl='-Wl,'
5739 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005740
5741 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005742 aix*)
5743 # All AIX code is PIC.
5744 if test "$host_cpu" = ia64; then
5745 # AIX 5 now supports IA64 processor
5746 lt_prog_compiler_static='-Bstatic'
5747 fi
John Criswell7a73b802003-06-30 21:59:07 +00005748 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005749
John Criswell7a73b802003-06-30 21:59:07 +00005750 amigaos*)
5751 # FIXME: we need at least 68020 code to build shared libraries, but
5752 # adding the `-m68020' flag to GCC prevents building anything better,
5753 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005755 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005756
5757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005758 # PIC is the default for these OSes.
5759 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005760
5761 mingw* | pw32* | os2*)
5762 # This hack is so that the source file can tell whether it is being
5763 # built for inclusion in a dll (and should export symbols for example).
5764 lt_prog_compiler_pic='-DDLL_EXPORT'
5765 ;;
5766
John Criswell7a73b802003-06-30 21:59:07 +00005767 darwin* | rhapsody*)
5768 # PIC is the default on this platform
5769 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005770 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005771 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005772
5773 msdosdjgpp*)
5774 # Just because we use GCC doesn't mean we suddenly get shared libraries
5775 # on systems that don't support them.
5776 lt_prog_compiler_can_build_shared=no
5777 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005778 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005779
John Criswell7a73b802003-06-30 21:59:07 +00005780 sysv4*MP*)
5781 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005782 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005783 fi
5784 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005785
5786 hpux*)
5787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5788 # not for PA HP-UX.
5789 case "$host_cpu" in
5790 hppa*64*|ia64*)
5791 # +Z the default
5792 ;;
5793 *)
5794 lt_prog_compiler_pic='-fPIC'
5795 ;;
5796 esac
5797 ;;
5798
John Criswell7a73b802003-06-30 21:59:07 +00005799 *)
John Criswell47fdd832003-07-14 16:52:07 +00005800 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005801 ;;
5802 esac
5803 else
John Criswell47fdd832003-07-14 16:52:07 +00005804 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005805 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005806 aix*)
5807 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005808 if test "$host_cpu" = ia64; then
5809 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005810 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005811 else
John Criswell47fdd832003-07-14 16:52:07 +00005812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005813 fi
5814 ;;
5815
John Criswell47fdd832003-07-14 16:52:07 +00005816 mingw* | pw32* | os2*)
5817 # This hack is so that the source file can tell whether it is being
5818 # built for inclusion in a dll (and should export symbols for example).
5819 lt_prog_compiler_pic='-DDLL_EXPORT'
5820 ;;
5821
John Criswell7a73b802003-06-30 21:59:07 +00005822 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00005823 lt_prog_compiler_wl='-Wl,'
5824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5825 # not for PA HP-UX.
5826 case "$host_cpu" in
5827 hppa*64*|ia64*)
5828 # +Z the default
5829 ;;
5830 *)
5831 lt_prog_compiler_pic='+Z'
5832 ;;
5833 esac
5834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5835 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00005836 ;;
5837
John Criswell47fdd832003-07-14 16:52:07 +00005838 irix5* | irix6* | nonstopux*)
5839 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005840 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00005841 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005842 ;;
5843
5844 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00005845 lt_prog_compiler_pic='-KPIC'
5846 lt_prog_compiler_static='-Bstatic'
5847 ;;
5848
5849 linux*)
5850 case $CC in
5851 icc|ecc)
5852 lt_prog_compiler_wl='-Wl,'
5853 lt_prog_compiler_pic='-KPIC'
5854 lt_prog_compiler_static='-static'
5855 ;;
5856 ccc)
5857 lt_prog_compiler_wl='-Wl,'
5858 # All Alpha code is PIC.
5859 lt_prog_compiler_static='-non_shared'
5860 ;;
5861 esac
John Criswell7a73b802003-06-30 21:59:07 +00005862 ;;
5863
5864 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00005865 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005866 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00005867 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005868 ;;
5869
5870 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00005871 lt_prog_compiler_pic='-Kpic'
5872 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00005873 ;;
5874
5875 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00005876 lt_prog_compiler_wl='-Wl,'
5877 lt_prog_compiler_pic='-KPIC'
5878 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005879 ;;
5880
5881 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00005882 lt_prog_compiler_wl='-Qoption ld '
5883 lt_prog_compiler_pic='-PIC'
5884 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005885 ;;
5886
5887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00005888 lt_prog_compiler_wl='-Wl,'
5889 lt_prog_compiler_pic='-KPIC'
5890 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005891 ;;
5892
5893 sysv4*MP*)
5894 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00005895 lt_prog_compiler_pic='-Kconform_pic'
5896 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005897 fi
5898 ;;
5899
John Criswell47fdd832003-07-14 16:52:07 +00005900 uts4*)
5901 lt_prog_compiler_pic='-pic'
5902 lt_prog_compiler_static='-Bstatic'
5903 ;;
5904
John Criswell7a73b802003-06-30 21:59:07 +00005905 *)
John Criswell47fdd832003-07-14 16:52:07 +00005906 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005907 ;;
5908 esac
5909 fi
5910
John Criswell47fdd832003-07-14 16:52:07 +00005911echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5912echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005913
John Criswell47fdd832003-07-14 16:52:07 +00005914#
5915# Check to make sure the PIC flag actually works.
5916#
5917if test -n "$lt_prog_compiler_pic"; then
5918 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5919echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5920if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
John Criswell47fdd832003-07-14 16:52:07 +00005923 lt_prog_compiler_pic_works=no
5924 ac_outfile=conftest.$ac_objext
5925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5927 # Insert the option either (1) after the last *FLAGS variable, or
5928 # (2) before a word containing "conftest.", or (3) at the end.
5929 # Note that $ac_compile itself does not contain backslashes and begins
5930 # with a dollar sign (not a hyphen), so the echo should work correctly.
5931 # The option is referenced via a variable to avoid confusing sed.
5932 lt_compile=`echo "$ac_compile" | $SED \
5933 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5935 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +00005936 (eval echo "\"\$as_me:5936: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005937 (eval "$lt_compile" 2>conftest.err)
5938 ac_status=$?
5939 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +00005940 echo "$as_me:5940: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005941 if (exit $ac_status) && test -s "$ac_outfile"; then
5942 # The compiler can only warn and ignore the option if not recognized
5943 # So say no if there are warnings
5944 if test ! -s conftest.err; then
5945 lt_prog_compiler_pic_works=yes
5946 fi
5947 fi
5948 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00005949
John Criswell47fdd832003-07-14 16:52:07 +00005950fi
5951echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5952echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005953
John Criswell47fdd832003-07-14 16:52:07 +00005954if test x"$lt_prog_compiler_pic_works" = xyes; then
5955 case $lt_prog_compiler_pic in
5956 "" | " "*) ;;
5957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5958 esac
John Criswell7a73b802003-06-30 21:59:07 +00005959else
John Criswell47fdd832003-07-14 16:52:07 +00005960 lt_prog_compiler_pic=
5961 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005962fi
5963
John Criswell7a73b802003-06-30 21:59:07 +00005964fi
John Criswell47fdd832003-07-14 16:52:07 +00005965case "$host_os" in
5966 # For platforms which do not support PIC, -DPIC is meaningless:
5967 *djgpp*)
5968 lt_prog_compiler_pic=
5969 ;;
5970 *)
5971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5972 ;;
5973esac
John Criswell7a73b802003-06-30 21:59:07 +00005974
John Criswell7a73b802003-06-30 21:59:07 +00005975echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5976echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00005977if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
John Criswell47fdd832003-07-14 16:52:07 +00005980 lt_cv_prog_compiler_c_o=no
5981 $rm -r conftest 2>/dev/null
5982 mkdir conftest
5983 cd conftest
5984 mkdir out
5985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005986
John Criswell47fdd832003-07-14 16:52:07 +00005987 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5988 # that will create temporary files in the current directory regardless of
5989 # the output directory. Thus, making CWD read-only will cause this test
5990 # to fail, enabling locking or at least warning the user not to do parallel
5991 # builds.
5992 chmod -w .
5993
5994 lt_compiler_flag="-o out/conftest2.$ac_objext"
5995 # Insert the option either (1) after the last *FLAGS variable, or
5996 # (2) before a word containing "conftest.", or (3) at the end.
5997 # Note that $ac_compile itself does not contain backslashes and begins
5998 # with a dollar sign (not a hyphen), so the echo should work correctly.
5999 lt_compile=`echo "$ac_compile" | $SED \
6000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6002 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +00006003 (eval echo "\"\$as_me:6003: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006004 (eval "$lt_compile" 2>out/conftest.err)
6005 ac_status=$?
6006 cat out/conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +00006007 echo "$as_me:6007: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6009 then
6010 # The compiler can only warn and ignore the option if not recognized
6011 # So say no if there are warnings
6012 if test ! -s out/conftest.err; then
6013 lt_cv_prog_compiler_c_o=yes
6014 fi
6015 fi
6016 chmod u+w .
6017 $rm conftest* out/*
6018 rmdir out
6019 cd ..
6020 rmdir conftest
6021 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006022
6023fi
John Criswell47fdd832003-07-14 16:52:07 +00006024echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6025echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006026
John Criswell7a73b802003-06-30 21:59:07 +00006027
John Criswell7a73b802003-06-30 21:59:07 +00006028hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006029if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006030 # do not overwrite the value of need_locks provided by the user
6031 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6032echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6033 hard_links=yes
6034 $rm conftest*
6035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6036 touch conftest.a
6037 ln conftest.a conftest.b 2>&5 || hard_links=no
6038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6039 echo "$as_me:$LINENO: result: $hard_links" >&5
6040echo "${ECHO_T}$hard_links" >&6
6041 if test "$hard_links" = no; then
6042 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6043echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6044 need_locks=warn
6045 fi
6046else
6047 need_locks=no
6048fi
John Criswell7a73b802003-06-30 21:59:07 +00006049
John Criswell47fdd832003-07-14 16:52:07 +00006050echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6051echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6052
6053 runpath_var=
6054 allow_undefined_flag=
6055 enable_shared_with_static_runtimes=no
6056 archive_cmds=
6057 archive_expsym_cmds=
6058 old_archive_From_new_cmds=
6059 old_archive_from_expsyms_cmds=
6060 export_dynamic_flag_spec=
6061 whole_archive_flag_spec=
6062 thread_safe_flag_spec=
6063 hardcode_libdir_flag_spec=
6064 hardcode_libdir_flag_spec_ld=
6065 hardcode_libdir_separator=
6066 hardcode_direct=no
6067 hardcode_minus_L=no
6068 hardcode_shlibpath_var=unsupported
6069 link_all_deplibs=unknown
6070 hardcode_automatic=no
6071 module_cmds=
6072 module_expsym_cmds=
6073 always_export_symbols=no
6074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6075 # include_expsyms should be a list of space-separated symbols to be *always*
6076 # included in the symbol list
6077 include_expsyms=
6078 # exclude_expsyms can be an extended regexp of symbols to exclude
6079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6081 # as well as any symbol that contains `d'.
6082 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6084 # platforms (ab)use it in PIC code, but their linkers get confused if
6085 # the symbol is explicitly referenced. Since portable code cannot
6086 # rely on this symbol name, it's probably fine to never include it in
6087 # preloaded symbol tables.
6088 extract_expsyms_cmds=
6089
6090 case $host_os in
6091 cygwin* | mingw* | pw32*)
6092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6093 # When not using gcc, we currently assume that we are using
6094 # Microsoft Visual C++.
6095 if test "$GCC" != yes; then
6096 with_gnu_ld=no
6097 fi
6098 ;;
6099 openbsd*)
6100 with_gnu_ld=no
6101 ;;
6102 esac
6103
6104 ld_shlibs=yes
6105 if test "$with_gnu_ld" = yes; then
6106 # If archive_cmds runs LD, not CC, wlarc should be empty
6107 wlarc='${wl}'
6108
6109 # See if GNU ld supports shared libraries.
6110 case $host_os in
6111 aix3* | aix4* | aix5*)
6112 # On AIX/PPC, the GNU linker is very broken
6113 if test "$host_cpu" != ia64; then
6114 ld_shlibs=no
6115 cat <<EOF 1>&2
6116
6117*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6118*** to be unable to reliably create shared libraries on AIX.
6119*** Therefore, libtool is disabling shared libraries support. If you
6120*** really care for shared libraries, you may want to modify your PATH
6121*** so that a non-GNU linker is found, and then restart.
6122
6123EOF
6124 fi
6125 ;;
6126
6127 amigaos*)
6128 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)'
6129 hardcode_libdir_flag_spec='-L$libdir'
6130 hardcode_minus_L=yes
6131
6132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6133 # that the semantics of dynamic libraries on AmigaOS, at least up
6134 # to version 4, is to share data among multiple programs linked
6135 # with the same dynamic library. Since this doesn't match the
6136 # behavior of shared libraries on other platforms, we can't use
6137 # them.
6138 ld_shlibs=no
6139 ;;
6140
6141 beos*)
6142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6143 allow_undefined_flag=unsupported
6144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6145 # support --undefined. This deserves some investigation. FIXME
6146 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6147 else
6148 ld_shlibs=no
6149 fi
6150 ;;
6151
6152 cygwin* | mingw* | pw32*)
6153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6154 # as there is no search path for DLLs.
6155 hardcode_libdir_flag_spec='-L$libdir'
6156 allow_undefined_flag=unsupported
6157 always_export_symbols=no
6158 enable_shared_with_static_runtimes=yes
6159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6160
6161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6163 # If the export-symbols file already is a .def file (1st line
6164 # is EXPORTS), use it as is; otherwise, prepend...
6165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6166 cp $export_symbols $output_objdir/$soname.def;
6167 else
6168 echo EXPORTS > $output_objdir/$soname.def;
6169 cat $export_symbols >> $output_objdir/$soname.def;
6170 fi~
6171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6172 else
6173 ld_shlibs=no
6174 fi
6175 ;;
6176
6177 netbsd*)
6178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6179 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6180 wlarc=
6181 else
6182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6184 fi
6185 ;;
6186
6187 solaris* | sysv5*)
6188 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6189 ld_shlibs=no
6190 cat <<EOF 1>&2
6191
6192*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6193*** create shared libraries on Solaris systems. Therefore, libtool
6194*** is disabling shared libraries support. We urge you to upgrade GNU
6195*** binutils to release 2.9.1 or newer. Another option is to modify
6196*** your PATH or compiler configuration so that the native linker is
6197*** used, and then restart.
6198
6199EOF
6200 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6203 else
6204 ld_shlibs=no
6205 fi
6206 ;;
6207
6208 sunos4*)
6209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6210 wlarc=
6211 hardcode_direct=yes
6212 hardcode_shlibpath_var=no
6213 ;;
6214
6215 *)
6216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6219 else
6220 ld_shlibs=no
6221 fi
6222 ;;
6223 esac
6224
6225 if test "$ld_shlibs" = yes; then
6226 runpath_var=LD_RUN_PATH
6227 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6228 export_dynamic_flag_spec='${wl}--export-dynamic'
6229 # ancient GNU ld didn't support --whole-archive et. al.
6230 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6232 else
6233 whole_archive_flag_spec=
6234 fi
6235 fi
6236 else
6237 # PORTME fill in a description of your system's linker (not GNU ld)
6238 case $host_os in
6239 aix3*)
6240 allow_undefined_flag=unsupported
6241 always_export_symbols=yes
6242 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'
6243 # Note: this linker hardcodes the directories in LIBPATH if there
6244 # are no directories specified by -L.
6245 hardcode_minus_L=yes
6246 if test "$GCC" = yes && test -z "$link_static_flag"; then
6247 # Neither direct hardcoding nor static linking is supported with a
6248 # broken collect2.
6249 hardcode_direct=unsupported
6250 fi
6251 ;;
6252
6253 aix4* | aix5*)
6254 if test "$host_cpu" = ia64; then
6255 # On IA64, the linker does run time linking by default, so we don't
6256 # have to do anything special.
6257 aix_use_runtimelinking=no
6258 exp_sym_flag='-Bexport'
6259 no_entry_flag=""
6260 else
6261 # If we're using GNU nm, then we don't want the "-C" option.
6262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6263 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6264 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'
6265 else
6266 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'
6267 fi
6268 aix_use_runtimelinking=no
6269
6270 # Test if we are trying to use run time linking or normal
6271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6272 # need to do runtime linking.
6273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6274 for ld_flag in $LDFLAGS; do
6275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6276 aix_use_runtimelinking=yes
6277 break
6278 fi
6279 done
6280 esac
6281
6282 exp_sym_flag='-bexport'
6283 no_entry_flag='-bnoentry'
6284 fi
6285
6286 # When large executables or shared objects are built, AIX ld can
6287 # have problems creating the table of contents. If linking a library
6288 # or program results in "error TOC overflow" add -mminimal-toc to
6289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6291
6292 archive_cmds=''
6293 hardcode_direct=yes
6294 hardcode_libdir_separator=':'
6295 link_all_deplibs=yes
6296
6297 if test "$GCC" = yes; then
6298 case $host_os in aix4.012|aix4.012.*)
6299 # We only want to do this on AIX 4.2 and lower, the check
6300 # below for broken collect2 doesn't work under 4.3+
6301 collect2name=`${CC} -print-prog-name=collect2`
6302 if test -f "$collect2name" && \
6303 strings "$collect2name" | grep resolve_lib_name >/dev/null
6304 then
6305 # We have reworked collect2
6306 hardcode_direct=yes
6307 else
6308 # We have old collect2
6309 hardcode_direct=unsupported
6310 # It fails to find uninstalled libraries when the uninstalled
6311 # path is not listed in the libpath. Setting hardcode_minus_L
6312 # to unsupported forces relinking
6313 hardcode_minus_L=yes
6314 hardcode_libdir_flag_spec='-L$libdir'
6315 hardcode_libdir_separator=
6316 fi
6317 esac
6318 shared_flag='-shared'
6319 else
6320 # not using gcc
6321 if test "$host_cpu" = ia64; then
6322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6323 # chokes on -Wl,-G. The following line is correct:
6324 shared_flag='-G'
6325 else
6326 if test "$aix_use_runtimelinking" = yes; then
6327 shared_flag='${wl}-G'
6328 else
6329 shared_flag='${wl}-bM:SRE'
6330 fi
6331 fi
6332 fi
6333
6334 # It seems that -bexpall does not export symbols beginning with
6335 # underscore (_), so it is better to generate a list of symbols to export.
6336 always_export_symbols=yes
6337 if test "$aix_use_runtimelinking" = yes; then
6338 # Warning - without using the other runtime loading flags (-brtl),
6339 # -berok will link without error, but may produce a broken library.
6340 allow_undefined_flag='-berok'
6341 # Determine the default libpath from the value encoded in an empty executable.
6342 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006343#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006349
John Criswell7a73b802003-06-30 21:59:07 +00006350int
6351main ()
6352{
John Criswell47fdd832003-07-14 16:52:07 +00006353
John Criswell7a73b802003-06-30 21:59:07 +00006354 ;
6355 return 0;
6356}
6357_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006358rm -f conftest.$ac_objext conftest$ac_exeext
6359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006364 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006370
John Criswell47fdd832003-07-14 16:52:07 +00006371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6372}'`
6373# Check for a 64-bit object if we didn't find anything.
6374if 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; }
6375}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006376else
6377 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006378sed 's/^/| /' conftest.$ac_ext >&5
6379
John Criswell7a73b802003-06-30 21:59:07 +00006380fi
John Criswell47fdd832003-07-14 16:52:07 +00006381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006383
John Criswell47fdd832003-07-14 16:52:07 +00006384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6385 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"
6386 else
6387 if test "$host_cpu" = ia64; then
6388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6389 allow_undefined_flag="-z nodefs"
6390 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"
6391 else
6392 # Determine the default libpath from the value encoded in an empty executable.
6393 cat >conftest.$ac_ext <<_ACEOF
6394#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006400
John Criswell47fdd832003-07-14 16:52:07 +00006401int
6402main ()
6403{
John Criswell7a73b802003-06-30 21:59:07 +00006404
John Criswell47fdd832003-07-14 16:52:07 +00006405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext conftest$ac_exeext
6410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest$ac_exeext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006421
John Criswell47fdd832003-07-14 16:52:07 +00006422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6423}'`
6424# Check for a 64-bit object if we didn't find anything.
6425if 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; }
6426}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006427else
John Criswell47fdd832003-07-14 16:52:07 +00006428 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006429sed 's/^/| /' conftest.$ac_ext >&5
6430
John Criswell47fdd832003-07-14 16:52:07 +00006431fi
6432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006434
John Criswell47fdd832003-07-14 16:52:07 +00006435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6436 # Warning - without using the other run time loading flags,
6437 # -berok will link without error, but may produce a broken library.
6438 no_undefined_flag=' ${wl}-bernotok'
6439 allow_undefined_flag=' ${wl}-berok'
6440 # -bexpall does not export symbols beginning with underscore (_)
6441 always_export_symbols=yes
6442 # Exported symbols can be pulled into shared objects from archives
6443 whole_archive_flag_spec=' '
6444 archive_cmds_need_lc=yes
6445 # This is similar to how AIX traditionally builds it's shared libraries.
6446 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 +00006447 fi
6448 fi
John Criswell7a73b802003-06-30 21:59:07 +00006449 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006450
6451 amigaos*)
6452 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)'
6453 hardcode_libdir_flag_spec='-L$libdir'
6454 hardcode_minus_L=yes
6455 # see comment about different semantics on the GNU ld section
6456 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006457 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006458
John Criswell47fdd832003-07-14 16:52:07 +00006459 bsdi4*)
6460 export_dynamic_flag_spec=-rdynamic
6461 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006462
John Criswell47fdd832003-07-14 16:52:07 +00006463 cygwin* | mingw* | pw32*)
6464 # When not using gcc, we currently assume that we are using
6465 # Microsoft Visual C++.
6466 # hardcode_libdir_flag_spec is actually meaningless, as there is
6467 # no search path for DLLs.
6468 hardcode_libdir_flag_spec=' '
6469 allow_undefined_flag=unsupported
6470 # Tell ltmain to make .lib files, not .a files.
6471 libext=lib
6472 # Tell ltmain to make .dll files, not .so files.
6473 shrext=".dll"
6474 # FIXME: Setting linknames here is a bad hack.
6475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6476 # The linker will automatically build a .lib file if we build a DLL.
6477 old_archive_From_new_cmds='true'
6478 # FIXME: Should let the user specify the lib program.
6479 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6480 fix_srcfile_path='`cygpath -w "$srcfile"`'
6481 enable_shared_with_static_runtimes=yes
6482 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006483
John Criswell47fdd832003-07-14 16:52:07 +00006484 darwin* | rhapsody*)
6485 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6486 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006487 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006488 rhapsody* | darwin1.[012])
6489 allow_undefined_flag='-undefined suppress'
6490 ;;
6491 *) # Darwin 1.3 on
6492 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006493 ;;
6494 esac
John Criswell47fdd832003-07-14 16:52:07 +00006495 # FIXME: Relying on posixy $() will cause problems for
6496 # cross-compilation, but unfortunately the echo tests do not
6497 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6498 # `"' quotes if we put them in here... so don't!
6499 lt_int_apple_cc_single_mod=no
6500 output_verbose_link_cmd='echo'
6501 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6502 lt_int_apple_cc_single_mod=yes
6503 fi
6504 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6505 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6506 else
6507 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'
6508 fi
6509 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6512 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}'
6513 else
6514 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}'
6515 fi
6516 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}'
6517 hardcode_direct=no
6518 hardcode_automatic=yes
6519 hardcode_shlibpath_var=unsupported
6520 whole_archive_flag_spec='-all_load $convenience'
6521 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006522 fi
John Criswell47fdd832003-07-14 16:52:07 +00006523 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006524
John Criswell47fdd832003-07-14 16:52:07 +00006525 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006527 hardcode_libdir_flag_spec='-L$libdir'
6528 hardcode_shlibpath_var=no
6529 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006530
John Criswell47fdd832003-07-14 16:52:07 +00006531 freebsd1*)
6532 ld_shlibs=no
6533 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006534
John Criswell47fdd832003-07-14 16:52:07 +00006535 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6536 # support. Future versions do this automatically, but an explicit c++rt0.o
6537 # does not break anything, and helps significantly (at the cost of a little
6538 # extra space).
6539 freebsd2.2*)
6540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6541 hardcode_libdir_flag_spec='-R$libdir'
6542 hardcode_direct=yes
6543 hardcode_shlibpath_var=no
6544 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006545
John Criswell47fdd832003-07-14 16:52:07 +00006546 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6547 freebsd2*)
6548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6549 hardcode_direct=yes
6550 hardcode_minus_L=yes
6551 hardcode_shlibpath_var=no
6552 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006553
John Criswell47fdd832003-07-14 16:52:07 +00006554 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6555 freebsd*)
6556 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6557 hardcode_libdir_flag_spec='-R$libdir'
6558 hardcode_direct=yes
6559 hardcode_shlibpath_var=no
6560 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006561
John Criswell47fdd832003-07-14 16:52:07 +00006562 hpux9*)
6563 if test "$GCC" = yes; then
6564 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'
6565 else
6566 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'
6567 fi
6568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6569 hardcode_libdir_separator=:
6570 hardcode_direct=yes
6571
6572 # hardcode_minus_L: Not really in the search PATH,
6573 # but as the default location of the library.
6574 hardcode_minus_L=yes
6575 export_dynamic_flag_spec='${wl}-E'
6576 ;;
6577
6578 hpux10* | hpux11*)
6579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6580 case "$host_cpu" in
6581 hppa*64*|ia64*)
6582 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6583 ;;
6584 *)
6585 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6586 ;;
6587 esac
6588 else
6589 case "$host_cpu" in
6590 hppa*64*|ia64*)
6591 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6592 ;;
6593 *)
6594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6595 ;;
6596 esac
6597 fi
6598 if test "$with_gnu_ld" = no; then
6599 case "$host_cpu" in
6600 hppa*64*)
6601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6602 hardcode_libdir_flag_spec_ld='+b $libdir'
6603 hardcode_libdir_separator=:
6604 hardcode_direct=no
6605 hardcode_shlibpath_var=no
6606 ;;
6607 ia64*)
6608 hardcode_libdir_flag_spec='-L$libdir'
6609 hardcode_direct=no
6610 hardcode_shlibpath_var=no
6611
6612 # hardcode_minus_L: Not really in the search PATH,
6613 # but as the default location of the library.
6614 hardcode_minus_L=yes
6615 ;;
6616 *)
6617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6618 hardcode_libdir_separator=:
6619 hardcode_direct=yes
6620 export_dynamic_flag_spec='${wl}-E'
6621
6622 # hardcode_minus_L: Not really in the search PATH,
6623 # but as the default location of the library.
6624 hardcode_minus_L=yes
6625 ;;
6626 esac
6627 fi
6628 ;;
6629
6630 irix5* | irix6* | nonstopux*)
6631 if test "$GCC" = yes; then
6632 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'
6633 else
6634 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'
6635 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6636 fi
6637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6638 hardcode_libdir_separator=:
6639 link_all_deplibs=yes
6640 ;;
6641
6642 netbsd*)
6643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6645 else
6646 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6647 fi
6648 hardcode_libdir_flag_spec='-R$libdir'
6649 hardcode_direct=yes
6650 hardcode_shlibpath_var=no
6651 ;;
6652
6653 newsos6)
6654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6655 hardcode_direct=yes
6656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6657 hardcode_libdir_separator=:
6658 hardcode_shlibpath_var=no
6659 ;;
6660
6661 openbsd*)
6662 hardcode_direct=yes
6663 hardcode_shlibpath_var=no
6664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6667 export_dynamic_flag_spec='${wl}-E'
6668 else
6669 case $host_os in
6670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6672 hardcode_libdir_flag_spec='-R$libdir'
6673 ;;
6674 *)
6675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6677 ;;
6678 esac
6679 fi
6680 ;;
6681
6682 os2*)
6683 hardcode_libdir_flag_spec='-L$libdir'
6684 hardcode_minus_L=yes
6685 allow_undefined_flag=unsupported
6686 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'
6687 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6688 ;;
6689
6690 osf3*)
6691 if test "$GCC" = yes; then
6692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6693 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'
6694 else
6695 allow_undefined_flag=' -expect_unresolved \*'
6696 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'
6697 fi
6698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6699 hardcode_libdir_separator=:
6700 ;;
6701
6702 osf4* | osf5*) # as osf3* with the addition of -msym flag
6703 if test "$GCC" = yes; then
6704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6705 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'
6706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6707 else
6708 allow_undefined_flag=' -expect_unresolved \*'
6709 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'
6710 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6711 $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'
6712
6713 # Both c and cxx compiler support -rpath directly
6714 hardcode_libdir_flag_spec='-rpath $libdir'
6715 fi
6716 hardcode_libdir_separator=:
6717 ;;
6718
6719 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006722 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006723 runpath_var=LD_RUN_PATH
6724 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006725 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006726
John Criswell47fdd832003-07-14 16:52:07 +00006727 solaris*)
6728 no_undefined_flag=' -z text'
6729 if test "$GCC" = yes; then
6730 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6732 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6733 else
6734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6737 fi
6738 hardcode_libdir_flag_spec='-R$libdir'
6739 hardcode_shlibpath_var=no
6740 case $host_os in
6741 solaris2.[0-5] | solaris2.[0-5].*) ;;
6742 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6743 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6744 esac
6745 link_all_deplibs=yes
6746 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006747
John Criswell47fdd832003-07-14 16:52:07 +00006748 sunos4*)
6749 if test "x$host_vendor" = xsequent; then
6750 # Use $CC to link under sequent, because it throws in some extra .o
6751 # files that make .init and .fini sections work.
6752 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6753 else
6754 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6755 fi
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 hardcode_direct=yes
6758 hardcode_minus_L=yes
6759 hardcode_shlibpath_var=no
6760 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006761
John Criswell47fdd832003-07-14 16:52:07 +00006762 sysv4)
6763 case $host_vendor in
6764 sni)
6765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766 hardcode_direct=yes # is this really true???
6767 ;;
6768 siemens)
6769 ## LD is ld it makes a PLAMLIB
6770 ## CC just makes a GrossModule.
6771 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6772 reload_cmds='$CC -r -o $output$reload_objs'
6773 hardcode_direct=no
6774 ;;
6775 motorola)
6776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6778 ;;
6779 esac
6780 runpath_var='LD_RUN_PATH'
6781 hardcode_shlibpath_var=no
6782 ;;
6783
6784 sysv4.3*)
6785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 hardcode_shlibpath_var=no
6787 export_dynamic_flag_spec='-Bexport'
6788 ;;
6789
6790 sysv4*MP*)
6791 if test -d /usr/nec; then
6792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6793 hardcode_shlibpath_var=no
6794 runpath_var=LD_RUN_PATH
6795 hardcode_runpath_var=yes
6796 ld_shlibs=yes
6797 fi
6798 ;;
6799
6800 sysv4.2uw2*)
6801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6802 hardcode_direct=yes
6803 hardcode_minus_L=no
6804 hardcode_shlibpath_var=no
6805 hardcode_runpath_var=yes
6806 runpath_var=LD_RUN_PATH
6807 ;;
6808
6809 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6810 no_undefined_flag='${wl}-z ${wl}text'
6811 if test "$GCC" = yes; then
6812 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 else
6814 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815 fi
6816 runpath_var='LD_RUN_PATH'
6817 hardcode_shlibpath_var=no
6818 ;;
6819
6820 sysv5*)
6821 no_undefined_flag=' -z text'
6822 # $CC -shared without GNU ld will not create a library from C++
6823 # object files and a static libstdc++, better avoid it by now
6824 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6825 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6827 hardcode_libdir_flag_spec=
6828 hardcode_shlibpath_var=no
6829 runpath_var='LD_RUN_PATH'
6830 ;;
6831
6832 uts4*)
6833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834 hardcode_libdir_flag_spec='-L$libdir'
6835 hardcode_shlibpath_var=no
6836 ;;
6837
6838 *)
6839 ld_shlibs=no
6840 ;;
6841 esac
6842 fi
6843
John Criswell7a73b802003-06-30 21:59:07 +00006844echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6845echo "${ECHO_T}$ld_shlibs" >&6
6846test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006847
John Criswell47fdd832003-07-14 16:52:07 +00006848variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6849if test "$GCC" = yes; then
6850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6851fi
6852
6853#
6854# Do we need to explicitly link libc?
6855#
6856case "x$archive_cmds_need_lc" in
6857x|xyes)
6858 # Assume -lc should be added
6859 archive_cmds_need_lc=yes
6860
6861 if test "$enable_shared" = yes && test "$GCC" = yes; then
6862 case $archive_cmds in
6863 *'~'*)
6864 # FIXME: we may have to deal with multi-command sequences.
6865 ;;
6866 '$CC '*)
6867 # Test whether the compiler implicitly links with -lc since on some
6868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6869 # to ld, don't add -lc before -lgcc.
6870 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6871echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6872 $rm conftest*
6873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6874
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } 2>conftest.err; then
6880 soname=conftest
6881 lib=conftest
6882 libobjs=conftest.$ac_objext
6883 deplibs=
6884 wl=$lt_prog_compiler_wl
6885 compiler_flags=-v
6886 linker_flags=-v
6887 verstring=
6888 output_objdir=.
6889 libname=conftest
6890 lt_save_allow_undefined_flag=$allow_undefined_flag
6891 allow_undefined_flag=
6892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6893 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }
6897 then
6898 archive_cmds_need_lc=no
6899 else
6900 archive_cmds_need_lc=yes
6901 fi
6902 allow_undefined_flag=$lt_save_allow_undefined_flag
6903 else
6904 cat conftest.err 1>&5
6905 fi
6906 $rm conftest*
6907 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6908echo "${ECHO_T}$archive_cmds_need_lc" >&6
6909 ;;
6910 esac
6911 fi
6912 ;;
6913esac
6914
John Criswell7a73b802003-06-30 21:59:07 +00006915echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6917hardcode_action=
6918if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00006919 test -n "$runpath_var " || \
6920 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00006921
6922 # We can hardcode non-existant directories.
6923 if test "$hardcode_direct" != no &&
6924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6925 # have to relink, otherwise we might link with an installed library
6926 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00006927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00006928 test "$hardcode_minus_L" != no; then
6929 # Linking always hardcodes the temporary library directory.
6930 hardcode_action=relink
6931 else
6932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6933 hardcode_action=immediate
6934 fi
6935else
6936 # We cannot hardcode anything, or else we can only hardcode existing
6937 # directories.
6938 hardcode_action=unsupported
6939fi
6940echo "$as_me:$LINENO: result: $hardcode_action" >&5
6941echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006942
John Criswell47fdd832003-07-14 16:52:07 +00006943if test "$hardcode_action" = relink; then
6944 # Fast installation is not supported
6945 enable_fast_install=no
6946elif test "$shlibpath_overrides_runpath" = yes ||
6947 test "$enable_shared" = no; then
6948 # Fast installation is not necessary
6949 enable_fast_install=needless
6950fi
6951
John Criswell7a73b802003-06-30 21:59:07 +00006952striplib=
6953old_striplib=
6954echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6955echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6956if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961else
John Criswell47fdd832003-07-14 16:52:07 +00006962# FIXME - insert some real tests, host_os isn't really good enough
6963 case $host_os in
6964 darwin*)
6965 if test -n "$STRIP" ; then
6966 striplib="$STRIP -x"
6967 echo "$as_me:$LINENO: result: yes" >&5
6968echo "${ECHO_T}yes" >&6
6969 else
John Criswell7a73b802003-06-30 21:59:07 +00006970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
6972fi
John Criswell47fdd832003-07-14 16:52:07 +00006973 ;;
6974 *)
6975 echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6
6977 ;;
6978 esac
6979fi
John Criswell7a73b802003-06-30 21:59:07 +00006980
John Criswell7a73b802003-06-30 21:59:07 +00006981echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6982echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6983library_names_spec=
6984libname_spec='lib$name'
6985soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00006986shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00006987postinstall_cmds=
6988postuninstall_cmds=
6989finish_cmds=
6990finish_eval=
6991shlibpath_var=
6992shlibpath_overrides_runpath=unknown
6993version_type=none
6994dynamic_linker="$host_os ld.so"
6995sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00006996if test "$GCC" = yes; then
6997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6999 # if the path contains ";" then we assume it to be the separator
7000 # otherwise default to the standard path separator (i.e. ":") - it is
7001 # assumed that no part of a normal pathname contains ";" but that should
7002 # okay in the real world where ";" in dirpaths is itself problematic.
7003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7004 else
7005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7006 fi
7007else
7008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7009fi
7010need_lib_prefix=unknown
7011hardcode_into_libs=no
7012
7013# when you set need_version to no, make sure it does not cause -set_version
7014# flags to be left without arguments
7015need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007016
7017case $host_os in
7018aix3*)
7019 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007021 shlibpath_var=LIBPATH
7022
John Criswell47fdd832003-07-14 16:52:07 +00007023 # AIX 3 has no versioning support, so we append a major version to the name.
7024 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007025 ;;
7026
7027aix4* | aix5*)
7028 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007029 need_lib_prefix=no
7030 need_version=no
7031 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007032 if test "$host_cpu" = ia64; then
7033 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007035 shlibpath_var=LD_LIBRARY_PATH
7036 else
7037 # With GCC up to 2.95.x, collect2 would create an import file
7038 # for dependence libraries. The import file would start with
7039 # the line `#! .'. This would cause the generated library to
7040 # depend on `.', always an invalid library. This was fixed in
7041 # development snapshots of GCC prior to 3.0.
7042 case $host_os in
7043 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7045 echo ' yes '
7046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7047 :
7048 else
7049 can_build_shared=no
7050 fi
7051 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007052 esac
John Criswell47fdd832003-07-14 16:52:07 +00007053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7054 # soname into executable. Probably we can add versioning support to
7055 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007056 if test "$aix_use_runtimelinking" = yes; then
7057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7058 # instead of lib<name>.a to let people know that these are not
7059 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007061 else
7062 # We preserve .a as extension for shared libraries through AIX4.2
7063 # and later when we are not doing run time linking.
7064 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007065 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007066 fi
7067 shlibpath_var=LIBPATH
7068 fi
7069 ;;
7070
7071amigaos*)
7072 library_names_spec='$libname.ixlibrary $libname.a'
7073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7074 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'
7075 ;;
7076
7077beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007078 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007079 dynamic_linker="$host_os ld.so"
7080 shlibpath_var=LIBRARY_PATH
7081 ;;
7082
7083bsdi4*)
7084 version_type=linux
7085 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7089 shlibpath_var=LD_LIBRARY_PATH
7090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007092 # the default ld.so.conf also contains /usr/contrib/lib and
7093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7094 # libtool to hard-code these into programs
7095 ;;
7096
7097cygwin* | mingw* | pw32*)
7098 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007099 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007100 need_version=no
7101 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007102
John Criswell7a73b802003-06-30 21:59:07 +00007103 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007104 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007105 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7107 postinstall_cmds='base_file=`basename \${file}`~
7108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007109 dldir=$destdir/`dirname \$dlpath`~
7110 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007111 $install_prog $dir/$dlname \$dldir/$dlname'
7112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007113 dlpath=$dir/\$dldll~
7114 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007115 shlibpath_overrides_runpath=yes
7116
7117 case $host_os in
7118 cygwin*)
7119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7121 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7122 ;;
7123 mingw*)
7124 # MinGW DLLs use traditional 'lib' prefix
7125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7128 # It is most probably a Windows format PATH printed by
7129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7130 # path with ; separators, and with drive letters. We can handle the
7131 # drive letters (cygwin fileutils understands them), so leave them,
7132 # especially as we might pass files found there to a mingw objdump,
7133 # which wouldn't understand a cygwinified path. Ahh.
7134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7135 else
7136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7137 fi
7138 ;;
7139 pw32*)
7140 # pw32 DLLs use 'pw' prefix rather than 'lib'
7141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7142 ;;
7143 esac
John Criswell7a73b802003-06-30 21:59:07 +00007144 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007145
John Criswell7a73b802003-06-30 21:59:07 +00007146 *)
John Criswell47fdd832003-07-14 16:52:07 +00007147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007148 ;;
7149 esac
7150 dynamic_linker='Win32 ld.exe'
7151 # FIXME: first we should search . and the directory the executable is in
7152 shlibpath_var=PATH
7153 ;;
7154
7155darwin* | rhapsody*)
7156 dynamic_linker="$host_os dyld"
7157 version_type=darwin
7158 need_lib_prefix=no
7159 need_version=no
7160 # FIXME: Relying on posixy $() will cause problems for
7161 # cross-compilation, but unfortunately the echo tests do not
7162 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7164 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007165 shlibpath_overrides_runpath=yes
7166 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007167 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7168 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7169 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7170 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"`
7171 fi
7172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7173 ;;
7174
7175dgux*)
7176 version_type=linux
7177 need_lib_prefix=no
7178 need_version=no
7179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7180 soname_spec='${libname}${release}${shared_ext}$major'
7181 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007182 ;;
7183
7184freebsd1*)
7185 dynamic_linker=no
7186 ;;
7187
7188freebsd*)
7189 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7190 version_type=freebsd-$objformat
7191 case $version_type in
7192 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007194 need_version=no
7195 need_lib_prefix=no
7196 ;;
7197 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007199 need_version=yes
7200 ;;
7201 esac
7202 shlibpath_var=LD_LIBRARY_PATH
7203 case $host_os in
7204 freebsd2*)
7205 shlibpath_overrides_runpath=yes
7206 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007207 freebsd3.01* | freebsdelf3.01*)
7208 shlibpath_overrides_runpath=yes
7209 hardcode_into_libs=yes
7210 ;;
7211 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007212 shlibpath_overrides_runpath=no
7213 hardcode_into_libs=yes
7214 ;;
7215 esac
7216 ;;
7217
7218gnu*)
7219 version_type=linux
7220 need_lib_prefix=no
7221 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7223 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007224 shlibpath_var=LD_LIBRARY_PATH
7225 hardcode_into_libs=yes
7226 ;;
7227
7228hpux9* | hpux10* | hpux11*)
7229 # Give a soname corresponding to the major version so that dld.sl refuses to
7230 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007231 version_type=sunos
7232 need_lib_prefix=no
7233 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007234 case "$host_cpu" in
7235 ia64*)
7236 shrext='.so'
7237 hardcode_into_libs=yes
7238 dynamic_linker="$host_os dld.so"
7239 shlibpath_var=LD_LIBRARY_PATH
7240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7242 soname_spec='${libname}${release}${shared_ext}$major'
7243 if test "X$HPUX_IA64_MODE" = X32; then
7244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7245 else
7246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7247 fi
7248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7249 ;;
7250 hppa*64*)
7251 shrext='.sl'
7252 hardcode_into_libs=yes
7253 dynamic_linker="$host_os dld.sl"
7254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257 soname_spec='${libname}${release}${shared_ext}$major'
7258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7260 ;;
7261 *)
7262 shrext='.sl'
7263 dynamic_linker="$host_os dld.sl"
7264 shlibpath_var=SHLIB_PATH
7265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7267 soname_spec='${libname}${release}${shared_ext}$major'
7268 ;;
7269 esac
John Criswell7a73b802003-06-30 21:59:07 +00007270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7271 postinstall_cmds='chmod 555 $lib'
7272 ;;
7273
John Criswell47fdd832003-07-14 16:52:07 +00007274irix5* | irix6* | nonstopux*)
7275 case $host_os in
7276 nonstopux*) version_type=nonstopux ;;
7277 *)
7278 if test "$lt_cv_prog_gnu_ld" = yes; then
7279 version_type=linux
7280 else
7281 version_type=irix
7282 fi ;;
7283 esac
John Criswell7a73b802003-06-30 21:59:07 +00007284 need_lib_prefix=no
7285 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007286 soname_spec='${libname}${release}${shared_ext}$major'
7287 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 +00007288 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007289 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007290 libsuff= shlibsuff=
7291 ;;
7292 *)
7293 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7295 libsuff= shlibsuff= libmagic=32-bit;;
7296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7297 libsuff=32 shlibsuff=N32 libmagic=N32;;
7298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007300 *) libsuff= shlibsuff= libmagic=never-match;;
7301 esac
7302 ;;
7303 esac
7304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7305 shlibpath_overrides_runpath=no
7306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007308 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007309 ;;
7310
7311# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007312linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007313 dynamic_linker=no
7314 ;;
7315
7316# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007317linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007318 version_type=linux
7319 need_lib_prefix=no
7320 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7322 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7324 shlibpath_var=LD_LIBRARY_PATH
7325 shlibpath_overrides_runpath=no
7326 # This implies no fast_install, which is unacceptable.
7327 # Some rework will be needed to allow for fast_install
7328 # before this can be enabled.
7329 hardcode_into_libs=yes
7330
7331 # We used to test for /lib/ld.so.1 and disable shared libraries on
7332 # powerpc, because MkLinux only supported shared libraries with the
7333 # GNU dynamic linker. Since this was broken with cross compilers,
7334 # most powerpc-linux boxes support dynamic linking these days and
7335 # people can always --disable-shared, the test was removed, and we
7336 # assume the GNU/Linux dynamic linker is in use.
7337 dynamic_linker='GNU/Linux ld.so'
7338 ;;
7339
7340netbsd*)
7341 version_type=sunos
7342 need_lib_prefix=no
7343 need_version=no
7344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7347 dynamic_linker='NetBSD (a.out) ld.so'
7348 else
John Criswell47fdd832003-07-14 16:52:07 +00007349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007351 dynamic_linker='NetBSD ld.elf_so'
7352 fi
7353 shlibpath_var=LD_LIBRARY_PATH
7354 shlibpath_overrides_runpath=yes
7355 hardcode_into_libs=yes
7356 ;;
7357
7358newsos6)
7359 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7361 shlibpath_var=LD_LIBRARY_PATH
7362 shlibpath_overrides_runpath=yes
7363 ;;
7364
7365nto-qnx)
7366 version_type=linux
7367 need_lib_prefix=no
7368 need_version=no
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007371 shlibpath_var=LD_LIBRARY_PATH
7372 shlibpath_overrides_runpath=yes
7373 ;;
7374
7375openbsd*)
7376 version_type=sunos
7377 need_lib_prefix=no
7378 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7381 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007382 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 +00007383 case $host_os in
7384 openbsd2.[89] | openbsd2.[89].*)
7385 shlibpath_overrides_runpath=no
7386 ;;
7387 *)
7388 shlibpath_overrides_runpath=yes
7389 ;;
7390 esac
John Criswell7a73b802003-06-30 21:59:07 +00007391 else
7392 shlibpath_overrides_runpath=yes
7393 fi
John Criswell7a73b802003-06-30 21:59:07 +00007394 ;;
7395
7396os2*)
7397 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007398 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007399 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007400 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007401 dynamic_linker='OS/2 ld.exe'
7402 shlibpath_var=LIBPATH
7403 ;;
7404
7405osf3* | osf4* | osf5*)
7406 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007407 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007408 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007409 soname_spec='${libname}${release}${shared_ext}$major'
7410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007411 shlibpath_var=LD_LIBRARY_PATH
7412 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7413 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7414 ;;
7415
7416sco3.2v5*)
7417 version_type=osf
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 ;;
7422
7423solaris*)
7424 version_type=linux
7425 need_lib_prefix=no
7426 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007429 shlibpath_var=LD_LIBRARY_PATH
7430 shlibpath_overrides_runpath=yes
7431 hardcode_into_libs=yes
7432 # ldd complains unless libraries are executable
7433 postinstall_cmds='chmod +x $lib'
7434 ;;
7435
7436sunos4*)
7437 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7440 shlibpath_var=LD_LIBRARY_PATH
7441 shlibpath_overrides_runpath=yes
7442 if test "$with_gnu_ld" = yes; then
7443 need_lib_prefix=no
7444 fi
7445 need_version=yes
7446 ;;
7447
7448sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7449 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007452 shlibpath_var=LD_LIBRARY_PATH
7453 case $host_vendor in
7454 sni)
7455 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007456 need_lib_prefix=no
7457 export_dynamic_flag_spec='${wl}-Blargedynsym'
7458 runpath_var=LD_RUN_PATH
7459 ;;
7460 siemens)
7461 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007462 ;;
7463 motorola)
7464 need_lib_prefix=no
7465 need_version=no
7466 shlibpath_overrides_runpath=no
7467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7468 ;;
7469 esac
7470 ;;
7471
John Criswell7a73b802003-06-30 21:59:07 +00007472sysv4*MP*)
7473 if test -d /usr/nec ;then
7474 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7476 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007477 shlibpath_var=LD_LIBRARY_PATH
7478 fi
7479 ;;
7480
John Criswell47fdd832003-07-14 16:52:07 +00007481uts4*)
7482 version_type=linux
7483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484 soname_spec='${libname}${release}${shared_ext}$major'
7485 shlibpath_var=LD_LIBRARY_PATH
7486 ;;
7487
John Criswell7a73b802003-06-30 21:59:07 +00007488*)
7489 dynamic_linker=no
7490 ;;
7491esac
7492echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7493echo "${ECHO_T}$dynamic_linker" >&6
7494test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007495
7496if test "x$enable_dlopen" != xyes; then
7497 enable_dlopen=unknown
7498 enable_dlopen_self=unknown
7499 enable_dlopen_self_static=unknown
7500else
7501 lt_cv_dlopen=no
7502 lt_cv_dlopen_libs=
7503
7504 case $host_os in
7505 beos*)
7506 lt_cv_dlopen="load_add_on"
7507 lt_cv_dlopen_libs=
7508 lt_cv_dlopen_self=yes
7509 ;;
7510
John Criswell47fdd832003-07-14 16:52:07 +00007511 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007512 lt_cv_dlopen="LoadLibrary"
7513 lt_cv_dlopen_libs=
7514 ;;
7515
John Criswell47fdd832003-07-14 16:52:07 +00007516 cygwin*)
7517 lt_cv_dlopen="dlopen"
7518 lt_cv_dlopen_libs=
7519 ;;
7520
7521 darwin*)
7522 # if libdl is installed we need to link against it
7523 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7524echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7525if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528 ac_check_lib_save_LIBS=$LIBS
7529LIBS="-ldl $LIBS"
7530cat >conftest.$ac_ext <<_ACEOF
7531#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007537
7538/* Override any gcc2 internal prototype to avoid an error. */
7539#ifdef __cplusplus
7540extern "C"
7541#endif
7542/* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7544char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007545int
7546main ()
7547{
7548dlopen ();
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_dl_dlopen=yes
7566else
7567 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007568sed 's/^/| /' conftest.$ac_ext >&5
7569
John Criswell47fdd832003-07-14 16:52:07 +00007570ac_cv_lib_dl_dlopen=no
7571fi
7572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7573LIBS=$ac_check_lib_save_LIBS
7574fi
7575echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7576echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7577if test $ac_cv_lib_dl_dlopen = yes; then
7578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7579else
7580
7581 lt_cv_dlopen="dyld"
7582 lt_cv_dlopen_libs=
7583 lt_cv_dlopen_self=yes
7584
7585fi
7586
7587 ;;
7588
John Criswell7a73b802003-06-30 21:59:07 +00007589 *)
7590 echo "$as_me:$LINENO: checking for shl_load" >&5
7591echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7592if test "${ac_cv_func_shl_load+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 cat >conftest.$ac_ext <<_ACEOF
7596#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007597/* confdefs.h. */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
7601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007602/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007603 which can conflict with char shl_load (); below.
7604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605 <limits.h> exists even on freestanding compilers. */
7606#ifdef __STDC__
7607# include <limits.h>
7608#else
7609# include <assert.h>
7610#endif
John Criswell7a73b802003-06-30 21:59:07 +00007611/* Override any gcc2 internal prototype to avoid an error. */
7612#ifdef __cplusplus
7613extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007614{
John Criswell7a73b802003-06-30 21:59:07 +00007615#endif
7616/* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7618char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007619/* The GNU C library defines this for functions which it implements
7620 to always fail with ENOSYS. Some functions are actually named
7621 something starting with __ and the normal name is an alias. */
7622#if defined (__stub_shl_load) || defined (__stub___shl_load)
7623choke me
7624#else
John Criswell392aaa32003-07-22 19:18:09 +00007625char (*f) () = shl_load;
7626#endif
7627#ifdef __cplusplus
7628}
John Criswell7a73b802003-06-30 21:59:07 +00007629#endif
7630
John Criswell392aaa32003-07-22 19:18:09 +00007631int
7632main ()
7633{
7634return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007635 ;
7636 return 0;
7637}
7638_ACEOF
7639rm -f conftest.$ac_objext conftest$ac_exeext
7640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_func_shl_load=yes
7652else
7653 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007654sed 's/^/| /' conftest.$ac_ext >&5
7655
John Criswell7a73b802003-06-30 21:59:07 +00007656ac_cv_func_shl_load=no
7657fi
7658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7659fi
7660echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7661echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7662if test $ac_cv_func_shl_load = yes; then
7663 lt_cv_dlopen="shl_load"
7664else
7665 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7666echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7667if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 ac_check_lib_save_LIBS=$LIBS
7671LIBS="-ldld $LIBS"
7672cat >conftest.$ac_ext <<_ACEOF
7673#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007679
7680/* Override any gcc2 internal prototype to avoid an error. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684/* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7686char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007687int
7688main ()
7689{
7690shl_load ();
7691 ;
7692 return 0;
7693}
7694_ACEOF
7695rm -f conftest.$ac_objext conftest$ac_exeext
7696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_lib_dld_shl_load=yes
7708else
7709 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007710sed 's/^/| /' conftest.$ac_ext >&5
7711
John Criswell7a73b802003-06-30 21:59:07 +00007712ac_cv_lib_dld_shl_load=no
7713fi
7714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7715LIBS=$ac_check_lib_save_LIBS
7716fi
7717echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7718echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7719if test $ac_cv_lib_dld_shl_load = yes; then
7720 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7721else
7722 echo "$as_me:$LINENO: checking for dlopen" >&5
7723echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7724if test "${ac_cv_func_dlopen+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727 cat >conftest.$ac_ext <<_ACEOF
7728#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007729/* confdefs.h. */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007734/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00007735 which can conflict with char dlopen (); below.
7736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7737 <limits.h> exists even on freestanding compilers. */
7738#ifdef __STDC__
7739# include <limits.h>
7740#else
7741# include <assert.h>
7742#endif
John Criswell7a73b802003-06-30 21:59:07 +00007743/* Override any gcc2 internal prototype to avoid an error. */
7744#ifdef __cplusplus
7745extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00007746{
John Criswell7a73b802003-06-30 21:59:07 +00007747#endif
7748/* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007751/* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754#if defined (__stub_dlopen) || defined (__stub___dlopen)
7755choke me
7756#else
John Criswell392aaa32003-07-22 19:18:09 +00007757char (*f) () = dlopen;
7758#endif
7759#ifdef __cplusplus
7760}
John Criswell7a73b802003-06-30 21:59:07 +00007761#endif
7762
John Criswell392aaa32003-07-22 19:18:09 +00007763int
7764main ()
7765{
7766return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007767 ;
7768 return 0;
7769}
7770_ACEOF
7771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_dlopen=yes
7784else
7785 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007786sed 's/^/| /' conftest.$ac_ext >&5
7787
John Criswell7a73b802003-06-30 21:59:07 +00007788ac_cv_func_dlopen=no
7789fi
7790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7791fi
7792echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7793echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7794if test $ac_cv_func_dlopen = yes; then
7795 lt_cv_dlopen="dlopen"
7796else
7797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 ac_check_lib_save_LIBS=$LIBS
7803LIBS="-ldl $LIBS"
7804cat >conftest.$ac_ext <<_ACEOF
7805#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007811
7812/* Override any gcc2 internal prototype to avoid an error. */
7813#ifdef __cplusplus
7814extern "C"
7815#endif
7816/* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7818char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007819int
7820main ()
7821{
7822dlopen ();
7823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
7828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_lib_dl_dlopen=yes
7840else
7841 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007842sed 's/^/| /' conftest.$ac_ext >&5
7843
John Criswell7a73b802003-06-30 21:59:07 +00007844ac_cv_lib_dl_dlopen=no
7845fi
7846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7847LIBS=$ac_check_lib_save_LIBS
7848fi
7849echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7850echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7851if test $ac_cv_lib_dl_dlopen = yes; then
7852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7853else
7854 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7855echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7856if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 ac_check_lib_save_LIBS=$LIBS
7860LIBS="-lsvld $LIBS"
7861cat >conftest.$ac_ext <<_ACEOF
7862#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007863/* confdefs.h. */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007868
7869/* Override any gcc2 internal prototype to avoid an error. */
7870#ifdef __cplusplus
7871extern "C"
7872#endif
7873/* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7875char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007876int
7877main ()
7878{
7879dlopen ();
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884rm -f conftest.$ac_objext conftest$ac_exeext
7885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_svld_dlopen=yes
7897else
7898 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007899sed 's/^/| /' conftest.$ac_ext >&5
7900
John Criswell7a73b802003-06-30 21:59:07 +00007901ac_cv_lib_svld_dlopen=no
7902fi
7903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904LIBS=$ac_check_lib_save_LIBS
7905fi
7906echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7907echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7908if test $ac_cv_lib_svld_dlopen = yes; then
7909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7910else
7911 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7912echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7913if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916 ac_check_lib_save_LIBS=$LIBS
7917LIBS="-ldld $LIBS"
7918cat >conftest.$ac_ext <<_ACEOF
7919#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00007920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007925
7926/* Override any gcc2 internal prototype to avoid an error. */
7927#ifdef __cplusplus
7928extern "C"
7929#endif
7930/* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7932char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00007933int
7934main ()
7935{
7936dld_link ();
7937 ;
7938 return 0;
7939}
7940_ACEOF
7941rm -f conftest.$ac_objext conftest$ac_exeext
7942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_lib_dld_dld_link=yes
7954else
7955 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00007956sed 's/^/| /' conftest.$ac_ext >&5
7957
John Criswell7a73b802003-06-30 21:59:07 +00007958ac_cv_lib_dld_dld_link=no
7959fi
7960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961LIBS=$ac_check_lib_save_LIBS
7962fi
7963echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7964echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7965if test $ac_cv_lib_dld_dld_link = yes; then
7966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7967fi
7968
7969
7970fi
7971
7972
7973fi
7974
7975
7976fi
7977
7978
7979fi
7980
7981
7982fi
7983
7984 ;;
7985 esac
7986
7987 if test "x$lt_cv_dlopen" != xno; then
7988 enable_dlopen=yes
7989 else
7990 enable_dlopen=no
7991 fi
7992
7993 case $lt_cv_dlopen in
7994 dlopen)
7995 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00007996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00007997
7998 save_LDFLAGS="$LDFLAGS"
7999 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8000
8001 save_LIBS="$LIBS"
8002 LIBS="$lt_cv_dlopen_libs $LIBS"
8003
8004 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8005echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8006if test "${lt_cv_dlopen_self+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 if test "$cross_compiling" = yes; then :
8010 lt_cv_dlopen_self=cross
8011else
John Criswell47fdd832003-07-14 16:52:07 +00008012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008013 lt_status=$lt_dlunknown
8014 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +00008015#line 8015 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008016#include "confdefs.h"
8017
8018#if HAVE_DLFCN_H
8019#include <dlfcn.h>
8020#endif
8021
8022#include <stdio.h>
8023
8024#ifdef RTLD_GLOBAL
8025# define LT_DLGLOBAL RTLD_GLOBAL
8026#else
8027# ifdef DL_GLOBAL
8028# define LT_DLGLOBAL DL_GLOBAL
8029# else
8030# define LT_DLGLOBAL 0
8031# endif
8032#endif
8033
8034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8035 find out it does not work in some platform. */
8036#ifndef LT_DLLAZY_OR_NOW
8037# ifdef RTLD_LAZY
8038# define LT_DLLAZY_OR_NOW RTLD_LAZY
8039# else
8040# ifdef DL_LAZY
8041# define LT_DLLAZY_OR_NOW DL_LAZY
8042# else
8043# ifdef RTLD_NOW
8044# define LT_DLLAZY_OR_NOW RTLD_NOW
8045# else
8046# ifdef DL_NOW
8047# define LT_DLLAZY_OR_NOW DL_NOW
8048# else
8049# define LT_DLLAZY_OR_NOW 0
8050# endif
8051# endif
8052# endif
8053# endif
8054#endif
8055
8056#ifdef __cplusplus
8057extern "C" void exit (int);
8058#endif
8059
8060void fnord() { int i=42;}
8061int main ()
8062{
8063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8064 int status = $lt_dlunknown;
8065
8066 if (self)
8067 {
8068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8070 /* dlclose (self); */
8071 }
8072
8073 exit (status);
8074}
8075EOF
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8081 (./conftest; exit; ) 2>/dev/null
8082 lt_status=$?
8083 case x$lt_status in
8084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8086 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8087 esac
8088 else :
8089 # compilation failed
8090 lt_cv_dlopen_self=no
8091 fi
8092fi
8093rm -fr conftest*
8094
8095
8096fi
8097echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8098echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8099
8100 if test "x$lt_cv_dlopen_self" = xyes; then
8101 LDFLAGS="$LDFLAGS $link_static_flag"
8102 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8103echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8104if test "${lt_cv_dlopen_self_static+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 if test "$cross_compiling" = yes; then :
8108 lt_cv_dlopen_self_static=cross
8109else
John Criswell47fdd832003-07-14 16:52:07 +00008110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008111 lt_status=$lt_dlunknown
8112 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +00008113#line 8113 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008114#include "confdefs.h"
8115
8116#if HAVE_DLFCN_H
8117#include <dlfcn.h>
8118#endif
8119
8120#include <stdio.h>
8121
8122#ifdef RTLD_GLOBAL
8123# define LT_DLGLOBAL RTLD_GLOBAL
8124#else
8125# ifdef DL_GLOBAL
8126# define LT_DLGLOBAL DL_GLOBAL
8127# else
8128# define LT_DLGLOBAL 0
8129# endif
8130#endif
8131
8132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133 find out it does not work in some platform. */
8134#ifndef LT_DLLAZY_OR_NOW
8135# ifdef RTLD_LAZY
8136# define LT_DLLAZY_OR_NOW RTLD_LAZY
8137# else
8138# ifdef DL_LAZY
8139# define LT_DLLAZY_OR_NOW DL_LAZY
8140# else
8141# ifdef RTLD_NOW
8142# define LT_DLLAZY_OR_NOW RTLD_NOW
8143# else
8144# ifdef DL_NOW
8145# define LT_DLLAZY_OR_NOW DL_NOW
8146# else
8147# define LT_DLLAZY_OR_NOW 0
8148# endif
8149# endif
8150# endif
8151# endif
8152#endif
8153
8154#ifdef __cplusplus
8155extern "C" void exit (int);
8156#endif
8157
8158void fnord() { int i=42;}
8159int main ()
8160{
8161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162 int status = $lt_dlunknown;
8163
8164 if (self)
8165 {
8166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168 /* dlclose (self); */
8169 }
8170
8171 exit (status);
8172}
8173EOF
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179 (./conftest; exit; ) 2>/dev/null
8180 lt_status=$?
8181 case x$lt_status in
8182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8184 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8185 esac
8186 else :
8187 # compilation failed
8188 lt_cv_dlopen_self_static=no
8189 fi
8190fi
8191rm -fr conftest*
8192
8193
8194fi
8195echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8196echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8197 fi
8198
8199 CPPFLAGS="$save_CPPFLAGS"
8200 LDFLAGS="$save_LDFLAGS"
8201 LIBS="$save_LIBS"
8202 ;;
8203 esac
8204
8205 case $lt_cv_dlopen_self in
8206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8207 *) enable_dlopen_self=unknown ;;
8208 esac
8209
8210 case $lt_cv_dlopen_self_static in
8211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8212 *) enable_dlopen_self_static=unknown ;;
8213 esac
8214fi
8215
8216
John Criswell47fdd832003-07-14 16:52:07 +00008217# Report which librarie types wil actually be built
8218echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8219echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8220echo "$as_me:$LINENO: result: $can_build_shared" >&5
8221echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008222
John Criswell47fdd832003-07-14 16:52:07 +00008223echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8224echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8225test "$can_build_shared" = "no" && enable_shared=no
8226
8227# On AIX, shared libraries and static libraries use the same namespace, and
8228# are all built from PIC.
8229case "$host_os" in
8230aix3*)
8231 test "$enable_shared" = yes && enable_static=no
8232 if test -n "$RANLIB"; then
8233 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8234 postinstall_cmds='$RANLIB $lib'
8235 fi
8236 ;;
8237
8238aix4*)
8239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8240 test "$enable_shared" = yes && enable_static=no
8241 fi
8242 ;;
8243 darwin* | rhapsody*)
8244 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8245 archive_cmds_need_lc=no
8246 case "$host_os" in
8247 rhapsody* | darwin1.[012])
8248 allow_undefined_flag='-undefined suppress'
8249 ;;
8250 *) # Darwin 1.3 on
8251 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8252 ;;
8253 esac
8254 # FIXME: Relying on posixy $() will cause problems for
8255 # cross-compilation, but unfortunately the echo tests do not
8256 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8257 # `"' quotes if we put them in here... so don't!
8258 output_verbose_link_cmd='echo'
8259 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8260 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8262 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}'
8263 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}'
8264 hardcode_direct=no
8265 hardcode_automatic=yes
8266 hardcode_shlibpath_var=unsupported
8267 whole_archive_flag_spec='-all_load $convenience'
8268 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008269 fi
John Criswell7a73b802003-06-30 21:59:07 +00008270 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008271esac
8272echo "$as_me:$LINENO: result: $enable_shared" >&5
8273echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008274
John Criswell47fdd832003-07-14 16:52:07 +00008275echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8276echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8277# Make sure either enable_shared or enable_static is yes.
8278test "$enable_shared" = yes || enable_static=yes
8279echo "$as_me:$LINENO: result: $enable_static" >&5
8280echo "${ECHO_T}$enable_static" >&6
8281
8282# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008283# libtool distribution, otherwise you forgot to ship ltmain.sh
8284# with your package, and you will get complaints that there are
8285# no rules to generate ltmain.sh.
8286if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008287 # See if we are running on zsh, and set the options which allow our commands through
8288 # without removal of \ escapes.
8289 if test -n "${ZSH_VERSION+set}" ; then
8290 setopt NO_GLOB_SUBST
8291 fi
John Criswell7a73b802003-06-30 21:59:07 +00008292 # Now quote all the things that may contain metacharacters while being
8293 # careful not to overquote the AC_SUBSTed values. We take copies of the
8294 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8298 deplibs_check_method reload_flag reload_cmds need_locks \
8299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8300 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008302 old_postinstall_cmds old_postuninstall_cmds \
8303 compiler \
8304 CC \
8305 LD \
8306 lt_prog_compiler_wl \
8307 lt_prog_compiler_pic \
8308 lt_prog_compiler_static \
8309 lt_prog_compiler_no_builtin_flag \
8310 export_dynamic_flag_spec \
8311 thread_safe_flag_spec \
8312 whole_archive_flag_spec \
8313 enable_shared_with_static_runtimes \
8314 old_archive_cmds \
8315 old_archive_from_new_cmds \
8316 predep_objects \
8317 postdep_objects \
8318 predeps \
8319 postdeps \
8320 compiler_lib_search_path \
8321 archive_cmds \
8322 archive_expsym_cmds \
8323 postinstall_cmds \
8324 postuninstall_cmds \
8325 old_archive_from_expsyms_cmds \
8326 allow_undefined_flag \
8327 no_undefined_flag \
8328 export_symbols_cmds \
8329 hardcode_libdir_flag_spec \
8330 hardcode_libdir_flag_spec_ld \
8331 hardcode_libdir_separator \
8332 hardcode_automatic \
8333 module_cmds \
8334 module_expsym_cmds \
8335 lt_cv_prog_compiler_c_o \
8336 exclude_expsyms \
8337 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008338
8339 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008340 old_archive_cmds | \
8341 old_archive_from_new_cmds | \
8342 archive_cmds | \
8343 archive_expsym_cmds | \
8344 module_cmds | \
8345 module_expsym_cmds | \
8346 old_archive_from_expsyms_cmds | \
8347 export_symbols_cmds | \
8348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008349 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008350 old_postinstall_cmds | old_postuninstall_cmds | \
8351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008352 # Double-quote double-evaled strings.
8353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8354 ;;
8355 *)
8356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8357 ;;
8358 esac
8359 done
8360
John Criswell47fdd832003-07-14 16:52:07 +00008361 case $lt_echo in
8362 *'\$0 --fallback-echo"')
8363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8364 ;;
8365 esac
8366
8367cfgfile="${ofile}T"
8368 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8369 $rm -f "$cfgfile"
8370 { echo "$as_me:$LINENO: creating $ofile" >&5
8371echo "$as_me: creating $ofile" >&6;}
8372
8373 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008374#! $SHELL
8375
John Criswell47fdd832003-07-14 16:52:07 +00008376# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008377# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8378# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8379#
John Criswell47fdd832003-07-14 16:52:07 +00008380# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8381# Free Software Foundation, Inc.
8382#
8383# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008384# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8385#
8386# This program is free software; you can redistribute it and/or modify
8387# it under the terms of the GNU General Public License as published by
8388# the Free Software Foundation; either version 2 of the License, or
8389# (at your option) any later version.
8390#
8391# This program is distributed in the hope that it will be useful, but
8392# WITHOUT ANY WARRANTY; without even the implied warranty of
8393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8394# General Public License for more details.
8395#
8396# You should have received a copy of the GNU General Public License
8397# along with this program; if not, write to the Free Software
8398# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8399#
8400# As a special exception to the GNU General Public License, if you
8401# distribute this file as part of a program that contains a
8402# configuration script generated by Autoconf, you may include it under
8403# the same distribution terms that you use for the rest of that program.
8404
John Criswell47fdd832003-07-14 16:52:07 +00008405# A sed program that does not truncate output.
8406SED=$lt_SED
8407
John Criswell7a73b802003-06-30 21:59:07 +00008408# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008409Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008410
8411# The HP-UX ksh and POSIX shell print the target directory to stdout
8412# if CDPATH is set.
8413if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8414
John Criswell47fdd832003-07-14 16:52:07 +00008415# The names of the tagged configurations supported by this script.
8416available_tags=
8417
John Criswell7a73b802003-06-30 21:59:07 +00008418# ### BEGIN LIBTOOL CONFIG
8419
8420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8421
8422# Shell to use when invoking shell scripts.
8423SHELL=$lt_SHELL
8424
8425# Whether or not to build shared libraries.
8426build_libtool_libs=$enable_shared
8427
8428# Whether or not to build static libraries.
8429build_old_libs=$enable_static
8430
8431# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008432build_libtool_need_lc=$archive_cmds_need_lc
8433
8434# Whether or not to disallow shared libs when runtime libs are static
8435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008436
8437# Whether or not to optimize for fast installation.
8438fast_install=$enable_fast_install
8439
8440# The host system.
8441host_alias=$host_alias
8442host=$host
8443
8444# An echo program that does not interpret backslashes.
8445echo=$lt_echo
8446
8447# The archiver.
8448AR=$lt_AR
8449AR_FLAGS=$lt_AR_FLAGS
8450
John Criswell47fdd832003-07-14 16:52:07 +00008451# A C compiler.
8452LTCC=$lt_LTCC
8453
8454# A language-specific compiler.
8455CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008456
8457# Is the compiler the GNU C compiler?
8458with_gcc=$GCC
8459
John Criswell47fdd832003-07-14 16:52:07 +00008460# An ERE matcher.
8461EGREP=$lt_EGREP
8462
John Criswell7a73b802003-06-30 21:59:07 +00008463# The linker used to build libraries.
8464LD=$lt_LD
8465
8466# Whether we need hard or soft links.
8467LN_S=$lt_LN_S
8468
8469# A BSD-compatible nm program.
8470NM=$lt_NM
8471
8472# A symbol stripping program
8473STRIP=$STRIP
8474
8475# Used to examine libraries when file_magic_cmd begins "file"
8476MAGIC_CMD=$MAGIC_CMD
8477
8478# Used on cygwin: DLL creation program.
8479DLLTOOL="$DLLTOOL"
8480
8481# Used on cygwin: object dumper.
8482OBJDUMP="$OBJDUMP"
8483
8484# Used on cygwin: assembler.
8485AS="$AS"
8486
8487# The name of the directory that contains temporary libtool files.
8488objdir=$objdir
8489
8490# How to create reloadable object files.
8491reload_flag=$lt_reload_flag
8492reload_cmds=$lt_reload_cmds
8493
8494# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008495wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008496
8497# Object file suffix (normally "o").
8498objext="$ac_objext"
8499
8500# Old archive suffix (normally "a").
8501libext="$libext"
8502
John Criswell47fdd832003-07-14 16:52:07 +00008503# Shared library suffix (normally ".so").
8504shrext='$shrext'
8505
John Criswell7a73b802003-06-30 21:59:07 +00008506# Executable file suffix (normally "").
8507exeext="$exeext"
8508
8509# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008510pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008511pic_mode=$pic_mode
8512
John Criswell47fdd832003-07-14 16:52:07 +00008513# What is the maximum length of a command?
8514max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008515
John Criswell47fdd832003-07-14 16:52:07 +00008516# Does compiler simultaneously support -c and -o options?
8517compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008518
8519# Must we lock files when doing compilation ?
8520need_locks=$lt_need_locks
8521
8522# Do we need the lib prefix for modules?
8523need_lib_prefix=$need_lib_prefix
8524
8525# Do we need a version for libraries?
8526need_version=$need_version
8527
8528# Whether dlopen is supported.
8529dlopen_support=$enable_dlopen
8530
8531# Whether dlopen of programs is supported.
8532dlopen_self=$enable_dlopen_self
8533
8534# Whether dlopen of statically linked programs is supported.
8535dlopen_self_static=$enable_dlopen_self_static
8536
8537# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008538link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008539
8540# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008542
8543# Compiler flag to allow reflexive dlopens.
8544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8545
8546# Compiler flag to generate shared objects directly from archives.
8547whole_archive_flag_spec=$lt_whole_archive_flag_spec
8548
8549# Compiler flag to generate thread-safe objects.
8550thread_safe_flag_spec=$lt_thread_safe_flag_spec
8551
8552# Library versioning type.
8553version_type=$version_type
8554
8555# Format of library name prefix.
8556libname_spec=$lt_libname_spec
8557
8558# List of archive names. First name is the real one, the rest are links.
8559# The last name is the one that the linker finds with -lNAME.
8560library_names_spec=$lt_library_names_spec
8561
8562# The coded name of the library, if different from the real name.
8563soname_spec=$lt_soname_spec
8564
8565# Commands used to build and install an old-style archive.
8566RANLIB=$lt_RANLIB
8567old_archive_cmds=$lt_old_archive_cmds
8568old_postinstall_cmds=$lt_old_postinstall_cmds
8569old_postuninstall_cmds=$lt_old_postuninstall_cmds
8570
8571# Create an old-style archive from a shared archive.
8572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8573
8574# Create a temporary old-style archive to link instead of a shared archive.
8575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8576
8577# Commands used to build and install a shared archive.
8578archive_cmds=$lt_archive_cmds
8579archive_expsym_cmds=$lt_archive_expsym_cmds
8580postinstall_cmds=$lt_postinstall_cmds
8581postuninstall_cmds=$lt_postuninstall_cmds
8582
John Criswell47fdd832003-07-14 16:52:07 +00008583# Commands used to build a loadable module (assumed same as above if empty)
8584module_cmds=$lt_module_cmds
8585module_expsym_cmds=$lt_module_expsym_cmds
8586
John Criswell7a73b802003-06-30 21:59:07 +00008587# Commands to strip libraries.
8588old_striplib=$lt_old_striplib
8589striplib=$lt_striplib
8590
John Criswell47fdd832003-07-14 16:52:07 +00008591# Dependencies to place before the objects being linked to create a
8592# shared library.
8593predep_objects=$lt_predep_objects
8594
8595# Dependencies to place after the objects being linked to create a
8596# shared library.
8597postdep_objects=$lt_postdep_objects
8598
8599# Dependencies to place before the objects being linked to create a
8600# shared library.
8601predeps=$lt_predeps
8602
8603# Dependencies to place after the objects being linked to create a
8604# shared library.
8605postdeps=$lt_postdeps
8606
8607# The library search path used internally by the compiler when linking
8608# a shared library.
8609compiler_lib_search_path=$lt_compiler_lib_search_path
8610
John Criswell7a73b802003-06-30 21:59:07 +00008611# Method to check whether dependent libraries are shared objects.
8612deplibs_check_method=$lt_deplibs_check_method
8613
8614# Command to use when deplibs_check_method == file_magic.
8615file_magic_cmd=$lt_file_magic_cmd
8616
8617# Flag that allows shared libraries with undefined symbols to be built.
8618allow_undefined_flag=$lt_allow_undefined_flag
8619
8620# Flag that forces no undefined symbols.
8621no_undefined_flag=$lt_no_undefined_flag
8622
8623# Commands used to finish a libtool library installation in a directory.
8624finish_cmds=$lt_finish_cmds
8625
8626# Same as above, but a single script fragment to be evaled but not shown.
8627finish_eval=$lt_finish_eval
8628
8629# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008631
8632# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008634
8635# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008637
8638# This is the shared library runtime path variable.
8639runpath_var=$runpath_var
8640
8641# This is the shared library path variable.
8642shlibpath_var=$shlibpath_var
8643
8644# Is shlibpath searched before the hard-coded library search path?
8645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8646
8647# How to hardcode a shared library path into an executable.
8648hardcode_action=$hardcode_action
8649
8650# Whether we should hardcode library paths into libraries.
8651hardcode_into_libs=$hardcode_into_libs
8652
8653# Flag to hardcode \$libdir into a binary during linking.
8654# This must work even if \$libdir does not exist.
8655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8656
John Criswell47fdd832003-07-14 16:52:07 +00008657# If ld is used when linking, flag to hardcode \$libdir into
8658# a binary during linking. This must work even if \$libdir does
8659# not exist.
8660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8661
John Criswell7a73b802003-06-30 21:59:07 +00008662# Whether we need a single -rpath flag with a separated argument.
8663hardcode_libdir_separator=$lt_hardcode_libdir_separator
8664
John Criswell47fdd832003-07-14 16:52:07 +00008665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008666# resulting binary.
8667hardcode_direct=$hardcode_direct
8668
8669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8670# resulting binary.
8671hardcode_minus_L=$hardcode_minus_L
8672
8673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8674# the resulting binary.
8675hardcode_shlibpath_var=$hardcode_shlibpath_var
8676
John Criswell47fdd832003-07-14 16:52:07 +00008677# Set to yes if building a shared library automatically hardcodes DIR into the library
8678# and all subsequent libraries and executables linked against it.
8679hardcode_automatic=$hardcode_automatic
8680
John Criswell7a73b802003-06-30 21:59:07 +00008681# Variables whose values should be saved in libtool wrapper scripts and
8682# restored at relink time.
8683variables_saved_for_relink="$variables_saved_for_relink"
8684
8685# Whether libtool must link a program against all its dependency libraries.
8686link_all_deplibs=$link_all_deplibs
8687
8688# Compile-time system search path for libraries
8689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8690
8691# Run-time system search path for libraries
8692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8693
8694# Fix the shell variable \$srcfile for the compiler.
8695fix_srcfile_path="$fix_srcfile_path"
8696
8697# Set to yes if exported symbols are required.
8698always_export_symbols=$always_export_symbols
8699
8700# The commands to list exported symbols.
8701export_symbols_cmds=$lt_export_symbols_cmds
8702
8703# The commands to extract the exported symbol list from a shared archive.
8704extract_expsyms_cmds=$lt_extract_expsyms_cmds
8705
8706# Symbols that should not be listed in the preloaded symbols.
8707exclude_expsyms=$lt_exclude_expsyms
8708
8709# Symbols that must always be exported.
8710include_expsyms=$lt_include_expsyms
8711
8712# ### END LIBTOOL CONFIG
8713
8714__EOF__
8715
John Criswell47fdd832003-07-14 16:52:07 +00008716
John Criswell7a73b802003-06-30 21:59:07 +00008717 case $host_os in
8718 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008719 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008720
8721# AIX sometimes has problems with the GCC collect2 program. For some
8722# reason, if we set the COLLECT_NAMES environment variable, the problems
8723# vanish in a puff of smoke.
8724if test "X${COLLECT_NAMES+set}" != Xset; then
8725 COLLECT_NAMES=
8726 export COLLECT_NAMES
8727fi
8728EOF
8729 ;;
8730 esac
8731
John Criswell7a73b802003-06-30 21:59:07 +00008732 # We use sed instead of cat because bash on DJGPP gets confused if
8733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8734 # text mode, it properly converts lines to CR/LF. This bash problem
8735 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008737
John Criswell47fdd832003-07-14 16:52:07 +00008738 mv -f "$cfgfile" "$ofile" || \
8739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008740 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008741
8742else
8743 # If there is no Makefile yet, we rely on a make rule to execute
8744 # `config.status --recheck' to rerun these tests and create the
8745 # libtool script then.
8746 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008747fi
John Criswell7a73b802003-06-30 21:59:07 +00008748
8749
John Criswell47fdd832003-07-14 16:52:07 +00008750ac_ext=c
8751ac_cpp='$CPP $CPPFLAGS'
8752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755
8756CC="$lt_save_CC"
8757
8758
8759# Check whether --with-tags or --without-tags was given.
8760if test "${with_tags+set}" = set; then
8761 withval="$with_tags"
8762 tagnames="$withval"
8763fi;
8764
8765if test -f "$ltmain" && test -n "$tagnames"; then
8766 if test ! -f "${ofile}"; then
8767 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8768echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8769 fi
8770
8771 if test -z "$LTCC"; then
8772 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8773 if test -z "$LTCC"; then
8774 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8775echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8776 else
8777 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8778echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8779 fi
8780 fi
8781
8782 # Extract list of available tagged configurations in $ofile.
8783 # Note that this assumes the entire list is on one line.
8784 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8785
8786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8787 for tagname in $tagnames; do
8788 IFS="$lt_save_ifs"
8789 # Check whether tagname contains only valid characters
8790 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8791 "") ;;
8792 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8793echo "$as_me: error: invalid tag name: $tagname" >&2;}
8794 { (exit 1); exit 1; }; }
8795 ;;
8796 esac
8797
8798 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8799 then
8800 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8801echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8802 { (exit 1); exit 1; }; }
8803 fi
8804
8805 # Update the list of available tags.
8806 if test -n "$tagname"; then
8807 echo appending configuration tag \"$tagname\" to $ofile
8808
8809 case $tagname in
8810 CXX)
8811 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8812 ac_ext=cc
8813ac_cpp='$CXXCPP $CPPFLAGS'
8814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8817
8818
8819
8820
8821archive_cmds_need_lc_CXX=no
8822allow_undefined_flag_CXX=
8823always_export_symbols_CXX=no
8824archive_expsym_cmds_CXX=
8825export_dynamic_flag_spec_CXX=
8826hardcode_direct_CXX=no
8827hardcode_libdir_flag_spec_CXX=
8828hardcode_libdir_flag_spec_ld_CXX=
8829hardcode_libdir_separator_CXX=
8830hardcode_minus_L_CXX=no
8831hardcode_automatic_CXX=no
8832module_cmds_CXX=
8833module_expsym_cmds_CXX=
8834link_all_deplibs_CXX=unknown
8835old_archive_cmds_CXX=$old_archive_cmds
8836no_undefined_flag_CXX=
8837whole_archive_flag_spec_CXX=
8838enable_shared_with_static_runtimes_CXX=no
8839
8840# Dependencies to place before and after the object being linked:
8841predep_objects_CXX=
8842postdep_objects_CXX=
8843predeps_CXX=
8844postdeps_CXX=
8845compiler_lib_search_path_CXX=
8846
8847# Source file extension for C++ test sources.
8848ac_ext=cc
8849
8850# Object file extension for compiled C++ test sources.
8851objext=o
8852objext_CXX=$objext
8853
8854# Code to be used in simple compile tests
8855lt_simple_compile_test_code="int some_variable = 0;\n"
8856
8857# Code to be used in simple link tests
8858lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8859
8860# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8861
8862# If no C compiler was specified, use CC.
8863LTCC=${LTCC-"$CC"}
8864
8865# Allow CC to be a program name with arguments.
8866compiler=$CC
8867
8868
8869# Allow CC to be a program name with arguments.
8870lt_save_CC=$CC
8871lt_save_LD=$LD
8872lt_save_GCC=$GCC
8873GCC=$GXX
8874lt_save_with_gnu_ld=$with_gnu_ld
8875lt_save_path_LD=$lt_cv_path_LD
8876if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8877 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8878else
8879 unset lt_cv_prog_gnu_ld
8880fi
8881if test -n "${lt_cv_path_LDCXX+set}"; then
8882 lt_cv_path_LD=$lt_cv_path_LDCXX
8883else
8884 unset lt_cv_path_LD
8885fi
8886test -z "${LDCXX+set}" || LD=$LDCXX
8887CC=${CXX-"c++"}
8888compiler=$CC
8889compiler_CXX=$CC
8890cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8891
8892# We don't want -fno-exception wen compiling C++ code, so set the
8893# no_builtin_flag separately
8894if test "$GXX" = yes; then
8895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8896else
8897 lt_prog_compiler_no_builtin_flag_CXX=
8898fi
8899
8900if test "$GXX" = yes; then
8901 # Set up default GNU C++ configuration
8902
8903
8904# Check whether --with-gnu-ld or --without-gnu-ld was given.
8905if test "${with_gnu_ld+set}" = set; then
8906 withval="$with_gnu_ld"
8907 test "$withval" = no || with_gnu_ld=yes
8908else
8909 with_gnu_ld=no
8910fi;
8911ac_prog=ld
8912if test "$GCC" = yes; then
8913 # Check if gcc -print-prog-name=ld gives a path.
8914 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8915echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8916 case $host in
8917 *-*-mingw*)
8918 # gcc leaves a trailing carriage return which upsets mingw
8919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8920 *)
8921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8922 esac
8923 case $ac_prog in
8924 # Accept absolute paths.
8925 [\\/]* | ?:[\\/]*)
8926 re_direlt='/[^/][^/]*/\.\./'
8927 # Canonicalize the path of ld
8928 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8930 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8931 done
8932 test -z "$LD" && LD="$ac_prog"
8933 ;;
8934 "")
8935 # If it fails, then pretend we aren't using GCC.
8936 ac_prog=ld
8937 ;;
8938 *)
8939 # If it is relative, then search for the first ld in PATH.
8940 with_gnu_ld=unknown
8941 ;;
8942 esac
8943elif test "$with_gnu_ld" = yes; then
8944 echo "$as_me:$LINENO: checking for GNU ld" >&5
8945echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8946else
8947 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8948echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8949fi
8950if test "${lt_cv_path_LD+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952else
8953 if test -z "$LD"; then
8954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8955 for ac_dir in $PATH; do
8956 IFS="$lt_save_ifs"
8957 test -z "$ac_dir" && ac_dir=.
8958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8959 lt_cv_path_LD="$ac_dir/$ac_prog"
8960 # Check to see if the program is GNU ld. I'd rather use --version,
8961 # but apparently some GNU ld's only accept -v.
8962 # Break only if it was the GNU/non-GNU ld that we prefer.
8963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8964 *GNU* | *'with BFD'*)
8965 test "$with_gnu_ld" != no && break
8966 ;;
8967 *)
8968 test "$with_gnu_ld" != yes && break
8969 ;;
8970 esac
8971 fi
8972 done
8973 IFS="$lt_save_ifs"
8974else
8975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8976fi
8977fi
8978
8979LD="$lt_cv_path_LD"
8980if test -n "$LD"; then
8981 echo "$as_me:$LINENO: result: $LD" >&5
8982echo "${ECHO_T}$LD" >&6
8983else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986fi
8987test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8988echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8989 { (exit 1); exit 1; }; }
8990echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8991echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8992if test "${lt_cv_prog_gnu_ld+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994else
8995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8996case `"$LD" -v 2>&1 </dev/null` in
8997*GNU* | *'with BFD'*)
8998 lt_cv_prog_gnu_ld=yes
8999 ;;
9000*)
9001 lt_cv_prog_gnu_ld=no
9002 ;;
9003esac
9004fi
9005echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9006echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9007with_gnu_ld=$lt_cv_prog_gnu_ld
9008
9009
9010
9011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9012 # archiving commands below assume that GNU ld is being used.
9013 if test "$with_gnu_ld" = yes; then
9014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 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'
9016
9017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9019
9020 # If archive_cmds runs LD, not CC, wlarc should be empty
9021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9022 # investigate it a little bit more. (MM)
9023 wlarc='${wl}'
9024
9025 # ancient GNU ld didn't support --whole-archive et. al.
9026 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9027 grep 'no-whole-archive' > /dev/null; then
9028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9029 else
9030 whole_archive_flag_spec_CXX=
9031 fi
9032 else
9033 with_gnu_ld=no
9034 wlarc=
9035
9036 # A generic and very simple default shared library creation
9037 # command for GNU C++ for the case where it uses the native
9038 # linker, instead of GNU ld. If possible, this setting should
9039 # overridden to take advantage of the native linker features on
9040 # the platform it is being used on.
9041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9042 fi
9043
9044 # Commands to make compiler produce verbose output that lists
9045 # what "hidden" libraries, object files and flags are used when
9046 # linking a shared library.
9047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9048
9049else
9050 GXX=no
9051 with_gnu_ld=no
9052 wlarc=
9053fi
9054
9055# PORTME: fill in a description of your system's C++ link characteristics
9056echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9057echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9058ld_shlibs_CXX=yes
9059case $host_os in
9060 aix3*)
9061 # FIXME: insert proper C++ library support
9062 ld_shlibs_CXX=no
9063 ;;
9064 aix4* | aix5*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 aix_use_runtimelinking=no
9073
9074 # Test if we are trying to use run time linking or normal
9075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9076 # need to do runtime linking.
9077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9078 for ld_flag in $LDFLAGS; do
9079 case $ld_flag in
9080 *-brtl*)
9081 aix_use_runtimelinking=yes
9082 break
9083 ;;
9084 esac
9085 done
9086 esac
9087
9088 exp_sym_flag='-bexport'
9089 no_entry_flag='-bnoentry'
9090 fi
9091
9092 # When large executables or shared objects are built, AIX ld can
9093 # have problems creating the table of contents. If linking a library
9094 # or program results in "error TOC overflow" add -mminimal-toc to
9095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098 archive_cmds_CXX=''
9099 hardcode_direct_CXX=yes
9100 hardcode_libdir_separator_CXX=':'
9101 link_all_deplibs_CXX=yes
9102
9103 if test "$GXX" = yes; then
9104 case $host_os in aix4.012|aix4.012.*)
9105 # We only want to do this on AIX 4.2 and lower, the check
9106 # below for broken collect2 doesn't work under 4.3+
9107 collect2name=`${CC} -print-prog-name=collect2`
9108 if test -f "$collect2name" && \
9109 strings "$collect2name" | grep resolve_lib_name >/dev/null
9110 then
9111 # We have reworked collect2
9112 hardcode_direct_CXX=yes
9113 else
9114 # We have old collect2
9115 hardcode_direct_CXX=unsupported
9116 # It fails to find uninstalled libraries when the uninstalled
9117 # path is not listed in the libpath. Setting hardcode_minus_L
9118 # to unsupported forces relinking
9119 hardcode_minus_L_CXX=yes
9120 hardcode_libdir_flag_spec_CXX='-L$libdir'
9121 hardcode_libdir_separator_CXX=
9122 fi
9123 esac
9124 shared_flag='-shared'
9125 else
9126 # not using gcc
9127 if test "$host_cpu" = ia64; then
9128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9129 # chokes on -Wl,-G. The following line is correct:
9130 shared_flag='-G'
9131 else
9132 if test "$aix_use_runtimelinking" = yes; then
9133 shared_flag='${wl}-G'
9134 else
9135 shared_flag='${wl}-bM:SRE'
9136 fi
9137 fi
9138 fi
9139
9140 # It seems that -bexpall does not export symbols beginning with
9141 # underscore (_), so it is better to generate a list of symbols to export.
9142 always_export_symbols_CXX=yes
9143 if test "$aix_use_runtimelinking" = yes; then
9144 # Warning - without using the other runtime loading flags (-brtl),
9145 # -berok will link without error, but may produce a broken library.
9146 allow_undefined_flag_CXX='-berok'
9147 # Determine the default libpath from the value encoded in an empty executable.
9148 cat >conftest.$ac_ext <<_ACEOF
9149#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009155
John Criswell47fdd832003-07-14 16:52:07 +00009156int
9157main ()
9158{
9159
9160 ;
9161 return 0;
9162}
9163_ACEOF
9164rm -f conftest.$ac_objext conftest$ac_exeext
9165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176
9177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9178}'`
9179# Check for a 64-bit object if we didn't find anything.
9180if 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; }
9181}'`; fi
9182else
9183 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009184sed 's/^/| /' conftest.$ac_ext >&5
9185
John Criswell47fdd832003-07-14 16:52:07 +00009186fi
9187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9188if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9189
9190 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9191
9192 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"
9193 else
9194 if test "$host_cpu" = ia64; then
9195 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9196 allow_undefined_flag_CXX="-z nodefs"
9197 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"
9198 else
9199 # Determine the default libpath from the value encoded in an empty executable.
9200 cat >conftest.$ac_ext <<_ACEOF
9201#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009207
John Criswell47fdd832003-07-14 16:52:07 +00009208int
9209main ()
9210{
9211
9212 ;
9213 return 0;
9214}
9215_ACEOF
9216rm -f conftest.$ac_objext conftest$ac_exeext
9217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218 (eval $ac_link) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228
9229aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9230}'`
9231# Check for a 64-bit object if we didn't find anything.
9232if 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; }
9233}'`; fi
9234else
9235 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009236sed 's/^/| /' conftest.$ac_ext >&5
9237
John Criswell47fdd832003-07-14 16:52:07 +00009238fi
9239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9240if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9241
9242 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9243 # Warning - without using the other run time loading flags,
9244 # -berok will link without error, but may produce a broken library.
9245 no_undefined_flag_CXX=' ${wl}-bernotok'
9246 allow_undefined_flag_CXX=' ${wl}-berok'
9247 # -bexpall does not export symbols beginning with underscore (_)
9248 always_export_symbols_CXX=yes
9249 # Exported symbols can be pulled into shared objects from archives
9250 whole_archive_flag_spec_CXX=' '
9251 archive_cmds_need_lc_CXX=yes
9252 # This is similar to how AIX traditionally builds it's shared libraries.
9253 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'
9254 fi
9255 fi
9256 ;;
9257 chorus*)
9258 case $cc_basename in
9259 *)
9260 # FIXME: insert proper C++ library support
9261 ld_shlibs_CXX=no
9262 ;;
9263 esac
9264 ;;
9265
9266 cygwin* | mingw* | pw32*)
9267 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9268 # as there is no search path for DLLs.
9269 hardcode_libdir_flag_spec_CXX='-L$libdir'
9270 allow_undefined_flag_CXX=unsupported
9271 always_export_symbols_CXX=no
9272 enable_shared_with_static_runtimes_CXX=yes
9273
9274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9275 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'
9276 # If the export-symbols file already is a .def file (1st line
9277 # is EXPORTS), use it as is; otherwise, prepend...
9278 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9279 cp $export_symbols $output_objdir/$soname.def;
9280 else
9281 echo EXPORTS > $output_objdir/$soname.def;
9282 cat $export_symbols >> $output_objdir/$soname.def;
9283 fi~
9284 $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'
9285 else
9286 ld_shlibs_CXX=no
9287 fi
9288 ;;
9289
9290 darwin* | rhapsody*)
9291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9292 archive_cmds_need_lc_CXX=no
9293 case "$host_os" in
9294 rhapsody* | darwin1.[012])
9295 allow_undefined_flag_CXX='-undefined suppress'
9296 ;;
9297 *) # Darwin 1.3 on
9298 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9299 ;;
9300 esac
9301 lt_int_apple_cc_single_mod=no
9302 output_verbose_link_cmd='echo'
9303 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9304 lt_int_apple_cc_single_mod=yes
9305 fi
9306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9307 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9308 else
9309 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'
9310 fi
9311 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9312
9313 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9314 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9315 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}'
9316 else
9317 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}'
9318 fi
9319 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}'
9320 hardcode_direct_CXX=no
9321 hardcode_automatic_CXX=yes
9322 hardcode_shlibpath_var_CXX=unsupported
9323 whole_archive_flag_spec_CXX='-all_load $convenience'
9324 link_all_deplibs_CXX=yes
9325 fi
9326 ;;
9327
9328 dgux*)
9329 case $cc_basename in
9330 ec++)
9331 # FIXME: insert proper C++ library support
9332 ld_shlibs_CXX=no
9333 ;;
9334 ghcx)
9335 # Green Hills C++ Compiler
9336 # FIXME: insert proper C++ library support
9337 ld_shlibs_CXX=no
9338 ;;
9339 *)
9340 # FIXME: insert proper C++ library support
9341 ld_shlibs_CXX=no
9342 ;;
9343 esac
9344 ;;
9345 freebsd12*)
9346 # C++ shared libraries reported to be fairly broken before switch to ELF
9347 ld_shlibs_CXX=no
9348 ;;
9349 freebsd-elf*)
9350 archive_cmds_need_lc_CXX=no
9351 ;;
9352 freebsd*)
9353 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9354 # conventions
9355 ld_shlibs_CXX=yes
9356 ;;
9357 gnu*)
9358 ;;
9359 hpux9*)
9360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9361 hardcode_libdir_separator_CXX=:
9362 export_dynamic_flag_spec_CXX='${wl}-E'
9363 hardcode_direct_CXX=yes
9364 hardcode_minus_L_CXX=yes # Not in the search PATH,
9365 # but as the default
9366 # location of the library.
9367
9368 case $cc_basename in
9369 CC)
9370 # FIXME: insert proper C++ library support
9371 ld_shlibs_CXX=no
9372 ;;
9373 aCC)
9374 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'
9375 # Commands to make compiler produce verbose output that lists
9376 # what "hidden" libraries, object files and flags are used when
9377 # linking a shared library.
9378 #
9379 # There doesn't appear to be a way to prevent this compiler from
9380 # explicitly linking system object files so we need to strip them
9381 # from the output so that they don't get included in the library
9382 # dependencies.
9383 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'
9384 ;;
9385 *)
9386 if test "$GXX" = yes; then
9387 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'
9388 else
9389 # FIXME: insert proper C++ library support
9390 ld_shlibs_CXX=no
9391 fi
9392 ;;
9393 esac
9394 ;;
9395 hpux10*|hpux11*)
9396 if test $with_gnu_ld = no; then
9397 case "$host_cpu" in
9398 hppa*64*)
9399 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9401 hardcode_libdir_separator_CXX=:
9402 ;;
9403 ia64*)
9404 hardcode_libdir_flag_spec_CXX='-L$libdir'
9405 ;;
9406 *)
9407 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator_CXX=:
9409 export_dynamic_flag_spec_CXX='${wl}-E'
9410 ;;
9411 esac
9412 fi
9413 case "$host_cpu" in
9414 hppa*64*)
9415 hardcode_direct_CXX=no
9416 hardcode_shlibpath_var_CXX=no
9417 ;;
9418 ia64*)
9419 hardcode_direct_CXX=no
9420 hardcode_shlibpath_var_CXX=no
9421 hardcode_minus_L_CXX=yes # Not in the search PATH,
9422 # but as the default
9423 # location of the library.
9424 ;;
9425 *)
9426 hardcode_direct_CXX=yes
9427 hardcode_minus_L_CXX=yes # Not in the search PATH,
9428 # but as the default
9429 # location of the library.
9430 ;;
9431 esac
9432
9433 case $cc_basename in
9434 CC)
9435 # FIXME: insert proper C++ library support
9436 ld_shlibs_CXX=no
9437 ;;
9438 aCC)
9439 case "$host_cpu" in
9440 hppa*64*|ia64*)
9441 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9442 ;;
9443 *)
9444 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9445 ;;
9446 esac
9447 # Commands to make compiler produce verbose output that lists
9448 # what "hidden" libraries, object files and flags are used when
9449 # linking a shared library.
9450 #
9451 # There doesn't appear to be a way to prevent this compiler from
9452 # explicitly linking system object files so we need to strip them
9453 # from the output so that they don't get included in the library
9454 # dependencies.
9455 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'
9456 ;;
9457 *)
9458 if test "$GXX" = yes; then
9459 if test $with_gnu_ld = no; then
9460 case "$host_cpu" in
9461 ia64*|hppa*64*)
9462 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9463 ;;
9464 *)
9465 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'
9466 ;;
9467 esac
9468 fi
9469 else
9470 # FIXME: insert proper C++ library support
9471 ld_shlibs_CXX=no
9472 fi
9473 ;;
9474 esac
9475 ;;
9476 irix5* | irix6*)
9477 case $cc_basename in
9478 CC)
9479 # SGI C++
9480 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'
9481
9482 # Archives containing C++ object files must be created using
9483 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9484 # necessary to make sure instantiated templates are included
9485 # in the archive.
9486 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9487 ;;
9488 *)
9489 if test "$GXX" = yes; then
9490 if test "$with_gnu_ld" = no; then
9491 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'
9492 else
9493 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'
9494 fi
9495 fi
9496 link_all_deplibs_CXX=yes
9497 ;;
9498 esac
9499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator_CXX=:
9501 ;;
9502 linux*)
9503 case $cc_basename in
9504 KCC)
9505 # Kuck and Associates, Inc. (KAI) C++ Compiler
9506
9507 # KCC will only create a shared library if the output file
9508 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9509 # to its proper name (with version) after linking.
9510 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'
9511 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'
9512 # Commands to make compiler produce verbose output that lists
9513 # what "hidden" libraries, object files and flags are used when
9514 # linking a shared library.
9515 #
9516 # There doesn't appear to be a way to prevent this compiler from
9517 # explicitly linking system object files so we need to strip them
9518 # from the output so that they don't get included in the library
9519 # dependencies.
9520 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'
9521
9522 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9524
9525 # Archives containing C++ object files must be created using
9526 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9527 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9528 ;;
9529 icpc)
9530 # Intel C++
9531 with_gnu_ld=yes
9532 archive_cmds_need_lc_CXX=no
9533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 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'
9535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9537 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9538 ;;
9539 cxx)
9540 # Compaq C++
9541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 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'
9543
9544 runpath_var=LD_RUN_PATH
9545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9546 hardcode_libdir_separator_CXX=:
9547
9548 # Commands to make compiler produce verbose output that lists
9549 # what "hidden" libraries, object files and flags are used when
9550 # linking a shared library.
9551 #
9552 # There doesn't appear to be a way to prevent this compiler from
9553 # explicitly linking system object files so we need to strip them
9554 # from the output so that they don't get included in the library
9555 # dependencies.
9556 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'
9557 ;;
9558 esac
9559 ;;
9560 lynxos*)
9561 # FIXME: insert proper C++ library support
9562 ld_shlibs_CXX=no
9563 ;;
9564 m88k*)
9565 # FIXME: insert proper C++ library support
9566 ld_shlibs_CXX=no
9567 ;;
9568 mvs*)
9569 case $cc_basename in
9570 cxx)
9571 # FIXME: insert proper C++ library support
9572 ld_shlibs_CXX=no
9573 ;;
9574 *)
9575 # FIXME: insert proper C++ library support
9576 ld_shlibs_CXX=no
9577 ;;
9578 esac
9579 ;;
9580 netbsd*)
9581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9582 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9583 wlarc=
9584 hardcode_libdir_flag_spec_CXX='-R$libdir'
9585 hardcode_direct_CXX=yes
9586 hardcode_shlibpath_var_CXX=no
9587 fi
9588 # Workaround some broken pre-1.5 toolchains
9589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9590 ;;
9591 osf3*)
9592 case $cc_basename in
9593 KCC)
9594 # Kuck and Associates, Inc. (KAI) C++ Compiler
9595
9596 # KCC will only create a shared library if the output file
9597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9598 # to its proper name (with version) after linking.
9599 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'
9600
9601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9602 hardcode_libdir_separator_CXX=:
9603
9604 # Archives containing C++ object files must be created using
9605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9607
9608 ;;
9609 RCC)
9610 # Rational C++ 2.4.1
9611 # FIXME: insert proper C++ library support
9612 ld_shlibs_CXX=no
9613 ;;
9614 cxx)
9615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9616 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'
9617
9618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator_CXX=:
9620
9621 # Commands to make compiler produce verbose output that lists
9622 # what "hidden" libraries, object files and flags are used when
9623 # linking a shared library.
9624 #
9625 # There doesn't appear to be a way to prevent this compiler from
9626 # explicitly linking system object files so we need to strip them
9627 # from the output so that they don't get included in the library
9628 # dependencies.
9629 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'
9630 ;;
9631 *)
9632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9634 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'
9635
9636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator_CXX=:
9638
9639 # Commands to make compiler produce verbose output that lists
9640 # what "hidden" libraries, object files and flags are used when
9641 # linking a shared library.
9642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9643
9644 else
9645 # FIXME: insert proper C++ library support
9646 ld_shlibs_CXX=no
9647 fi
9648 ;;
9649 esac
9650 ;;
9651 osf4* | osf5*)
9652 case $cc_basename in
9653 KCC)
9654 # Kuck and Associates, Inc. (KAI) C++ Compiler
9655
9656 # KCC will only create a shared library if the output file
9657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9658 # to its proper name (with version) after linking.
9659 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'
9660
9661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9662 hardcode_libdir_separator_CXX=:
9663
9664 # Archives containing C++ object files must be created using
9665 # the KAI C++ compiler.
9666 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9667 ;;
9668 RCC)
9669 # Rational C++ 2.4.1
9670 # FIXME: insert proper C++ library support
9671 ld_shlibs_CXX=no
9672 ;;
9673 cxx)
9674 allow_undefined_flag_CXX=' -expect_unresolved \*'
9675 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'
9676 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9677 echo "-hidden">> $lib.exp~
9678 $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~
9679 $rm $lib.exp'
9680
9681 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9682 hardcode_libdir_separator_CXX=:
9683
9684 # Commands to make compiler produce verbose output that lists
9685 # what "hidden" libraries, object files and flags are used when
9686 # linking a shared library.
9687 #
9688 # There doesn't appear to be a way to prevent this compiler from
9689 # explicitly linking system object files so we need to strip them
9690 # from the output so that they don't get included in the library
9691 # dependencies.
9692 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'
9693 ;;
9694 *)
9695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9696 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9697 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'
9698
9699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9700 hardcode_libdir_separator_CXX=:
9701
9702 # Commands to make compiler produce verbose output that lists
9703 # what "hidden" libraries, object files and flags are used when
9704 # linking a shared library.
9705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9706
9707 else
9708 # FIXME: insert proper C++ library support
9709 ld_shlibs_CXX=no
9710 fi
9711 ;;
9712 esac
9713 ;;
9714 psos*)
9715 # FIXME: insert proper C++ library support
9716 ld_shlibs_CXX=no
9717 ;;
9718 sco*)
9719 archive_cmds_need_lc_CXX=no
9720 case $cc_basename in
9721 CC)
9722 # FIXME: insert proper C++ library support
9723 ld_shlibs_CXX=no
9724 ;;
9725 *)
9726 # FIXME: insert proper C++ library support
9727 ld_shlibs_CXX=no
9728 ;;
9729 esac
9730 ;;
9731 sunos4*)
9732 case $cc_basename in
9733 CC)
9734 # Sun C++ 4.x
9735 # FIXME: insert proper C++ library support
9736 ld_shlibs_CXX=no
9737 ;;
9738 lcc)
9739 # Lucid
9740 # FIXME: insert proper C++ library support
9741 ld_shlibs_CXX=no
9742 ;;
9743 *)
9744 # FIXME: insert proper C++ library support
9745 ld_shlibs_CXX=no
9746 ;;
9747 esac
9748 ;;
9749 solaris*)
9750 case $cc_basename in
9751 CC)
9752 # Sun C++ 4.2, 5.x and Centerline C++
9753 no_undefined_flag_CXX=' -zdefs'
9754 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9755 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9756 $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'
9757
9758 hardcode_libdir_flag_spec_CXX='-R$libdir'
9759 hardcode_shlibpath_var_CXX=no
9760 case $host_os in
9761 solaris2.0-5 | solaris2.0-5.*) ;;
9762 *)
9763 # The C++ compiler is used as linker so we must use $wl
9764 # flag to pass the commands to the underlying system
9765 # linker.
9766 # Supported since Solaris 2.6 (maybe 2.5.1?)
9767 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9768 ;;
9769 esac
9770 link_all_deplibs_CXX=yes
9771
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9775 #
9776 # There doesn't appear to be a way to prevent this compiler from
9777 # explicitly linking system object files so we need to strip them
9778 # from the output so that they don't get included in the library
9779 # dependencies.
9780 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'
9781
9782 # Archives containing C++ object files must be created using
9783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9784 # necessary to make sure instantiated templates are included
9785 # in the archive.
9786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9787 ;;
9788 gcx)
9789 # Green Hills C++ Compiler
9790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9791
9792 # The C++ compiler must be used to create the archive.
9793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9794 ;;
9795 *)
9796 # GNU C++ compiler with Solaris linker
9797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9799 if $CC --version | grep -v '^2\.7' > /dev/null; then
9800 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9801 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9802 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9803
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9807 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9808 else
9809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9810 # platform.
9811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9812 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9814
9815 # Commands to make compiler produce verbose output that lists
9816 # what "hidden" libraries, object files and flags are used when
9817 # linking a shared library.
9818 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9819 fi
9820
9821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9822 fi
9823 ;;
9824 esac
9825 ;;
9826 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9827 archive_cmds_need_lc_CXX=no
9828 ;;
9829 tandem*)
9830 case $cc_basename in
9831 NCC)
9832 # NonStop-UX NCC 3.20
9833 # FIXME: insert proper C++ library support
9834 ld_shlibs_CXX=no
9835 ;;
9836 *)
9837 # FIXME: insert proper C++ library support
9838 ld_shlibs_CXX=no
9839 ;;
9840 esac
9841 ;;
9842 vxworks*)
9843 # FIXME: insert proper C++ library support
9844 ld_shlibs_CXX=no
9845 ;;
9846 *)
9847 # FIXME: insert proper C++ library support
9848 ld_shlibs_CXX=no
9849 ;;
9850esac
9851echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9852echo "${ECHO_T}$ld_shlibs_CXX" >&6
9853test "$ld_shlibs_CXX" = no && can_build_shared=no
9854
9855GCC_CXX="$GXX"
9856LD_CXX="$LD"
9857
9858## CAVEAT EMPTOR:
9859## There is no encapsulation within the following macros, do not change
9860## the running order or otherwise move them around unless you know exactly
9861## what you are doing...
9862
9863cat > conftest.$ac_ext <<EOF
9864class Foo
9865{
9866public:
9867 Foo (void) { a = 0; }
9868private:
9869 int a;
9870};
9871EOF
9872
9873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; then
9878 # Parse the compiler output and extract the necessary
9879 # objects, libraries and library flags.
9880
9881 # Sentinel used to keep track of whether or not we are before
9882 # the conftest object file.
9883 pre_test_object_deps_done=no
9884
9885 # The `*' in the case matches for architectures that use `case' in
9886 # $output_verbose_cmd can trigger glob expansion during the loop
9887 # eval without this substitution.
9888 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9889
9890 for p in `eval $output_verbose_link_cmd`; do
9891 case $p in
9892
9893 -L* | -R* | -l*)
9894 # Some compilers place space between "-{L,R}" and the path.
9895 # Remove the space.
9896 if test $p = "-L" \
9897 || test $p = "-R"; then
9898 prev=$p
9899 continue
9900 else
9901 prev=
9902 fi
9903
9904 if test "$pre_test_object_deps_done" = no; then
9905 case $p in
9906 -L* | -R*)
9907 # Internal compiler library paths should come after those
9908 # provided the user. The postdeps already come after the
9909 # user supplied libs so there is no need to process them.
9910 if test -z "$compiler_lib_search_path_CXX"; then
9911 compiler_lib_search_path_CXX="${prev}${p}"
9912 else
9913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9914 fi
9915 ;;
9916 # The "-l" case would never come before the object being
9917 # linked, so don't bother handling this case.
9918 esac
9919 else
9920 if test -z "$postdeps_CXX"; then
9921 postdeps_CXX="${prev}${p}"
9922 else
9923 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9924 fi
9925 fi
9926 ;;
9927
9928 *.$objext)
9929 # This assumes that the test object file only shows up
9930 # once in the compiler output.
9931 if test "$p" = "conftest.$objext"; then
9932 pre_test_object_deps_done=yes
9933 continue
9934 fi
9935
9936 if test "$pre_test_object_deps_done" = no; then
9937 if test -z "$predep_objects_CXX"; then
9938 predep_objects_CXX="$p"
9939 else
9940 predep_objects_CXX="$predep_objects_CXX $p"
9941 fi
9942 else
9943 if test -z "$postdep_objects_CXX"; then
9944 postdep_objects_CXX="$p"
9945 else
9946 postdep_objects_CXX="$postdep_objects_CXX $p"
9947 fi
9948 fi
9949 ;;
9950
9951 *) ;; # Ignore the rest.
9952
9953 esac
9954 done
9955
9956 # Clean up.
9957 rm -f a.out a.exe
9958else
9959 echo "libtool.m4: error: problem compiling CXX test program"
9960fi
9961
9962$rm -f confest.$objext
9963
9964case " $postdeps_CXX " in
9965*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9966esac
9967
9968lt_prog_compiler_wl_CXX=
9969lt_prog_compiler_pic_CXX=
9970lt_prog_compiler_static_CXX=
9971
9972echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9973echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9974
9975 # C++ specific cases for pic, static, wl, etc.
9976 if test "$GXX" = yes; then
9977 lt_prog_compiler_wl_CXX='-Wl,'
9978 lt_prog_compiler_static_CXX='-static'
9979
9980 case $host_os in
9981 aix*)
9982 # All AIX code is PIC.
9983 if test "$host_cpu" = ia64; then
9984 # AIX 5 now supports IA64 processor
9985 lt_prog_compiler_static_CXX='-Bstatic'
9986 fi
9987 ;;
9988 amigaos*)
9989 # FIXME: we need at least 68020 code to build shared libraries, but
9990 # adding the `-m68020' flag to GCC prevents building anything better,
9991 # like `-m68040'.
9992 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9993 ;;
9994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9995 # PIC is the default for these OSes.
9996 ;;
9997 mingw* | os2* | pw32*)
9998 # This hack is so that the source file can tell whether it is being
9999 # built for inclusion in a dll (and should export symbols for example).
10000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10001 ;;
10002 darwin* | rhapsody*)
10003 # PIC is the default on this platform
10004 # Common symbols not allowed in MH_DYLIB files
10005 lt_prog_compiler_pic_CXX='-fno-common'
10006 ;;
10007 *djgpp*)
10008 # DJGPP does not support shared libraries at all
10009 lt_prog_compiler_pic_CXX=
10010 ;;
10011 sysv4*MP*)
10012 if test -d /usr/nec; then
10013 lt_prog_compiler_pic_CXX=-Kconform_pic
10014 fi
10015 ;;
10016 hpux*)
10017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10018 # not for PA HP-UX.
10019 case "$host_cpu" in
10020 hppa*64*|ia64*)
10021 ;;
10022 *)
10023 lt_prog_compiler_pic_CXX='-fPIC'
10024 ;;
10025 esac
10026 ;;
10027 *)
10028 lt_prog_compiler_pic_CXX='-fPIC'
10029 ;;
10030 esac
10031 else
10032 case $host_os in
10033 aix4* | aix5*)
10034 # All AIX code is PIC.
10035 if test "$host_cpu" = ia64; then
10036 # AIX 5 now supports IA64 processor
10037 lt_prog_compiler_static_CXX='-Bstatic'
10038 else
10039 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10040 fi
10041 ;;
10042 chorus*)
10043 case $cc_basename in
10044 cxch68)
10045 # Green Hills C++ Compiler
10046 # _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"
10047 ;;
10048 esac
10049 ;;
10050 dgux*)
10051 case $cc_basename in
10052 ec++)
10053 lt_prog_compiler_pic_CXX='-KPIC'
10054 ;;
10055 ghcx)
10056 # Green Hills C++ Compiler
10057 lt_prog_compiler_pic_CXX='-pic'
10058 ;;
10059 *)
10060 ;;
10061 esac
10062 ;;
10063 freebsd*)
10064 # FreeBSD uses GNU C++
10065 ;;
10066 hpux9* | hpux10* | hpux11*)
10067 case $cc_basename in
10068 CC)
10069 lt_prog_compiler_wl_CXX='-Wl,'
10070 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10071 if test "$host_cpu" != ia64; then
10072 lt_prog_compiler_pic_CXX='+Z'
10073 fi
10074 ;;
10075 aCC)
10076 lt_prog_compiler_wl_CXX='-Wl,'
10077 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10078 case "$host_cpu" in
10079 hppa*64*|ia64*)
10080 # +Z the default
10081 ;;
10082 *)
10083 lt_prog_compiler_pic_CXX='+Z'
10084 ;;
10085 esac
10086 ;;
10087 *)
10088 ;;
10089 esac
10090 ;;
10091 irix5* | irix6* | nonstopux*)
10092 case $cc_basename in
10093 CC)
10094 lt_prog_compiler_wl_CXX='-Wl,'
10095 lt_prog_compiler_static_CXX='-non_shared'
10096 # CC pic flag -KPIC is the default.
10097 ;;
10098 *)
10099 ;;
10100 esac
10101 ;;
10102 linux*)
10103 case $cc_basename in
10104 KCC)
10105 # KAI C++ Compiler
10106 lt_prog_compiler_wl_CXX='--backend -Wl,'
10107 lt_prog_compiler_pic_CXX='-fPIC'
10108 ;;
10109 icpc)
10110 # Intel C++
10111 lt_prog_compiler_wl_CXX='-Wl,'
10112 lt_prog_compiler_pic_CXX='-KPIC'
10113 lt_prog_compiler_static_CXX='-static'
10114 ;;
10115 cxx)
10116 # Compaq C++
10117 # Make sure the PIC flag is empty. It appears that all Alpha
10118 # Linux and Compaq Tru64 Unix objects are PIC.
10119 lt_prog_compiler_pic_CXX=
10120 lt_prog_compiler_static_CXX='-non_shared'
10121 ;;
10122 *)
10123 ;;
10124 esac
10125 ;;
10126 lynxos*)
10127 ;;
10128 m88k*)
10129 ;;
10130 mvs*)
10131 case $cc_basename in
10132 cxx)
10133 lt_prog_compiler_pic_CXX='-W c,exportall'
10134 ;;
10135 *)
10136 ;;
10137 esac
10138 ;;
10139 netbsd*)
10140 ;;
10141 osf3* | osf4* | osf5*)
10142 case $cc_basename in
10143 KCC)
10144 lt_prog_compiler_wl_CXX='--backend -Wl,'
10145 ;;
10146 RCC)
10147 # Rational C++ 2.4.1
10148 lt_prog_compiler_pic_CXX='-pic'
10149 ;;
10150 cxx)
10151 # Digital/Compaq C++
10152 lt_prog_compiler_wl_CXX='-Wl,'
10153 # Make sure the PIC flag is empty. It appears that all Alpha
10154 # Linux and Compaq Tru64 Unix objects are PIC.
10155 lt_prog_compiler_pic_CXX=
10156 lt_prog_compiler_static_CXX='-non_shared'
10157 ;;
10158 *)
10159 ;;
10160 esac
10161 ;;
10162 psos*)
10163 ;;
10164 sco*)
10165 case $cc_basename in
10166 CC)
10167 lt_prog_compiler_pic_CXX='-fPIC'
10168 ;;
10169 *)
10170 ;;
10171 esac
10172 ;;
10173 solaris*)
10174 case $cc_basename in
10175 CC)
10176 # Sun C++ 4.2, 5.x and Centerline C++
10177 lt_prog_compiler_pic_CXX='-KPIC'
10178 lt_prog_compiler_static_CXX='-Bstatic'
10179 lt_prog_compiler_wl_CXX='-Qoption ld '
10180 ;;
10181 gcx)
10182 # Green Hills C++ Compiler
10183 lt_prog_compiler_pic_CXX='-PIC'
10184 ;;
10185 *)
10186 ;;
10187 esac
10188 ;;
10189 sunos4*)
10190 case $cc_basename in
10191 CC)
10192 # Sun C++ 4.x
10193 lt_prog_compiler_pic_CXX='-pic'
10194 lt_prog_compiler_static_CXX='-Bstatic'
10195 ;;
10196 lcc)
10197 # Lucid
10198 lt_prog_compiler_pic_CXX='-pic'
10199 ;;
10200 *)
10201 ;;
10202 esac
10203 ;;
10204 tandem*)
10205 case $cc_basename in
10206 NCC)
10207 # NonStop-UX NCC 3.20
10208 lt_prog_compiler_pic_CXX='-KPIC'
10209 ;;
10210 *)
10211 ;;
10212 esac
10213 ;;
10214 unixware*)
10215 ;;
10216 vxworks*)
10217 ;;
10218 *)
10219 lt_prog_compiler_can_build_shared_CXX=no
10220 ;;
10221 esac
10222 fi
10223
10224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10225echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10226
10227#
10228# Check to make sure the PIC flag actually works.
10229#
10230if test -n "$lt_prog_compiler_pic_CXX"; then
10231 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10233if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235else
10236 lt_prog_compiler_pic_works_CXX=no
10237 ac_outfile=conftest.$ac_objext
10238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10239 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10240 # Insert the option either (1) after the last *FLAGS variable, or
10241 # (2) before a word containing "conftest.", or (3) at the end.
10242 # Note that $ac_compile itself does not contain backslashes and begins
10243 # with a dollar sign (not a hyphen), so the echo should work correctly.
10244 # The option is referenced via a variable to avoid confusing sed.
10245 lt_compile=`echo "$ac_compile" | $SED \
10246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10248 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000010249 (eval echo "\"\$as_me:10249: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010250 (eval "$lt_compile" 2>conftest.err)
10251 ac_status=$?
10252 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000010253 echo "$as_me:10253: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010254 if (exit $ac_status) && test -s "$ac_outfile"; then
10255 # The compiler can only warn and ignore the option if not recognized
10256 # So say no if there are warnings
10257 if test ! -s conftest.err; then
10258 lt_prog_compiler_pic_works_CXX=yes
10259 fi
10260 fi
10261 $rm conftest*
10262
10263fi
10264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10265echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10266
10267if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10268 case $lt_prog_compiler_pic_CXX in
10269 "" | " "*) ;;
10270 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10271 esac
10272else
10273 lt_prog_compiler_pic_CXX=
10274 lt_prog_compiler_can_build_shared_CXX=no
10275fi
10276
10277fi
10278case "$host_os" in
10279 # For platforms which do not support PIC, -DPIC is meaningless:
10280 *djgpp*)
10281 lt_prog_compiler_pic_CXX=
10282 ;;
10283 *)
10284 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10285 ;;
10286esac
10287
10288echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10290if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 lt_cv_prog_compiler_c_o_CXX=no
10294 $rm -r conftest 2>/dev/null
10295 mkdir conftest
10296 cd conftest
10297 mkdir out
10298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10299
10300 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10301 # that will create temporary files in the current directory regardless of
10302 # the output directory. Thus, making CWD read-only will cause this test
10303 # to fail, enabling locking or at least warning the user not to do parallel
10304 # builds.
10305 chmod -w .
10306
10307 lt_compiler_flag="-o out/conftest2.$ac_objext"
10308 # Insert the option either (1) after the last *FLAGS variable, or
10309 # (2) before a word containing "conftest.", or (3) at the end.
10310 # Note that $ac_compile itself does not contain backslashes and begins
10311 # with a dollar sign (not a hyphen), so the echo should work correctly.
10312 lt_compile=`echo "$ac_compile" | $SED \
10313 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10315 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000010316 (eval echo "\"\$as_me:10316: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010317 (eval "$lt_compile" 2>out/conftest.err)
10318 ac_status=$?
10319 cat out/conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000010320 echo "$as_me:10320: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10322 then
10323 # The compiler can only warn and ignore the option if not recognized
10324 # So say no if there are warnings
10325 if test ! -s out/conftest.err; then
10326 lt_cv_prog_compiler_c_o_CXX=yes
10327 fi
10328 fi
10329 chmod u+w .
10330 $rm conftest* out/*
10331 rmdir out
10332 cd ..
10333 rmdir conftest
10334 $rm conftest*
10335
10336fi
10337echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10338echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10339
10340
10341hard_links="nottested"
10342if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10343 # do not overwrite the value of need_locks provided by the user
10344 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10345echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10346 hard_links=yes
10347 $rm conftest*
10348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10349 touch conftest.a
10350 ln conftest.a conftest.b 2>&5 || hard_links=no
10351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10352 echo "$as_me:$LINENO: result: $hard_links" >&5
10353echo "${ECHO_T}$hard_links" >&6
10354 if test "$hard_links" = no; then
10355 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10356echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10357 need_locks=warn
10358 fi
10359else
10360 need_locks=no
10361fi
10362
10363echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10364echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10365
10366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10367 case $host_os in
10368 aix4* | aix5*)
10369 # If we're using GNU nm, then we don't want the "-C" option.
10370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10371 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10372 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'
10373 else
10374 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'
10375 fi
10376 ;;
10377 pw32*)
10378 export_symbols_cmds_CXX="$ltdll_cmds"
10379 ;;
10380 cygwin* | mingw*)
10381 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10382 ;;
10383 *)
10384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10385 ;;
10386 esac
10387
10388echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10389echo "${ECHO_T}$ld_shlibs_CXX" >&6
10390test "$ld_shlibs_CXX" = no && can_build_shared=no
10391
10392variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10393if test "$GCC" = yes; then
10394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10395fi
10396
10397#
10398# Do we need to explicitly link libc?
10399#
10400case "x$archive_cmds_need_lc_CXX" in
10401x|xyes)
10402 # Assume -lc should be added
10403 archive_cmds_need_lc_CXX=yes
10404
10405 if test "$enable_shared" = yes && test "$GCC" = yes; then
10406 case $archive_cmds_CXX in
10407 *'~'*)
10408 # FIXME: we may have to deal with multi-command sequences.
10409 ;;
10410 '$CC '*)
10411 # Test whether the compiler implicitly links with -lc since on some
10412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10413 # to ld, don't add -lc before -lgcc.
10414 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10415echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10416 $rm conftest*
10417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10418
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } 2>conftest.err; then
10424 soname=conftest
10425 lib=conftest
10426 libobjs=conftest.$ac_objext
10427 deplibs=
10428 wl=$lt_prog_compiler_wl_CXX
10429 compiler_flags=-v
10430 linker_flags=-v
10431 verstring=
10432 output_objdir=.
10433 libname=conftest
10434 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10435 allow_undefined_flag_CXX=
10436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10437 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }
10441 then
10442 archive_cmds_need_lc_CXX=no
10443 else
10444 archive_cmds_need_lc_CXX=yes
10445 fi
10446 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10447 else
10448 cat conftest.err 1>&5
10449 fi
10450 $rm conftest*
10451 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10452echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10453 ;;
10454 esac
10455 fi
10456 ;;
10457esac
10458
10459echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10460echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10461hardcode_action_CXX=
10462if test -n "$hardcode_libdir_flag_spec_CXX" || \
10463 test -n "$runpath_var CXX" || \
10464 test "X$hardcode_automatic_CXX"="Xyes" ; then
10465
10466 # We can hardcode non-existant directories.
10467 if test "$hardcode_direct_CXX" != no &&
10468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10469 # have to relink, otherwise we might link with an installed library
10470 # when we should be linking with a yet-to-be-installed one
10471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10472 test "$hardcode_minus_L_CXX" != no; then
10473 # Linking always hardcodes the temporary library directory.
10474 hardcode_action_CXX=relink
10475 else
10476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10477 hardcode_action_CXX=immediate
10478 fi
10479else
10480 # We cannot hardcode anything, or else we can only hardcode existing
10481 # directories.
10482 hardcode_action_CXX=unsupported
10483fi
10484echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10485echo "${ECHO_T}$hardcode_action_CXX" >&6
10486
10487if test "$hardcode_action_CXX" = relink; then
10488 # Fast installation is not supported
10489 enable_fast_install=no
10490elif test "$shlibpath_overrides_runpath" = yes ||
10491 test "$enable_shared" = no; then
10492 # Fast installation is not necessary
10493 enable_fast_install=needless
10494fi
10495
10496striplib=
10497old_striplib=
10498echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10499echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10500if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10503 echo "$as_me:$LINENO: result: yes" >&5
10504echo "${ECHO_T}yes" >&6
10505else
10506# FIXME - insert some real tests, host_os isn't really good enough
10507 case $host_os in
10508 darwin*)
10509 if test -n "$STRIP" ; then
10510 striplib="$STRIP -x"
10511 echo "$as_me:$LINENO: result: yes" >&5
10512echo "${ECHO_T}yes" >&6
10513 else
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
10516fi
10517 ;;
10518 *)
10519 echo "$as_me:$LINENO: result: no" >&5
10520echo "${ECHO_T}no" >&6
10521 ;;
10522 esac
10523fi
10524
10525echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10526echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10527library_names_spec=
10528libname_spec='lib$name'
10529soname_spec=
10530shrext=".so"
10531postinstall_cmds=
10532postuninstall_cmds=
10533finish_cmds=
10534finish_eval=
10535shlibpath_var=
10536shlibpath_overrides_runpath=unknown
10537version_type=none
10538dynamic_linker="$host_os ld.so"
10539sys_lib_dlsearch_path_spec="/lib /usr/lib"
10540if test "$GCC" = yes; then
10541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10548 else
10549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10550 fi
10551else
10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10553fi
10554need_lib_prefix=unknown
10555hardcode_into_libs=no
10556
10557# when you set need_version to no, make sure it does not cause -set_version
10558# flags to be left without arguments
10559need_version=unknown
10560
10561case $host_os in
10562aix3*)
10563 version_type=linux
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10565 shlibpath_var=LIBPATH
10566
10567 # AIX 3 has no versioning support, so we append a major version to the name.
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 ;;
10570
10571aix4* | aix5*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 hardcode_into_libs=yes
10576 if test "$host_cpu" = ia64; then
10577 # AIX 5 supports IA64
10578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 else
10581 # With GCC up to 2.95.x, collect2 would create an import file
10582 # for dependence libraries. The import file would start with
10583 # the line `#! .'. This would cause the generated library to
10584 # depend on `.', always an invalid library. This was fixed in
10585 # development snapshots of GCC prior to 3.0.
10586 case $host_os in
10587 aix4 | aix4.[01] | aix4.[01].*)
10588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10589 echo ' yes '
10590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10591 :
10592 else
10593 can_build_shared=no
10594 fi
10595 ;;
10596 esac
10597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10598 # soname into executable. Probably we can add versioning support to
10599 # collect2, so additional links can be useful in future.
10600 if test "$aix_use_runtimelinking" = yes; then
10601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10602 # instead of lib<name>.a to let people know that these are not
10603 # typical AIX shared libraries.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 else
10606 # We preserve .a as extension for shared libraries through AIX4.2
10607 # and later when we are not doing run time linking.
10608 library_names_spec='${libname}${release}.a $libname.a'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 fi
10611 shlibpath_var=LIBPATH
10612 fi
10613 ;;
10614
10615amigaos*)
10616 library_names_spec='$libname.ixlibrary $libname.a'
10617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10618 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'
10619 ;;
10620
10621beos*)
10622 library_names_spec='${libname}${shared_ext}'
10623 dynamic_linker="$host_os ld.so"
10624 shlibpath_var=LIBRARY_PATH
10625 ;;
10626
10627bsdi4*)
10628 version_type=linux
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10636 # the default ld.so.conf also contains /usr/contrib/lib and
10637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10638 # libtool to hard-code these into programs
10639 ;;
10640
10641cygwin* | mingw* | pw32*)
10642 version_type=windows
10643 shrext=".dll"
10644 need_version=no
10645 need_lib_prefix=no
10646
10647 case $GCC,$host_os in
10648 yes,cygwin* | yes,mingw* | yes,pw32*)
10649 library_names_spec='$libname.dll.a'
10650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10651 postinstall_cmds='base_file=`basename \${file}`~
10652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10653 dldir=$destdir/`dirname \$dlpath`~
10654 test -d \$dldir || mkdir -p \$dldir~
10655 $install_prog $dir/$dlname \$dldir/$dlname'
10656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10657 dlpath=$dir/\$dldll~
10658 $rm \$dlpath'
10659 shlibpath_overrides_runpath=yes
10660
10661 case $host_os in
10662 cygwin*)
10663 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10664 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10666 ;;
10667 mingw*)
10668 # MinGW DLLs use traditional 'lib' prefix
10669 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10671 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10672 # It is most probably a Windows format PATH printed by
10673 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10674 # path with ; separators, and with drive letters. We can handle the
10675 # drive letters (cygwin fileutils understands them), so leave them,
10676 # especially as we might pass files found there to a mingw objdump,
10677 # which wouldn't understand a cygwinified path. Ahh.
10678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10679 else
10680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10681 fi
10682 ;;
10683 pw32*)
10684 # pw32 DLLs use 'pw' prefix rather than 'lib'
10685 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10686 ;;
10687 esac
10688 ;;
10689
10690 *)
10691 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10692 ;;
10693 esac
10694 dynamic_linker='Win32 ld.exe'
10695 # FIXME: first we should search . and the directory the executable is in
10696 shlibpath_var=PATH
10697 ;;
10698
10699darwin* | rhapsody*)
10700 dynamic_linker="$host_os dyld"
10701 version_type=darwin
10702 need_lib_prefix=no
10703 need_version=no
10704 # FIXME: Relying on posixy $() will cause problems for
10705 # cross-compilation, but unfortunately the echo tests do not
10706 # yet detect zsh echo's removal of \ escapes.
10707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10708 soname_spec='${libname}${release}${major}$shared_ext'
10709 shlibpath_overrides_runpath=yes
10710 shlibpath_var=DYLD_LIBRARY_PATH
10711 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10713 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10714 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"`
10715 fi
10716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10717 ;;
10718
10719dgux*)
10720 version_type=linux
10721 need_lib_prefix=no
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 ;;
10727
10728freebsd1*)
10729 dynamic_linker=no
10730 ;;
10731
10732freebsd*)
10733 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10734 version_type=freebsd-$objformat
10735 case $version_type in
10736 freebsd-elf*)
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10738 need_version=no
10739 need_lib_prefix=no
10740 ;;
10741 freebsd-*)
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10743 need_version=yes
10744 ;;
10745 esac
10746 shlibpath_var=LD_LIBRARY_PATH
10747 case $host_os in
10748 freebsd2*)
10749 shlibpath_overrides_runpath=yes
10750 ;;
10751 freebsd3.01* | freebsdelf3.01*)
10752 shlibpath_overrides_runpath=yes
10753 hardcode_into_libs=yes
10754 ;;
10755 *) # from 3.2 on
10756 shlibpath_overrides_runpath=no
10757 hardcode_into_libs=yes
10758 ;;
10759 esac
10760 ;;
10761
10762gnu*)
10763 version_type=linux
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 hardcode_into_libs=yes
10770 ;;
10771
10772hpux9* | hpux10* | hpux11*)
10773 # Give a soname corresponding to the major version so that dld.sl refuses to
10774 # link against other versions.
10775 version_type=sunos
10776 need_lib_prefix=no
10777 need_version=no
10778 case "$host_cpu" in
10779 ia64*)
10780 shrext='.so'
10781 hardcode_into_libs=yes
10782 dynamic_linker="$host_os dld.so"
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 if test "X$HPUX_IA64_MODE" = X32; then
10788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10789 else
10790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10791 fi
10792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10793 ;;
10794 hppa*64*)
10795 shrext='.sl'
10796 hardcode_into_libs=yes
10797 dynamic_linker="$host_os dld.sl"
10798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10804 ;;
10805 *)
10806 shrext='.sl'
10807 dynamic_linker="$host_os dld.sl"
10808 shlibpath_var=SHLIB_PATH
10809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 ;;
10813 esac
10814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10815 postinstall_cmds='chmod 555 $lib'
10816 ;;
10817
10818irix5* | irix6* | nonstopux*)
10819 case $host_os in
10820 nonstopux*) version_type=nonstopux ;;
10821 *)
10822 if test "$lt_cv_prog_gnu_ld" = yes; then
10823 version_type=linux
10824 else
10825 version_type=irix
10826 fi ;;
10827 esac
10828 need_lib_prefix=no
10829 need_version=no
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10832 case $host_os in
10833 irix5* | nonstopux*)
10834 libsuff= shlibsuff=
10835 ;;
10836 *)
10837 case $LD in # libtool.m4 will add one of these switches to LD
10838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10839 libsuff= shlibsuff= libmagic=32-bit;;
10840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10841 libsuff=32 shlibsuff=N32 libmagic=N32;;
10842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10844 *) libsuff= shlibsuff= libmagic=never-match;;
10845 esac
10846 ;;
10847 esac
10848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10849 shlibpath_overrides_runpath=no
10850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10852 hardcode_into_libs=yes
10853 ;;
10854
10855# No shared lib support for Linux oldld, aout, or coff.
10856linux*oldld* | linux*aout* | linux*coff*)
10857 dynamic_linker=no
10858 ;;
10859
10860# This must be Linux ELF.
10861linux*)
10862 version_type=linux
10863 need_lib_prefix=no
10864 need_version=no
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=no
10870 # This implies no fast_install, which is unacceptable.
10871 # Some rework will be needed to allow for fast_install
10872 # before this can be enabled.
10873 hardcode_into_libs=yes
10874
10875 # We used to test for /lib/ld.so.1 and disable shared libraries on
10876 # powerpc, because MkLinux only supported shared libraries with the
10877 # GNU dynamic linker. Since this was broken with cross compilers,
10878 # most powerpc-linux boxes support dynamic linking these days and
10879 # people can always --disable-shared, the test was removed, and we
10880 # assume the GNU/Linux dynamic linker is in use.
10881 dynamic_linker='GNU/Linux ld.so'
10882 ;;
10883
10884netbsd*)
10885 version_type=sunos
10886 need_lib_prefix=no
10887 need_version=no
10888 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10891 dynamic_linker='NetBSD (a.out) ld.so'
10892 else
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 dynamic_linker='NetBSD ld.elf_so'
10896 fi
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901
10902newsos6)
10903 version_type=linux
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 ;;
10908
10909nto-qnx)
10910 version_type=linux
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10917 ;;
10918
10919openbsd*)
10920 version_type=sunos
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10927 case $host_os in
10928 openbsd2.[89] | openbsd2.[89].*)
10929 shlibpath_overrides_runpath=no
10930 ;;
10931 *)
10932 shlibpath_overrides_runpath=yes
10933 ;;
10934 esac
10935 else
10936 shlibpath_overrides_runpath=yes
10937 fi
10938 ;;
10939
10940os2*)
10941 libname_spec='$name'
10942 shrext=".dll"
10943 need_lib_prefix=no
10944 library_names_spec='$libname${shared_ext} $libname.a'
10945 dynamic_linker='OS/2 ld.exe'
10946 shlibpath_var=LIBPATH
10947 ;;
10948
10949osf3* | osf4* | osf5*)
10950 version_type=osf
10951 need_lib_prefix=no
10952 need_version=no
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10958 ;;
10959
10960sco3.2v5*)
10961 version_type=osf
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 ;;
10966
10967solaris*)
10968 version_type=linux
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10975 hardcode_into_libs=yes
10976 # ldd complains unless libraries are executable
10977 postinstall_cmds='chmod +x $lib'
10978 ;;
10979
10980sunos4*)
10981 version_type=sunos
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 if test "$with_gnu_ld" = yes; then
10987 need_lib_prefix=no
10988 fi
10989 need_version=yes
10990 ;;
10991
10992sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10993 version_type=linux
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 case $host_vendor in
10998 sni)
10999 shlibpath_overrides_runpath=no
11000 need_lib_prefix=no
11001 export_dynamic_flag_spec='${wl}-Blargedynsym'
11002 runpath_var=LD_RUN_PATH
11003 ;;
11004 siemens)
11005 need_lib_prefix=no
11006 ;;
11007 motorola)
11008 need_lib_prefix=no
11009 need_version=no
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11012 ;;
11013 esac
11014 ;;
11015
11016sysv4*MP*)
11017 if test -d /usr/nec ;then
11018 version_type=linux
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 fi
11023 ;;
11024
11025uts4*)
11026 version_type=linux
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 ;;
11031
11032*)
11033 dynamic_linker=no
11034 ;;
11035esac
11036echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11037echo "${ECHO_T}$dynamic_linker" >&6
11038test "$dynamic_linker" = no && can_build_shared=no
11039
11040if test "x$enable_dlopen" != xyes; then
11041 enable_dlopen=unknown
11042 enable_dlopen_self=unknown
11043 enable_dlopen_self_static=unknown
11044else
11045 lt_cv_dlopen=no
11046 lt_cv_dlopen_libs=
11047
11048 case $host_os in
11049 beos*)
11050 lt_cv_dlopen="load_add_on"
11051 lt_cv_dlopen_libs=
11052 lt_cv_dlopen_self=yes
11053 ;;
11054
11055 mingw* | pw32*)
11056 lt_cv_dlopen="LoadLibrary"
11057 lt_cv_dlopen_libs=
11058 ;;
11059
11060 cygwin*)
11061 lt_cv_dlopen="dlopen"
11062 lt_cv_dlopen_libs=
11063 ;;
11064
11065 darwin*)
11066 # if libdl is installed we need to link against it
11067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11068echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11069if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 ac_check_lib_save_LIBS=$LIBS
11073LIBS="-ldl $LIBS"
11074cat >conftest.$ac_ext <<_ACEOF
11075#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011081
11082/* Override any gcc2 internal prototype to avoid an error. */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086/* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011089int
11090main ()
11091{
11092dlopen ();
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext conftest$ac_exeext
11098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -s conftest$ac_exeext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_lib_dl_dlopen=yes
11110else
11111 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011112sed 's/^/| /' conftest.$ac_ext >&5
11113
John Criswell47fdd832003-07-14 16:52:07 +000011114ac_cv_lib_dl_dlopen=no
11115fi
11116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11117LIBS=$ac_check_lib_save_LIBS
11118fi
11119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11121if test $ac_cv_lib_dl_dlopen = yes; then
11122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11123else
11124
11125 lt_cv_dlopen="dyld"
11126 lt_cv_dlopen_libs=
11127 lt_cv_dlopen_self=yes
11128
11129fi
11130
11131 ;;
11132
11133 *)
11134 echo "$as_me:$LINENO: checking for shl_load" >&5
11135echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11136if test "${ac_cv_func_shl_load+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 cat >conftest.$ac_ext <<_ACEOF
11140#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011146/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011147 which can conflict with char shl_load (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11150#ifdef __STDC__
11151# include <limits.h>
11152#else
11153# include <assert.h>
11154#endif
John Criswell47fdd832003-07-14 16:52:07 +000011155/* Override any gcc2 internal prototype to avoid an error. */
11156#ifdef __cplusplus
11157extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011158{
John Criswell47fdd832003-07-14 16:52:07 +000011159#endif
11160/* We use char because int might match the return type of a gcc2
11161 builtin and then its argument prototype would still apply. */
11162char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011163/* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166#if defined (__stub_shl_load) || defined (__stub___shl_load)
11167choke me
11168#else
John Criswell392aaa32003-07-22 19:18:09 +000011169char (*f) () = shl_load;
11170#endif
11171#ifdef __cplusplus
11172}
John Criswell47fdd832003-07-14 16:52:07 +000011173#endif
11174
John Criswell392aaa32003-07-22 19:18:09 +000011175int
11176main ()
11177{
11178return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func_shl_load=yes
11196else
11197 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011198sed 's/^/| /' conftest.$ac_ext >&5
11199
John Criswell47fdd832003-07-14 16:52:07 +000011200ac_cv_func_shl_load=no
11201fi
11202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203fi
11204echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11205echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11206if test $ac_cv_func_shl_load = yes; then
11207 lt_cv_dlopen="shl_load"
11208else
11209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11210echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11211if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 ac_check_lib_save_LIBS=$LIBS
11215LIBS="-ldld $LIBS"
11216cat >conftest.$ac_ext <<_ACEOF
11217#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011223
11224/* Override any gcc2 internal prototype to avoid an error. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228/* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11230char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011231int
11232main ()
11233{
11234shl_load ();
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext conftest$ac_exeext
11240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_lib_dld_shl_load=yes
11252else
11253 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011254sed 's/^/| /' conftest.$ac_ext >&5
11255
John Criswell47fdd832003-07-14 16:52:07 +000011256ac_cv_lib_dld_shl_load=no
11257fi
11258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259LIBS=$ac_check_lib_save_LIBS
11260fi
11261echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11262echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11263if test $ac_cv_lib_dld_shl_load = yes; then
11264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11265else
11266 echo "$as_me:$LINENO: checking for dlopen" >&5
11267echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11268if test "${ac_cv_func_dlopen+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 cat >conftest.$ac_ext <<_ACEOF
11272#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011278/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011279 which can conflict with char dlopen (); below.
11280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11281 <limits.h> exists even on freestanding compilers. */
11282#ifdef __STDC__
11283# include <limits.h>
11284#else
11285# include <assert.h>
11286#endif
John Criswell47fdd832003-07-14 16:52:07 +000011287/* Override any gcc2 internal prototype to avoid an error. */
11288#ifdef __cplusplus
11289extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011290{
John Criswell47fdd832003-07-14 16:52:07 +000011291#endif
11292/* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011295/* The GNU C library defines this for functions which it implements
11296 to always fail with ENOSYS. Some functions are actually named
11297 something starting with __ and the normal name is an alias. */
11298#if defined (__stub_dlopen) || defined (__stub___dlopen)
11299choke me
11300#else
John Criswell392aaa32003-07-22 19:18:09 +000011301char (*f) () = dlopen;
11302#endif
11303#ifdef __cplusplus
11304}
John Criswell47fdd832003-07-14 16:52:07 +000011305#endif
11306
John Criswell392aaa32003-07-22 19:18:09 +000011307int
11308main ()
11309{
11310return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext conftest$ac_exeext
11316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_func_dlopen=yes
11328else
11329 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011330sed 's/^/| /' conftest.$ac_ext >&5
11331
John Criswell47fdd832003-07-14 16:52:07 +000011332ac_cv_func_dlopen=no
11333fi
11334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335fi
11336echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11337echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11338if test $ac_cv_func_dlopen = yes; then
11339 lt_cv_dlopen="dlopen"
11340else
11341 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11342echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11343if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345else
11346 ac_check_lib_save_LIBS=$LIBS
11347LIBS="-ldl $LIBS"
11348cat >conftest.$ac_ext <<_ACEOF
11349#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011355
11356/* Override any gcc2 internal prototype to avoid an error. */
11357#ifdef __cplusplus
11358extern "C"
11359#endif
11360/* We use char because int might match the return type of a gcc2
11361 builtin and then its argument prototype would still apply. */
11362char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011363int
11364main ()
11365{
11366dlopen ();
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371rm -f conftest.$ac_objext conftest$ac_exeext
11372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -s conftest$ac_exeext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_lib_dl_dlopen=yes
11384else
11385 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011386sed 's/^/| /' conftest.$ac_ext >&5
11387
John Criswell47fdd832003-07-14 16:52:07 +000011388ac_cv_lib_dl_dlopen=no
11389fi
11390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11391LIBS=$ac_check_lib_save_LIBS
11392fi
11393echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11394echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11395if test $ac_cv_lib_dl_dlopen = yes; then
11396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11397else
11398 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11399echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11400if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 ac_check_lib_save_LIBS=$LIBS
11404LIBS="-lsvld $LIBS"
11405cat >conftest.$ac_ext <<_ACEOF
11406#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011407/* confdefs.h. */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011412
11413/* Override any gcc2 internal prototype to avoid an error. */
11414#ifdef __cplusplus
11415extern "C"
11416#endif
11417/* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11419char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011420int
11421main ()
11422{
11423dlopen ();
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428rm -f conftest.$ac_objext conftest$ac_exeext
11429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_lib_svld_dlopen=yes
11441else
11442 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011443sed 's/^/| /' conftest.$ac_ext >&5
11444
John Criswell47fdd832003-07-14 16:52:07 +000011445ac_cv_lib_svld_dlopen=no
11446fi
11447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11451echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11452if test $ac_cv_lib_svld_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11454else
11455 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11456echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11457if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 ac_check_lib_save_LIBS=$LIBS
11461LIBS="-ldld $LIBS"
11462cat >conftest.$ac_ext <<_ACEOF
11463#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011469
11470/* Override any gcc2 internal prototype to avoid an error. */
11471#ifdef __cplusplus
11472extern "C"
11473#endif
11474/* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011477int
11478main ()
11479{
11480dld_link ();
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485rm -f conftest.$ac_objext conftest$ac_exeext
11486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_lib_dld_dld_link=yes
11498else
11499 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011500sed 's/^/| /' conftest.$ac_ext >&5
11501
John Criswell47fdd832003-07-14 16:52:07 +000011502ac_cv_lib_dld_dld_link=no
11503fi
11504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505LIBS=$ac_check_lib_save_LIBS
11506fi
11507echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11508echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11509if test $ac_cv_lib_dld_dld_link = yes; then
11510 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11511fi
11512
11513
11514fi
11515
11516
11517fi
11518
11519
11520fi
11521
11522
11523fi
11524
11525
11526fi
11527
11528 ;;
11529 esac
11530
11531 if test "x$lt_cv_dlopen" != xno; then
11532 enable_dlopen=yes
11533 else
11534 enable_dlopen=no
11535 fi
11536
11537 case $lt_cv_dlopen in
11538 dlopen)
11539 save_CPPFLAGS="$CPPFLAGS"
11540 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11541
11542 save_LDFLAGS="$LDFLAGS"
11543 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11544
11545 save_LIBS="$LIBS"
11546 LIBS="$lt_cv_dlopen_libs $LIBS"
11547
11548 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11549echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11550if test "${lt_cv_dlopen_self+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 if test "$cross_compiling" = yes; then :
11554 lt_cv_dlopen_self=cross
11555else
11556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557 lt_status=$lt_dlunknown
11558 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +000011559#line 11559 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011560#include "confdefs.h"
11561
11562#if HAVE_DLFCN_H
11563#include <dlfcn.h>
11564#endif
11565
11566#include <stdio.h>
11567
11568#ifdef RTLD_GLOBAL
11569# define LT_DLGLOBAL RTLD_GLOBAL
11570#else
11571# ifdef DL_GLOBAL
11572# define LT_DLGLOBAL DL_GLOBAL
11573# else
11574# define LT_DLGLOBAL 0
11575# endif
11576#endif
11577
11578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579 find out it does not work in some platform. */
11580#ifndef LT_DLLAZY_OR_NOW
11581# ifdef RTLD_LAZY
11582# define LT_DLLAZY_OR_NOW RTLD_LAZY
11583# else
11584# ifdef DL_LAZY
11585# define LT_DLLAZY_OR_NOW DL_LAZY
11586# else
11587# ifdef RTLD_NOW
11588# define LT_DLLAZY_OR_NOW RTLD_NOW
11589# else
11590# ifdef DL_NOW
11591# define LT_DLLAZY_OR_NOW DL_NOW
11592# else
11593# define LT_DLLAZY_OR_NOW 0
11594# endif
11595# endif
11596# endif
11597# endif
11598#endif
11599
11600#ifdef __cplusplus
11601extern "C" void exit (int);
11602#endif
11603
11604void fnord() { int i=42;}
11605int main ()
11606{
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11609
11610 if (self)
11611 {
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11613 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614 /* dlclose (self); */
11615 }
11616
11617 exit (status);
11618}
11619EOF
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11625 (./conftest; exit; ) 2>/dev/null
11626 lt_status=$?
11627 case x$lt_status in
11628 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11629 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11630 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11631 esac
11632 else :
11633 # compilation failed
11634 lt_cv_dlopen_self=no
11635 fi
11636fi
11637rm -fr conftest*
11638
11639
11640fi
11641echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11642echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11643
11644 if test "x$lt_cv_dlopen_self" = xyes; then
11645 LDFLAGS="$LDFLAGS $link_static_flag"
11646 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11647echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11648if test "${lt_cv_dlopen_self_static+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 if test "$cross_compiling" = yes; then :
11652 lt_cv_dlopen_self_static=cross
11653else
11654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11655 lt_status=$lt_dlunknown
11656 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +000011657#line 11657 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011658#include "confdefs.h"
11659
11660#if HAVE_DLFCN_H
11661#include <dlfcn.h>
11662#endif
11663
11664#include <stdio.h>
11665
11666#ifdef RTLD_GLOBAL
11667# define LT_DLGLOBAL RTLD_GLOBAL
11668#else
11669# ifdef DL_GLOBAL
11670# define LT_DLGLOBAL DL_GLOBAL
11671# else
11672# define LT_DLGLOBAL 0
11673# endif
11674#endif
11675
11676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11677 find out it does not work in some platform. */
11678#ifndef LT_DLLAZY_OR_NOW
11679# ifdef RTLD_LAZY
11680# define LT_DLLAZY_OR_NOW RTLD_LAZY
11681# else
11682# ifdef DL_LAZY
11683# define LT_DLLAZY_OR_NOW DL_LAZY
11684# else
11685# ifdef RTLD_NOW
11686# define LT_DLLAZY_OR_NOW RTLD_NOW
11687# else
11688# ifdef DL_NOW
11689# define LT_DLLAZY_OR_NOW DL_NOW
11690# else
11691# define LT_DLLAZY_OR_NOW 0
11692# endif
11693# endif
11694# endif
11695# endif
11696#endif
11697
11698#ifdef __cplusplus
11699extern "C" void exit (int);
11700#endif
11701
11702void fnord() { int i=42;}
11703int main ()
11704{
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11707
11708 if (self)
11709 {
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 /* dlclose (self); */
11713 }
11714
11715 exit (status);
11716}
11717EOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11723 (./conftest; exit; ) 2>/dev/null
11724 lt_status=$?
11725 case x$lt_status in
11726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11729 esac
11730 else :
11731 # compilation failed
11732 lt_cv_dlopen_self_static=no
11733 fi
11734fi
11735rm -fr conftest*
11736
11737
11738fi
11739echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11740echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11741 fi
11742
11743 CPPFLAGS="$save_CPPFLAGS"
11744 LDFLAGS="$save_LDFLAGS"
11745 LIBS="$save_LIBS"
11746 ;;
11747 esac
11748
11749 case $lt_cv_dlopen_self in
11750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751 *) enable_dlopen_self=unknown ;;
11752 esac
11753
11754 case $lt_cv_dlopen_self_static in
11755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756 *) enable_dlopen_self_static=unknown ;;
11757 esac
11758fi
11759
11760
11761# The else clause should only fire when bootstrapping the
11762# libtool distribution, otherwise you forgot to ship ltmain.sh
11763# with your package, and you will get complaints that there are
11764# no rules to generate ltmain.sh.
11765if test -f "$ltmain"; then
11766 # See if we are running on zsh, and set the options which allow our commands through
11767 # without removal of \ escapes.
11768 if test -n "${ZSH_VERSION+set}" ; then
11769 setopt NO_GLOB_SUBST
11770 fi
11771 # Now quote all the things that may contain metacharacters while being
11772 # careful not to overquote the AC_SUBSTed values. We take copies of the
11773 # variables and quote the copies for generation of the libtool script.
11774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11777 deplibs_check_method reload_flag reload_cmds need_locks \
11778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11779 lt_cv_sys_global_symbol_to_c_name_address \
11780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11781 old_postinstall_cmds old_postuninstall_cmds \
11782 compiler_CXX \
11783 CC_CXX \
11784 LD_CXX \
11785 lt_prog_compiler_wl_CXX \
11786 lt_prog_compiler_pic_CXX \
11787 lt_prog_compiler_static_CXX \
11788 lt_prog_compiler_no_builtin_flag_CXX \
11789 export_dynamic_flag_spec_CXX \
11790 thread_safe_flag_spec_CXX \
11791 whole_archive_flag_spec_CXX \
11792 enable_shared_with_static_runtimes_CXX \
11793 old_archive_cmds_CXX \
11794 old_archive_from_new_cmds_CXX \
11795 predep_objects_CXX \
11796 postdep_objects_CXX \
11797 predeps_CXX \
11798 postdeps_CXX \
11799 compiler_lib_search_path_CXX \
11800 archive_cmds_CXX \
11801 archive_expsym_cmds_CXX \
11802 postinstall_cmds_CXX \
11803 postuninstall_cmds_CXX \
11804 old_archive_from_expsyms_cmds_CXX \
11805 allow_undefined_flag_CXX \
11806 no_undefined_flag_CXX \
11807 export_symbols_cmds_CXX \
11808 hardcode_libdir_flag_spec_CXX \
11809 hardcode_libdir_flag_spec_ld_CXX \
11810 hardcode_libdir_separator_CXX \
11811 hardcode_automatic_CXX \
11812 module_cmds_CXX \
11813 module_expsym_cmds_CXX \
11814 lt_cv_prog_compiler_c_o_CXX \
11815 exclude_expsyms_CXX \
11816 include_expsyms_CXX; do
11817
11818 case $var in
11819 old_archive_cmds_CXX | \
11820 old_archive_from_new_cmds_CXX | \
11821 archive_cmds_CXX | \
11822 archive_expsym_cmds_CXX | \
11823 module_cmds_CXX | \
11824 module_expsym_cmds_CXX | \
11825 old_archive_from_expsyms_cmds_CXX | \
11826 export_symbols_cmds_CXX | \
11827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11828 postinstall_cmds | postuninstall_cmds | \
11829 old_postinstall_cmds | old_postuninstall_cmds | \
11830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11831 # Double-quote double-evaled strings.
11832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11833 ;;
11834 *)
11835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11836 ;;
11837 esac
11838 done
11839
11840 case $lt_echo in
11841 *'\$0 --fallback-echo"')
11842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11843 ;;
11844 esac
11845
11846cfgfile="$ofile"
11847
11848 cat <<__EOF__ >> "$cfgfile"
11849# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11850
11851# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11852
11853# Shell to use when invoking shell scripts.
11854SHELL=$lt_SHELL
11855
11856# Whether or not to build shared libraries.
11857build_libtool_libs=$enable_shared
11858
11859# Whether or not to build static libraries.
11860build_old_libs=$enable_static
11861
11862# Whether or not to add -lc for building shared libraries.
11863build_libtool_need_lc=$archive_cmds_need_lc_CXX
11864
11865# Whether or not to disallow shared libs when runtime libs are static
11866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11867
11868# Whether or not to optimize for fast installation.
11869fast_install=$enable_fast_install
11870
11871# The host system.
11872host_alias=$host_alias
11873host=$host
11874
11875# An echo program that does not interpret backslashes.
11876echo=$lt_echo
11877
11878# The archiver.
11879AR=$lt_AR
11880AR_FLAGS=$lt_AR_FLAGS
11881
11882# A C compiler.
11883LTCC=$lt_LTCC
11884
11885# A language-specific compiler.
11886CC=$lt_compiler_CXX
11887
11888# Is the compiler the GNU C compiler?
11889with_gcc=$GCC_CXX
11890
11891# An ERE matcher.
11892EGREP=$lt_EGREP
11893
11894# The linker used to build libraries.
11895LD=$lt_LD_CXX
11896
11897# Whether we need hard or soft links.
11898LN_S=$lt_LN_S
11899
11900# A BSD-compatible nm program.
11901NM=$lt_NM
11902
11903# A symbol stripping program
11904STRIP=$STRIP
11905
11906# Used to examine libraries when file_magic_cmd begins "file"
11907MAGIC_CMD=$MAGIC_CMD
11908
11909# Used on cygwin: DLL creation program.
11910DLLTOOL="$DLLTOOL"
11911
11912# Used on cygwin: object dumper.
11913OBJDUMP="$OBJDUMP"
11914
11915# Used on cygwin: assembler.
11916AS="$AS"
11917
11918# The name of the directory that contains temporary libtool files.
11919objdir=$objdir
11920
11921# How to create reloadable object files.
11922reload_flag=$lt_reload_flag
11923reload_cmds=$lt_reload_cmds
11924
11925# How to pass a linker flag through the compiler.
11926wl=$lt_lt_prog_compiler_wl_CXX
11927
11928# Object file suffix (normally "o").
11929objext="$ac_objext"
11930
11931# Old archive suffix (normally "a").
11932libext="$libext"
11933
11934# Shared library suffix (normally ".so").
11935shrext='$shrext'
11936
11937# Executable file suffix (normally "").
11938exeext="$exeext"
11939
11940# Additional compiler flags for building library objects.
11941pic_flag=$lt_lt_prog_compiler_pic_CXX
11942pic_mode=$pic_mode
11943
11944# What is the maximum length of a command?
11945max_cmd_len=$lt_cv_sys_max_cmd_len
11946
11947# Does compiler simultaneously support -c and -o options?
11948compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11949
11950# Must we lock files when doing compilation ?
11951need_locks=$lt_need_locks
11952
11953# Do we need the lib prefix for modules?
11954need_lib_prefix=$need_lib_prefix
11955
11956# Do we need a version for libraries?
11957need_version=$need_version
11958
11959# Whether dlopen is supported.
11960dlopen_support=$enable_dlopen
11961
11962# Whether dlopen of programs is supported.
11963dlopen_self=$enable_dlopen_self
11964
11965# Whether dlopen of statically linked programs is supported.
11966dlopen_self_static=$enable_dlopen_self_static
11967
11968# Compiler flag to prevent dynamic linking.
11969link_static_flag=$lt_lt_prog_compiler_static_CXX
11970
11971# Compiler flag to turn off builtin functions.
11972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11973
11974# Compiler flag to allow reflexive dlopens.
11975export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11976
11977# Compiler flag to generate shared objects directly from archives.
11978whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11979
11980# Compiler flag to generate thread-safe objects.
11981thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11982
11983# Library versioning type.
11984version_type=$version_type
11985
11986# Format of library name prefix.
11987libname_spec=$lt_libname_spec
11988
11989# List of archive names. First name is the real one, the rest are links.
11990# The last name is the one that the linker finds with -lNAME.
11991library_names_spec=$lt_library_names_spec
11992
11993# The coded name of the library, if different from the real name.
11994soname_spec=$lt_soname_spec
11995
11996# Commands used to build and install an old-style archive.
11997RANLIB=$lt_RANLIB
11998old_archive_cmds=$lt_old_archive_cmds_CXX
11999old_postinstall_cmds=$lt_old_postinstall_cmds
12000old_postuninstall_cmds=$lt_old_postuninstall_cmds
12001
12002# Create an old-style archive from a shared archive.
12003old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12004
12005# Create a temporary old-style archive to link instead of a shared archive.
12006old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12007
12008# Commands used to build and install a shared archive.
12009archive_cmds=$lt_archive_cmds_CXX
12010archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12011postinstall_cmds=$lt_postinstall_cmds
12012postuninstall_cmds=$lt_postuninstall_cmds
12013
12014# Commands used to build a loadable module (assumed same as above if empty)
12015module_cmds=$lt_module_cmds_CXX
12016module_expsym_cmds=$lt_module_expsym_cmds_CXX
12017
12018# Commands to strip libraries.
12019old_striplib=$lt_old_striplib
12020striplib=$lt_striplib
12021
12022# Dependencies to place before the objects being linked to create a
12023# shared library.
12024predep_objects=$lt_predep_objects_CXX
12025
12026# Dependencies to place after the objects being linked to create a
12027# shared library.
12028postdep_objects=$lt_postdep_objects_CXX
12029
12030# Dependencies to place before the objects being linked to create a
12031# shared library.
12032predeps=$lt_predeps_CXX
12033
12034# Dependencies to place after the objects being linked to create a
12035# shared library.
12036postdeps=$lt_postdeps_CXX
12037
12038# The library search path used internally by the compiler when linking
12039# a shared library.
12040compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12041
12042# Method to check whether dependent libraries are shared objects.
12043deplibs_check_method=$lt_deplibs_check_method
12044
12045# Command to use when deplibs_check_method == file_magic.
12046file_magic_cmd=$lt_file_magic_cmd
12047
12048# Flag that allows shared libraries with undefined symbols to be built.
12049allow_undefined_flag=$lt_allow_undefined_flag_CXX
12050
12051# Flag that forces no undefined symbols.
12052no_undefined_flag=$lt_no_undefined_flag_CXX
12053
12054# Commands used to finish a libtool library installation in a directory.
12055finish_cmds=$lt_finish_cmds
12056
12057# Same as above, but a single script fragment to be evaled but not shown.
12058finish_eval=$lt_finish_eval
12059
12060# Take the output of nm and produce a listing of raw symbols and C names.
12061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12062
12063# Transform the output of nm in a proper C declaration
12064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12065
12066# Transform the output of nm in a C name address pair
12067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12068
12069# This is the shared library runtime path variable.
12070runpath_var=$runpath_var
12071
12072# This is the shared library path variable.
12073shlibpath_var=$shlibpath_var
12074
12075# Is shlibpath searched before the hard-coded library search path?
12076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12077
12078# How to hardcode a shared library path into an executable.
12079hardcode_action=$hardcode_action_CXX
12080
12081# Whether we should hardcode library paths into libraries.
12082hardcode_into_libs=$hardcode_into_libs
12083
12084# Flag to hardcode \$libdir into a binary during linking.
12085# This must work even if \$libdir does not exist.
12086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12087
12088# If ld is used when linking, flag to hardcode \$libdir into
12089# a binary during linking. This must work even if \$libdir does
12090# not exist.
12091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12092
12093# Whether we need a single -rpath flag with a separated argument.
12094hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12095
12096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12097# resulting binary.
12098hardcode_direct=$hardcode_direct_CXX
12099
12100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12101# resulting binary.
12102hardcode_minus_L=$hardcode_minus_L_CXX
12103
12104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12105# the resulting binary.
12106hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12107
12108# Set to yes if building a shared library automatically hardcodes DIR into the library
12109# and all subsequent libraries and executables linked against it.
12110hardcode_automatic=$hardcode_automatic_CXX
12111
12112# Variables whose values should be saved in libtool wrapper scripts and
12113# restored at relink time.
12114variables_saved_for_relink="$variables_saved_for_relink"
12115
12116# Whether libtool must link a program against all its dependency libraries.
12117link_all_deplibs=$link_all_deplibs_CXX
12118
12119# Compile-time system search path for libraries
12120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12121
12122# Run-time system search path for libraries
12123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12124
12125# Fix the shell variable \$srcfile for the compiler.
12126fix_srcfile_path="$fix_srcfile_path_CXX"
12127
12128# Set to yes if exported symbols are required.
12129always_export_symbols=$always_export_symbols_CXX
12130
12131# The commands to list exported symbols.
12132export_symbols_cmds=$lt_export_symbols_cmds_CXX
12133
12134# The commands to extract the exported symbol list from a shared archive.
12135extract_expsyms_cmds=$lt_extract_expsyms_cmds
12136
12137# Symbols that should not be listed in the preloaded symbols.
12138exclude_expsyms=$lt_exclude_expsyms_CXX
12139
12140# Symbols that must always be exported.
12141include_expsyms=$lt_include_expsyms_CXX
12142
12143# ### END LIBTOOL TAG CONFIG: $tagname
12144
12145__EOF__
12146
12147
12148else
12149 # If there is no Makefile yet, we rely on a make rule to execute
12150 # `config.status --recheck' to rerun these tests and create the
12151 # libtool script then.
12152 test -f Makefile && make "$ltmain"
12153fi
12154
12155
12156ac_ext=c
12157ac_cpp='$CPP $CPPFLAGS'
12158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160ac_compiler_gnu=$ac_cv_c_compiler_gnu
12161
12162CC=$lt_save_CC
12163LDCXX=$LD
12164LD=$lt_save_LD
12165GCC=$lt_save_GCC
12166with_gnu_ldcxx=$with_gnu_ld
12167with_gnu_ld=$lt_save_with_gnu_ld
12168lt_cv_path_LDCXX=$lt_cv_path_LD
12169lt_cv_path_LD=$lt_save_path_LD
12170lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12171lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12172
12173 else
12174 tagname=""
12175 fi
12176 ;;
12177
12178 F77)
12179 if test -n "$F77" && test "X$F77" != "Xno"; then
12180
12181ac_ext=f
12182ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12183ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12185
12186
12187archive_cmds_need_lc_F77=no
12188allow_undefined_flag_F77=
12189always_export_symbols_F77=no
12190archive_expsym_cmds_F77=
12191export_dynamic_flag_spec_F77=
12192hardcode_direct_F77=no
12193hardcode_libdir_flag_spec_F77=
12194hardcode_libdir_flag_spec_ld_F77=
12195hardcode_libdir_separator_F77=
12196hardcode_minus_L_F77=no
12197hardcode_automatic_F77=no
12198module_cmds_F77=
12199module_expsym_cmds_F77=
12200link_all_deplibs_F77=unknown
12201old_archive_cmds_F77=$old_archive_cmds
12202no_undefined_flag_F77=
12203whole_archive_flag_spec_F77=
12204enable_shared_with_static_runtimes_F77=no
12205
12206# Source file extension for f77 test sources.
12207ac_ext=f
12208
12209# Object file extension for compiled f77 test sources.
12210objext=o
12211objext_F77=$objext
12212
12213# Code to be used in simple compile tests
12214lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12215
12216# Code to be used in simple link tests
12217lt_simple_link_test_code=" program t\n end\n"
12218
12219# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12220
12221# If no C compiler was specified, use CC.
12222LTCC=${LTCC-"$CC"}
12223
12224# Allow CC to be a program name with arguments.
12225compiler=$CC
12226
12227
12228# Allow CC to be a program name with arguments.
12229lt_save_CC="$CC"
12230CC=${F77-"f77"}
12231compiler=$CC
12232compiler_F77=$CC
12233cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12234
12235echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12236echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12237echo "$as_me:$LINENO: result: $can_build_shared" >&5
12238echo "${ECHO_T}$can_build_shared" >&6
12239
12240echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12241echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12242test "$can_build_shared" = "no" && enable_shared=no
12243
12244# On AIX, shared libraries and static libraries use the same namespace, and
12245# are all built from PIC.
12246case "$host_os" in
12247aix3*)
12248 test "$enable_shared" = yes && enable_static=no
12249 if test -n "$RANLIB"; then
12250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12251 postinstall_cmds='$RANLIB $lib'
12252 fi
12253 ;;
12254aix4*)
12255 test "$enable_shared" = yes && enable_static=no
12256 ;;
12257esac
12258echo "$as_me:$LINENO: result: $enable_shared" >&5
12259echo "${ECHO_T}$enable_shared" >&6
12260
12261echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12262echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12263# Make sure either enable_shared or enable_static is yes.
12264test "$enable_shared" = yes || enable_static=yes
12265echo "$as_me:$LINENO: result: $enable_static" >&5
12266echo "${ECHO_T}$enable_static" >&6
12267
12268test "$ld_shlibs_F77" = no && can_build_shared=no
12269
12270GCC_F77="$G77"
12271LD_F77="$LD"
12272
12273lt_prog_compiler_wl_F77=
12274lt_prog_compiler_pic_F77=
12275lt_prog_compiler_static_F77=
12276
12277echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12278echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12279
12280 if test "$GCC" = yes; then
12281 lt_prog_compiler_wl_F77='-Wl,'
12282 lt_prog_compiler_static_F77='-static'
12283
12284 case $host_os in
12285 aix*)
12286 # All AIX code is PIC.
12287 if test "$host_cpu" = ia64; then
12288 # AIX 5 now supports IA64 processor
12289 lt_prog_compiler_static_F77='-Bstatic'
12290 fi
12291 ;;
12292
12293 amigaos*)
12294 # FIXME: we need at least 68020 code to build shared libraries, but
12295 # adding the `-m68020' flag to GCC prevents building anything better,
12296 # like `-m68040'.
12297 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12298 ;;
12299
12300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12301 # PIC is the default for these OSes.
12302 ;;
12303
12304 mingw* | pw32* | os2*)
12305 # This hack is so that the source file can tell whether it is being
12306 # built for inclusion in a dll (and should export symbols for example).
12307 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12308 ;;
12309
12310 darwin* | rhapsody*)
12311 # PIC is the default on this platform
12312 # Common symbols not allowed in MH_DYLIB files
12313 lt_prog_compiler_pic_F77='-fno-common'
12314 ;;
12315
12316 msdosdjgpp*)
12317 # Just because we use GCC doesn't mean we suddenly get shared libraries
12318 # on systems that don't support them.
12319 lt_prog_compiler_can_build_shared_F77=no
12320 enable_shared=no
12321 ;;
12322
12323 sysv4*MP*)
12324 if test -d /usr/nec; then
12325 lt_prog_compiler_pic_F77=-Kconform_pic
12326 fi
12327 ;;
12328
12329 hpux*)
12330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12331 # not for PA HP-UX.
12332 case "$host_cpu" in
12333 hppa*64*|ia64*)
12334 # +Z the default
12335 ;;
12336 *)
12337 lt_prog_compiler_pic_F77='-fPIC'
12338 ;;
12339 esac
12340 ;;
12341
12342 *)
12343 lt_prog_compiler_pic_F77='-fPIC'
12344 ;;
12345 esac
12346 else
12347 # PORTME Check for flag to pass linker flags through the system compiler.
12348 case $host_os in
12349 aix*)
12350 lt_prog_compiler_wl_F77='-Wl,'
12351 if test "$host_cpu" = ia64; then
12352 # AIX 5 now supports IA64 processor
12353 lt_prog_compiler_static_F77='-Bstatic'
12354 else
12355 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12356 fi
12357 ;;
12358
12359 mingw* | pw32* | os2*)
12360 # This hack is so that the source file can tell whether it is being
12361 # built for inclusion in a dll (and should export symbols for example).
12362 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12363 ;;
12364
12365 hpux9* | hpux10* | hpux11*)
12366 lt_prog_compiler_wl_F77='-Wl,'
12367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12368 # not for PA HP-UX.
12369 case "$host_cpu" in
12370 hppa*64*|ia64*)
12371 # +Z the default
12372 ;;
12373 *)
12374 lt_prog_compiler_pic_F77='+Z'
12375 ;;
12376 esac
12377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12378 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12379 ;;
12380
12381 irix5* | irix6* | nonstopux*)
12382 lt_prog_compiler_wl_F77='-Wl,'
12383 # PIC (with -KPIC) is the default.
12384 lt_prog_compiler_static_F77='-non_shared'
12385 ;;
12386
12387 newsos6)
12388 lt_prog_compiler_pic_F77='-KPIC'
12389 lt_prog_compiler_static_F77='-Bstatic'
12390 ;;
12391
12392 linux*)
12393 case $CC in
12394 icc|ecc)
12395 lt_prog_compiler_wl_F77='-Wl,'
12396 lt_prog_compiler_pic_F77='-KPIC'
12397 lt_prog_compiler_static_F77='-static'
12398 ;;
12399 ccc)
12400 lt_prog_compiler_wl_F77='-Wl,'
12401 # All Alpha code is PIC.
12402 lt_prog_compiler_static_F77='-non_shared'
12403 ;;
12404 esac
12405 ;;
12406
12407 osf3* | osf4* | osf5*)
12408 lt_prog_compiler_wl_F77='-Wl,'
12409 # All OSF/1 code is PIC.
12410 lt_prog_compiler_static_F77='-non_shared'
12411 ;;
12412
12413 sco3.2v5*)
12414 lt_prog_compiler_pic_F77='-Kpic'
12415 lt_prog_compiler_static_F77='-dn'
12416 ;;
12417
12418 solaris*)
12419 lt_prog_compiler_wl_F77='-Wl,'
12420 lt_prog_compiler_pic_F77='-KPIC'
12421 lt_prog_compiler_static_F77='-Bstatic'
12422 ;;
12423
12424 sunos4*)
12425 lt_prog_compiler_wl_F77='-Qoption ld '
12426 lt_prog_compiler_pic_F77='-PIC'
12427 lt_prog_compiler_static_F77='-Bstatic'
12428 ;;
12429
12430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12431 lt_prog_compiler_wl_F77='-Wl,'
12432 lt_prog_compiler_pic_F77='-KPIC'
12433 lt_prog_compiler_static_F77='-Bstatic'
12434 ;;
12435
12436 sysv4*MP*)
12437 if test -d /usr/nec ;then
12438 lt_prog_compiler_pic_F77='-Kconform_pic'
12439 lt_prog_compiler_static_F77='-Bstatic'
12440 fi
12441 ;;
12442
12443 uts4*)
12444 lt_prog_compiler_pic_F77='-pic'
12445 lt_prog_compiler_static_F77='-Bstatic'
12446 ;;
12447
12448 *)
12449 lt_prog_compiler_can_build_shared_F77=no
12450 ;;
12451 esac
12452 fi
12453
12454echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12455echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12456
12457#
12458# Check to make sure the PIC flag actually works.
12459#
12460if test -n "$lt_prog_compiler_pic_F77"; then
12461 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12462echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12463if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 lt_prog_compiler_pic_works_F77=no
12467 ac_outfile=conftest.$ac_objext
12468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12469 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12470 # Insert the option either (1) after the last *FLAGS variable, or
12471 # (2) before a word containing "conftest.", or (3) at the end.
12472 # Note that $ac_compile itself does not contain backslashes and begins
12473 # with a dollar sign (not a hyphen), so the echo should work correctly.
12474 # The option is referenced via a variable to avoid confusing sed.
12475 lt_compile=`echo "$ac_compile" | $SED \
12476 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12478 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000012479 (eval echo "\"\$as_me:12479: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012480 (eval "$lt_compile" 2>conftest.err)
12481 ac_status=$?
12482 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000012483 echo "$as_me:12483: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012484 if (exit $ac_status) && test -s "$ac_outfile"; then
12485 # The compiler can only warn and ignore the option if not recognized
12486 # So say no if there are warnings
12487 if test ! -s conftest.err; then
12488 lt_prog_compiler_pic_works_F77=yes
12489 fi
12490 fi
12491 $rm conftest*
12492
12493fi
12494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12495echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12496
12497if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12498 case $lt_prog_compiler_pic_F77 in
12499 "" | " "*) ;;
12500 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12501 esac
12502else
12503 lt_prog_compiler_pic_F77=
12504 lt_prog_compiler_can_build_shared_F77=no
12505fi
12506
12507fi
12508case "$host_os" in
12509 # For platforms which do not support PIC, -DPIC is meaningless:
12510 *djgpp*)
12511 lt_prog_compiler_pic_F77=
12512 ;;
12513 *)
12514 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12515 ;;
12516esac
12517
12518echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12519echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12520if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522else
12523 lt_cv_prog_compiler_c_o_F77=no
12524 $rm -r conftest 2>/dev/null
12525 mkdir conftest
12526 cd conftest
12527 mkdir out
12528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12529
12530 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12531 # that will create temporary files in the current directory regardless of
12532 # the output directory. Thus, making CWD read-only will cause this test
12533 # to fail, enabling locking or at least warning the user not to do parallel
12534 # builds.
12535 chmod -w .
12536
12537 lt_compiler_flag="-o out/conftest2.$ac_objext"
12538 # Insert the option either (1) after the last *FLAGS variable, or
12539 # (2) before a word containing "conftest.", or (3) at the end.
12540 # Note that $ac_compile itself does not contain backslashes and begins
12541 # with a dollar sign (not a hyphen), so the echo should work correctly.
12542 lt_compile=`echo "$ac_compile" | $SED \
12543 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000012546 (eval echo "\"\$as_me:12546: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012547 (eval "$lt_compile" 2>out/conftest.err)
12548 ac_status=$?
12549 cat out/conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000012550 echo "$as_me:12550: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12552 then
12553 # The compiler can only warn and ignore the option if not recognized
12554 # So say no if there are warnings
12555 if test ! -s out/conftest.err; then
12556 lt_cv_prog_compiler_c_o_F77=yes
12557 fi
12558 fi
12559 chmod u+w .
12560 $rm conftest* out/*
12561 rmdir out
12562 cd ..
12563 rmdir conftest
12564 $rm conftest*
12565
12566fi
12567echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12568echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12569
12570
12571hard_links="nottested"
12572if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12573 # do not overwrite the value of need_locks provided by the user
12574 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12576 hard_links=yes
12577 $rm conftest*
12578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12579 touch conftest.a
12580 ln conftest.a conftest.b 2>&5 || hard_links=no
12581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12582 echo "$as_me:$LINENO: result: $hard_links" >&5
12583echo "${ECHO_T}$hard_links" >&6
12584 if test "$hard_links" = no; then
12585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12587 need_locks=warn
12588 fi
12589else
12590 need_locks=no
12591fi
12592
12593echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12595
12596 runpath_var=
12597 allow_undefined_flag_F77=
12598 enable_shared_with_static_runtimes_F77=no
12599 archive_cmds_F77=
12600 archive_expsym_cmds_F77=
12601 old_archive_From_new_cmds_F77=
12602 old_archive_from_expsyms_cmds_F77=
12603 export_dynamic_flag_spec_F77=
12604 whole_archive_flag_spec_F77=
12605 thread_safe_flag_spec_F77=
12606 hardcode_libdir_flag_spec_F77=
12607 hardcode_libdir_flag_spec_ld_F77=
12608 hardcode_libdir_separator_F77=
12609 hardcode_direct_F77=no
12610 hardcode_minus_L_F77=no
12611 hardcode_shlibpath_var_F77=unsupported
12612 link_all_deplibs_F77=unknown
12613 hardcode_automatic_F77=no
12614 module_cmds_F77=
12615 module_expsym_cmds_F77=
12616 always_export_symbols_F77=no
12617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12618 # include_expsyms should be a list of space-separated symbols to be *always*
12619 # included in the symbol list
12620 include_expsyms_F77=
12621 # exclude_expsyms can be an extended regexp of symbols to exclude
12622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12624 # as well as any symbol that contains `d'.
12625 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12627 # platforms (ab)use it in PIC code, but their linkers get confused if
12628 # the symbol is explicitly referenced. Since portable code cannot
12629 # rely on this symbol name, it's probably fine to never include it in
12630 # preloaded symbol tables.
12631 extract_expsyms_cmds=
12632
12633 case $host_os in
12634 cygwin* | mingw* | pw32*)
12635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12636 # When not using gcc, we currently assume that we are using
12637 # Microsoft Visual C++.
12638 if test "$GCC" != yes; then
12639 with_gnu_ld=no
12640 fi
12641 ;;
12642 openbsd*)
12643 with_gnu_ld=no
12644 ;;
12645 esac
12646
12647 ld_shlibs_F77=yes
12648 if test "$with_gnu_ld" = yes; then
12649 # If archive_cmds runs LD, not CC, wlarc should be empty
12650 wlarc='${wl}'
12651
12652 # See if GNU ld supports shared libraries.
12653 case $host_os in
12654 aix3* | aix4* | aix5*)
12655 # On AIX/PPC, the GNU linker is very broken
12656 if test "$host_cpu" != ia64; then
12657 ld_shlibs_F77=no
12658 cat <<EOF 1>&2
12659
12660*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12661*** to be unable to reliably create shared libraries on AIX.
12662*** Therefore, libtool is disabling shared libraries support. If you
12663*** really care for shared libraries, you may want to modify your PATH
12664*** so that a non-GNU linker is found, and then restart.
12665
12666EOF
12667 fi
12668 ;;
12669
12670 amigaos*)
12671 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)'
12672 hardcode_libdir_flag_spec_F77='-L$libdir'
12673 hardcode_minus_L_F77=yes
12674
12675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12676 # that the semantics of dynamic libraries on AmigaOS, at least up
12677 # to version 4, is to share data among multiple programs linked
12678 # with the same dynamic library. Since this doesn't match the
12679 # behavior of shared libraries on other platforms, we can't use
12680 # them.
12681 ld_shlibs_F77=no
12682 ;;
12683
12684 beos*)
12685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12686 allow_undefined_flag_F77=unsupported
12687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12688 # support --undefined. This deserves some investigation. FIXME
12689 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12690 else
12691 ld_shlibs_F77=no
12692 fi
12693 ;;
12694
12695 cygwin* | mingw* | pw32*)
12696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12697 # as there is no search path for DLLs.
12698 hardcode_libdir_flag_spec_F77='-L$libdir'
12699 allow_undefined_flag_F77=unsupported
12700 always_export_symbols_F77=no
12701 enable_shared_with_static_runtimes_F77=yes
12702 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12703
12704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12706 # If the export-symbols file already is a .def file (1st line
12707 # is EXPORTS), use it as is; otherwise, prepend...
12708 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12709 cp $export_symbols $output_objdir/$soname.def;
12710 else
12711 echo EXPORTS > $output_objdir/$soname.def;
12712 cat $export_symbols >> $output_objdir/$soname.def;
12713 fi~
12714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12715 else
12716 ld_shlibs=no
12717 fi
12718 ;;
12719
12720 netbsd*)
12721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12722 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12723 wlarc=
12724 else
12725 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12727 fi
12728 ;;
12729
12730 solaris* | sysv5*)
12731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12732 ld_shlibs_F77=no
12733 cat <<EOF 1>&2
12734
12735*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12736*** create shared libraries on Solaris systems. Therefore, libtool
12737*** is disabling shared libraries support. We urge you to upgrade GNU
12738*** binutils to release 2.9.1 or newer. Another option is to modify
12739*** your PATH or compiler configuration so that the native linker is
12740*** used, and then restart.
12741
12742EOF
12743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12746 else
12747 ld_shlibs_F77=no
12748 fi
12749 ;;
12750
12751 sunos4*)
12752 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753 wlarc=
12754 hardcode_direct_F77=yes
12755 hardcode_shlibpath_var_F77=no
12756 ;;
12757
12758 *)
12759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12762 else
12763 ld_shlibs_F77=no
12764 fi
12765 ;;
12766 esac
12767
12768 if test "$ld_shlibs_F77" = yes; then
12769 runpath_var=LD_RUN_PATH
12770 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12771 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12772 # ancient GNU ld didn't support --whole-archive et. al.
12773 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12774 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12775 else
12776 whole_archive_flag_spec_F77=
12777 fi
12778 fi
12779 else
12780 # PORTME fill in a description of your system's linker (not GNU ld)
12781 case $host_os in
12782 aix3*)
12783 allow_undefined_flag_F77=unsupported
12784 always_export_symbols_F77=yes
12785 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'
12786 # Note: this linker hardcodes the directories in LIBPATH if there
12787 # are no directories specified by -L.
12788 hardcode_minus_L_F77=yes
12789 if test "$GCC" = yes && test -z "$link_static_flag"; then
12790 # Neither direct hardcoding nor static linking is supported with a
12791 # broken collect2.
12792 hardcode_direct_F77=unsupported
12793 fi
12794 ;;
12795
12796 aix4* | aix5*)
12797 if test "$host_cpu" = ia64; then
12798 # On IA64, the linker does run time linking by default, so we don't
12799 # have to do anything special.
12800 aix_use_runtimelinking=no
12801 exp_sym_flag='-Bexport'
12802 no_entry_flag=""
12803 else
12804 # If we're using GNU nm, then we don't want the "-C" option.
12805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12806 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12807 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'
12808 else
12809 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'
12810 fi
12811 aix_use_runtimelinking=no
12812
12813 # Test if we are trying to use run time linking or normal
12814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12815 # need to do runtime linking.
12816 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12817 for ld_flag in $LDFLAGS; do
12818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12819 aix_use_runtimelinking=yes
12820 break
12821 fi
12822 done
12823 esac
12824
12825 exp_sym_flag='-bexport'
12826 no_entry_flag='-bnoentry'
12827 fi
12828
12829 # When large executables or shared objects are built, AIX ld can
12830 # have problems creating the table of contents. If linking a library
12831 # or program results in "error TOC overflow" add -mminimal-toc to
12832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12834
12835 archive_cmds_F77=''
12836 hardcode_direct_F77=yes
12837 hardcode_libdir_separator_F77=':'
12838 link_all_deplibs_F77=yes
12839
12840 if test "$GCC" = yes; then
12841 case $host_os in aix4.012|aix4.012.*)
12842 # We only want to do this on AIX 4.2 and lower, the check
12843 # below for broken collect2 doesn't work under 4.3+
12844 collect2name=`${CC} -print-prog-name=collect2`
12845 if test -f "$collect2name" && \
12846 strings "$collect2name" | grep resolve_lib_name >/dev/null
12847 then
12848 # We have reworked collect2
12849 hardcode_direct_F77=yes
12850 else
12851 # We have old collect2
12852 hardcode_direct_F77=unsupported
12853 # It fails to find uninstalled libraries when the uninstalled
12854 # path is not listed in the libpath. Setting hardcode_minus_L
12855 # to unsupported forces relinking
12856 hardcode_minus_L_F77=yes
12857 hardcode_libdir_flag_spec_F77='-L$libdir'
12858 hardcode_libdir_separator_F77=
12859 fi
12860 esac
12861 shared_flag='-shared'
12862 else
12863 # not using gcc
12864 if test "$host_cpu" = ia64; then
12865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12866 # chokes on -Wl,-G. The following line is correct:
12867 shared_flag='-G'
12868 else
12869 if test "$aix_use_runtimelinking" = yes; then
12870 shared_flag='${wl}-G'
12871 else
12872 shared_flag='${wl}-bM:SRE'
12873 fi
12874 fi
12875 fi
12876
12877 # It seems that -bexpall does not export symbols beginning with
12878 # underscore (_), so it is better to generate a list of symbols to export.
12879 always_export_symbols_F77=yes
12880 if test "$aix_use_runtimelinking" = yes; then
12881 # Warning - without using the other runtime loading flags (-brtl),
12882 # -berok will link without error, but may produce a broken library.
12883 allow_undefined_flag_F77='-berok'
12884 # Determine the default libpath from the value encoded in an empty executable.
12885 cat >conftest.$ac_ext <<_ACEOF
12886 program main
12887
12888 end
12889_ACEOF
12890rm -f conftest.$ac_objext conftest$ac_exeext
12891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902
12903aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12904}'`
12905# Check for a 64-bit object if we didn't find anything.
12906if 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; }
12907}'`; fi
12908else
12909 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012910sed 's/^/| /' conftest.$ac_ext >&5
12911
John Criswell47fdd832003-07-14 16:52:07 +000012912fi
12913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12915
12916 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12917 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"
12918 else
12919 if test "$host_cpu" = ia64; then
12920 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12921 allow_undefined_flag_F77="-z nodefs"
12922 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"
12923 else
12924 # Determine the default libpath from the value encoded in an empty executable.
12925 cat >conftest.$ac_ext <<_ACEOF
12926 program main
12927
12928 end
12929_ACEOF
12930rm -f conftest.$ac_objext conftest$ac_exeext
12931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932 (eval $ac_link) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -s conftest$ac_exeext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942
12943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12944}'`
12945# Check for a 64-bit object if we didn't find anything.
12946if 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; }
12947}'`; fi
12948else
12949 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012950sed 's/^/| /' conftest.$ac_ext >&5
12951
John Criswell47fdd832003-07-14 16:52:07 +000012952fi
12953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12955
12956 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12957 # Warning - without using the other run time loading flags,
12958 # -berok will link without error, but may produce a broken library.
12959 no_undefined_flag_F77=' ${wl}-bernotok'
12960 allow_undefined_flag_F77=' ${wl}-berok'
12961 # -bexpall does not export symbols beginning with underscore (_)
12962 always_export_symbols_F77=yes
12963 # Exported symbols can be pulled into shared objects from archives
12964 whole_archive_flag_spec_F77=' '
12965 archive_cmds_need_lc_F77=yes
12966 # This is similar to how AIX traditionally builds it's shared libraries.
12967 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'
12968 fi
12969 fi
12970 ;;
12971
12972 amigaos*)
12973 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)'
12974 hardcode_libdir_flag_spec_F77='-L$libdir'
12975 hardcode_minus_L_F77=yes
12976 # see comment about different semantics on the GNU ld section
12977 ld_shlibs_F77=no
12978 ;;
12979
12980 bsdi4*)
12981 export_dynamic_flag_spec_F77=-rdynamic
12982 ;;
12983
12984 cygwin* | mingw* | pw32*)
12985 # When not using gcc, we currently assume that we are using
12986 # Microsoft Visual C++.
12987 # hardcode_libdir_flag_spec is actually meaningless, as there is
12988 # no search path for DLLs.
12989 hardcode_libdir_flag_spec_F77=' '
12990 allow_undefined_flag_F77=unsupported
12991 # Tell ltmain to make .lib files, not .a files.
12992 libext=lib
12993 # Tell ltmain to make .dll files, not .so files.
12994 shrext=".dll"
12995 # FIXME: Setting linknames here is a bad hack.
12996 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12997 # The linker will automatically build a .lib file if we build a DLL.
12998 old_archive_From_new_cmds_F77='true'
12999 # FIXME: Should let the user specify the lib program.
13000 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13001 fix_srcfile_path='`cygpath -w "$srcfile"`'
13002 enable_shared_with_static_runtimes_F77=yes
13003 ;;
13004
13005 darwin* | rhapsody*)
13006 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13007 archive_cmds_need_lc_F77=no
13008 case "$host_os" in
13009 rhapsody* | darwin1.[012])
13010 allow_undefined_flag_F77='-undefined suppress'
13011 ;;
13012 *) # Darwin 1.3 on
13013 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13014 ;;
13015 esac
13016 # FIXME: Relying on posixy $() will cause problems for
13017 # cross-compilation, but unfortunately the echo tests do not
13018 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13019 # `"' quotes if we put them in here... so don't!
13020 lt_int_apple_cc_single_mod=no
13021 output_verbose_link_cmd='echo'
13022 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13023 lt_int_apple_cc_single_mod=yes
13024 fi
13025 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13026 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13027 else
13028 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'
13029 fi
13030 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13032 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13033 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}'
13034 else
13035 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}'
13036 fi
13037 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}'
13038 hardcode_direct_F77=no
13039 hardcode_automatic_F77=yes
13040 hardcode_shlibpath_var_F77=unsupported
13041 whole_archive_flag_spec_F77='-all_load $convenience'
13042 link_all_deplibs_F77=yes
13043 fi
13044 ;;
13045
13046 dgux*)
13047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_libdir_flag_spec_F77='-L$libdir'
13049 hardcode_shlibpath_var_F77=no
13050 ;;
13051
13052 freebsd1*)
13053 ld_shlibs_F77=no
13054 ;;
13055
13056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13057 # support. Future versions do this automatically, but an explicit c++rt0.o
13058 # does not break anything, and helps significantly (at the cost of a little
13059 # extra space).
13060 freebsd2.2*)
13061 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13062 hardcode_libdir_flag_spec_F77='-R$libdir'
13063 hardcode_direct_F77=yes
13064 hardcode_shlibpath_var_F77=no
13065 ;;
13066
13067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13068 freebsd2*)
13069 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13070 hardcode_direct_F77=yes
13071 hardcode_minus_L_F77=yes
13072 hardcode_shlibpath_var_F77=no
13073 ;;
13074
13075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13076 freebsd*)
13077 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13078 hardcode_libdir_flag_spec_F77='-R$libdir'
13079 hardcode_direct_F77=yes
13080 hardcode_shlibpath_var_F77=no
13081 ;;
13082
13083 hpux9*)
13084 if test "$GCC" = yes; then
13085 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'
13086 else
13087 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'
13088 fi
13089 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13090 hardcode_libdir_separator_F77=:
13091 hardcode_direct_F77=yes
13092
13093 # hardcode_minus_L: Not really in the search PATH,
13094 # but as the default location of the library.
13095 hardcode_minus_L_F77=yes
13096 export_dynamic_flag_spec_F77='${wl}-E'
13097 ;;
13098
13099 hpux10* | hpux11*)
13100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13101 case "$host_cpu" in
13102 hppa*64*|ia64*)
13103 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 ;;
13105 *)
13106 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13107 ;;
13108 esac
13109 else
13110 case "$host_cpu" in
13111 hppa*64*|ia64*)
13112 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13113 ;;
13114 *)
13115 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13116 ;;
13117 esac
13118 fi
13119 if test "$with_gnu_ld" = no; then
13120 case "$host_cpu" in
13121 hppa*64*)
13122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13123 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13124 hardcode_libdir_separator_F77=:
13125 hardcode_direct_F77=no
13126 hardcode_shlibpath_var_F77=no
13127 ;;
13128 ia64*)
13129 hardcode_libdir_flag_spec_F77='-L$libdir'
13130 hardcode_direct_F77=no
13131 hardcode_shlibpath_var_F77=no
13132
13133 # hardcode_minus_L: Not really in the search PATH,
13134 # but as the default location of the library.
13135 hardcode_minus_L_F77=yes
13136 ;;
13137 *)
13138 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13139 hardcode_libdir_separator_F77=:
13140 hardcode_direct_F77=yes
13141 export_dynamic_flag_spec_F77='${wl}-E'
13142
13143 # hardcode_minus_L: Not really in the search PATH,
13144 # but as the default location of the library.
13145 hardcode_minus_L_F77=yes
13146 ;;
13147 esac
13148 fi
13149 ;;
13150
13151 irix5* | irix6* | nonstopux*)
13152 if test "$GCC" = yes; then
13153 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'
13154 else
13155 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'
13156 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13157 fi
13158 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13159 hardcode_libdir_separator_F77=:
13160 link_all_deplibs_F77=yes
13161 ;;
13162
13163 netbsd*)
13164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13166 else
13167 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13168 fi
13169 hardcode_libdir_flag_spec_F77='-R$libdir'
13170 hardcode_direct_F77=yes
13171 hardcode_shlibpath_var_F77=no
13172 ;;
13173
13174 newsos6)
13175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13176 hardcode_direct_F77=yes
13177 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13178 hardcode_libdir_separator_F77=:
13179 hardcode_shlibpath_var_F77=no
13180 ;;
13181
13182 openbsd*)
13183 hardcode_direct_F77=yes
13184 hardcode_shlibpath_var_F77=no
13185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13186 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13188 export_dynamic_flag_spec_F77='${wl}-E'
13189 else
13190 case $host_os in
13191 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13192 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_libdir_flag_spec_F77='-R$libdir'
13194 ;;
13195 *)
13196 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13197 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13198 ;;
13199 esac
13200 fi
13201 ;;
13202
13203 os2*)
13204 hardcode_libdir_flag_spec_F77='-L$libdir'
13205 hardcode_minus_L_F77=yes
13206 allow_undefined_flag_F77=unsupported
13207 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'
13208 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13209 ;;
13210
13211 osf3*)
13212 if test "$GCC" = yes; then
13213 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13214 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'
13215 else
13216 allow_undefined_flag_F77=' -expect_unresolved \*'
13217 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'
13218 fi
13219 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13220 hardcode_libdir_separator_F77=:
13221 ;;
13222
13223 osf4* | osf5*) # as osf3* with the addition of -msym flag
13224 if test "$GCC" = yes; then
13225 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13226 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'
13227 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13228 else
13229 allow_undefined_flag_F77=' -expect_unresolved \*'
13230 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'
13231 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~
13232 $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'
13233
13234 # Both c and cxx compiler support -rpath directly
13235 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13236 fi
13237 hardcode_libdir_separator_F77=:
13238 ;;
13239
13240 sco3.2v5*)
13241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_shlibpath_var_F77=no
13243 export_dynamic_flag_spec_F77='${wl}-Bexport'
13244 runpath_var=LD_RUN_PATH
13245 hardcode_runpath_var=yes
13246 ;;
13247
13248 solaris*)
13249 no_undefined_flag_F77=' -z text'
13250 if test "$GCC" = yes; then
13251 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13253 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13254 else
13255 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13256 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13258 fi
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_shlibpath_var_F77=no
13261 case $host_os in
13262 solaris2.[0-5] | solaris2.[0-5].*) ;;
13263 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13264 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13265 esac
13266 link_all_deplibs_F77=yes
13267 ;;
13268
13269 sunos4*)
13270 if test "x$host_vendor" = xsequent; then
13271 # Use $CC to link under sequent, because it throws in some extra .o
13272 # files that make .init and .fini sections work.
13273 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13274 else
13275 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13276 fi
13277 hardcode_libdir_flag_spec_F77='-L$libdir'
13278 hardcode_direct_F77=yes
13279 hardcode_minus_L_F77=yes
13280 hardcode_shlibpath_var_F77=no
13281 ;;
13282
13283 sysv4)
13284 case $host_vendor in
13285 sni)
13286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_direct_F77=yes # is this really true???
13288 ;;
13289 siemens)
13290 ## LD is ld it makes a PLAMLIB
13291 ## CC just makes a GrossModule.
13292 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13293 reload_cmds_F77='$CC -r -o $output$reload_objs'
13294 hardcode_direct_F77=no
13295 ;;
13296 motorola)
13297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13299 ;;
13300 esac
13301 runpath_var='LD_RUN_PATH'
13302 hardcode_shlibpath_var_F77=no
13303 ;;
13304
13305 sysv4.3*)
13306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_shlibpath_var_F77=no
13308 export_dynamic_flag_spec_F77='-Bexport'
13309 ;;
13310
13311 sysv4*MP*)
13312 if test -d /usr/nec; then
13313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_shlibpath_var_F77=no
13315 runpath_var=LD_RUN_PATH
13316 hardcode_runpath_var=yes
13317 ld_shlibs_F77=yes
13318 fi
13319 ;;
13320
13321 sysv4.2uw2*)
13322 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13323 hardcode_direct_F77=yes
13324 hardcode_minus_L_F77=no
13325 hardcode_shlibpath_var_F77=no
13326 hardcode_runpath_var=yes
13327 runpath_var=LD_RUN_PATH
13328 ;;
13329
13330 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13331 no_undefined_flag_F77='${wl}-z ${wl}text'
13332 if test "$GCC" = yes; then
13333 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 else
13335 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 fi
13337 runpath_var='LD_RUN_PATH'
13338 hardcode_shlibpath_var_F77=no
13339 ;;
13340
13341 sysv5*)
13342 no_undefined_flag_F77=' -z text'
13343 # $CC -shared without GNU ld will not create a library from C++
13344 # object files and a static libstdc++, better avoid it by now
13345 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13347 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13348 hardcode_libdir_flag_spec_F77=
13349 hardcode_shlibpath_var_F77=no
13350 runpath_var='LD_RUN_PATH'
13351 ;;
13352
13353 uts4*)
13354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355 hardcode_libdir_flag_spec_F77='-L$libdir'
13356 hardcode_shlibpath_var_F77=no
13357 ;;
13358
13359 *)
13360 ld_shlibs_F77=no
13361 ;;
13362 esac
13363 fi
13364
13365echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13366echo "${ECHO_T}$ld_shlibs_F77" >&6
13367test "$ld_shlibs_F77" = no && can_build_shared=no
13368
13369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13370if test "$GCC" = yes; then
13371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13372fi
13373
13374#
13375# Do we need to explicitly link libc?
13376#
13377case "x$archive_cmds_need_lc_F77" in
13378x|xyes)
13379 # Assume -lc should be added
13380 archive_cmds_need_lc_F77=yes
13381
13382 if test "$enable_shared" = yes && test "$GCC" = yes; then
13383 case $archive_cmds_F77 in
13384 *'~'*)
13385 # FIXME: we may have to deal with multi-command sequences.
13386 ;;
13387 '$CC '*)
13388 # Test whether the compiler implicitly links with -lc since on some
13389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13390 # to ld, don't add -lc before -lgcc.
13391 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13392echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13393 $rm conftest*
13394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } 2>conftest.err; then
13401 soname=conftest
13402 lib=conftest
13403 libobjs=conftest.$ac_objext
13404 deplibs=
13405 wl=$lt_prog_compiler_wl_F77
13406 compiler_flags=-v
13407 linker_flags=-v
13408 verstring=
13409 output_objdir=.
13410 libname=conftest
13411 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13412 allow_undefined_flag_F77=
13413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13414 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }
13418 then
13419 archive_cmds_need_lc_F77=no
13420 else
13421 archive_cmds_need_lc_F77=yes
13422 fi
13423 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13424 else
13425 cat conftest.err 1>&5
13426 fi
13427 $rm conftest*
13428 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13429echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13430 ;;
13431 esac
13432 fi
13433 ;;
13434esac
13435
13436echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13437echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13438hardcode_action_F77=
13439if test -n "$hardcode_libdir_flag_spec_F77" || \
13440 test -n "$runpath_var F77" || \
13441 test "X$hardcode_automatic_F77"="Xyes" ; then
13442
13443 # We can hardcode non-existant directories.
13444 if test "$hardcode_direct_F77" != no &&
13445 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13446 # have to relink, otherwise we might link with an installed library
13447 # when we should be linking with a yet-to-be-installed one
13448 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13449 test "$hardcode_minus_L_F77" != no; then
13450 # Linking always hardcodes the temporary library directory.
13451 hardcode_action_F77=relink
13452 else
13453 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13454 hardcode_action_F77=immediate
13455 fi
13456else
13457 # We cannot hardcode anything, or else we can only hardcode existing
13458 # directories.
13459 hardcode_action_F77=unsupported
13460fi
13461echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13462echo "${ECHO_T}$hardcode_action_F77" >&6
13463
13464if test "$hardcode_action_F77" = relink; then
13465 # Fast installation is not supported
13466 enable_fast_install=no
13467elif test "$shlibpath_overrides_runpath" = yes ||
13468 test "$enable_shared" = no; then
13469 # Fast installation is not necessary
13470 enable_fast_install=needless
13471fi
13472
13473striplib=
13474old_striplib=
13475echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13476echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13477if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13480 echo "$as_me:$LINENO: result: yes" >&5
13481echo "${ECHO_T}yes" >&6
13482else
13483# FIXME - insert some real tests, host_os isn't really good enough
13484 case $host_os in
13485 darwin*)
13486 if test -n "$STRIP" ; then
13487 striplib="$STRIP -x"
13488 echo "$as_me:$LINENO: result: yes" >&5
13489echo "${ECHO_T}yes" >&6
13490 else
13491 echo "$as_me:$LINENO: result: no" >&5
13492echo "${ECHO_T}no" >&6
13493fi
13494 ;;
13495 *)
13496 echo "$as_me:$LINENO: result: no" >&5
13497echo "${ECHO_T}no" >&6
13498 ;;
13499 esac
13500fi
13501
13502echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13503echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13504library_names_spec=
13505libname_spec='lib$name'
13506soname_spec=
13507shrext=".so"
13508postinstall_cmds=
13509postuninstall_cmds=
13510finish_cmds=
13511finish_eval=
13512shlibpath_var=
13513shlibpath_overrides_runpath=unknown
13514version_type=none
13515dynamic_linker="$host_os ld.so"
13516sys_lib_dlsearch_path_spec="/lib /usr/lib"
13517if test "$GCC" = yes; then
13518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13519 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13520 # if the path contains ";" then we assume it to be the separator
13521 # otherwise default to the standard path separator (i.e. ":") - it is
13522 # assumed that no part of a normal pathname contains ";" but that should
13523 # okay in the real world where ";" in dirpaths is itself problematic.
13524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13525 else
13526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13527 fi
13528else
13529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13530fi
13531need_lib_prefix=unknown
13532hardcode_into_libs=no
13533
13534# when you set need_version to no, make sure it does not cause -set_version
13535# flags to be left without arguments
13536need_version=unknown
13537
13538case $host_os in
13539aix3*)
13540 version_type=linux
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13542 shlibpath_var=LIBPATH
13543
13544 # AIX 3 has no versioning support, so we append a major version to the name.
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 ;;
13547
13548aix4* | aix5*)
13549 version_type=linux
13550 need_lib_prefix=no
13551 need_version=no
13552 hardcode_into_libs=yes
13553 if test "$host_cpu" = ia64; then
13554 # AIX 5 supports IA64
13555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 else
13558 # With GCC up to 2.95.x, collect2 would create an import file
13559 # for dependence libraries. The import file would start with
13560 # the line `#! .'. This would cause the generated library to
13561 # depend on `.', always an invalid library. This was fixed in
13562 # development snapshots of GCC prior to 3.0.
13563 case $host_os in
13564 aix4 | aix4.[01] | aix4.[01].*)
13565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13566 echo ' yes '
13567 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13568 :
13569 else
13570 can_build_shared=no
13571 fi
13572 ;;
13573 esac
13574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13575 # soname into executable. Probably we can add versioning support to
13576 # collect2, so additional links can be useful in future.
13577 if test "$aix_use_runtimelinking" = yes; then
13578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13579 # instead of lib<name>.a to let people know that these are not
13580 # typical AIX shared libraries.
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13582 else
13583 # We preserve .a as extension for shared libraries through AIX4.2
13584 # and later when we are not doing run time linking.
13585 library_names_spec='${libname}${release}.a $libname.a'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 fi
13588 shlibpath_var=LIBPATH
13589 fi
13590 ;;
13591
13592amigaos*)
13593 library_names_spec='$libname.ixlibrary $libname.a'
13594 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13595 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'
13596 ;;
13597
13598beos*)
13599 library_names_spec='${libname}${shared_ext}'
13600 dynamic_linker="$host_os ld.so"
13601 shlibpath_var=LIBRARY_PATH
13602 ;;
13603
13604bsdi4*)
13605 version_type=linux
13606 need_version=no
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13610 shlibpath_var=LD_LIBRARY_PATH
13611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13613 # the default ld.so.conf also contains /usr/contrib/lib and
13614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13615 # libtool to hard-code these into programs
13616 ;;
13617
13618cygwin* | mingw* | pw32*)
13619 version_type=windows
13620 shrext=".dll"
13621 need_version=no
13622 need_lib_prefix=no
13623
13624 case $GCC,$host_os in
13625 yes,cygwin* | yes,mingw* | yes,pw32*)
13626 library_names_spec='$libname.dll.a'
13627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13628 postinstall_cmds='base_file=`basename \${file}`~
13629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13630 dldir=$destdir/`dirname \$dlpath`~
13631 test -d \$dldir || mkdir -p \$dldir~
13632 $install_prog $dir/$dlname \$dldir/$dlname'
13633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13634 dlpath=$dir/\$dldll~
13635 $rm \$dlpath'
13636 shlibpath_overrides_runpath=yes
13637
13638 case $host_os in
13639 cygwin*)
13640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13642 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13643 ;;
13644 mingw*)
13645 # MinGW DLLs use traditional 'lib' prefix
13646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13649 # It is most probably a Windows format PATH printed by
13650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13651 # path with ; separators, and with drive letters. We can handle the
13652 # drive letters (cygwin fileutils understands them), so leave them,
13653 # especially as we might pass files found there to a mingw objdump,
13654 # which wouldn't understand a cygwinified path. Ahh.
13655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13656 else
13657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13658 fi
13659 ;;
13660 pw32*)
13661 # pw32 DLLs use 'pw' prefix rather than 'lib'
13662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13663 ;;
13664 esac
13665 ;;
13666
13667 *)
13668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13669 ;;
13670 esac
13671 dynamic_linker='Win32 ld.exe'
13672 # FIXME: first we should search . and the directory the executable is in
13673 shlibpath_var=PATH
13674 ;;
13675
13676darwin* | rhapsody*)
13677 dynamic_linker="$host_os dyld"
13678 version_type=darwin
13679 need_lib_prefix=no
13680 need_version=no
13681 # FIXME: Relying on posixy $() will cause problems for
13682 # cross-compilation, but unfortunately the echo tests do not
13683 # yet detect zsh echo's removal of \ escapes.
13684 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13685 soname_spec='${libname}${release}${major}$shared_ext'
13686 shlibpath_overrides_runpath=yes
13687 shlibpath_var=DYLD_LIBRARY_PATH
13688 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13689 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13690 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13691 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"`
13692 fi
13693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13694 ;;
13695
13696dgux*)
13697 version_type=linux
13698 need_lib_prefix=no
13699 need_version=no
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 ;;
13704
13705freebsd1*)
13706 dynamic_linker=no
13707 ;;
13708
13709freebsd*)
13710 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13711 version_type=freebsd-$objformat
13712 case $version_type in
13713 freebsd-elf*)
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13715 need_version=no
13716 need_lib_prefix=no
13717 ;;
13718 freebsd-*)
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13720 need_version=yes
13721 ;;
13722 esac
13723 shlibpath_var=LD_LIBRARY_PATH
13724 case $host_os in
13725 freebsd2*)
13726 shlibpath_overrides_runpath=yes
13727 ;;
13728 freebsd3.01* | freebsdelf3.01*)
13729 shlibpath_overrides_runpath=yes
13730 hardcode_into_libs=yes
13731 ;;
13732 *) # from 3.2 on
13733 shlibpath_overrides_runpath=no
13734 hardcode_into_libs=yes
13735 ;;
13736 esac
13737 ;;
13738
13739gnu*)
13740 version_type=linux
13741 need_lib_prefix=no
13742 need_version=no
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 hardcode_into_libs=yes
13747 ;;
13748
13749hpux9* | hpux10* | hpux11*)
13750 # Give a soname corresponding to the major version so that dld.sl refuses to
13751 # link against other versions.
13752 version_type=sunos
13753 need_lib_prefix=no
13754 need_version=no
13755 case "$host_cpu" in
13756 ia64*)
13757 shrext='.so'
13758 hardcode_into_libs=yes
13759 dynamic_linker="$host_os dld.so"
13760 shlibpath_var=LD_LIBRARY_PATH
13761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 soname_spec='${libname}${release}${shared_ext}$major'
13764 if test "X$HPUX_IA64_MODE" = X32; then
13765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13766 else
13767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13768 fi
13769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13770 ;;
13771 hppa*64*)
13772 shrext='.sl'
13773 hardcode_into_libs=yes
13774 dynamic_linker="$host_os dld.sl"
13775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778 soname_spec='${libname}${release}${shared_ext}$major'
13779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13781 ;;
13782 *)
13783 shrext='.sl'
13784 dynamic_linker="$host_os dld.sl"
13785 shlibpath_var=SHLIB_PATH
13786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13788 soname_spec='${libname}${release}${shared_ext}$major'
13789 ;;
13790 esac
13791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13792 postinstall_cmds='chmod 555 $lib'
13793 ;;
13794
13795irix5* | irix6* | nonstopux*)
13796 case $host_os in
13797 nonstopux*) version_type=nonstopux ;;
13798 *)
13799 if test "$lt_cv_prog_gnu_ld" = yes; then
13800 version_type=linux
13801 else
13802 version_type=irix
13803 fi ;;
13804 esac
13805 need_lib_prefix=no
13806 need_version=no
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13809 case $host_os in
13810 irix5* | nonstopux*)
13811 libsuff= shlibsuff=
13812 ;;
13813 *)
13814 case $LD in # libtool.m4 will add one of these switches to LD
13815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13816 libsuff= shlibsuff= libmagic=32-bit;;
13817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13818 libsuff=32 shlibsuff=N32 libmagic=N32;;
13819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13821 *) libsuff= shlibsuff= libmagic=never-match;;
13822 esac
13823 ;;
13824 esac
13825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13826 shlibpath_overrides_runpath=no
13827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13829 hardcode_into_libs=yes
13830 ;;
13831
13832# No shared lib support for Linux oldld, aout, or coff.
13833linux*oldld* | linux*aout* | linux*coff*)
13834 dynamic_linker=no
13835 ;;
13836
13837# This must be Linux ELF.
13838linux*)
13839 version_type=linux
13840 need_lib_prefix=no
13841 need_version=no
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13843 soname_spec='${libname}${release}${shared_ext}$major'
13844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13845 shlibpath_var=LD_LIBRARY_PATH
13846 shlibpath_overrides_runpath=no
13847 # This implies no fast_install, which is unacceptable.
13848 # Some rework will be needed to allow for fast_install
13849 # before this can be enabled.
13850 hardcode_into_libs=yes
13851
13852 # We used to test for /lib/ld.so.1 and disable shared libraries on
13853 # powerpc, because MkLinux only supported shared libraries with the
13854 # GNU dynamic linker. Since this was broken with cross compilers,
13855 # most powerpc-linux boxes support dynamic linking these days and
13856 # people can always --disable-shared, the test was removed, and we
13857 # assume the GNU/Linux dynamic linker is in use.
13858 dynamic_linker='GNU/Linux ld.so'
13859 ;;
13860
13861netbsd*)
13862 version_type=sunos
13863 need_lib_prefix=no
13864 need_version=no
13865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13868 dynamic_linker='NetBSD (a.out) ld.so'
13869 else
13870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13871 soname_spec='${libname}${release}${shared_ext}$major'
13872 dynamic_linker='NetBSD ld.elf_so'
13873 fi
13874 shlibpath_var=LD_LIBRARY_PATH
13875 shlibpath_overrides_runpath=yes
13876 hardcode_into_libs=yes
13877 ;;
13878
13879newsos6)
13880 version_type=linux
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath=yes
13884 ;;
13885
13886nto-qnx)
13887 version_type=linux
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=yes
13894 ;;
13895
13896openbsd*)
13897 version_type=sunos
13898 need_lib_prefix=no
13899 need_version=no
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13902 shlibpath_var=LD_LIBRARY_PATH
13903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13904 case $host_os in
13905 openbsd2.[89] | openbsd2.[89].*)
13906 shlibpath_overrides_runpath=no
13907 ;;
13908 *)
13909 shlibpath_overrides_runpath=yes
13910 ;;
13911 esac
13912 else
13913 shlibpath_overrides_runpath=yes
13914 fi
13915 ;;
13916
13917os2*)
13918 libname_spec='$name'
13919 shrext=".dll"
13920 need_lib_prefix=no
13921 library_names_spec='$libname${shared_ext} $libname.a'
13922 dynamic_linker='OS/2 ld.exe'
13923 shlibpath_var=LIBPATH
13924 ;;
13925
13926osf3* | osf4* | osf5*)
13927 version_type=osf
13928 need_lib_prefix=no
13929 need_version=no
13930 soname_spec='${libname}${release}${shared_ext}$major'
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 shlibpath_var=LD_LIBRARY_PATH
13933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13935 ;;
13936
13937sco3.2v5*)
13938 version_type=osf
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 ;;
13943
13944solaris*)
13945 version_type=linux
13946 need_lib_prefix=no
13947 need_version=no
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes
13952 hardcode_into_libs=yes
13953 # ldd complains unless libraries are executable
13954 postinstall_cmds='chmod +x $lib'
13955 ;;
13956
13957sunos4*)
13958 version_type=sunos
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes
13963 if test "$with_gnu_ld" = yes; then
13964 need_lib_prefix=no
13965 fi
13966 need_version=yes
13967 ;;
13968
13969sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13970 version_type=linux
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LD_LIBRARY_PATH
13974 case $host_vendor in
13975 sni)
13976 shlibpath_overrides_runpath=no
13977 need_lib_prefix=no
13978 export_dynamic_flag_spec='${wl}-Blargedynsym'
13979 runpath_var=LD_RUN_PATH
13980 ;;
13981 siemens)
13982 need_lib_prefix=no
13983 ;;
13984 motorola)
13985 need_lib_prefix=no
13986 need_version=no
13987 shlibpath_overrides_runpath=no
13988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13989 ;;
13990 esac
13991 ;;
13992
13993sysv4*MP*)
13994 if test -d /usr/nec ;then
13995 version_type=linux
13996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13997 soname_spec='$libname${shared_ext}.$major'
13998 shlibpath_var=LD_LIBRARY_PATH
13999 fi
14000 ;;
14001
14002uts4*)
14003 version_type=linux
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 ;;
14008
14009*)
14010 dynamic_linker=no
14011 ;;
14012esac
14013echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14014echo "${ECHO_T}$dynamic_linker" >&6
14015test "$dynamic_linker" = no && can_build_shared=no
14016
14017
14018# The else clause should only fire when bootstrapping the
14019# libtool distribution, otherwise you forgot to ship ltmain.sh
14020# with your package, and you will get complaints that there are
14021# no rules to generate ltmain.sh.
14022if test -f "$ltmain"; then
14023 # See if we are running on zsh, and set the options which allow our commands through
14024 # without removal of \ escapes.
14025 if test -n "${ZSH_VERSION+set}" ; then
14026 setopt NO_GLOB_SUBST
14027 fi
14028 # Now quote all the things that may contain metacharacters while being
14029 # careful not to overquote the AC_SUBSTed values. We take copies of the
14030 # variables and quote the copies for generation of the libtool script.
14031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14032 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14033 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14034 deplibs_check_method reload_flag reload_cmds need_locks \
14035 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14036 lt_cv_sys_global_symbol_to_c_name_address \
14037 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14038 old_postinstall_cmds old_postuninstall_cmds \
14039 compiler_F77 \
14040 CC_F77 \
14041 LD_F77 \
14042 lt_prog_compiler_wl_F77 \
14043 lt_prog_compiler_pic_F77 \
14044 lt_prog_compiler_static_F77 \
14045 lt_prog_compiler_no_builtin_flag_F77 \
14046 export_dynamic_flag_spec_F77 \
14047 thread_safe_flag_spec_F77 \
14048 whole_archive_flag_spec_F77 \
14049 enable_shared_with_static_runtimes_F77 \
14050 old_archive_cmds_F77 \
14051 old_archive_from_new_cmds_F77 \
14052 predep_objects_F77 \
14053 postdep_objects_F77 \
14054 predeps_F77 \
14055 postdeps_F77 \
14056 compiler_lib_search_path_F77 \
14057 archive_cmds_F77 \
14058 archive_expsym_cmds_F77 \
14059 postinstall_cmds_F77 \
14060 postuninstall_cmds_F77 \
14061 old_archive_from_expsyms_cmds_F77 \
14062 allow_undefined_flag_F77 \
14063 no_undefined_flag_F77 \
14064 export_symbols_cmds_F77 \
14065 hardcode_libdir_flag_spec_F77 \
14066 hardcode_libdir_flag_spec_ld_F77 \
14067 hardcode_libdir_separator_F77 \
14068 hardcode_automatic_F77 \
14069 module_cmds_F77 \
14070 module_expsym_cmds_F77 \
14071 lt_cv_prog_compiler_c_o_F77 \
14072 exclude_expsyms_F77 \
14073 include_expsyms_F77; do
14074
14075 case $var in
14076 old_archive_cmds_F77 | \
14077 old_archive_from_new_cmds_F77 | \
14078 archive_cmds_F77 | \
14079 archive_expsym_cmds_F77 | \
14080 module_cmds_F77 | \
14081 module_expsym_cmds_F77 | \
14082 old_archive_from_expsyms_cmds_F77 | \
14083 export_symbols_cmds_F77 | \
14084 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14085 postinstall_cmds | postuninstall_cmds | \
14086 old_postinstall_cmds | old_postuninstall_cmds | \
14087 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14088 # Double-quote double-evaled strings.
14089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14090 ;;
14091 *)
14092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14093 ;;
14094 esac
14095 done
14096
14097 case $lt_echo in
14098 *'\$0 --fallback-echo"')
14099 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14100 ;;
14101 esac
14102
14103cfgfile="$ofile"
14104
14105 cat <<__EOF__ >> "$cfgfile"
14106# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14107
14108# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14109
14110# Shell to use when invoking shell scripts.
14111SHELL=$lt_SHELL
14112
14113# Whether or not to build shared libraries.
14114build_libtool_libs=$enable_shared
14115
14116# Whether or not to build static libraries.
14117build_old_libs=$enable_static
14118
14119# Whether or not to add -lc for building shared libraries.
14120build_libtool_need_lc=$archive_cmds_need_lc_F77
14121
14122# Whether or not to disallow shared libs when runtime libs are static
14123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14124
14125# Whether or not to optimize for fast installation.
14126fast_install=$enable_fast_install
14127
14128# The host system.
14129host_alias=$host_alias
14130host=$host
14131
14132# An echo program that does not interpret backslashes.
14133echo=$lt_echo
14134
14135# The archiver.
14136AR=$lt_AR
14137AR_FLAGS=$lt_AR_FLAGS
14138
14139# A C compiler.
14140LTCC=$lt_LTCC
14141
14142# A language-specific compiler.
14143CC=$lt_compiler_F77
14144
14145# Is the compiler the GNU C compiler?
14146with_gcc=$GCC_F77
14147
14148# An ERE matcher.
14149EGREP=$lt_EGREP
14150
14151# The linker used to build libraries.
14152LD=$lt_LD_F77
14153
14154# Whether we need hard or soft links.
14155LN_S=$lt_LN_S
14156
14157# A BSD-compatible nm program.
14158NM=$lt_NM
14159
14160# A symbol stripping program
14161STRIP=$STRIP
14162
14163# Used to examine libraries when file_magic_cmd begins "file"
14164MAGIC_CMD=$MAGIC_CMD
14165
14166# Used on cygwin: DLL creation program.
14167DLLTOOL="$DLLTOOL"
14168
14169# Used on cygwin: object dumper.
14170OBJDUMP="$OBJDUMP"
14171
14172# Used on cygwin: assembler.
14173AS="$AS"
14174
14175# The name of the directory that contains temporary libtool files.
14176objdir=$objdir
14177
14178# How to create reloadable object files.
14179reload_flag=$lt_reload_flag
14180reload_cmds=$lt_reload_cmds
14181
14182# How to pass a linker flag through the compiler.
14183wl=$lt_lt_prog_compiler_wl_F77
14184
14185# Object file suffix (normally "o").
14186objext="$ac_objext"
14187
14188# Old archive suffix (normally "a").
14189libext="$libext"
14190
14191# Shared library suffix (normally ".so").
14192shrext='$shrext'
14193
14194# Executable file suffix (normally "").
14195exeext="$exeext"
14196
14197# Additional compiler flags for building library objects.
14198pic_flag=$lt_lt_prog_compiler_pic_F77
14199pic_mode=$pic_mode
14200
14201# What is the maximum length of a command?
14202max_cmd_len=$lt_cv_sys_max_cmd_len
14203
14204# Does compiler simultaneously support -c and -o options?
14205compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14206
14207# Must we lock files when doing compilation ?
14208need_locks=$lt_need_locks
14209
14210# Do we need the lib prefix for modules?
14211need_lib_prefix=$need_lib_prefix
14212
14213# Do we need a version for libraries?
14214need_version=$need_version
14215
14216# Whether dlopen is supported.
14217dlopen_support=$enable_dlopen
14218
14219# Whether dlopen of programs is supported.
14220dlopen_self=$enable_dlopen_self
14221
14222# Whether dlopen of statically linked programs is supported.
14223dlopen_self_static=$enable_dlopen_self_static
14224
14225# Compiler flag to prevent dynamic linking.
14226link_static_flag=$lt_lt_prog_compiler_static_F77
14227
14228# Compiler flag to turn off builtin functions.
14229no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14230
14231# Compiler flag to allow reflexive dlopens.
14232export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14233
14234# Compiler flag to generate shared objects directly from archives.
14235whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14236
14237# Compiler flag to generate thread-safe objects.
14238thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14239
14240# Library versioning type.
14241version_type=$version_type
14242
14243# Format of library name prefix.
14244libname_spec=$lt_libname_spec
14245
14246# List of archive names. First name is the real one, the rest are links.
14247# The last name is the one that the linker finds with -lNAME.
14248library_names_spec=$lt_library_names_spec
14249
14250# The coded name of the library, if different from the real name.
14251soname_spec=$lt_soname_spec
14252
14253# Commands used to build and install an old-style archive.
14254RANLIB=$lt_RANLIB
14255old_archive_cmds=$lt_old_archive_cmds_F77
14256old_postinstall_cmds=$lt_old_postinstall_cmds
14257old_postuninstall_cmds=$lt_old_postuninstall_cmds
14258
14259# Create an old-style archive from a shared archive.
14260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14261
14262# Create a temporary old-style archive to link instead of a shared archive.
14263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14264
14265# Commands used to build and install a shared archive.
14266archive_cmds=$lt_archive_cmds_F77
14267archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14268postinstall_cmds=$lt_postinstall_cmds
14269postuninstall_cmds=$lt_postuninstall_cmds
14270
14271# Commands used to build a loadable module (assumed same as above if empty)
14272module_cmds=$lt_module_cmds_F77
14273module_expsym_cmds=$lt_module_expsym_cmds_F77
14274
14275# Commands to strip libraries.
14276old_striplib=$lt_old_striplib
14277striplib=$lt_striplib
14278
14279# Dependencies to place before the objects being linked to create a
14280# shared library.
14281predep_objects=$lt_predep_objects_F77
14282
14283# Dependencies to place after the objects being linked to create a
14284# shared library.
14285postdep_objects=$lt_postdep_objects_F77
14286
14287# Dependencies to place before the objects being linked to create a
14288# shared library.
14289predeps=$lt_predeps_F77
14290
14291# Dependencies to place after the objects being linked to create a
14292# shared library.
14293postdeps=$lt_postdeps_F77
14294
14295# The library search path used internally by the compiler when linking
14296# a shared library.
14297compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14298
14299# Method to check whether dependent libraries are shared objects.
14300deplibs_check_method=$lt_deplibs_check_method
14301
14302# Command to use when deplibs_check_method == file_magic.
14303file_magic_cmd=$lt_file_magic_cmd
14304
14305# Flag that allows shared libraries with undefined symbols to be built.
14306allow_undefined_flag=$lt_allow_undefined_flag_F77
14307
14308# Flag that forces no undefined symbols.
14309no_undefined_flag=$lt_no_undefined_flag_F77
14310
14311# Commands used to finish a libtool library installation in a directory.
14312finish_cmds=$lt_finish_cmds
14313
14314# Same as above, but a single script fragment to be evaled but not shown.
14315finish_eval=$lt_finish_eval
14316
14317# Take the output of nm and produce a listing of raw symbols and C names.
14318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14319
14320# Transform the output of nm in a proper C declaration
14321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14322
14323# Transform the output of nm in a C name address pair
14324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14325
14326# This is the shared library runtime path variable.
14327runpath_var=$runpath_var
14328
14329# This is the shared library path variable.
14330shlibpath_var=$shlibpath_var
14331
14332# Is shlibpath searched before the hard-coded library search path?
14333shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14334
14335# How to hardcode a shared library path into an executable.
14336hardcode_action=$hardcode_action_F77
14337
14338# Whether we should hardcode library paths into libraries.
14339hardcode_into_libs=$hardcode_into_libs
14340
14341# Flag to hardcode \$libdir into a binary during linking.
14342# This must work even if \$libdir does not exist.
14343hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14344
14345# If ld is used when linking, flag to hardcode \$libdir into
14346# a binary during linking. This must work even if \$libdir does
14347# not exist.
14348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14349
14350# Whether we need a single -rpath flag with a separated argument.
14351hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14352
14353# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14354# resulting binary.
14355hardcode_direct=$hardcode_direct_F77
14356
14357# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14358# resulting binary.
14359hardcode_minus_L=$hardcode_minus_L_F77
14360
14361# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14362# the resulting binary.
14363hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14364
14365# Set to yes if building a shared library automatically hardcodes DIR into the library
14366# and all subsequent libraries and executables linked against it.
14367hardcode_automatic=$hardcode_automatic_F77
14368
14369# Variables whose values should be saved in libtool wrapper scripts and
14370# restored at relink time.
14371variables_saved_for_relink="$variables_saved_for_relink"
14372
14373# Whether libtool must link a program against all its dependency libraries.
14374link_all_deplibs=$link_all_deplibs_F77
14375
14376# Compile-time system search path for libraries
14377sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14378
14379# Run-time system search path for libraries
14380sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14381
14382# Fix the shell variable \$srcfile for the compiler.
14383fix_srcfile_path="$fix_srcfile_path_F77"
14384
14385# Set to yes if exported symbols are required.
14386always_export_symbols=$always_export_symbols_F77
14387
14388# The commands to list exported symbols.
14389export_symbols_cmds=$lt_export_symbols_cmds_F77
14390
14391# The commands to extract the exported symbol list from a shared archive.
14392extract_expsyms_cmds=$lt_extract_expsyms_cmds
14393
14394# Symbols that should not be listed in the preloaded symbols.
14395exclude_expsyms=$lt_exclude_expsyms_F77
14396
14397# Symbols that must always be exported.
14398include_expsyms=$lt_include_expsyms_F77
14399
14400# ### END LIBTOOL TAG CONFIG: $tagname
14401
14402__EOF__
14403
14404
14405else
14406 # If there is no Makefile yet, we rely on a make rule to execute
14407 # `config.status --recheck' to rerun these tests and create the
14408 # libtool script then.
14409 test -f Makefile && make "$ltmain"
14410fi
14411
14412
14413ac_ext=c
14414ac_cpp='$CPP $CPPFLAGS'
14415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417ac_compiler_gnu=$ac_cv_c_compiler_gnu
14418
14419CC="$lt_save_CC"
14420
14421 else
14422 tagname=""
14423 fi
14424 ;;
14425
14426 GCJ)
14427 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14428
14429
14430
14431# Source file extension for Java test sources.
14432ac_ext=java
14433
14434# Object file extension for compiled Java test sources.
14435objext=o
14436objext_GCJ=$objext
14437
14438# Code to be used in simple compile tests
14439lt_simple_compile_test_code="class foo {}\n"
14440
14441# Code to be used in simple link tests
14442lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14443
14444# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14445
14446# If no C compiler was specified, use CC.
14447LTCC=${LTCC-"$CC"}
14448
14449# Allow CC to be a program name with arguments.
14450compiler=$CC
14451
14452
14453# Allow CC to be a program name with arguments.
14454lt_save_CC="$CC"
14455CC=${GCJ-"gcj"}
14456compiler=$CC
14457compiler_GCJ=$CC
14458
14459# GCJ did not exist at the time GCC didn't implicitly link libc in.
14460archive_cmds_need_lc_GCJ=no
14461
14462## CAVEAT EMPTOR:
14463## There is no encapsulation within the following macros, do not change
14464## the running order or otherwise move them around unless you know exactly
14465## what you are doing...
14466
14467lt_prog_compiler_no_builtin_flag_GCJ=
14468
14469if test "$GCC" = yes; then
14470 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14471
14472 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14473echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14474if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476else
14477 lt_cv_prog_compiler_rtti_exceptions=no
14478 ac_outfile=conftest.$ac_objext
14479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14480 lt_compiler_flag="-fno-rtti -fno-exceptions"
14481 # Insert the option either (1) after the last *FLAGS variable, or
14482 # (2) before a word containing "conftest.", or (3) at the end.
14483 # Note that $ac_compile itself does not contain backslashes and begins
14484 # with a dollar sign (not a hyphen), so the echo should work correctly.
14485 # The option is referenced via a variable to avoid confusing sed.
14486 lt_compile=`echo "$ac_compile" | $SED \
14487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14489 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000014490 (eval echo "\"\$as_me:14490: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014491 (eval "$lt_compile" 2>conftest.err)
14492 ac_status=$?
14493 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000014494 echo "$as_me:14494: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014495 if (exit $ac_status) && test -s "$ac_outfile"; then
14496 # The compiler can only warn and ignore the option if not recognized
14497 # So say no if there are warnings
14498 if test ! -s conftest.err; then
14499 lt_cv_prog_compiler_rtti_exceptions=yes
14500 fi
14501 fi
14502 $rm conftest*
14503
14504fi
14505echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14506echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14507
14508if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14509 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14510else
14511 :
14512fi
14513
14514fi
14515
14516lt_prog_compiler_wl_GCJ=
14517lt_prog_compiler_pic_GCJ=
14518lt_prog_compiler_static_GCJ=
14519
14520echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14521echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14522
14523 if test "$GCC" = yes; then
14524 lt_prog_compiler_wl_GCJ='-Wl,'
14525 lt_prog_compiler_static_GCJ='-static'
14526
14527 case $host_os in
14528 aix*)
14529 # All AIX code is PIC.
14530 if test "$host_cpu" = ia64; then
14531 # AIX 5 now supports IA64 processor
14532 lt_prog_compiler_static_GCJ='-Bstatic'
14533 fi
14534 ;;
14535
14536 amigaos*)
14537 # FIXME: we need at least 68020 code to build shared libraries, but
14538 # adding the `-m68020' flag to GCC prevents building anything better,
14539 # like `-m68040'.
14540 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14541 ;;
14542
14543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14544 # PIC is the default for these OSes.
14545 ;;
14546
14547 mingw* | pw32* | os2*)
14548 # This hack is so that the source file can tell whether it is being
14549 # built for inclusion in a dll (and should export symbols for example).
14550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14551 ;;
14552
14553 darwin* | rhapsody*)
14554 # PIC is the default on this platform
14555 # Common symbols not allowed in MH_DYLIB files
14556 lt_prog_compiler_pic_GCJ='-fno-common'
14557 ;;
14558
14559 msdosdjgpp*)
14560 # Just because we use GCC doesn't mean we suddenly get shared libraries
14561 # on systems that don't support them.
14562 lt_prog_compiler_can_build_shared_GCJ=no
14563 enable_shared=no
14564 ;;
14565
14566 sysv4*MP*)
14567 if test -d /usr/nec; then
14568 lt_prog_compiler_pic_GCJ=-Kconform_pic
14569 fi
14570 ;;
14571
14572 hpux*)
14573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14574 # not for PA HP-UX.
14575 case "$host_cpu" in
14576 hppa*64*|ia64*)
14577 # +Z the default
14578 ;;
14579 *)
14580 lt_prog_compiler_pic_GCJ='-fPIC'
14581 ;;
14582 esac
14583 ;;
14584
14585 *)
14586 lt_prog_compiler_pic_GCJ='-fPIC'
14587 ;;
14588 esac
14589 else
14590 # PORTME Check for flag to pass linker flags through the system compiler.
14591 case $host_os in
14592 aix*)
14593 lt_prog_compiler_wl_GCJ='-Wl,'
14594 if test "$host_cpu" = ia64; then
14595 # AIX 5 now supports IA64 processor
14596 lt_prog_compiler_static_GCJ='-Bstatic'
14597 else
14598 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14599 fi
14600 ;;
14601
14602 mingw* | pw32* | os2*)
14603 # This hack is so that the source file can tell whether it is being
14604 # built for inclusion in a dll (and should export symbols for example).
14605 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14606 ;;
14607
14608 hpux9* | hpux10* | hpux11*)
14609 lt_prog_compiler_wl_GCJ='-Wl,'
14610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14611 # not for PA HP-UX.
14612 case "$host_cpu" in
14613 hppa*64*|ia64*)
14614 # +Z the default
14615 ;;
14616 *)
14617 lt_prog_compiler_pic_GCJ='+Z'
14618 ;;
14619 esac
14620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14621 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14622 ;;
14623
14624 irix5* | irix6* | nonstopux*)
14625 lt_prog_compiler_wl_GCJ='-Wl,'
14626 # PIC (with -KPIC) is the default.
14627 lt_prog_compiler_static_GCJ='-non_shared'
14628 ;;
14629
14630 newsos6)
14631 lt_prog_compiler_pic_GCJ='-KPIC'
14632 lt_prog_compiler_static_GCJ='-Bstatic'
14633 ;;
14634
14635 linux*)
14636 case $CC in
14637 icc|ecc)
14638 lt_prog_compiler_wl_GCJ='-Wl,'
14639 lt_prog_compiler_pic_GCJ='-KPIC'
14640 lt_prog_compiler_static_GCJ='-static'
14641 ;;
14642 ccc)
14643 lt_prog_compiler_wl_GCJ='-Wl,'
14644 # All Alpha code is PIC.
14645 lt_prog_compiler_static_GCJ='-non_shared'
14646 ;;
14647 esac
14648 ;;
14649
14650 osf3* | osf4* | osf5*)
14651 lt_prog_compiler_wl_GCJ='-Wl,'
14652 # All OSF/1 code is PIC.
14653 lt_prog_compiler_static_GCJ='-non_shared'
14654 ;;
14655
14656 sco3.2v5*)
14657 lt_prog_compiler_pic_GCJ='-Kpic'
14658 lt_prog_compiler_static_GCJ='-dn'
14659 ;;
14660
14661 solaris*)
14662 lt_prog_compiler_wl_GCJ='-Wl,'
14663 lt_prog_compiler_pic_GCJ='-KPIC'
14664 lt_prog_compiler_static_GCJ='-Bstatic'
14665 ;;
14666
14667 sunos4*)
14668 lt_prog_compiler_wl_GCJ='-Qoption ld '
14669 lt_prog_compiler_pic_GCJ='-PIC'
14670 lt_prog_compiler_static_GCJ='-Bstatic'
14671 ;;
14672
14673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14674 lt_prog_compiler_wl_GCJ='-Wl,'
14675 lt_prog_compiler_pic_GCJ='-KPIC'
14676 lt_prog_compiler_static_GCJ='-Bstatic'
14677 ;;
14678
14679 sysv4*MP*)
14680 if test -d /usr/nec ;then
14681 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14682 lt_prog_compiler_static_GCJ='-Bstatic'
14683 fi
14684 ;;
14685
14686 uts4*)
14687 lt_prog_compiler_pic_GCJ='-pic'
14688 lt_prog_compiler_static_GCJ='-Bstatic'
14689 ;;
14690
14691 *)
14692 lt_prog_compiler_can_build_shared_GCJ=no
14693 ;;
14694 esac
14695 fi
14696
14697echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14698echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14699
14700#
14701# Check to make sure the PIC flag actually works.
14702#
14703if test -n "$lt_prog_compiler_pic_GCJ"; then
14704 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14705echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14706if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else
14709 lt_prog_compiler_pic_works_GCJ=no
14710 ac_outfile=conftest.$ac_objext
14711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14712 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14713 # Insert the option either (1) after the last *FLAGS variable, or
14714 # (2) before a word containing "conftest.", or (3) at the end.
14715 # Note that $ac_compile itself does not contain backslashes and begins
14716 # with a dollar sign (not a hyphen), so the echo should work correctly.
14717 # The option is referenced via a variable to avoid confusing sed.
14718 lt_compile=`echo "$ac_compile" | $SED \
14719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000014722 (eval echo "\"\$as_me:14722: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014723 (eval "$lt_compile" 2>conftest.err)
14724 ac_status=$?
14725 cat conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000014726 echo "$as_me:14726: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014727 if (exit $ac_status) && test -s "$ac_outfile"; then
14728 # The compiler can only warn and ignore the option if not recognized
14729 # So say no if there are warnings
14730 if test ! -s conftest.err; then
14731 lt_prog_compiler_pic_works_GCJ=yes
14732 fi
14733 fi
14734 $rm conftest*
14735
14736fi
14737echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14738echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14739
14740if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14741 case $lt_prog_compiler_pic_GCJ in
14742 "" | " "*) ;;
14743 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14744 esac
14745else
14746 lt_prog_compiler_pic_GCJ=
14747 lt_prog_compiler_can_build_shared_GCJ=no
14748fi
14749
14750fi
14751case "$host_os" in
14752 # For platforms which do not support PIC, -DPIC is meaningless:
14753 *djgpp*)
14754 lt_prog_compiler_pic_GCJ=
14755 ;;
14756 *)
14757 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14758 ;;
14759esac
14760
14761echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14763if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 lt_cv_prog_compiler_c_o_GCJ=no
14767 $rm -r conftest 2>/dev/null
14768 mkdir conftest
14769 cd conftest
14770 mkdir out
14771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14772
14773 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14774 # that will create temporary files in the current directory regardless of
14775 # the output directory. Thus, making CWD read-only will cause this test
14776 # to fail, enabling locking or at least warning the user not to do parallel
14777 # builds.
14778 chmod -w .
14779
14780 lt_compiler_flag="-o out/conftest2.$ac_objext"
14781 # Insert the option either (1) after the last *FLAGS variable, or
14782 # (2) before a word containing "conftest.", or (3) at the end.
14783 # Note that $ac_compile itself does not contain backslashes and begins
14784 # with a dollar sign (not a hyphen), so the echo should work correctly.
14785 lt_compile=`echo "$ac_compile" | $SED \
14786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14788 -e 's:$: $lt_compiler_flag:'`
John Criswell392aaa32003-07-22 19:18:09 +000014789 (eval echo "\"\$as_me:14789: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014790 (eval "$lt_compile" 2>out/conftest.err)
14791 ac_status=$?
14792 cat out/conftest.err >&5
John Criswell392aaa32003-07-22 19:18:09 +000014793 echo "$as_me:14793: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14795 then
14796 # The compiler can only warn and ignore the option if not recognized
14797 # So say no if there are warnings
14798 if test ! -s out/conftest.err; then
14799 lt_cv_prog_compiler_c_o_GCJ=yes
14800 fi
14801 fi
14802 chmod u+w .
14803 $rm conftest* out/*
14804 rmdir out
14805 cd ..
14806 rmdir conftest
14807 $rm conftest*
14808
14809fi
14810echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14811echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14812
14813
14814hard_links="nottested"
14815if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14816 # do not overwrite the value of need_locks provided by the user
14817 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14818echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14819 hard_links=yes
14820 $rm conftest*
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 touch conftest.a
14823 ln conftest.a conftest.b 2>&5 || hard_links=no
14824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14825 echo "$as_me:$LINENO: result: $hard_links" >&5
14826echo "${ECHO_T}$hard_links" >&6
14827 if test "$hard_links" = no; then
14828 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14829echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14830 need_locks=warn
14831 fi
14832else
14833 need_locks=no
14834fi
14835
14836echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14837echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14838
14839 runpath_var=
14840 allow_undefined_flag_GCJ=
14841 enable_shared_with_static_runtimes_GCJ=no
14842 archive_cmds_GCJ=
14843 archive_expsym_cmds_GCJ=
14844 old_archive_From_new_cmds_GCJ=
14845 old_archive_from_expsyms_cmds_GCJ=
14846 export_dynamic_flag_spec_GCJ=
14847 whole_archive_flag_spec_GCJ=
14848 thread_safe_flag_spec_GCJ=
14849 hardcode_libdir_flag_spec_GCJ=
14850 hardcode_libdir_flag_spec_ld_GCJ=
14851 hardcode_libdir_separator_GCJ=
14852 hardcode_direct_GCJ=no
14853 hardcode_minus_L_GCJ=no
14854 hardcode_shlibpath_var_GCJ=unsupported
14855 link_all_deplibs_GCJ=unknown
14856 hardcode_automatic_GCJ=no
14857 module_cmds_GCJ=
14858 module_expsym_cmds_GCJ=
14859 always_export_symbols_GCJ=no
14860 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861 # include_expsyms should be a list of space-separated symbols to be *always*
14862 # included in the symbol list
14863 include_expsyms_GCJ=
14864 # exclude_expsyms can be an extended regexp of symbols to exclude
14865 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14866 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14867 # as well as any symbol that contains `d'.
14868 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14869 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14870 # platforms (ab)use it in PIC code, but their linkers get confused if
14871 # the symbol is explicitly referenced. Since portable code cannot
14872 # rely on this symbol name, it's probably fine to never include it in
14873 # preloaded symbol tables.
14874 extract_expsyms_cmds=
14875
14876 case $host_os in
14877 cygwin* | mingw* | pw32*)
14878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14879 # When not using gcc, we currently assume that we are using
14880 # Microsoft Visual C++.
14881 if test "$GCC" != yes; then
14882 with_gnu_ld=no
14883 fi
14884 ;;
14885 openbsd*)
14886 with_gnu_ld=no
14887 ;;
14888 esac
14889
14890 ld_shlibs_GCJ=yes
14891 if test "$with_gnu_ld" = yes; then
14892 # If archive_cmds runs LD, not CC, wlarc should be empty
14893 wlarc='${wl}'
14894
14895 # See if GNU ld supports shared libraries.
14896 case $host_os in
14897 aix3* | aix4* | aix5*)
14898 # On AIX/PPC, the GNU linker is very broken
14899 if test "$host_cpu" != ia64; then
14900 ld_shlibs_GCJ=no
14901 cat <<EOF 1>&2
14902
14903*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14904*** to be unable to reliably create shared libraries on AIX.
14905*** Therefore, libtool is disabling shared libraries support. If you
14906*** really care for shared libraries, you may want to modify your PATH
14907*** so that a non-GNU linker is found, and then restart.
14908
14909EOF
14910 fi
14911 ;;
14912
14913 amigaos*)
14914 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)'
14915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14916 hardcode_minus_L_GCJ=yes
14917
14918 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14919 # that the semantics of dynamic libraries on AmigaOS, at least up
14920 # to version 4, is to share data among multiple programs linked
14921 # with the same dynamic library. Since this doesn't match the
14922 # behavior of shared libraries on other platforms, we can't use
14923 # them.
14924 ld_shlibs_GCJ=no
14925 ;;
14926
14927 beos*)
14928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929 allow_undefined_flag_GCJ=unsupported
14930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14931 # support --undefined. This deserves some investigation. FIXME
14932 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14933 else
14934 ld_shlibs_GCJ=no
14935 fi
14936 ;;
14937
14938 cygwin* | mingw* | pw32*)
14939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14940 # as there is no search path for DLLs.
14941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14942 allow_undefined_flag_GCJ=unsupported
14943 always_export_symbols_GCJ=no
14944 enable_shared_with_static_runtimes_GCJ=yes
14945 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14946
14947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14948 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14949 # If the export-symbols file already is a .def file (1st line
14950 # is EXPORTS), use it as is; otherwise, prepend...
14951 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14952 cp $export_symbols $output_objdir/$soname.def;
14953 else
14954 echo EXPORTS > $output_objdir/$soname.def;
14955 cat $export_symbols >> $output_objdir/$soname.def;
14956 fi~
14957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14958 else
14959 ld_shlibs=no
14960 fi
14961 ;;
14962
14963 netbsd*)
14964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14965 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14966 wlarc=
14967 else
14968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970 fi
14971 ;;
14972
14973 solaris* | sysv5*)
14974 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14975 ld_shlibs_GCJ=no
14976 cat <<EOF 1>&2
14977
14978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14979*** create shared libraries on Solaris systems. Therefore, libtool
14980*** is disabling shared libraries support. We urge you to upgrade GNU
14981*** binutils to release 2.9.1 or newer. Another option is to modify
14982*** your PATH or compiler configuration so that the native linker is
14983*** used, and then restart.
14984
14985EOF
14986 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14989 else
14990 ld_shlibs_GCJ=no
14991 fi
14992 ;;
14993
14994 sunos4*)
14995 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14996 wlarc=
14997 hardcode_direct_GCJ=yes
14998 hardcode_shlibpath_var_GCJ=no
14999 ;;
15000
15001 *)
15002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15005 else
15006 ld_shlibs_GCJ=no
15007 fi
15008 ;;
15009 esac
15010
15011 if test "$ld_shlibs_GCJ" = yes; then
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15014 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15015 # ancient GNU ld didn't support --whole-archive et. al.
15016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15018 else
15019 whole_archive_flag_spec_GCJ=
15020 fi
15021 fi
15022 else
15023 # PORTME fill in a description of your system's linker (not GNU ld)
15024 case $host_os in
15025 aix3*)
15026 allow_undefined_flag_GCJ=unsupported
15027 always_export_symbols_GCJ=yes
15028 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'
15029 # Note: this linker hardcodes the directories in LIBPATH if there
15030 # are no directories specified by -L.
15031 hardcode_minus_L_GCJ=yes
15032 if test "$GCC" = yes && test -z "$link_static_flag"; then
15033 # Neither direct hardcoding nor static linking is supported with a
15034 # broken collect2.
15035 hardcode_direct_GCJ=unsupported
15036 fi
15037 ;;
15038
15039 aix4* | aix5*)
15040 if test "$host_cpu" = ia64; then
15041 # On IA64, the linker does run time linking by default, so we don't
15042 # have to do anything special.
15043 aix_use_runtimelinking=no
15044 exp_sym_flag='-Bexport'
15045 no_entry_flag=""
15046 else
15047 # If we're using GNU nm, then we don't want the "-C" option.
15048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15049 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15050 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'
15051 else
15052 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'
15053 fi
15054 aix_use_runtimelinking=no
15055
15056 # Test if we are trying to use run time linking or normal
15057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15058 # need to do runtime linking.
15059 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15060 for ld_flag in $LDFLAGS; do
15061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15062 aix_use_runtimelinking=yes
15063 break
15064 fi
15065 done
15066 esac
15067
15068 exp_sym_flag='-bexport'
15069 no_entry_flag='-bnoentry'
15070 fi
15071
15072 # When large executables or shared objects are built, AIX ld can
15073 # have problems creating the table of contents. If linking a library
15074 # or program results in "error TOC overflow" add -mminimal-toc to
15075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15077
15078 archive_cmds_GCJ=''
15079 hardcode_direct_GCJ=yes
15080 hardcode_libdir_separator_GCJ=':'
15081 link_all_deplibs_GCJ=yes
15082
15083 if test "$GCC" = yes; then
15084 case $host_os in aix4.012|aix4.012.*)
15085 # We only want to do this on AIX 4.2 and lower, the check
15086 # below for broken collect2 doesn't work under 4.3+
15087 collect2name=`${CC} -print-prog-name=collect2`
15088 if test -f "$collect2name" && \
15089 strings "$collect2name" | grep resolve_lib_name >/dev/null
15090 then
15091 # We have reworked collect2
15092 hardcode_direct_GCJ=yes
15093 else
15094 # We have old collect2
15095 hardcode_direct_GCJ=unsupported
15096 # It fails to find uninstalled libraries when the uninstalled
15097 # path is not listed in the libpath. Setting hardcode_minus_L
15098 # to unsupported forces relinking
15099 hardcode_minus_L_GCJ=yes
15100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101 hardcode_libdir_separator_GCJ=
15102 fi
15103 esac
15104 shared_flag='-shared'
15105 else
15106 # not using gcc
15107 if test "$host_cpu" = ia64; then
15108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109 # chokes on -Wl,-G. The following line is correct:
15110 shared_flag='-G'
15111 else
15112 if test "$aix_use_runtimelinking" = yes; then
15113 shared_flag='${wl}-G'
15114 else
15115 shared_flag='${wl}-bM:SRE'
15116 fi
15117 fi
15118 fi
15119
15120 # It seems that -bexpall does not export symbols beginning with
15121 # underscore (_), so it is better to generate a list of symbols to export.
15122 always_export_symbols_GCJ=yes
15123 if test "$aix_use_runtimelinking" = yes; then
15124 # Warning - without using the other runtime loading flags (-brtl),
15125 # -berok will link without error, but may produce a broken library.
15126 allow_undefined_flag_GCJ='-berok'
15127 # Determine the default libpath from the value encoded in an empty executable.
15128 cat >conftest.$ac_ext <<_ACEOF
15129#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015135
John Criswell47fdd832003-07-14 16:52:07 +000015136int
15137main ()
15138{
15139
15140 ;
15141 return 0;
15142}
15143_ACEOF
15144rm -f conftest.$ac_objext conftest$ac_exeext
15145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -s conftest$ac_exeext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156
15157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15158}'`
15159# Check for a 64-bit object if we didn't find anything.
15160if 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; }
15161}'`; fi
15162else
15163 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015164sed 's/^/| /' conftest.$ac_ext >&5
15165
John Criswell47fdd832003-07-14 16:52:07 +000015166fi
15167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15169
15170 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 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"
15172 else
15173 if test "$host_cpu" = ia64; then
15174 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15175 allow_undefined_flag_GCJ="-z nodefs"
15176 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"
15177 else
15178 # Determine the default libpath from the value encoded in an empty executable.
15179 cat >conftest.$ac_ext <<_ACEOF
15180#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015181/* confdefs.h. */
15182_ACEOF
15183cat confdefs.h >>conftest.$ac_ext
15184cat >>conftest.$ac_ext <<_ACEOF
15185/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015186
John Criswell47fdd832003-07-14 16:52:07 +000015187int
15188main ()
15189{
15190
15191 ;
15192 return 0;
15193}
15194_ACEOF
15195rm -f conftest.$ac_objext conftest$ac_exeext
15196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207
15208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15209}'`
15210# Check for a 64-bit object if we didn't find anything.
15211if 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; }
15212}'`; fi
15213else
15214 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015215sed 's/^/| /' conftest.$ac_ext >&5
15216
John Criswell47fdd832003-07-14 16:52:07 +000015217fi
15218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15220
15221 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15222 # Warning - without using the other run time loading flags,
15223 # -berok will link without error, but may produce a broken library.
15224 no_undefined_flag_GCJ=' ${wl}-bernotok'
15225 allow_undefined_flag_GCJ=' ${wl}-berok'
15226 # -bexpall does not export symbols beginning with underscore (_)
15227 always_export_symbols_GCJ=yes
15228 # Exported symbols can be pulled into shared objects from archives
15229 whole_archive_flag_spec_GCJ=' '
15230 archive_cmds_need_lc_GCJ=yes
15231 # This is similar to how AIX traditionally builds it's shared libraries.
15232 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'
15233 fi
15234 fi
15235 ;;
15236
15237 amigaos*)
15238 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)'
15239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15240 hardcode_minus_L_GCJ=yes
15241 # see comment about different semantics on the GNU ld section
15242 ld_shlibs_GCJ=no
15243 ;;
15244
15245 bsdi4*)
15246 export_dynamic_flag_spec_GCJ=-rdynamic
15247 ;;
15248
15249 cygwin* | mingw* | pw32*)
15250 # When not using gcc, we currently assume that we are using
15251 # Microsoft Visual C++.
15252 # hardcode_libdir_flag_spec is actually meaningless, as there is
15253 # no search path for DLLs.
15254 hardcode_libdir_flag_spec_GCJ=' '
15255 allow_undefined_flag_GCJ=unsupported
15256 # Tell ltmain to make .lib files, not .a files.
15257 libext=lib
15258 # Tell ltmain to make .dll files, not .so files.
15259 shrext=".dll"
15260 # FIXME: Setting linknames here is a bad hack.
15261 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15262 # The linker will automatically build a .lib file if we build a DLL.
15263 old_archive_From_new_cmds_GCJ='true'
15264 # FIXME: Should let the user specify the lib program.
15265 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15266 fix_srcfile_path='`cygpath -w "$srcfile"`'
15267 enable_shared_with_static_runtimes_GCJ=yes
15268 ;;
15269
15270 darwin* | rhapsody*)
15271 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15272 archive_cmds_need_lc_GCJ=no
15273 case "$host_os" in
15274 rhapsody* | darwin1.[012])
15275 allow_undefined_flag_GCJ='-undefined suppress'
15276 ;;
15277 *) # Darwin 1.3 on
15278 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15279 ;;
15280 esac
15281 # FIXME: Relying on posixy $() will cause problems for
15282 # cross-compilation, but unfortunately the echo tests do not
15283 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15284 # `"' quotes if we put them in here... so don't!
15285 lt_int_apple_cc_single_mod=no
15286 output_verbose_link_cmd='echo'
15287 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15288 lt_int_apple_cc_single_mod=yes
15289 fi
15290 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15291 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15292 else
15293 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'
15294 fi
15295 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15296 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15297 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15298 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}'
15299 else
15300 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}'
15301 fi
15302 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}'
15303 hardcode_direct_GCJ=no
15304 hardcode_automatic_GCJ=yes
15305 hardcode_shlibpath_var_GCJ=unsupported
15306 whole_archive_flag_spec_GCJ='-all_load $convenience'
15307 link_all_deplibs_GCJ=yes
15308 fi
15309 ;;
15310
15311 dgux*)
15312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15314 hardcode_shlibpath_var_GCJ=no
15315 ;;
15316
15317 freebsd1*)
15318 ld_shlibs_GCJ=no
15319 ;;
15320
15321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15322 # support. Future versions do this automatically, but an explicit c++rt0.o
15323 # does not break anything, and helps significantly (at the cost of a little
15324 # extra space).
15325 freebsd2.2*)
15326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15327 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15328 hardcode_direct_GCJ=yes
15329 hardcode_shlibpath_var_GCJ=no
15330 ;;
15331
15332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15333 freebsd2*)
15334 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_direct_GCJ=yes
15336 hardcode_minus_L_GCJ=yes
15337 hardcode_shlibpath_var_GCJ=no
15338 ;;
15339
15340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15341 freebsd*)
15342 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15343 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15344 hardcode_direct_GCJ=yes
15345 hardcode_shlibpath_var_GCJ=no
15346 ;;
15347
15348 hpux9*)
15349 if test "$GCC" = yes; then
15350 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'
15351 else
15352 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'
15353 fi
15354 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15355 hardcode_libdir_separator_GCJ=:
15356 hardcode_direct_GCJ=yes
15357
15358 # hardcode_minus_L: Not really in the search PATH,
15359 # but as the default location of the library.
15360 hardcode_minus_L_GCJ=yes
15361 export_dynamic_flag_spec_GCJ='${wl}-E'
15362 ;;
15363
15364 hpux10* | hpux11*)
15365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15366 case "$host_cpu" in
15367 hppa*64*|ia64*)
15368 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369 ;;
15370 *)
15371 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15372 ;;
15373 esac
15374 else
15375 case "$host_cpu" in
15376 hppa*64*|ia64*)
15377 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15378 ;;
15379 *)
15380 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15381 ;;
15382 esac
15383 fi
15384 if test "$with_gnu_ld" = no; then
15385 case "$host_cpu" in
15386 hppa*64*)
15387 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15389 hardcode_libdir_separator_GCJ=:
15390 hardcode_direct_GCJ=no
15391 hardcode_shlibpath_var_GCJ=no
15392 ;;
15393 ia64*)
15394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15395 hardcode_direct_GCJ=no
15396 hardcode_shlibpath_var_GCJ=no
15397
15398 # hardcode_minus_L: Not really in the search PATH,
15399 # but as the default location of the library.
15400 hardcode_minus_L_GCJ=yes
15401 ;;
15402 *)
15403 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15404 hardcode_libdir_separator_GCJ=:
15405 hardcode_direct_GCJ=yes
15406 export_dynamic_flag_spec_GCJ='${wl}-E'
15407
15408 # hardcode_minus_L: Not really in the search PATH,
15409 # but as the default location of the library.
15410 hardcode_minus_L_GCJ=yes
15411 ;;
15412 esac
15413 fi
15414 ;;
15415
15416 irix5* | irix6* | nonstopux*)
15417 if test "$GCC" = yes; then
15418 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'
15419 else
15420 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'
15421 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15422 fi
15423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15424 hardcode_libdir_separator_GCJ=:
15425 link_all_deplibs_GCJ=yes
15426 ;;
15427
15428 netbsd*)
15429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15431 else
15432 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15433 fi
15434 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15435 hardcode_direct_GCJ=yes
15436 hardcode_shlibpath_var_GCJ=no
15437 ;;
15438
15439 newsos6)
15440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_direct_GCJ=yes
15442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator_GCJ=:
15444 hardcode_shlibpath_var_GCJ=no
15445 ;;
15446
15447 openbsd*)
15448 hardcode_direct_GCJ=yes
15449 hardcode_shlibpath_var_GCJ=no
15450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15453 export_dynamic_flag_spec_GCJ='${wl}-E'
15454 else
15455 case $host_os in
15456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15459 ;;
15460 *)
15461 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15463 ;;
15464 esac
15465 fi
15466 ;;
15467
15468 os2*)
15469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15470 hardcode_minus_L_GCJ=yes
15471 allow_undefined_flag_GCJ=unsupported
15472 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'
15473 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474 ;;
15475
15476 osf3*)
15477 if test "$GCC" = yes; then
15478 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15479 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'
15480 else
15481 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15482 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'
15483 fi
15484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15485 hardcode_libdir_separator_GCJ=:
15486 ;;
15487
15488 osf4* | osf5*) # as osf3* with the addition of -msym flag
15489 if test "$GCC" = yes; then
15490 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15491 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'
15492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15493 else
15494 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15495 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'
15496 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~
15497 $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'
15498
15499 # Both c and cxx compiler support -rpath directly
15500 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15501 fi
15502 hardcode_libdir_separator_GCJ=:
15503 ;;
15504
15505 sco3.2v5*)
15506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_shlibpath_var_GCJ=no
15508 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15509 runpath_var=LD_RUN_PATH
15510 hardcode_runpath_var=yes
15511 ;;
15512
15513 solaris*)
15514 no_undefined_flag_GCJ=' -z text'
15515 if test "$GCC" = yes; then
15516 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15518 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15519 else
15520 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15523 fi
15524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525 hardcode_shlibpath_var_GCJ=no
15526 case $host_os in
15527 solaris2.[0-5] | solaris2.[0-5].*) ;;
15528 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15529 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15530 esac
15531 link_all_deplibs_GCJ=yes
15532 ;;
15533
15534 sunos4*)
15535 if test "x$host_vendor" = xsequent; then
15536 # Use $CC to link under sequent, because it throws in some extra .o
15537 # files that make .init and .fini sections work.
15538 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15539 else
15540 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15541 fi
15542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543 hardcode_direct_GCJ=yes
15544 hardcode_minus_L_GCJ=yes
15545 hardcode_shlibpath_var_GCJ=no
15546 ;;
15547
15548 sysv4)
15549 case $host_vendor in
15550 sni)
15551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_GCJ=yes # is this really true???
15553 ;;
15554 siemens)
15555 ## LD is ld it makes a PLAMLIB
15556 ## CC just makes a GrossModule.
15557 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15559 hardcode_direct_GCJ=no
15560 ;;
15561 motorola)
15562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15564 ;;
15565 esac
15566 runpath_var='LD_RUN_PATH'
15567 hardcode_shlibpath_var_GCJ=no
15568 ;;
15569
15570 sysv4.3*)
15571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_shlibpath_var_GCJ=no
15573 export_dynamic_flag_spec_GCJ='-Bexport'
15574 ;;
15575
15576 sysv4*MP*)
15577 if test -d /usr/nec; then
15578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_shlibpath_var_GCJ=no
15580 runpath_var=LD_RUN_PATH
15581 hardcode_runpath_var=yes
15582 ld_shlibs_GCJ=yes
15583 fi
15584 ;;
15585
15586 sysv4.2uw2*)
15587 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct_GCJ=yes
15589 hardcode_minus_L_GCJ=no
15590 hardcode_shlibpath_var_GCJ=no
15591 hardcode_runpath_var=yes
15592 runpath_var=LD_RUN_PATH
15593 ;;
15594
15595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15596 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15597 if test "$GCC" = yes; then
15598 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 else
15600 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 fi
15602 runpath_var='LD_RUN_PATH'
15603 hardcode_shlibpath_var_GCJ=no
15604 ;;
15605
15606 sysv5*)
15607 no_undefined_flag_GCJ=' -z text'
15608 # $CC -shared without GNU ld will not create a library from C++
15609 # object files and a static libstdc++, better avoid it by now
15610 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15613 hardcode_libdir_flag_spec_GCJ=
15614 hardcode_shlibpath_var_GCJ=no
15615 runpath_var='LD_RUN_PATH'
15616 ;;
15617
15618 uts4*)
15619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15621 hardcode_shlibpath_var_GCJ=no
15622 ;;
15623
15624 *)
15625 ld_shlibs_GCJ=no
15626 ;;
15627 esac
15628 fi
15629
15630echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15631echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15632test "$ld_shlibs_GCJ" = no && can_build_shared=no
15633
15634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15635if test "$GCC" = yes; then
15636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15637fi
15638
15639#
15640# Do we need to explicitly link libc?
15641#
15642case "x$archive_cmds_need_lc_GCJ" in
15643x|xyes)
15644 # Assume -lc should be added
15645 archive_cmds_need_lc_GCJ=yes
15646
15647 if test "$enable_shared" = yes && test "$GCC" = yes; then
15648 case $archive_cmds_GCJ in
15649 *'~'*)
15650 # FIXME: we may have to deal with multi-command sequences.
15651 ;;
15652 '$CC '*)
15653 # Test whether the compiler implicitly links with -lc since on some
15654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15655 # to ld, don't add -lc before -lgcc.
15656 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15657echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15658 $rm conftest*
15659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15660
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } 2>conftest.err; then
15666 soname=conftest
15667 lib=conftest
15668 libobjs=conftest.$ac_objext
15669 deplibs=
15670 wl=$lt_prog_compiler_wl_GCJ
15671 compiler_flags=-v
15672 linker_flags=-v
15673 verstring=
15674 output_objdir=.
15675 libname=conftest
15676 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15677 allow_undefined_flag_GCJ=
15678 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15679 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }
15683 then
15684 archive_cmds_need_lc_GCJ=no
15685 else
15686 archive_cmds_need_lc_GCJ=yes
15687 fi
15688 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15689 else
15690 cat conftest.err 1>&5
15691 fi
15692 $rm conftest*
15693 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15694echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15695 ;;
15696 esac
15697 fi
15698 ;;
15699esac
15700
15701echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15702echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15703hardcode_action_GCJ=
15704if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15705 test -n "$runpath_var GCJ" || \
15706 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15707
15708 # We can hardcode non-existant directories.
15709 if test "$hardcode_direct_GCJ" != no &&
15710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15711 # have to relink, otherwise we might link with an installed library
15712 # when we should be linking with a yet-to-be-installed one
15713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15714 test "$hardcode_minus_L_GCJ" != no; then
15715 # Linking always hardcodes the temporary library directory.
15716 hardcode_action_GCJ=relink
15717 else
15718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15719 hardcode_action_GCJ=immediate
15720 fi
15721else
15722 # We cannot hardcode anything, or else we can only hardcode existing
15723 # directories.
15724 hardcode_action_GCJ=unsupported
15725fi
15726echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15727echo "${ECHO_T}$hardcode_action_GCJ" >&6
15728
15729if test "$hardcode_action_GCJ" = relink; then
15730 # Fast installation is not supported
15731 enable_fast_install=no
15732elif test "$shlibpath_overrides_runpath" = yes ||
15733 test "$enable_shared" = no; then
15734 # Fast installation is not necessary
15735 enable_fast_install=needless
15736fi
15737
15738striplib=
15739old_striplib=
15740echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15741echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15742if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15745 echo "$as_me:$LINENO: result: yes" >&5
15746echo "${ECHO_T}yes" >&6
15747else
15748# FIXME - insert some real tests, host_os isn't really good enough
15749 case $host_os in
15750 darwin*)
15751 if test -n "$STRIP" ; then
15752 striplib="$STRIP -x"
15753 echo "$as_me:$LINENO: result: yes" >&5
15754echo "${ECHO_T}yes" >&6
15755 else
15756 echo "$as_me:$LINENO: result: no" >&5
15757echo "${ECHO_T}no" >&6
15758fi
15759 ;;
15760 *)
15761 echo "$as_me:$LINENO: result: no" >&5
15762echo "${ECHO_T}no" >&6
15763 ;;
15764 esac
15765fi
15766
15767echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15769library_names_spec=
15770libname_spec='lib$name'
15771soname_spec=
15772shrext=".so"
15773postinstall_cmds=
15774postuninstall_cmds=
15775finish_cmds=
15776finish_eval=
15777shlibpath_var=
15778shlibpath_overrides_runpath=unknown
15779version_type=none
15780dynamic_linker="$host_os ld.so"
15781sys_lib_dlsearch_path_spec="/lib /usr/lib"
15782if test "$GCC" = yes; then
15783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15785 # if the path contains ";" then we assume it to be the separator
15786 # otherwise default to the standard path separator (i.e. ":") - it is
15787 # assumed that no part of a normal pathname contains ";" but that should
15788 # okay in the real world where ";" in dirpaths is itself problematic.
15789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15790 else
15791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15792 fi
15793else
15794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15795fi
15796need_lib_prefix=unknown
15797hardcode_into_libs=no
15798
15799# when you set need_version to no, make sure it does not cause -set_version
15800# flags to be left without arguments
15801need_version=unknown
15802
15803case $host_os in
15804aix3*)
15805 version_type=linux
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15807 shlibpath_var=LIBPATH
15808
15809 # AIX 3 has no versioning support, so we append a major version to the name.
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 ;;
15812
15813aix4* | aix5*)
15814 version_type=linux
15815 need_lib_prefix=no
15816 need_version=no
15817 hardcode_into_libs=yes
15818 if test "$host_cpu" = ia64; then
15819 # AIX 5 supports IA64
15820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 else
15823 # With GCC up to 2.95.x, collect2 would create an import file
15824 # for dependence libraries. The import file would start with
15825 # the line `#! .'. This would cause the generated library to
15826 # depend on `.', always an invalid library. This was fixed in
15827 # development snapshots of GCC prior to 3.0.
15828 case $host_os in
15829 aix4 | aix4.[01] | aix4.[01].*)
15830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15831 echo ' yes '
15832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15833 :
15834 else
15835 can_build_shared=no
15836 fi
15837 ;;
15838 esac
15839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15840 # soname into executable. Probably we can add versioning support to
15841 # collect2, so additional links can be useful in future.
15842 if test "$aix_use_runtimelinking" = yes; then
15843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15844 # instead of lib<name>.a to let people know that these are not
15845 # typical AIX shared libraries.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 else
15848 # We preserve .a as extension for shared libraries through AIX4.2
15849 # and later when we are not doing run time linking.
15850 library_names_spec='${libname}${release}.a $libname.a'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 fi
15853 shlibpath_var=LIBPATH
15854 fi
15855 ;;
15856
15857amigaos*)
15858 library_names_spec='$libname.ixlibrary $libname.a'
15859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860 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'
15861 ;;
15862
15863beos*)
15864 library_names_spec='${libname}${shared_ext}'
15865 dynamic_linker="$host_os ld.so"
15866 shlibpath_var=LIBRARY_PATH
15867 ;;
15868
15869bsdi4*)
15870 version_type=linux
15871 need_version=no
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15878 # the default ld.so.conf also contains /usr/contrib/lib and
15879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15880 # libtool to hard-code these into programs
15881 ;;
15882
15883cygwin* | mingw* | pw32*)
15884 version_type=windows
15885 shrext=".dll"
15886 need_version=no
15887 need_lib_prefix=no
15888
15889 case $GCC,$host_os in
15890 yes,cygwin* | yes,mingw* | yes,pw32*)
15891 library_names_spec='$libname.dll.a'
15892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15893 postinstall_cmds='base_file=`basename \${file}`~
15894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15895 dldir=$destdir/`dirname \$dlpath`~
15896 test -d \$dldir || mkdir -p \$dldir~
15897 $install_prog $dir/$dlname \$dldir/$dlname'
15898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15899 dlpath=$dir/\$dldll~
15900 $rm \$dlpath'
15901 shlibpath_overrides_runpath=yes
15902
15903 case $host_os in
15904 cygwin*)
15905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15907 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15908 ;;
15909 mingw*)
15910 # MinGW DLLs use traditional 'lib' prefix
15911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15914 # It is most probably a Windows format PATH printed by
15915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15916 # path with ; separators, and with drive letters. We can handle the
15917 # drive letters (cygwin fileutils understands them), so leave them,
15918 # especially as we might pass files found there to a mingw objdump,
15919 # which wouldn't understand a cygwinified path. Ahh.
15920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15921 else
15922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15923 fi
15924 ;;
15925 pw32*)
15926 # pw32 DLLs use 'pw' prefix rather than 'lib'
15927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15928 ;;
15929 esac
15930 ;;
15931
15932 *)
15933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15934 ;;
15935 esac
15936 dynamic_linker='Win32 ld.exe'
15937 # FIXME: first we should search . and the directory the executable is in
15938 shlibpath_var=PATH
15939 ;;
15940
15941darwin* | rhapsody*)
15942 dynamic_linker="$host_os dyld"
15943 version_type=darwin
15944 need_lib_prefix=no
15945 need_version=no
15946 # FIXME: Relying on posixy $() will cause problems for
15947 # cross-compilation, but unfortunately the echo tests do not
15948 # yet detect zsh echo's removal of \ escapes.
15949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15950 soname_spec='${libname}${release}${major}$shared_ext'
15951 shlibpath_overrides_runpath=yes
15952 shlibpath_var=DYLD_LIBRARY_PATH
15953 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15955 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15956 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"`
15957 fi
15958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15959 ;;
15960
15961dgux*)
15962 version_type=linux
15963 need_lib_prefix=no
15964 need_version=no
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 ;;
15969
15970freebsd1*)
15971 dynamic_linker=no
15972 ;;
15973
15974freebsd*)
15975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15976 version_type=freebsd-$objformat
15977 case $version_type in
15978 freebsd-elf*)
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15980 need_version=no
15981 need_lib_prefix=no
15982 ;;
15983 freebsd-*)
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15985 need_version=yes
15986 ;;
15987 esac
15988 shlibpath_var=LD_LIBRARY_PATH
15989 case $host_os in
15990 freebsd2*)
15991 shlibpath_overrides_runpath=yes
15992 ;;
15993 freebsd3.01* | freebsdelf3.01*)
15994 shlibpath_overrides_runpath=yes
15995 hardcode_into_libs=yes
15996 ;;
15997 *) # from 3.2 on
15998 shlibpath_overrides_runpath=no
15999 hardcode_into_libs=yes
16000 ;;
16001 esac
16002 ;;
16003
16004gnu*)
16005 version_type=linux
16006 need_lib_prefix=no
16007 need_version=no
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 hardcode_into_libs=yes
16012 ;;
16013
16014hpux9* | hpux10* | hpux11*)
16015 # Give a soname corresponding to the major version so that dld.sl refuses to
16016 # link against other versions.
16017 version_type=sunos
16018 need_lib_prefix=no
16019 need_version=no
16020 case "$host_cpu" in
16021 ia64*)
16022 shrext='.so'
16023 hardcode_into_libs=yes
16024 dynamic_linker="$host_os dld.so"
16025 shlibpath_var=LD_LIBRARY_PATH
16026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 if test "X$HPUX_IA64_MODE" = X32; then
16030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16031 else
16032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16033 fi
16034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035 ;;
16036 hppa*64*)
16037 shrext='.sl'
16038 hardcode_into_libs=yes
16039 dynamic_linker="$host_os dld.sl"
16040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046 ;;
16047 *)
16048 shrext='.sl'
16049 dynamic_linker="$host_os dld.sl"
16050 shlibpath_var=SHLIB_PATH
16051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 ;;
16055 esac
16056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16057 postinstall_cmds='chmod 555 $lib'
16058 ;;
16059
16060irix5* | irix6* | nonstopux*)
16061 case $host_os in
16062 nonstopux*) version_type=nonstopux ;;
16063 *)
16064 if test "$lt_cv_prog_gnu_ld" = yes; then
16065 version_type=linux
16066 else
16067 version_type=irix
16068 fi ;;
16069 esac
16070 need_lib_prefix=no
16071 need_version=no
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16074 case $host_os in
16075 irix5* | nonstopux*)
16076 libsuff= shlibsuff=
16077 ;;
16078 *)
16079 case $LD in # libtool.m4 will add one of these switches to LD
16080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16081 libsuff= shlibsuff= libmagic=32-bit;;
16082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16083 libsuff=32 shlibsuff=N32 libmagic=N32;;
16084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16086 *) libsuff= shlibsuff= libmagic=never-match;;
16087 esac
16088 ;;
16089 esac
16090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16091 shlibpath_overrides_runpath=no
16092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16094 hardcode_into_libs=yes
16095 ;;
16096
16097# No shared lib support for Linux oldld, aout, or coff.
16098linux*oldld* | linux*aout* | linux*coff*)
16099 dynamic_linker=no
16100 ;;
16101
16102# This must be Linux ELF.
16103linux*)
16104 version_type=linux
16105 need_lib_prefix=no
16106 need_version=no
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=no
16112 # This implies no fast_install, which is unacceptable.
16113 # Some rework will be needed to allow for fast_install
16114 # before this can be enabled.
16115 hardcode_into_libs=yes
16116
16117 # We used to test for /lib/ld.so.1 and disable shared libraries on
16118 # powerpc, because MkLinux only supported shared libraries with the
16119 # GNU dynamic linker. Since this was broken with cross compilers,
16120 # most powerpc-linux boxes support dynamic linking these days and
16121 # people can always --disable-shared, the test was removed, and we
16122 # assume the GNU/Linux dynamic linker is in use.
16123 dynamic_linker='GNU/Linux ld.so'
16124 ;;
16125
16126netbsd*)
16127 version_type=sunos
16128 need_lib_prefix=no
16129 need_version=no
16130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16133 dynamic_linker='NetBSD (a.out) ld.so'
16134 else
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 dynamic_linker='NetBSD ld.elf_so'
16138 fi
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16142 ;;
16143
16144newsos6)
16145 version_type=linux
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 ;;
16150
16151nto-qnx)
16152 version_type=linux
16153 need_lib_prefix=no
16154 need_version=no
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16159 ;;
16160
16161openbsd*)
16162 version_type=sunos
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16169 case $host_os in
16170 openbsd2.[89] | openbsd2.[89].*)
16171 shlibpath_overrides_runpath=no
16172 ;;
16173 *)
16174 shlibpath_overrides_runpath=yes
16175 ;;
16176 esac
16177 else
16178 shlibpath_overrides_runpath=yes
16179 fi
16180 ;;
16181
16182os2*)
16183 libname_spec='$name'
16184 shrext=".dll"
16185 need_lib_prefix=no
16186 library_names_spec='$libname${shared_ext} $libname.a'
16187 dynamic_linker='OS/2 ld.exe'
16188 shlibpath_var=LIBPATH
16189 ;;
16190
16191osf3* | osf4* | osf5*)
16192 version_type=osf
16193 need_lib_prefix=no
16194 need_version=no
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 shlibpath_var=LD_LIBRARY_PATH
16198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16200 ;;
16201
16202sco3.2v5*)
16203 version_type=osf
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 ;;
16208
16209solaris*)
16210 version_type=linux
16211 need_lib_prefix=no
16212 need_version=no
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes
16217 hardcode_into_libs=yes
16218 # ldd complains unless libraries are executable
16219 postinstall_cmds='chmod +x $lib'
16220 ;;
16221
16222sunos4*)
16223 version_type=sunos
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 if test "$with_gnu_ld" = yes; then
16229 need_lib_prefix=no
16230 fi
16231 need_version=yes
16232 ;;
16233
16234sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16235 version_type=linux
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 case $host_vendor in
16240 sni)
16241 shlibpath_overrides_runpath=no
16242 need_lib_prefix=no
16243 export_dynamic_flag_spec='${wl}-Blargedynsym'
16244 runpath_var=LD_RUN_PATH
16245 ;;
16246 siemens)
16247 need_lib_prefix=no
16248 ;;
16249 motorola)
16250 need_lib_prefix=no
16251 need_version=no
16252 shlibpath_overrides_runpath=no
16253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16254 ;;
16255 esac
16256 ;;
16257
16258sysv4*MP*)
16259 if test -d /usr/nec ;then
16260 version_type=linux
16261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16262 soname_spec='$libname${shared_ext}.$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 fi
16265 ;;
16266
16267uts4*)
16268 version_type=linux
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 shlibpath_var=LD_LIBRARY_PATH
16272 ;;
16273
16274*)
16275 dynamic_linker=no
16276 ;;
16277esac
16278echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16279echo "${ECHO_T}$dynamic_linker" >&6
16280test "$dynamic_linker" = no && can_build_shared=no
16281
16282if test "x$enable_dlopen" != xyes; then
16283 enable_dlopen=unknown
16284 enable_dlopen_self=unknown
16285 enable_dlopen_self_static=unknown
16286else
16287 lt_cv_dlopen=no
16288 lt_cv_dlopen_libs=
16289
16290 case $host_os in
16291 beos*)
16292 lt_cv_dlopen="load_add_on"
16293 lt_cv_dlopen_libs=
16294 lt_cv_dlopen_self=yes
16295 ;;
16296
16297 mingw* | pw32*)
16298 lt_cv_dlopen="LoadLibrary"
16299 lt_cv_dlopen_libs=
16300 ;;
16301
16302 cygwin*)
16303 lt_cv_dlopen="dlopen"
16304 lt_cv_dlopen_libs=
16305 ;;
16306
16307 darwin*)
16308 # if libdl is installed we need to link against it
16309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16313else
16314 ac_check_lib_save_LIBS=$LIBS
16315LIBS="-ldl $LIBS"
16316cat >conftest.$ac_ext <<_ACEOF
16317#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016323
16324/* Override any gcc2 internal prototype to avoid an error. */
16325#ifdef __cplusplus
16326extern "C"
16327#endif
16328/* We use char because int might match the return type of a gcc2
16329 builtin and then its argument prototype would still apply. */
16330char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016331int
16332main ()
16333{
16334dlopen ();
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext conftest$ac_exeext
16340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_lib_dl_dlopen=yes
16352else
16353 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016354sed 's/^/| /' conftest.$ac_ext >&5
16355
John Criswell47fdd832003-07-14 16:52:07 +000016356ac_cv_lib_dl_dlopen=no
16357fi
16358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359LIBS=$ac_check_lib_save_LIBS
16360fi
16361echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16362echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16363if test $ac_cv_lib_dl_dlopen = yes; then
16364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16365else
16366
16367 lt_cv_dlopen="dyld"
16368 lt_cv_dlopen_libs=
16369 lt_cv_dlopen_self=yes
16370
16371fi
16372
16373 ;;
16374
16375 *)
16376 echo "$as_me:$LINENO: checking for shl_load" >&5
16377echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16378if test "${ac_cv_func_shl_load+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380else
16381 cat >conftest.$ac_ext <<_ACEOF
16382#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016388/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016389 which can conflict with char shl_load (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16392#ifdef __STDC__
16393# include <limits.h>
16394#else
16395# include <assert.h>
16396#endif
John Criswell47fdd832003-07-14 16:52:07 +000016397/* Override any gcc2 internal prototype to avoid an error. */
16398#ifdef __cplusplus
16399extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016400{
John Criswell47fdd832003-07-14 16:52:07 +000016401#endif
16402/* We use char because int might match the return type of a gcc2
16403 builtin and then its argument prototype would still apply. */
16404char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016405/* The GNU C library defines this for functions which it implements
16406 to always fail with ENOSYS. Some functions are actually named
16407 something starting with __ and the normal name is an alias. */
16408#if defined (__stub_shl_load) || defined (__stub___shl_load)
16409choke me
16410#else
John Criswell392aaa32003-07-22 19:18:09 +000016411char (*f) () = shl_load;
16412#endif
16413#ifdef __cplusplus
16414}
John Criswell47fdd832003-07-14 16:52:07 +000016415#endif
16416
John Criswell392aaa32003-07-22 19:18:09 +000016417int
16418main ()
16419{
16420return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext conftest$ac_exeext
16426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427 (eval $ac_link) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_func_shl_load=yes
16438else
16439 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016440sed 's/^/| /' conftest.$ac_ext >&5
16441
John Criswell47fdd832003-07-14 16:52:07 +000016442ac_cv_func_shl_load=no
16443fi
16444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16445fi
16446echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16447echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16448if test $ac_cv_func_shl_load = yes; then
16449 lt_cv_dlopen="shl_load"
16450else
16451 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16452echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16453if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
16456 ac_check_lib_save_LIBS=$LIBS
16457LIBS="-ldld $LIBS"
16458cat >conftest.$ac_ext <<_ACEOF
16459#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016460/* confdefs.h. */
16461_ACEOF
16462cat confdefs.h >>conftest.$ac_ext
16463cat >>conftest.$ac_ext <<_ACEOF
16464/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016465
16466/* Override any gcc2 internal prototype to avoid an error. */
16467#ifdef __cplusplus
16468extern "C"
16469#endif
16470/* We use char because int might match the return type of a gcc2
16471 builtin and then its argument prototype would still apply. */
16472char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016473int
16474main ()
16475{
16476shl_load ();
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext conftest$ac_exeext
16482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest$ac_exeext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_lib_dld_shl_load=yes
16494else
16495 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016496sed 's/^/| /' conftest.$ac_ext >&5
16497
John Criswell47fdd832003-07-14 16:52:07 +000016498ac_cv_lib_dld_shl_load=no
16499fi
16500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16501LIBS=$ac_check_lib_save_LIBS
16502fi
16503echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16504echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16505if test $ac_cv_lib_dld_shl_load = yes; then
16506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16507else
16508 echo "$as_me:$LINENO: checking for dlopen" >&5
16509echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16510if test "${ac_cv_func_dlopen+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512else
16513 cat >conftest.$ac_ext <<_ACEOF
16514#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016520/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016521 which can conflict with char dlopen (); below.
16522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16523 <limits.h> exists even on freestanding compilers. */
16524#ifdef __STDC__
16525# include <limits.h>
16526#else
16527# include <assert.h>
16528#endif
John Criswell47fdd832003-07-14 16:52:07 +000016529/* Override any gcc2 internal prototype to avoid an error. */
16530#ifdef __cplusplus
16531extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016532{
John Criswell47fdd832003-07-14 16:52:07 +000016533#endif
16534/* We use char because int might match the return type of a gcc2
16535 builtin and then its argument prototype would still apply. */
16536char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016537/* The GNU C library defines this for functions which it implements
16538 to always fail with ENOSYS. Some functions are actually named
16539 something starting with __ and the normal name is an alias. */
16540#if defined (__stub_dlopen) || defined (__stub___dlopen)
16541choke me
16542#else
John Criswell392aaa32003-07-22 19:18:09 +000016543char (*f) () = dlopen;
16544#endif
16545#ifdef __cplusplus
16546}
John Criswell47fdd832003-07-14 16:52:07 +000016547#endif
16548
John Criswell392aaa32003-07-22 19:18:09 +000016549int
16550main ()
16551{
16552return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016553 ;
16554 return 0;
16555}
16556_ACEOF
16557rm -f conftest.$ac_objext conftest$ac_exeext
16558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559 (eval $ac_link) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -s conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_cv_func_dlopen=yes
16570else
16571 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016572sed 's/^/| /' conftest.$ac_ext >&5
16573
John Criswell47fdd832003-07-14 16:52:07 +000016574ac_cv_func_dlopen=no
16575fi
16576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16577fi
16578echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16579echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16580if test $ac_cv_func_dlopen = yes; then
16581 lt_cv_dlopen="dlopen"
16582else
16583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16585if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588 ac_check_lib_save_LIBS=$LIBS
16589LIBS="-ldl $LIBS"
16590cat >conftest.$ac_ext <<_ACEOF
16591#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016597
16598/* Override any gcc2 internal prototype to avoid an error. */
16599#ifdef __cplusplus
16600extern "C"
16601#endif
16602/* We use char because int might match the return type of a gcc2
16603 builtin and then its argument prototype would still apply. */
16604char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016605int
16606main ()
16607{
16608dlopen ();
16609 ;
16610 return 0;
16611}
16612_ACEOF
16613rm -f conftest.$ac_objext conftest$ac_exeext
16614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -s conftest$ac_exeext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_lib_dl_dlopen=yes
16626else
16627 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016628sed 's/^/| /' conftest.$ac_ext >&5
16629
John Criswell47fdd832003-07-14 16:52:07 +000016630ac_cv_lib_dl_dlopen=no
16631fi
16632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16633LIBS=$ac_check_lib_save_LIBS
16634fi
16635echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16636echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16637if test $ac_cv_lib_dl_dlopen = yes; then
16638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16639else
16640 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16641echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16642if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 ac_check_lib_save_LIBS=$LIBS
16646LIBS="-lsvld $LIBS"
16647cat >conftest.$ac_ext <<_ACEOF
16648#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016654
16655/* Override any gcc2 internal prototype to avoid an error. */
16656#ifdef __cplusplus
16657extern "C"
16658#endif
16659/* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16661char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016662int
16663main ()
16664{
16665dlopen ();
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext conftest$ac_exeext
16671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_svld_dlopen=yes
16683else
16684 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016685sed 's/^/| /' conftest.$ac_ext >&5
16686
John Criswell47fdd832003-07-14 16:52:07 +000016687ac_cv_lib_svld_dlopen=no
16688fi
16689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690LIBS=$ac_check_lib_save_LIBS
16691fi
16692echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16693echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16694if test $ac_cv_lib_svld_dlopen = yes; then
16695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16696else
16697 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16698echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16699if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702 ac_check_lib_save_LIBS=$LIBS
16703LIBS="-ldld $LIBS"
16704cat >conftest.$ac_ext <<_ACEOF
16705#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016706/* confdefs.h. */
16707_ACEOF
16708cat confdefs.h >>conftest.$ac_ext
16709cat >>conftest.$ac_ext <<_ACEOF
16710/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016711
16712/* Override any gcc2 internal prototype to avoid an error. */
16713#ifdef __cplusplus
16714extern "C"
16715#endif
16716/* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16718char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016719int
16720main ()
16721{
16722dld_link ();
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727rm -f conftest.$ac_objext conftest$ac_exeext
16728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729 (eval $ac_link) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -s conftest$ac_exeext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_cv_lib_dld_dld_link=yes
16740else
16741 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016742sed 's/^/| /' conftest.$ac_ext >&5
16743
John Criswell47fdd832003-07-14 16:52:07 +000016744ac_cv_lib_dld_dld_link=no
16745fi
16746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747LIBS=$ac_check_lib_save_LIBS
16748fi
16749echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16750echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16751if test $ac_cv_lib_dld_dld_link = yes; then
16752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16753fi
16754
16755
16756fi
16757
16758
16759fi
16760
16761
16762fi
16763
16764
16765fi
16766
16767
16768fi
16769
16770 ;;
16771 esac
16772
16773 if test "x$lt_cv_dlopen" != xno; then
16774 enable_dlopen=yes
16775 else
16776 enable_dlopen=no
16777 fi
16778
16779 case $lt_cv_dlopen in
16780 dlopen)
16781 save_CPPFLAGS="$CPPFLAGS"
16782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16783
16784 save_LDFLAGS="$LDFLAGS"
16785 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16786
16787 save_LIBS="$LIBS"
16788 LIBS="$lt_cv_dlopen_libs $LIBS"
16789
16790 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16791echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16792if test "${lt_cv_dlopen_self+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794else
16795 if test "$cross_compiling" = yes; then :
16796 lt_cv_dlopen_self=cross
16797else
16798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16799 lt_status=$lt_dlunknown
16800 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +000016801#line 16801 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016802#include "confdefs.h"
16803
16804#if HAVE_DLFCN_H
16805#include <dlfcn.h>
16806#endif
16807
16808#include <stdio.h>
16809
16810#ifdef RTLD_GLOBAL
16811# define LT_DLGLOBAL RTLD_GLOBAL
16812#else
16813# ifdef DL_GLOBAL
16814# define LT_DLGLOBAL DL_GLOBAL
16815# else
16816# define LT_DLGLOBAL 0
16817# endif
16818#endif
16819
16820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16821 find out it does not work in some platform. */
16822#ifndef LT_DLLAZY_OR_NOW
16823# ifdef RTLD_LAZY
16824# define LT_DLLAZY_OR_NOW RTLD_LAZY
16825# else
16826# ifdef DL_LAZY
16827# define LT_DLLAZY_OR_NOW DL_LAZY
16828# else
16829# ifdef RTLD_NOW
16830# define LT_DLLAZY_OR_NOW RTLD_NOW
16831# else
16832# ifdef DL_NOW
16833# define LT_DLLAZY_OR_NOW DL_NOW
16834# else
16835# define LT_DLLAZY_OR_NOW 0
16836# endif
16837# endif
16838# endif
16839# endif
16840#endif
16841
16842#ifdef __cplusplus
16843extern "C" void exit (int);
16844#endif
16845
16846void fnord() { int i=42;}
16847int main ()
16848{
16849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16850 int status = $lt_dlunknown;
16851
16852 if (self)
16853 {
16854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16856 /* dlclose (self); */
16857 }
16858
16859 exit (status);
16860}
16861EOF
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16867 (./conftest; exit; ) 2>/dev/null
16868 lt_status=$?
16869 case x$lt_status in
16870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16872 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16873 esac
16874 else :
16875 # compilation failed
16876 lt_cv_dlopen_self=no
16877 fi
16878fi
16879rm -fr conftest*
16880
16881
16882fi
16883echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16884echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16885
16886 if test "x$lt_cv_dlopen_self" = xyes; then
16887 LDFLAGS="$LDFLAGS $link_static_flag"
16888 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16889echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16890if test "${lt_cv_dlopen_self_static+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 if test "$cross_compiling" = yes; then :
16894 lt_cv_dlopen_self_static=cross
16895else
16896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16897 lt_status=$lt_dlunknown
16898 cat > conftest.$ac_ext <<EOF
John Criswell392aaa32003-07-22 19:18:09 +000016899#line 16899 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016900#include "confdefs.h"
16901
16902#if HAVE_DLFCN_H
16903#include <dlfcn.h>
16904#endif
16905
16906#include <stdio.h>
16907
16908#ifdef RTLD_GLOBAL
16909# define LT_DLGLOBAL RTLD_GLOBAL
16910#else
16911# ifdef DL_GLOBAL
16912# define LT_DLGLOBAL DL_GLOBAL
16913# else
16914# define LT_DLGLOBAL 0
16915# endif
16916#endif
16917
16918/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16919 find out it does not work in some platform. */
16920#ifndef LT_DLLAZY_OR_NOW
16921# ifdef RTLD_LAZY
16922# define LT_DLLAZY_OR_NOW RTLD_LAZY
16923# else
16924# ifdef DL_LAZY
16925# define LT_DLLAZY_OR_NOW DL_LAZY
16926# else
16927# ifdef RTLD_NOW
16928# define LT_DLLAZY_OR_NOW RTLD_NOW
16929# else
16930# ifdef DL_NOW
16931# define LT_DLLAZY_OR_NOW DL_NOW
16932# else
16933# define LT_DLLAZY_OR_NOW 0
16934# endif
16935# endif
16936# endif
16937# endif
16938#endif
16939
16940#ifdef __cplusplus
16941extern "C" void exit (int);
16942#endif
16943
16944void fnord() { int i=42;}
16945int main ()
16946{
16947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16948 int status = $lt_dlunknown;
16949
16950 if (self)
16951 {
16952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16954 /* dlclose (self); */
16955 }
16956
16957 exit (status);
16958}
16959EOF
16960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16961 (eval $ac_link) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16965 (./conftest; exit; ) 2>/dev/null
16966 lt_status=$?
16967 case x$lt_status in
16968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16970 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16971 esac
16972 else :
16973 # compilation failed
16974 lt_cv_dlopen_self_static=no
16975 fi
16976fi
16977rm -fr conftest*
16978
16979
16980fi
16981echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16982echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16983 fi
16984
16985 CPPFLAGS="$save_CPPFLAGS"
16986 LDFLAGS="$save_LDFLAGS"
16987 LIBS="$save_LIBS"
16988 ;;
16989 esac
16990
16991 case $lt_cv_dlopen_self in
16992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16993 *) enable_dlopen_self=unknown ;;
16994 esac
16995
16996 case $lt_cv_dlopen_self_static in
16997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16998 *) enable_dlopen_self_static=unknown ;;
16999 esac
17000fi
17001
17002
17003# The else clause should only fire when bootstrapping the
17004# libtool distribution, otherwise you forgot to ship ltmain.sh
17005# with your package, and you will get complaints that there are
17006# no rules to generate ltmain.sh.
17007if test -f "$ltmain"; then
17008 # See if we are running on zsh, and set the options which allow our commands through
17009 # without removal of \ escapes.
17010 if test -n "${ZSH_VERSION+set}" ; then
17011 setopt NO_GLOB_SUBST
17012 fi
17013 # Now quote all the things that may contain metacharacters while being
17014 # careful not to overquote the AC_SUBSTed values. We take copies of the
17015 # variables and quote the copies for generation of the libtool script.
17016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17019 deplibs_check_method reload_flag reload_cmds need_locks \
17020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17021 lt_cv_sys_global_symbol_to_c_name_address \
17022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17023 old_postinstall_cmds old_postuninstall_cmds \
17024 compiler_GCJ \
17025 CC_GCJ \
17026 LD_GCJ \
17027 lt_prog_compiler_wl_GCJ \
17028 lt_prog_compiler_pic_GCJ \
17029 lt_prog_compiler_static_GCJ \
17030 lt_prog_compiler_no_builtin_flag_GCJ \
17031 export_dynamic_flag_spec_GCJ \
17032 thread_safe_flag_spec_GCJ \
17033 whole_archive_flag_spec_GCJ \
17034 enable_shared_with_static_runtimes_GCJ \
17035 old_archive_cmds_GCJ \
17036 old_archive_from_new_cmds_GCJ \
17037 predep_objects_GCJ \
17038 postdep_objects_GCJ \
17039 predeps_GCJ \
17040 postdeps_GCJ \
17041 compiler_lib_search_path_GCJ \
17042 archive_cmds_GCJ \
17043 archive_expsym_cmds_GCJ \
17044 postinstall_cmds_GCJ \
17045 postuninstall_cmds_GCJ \
17046 old_archive_from_expsyms_cmds_GCJ \
17047 allow_undefined_flag_GCJ \
17048 no_undefined_flag_GCJ \
17049 export_symbols_cmds_GCJ \
17050 hardcode_libdir_flag_spec_GCJ \
17051 hardcode_libdir_flag_spec_ld_GCJ \
17052 hardcode_libdir_separator_GCJ \
17053 hardcode_automatic_GCJ \
17054 module_cmds_GCJ \
17055 module_expsym_cmds_GCJ \
17056 lt_cv_prog_compiler_c_o_GCJ \
17057 exclude_expsyms_GCJ \
17058 include_expsyms_GCJ; do
17059
17060 case $var in
17061 old_archive_cmds_GCJ | \
17062 old_archive_from_new_cmds_GCJ | \
17063 archive_cmds_GCJ | \
17064 archive_expsym_cmds_GCJ | \
17065 module_cmds_GCJ | \
17066 module_expsym_cmds_GCJ | \
17067 old_archive_from_expsyms_cmds_GCJ | \
17068 export_symbols_cmds_GCJ | \
17069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17070 postinstall_cmds | postuninstall_cmds | \
17071 old_postinstall_cmds | old_postuninstall_cmds | \
17072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17073 # Double-quote double-evaled strings.
17074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17075 ;;
17076 *)
17077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17078 ;;
17079 esac
17080 done
17081
17082 case $lt_echo in
17083 *'\$0 --fallback-echo"')
17084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17085 ;;
17086 esac
17087
17088cfgfile="$ofile"
17089
17090 cat <<__EOF__ >> "$cfgfile"
17091# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17092
17093# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17094
17095# Shell to use when invoking shell scripts.
17096SHELL=$lt_SHELL
17097
17098# Whether or not to build shared libraries.
17099build_libtool_libs=$enable_shared
17100
17101# Whether or not to build static libraries.
17102build_old_libs=$enable_static
17103
17104# Whether or not to add -lc for building shared libraries.
17105build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17106
17107# Whether or not to disallow shared libs when runtime libs are static
17108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17109
17110# Whether or not to optimize for fast installation.
17111fast_install=$enable_fast_install
17112
17113# The host system.
17114host_alias=$host_alias
17115host=$host
17116
17117# An echo program that does not interpret backslashes.
17118echo=$lt_echo
17119
17120# The archiver.
17121AR=$lt_AR
17122AR_FLAGS=$lt_AR_FLAGS
17123
17124# A C compiler.
17125LTCC=$lt_LTCC
17126
17127# A language-specific compiler.
17128CC=$lt_compiler_GCJ
17129
17130# Is the compiler the GNU C compiler?
17131with_gcc=$GCC_GCJ
17132
17133# An ERE matcher.
17134EGREP=$lt_EGREP
17135
17136# The linker used to build libraries.
17137LD=$lt_LD_GCJ
17138
17139# Whether we need hard or soft links.
17140LN_S=$lt_LN_S
17141
17142# A BSD-compatible nm program.
17143NM=$lt_NM
17144
17145# A symbol stripping program
17146STRIP=$STRIP
17147
17148# Used to examine libraries when file_magic_cmd begins "file"
17149MAGIC_CMD=$MAGIC_CMD
17150
17151# Used on cygwin: DLL creation program.
17152DLLTOOL="$DLLTOOL"
17153
17154# Used on cygwin: object dumper.
17155OBJDUMP="$OBJDUMP"
17156
17157# Used on cygwin: assembler.
17158AS="$AS"
17159
17160# The name of the directory that contains temporary libtool files.
17161objdir=$objdir
17162
17163# How to create reloadable object files.
17164reload_flag=$lt_reload_flag
17165reload_cmds=$lt_reload_cmds
17166
17167# How to pass a linker flag through the compiler.
17168wl=$lt_lt_prog_compiler_wl_GCJ
17169
17170# Object file suffix (normally "o").
17171objext="$ac_objext"
17172
17173# Old archive suffix (normally "a").
17174libext="$libext"
17175
17176# Shared library suffix (normally ".so").
17177shrext='$shrext'
17178
17179# Executable file suffix (normally "").
17180exeext="$exeext"
17181
17182# Additional compiler flags for building library objects.
17183pic_flag=$lt_lt_prog_compiler_pic_GCJ
17184pic_mode=$pic_mode
17185
17186# What is the maximum length of a command?
17187max_cmd_len=$lt_cv_sys_max_cmd_len
17188
17189# Does compiler simultaneously support -c and -o options?
17190compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17191
17192# Must we lock files when doing compilation ?
17193need_locks=$lt_need_locks
17194
17195# Do we need the lib prefix for modules?
17196need_lib_prefix=$need_lib_prefix
17197
17198# Do we need a version for libraries?
17199need_version=$need_version
17200
17201# Whether dlopen is supported.
17202dlopen_support=$enable_dlopen
17203
17204# Whether dlopen of programs is supported.
17205dlopen_self=$enable_dlopen_self
17206
17207# Whether dlopen of statically linked programs is supported.
17208dlopen_self_static=$enable_dlopen_self_static
17209
17210# Compiler flag to prevent dynamic linking.
17211link_static_flag=$lt_lt_prog_compiler_static_GCJ
17212
17213# Compiler flag to turn off builtin functions.
17214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17215
17216# Compiler flag to allow reflexive dlopens.
17217export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17218
17219# Compiler flag to generate shared objects directly from archives.
17220whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17221
17222# Compiler flag to generate thread-safe objects.
17223thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17224
17225# Library versioning type.
17226version_type=$version_type
17227
17228# Format of library name prefix.
17229libname_spec=$lt_libname_spec
17230
17231# List of archive names. First name is the real one, the rest are links.
17232# The last name is the one that the linker finds with -lNAME.
17233library_names_spec=$lt_library_names_spec
17234
17235# The coded name of the library, if different from the real name.
17236soname_spec=$lt_soname_spec
17237
17238# Commands used to build and install an old-style archive.
17239RANLIB=$lt_RANLIB
17240old_archive_cmds=$lt_old_archive_cmds_GCJ
17241old_postinstall_cmds=$lt_old_postinstall_cmds
17242old_postuninstall_cmds=$lt_old_postuninstall_cmds
17243
17244# Create an old-style archive from a shared archive.
17245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17246
17247# Create a temporary old-style archive to link instead of a shared archive.
17248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17249
17250# Commands used to build and install a shared archive.
17251archive_cmds=$lt_archive_cmds_GCJ
17252archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17253postinstall_cmds=$lt_postinstall_cmds
17254postuninstall_cmds=$lt_postuninstall_cmds
17255
17256# Commands used to build a loadable module (assumed same as above if empty)
17257module_cmds=$lt_module_cmds_GCJ
17258module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17259
17260# Commands to strip libraries.
17261old_striplib=$lt_old_striplib
17262striplib=$lt_striplib
17263
17264# Dependencies to place before the objects being linked to create a
17265# shared library.
17266predep_objects=$lt_predep_objects_GCJ
17267
17268# Dependencies to place after the objects being linked to create a
17269# shared library.
17270postdep_objects=$lt_postdep_objects_GCJ
17271
17272# Dependencies to place before the objects being linked to create a
17273# shared library.
17274predeps=$lt_predeps_GCJ
17275
17276# Dependencies to place after the objects being linked to create a
17277# shared library.
17278postdeps=$lt_postdeps_GCJ
17279
17280# The library search path used internally by the compiler when linking
17281# a shared library.
17282compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17283
17284# Method to check whether dependent libraries are shared objects.
17285deplibs_check_method=$lt_deplibs_check_method
17286
17287# Command to use when deplibs_check_method == file_magic.
17288file_magic_cmd=$lt_file_magic_cmd
17289
17290# Flag that allows shared libraries with undefined symbols to be built.
17291allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17292
17293# Flag that forces no undefined symbols.
17294no_undefined_flag=$lt_no_undefined_flag_GCJ
17295
17296# Commands used to finish a libtool library installation in a directory.
17297finish_cmds=$lt_finish_cmds
17298
17299# Same as above, but a single script fragment to be evaled but not shown.
17300finish_eval=$lt_finish_eval
17301
17302# Take the output of nm and produce a listing of raw symbols and C names.
17303global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17304
17305# Transform the output of nm in a proper C declaration
17306global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17307
17308# Transform the output of nm in a C name address pair
17309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17310
17311# This is the shared library runtime path variable.
17312runpath_var=$runpath_var
17313
17314# This is the shared library path variable.
17315shlibpath_var=$shlibpath_var
17316
17317# Is shlibpath searched before the hard-coded library search path?
17318shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17319
17320# How to hardcode a shared library path into an executable.
17321hardcode_action=$hardcode_action_GCJ
17322
17323# Whether we should hardcode library paths into libraries.
17324hardcode_into_libs=$hardcode_into_libs
17325
17326# Flag to hardcode \$libdir into a binary during linking.
17327# This must work even if \$libdir does not exist.
17328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17329
17330# If ld is used when linking, flag to hardcode \$libdir into
17331# a binary during linking. This must work even if \$libdir does
17332# not exist.
17333hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17334
17335# Whether we need a single -rpath flag with a separated argument.
17336hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17337
17338# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17339# resulting binary.
17340hardcode_direct=$hardcode_direct_GCJ
17341
17342# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17343# resulting binary.
17344hardcode_minus_L=$hardcode_minus_L_GCJ
17345
17346# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17347# the resulting binary.
17348hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17349
17350# Set to yes if building a shared library automatically hardcodes DIR into the library
17351# and all subsequent libraries and executables linked against it.
17352hardcode_automatic=$hardcode_automatic_GCJ
17353
17354# Variables whose values should be saved in libtool wrapper scripts and
17355# restored at relink time.
17356variables_saved_for_relink="$variables_saved_for_relink"
17357
17358# Whether libtool must link a program against all its dependency libraries.
17359link_all_deplibs=$link_all_deplibs_GCJ
17360
17361# Compile-time system search path for libraries
17362sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17363
17364# Run-time system search path for libraries
17365sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17366
17367# Fix the shell variable \$srcfile for the compiler.
17368fix_srcfile_path="$fix_srcfile_path_GCJ"
17369
17370# Set to yes if exported symbols are required.
17371always_export_symbols=$always_export_symbols_GCJ
17372
17373# The commands to list exported symbols.
17374export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17375
17376# The commands to extract the exported symbol list from a shared archive.
17377extract_expsyms_cmds=$lt_extract_expsyms_cmds
17378
17379# Symbols that should not be listed in the preloaded symbols.
17380exclude_expsyms=$lt_exclude_expsyms_GCJ
17381
17382# Symbols that must always be exported.
17383include_expsyms=$lt_include_expsyms_GCJ
17384
17385# ### END LIBTOOL TAG CONFIG: $tagname
17386
17387__EOF__
17388
17389
17390else
17391 # If there is no Makefile yet, we rely on a make rule to execute
17392 # `config.status --recheck' to rerun these tests and create the
17393 # libtool script then.
17394 test -f Makefile && make "$ltmain"
17395fi
17396
17397
17398ac_ext=c
17399ac_cpp='$CPP $CPPFLAGS'
17400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402ac_compiler_gnu=$ac_cv_c_compiler_gnu
17403
17404CC="$lt_save_CC"
17405
17406 else
17407 tagname=""
17408 fi
17409 ;;
17410
17411 RC)
17412
17413
17414
17415# Source file extension for RC test sources.
17416ac_ext=rc
17417
17418# Object file extension for compiled RC test sources.
17419objext=o
17420objext_RC=$objext
17421
17422# Code to be used in simple compile tests
17423lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17424
17425# Code to be used in simple link tests
17426lt_simple_link_test_code="$lt_simple_compile_test_code"
17427
17428# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17429
17430# If no C compiler was specified, use CC.
17431LTCC=${LTCC-"$CC"}
17432
17433# Allow CC to be a program name with arguments.
17434compiler=$CC
17435
17436
17437# Allow CC to be a program name with arguments.
17438lt_save_CC="$CC"
17439CC=${RC-"windres"}
17440compiler=$CC
17441compiler_RC=$CC
17442lt_cv_prog_compiler_c_o_RC=yes
17443
17444# The else clause should only fire when bootstrapping the
17445# libtool distribution, otherwise you forgot to ship ltmain.sh
17446# with your package, and you will get complaints that there are
17447# no rules to generate ltmain.sh.
17448if test -f "$ltmain"; then
17449 # See if we are running on zsh, and set the options which allow our commands through
17450 # without removal of \ escapes.
17451 if test -n "${ZSH_VERSION+set}" ; then
17452 setopt NO_GLOB_SUBST
17453 fi
17454 # Now quote all the things that may contain metacharacters while being
17455 # careful not to overquote the AC_SUBSTed values. We take copies of the
17456 # variables and quote the copies for generation of the libtool script.
17457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17460 deplibs_check_method reload_flag reload_cmds need_locks \
17461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17462 lt_cv_sys_global_symbol_to_c_name_address \
17463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17464 old_postinstall_cmds old_postuninstall_cmds \
17465 compiler_RC \
17466 CC_RC \
17467 LD_RC \
17468 lt_prog_compiler_wl_RC \
17469 lt_prog_compiler_pic_RC \
17470 lt_prog_compiler_static_RC \
17471 lt_prog_compiler_no_builtin_flag_RC \
17472 export_dynamic_flag_spec_RC \
17473 thread_safe_flag_spec_RC \
17474 whole_archive_flag_spec_RC \
17475 enable_shared_with_static_runtimes_RC \
17476 old_archive_cmds_RC \
17477 old_archive_from_new_cmds_RC \
17478 predep_objects_RC \
17479 postdep_objects_RC \
17480 predeps_RC \
17481 postdeps_RC \
17482 compiler_lib_search_path_RC \
17483 archive_cmds_RC \
17484 archive_expsym_cmds_RC \
17485 postinstall_cmds_RC \
17486 postuninstall_cmds_RC \
17487 old_archive_from_expsyms_cmds_RC \
17488 allow_undefined_flag_RC \
17489 no_undefined_flag_RC \
17490 export_symbols_cmds_RC \
17491 hardcode_libdir_flag_spec_RC \
17492 hardcode_libdir_flag_spec_ld_RC \
17493 hardcode_libdir_separator_RC \
17494 hardcode_automatic_RC \
17495 module_cmds_RC \
17496 module_expsym_cmds_RC \
17497 lt_cv_prog_compiler_c_o_RC \
17498 exclude_expsyms_RC \
17499 include_expsyms_RC; do
17500
17501 case $var in
17502 old_archive_cmds_RC | \
17503 old_archive_from_new_cmds_RC | \
17504 archive_cmds_RC | \
17505 archive_expsym_cmds_RC | \
17506 module_cmds_RC | \
17507 module_expsym_cmds_RC | \
17508 old_archive_from_expsyms_cmds_RC | \
17509 export_symbols_cmds_RC | \
17510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17511 postinstall_cmds | postuninstall_cmds | \
17512 old_postinstall_cmds | old_postuninstall_cmds | \
17513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17514 # Double-quote double-evaled strings.
17515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17516 ;;
17517 *)
17518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17519 ;;
17520 esac
17521 done
17522
17523 case $lt_echo in
17524 *'\$0 --fallback-echo"')
17525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17526 ;;
17527 esac
17528
17529cfgfile="$ofile"
17530
17531 cat <<__EOF__ >> "$cfgfile"
17532# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17533
17534# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17535
17536# Shell to use when invoking shell scripts.
17537SHELL=$lt_SHELL
17538
17539# Whether or not to build shared libraries.
17540build_libtool_libs=$enable_shared
17541
17542# Whether or not to build static libraries.
17543build_old_libs=$enable_static
17544
17545# Whether or not to add -lc for building shared libraries.
17546build_libtool_need_lc=$archive_cmds_need_lc_RC
17547
17548# Whether or not to disallow shared libs when runtime libs are static
17549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17550
17551# Whether or not to optimize for fast installation.
17552fast_install=$enable_fast_install
17553
17554# The host system.
17555host_alias=$host_alias
17556host=$host
17557
17558# An echo program that does not interpret backslashes.
17559echo=$lt_echo
17560
17561# The archiver.
17562AR=$lt_AR
17563AR_FLAGS=$lt_AR_FLAGS
17564
17565# A C compiler.
17566LTCC=$lt_LTCC
17567
17568# A language-specific compiler.
17569CC=$lt_compiler_RC
17570
17571# Is the compiler the GNU C compiler?
17572with_gcc=$GCC_RC
17573
17574# An ERE matcher.
17575EGREP=$lt_EGREP
17576
17577# The linker used to build libraries.
17578LD=$lt_LD_RC
17579
17580# Whether we need hard or soft links.
17581LN_S=$lt_LN_S
17582
17583# A BSD-compatible nm program.
17584NM=$lt_NM
17585
17586# A symbol stripping program
17587STRIP=$STRIP
17588
17589# Used to examine libraries when file_magic_cmd begins "file"
17590MAGIC_CMD=$MAGIC_CMD
17591
17592# Used on cygwin: DLL creation program.
17593DLLTOOL="$DLLTOOL"
17594
17595# Used on cygwin: object dumper.
17596OBJDUMP="$OBJDUMP"
17597
17598# Used on cygwin: assembler.
17599AS="$AS"
17600
17601# The name of the directory that contains temporary libtool files.
17602objdir=$objdir
17603
17604# How to create reloadable object files.
17605reload_flag=$lt_reload_flag
17606reload_cmds=$lt_reload_cmds
17607
17608# How to pass a linker flag through the compiler.
17609wl=$lt_lt_prog_compiler_wl_RC
17610
17611# Object file suffix (normally "o").
17612objext="$ac_objext"
17613
17614# Old archive suffix (normally "a").
17615libext="$libext"
17616
17617# Shared library suffix (normally ".so").
17618shrext='$shrext'
17619
17620# Executable file suffix (normally "").
17621exeext="$exeext"
17622
17623# Additional compiler flags for building library objects.
17624pic_flag=$lt_lt_prog_compiler_pic_RC
17625pic_mode=$pic_mode
17626
17627# What is the maximum length of a command?
17628max_cmd_len=$lt_cv_sys_max_cmd_len
17629
17630# Does compiler simultaneously support -c and -o options?
17631compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17632
17633# Must we lock files when doing compilation ?
17634need_locks=$lt_need_locks
17635
17636# Do we need the lib prefix for modules?
17637need_lib_prefix=$need_lib_prefix
17638
17639# Do we need a version for libraries?
17640need_version=$need_version
17641
17642# Whether dlopen is supported.
17643dlopen_support=$enable_dlopen
17644
17645# Whether dlopen of programs is supported.
17646dlopen_self=$enable_dlopen_self
17647
17648# Whether dlopen of statically linked programs is supported.
17649dlopen_self_static=$enable_dlopen_self_static
17650
17651# Compiler flag to prevent dynamic linking.
17652link_static_flag=$lt_lt_prog_compiler_static_RC
17653
17654# Compiler flag to turn off builtin functions.
17655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17656
17657# Compiler flag to allow reflexive dlopens.
17658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17659
17660# Compiler flag to generate shared objects directly from archives.
17661whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17662
17663# Compiler flag to generate thread-safe objects.
17664thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17665
17666# Library versioning type.
17667version_type=$version_type
17668
17669# Format of library name prefix.
17670libname_spec=$lt_libname_spec
17671
17672# List of archive names. First name is the real one, the rest are links.
17673# The last name is the one that the linker finds with -lNAME.
17674library_names_spec=$lt_library_names_spec
17675
17676# The coded name of the library, if different from the real name.
17677soname_spec=$lt_soname_spec
17678
17679# Commands used to build and install an old-style archive.
17680RANLIB=$lt_RANLIB
17681old_archive_cmds=$lt_old_archive_cmds_RC
17682old_postinstall_cmds=$lt_old_postinstall_cmds
17683old_postuninstall_cmds=$lt_old_postuninstall_cmds
17684
17685# Create an old-style archive from a shared archive.
17686old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17687
17688# Create a temporary old-style archive to link instead of a shared archive.
17689old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17690
17691# Commands used to build and install a shared archive.
17692archive_cmds=$lt_archive_cmds_RC
17693archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17694postinstall_cmds=$lt_postinstall_cmds
17695postuninstall_cmds=$lt_postuninstall_cmds
17696
17697# Commands used to build a loadable module (assumed same as above if empty)
17698module_cmds=$lt_module_cmds_RC
17699module_expsym_cmds=$lt_module_expsym_cmds_RC
17700
17701# Commands to strip libraries.
17702old_striplib=$lt_old_striplib
17703striplib=$lt_striplib
17704
17705# Dependencies to place before the objects being linked to create a
17706# shared library.
17707predep_objects=$lt_predep_objects_RC
17708
17709# Dependencies to place after the objects being linked to create a
17710# shared library.
17711postdep_objects=$lt_postdep_objects_RC
17712
17713# Dependencies to place before the objects being linked to create a
17714# shared library.
17715predeps=$lt_predeps_RC
17716
17717# Dependencies to place after the objects being linked to create a
17718# shared library.
17719postdeps=$lt_postdeps_RC
17720
17721# The library search path used internally by the compiler when linking
17722# a shared library.
17723compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17724
17725# Method to check whether dependent libraries are shared objects.
17726deplibs_check_method=$lt_deplibs_check_method
17727
17728# Command to use when deplibs_check_method == file_magic.
17729file_magic_cmd=$lt_file_magic_cmd
17730
17731# Flag that allows shared libraries with undefined symbols to be built.
17732allow_undefined_flag=$lt_allow_undefined_flag_RC
17733
17734# Flag that forces no undefined symbols.
17735no_undefined_flag=$lt_no_undefined_flag_RC
17736
17737# Commands used to finish a libtool library installation in a directory.
17738finish_cmds=$lt_finish_cmds
17739
17740# Same as above, but a single script fragment to be evaled but not shown.
17741finish_eval=$lt_finish_eval
17742
17743# Take the output of nm and produce a listing of raw symbols and C names.
17744global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17745
17746# Transform the output of nm in a proper C declaration
17747global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17748
17749# Transform the output of nm in a C name address pair
17750global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17751
17752# This is the shared library runtime path variable.
17753runpath_var=$runpath_var
17754
17755# This is the shared library path variable.
17756shlibpath_var=$shlibpath_var
17757
17758# Is shlibpath searched before the hard-coded library search path?
17759shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17760
17761# How to hardcode a shared library path into an executable.
17762hardcode_action=$hardcode_action_RC
17763
17764# Whether we should hardcode library paths into libraries.
17765hardcode_into_libs=$hardcode_into_libs
17766
17767# Flag to hardcode \$libdir into a binary during linking.
17768# This must work even if \$libdir does not exist.
17769hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17770
17771# If ld is used when linking, flag to hardcode \$libdir into
17772# a binary during linking. This must work even if \$libdir does
17773# not exist.
17774hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17775
17776# Whether we need a single -rpath flag with a separated argument.
17777hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17778
17779# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17780# resulting binary.
17781hardcode_direct=$hardcode_direct_RC
17782
17783# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17784# resulting binary.
17785hardcode_minus_L=$hardcode_minus_L_RC
17786
17787# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17788# the resulting binary.
17789hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17790
17791# Set to yes if building a shared library automatically hardcodes DIR into the library
17792# and all subsequent libraries and executables linked against it.
17793hardcode_automatic=$hardcode_automatic_RC
17794
17795# Variables whose values should be saved in libtool wrapper scripts and
17796# restored at relink time.
17797variables_saved_for_relink="$variables_saved_for_relink"
17798
17799# Whether libtool must link a program against all its dependency libraries.
17800link_all_deplibs=$link_all_deplibs_RC
17801
17802# Compile-time system search path for libraries
17803sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17804
17805# Run-time system search path for libraries
17806sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17807
17808# Fix the shell variable \$srcfile for the compiler.
17809fix_srcfile_path="$fix_srcfile_path_RC"
17810
17811# Set to yes if exported symbols are required.
17812always_export_symbols=$always_export_symbols_RC
17813
17814# The commands to list exported symbols.
17815export_symbols_cmds=$lt_export_symbols_cmds_RC
17816
17817# The commands to extract the exported symbol list from a shared archive.
17818extract_expsyms_cmds=$lt_extract_expsyms_cmds
17819
17820# Symbols that should not be listed in the preloaded symbols.
17821exclude_expsyms=$lt_exclude_expsyms_RC
17822
17823# Symbols that must always be exported.
17824include_expsyms=$lt_include_expsyms_RC
17825
17826# ### END LIBTOOL TAG CONFIG: $tagname
17827
17828__EOF__
17829
17830
17831else
17832 # If there is no Makefile yet, we rely on a make rule to execute
17833 # `config.status --recheck' to rerun these tests and create the
17834 # libtool script then.
17835 test -f Makefile && make "$ltmain"
17836fi
17837
17838
17839ac_ext=c
17840ac_cpp='$CPP $CPPFLAGS'
17841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843ac_compiler_gnu=$ac_cv_c_compiler_gnu
17844
17845CC="$lt_save_CC"
17846
17847 ;;
17848
17849 *)
17850 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17851echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17852 { (exit 1); exit 1; }; }
17853 ;;
17854 esac
17855
17856 # Append the new tag name to the list of available tags.
17857 if test -n "$tagname" ; then
17858 available_tags="$available_tags $tagname"
17859 fi
17860 fi
17861 done
17862 IFS="$lt_save_ifs"
17863
17864 # Now substitute the updated list of available tags.
17865 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17866 mv "${ofile}T" "$ofile"
17867 chmod +x "$ofile"
17868 else
17869 rm -f "${ofile}T"
17870 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17871echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17872 { (exit 1); exit 1; }; }
17873 fi
17874fi
John Criswell7a73b802003-06-30 21:59:07 +000017875
17876
17877
17878# This can be used to rebuild libtool when needed
17879LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17880
17881# Always use our own libtool.
17882LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17883
17884# Prevent multiple expansion
17885
17886
17887
John Criswell47fdd832003-07-14 16:52:07 +000017888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
John Criswell7a73b802003-06-30 21:59:07 +000017906# Extract the first word of "ar", so it can be a program name with args.
17907set dummy ar; ac_word=$2
17908echo "$as_me:$LINENO: checking for $ac_word" >&5
17909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17910if test "${ac_cv_path_AR+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912else
17913 case $AR in
17914 [\\/]* | ?:[\\/]*)
17915 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17916 ;;
17917 *)
17918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919for as_dir in $PATH
17920do
17921 IFS=$as_save_IFS
17922 test -z "$as_dir" && as_dir=.
17923 for ac_exec_ext in '' $ac_executable_extensions; do
17924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17925 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17927 break 2
17928 fi
17929done
17930done
17931
17932 ;;
17933esac
17934fi
17935AR=$ac_cv_path_AR
17936
17937if test -n "$AR"; then
17938 echo "$as_me:$LINENO: result: $AR" >&5
17939echo "${ECHO_T}$AR" >&6
17940else
17941 echo "$as_me:$LINENO: result: no" >&5
17942echo "${ECHO_T}no" >&6
17943fi
17944
17945# Extract the first word of "sed", so it can be a program name with args.
17946set dummy sed; ac_word=$2
17947echo "$as_me:$LINENO: checking for $ac_word" >&5
17948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17949if test "${ac_cv_path_SED+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951else
17952 case $SED in
17953 [\\/]* | ?:[\\/]*)
17954 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17955 ;;
17956 *)
17957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958for as_dir in $PATH
17959do
17960 IFS=$as_save_IFS
17961 test -z "$as_dir" && as_dir=.
17962 for ac_exec_ext in '' $ac_executable_extensions; do
17963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17964 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17966 break 2
17967 fi
17968done
17969done
17970
17971 ;;
17972esac
17973fi
17974SED=$ac_cv_path_SED
17975
17976if test -n "$SED"; then
17977 echo "$as_me:$LINENO: result: $SED" >&5
17978echo "${ECHO_T}$SED" >&6
17979else
17980 echo "$as_me:$LINENO: result: no" >&5
17981echo "${ECHO_T}no" >&6
17982fi
17983
17984# Extract the first word of "rm", so it can be a program name with args.
17985set dummy rm; ac_word=$2
17986echo "$as_me:$LINENO: checking for $ac_word" >&5
17987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17988if test "${ac_cv_path_RM+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991 case $RM in
17992 [\\/]* | ?:[\\/]*)
17993 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17994 ;;
17995 *)
17996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17997for as_dir in $PATH
17998do
17999 IFS=$as_save_IFS
18000 test -z "$as_dir" && as_dir=.
18001 for ac_exec_ext in '' $ac_executable_extensions; do
18002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18003 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18005 break 2
18006 fi
18007done
18008done
18009
18010 ;;
18011esac
18012fi
18013RM=$ac_cv_path_RM
18014
18015if test -n "$RM"; then
18016 echo "$as_me:$LINENO: result: $RM" >&5
18017echo "${ECHO_T}$RM" >&6
18018else
18019 echo "$as_me:$LINENO: result: no" >&5
18020echo "${ECHO_T}no" >&6
18021fi
18022
18023# Extract the first word of "echo", so it can be a program name with args.
18024set dummy echo; ac_word=$2
18025echo "$as_me:$LINENO: checking for $ac_word" >&5
18026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18027if test "${ac_cv_path_ECHO+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
18030 case $ECHO in
18031 [\\/]* | ?:[\\/]*)
18032 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18033 ;;
18034 *)
18035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18036for as_dir in $PATH
18037do
18038 IFS=$as_save_IFS
18039 test -z "$as_dir" && as_dir=.
18040 for ac_exec_ext in '' $ac_executable_extensions; do
18041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18042 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18044 break 2
18045 fi
18046done
18047done
18048
18049 ;;
18050esac
18051fi
18052ECHO=$ac_cv_path_ECHO
18053
18054if test -n "$ECHO"; then
18055 echo "$as_me:$LINENO: result: $ECHO" >&5
18056echo "${ECHO_T}$ECHO" >&6
18057else
18058 echo "$as_me:$LINENO: result: no" >&5
18059echo "${ECHO_T}no" >&6
18060fi
18061
18062# Extract the first word of "mkdir", so it can be a program name with args.
18063set dummy mkdir; ac_word=$2
18064echo "$as_me:$LINENO: checking for $ac_word" >&5
18065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18066if test "${ac_cv_path_MKDIR+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068else
18069 case $MKDIR in
18070 [\\/]* | ?:[\\/]*)
18071 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18072 ;;
18073 *)
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075for as_dir in $PATH
18076do
18077 IFS=$as_save_IFS
18078 test -z "$as_dir" && as_dir=.
18079 for ac_exec_ext in '' $ac_executable_extensions; do
18080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18083 break 2
18084 fi
18085done
18086done
18087
18088 ;;
18089esac
18090fi
18091MKDIR=$ac_cv_path_MKDIR
18092
18093if test -n "$MKDIR"; then
18094 echo "$as_me:$LINENO: result: $MKDIR" >&5
18095echo "${ECHO_T}$MKDIR" >&6
18096else
18097 echo "$as_me:$LINENO: result: no" >&5
18098echo "${ECHO_T}no" >&6
18099fi
18100
18101# Extract the first word of "date", so it can be a program name with args.
18102set dummy date; ac_word=$2
18103echo "$as_me:$LINENO: checking for $ac_word" >&5
18104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18105if test "${ac_cv_path_DATE+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 case $DATE in
18109 [\\/]* | ?:[\\/]*)
18110 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18111 ;;
18112 *)
18113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114for as_dir in $PATH
18115do
18116 IFS=$as_save_IFS
18117 test -z "$as_dir" && as_dir=.
18118 for ac_exec_ext in '' $ac_executable_extensions; do
18119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18122 break 2
18123 fi
18124done
18125done
18126
18127 ;;
18128esac
18129fi
18130DATE=$ac_cv_path_DATE
18131
18132if test -n "$DATE"; then
18133 echo "$as_me:$LINENO: result: $DATE" >&5
18134echo "${ECHO_T}$DATE" >&6
18135else
18136 echo "$as_me:$LINENO: result: no" >&5
18137echo "${ECHO_T}no" >&6
18138fi
18139
18140# Extract the first word of "mv", so it can be a program name with args.
18141set dummy mv; ac_word=$2
18142echo "$as_me:$LINENO: checking for $ac_word" >&5
18143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18144if test "${ac_cv_path_MV+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147 case $MV in
18148 [\\/]* | ?:[\\/]*)
18149 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18150 ;;
18151 *)
18152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18153for as_dir in $PATH
18154do
18155 IFS=$as_save_IFS
18156 test -z "$as_dir" && as_dir=.
18157 for ac_exec_ext in '' $ac_executable_extensions; do
18158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18159 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18161 break 2
18162 fi
18163done
18164done
18165
18166 ;;
18167esac
18168fi
18169MV=$ac_cv_path_MV
18170
18171if test -n "$MV"; then
18172 echo "$as_me:$LINENO: result: $MV" >&5
18173echo "${ECHO_T}$MV" >&6
18174else
18175 echo "$as_me:$LINENO: result: no" >&5
18176echo "${ECHO_T}no" >&6
18177fi
18178
18179# Extract the first word of "dot", so it can be a program name with args.
18180set dummy dot; ac_word=$2
18181echo "$as_me:$LINENO: checking for $ac_word" >&5
18182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183if test "${ac_cv_path_DOT+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185else
18186 case $DOT in
18187 [\\/]* | ?:[\\/]*)
18188 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18189 ;;
18190 *)
18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192for as_dir in $PATH
18193do
18194 IFS=$as_save_IFS
18195 test -z "$as_dir" && as_dir=.
18196 for ac_exec_ext in '' $ac_executable_extensions; do
18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18200 break 2
18201 fi
18202done
18203done
18204
18205 ;;
18206esac
18207fi
18208DOT=$ac_cv_path_DOT
18209
18210if test -n "$DOT"; then
18211 echo "$as_me:$LINENO: result: $DOT" >&5
18212echo "${ECHO_T}$DOT" >&6
18213else
18214 echo "$as_me:$LINENO: result: no" >&5
18215echo "${ECHO_T}no" >&6
18216fi
18217
18218# Extract the first word of "etags", so it can be a program name with args.
18219set dummy etags; ac_word=$2
18220echo "$as_me:$LINENO: checking for $ac_word" >&5
18221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18222if test "${ac_cv_path_ETAGS+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 case $ETAGS in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231for as_dir in $PATH
18232do
18233 IFS=$as_save_IFS
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18237 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 break 2
18240 fi
18241done
18242done
18243
18244 ;;
18245esac
18246fi
18247ETAGS=$ac_cv_path_ETAGS
18248
18249if test -n "$ETAGS"; then
18250 echo "$as_me:$LINENO: result: $ETAGS" >&5
18251echo "${ECHO_T}$ETAGS" >&6
18252else
18253 echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6
18255fi
18256
18257# Extract the first word of "purify", so it can be a program name with args.
18258set dummy purify; ac_word=$2
18259echo "$as_me:$LINENO: checking for $ac_word" >&5
18260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18261if test "${ac_cv_path_PURIFY+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264 case $PURIFY in
18265 [\\/]* | ?:[\\/]*)
18266 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18267 ;;
18268 *)
18269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270for as_dir in $PATH
18271do
18272 IFS=$as_save_IFS
18273 test -z "$as_dir" && as_dir=.
18274 for ac_exec_ext in '' $ac_executable_extensions; do
18275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18278 break 2
18279 fi
18280done
18281done
18282
18283 ;;
18284esac
18285fi
18286PURIFY=$ac_cv_path_PURIFY
18287
18288if test -n "$PURIFY"; then
18289 echo "$as_me:$LINENO: result: $PURIFY" >&5
18290echo "${ECHO_T}$PURIFY" >&6
18291else
18292 echo "$as_me:$LINENO: result: no" >&5
18293echo "${ECHO_T}no" >&6
18294fi
18295
18296
18297
18298
18299
18300
18301echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18302echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18303if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305else
18306 ac_check_lib_save_LIBS=$LIBS
18307LIBS="-lelf $LIBS"
18308cat >conftest.$ac_ext <<_ACEOF
18309#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018315
18316/* Override any gcc2 internal prototype to avoid an error. */
18317#ifdef __cplusplus
18318extern "C"
18319#endif
18320/* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018323int
18324main ()
18325{
18326elf_begin ();
18327 ;
18328 return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext conftest$ac_exeext
18332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_lib_elf_elf_begin=yes
18344else
18345 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018346sed 's/^/| /' conftest.$ac_ext >&5
18347
John Criswell7a73b802003-06-30 21:59:07 +000018348ac_cv_lib_elf_elf_begin=no
18349fi
18350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18351LIBS=$ac_check_lib_save_LIBS
18352fi
18353echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18354echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18355if test $ac_cv_lib_elf_elf_begin = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357#define HAVE_LIBELF 1
18358_ACEOF
18359
18360 LIBS="-lelf $LIBS"
18361
18362fi
18363
18364
18365echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18366echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18367if test "${ac_cv_search_dlopen+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369else
18370 ac_func_search_save_LIBS=$LIBS
18371ac_cv_search_dlopen=no
18372cat >conftest.$ac_ext <<_ACEOF
18373#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018374/* confdefs.h. */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018379
18380/* Override any gcc2 internal prototype to avoid an error. */
18381#ifdef __cplusplus
18382extern "C"
18383#endif
18384/* We use char because int might match the return type of a gcc2
18385 builtin and then its argument prototype would still apply. */
18386char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018387int
18388main ()
18389{
18390dlopen ();
18391 ;
18392 return 0;
18393}
18394_ACEOF
18395rm -f conftest.$ac_objext conftest$ac_exeext
18396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18397 (eval $ac_link) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_search_dlopen="none required"
18408else
18409 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018410sed 's/^/| /' conftest.$ac_ext >&5
18411
John Criswell7a73b802003-06-30 21:59:07 +000018412fi
18413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18414if test "$ac_cv_search_dlopen" = no; then
18415 for ac_lib in dl; do
18416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18417 cat >conftest.$ac_ext <<_ACEOF
18418#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018424
18425/* Override any gcc2 internal prototype to avoid an error. */
18426#ifdef __cplusplus
18427extern "C"
18428#endif
18429/* We use char because int might match the return type of a gcc2
18430 builtin and then its argument prototype would still apply. */
18431char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018432int
18433main ()
18434{
18435dlopen ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
18452 ac_cv_search_dlopen="-l$ac_lib"
18453break
18454else
18455 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018456sed 's/^/| /' conftest.$ac_ext >&5
18457
John Criswell7a73b802003-06-30 21:59:07 +000018458fi
18459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18460 done
18461fi
18462LIBS=$ac_func_search_save_LIBS
18463fi
18464echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18465echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18466if test "$ac_cv_search_dlopen" != no; then
18467 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18468
18469else
18470 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18471echo "$as_me: error: dlopen() required but not found" >&2;}
18472 { (exit 1); exit 1; }; }
18473fi
18474
18475
18476echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18477echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18478if test "${ac_cv_search_mallinfo+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 ac_func_search_save_LIBS=$LIBS
18482ac_cv_search_mallinfo=no
18483cat >conftest.$ac_ext <<_ACEOF
18484#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018485/* confdefs.h. */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018490
18491/* Override any gcc2 internal prototype to avoid an error. */
18492#ifdef __cplusplus
18493extern "C"
18494#endif
18495/* We use char because int might match the return type of a gcc2
18496 builtin and then its argument prototype would still apply. */
18497char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018498int
18499main ()
18500{
18501mallinfo ();
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506rm -f conftest.$ac_objext conftest$ac_exeext
18507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_search_mallinfo="none required"
18519else
18520 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018521sed 's/^/| /' conftest.$ac_ext >&5
18522
John Criswell7a73b802003-06-30 21:59:07 +000018523fi
18524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18525if test "$ac_cv_search_mallinfo" = no; then
18526 for ac_lib in malloc; do
18527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18528 cat >conftest.$ac_ext <<_ACEOF
18529#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018535
18536/* Override any gcc2 internal prototype to avoid an error. */
18537#ifdef __cplusplus
18538extern "C"
18539#endif
18540/* We use char because int might match the return type of a gcc2
18541 builtin and then its argument prototype would still apply. */
18542char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018543int
18544main ()
18545{
18546mallinfo ();
18547 ;
18548 return 0;
18549}
18550_ACEOF
18551rm -f conftest.$ac_objext conftest$ac_exeext
18552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_search_mallinfo="-l$ac_lib"
18564break
18565else
18566 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018567sed 's/^/| /' conftest.$ac_ext >&5
18568
John Criswell7a73b802003-06-30 21:59:07 +000018569fi
18570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18571 done
18572fi
18573LIBS=$ac_func_search_save_LIBS
18574fi
18575echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18576echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18577if test "$ac_cv_search_mallinfo" != no; then
18578 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18579 cat >>confdefs.h <<\_ACEOF
18580#define HAVE_MALLINFO 1
18581_ACEOF
18582
18583fi
18584
18585
18586
18587echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18588echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18589if test "${ac_cv_header_stdc+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 cat >conftest.$ac_ext <<_ACEOF
18593#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018599#include <stdlib.h>
18600#include <stdarg.h>
18601#include <string.h>
18602#include <float.h>
18603
John Criswell392aaa32003-07-22 19:18:09 +000018604int
18605main ()
18606{
18607
18608 ;
18609 return 0;
18610}
John Criswell7a73b802003-06-30 21:59:07 +000018611_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000018612rm -f conftest.$ac_objext
18613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18614 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018615 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018617 (exit $ac_status); } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018624 ac_cv_header_stdc=yes
18625else
18626 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018630fi
John Criswell392aaa32003-07-22 19:18:09 +000018631rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018632
18633if test $ac_cv_header_stdc = yes; then
18634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18635 cat >conftest.$ac_ext <<_ACEOF
18636#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018642#include <string.h>
18643
18644_ACEOF
18645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018646 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018647 :
18648else
18649 ac_cv_header_stdc=no
18650fi
18651rm -f conftest*
18652
18653fi
18654
18655if test $ac_cv_header_stdc = yes; then
18656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18657 cat >conftest.$ac_ext <<_ACEOF
18658#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018664#include <stdlib.h>
18665
18666_ACEOF
18667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000018668 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018669 :
18670else
18671 ac_cv_header_stdc=no
18672fi
18673rm -f conftest*
18674
18675fi
18676
18677if test $ac_cv_header_stdc = yes; then
18678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18679 if test "$cross_compiling" = yes; then
18680 :
18681else
18682 cat >conftest.$ac_ext <<_ACEOF
18683#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018684/* confdefs.h. */
18685_ACEOF
18686cat confdefs.h >>conftest.$ac_ext
18687cat >>conftest.$ac_ext <<_ACEOF
18688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018689#include <ctype.h>
18690#if ((' ' & 0x0FF) == 0x020)
18691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18693#else
John Criswell392aaa32003-07-22 19:18:09 +000018694# define ISLOWER(c) \
18695 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018696 || ('j' <= (c) && (c) <= 'r') \
18697 || ('s' <= (c) && (c) <= 'z'))
18698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18699#endif
18700
18701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18702int
18703main ()
18704{
18705 int i;
18706 for (i = 0; i < 256; i++)
18707 if (XOR (islower (i), ISLOWER (i))
18708 || toupper (i) != TOUPPER (i))
18709 exit(2);
18710 exit (0);
18711}
18712_ACEOF
18713rm -f conftest$ac_exeext
18714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18715 (eval $ac_link) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 :
18725else
18726 echo "$as_me: program exited with status $ac_status" >&5
18727echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018728sed 's/^/| /' conftest.$ac_ext >&5
18729
John Criswell7a73b802003-06-30 21:59:07 +000018730( exit $ac_status )
18731ac_cv_header_stdc=no
18732fi
John Criswell392aaa32003-07-22 19:18:09 +000018733rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018734fi
18735fi
18736fi
18737echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18738echo "${ECHO_T}$ac_cv_header_stdc" >&6
18739if test $ac_cv_header_stdc = yes; then
18740
18741cat >>confdefs.h <<\_ACEOF
18742#define STDC_HEADERS 1
18743_ACEOF
18744
18745fi
18746
18747echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18748echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18749if test "${ac_cv_header_sys_wait_h+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752 cat >conftest.$ac_ext <<_ACEOF
18753#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018754/* confdefs.h. */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018759#include <sys/types.h>
18760#include <sys/wait.h>
18761#ifndef WEXITSTATUS
18762# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18763#endif
18764#ifndef WIFEXITED
18765# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18766#endif
18767
John Criswell7a73b802003-06-30 21:59:07 +000018768int
18769main ()
18770{
18771 int s;
18772 wait (&s);
18773 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext
18779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_header_sys_wait_h=yes
18791else
18792 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018793sed 's/^/| /' conftest.$ac_ext >&5
18794
John Criswell7a73b802003-06-30 21:59:07 +000018795ac_cv_header_sys_wait_h=no
18796fi
18797rm -f conftest.$ac_objext conftest.$ac_ext
18798fi
18799echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18800echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18801if test $ac_cv_header_sys_wait_h = yes; then
18802
18803cat >>confdefs.h <<\_ACEOF
18804#define HAVE_SYS_WAIT_H 1
18805_ACEOF
18806
18807fi
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18819do
18820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18821if eval "test \"\${$as_ac_Header+set}\" = set"; then
18822 echo "$as_me:$LINENO: checking for $ac_header" >&5
18823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18824if eval "test \"\${$as_ac_Header+set}\" = set"; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826fi
18827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18829else
18830 # Is the header compilable?
18831echo "$as_me:$LINENO: checking $ac_header usability" >&5
18832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18833cat >conftest.$ac_ext <<_ACEOF
18834#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018840$ac_includes_default
18841#include <$ac_header>
18842_ACEOF
18843rm -f conftest.$ac_objext
18844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_header_compiler=yes
18856else
18857 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018858sed 's/^/| /' conftest.$ac_ext >&5
18859
John Criswell7a73b802003-06-30 21:59:07 +000018860ac_header_compiler=no
18861fi
18862rm -f conftest.$ac_objext conftest.$ac_ext
18863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18864echo "${ECHO_T}$ac_header_compiler" >&6
18865
18866# Is the header present?
18867echo "$as_me:$LINENO: checking $ac_header presence" >&5
18868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18869cat >conftest.$ac_ext <<_ACEOF
18870#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018871/* confdefs.h. */
18872_ACEOF
18873cat confdefs.h >>conftest.$ac_ext
18874cat >>conftest.$ac_ext <<_ACEOF
18875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018876#include <$ac_header>
18877_ACEOF
18878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18880 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000018881 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } >/dev/null; then
18886 if test -s conftest.err; then
18887 ac_cpp_err=$ac_c_preproc_warn_flag
18888 else
18889 ac_cpp_err=
18890 fi
18891else
18892 ac_cpp_err=yes
18893fi
18894if test -z "$ac_cpp_err"; then
18895 ac_header_preproc=yes
18896else
18897 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018898sed 's/^/| /' conftest.$ac_ext >&5
18899
John Criswell7a73b802003-06-30 21:59:07 +000018900 ac_header_preproc=no
18901fi
18902rm -f conftest.err conftest.$ac_ext
18903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18904echo "${ECHO_T}$ac_header_preproc" >&6
18905
18906# So? What about this header?
18907case $ac_header_compiler:$ac_header_preproc in
18908 yes:no )
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18913 (
18914 cat <<\_ASBOX
18915## ------------------------------------ ##
18916## Report this to bug-autoconf@gnu.org. ##
18917## ------------------------------------ ##
18918_ASBOX
18919 ) |
18920 sed "s/^/$as_me: WARNING: /" >&2
18921 ;;
John Criswell7a73b802003-06-30 21:59:07 +000018922 no:yes )
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000018928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18929 (
18930 cat <<\_ASBOX
18931## ------------------------------------ ##
18932## Report this to bug-autoconf@gnu.org. ##
18933## ------------------------------------ ##
18934_ASBOX
18935 ) |
18936 sed "s/^/$as_me: WARNING: /" >&2
18937 ;;
John Criswell7a73b802003-06-30 21:59:07 +000018938esac
18939echo "$as_me:$LINENO: checking for $ac_header" >&5
18940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18941if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 eval "$as_ac_Header=$ac_header_preproc"
18945fi
18946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948
18949fi
18950if test `eval echo '${'$as_ac_Header'}'` = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18953_ACEOF
18954
18955fi
18956
18957done
18958
18959
18960
18961
18962
18963
18964for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18965do
18966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18967if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968 echo "$as_me:$LINENO: checking for $ac_header" >&5
18969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18970if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
18972fi
18973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18975else
18976 # Is the header compilable?
18977echo "$as_me:$LINENO: checking $ac_header usability" >&5
18978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18979cat >conftest.$ac_ext <<_ACEOF
18980#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018986$ac_includes_default
18987#include <$ac_header>
18988_ACEOF
18989rm -f conftest.$ac_objext
18990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_header_compiler=yes
19002else
19003 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019004sed 's/^/| /' conftest.$ac_ext >&5
19005
John Criswell7a73b802003-06-30 21:59:07 +000019006ac_header_compiler=no
19007fi
19008rm -f conftest.$ac_objext conftest.$ac_ext
19009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010echo "${ECHO_T}$ac_header_compiler" >&6
19011
19012# Is the header present?
19013echo "$as_me:$LINENO: checking $ac_header presence" >&5
19014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19015cat >conftest.$ac_ext <<_ACEOF
19016#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019022#include <$ac_header>
19023_ACEOF
19024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19026 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019027 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019028 rm -f conftest.er1
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } >/dev/null; then
19032 if test -s conftest.err; then
19033 ac_cpp_err=$ac_c_preproc_warn_flag
19034 else
19035 ac_cpp_err=
19036 fi
19037else
19038 ac_cpp_err=yes
19039fi
19040if test -z "$ac_cpp_err"; then
19041 ac_header_preproc=yes
19042else
19043 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019044sed 's/^/| /' conftest.$ac_ext >&5
19045
John Criswell7a73b802003-06-30 21:59:07 +000019046 ac_header_preproc=no
19047fi
19048rm -f conftest.err conftest.$ac_ext
19049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050echo "${ECHO_T}$ac_header_preproc" >&6
19051
19052# So? What about this header?
19053case $ac_header_compiler:$ac_header_preproc in
19054 yes:no )
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19059 (
19060 cat <<\_ASBOX
19061## ------------------------------------ ##
19062## Report this to bug-autoconf@gnu.org. ##
19063## ------------------------------------ ##
19064_ASBOX
19065 ) |
19066 sed "s/^/$as_me: WARNING: /" >&2
19067 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019068 no:yes )
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19075 (
19076 cat <<\_ASBOX
19077## ------------------------------------ ##
19078## Report this to bug-autoconf@gnu.org. ##
19079## ------------------------------------ ##
19080_ASBOX
19081 ) |
19082 sed "s/^/$as_me: WARNING: /" >&2
19083 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019084esac
19085echo "$as_me:$LINENO: checking for $ac_header" >&5
19086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19087if eval "test \"\${$as_ac_Header+set}\" = set"; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19089else
19090 eval "$as_ac_Header=$ac_header_preproc"
19091fi
19092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19094
19095fi
19096if test `eval echo '${'$as_ac_Header'}'` = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19099_ACEOF
19100
19101fi
19102
19103done
19104
19105
19106
19107
19108for ac_header in dlfcn.h link.h
19109do
19110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111if eval "test \"\${$as_ac_Header+set}\" = set"; then
19112 echo "$as_me:$LINENO: checking for $ac_header" >&5
19113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19114if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19116fi
19117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19119else
19120 # Is the header compilable?
19121echo "$as_me:$LINENO: checking $ac_header usability" >&5
19122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19123cat >conftest.$ac_ext <<_ACEOF
19124#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019130$ac_includes_default
19131#include <$ac_header>
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_header_compiler=yes
19146else
19147 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019148sed 's/^/| /' conftest.$ac_ext >&5
19149
John Criswell7a73b802003-06-30 21:59:07 +000019150ac_header_compiler=no
19151fi
19152rm -f conftest.$ac_objext conftest.$ac_ext
19153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19154echo "${ECHO_T}$ac_header_compiler" >&6
19155
19156# Is the header present?
19157echo "$as_me:$LINENO: checking $ac_header presence" >&5
19158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19159cat >conftest.$ac_ext <<_ACEOF
19160#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019161/* confdefs.h. */
19162_ACEOF
19163cat confdefs.h >>conftest.$ac_ext
19164cat >>conftest.$ac_ext <<_ACEOF
19165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019166#include <$ac_header>
19167_ACEOF
19168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19170 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019171 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } >/dev/null; then
19176 if test -s conftest.err; then
19177 ac_cpp_err=$ac_c_preproc_warn_flag
19178 else
19179 ac_cpp_err=
19180 fi
19181else
19182 ac_cpp_err=yes
19183fi
19184if test -z "$ac_cpp_err"; then
19185 ac_header_preproc=yes
19186else
19187 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019188sed 's/^/| /' conftest.$ac_ext >&5
19189
John Criswell7a73b802003-06-30 21:59:07 +000019190 ac_header_preproc=no
19191fi
19192rm -f conftest.err conftest.$ac_ext
19193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19194echo "${ECHO_T}$ac_header_preproc" >&6
19195
19196# So? What about this header?
19197case $ac_header_compiler:$ac_header_preproc in
19198 yes:no )
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19203 (
19204 cat <<\_ASBOX
19205## ------------------------------------ ##
19206## Report this to bug-autoconf@gnu.org. ##
19207## ------------------------------------ ##
19208_ASBOX
19209 ) |
19210 sed "s/^/$as_me: WARNING: /" >&2
19211 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019212 no:yes )
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19219 (
19220 cat <<\_ASBOX
19221## ------------------------------------ ##
19222## Report this to bug-autoconf@gnu.org. ##
19223## ------------------------------------ ##
19224_ASBOX
19225 ) |
19226 sed "s/^/$as_me: WARNING: /" >&2
19227 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019228esac
19229echo "$as_me:$LINENO: checking for $ac_header" >&5
19230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19231if eval "test \"\${$as_ac_Header+set}\" = set"; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 eval "$as_ac_Header=$ac_header_preproc"
19235fi
19236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19238
19239fi
19240if test `eval echo '${'$as_ac_Header'}'` = yes; then
19241 cat >>confdefs.h <<_ACEOF
19242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19243_ACEOF
19244
19245fi
19246
19247done
19248
19249
19250
John Criswell7a73b802003-06-30 21:59:07 +000019251echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19252echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19253if test "${ac_cv_c_const+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256 cat >conftest.$ac_ext <<_ACEOF
19257#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019263
John Criswell7a73b802003-06-30 21:59:07 +000019264int
19265main ()
19266{
19267/* FIXME: Include the comments suggested by Paul. */
19268#ifndef __cplusplus
19269 /* Ultrix mips cc rejects this. */
19270 typedef int charset[2];
19271 const charset x;
19272 /* SunOS 4.1.1 cc rejects this. */
19273 char const *const *ccp;
19274 char **p;
19275 /* NEC SVR4.0.2 mips cc rejects this. */
19276 struct point {int x, y;};
19277 static struct point const zero = {0,0};
19278 /* AIX XL C 1.02.0.0 rejects this.
19279 It does not let you subtract one const X* pointer from another in
19280 an arm of an if-expression whose if-part is not a constant
19281 expression */
19282 const char *g = "string";
19283 ccp = &g + (g ? g-g : 0);
19284 /* HPUX 7.0 cc rejects these. */
19285 ++ccp;
19286 p = (char**) ccp;
19287 ccp = (char const *const *) p;
19288 { /* SCO 3.2v4 cc rejects this. */
19289 char *t;
19290 char const *s = 0 ? (char *) 0 : (char const *) 0;
19291
19292 *t++ = 0;
19293 }
19294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19295 int x[] = {25, 17};
19296 const int *foo = &x[0];
19297 ++foo;
19298 }
19299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19300 typedef const int *iptr;
19301 iptr p = 0;
19302 ++p;
19303 }
19304 { /* AIX XL C 1.02.0.0 rejects this saying
19305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19306 struct s { int j; const int *ap[3]; };
19307 struct s *b; b->j = 5;
19308 }
19309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19310 const int foo = 10;
19311 }
19312#endif
19313
19314 ;
19315 return 0;
19316}
19317_ACEOF
19318rm -f conftest.$ac_objext
19319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -s conftest.$ac_objext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 ac_cv_c_const=yes
19331else
19332 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019333sed 's/^/| /' conftest.$ac_ext >&5
19334
John Criswell7a73b802003-06-30 21:59:07 +000019335ac_cv_c_const=no
19336fi
19337rm -f conftest.$ac_objext conftest.$ac_ext
19338fi
19339echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19340echo "${ECHO_T}$ac_cv_c_const" >&6
19341if test $ac_cv_c_const = no; then
19342
19343cat >>confdefs.h <<\_ACEOF
19344#define const
19345_ACEOF
19346
19347fi
19348
19349echo "$as_me:$LINENO: checking for inline" >&5
19350echo $ECHO_N "checking for inline... $ECHO_C" >&6
19351if test "${ac_cv_c_inline+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353else
19354 ac_cv_c_inline=no
19355for ac_kw in inline __inline__ __inline; do
19356 cat >conftest.$ac_ext <<_ACEOF
19357#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019363#ifndef __cplusplus
John Criswell392aaa32003-07-22 19:18:09 +000019364typedef int foo_t;
19365static $ac_kw foo_t static_foo () {return 0; }
19366$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019367#endif
19368
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_cv_c_inline=$ac_kw; break
19383else
19384 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019385sed 's/^/| /' conftest.$ac_ext >&5
19386
John Criswell7a73b802003-06-30 21:59:07 +000019387fi
19388rm -f conftest.$ac_objext conftest.$ac_ext
19389done
19390
19391fi
19392echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19393echo "${ECHO_T}$ac_cv_c_inline" >&6
19394case $ac_cv_c_inline in
19395 inline | yes) ;;
19396 no)
19397cat >>confdefs.h <<\_ACEOF
19398#define inline
19399_ACEOF
19400 ;;
19401 *) cat >>confdefs.h <<_ACEOF
19402#define inline $ac_cv_c_inline
19403_ACEOF
19404 ;;
19405esac
19406
19407
19408echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19409echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19410if test "${ac_cv_c_bigendian+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412else
19413 # See if sys/param.h defines the BYTE_ORDER macro.
19414cat >conftest.$ac_ext <<_ACEOF
19415#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019416/* confdefs.h. */
19417_ACEOF
19418cat confdefs.h >>conftest.$ac_ext
19419cat >>conftest.$ac_ext <<_ACEOF
19420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019421#include <sys/types.h>
19422#include <sys/param.h>
19423
John Criswell7a73b802003-06-30 21:59:07 +000019424int
19425main ()
19426{
19427#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19428 bogus endian macros
19429#endif
19430
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext
19436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437 (eval $ac_compile) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 # It does; now see whether it defined to BIG_ENDIAN or not.
19448cat >conftest.$ac_ext <<_ACEOF
19449#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019450/* confdefs.h. */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019455#include <sys/types.h>
19456#include <sys/param.h>
19457
John Criswell7a73b802003-06-30 21:59:07 +000019458int
19459main ()
19460{
19461#if BYTE_ORDER != BIG_ENDIAN
19462 not big endian
19463#endif
19464
19465 ;
19466 return 0;
19467}
19468_ACEOF
19469rm -f conftest.$ac_objext
19470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471 (eval $ac_compile) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_c_bigendian=yes
19482else
19483 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019484sed 's/^/| /' conftest.$ac_ext >&5
19485
John Criswell7a73b802003-06-30 21:59:07 +000019486ac_cv_c_bigendian=no
19487fi
19488rm -f conftest.$ac_objext conftest.$ac_ext
19489else
19490 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019491sed 's/^/| /' conftest.$ac_ext >&5
19492
John Criswell7a73b802003-06-30 21:59:07 +000019493# It does not; compile a test program.
19494if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000019495 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019496 ac_cv_c_bigendian=unknown
19497 cat >conftest.$ac_ext <<_ACEOF
19498#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019504short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19505short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19506void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19507short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19508short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19509void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000019510int
19511main ()
19512{
19513 _ascii (); _ebcdic ();
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
John Criswell392aaa32003-07-22 19:18:09 +000019530 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019531 ac_cv_c_bigendian=yes
19532fi
John Criswell392aaa32003-07-22 19:18:09 +000019533if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019534 if test "$ac_cv_c_bigendian" = unknown; then
19535 ac_cv_c_bigendian=no
19536 else
19537 # finding both strings is unlikely to happen, but who knows?
19538 ac_cv_c_bigendian=unknown
19539 fi
19540fi
19541else
19542 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019543sed 's/^/| /' conftest.$ac_ext >&5
19544
John Criswell7a73b802003-06-30 21:59:07 +000019545fi
19546rm -f conftest.$ac_objext conftest.$ac_ext
19547else
19548 cat >conftest.$ac_ext <<_ACEOF
19549#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019550/* confdefs.h. */
19551_ACEOF
19552cat confdefs.h >>conftest.$ac_ext
19553cat >>conftest.$ac_ext <<_ACEOF
19554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019555int
19556main ()
19557{
19558 /* Are we little or big endian? From Harbison&Steele. */
19559 union
19560 {
19561 long l;
19562 char c[sizeof (long)];
19563 } u;
19564 u.l = 1;
19565 exit (u.c[sizeof (long) - 1] == 1);
19566}
19567_ACEOF
19568rm -f conftest$ac_exeext
19569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_c_bigendian=no
19580else
19581 echo "$as_me: program exited with status $ac_status" >&5
19582echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019583sed 's/^/| /' conftest.$ac_ext >&5
19584
John Criswell7a73b802003-06-30 21:59:07 +000019585( exit $ac_status )
19586ac_cv_c_bigendian=yes
19587fi
John Criswell392aaa32003-07-22 19:18:09 +000019588rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019589fi
19590fi
19591rm -f conftest.$ac_objext conftest.$ac_ext
19592fi
19593echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19594echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19595case $ac_cv_c_bigendian in
19596 yes)
19597 cat >>confdefs.h <<\_ACEOF
19598#define ENDIAN_BIG 1
19599_ACEOF
19600 ;;
19601 no)
19602 cat >>confdefs.h <<\_ACEOF
19603#define ENDIAN_LITTLE 1
19604_ACEOF
19605 ;;
19606 *)
John Criswell392aaa32003-07-22 19:18:09 +000019607 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019608presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019609echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019610presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19611 { (exit 1); exit 1; }; } ;;
19612esac
19613
19614
19615echo "$as_me:$LINENO: checking for pid_t" >&5
19616echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19617if test "${ac_cv_type_pid_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620 cat >conftest.$ac_ext <<_ACEOF
19621#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019627$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019628int
19629main ()
19630{
19631if ((pid_t *) 0)
19632 return 0;
19633if (sizeof (pid_t))
19634 return 0;
19635 ;
19636 return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_type_pid_t=yes
19652else
19653 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019654sed 's/^/| /' conftest.$ac_ext >&5
19655
John Criswell7a73b802003-06-30 21:59:07 +000019656ac_cv_type_pid_t=no
19657fi
19658rm -f conftest.$ac_objext conftest.$ac_ext
19659fi
19660echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19661echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19662if test $ac_cv_type_pid_t = yes; then
19663 :
19664else
19665
19666cat >>confdefs.h <<_ACEOF
19667#define pid_t int
19668_ACEOF
19669
19670fi
19671
19672echo "$as_me:$LINENO: checking for size_t" >&5
19673echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19674if test "${ac_cv_type_size_t+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19676else
19677 cat >conftest.$ac_ext <<_ACEOF
19678#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
19683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019684$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019685int
19686main ()
19687{
19688if ((size_t *) 0)
19689 return 0;
19690if (sizeof (size_t))
19691 return 0;
19692 ;
19693 return 0;
19694}
19695_ACEOF
19696rm -f conftest.$ac_objext
19697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_type_size_t=yes
19709else
19710 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019711sed 's/^/| /' conftest.$ac_ext >&5
19712
John Criswell7a73b802003-06-30 21:59:07 +000019713ac_cv_type_size_t=no
19714fi
19715rm -f conftest.$ac_objext conftest.$ac_ext
19716fi
19717echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19718echo "${ECHO_T}$ac_cv_type_size_t" >&6
19719if test $ac_cv_type_size_t = yes; then
19720 :
19721else
19722
19723cat >>confdefs.h <<_ACEOF
19724#define size_t unsigned
19725_ACEOF
19726
19727fi
19728
19729echo "$as_me:$LINENO: checking for int64_t" >&5
19730echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19731if test "${ac_cv_type_int64_t+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734 cat >conftest.$ac_ext <<_ACEOF
19735#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019736/* confdefs.h. */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019741$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019742int
19743main ()
19744{
19745if ((int64_t *) 0)
19746 return 0;
19747if (sizeof (int64_t))
19748 return 0;
19749 ;
19750 return 0;
19751}
19752_ACEOF
19753rm -f conftest.$ac_objext
19754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755 (eval $ac_compile) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_cv_type_int64_t=yes
19766else
19767 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019768sed 's/^/| /' conftest.$ac_ext >&5
19769
John Criswell7a73b802003-06-30 21:59:07 +000019770ac_cv_type_int64_t=no
19771fi
19772rm -f conftest.$ac_objext conftest.$ac_ext
19773fi
19774echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19775echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19776if test $ac_cv_type_int64_t = yes; then
19777
19778cat >>confdefs.h <<_ACEOF
19779#define HAVE_INT64_T 1
19780_ACEOF
19781
19782
19783else
19784 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19785echo "$as_me: error: Type int64_t required but not found" >&2;}
19786 { (exit 1); exit 1; }; }
19787fi
19788
19789echo "$as_me:$LINENO: checking for uint64_t" >&5
19790echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19791if test "${ac_cv_type_uint64_t+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19793else
19794 cat >conftest.$ac_ext <<_ACEOF
19795#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019801$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019802int
19803main ()
19804{
19805if ((uint64_t *) 0)
19806 return 0;
19807if (sizeof (uint64_t))
19808 return 0;
19809 ;
19810 return 0;
19811}
19812_ACEOF
19813rm -f conftest.$ac_objext
19814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815 (eval $ac_compile) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_type_uint64_t=yes
19826else
19827 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019828sed 's/^/| /' conftest.$ac_ext >&5
19829
John Criswell7a73b802003-06-30 21:59:07 +000019830ac_cv_type_uint64_t=no
19831fi
19832rm -f conftest.$ac_objext conftest.$ac_ext
19833fi
19834echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19835echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19836if test $ac_cv_type_uint64_t = yes; then
19837
19838cat >>confdefs.h <<_ACEOF
19839#define HAVE_UINT64_T 1
19840_ACEOF
19841
19842
19843else
19844 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19845echo "$as_me: error: Type uint64_t required but not found" >&2;}
19846 { (exit 1); exit 1; }; }
19847fi
19848
19849echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19850echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19851if test "${ac_cv_header_time+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 cat >conftest.$ac_ext <<_ACEOF
19855#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019861#include <sys/types.h>
19862#include <sys/time.h>
19863#include <time.h>
19864
John Criswell7a73b802003-06-30 21:59:07 +000019865int
19866main ()
19867{
19868if ((struct tm *) 0)
19869return 0;
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874rm -f conftest.$ac_objext
19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -s conftest.$ac_objext'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_header_time=yes
19887else
19888 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019889sed 's/^/| /' conftest.$ac_ext >&5
19890
John Criswell7a73b802003-06-30 21:59:07 +000019891ac_cv_header_time=no
19892fi
19893rm -f conftest.$ac_objext conftest.$ac_ext
19894fi
19895echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19896echo "${ECHO_T}$ac_cv_header_time" >&6
19897if test $ac_cv_header_time = yes; then
19898
19899cat >>confdefs.h <<\_ACEOF
19900#define TIME_WITH_SYS_TIME 1
19901_ACEOF
19902
19903fi
19904
19905echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19906echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19907if test "${ac_cv_struct_tm+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909else
19910 cat >conftest.$ac_ext <<_ACEOF
19911#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019917#include <sys/types.h>
19918#include <time.h>
19919
John Criswell7a73b802003-06-30 21:59:07 +000019920int
19921main ()
19922{
19923struct tm *tp; tp->tm_sec;
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
19929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930 (eval $ac_compile) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_struct_tm=time.h
19941else
19942 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019943sed 's/^/| /' conftest.$ac_ext >&5
19944
John Criswell7a73b802003-06-30 21:59:07 +000019945ac_cv_struct_tm=sys/time.h
19946fi
19947rm -f conftest.$ac_objext conftest.$ac_ext
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19950echo "${ECHO_T}$ac_cv_struct_tm" >&6
19951if test $ac_cv_struct_tm = sys/time.h; then
19952
19953cat >>confdefs.h <<\_ACEOF
19954#define TM_IN_SYS_TIME 1
19955_ACEOF
19956
19957fi
19958
19959
John Criswell7a73b802003-06-30 21:59:07 +000019960echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19961echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19962if test "${ac_cv_cxx_namespaces+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965
19966
19967 ac_ext=cc
19968ac_cpp='$CXXCPP $CPPFLAGS'
19969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973 cat >conftest.$ac_ext <<_ACEOF
19974#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019980namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019981int
19982main ()
19983{
19984using namespace Outer::Inner; return i;
19985 ;
19986 return 0;
19987}
19988_ACEOF
19989rm -f conftest.$ac_objext
19990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991 (eval $ac_compile) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_cxx_namespaces=yes
20002else
20003 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020004sed 's/^/| /' conftest.$ac_ext >&5
20005
John Criswell7a73b802003-06-30 21:59:07 +000020006ac_cv_cxx_namespaces=no
20007fi
20008rm -f conftest.$ac_objext conftest.$ac_ext
20009 ac_ext=c
20010ac_cpp='$CPP $CPPFLAGS'
20011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014
20015
20016fi
20017echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20018echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20019if test "$ac_cv_cxx_namespaces" = yes; then
20020
20021cat >>confdefs.h <<\_ACEOF
20022#define HAVE_NAMESPACES
20023_ACEOF
20024
20025fi
20026
20027echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20028echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20029if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032
20033
20034
20035 ac_ext=cc
20036ac_cpp='$CXXCPP $CPPFLAGS'
20037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
20041 cat >conftest.$ac_ext <<_ACEOF
20042#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020048#include <ext/hash_map>
20049#ifdef HAVE_NAMESPACES
20050using namespace std;
20051#endif
John Criswell7a73b802003-06-30 21:59:07 +000020052int
20053main ()
20054{
20055hash_map<int, int> t; return 0;
20056 ;
20057 return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext
20061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_cv_cxx_have_ext_hash_map=std
20073else
20074 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020075sed 's/^/| /' conftest.$ac_ext >&5
20076
John Criswell7a73b802003-06-30 21:59:07 +000020077ac_cv_cxx_have_ext_hash_map=no
20078fi
20079rm -f conftest.$ac_objext conftest.$ac_ext
20080 cat >conftest.$ac_ext <<_ACEOF
20081#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020087#include <ext/hash_map>
20088#ifdef HAVE_NAMESPACES
20089using namespace __gnu_cxx;
20090#endif
John Criswell7a73b802003-06-30 21:59:07 +000020091int
20092main ()
20093{
20094hash_map<int, int> t; return 0;
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext
20100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_cxx_have_ext_hash_map=gnu
20112else
20113 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020114sed 's/^/| /' conftest.$ac_ext >&5
20115
John Criswell7a73b802003-06-30 21:59:07 +000020116ac_cv_cxx_have_ext_hash_map=no
20117fi
20118rm -f conftest.$ac_objext conftest.$ac_ext
20119 ac_ext=c
20120ac_cpp='$CPP $CPPFLAGS'
20121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124
20125
20126fi
20127echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20128echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20129if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20130
20131cat >>confdefs.h <<\_ACEOF
20132#define HAVE_STD_EXT_HASH_MAP
20133_ACEOF
20134
20135fi
20136if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20137
20138cat >>confdefs.h <<\_ACEOF
20139#define HAVE_GNU_EXT_HASH_MAP
20140_ACEOF
20141
20142fi
20143
20144echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20145echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20146if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149
20150
20151
20152 ac_ext=cc
20153ac_cpp='$CXXCPP $CPPFLAGS'
20154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20157
20158 cat >conftest.$ac_ext <<_ACEOF
20159#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020160/* confdefs.h. */
20161_ACEOF
20162cat confdefs.h >>conftest.$ac_ext
20163cat >>conftest.$ac_ext <<_ACEOF
20164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020165#include <ext/hash_set>
20166#ifdef HAVE_NAMESPACES
20167using namespace std;
20168#endif
John Criswell7a73b802003-06-30 21:59:07 +000020169int
20170main ()
20171{
20172hash_set<int> t; return 0;
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
20178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_cxx_have_ext_hash_set=std
20190else
20191 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020192sed 's/^/| /' conftest.$ac_ext >&5
20193
John Criswell7a73b802003-06-30 21:59:07 +000020194ac_cv_cxx_have_ext_hash_set=no
20195fi
20196rm -f conftest.$ac_objext conftest.$ac_ext
20197 cat >conftest.$ac_ext <<_ACEOF
20198#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020204#include <ext/hash_set>
20205#ifdef HAVE_NAMESPACES
20206using namespace __gnu_cxx;
20207#endif
John Criswell7a73b802003-06-30 21:59:07 +000020208int
20209main ()
20210{
20211hash_set<int> t; return 0;
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_cxx_have_ext_hash_set=gnu
20229else
20230 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020231sed 's/^/| /' conftest.$ac_ext >&5
20232
John Criswell7a73b802003-06-30 21:59:07 +000020233ac_cv_cxx_have_ext_hash_set=no
20234fi
20235rm -f conftest.$ac_objext conftest.$ac_ext
20236 ac_ext=c
20237ac_cpp='$CPP $CPPFLAGS'
20238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240ac_compiler_gnu=$ac_cv_c_compiler_gnu
20241
20242
20243fi
20244echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20245echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20246if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20247
20248cat >>confdefs.h <<\_ACEOF
20249#define HAVE_STD_EXT_HASH_SET
20250_ACEOF
20251
20252fi
20253if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20254
20255cat >>confdefs.h <<\_ACEOF
20256#define HAVE_GNU_EXT_HASH_SET
20257_ACEOF
20258
20259fi
20260
20261echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20262echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20263if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266
20267
20268
20269 ac_ext=cc
20270ac_cpp='$CXXCPP $CPPFLAGS'
20271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20274
20275 cat >conftest.$ac_ext <<_ACEOF
20276#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020282#include <ext/slist>
20283#ifdef HAVE_NAMESPACES
20284using namespace std;
20285#endif
John Criswell7a73b802003-06-30 21:59:07 +000020286int
20287main ()
20288{
20289slist<int> s; return 0;
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296 (eval $ac_compile) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_cxx_have_ext_slist=std
20307else
20308 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020309sed 's/^/| /' conftest.$ac_ext >&5
20310
John Criswell7a73b802003-06-30 21:59:07 +000020311ac_cv_cxx_have_ext_slist=no
20312fi
20313rm -f conftest.$ac_objext conftest.$ac_ext
20314 cat >conftest.$ac_ext <<_ACEOF
20315#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020321#include <ext/slist>
20322#ifdef HAVE_NAMESPACES
20323using namespace __gnu_cxx;
20324#endif
John Criswell7a73b802003-06-30 21:59:07 +000020325int
20326main ()
20327{
20328slist<int> s; return 0;
20329 ;
20330 return 0;
20331}
20332_ACEOF
20333rm -f conftest.$ac_objext
20334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_cxx_have_ext_slist=gnu
20346else
20347 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020348sed 's/^/| /' conftest.$ac_ext >&5
20349
John Criswell7a73b802003-06-30 21:59:07 +000020350ac_cv_cxx_have_ext_slist=no
20351fi
20352rm -f conftest.$ac_objext conftest.$ac_ext
20353
20354 ac_ext=c
20355ac_cpp='$CPP $CPPFLAGS'
20356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358ac_compiler_gnu=$ac_cv_c_compiler_gnu
20359
20360
20361fi
20362echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20363echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20364if test "$ac_cv_cxx_have_ext_slist" = std; then
20365
20366cat >>confdefs.h <<\_ACEOF
20367#define HAVE_EXT_SLIST std
20368_ACEOF
20369
20370fi
20371if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20372
20373cat >>confdefs.h <<\_ACEOF
20374#define HAVE_EXT_SLIST gnu
20375_ACEOF
20376
20377fi
20378
20379echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20380echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20381if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383else
20384
20385
20386
20387 ac_ext=cc
20388ac_cpp='$CXXCPP $CPPFLAGS'
20389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
20393 cat >conftest.$ac_ext <<_ACEOF
20394#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020395/* confdefs.h. */
20396_ACEOF
20397cat confdefs.h >>conftest.$ac_ext
20398cat >>conftest.$ac_ext <<_ACEOF
20399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020400#include <iterator>
20401#ifdef HAVE_NAMESPACES
20402using namespace std;
20403#endif
John Criswell7a73b802003-06-30 21:59:07 +000020404int
20405main ()
20406{
20407iterator<int,int,int> t; return 0;
20408 ;
20409 return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_cxx_have_std_iterator=yes
20425else
20426 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020427sed 's/^/| /' conftest.$ac_ext >&5
20428
John Criswell7a73b802003-06-30 21:59:07 +000020429ac_cv_cxx_have_std_iterator=no
20430fi
20431rm -f conftest.$ac_objext conftest.$ac_ext
20432 ac_ext=c
20433ac_cpp='$CPP $CPPFLAGS'
20434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20436ac_compiler_gnu=$ac_cv_c_compiler_gnu
20437
20438
20439fi
20440echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20441echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20442if test "$ac_cv_cxx_have_std_iterator" = yes; then
20443
20444cat >>confdefs.h <<\_ACEOF
20445#define HAVE_STD_ITERATOR
20446_ACEOF
20447
20448fi
20449
20450echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20451echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20452if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454else
20455
20456
20457
20458 ac_ext=cc
20459ac_cpp='$CXXCPP $CPPFLAGS'
20460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20463
20464 cat >conftest.$ac_ext <<_ACEOF
20465#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020471#include <iterator>
20472#ifdef HAVE_NAMESPACES
20473using namespace std;
20474#endif
John Criswell7a73b802003-06-30 21:59:07 +000020475int
20476main ()
20477{
20478bidirectional_iterator<int,int,int> t; return 0;
20479 ;
20480 return 0;
20481}
20482_ACEOF
20483rm -f conftest.$ac_objext
20484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_cxx_have_bi_iterator=yes
20496else
20497 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020498sed 's/^/| /' conftest.$ac_ext >&5
20499
John Criswell7a73b802003-06-30 21:59:07 +000020500ac_cv_cxx_have_bi_iterator=no
20501fi
20502rm -f conftest.$ac_objext conftest.$ac_ext
20503 ac_ext=c
20504ac_cpp='$CPP $CPPFLAGS'
20505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
20509
20510fi
20511echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20512echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20513if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20514
20515cat >>confdefs.h <<\_ACEOF
20516#define HAVE_BI_ITERATOR
20517_ACEOF
20518
20519fi
20520
20521echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20522echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20523if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525else
20526
20527
20528
20529 ac_ext=cc
20530ac_cpp='$CXXCPP $CPPFLAGS'
20531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20534
20535 cat >conftest.$ac_ext <<_ACEOF
20536#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020542#include <iterator>
20543#ifdef HAVE_NAMESPACES
20544using namespace std;
20545#endif
John Criswell7a73b802003-06-30 21:59:07 +000020546int
20547main ()
20548{
20549forward_iterator<int,int,int> t; return 0;
20550 ;
20551 return 0;
20552}
20553_ACEOF
20554rm -f conftest.$ac_objext
20555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556 (eval $ac_compile) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_cxx_have_fwd_iterator=yes
20567else
20568 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020569sed 's/^/| /' conftest.$ac_ext >&5
20570
John Criswell7a73b802003-06-30 21:59:07 +000020571ac_cv_cxx_have_fwd_iterator=no
20572fi
20573rm -f conftest.$ac_objext conftest.$ac_ext
20574 ac_ext=c
20575ac_cpp='$CPP $CPPFLAGS'
20576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578ac_compiler_gnu=$ac_cv_c_compiler_gnu
20579
20580
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20583echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20584if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20585
20586cat >>confdefs.h <<\_ACEOF
20587#define HAVE_FWD_ITERATOR
20588_ACEOF
20589
20590fi
20591
20592
20593# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20594# for constant arguments. Useless!
20595echo "$as_me:$LINENO: checking for working alloca.h" >&5
20596echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20597if test "${ac_cv_working_alloca_h+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600 cat >conftest.$ac_ext <<_ACEOF
20601#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
20606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020607#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020608int
20609main ()
20610{
20611char *p = (char *) alloca (2 * sizeof (int));
20612 ;
20613 return 0;
20614}
20615_ACEOF
20616rm -f conftest.$ac_objext conftest$ac_exeext
20617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20618 (eval $ac_link) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -s conftest$ac_exeext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_working_alloca_h=yes
20629else
20630 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020631sed 's/^/| /' conftest.$ac_ext >&5
20632
John Criswell7a73b802003-06-30 21:59:07 +000020633ac_cv_working_alloca_h=no
20634fi
20635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20636fi
20637echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20638echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20639if test $ac_cv_working_alloca_h = yes; then
20640
20641cat >>confdefs.h <<\_ACEOF
20642#define HAVE_ALLOCA_H 1
20643_ACEOF
20644
20645fi
20646
20647echo "$as_me:$LINENO: checking for alloca" >&5
20648echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20649if test "${ac_cv_func_alloca_works+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651else
20652 cat >conftest.$ac_ext <<_ACEOF
20653#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020654/* confdefs.h. */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020659#ifdef __GNUC__
20660# define alloca __builtin_alloca
20661#else
20662# ifdef _MSC_VER
20663# include <malloc.h>
20664# define alloca _alloca
20665# else
20666# if HAVE_ALLOCA_H
20667# include <alloca.h>
20668# else
20669# ifdef _AIX
20670 #pragma alloca
20671# else
20672# ifndef alloca /* predefined by HP cc +Olibcalls */
20673char *alloca ();
20674# endif
20675# endif
20676# endif
20677# endif
20678#endif
20679
John Criswell7a73b802003-06-30 21:59:07 +000020680int
20681main ()
20682{
20683char *p = (char *) alloca (1);
20684 ;
20685 return 0;
20686}
20687_ACEOF
20688rm -f conftest.$ac_objext conftest$ac_exeext
20689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20690 (eval $ac_link) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -s conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_func_alloca_works=yes
20701else
20702 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020703sed 's/^/| /' conftest.$ac_ext >&5
20704
John Criswell7a73b802003-06-30 21:59:07 +000020705ac_cv_func_alloca_works=no
20706fi
20707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20708fi
20709echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20710echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20711
20712if test $ac_cv_func_alloca_works = yes; then
20713
20714cat >>confdefs.h <<\_ACEOF
20715#define HAVE_ALLOCA 1
20716_ACEOF
20717
20718else
20719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20720# that cause trouble. Some versions do not even contain alloca or
20721# contain a buggy version. If you still want to use their alloca,
20722# use ar to extract alloca.o from them instead of compiling alloca.c.
20723
20724ALLOCA=alloca.$ac_objext
20725
20726cat >>confdefs.h <<\_ACEOF
20727#define C_ALLOCA 1
20728_ACEOF
20729
20730
20731echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20732echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20733if test "${ac_cv_os_cray+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735else
20736 cat >conftest.$ac_ext <<_ACEOF
20737#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020743#if defined(CRAY) && ! defined(CRAY2)
20744webecray
20745#else
20746wenotbecray
20747#endif
20748
20749_ACEOF
20750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020751 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020752 ac_cv_os_cray=yes
20753else
20754 ac_cv_os_cray=no
20755fi
20756rm -f conftest*
20757
20758fi
20759echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20760echo "${ECHO_T}$ac_cv_os_cray" >&6
20761if test $ac_cv_os_cray = yes; then
20762 for ac_func in _getb67 GETB67 getb67; do
20763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764echo "$as_me:$LINENO: checking for $ac_func" >&5
20765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20766if eval "test \"\${$as_ac_var+set}\" = set"; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768else
20769 cat >conftest.$ac_ext <<_ACEOF
20770#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020776/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000020777 which can conflict with char $ac_func (); below.
20778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20779 <limits.h> exists even on freestanding compilers. */
20780#ifdef __STDC__
20781# include <limits.h>
20782#else
20783# include <assert.h>
20784#endif
John Criswell7a73b802003-06-30 21:59:07 +000020785/* Override any gcc2 internal prototype to avoid an error. */
20786#ifdef __cplusplus
20787extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000020788{
John Criswell7a73b802003-06-30 21:59:07 +000020789#endif
20790/* We use char because int might match the return type of a gcc2
20791 builtin and then its argument prototype would still apply. */
20792char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020793/* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20797choke me
20798#else
John Criswell392aaa32003-07-22 19:18:09 +000020799char (*f) () = $ac_func;
20800#endif
20801#ifdef __cplusplus
20802}
John Criswell7a73b802003-06-30 21:59:07 +000020803#endif
20804
John Criswell392aaa32003-07-22 19:18:09 +000020805int
20806main ()
20807{
20808return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext conftest$ac_exeext
20814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815 (eval $ac_link) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 eval "$as_ac_var=yes"
20826else
20827 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020828sed 's/^/| /' conftest.$ac_ext >&5
20829
John Criswell7a73b802003-06-30 21:59:07 +000020830eval "$as_ac_var=no"
20831fi
20832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20833fi
20834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20836if test `eval echo '${'$as_ac_var'}'` = yes; then
20837
20838cat >>confdefs.h <<_ACEOF
20839#define CRAY_STACKSEG_END $ac_func
20840_ACEOF
20841
20842 break
20843fi
20844
20845 done
20846fi
20847
20848echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20849echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20850if test "${ac_cv_c_stack_direction+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852else
20853 if test "$cross_compiling" = yes; then
20854 ac_cv_c_stack_direction=0
20855else
20856 cat >conftest.$ac_ext <<_ACEOF
20857#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020863int
20864find_stack_direction ()
20865{
20866 static char *addr = 0;
20867 auto char dummy;
20868 if (addr == 0)
20869 {
20870 addr = &dummy;
20871 return find_stack_direction ();
20872 }
20873 else
20874 return (&dummy > addr) ? 1 : -1;
20875}
20876
20877int
20878main ()
20879{
20880 exit (find_stack_direction () < 0);
20881}
20882_ACEOF
20883rm -f conftest$ac_exeext
20884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20885 (eval $ac_link) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_cv_c_stack_direction=1
20895else
20896 echo "$as_me: program exited with status $ac_status" >&5
20897echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020898sed 's/^/| /' conftest.$ac_ext >&5
20899
John Criswell7a73b802003-06-30 21:59:07 +000020900( exit $ac_status )
20901ac_cv_c_stack_direction=-1
20902fi
John Criswell392aaa32003-07-22 19:18:09 +000020903rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020904fi
20905fi
20906echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20907echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20908
20909cat >>confdefs.h <<_ACEOF
20910#define STACK_DIRECTION $ac_cv_c_stack_direction
20911_ACEOF
20912
20913
20914fi
20915
20916if test $ac_cv_c_compiler_gnu = yes; then
20917 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20918echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20919if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921else
20922 ac_pattern="Autoconf.*'x'"
20923 cat >conftest.$ac_ext <<_ACEOF
20924#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020930#include <sgtty.h>
20931Autoconf TIOCGETP
20932_ACEOF
20933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020934 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020935 ac_cv_prog_gcc_traditional=yes
20936else
20937 ac_cv_prog_gcc_traditional=no
20938fi
20939rm -f conftest*
20940
20941
20942 if test $ac_cv_prog_gcc_traditional = no; then
20943 cat >conftest.$ac_ext <<_ACEOF
20944#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020945/* confdefs.h. */
20946_ACEOF
20947cat confdefs.h >>conftest.$ac_ext
20948cat >>conftest.$ac_ext <<_ACEOF
20949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020950#include <termio.h>
20951Autoconf TCGETA
20952_ACEOF
20953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000020954 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020955 ac_cv_prog_gcc_traditional=yes
20956fi
20957rm -f conftest*
20958
20959 fi
20960fi
20961echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20962echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20963 if test $ac_cv_prog_gcc_traditional = yes; then
20964 CC="$CC -traditional"
20965 fi
20966fi
20967
20968echo "$as_me:$LINENO: checking for working memcmp" >&5
20969echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20970if test "${ac_cv_func_memcmp_working+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973 if test "$cross_compiling" = yes; then
20974 ac_cv_func_memcmp_working=no
20975else
20976 cat >conftest.$ac_ext <<_ACEOF
20977#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020978/* confdefs.h. */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020983
John Criswell7a73b802003-06-30 21:59:07 +000020984int
20985main ()
20986{
20987
20988 /* Some versions of memcmp are not 8-bit clean. */
20989 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20990 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20991 exit (1);
20992
20993 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20994 or more and with at least one buffer not starting on a 4-byte boundary.
20995 William Lewis provided this test program. */
20996 {
20997 char foo[21];
20998 char bar[21];
20999 int i;
21000 for (i = 0; i < 4; i++)
21001 {
21002 char *a = foo + i;
21003 char *b = bar + i;
21004 strcpy (a, "--------01111111");
21005 strcpy (b, "--------10000000");
21006 if (memcmp (a, b, 16) >= 0)
21007 exit (1);
21008 }
21009 exit (0);
21010 }
21011
21012 ;
21013 return 0;
21014}
21015_ACEOF
21016rm -f conftest$ac_exeext
21017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21018 (eval $ac_link) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_func_memcmp_working=yes
21028else
21029 echo "$as_me: program exited with status $ac_status" >&5
21030echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021031sed 's/^/| /' conftest.$ac_ext >&5
21032
John Criswell7a73b802003-06-30 21:59:07 +000021033( exit $ac_status )
21034ac_cv_func_memcmp_working=no
21035fi
John Criswell392aaa32003-07-22 19:18:09 +000021036rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021037fi
21038fi
21039echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21040echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21041test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21042
21043
21044
21045for ac_header in stdlib.h unistd.h
21046do
21047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21048if eval "test \"\${$as_ac_Header+set}\" = set"; then
21049 echo "$as_me:$LINENO: checking for $ac_header" >&5
21050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21051if eval "test \"\${$as_ac_Header+set}\" = set"; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053fi
21054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21056else
21057 # Is the header compilable?
21058echo "$as_me:$LINENO: checking $ac_header usability" >&5
21059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21060cat >conftest.$ac_ext <<_ACEOF
21061#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021062/* confdefs.h. */
21063_ACEOF
21064cat confdefs.h >>conftest.$ac_ext
21065cat >>conftest.$ac_ext <<_ACEOF
21066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021067$ac_includes_default
21068#include <$ac_header>
21069_ACEOF
21070rm -f conftest.$ac_objext
21071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072 (eval $ac_compile) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_header_compiler=yes
21083else
21084 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021085sed 's/^/| /' conftest.$ac_ext >&5
21086
John Criswell7a73b802003-06-30 21:59:07 +000021087ac_header_compiler=no
21088fi
21089rm -f conftest.$ac_objext conftest.$ac_ext
21090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21091echo "${ECHO_T}$ac_header_compiler" >&6
21092
21093# Is the header present?
21094echo "$as_me:$LINENO: checking $ac_header presence" >&5
21095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21096cat >conftest.$ac_ext <<_ACEOF
21097#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021103#include <$ac_header>
21104_ACEOF
21105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21107 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000021108 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } >/dev/null; then
21113 if test -s conftest.err; then
21114 ac_cpp_err=$ac_c_preproc_warn_flag
21115 else
21116 ac_cpp_err=
21117 fi
21118else
21119 ac_cpp_err=yes
21120fi
21121if test -z "$ac_cpp_err"; then
21122 ac_header_preproc=yes
21123else
21124 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021125sed 's/^/| /' conftest.$ac_ext >&5
21126
John Criswell7a73b802003-06-30 21:59:07 +000021127 ac_header_preproc=no
21128fi
21129rm -f conftest.err conftest.$ac_ext
21130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131echo "${ECHO_T}$ac_header_preproc" >&6
21132
21133# So? What about this header?
21134case $ac_header_compiler:$ac_header_preproc in
21135 yes:no )
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21140 (
21141 cat <<\_ASBOX
21142## ------------------------------------ ##
21143## Report this to bug-autoconf@gnu.org. ##
21144## ------------------------------------ ##
21145_ASBOX
21146 ) |
21147 sed "s/^/$as_me: WARNING: /" >&2
21148 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021149 no:yes )
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21156 (
21157 cat <<\_ASBOX
21158## ------------------------------------ ##
21159## Report this to bug-autoconf@gnu.org. ##
21160## ------------------------------------ ##
21161_ASBOX
21162 ) |
21163 sed "s/^/$as_me: WARNING: /" >&2
21164 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021165esac
21166echo "$as_me:$LINENO: checking for $ac_header" >&5
21167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21168if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170else
21171 eval "$as_ac_Header=$ac_header_preproc"
21172fi
21173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21175
21176fi
21177if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180_ACEOF
21181
21182fi
21183
21184done
21185
21186
21187for ac_func in getpagesize
21188do
21189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21190echo "$as_me:$LINENO: checking for $ac_func" >&5
21191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21192if eval "test \"\${$as_ac_var+set}\" = set"; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195 cat >conftest.$ac_ext <<_ACEOF
21196#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021197/* confdefs.h. */
21198_ACEOF
21199cat confdefs.h >>conftest.$ac_ext
21200cat >>conftest.$ac_ext <<_ACEOF
21201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021202/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021203 which can conflict with char $ac_func (); below.
21204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21205 <limits.h> exists even on freestanding compilers. */
21206#ifdef __STDC__
21207# include <limits.h>
21208#else
21209# include <assert.h>
21210#endif
John Criswell7a73b802003-06-30 21:59:07 +000021211/* Override any gcc2 internal prototype to avoid an error. */
21212#ifdef __cplusplus
21213extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021214{
John Criswell7a73b802003-06-30 21:59:07 +000021215#endif
21216/* We use char because int might match the return type of a gcc2
21217 builtin and then its argument prototype would still apply. */
21218char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021219/* The GNU C library defines this for functions which it implements
21220 to always fail with ENOSYS. Some functions are actually named
21221 something starting with __ and the normal name is an alias. */
21222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21223choke me
21224#else
John Criswell392aaa32003-07-22 19:18:09 +000021225char (*f) () = $ac_func;
21226#endif
21227#ifdef __cplusplus
21228}
John Criswell7a73b802003-06-30 21:59:07 +000021229#endif
21230
John Criswell392aaa32003-07-22 19:18:09 +000021231int
21232main ()
21233{
21234return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021235 ;
21236 return 0;
21237}
21238_ACEOF
21239rm -f conftest.$ac_objext conftest$ac_exeext
21240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21241 (eval $ac_link) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -s conftest$ac_exeext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 eval "$as_ac_var=yes"
21252else
21253 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021254sed 's/^/| /' conftest.$ac_ext >&5
21255
John Criswell7a73b802003-06-30 21:59:07 +000021256eval "$as_ac_var=no"
21257fi
21258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21259fi
21260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21262if test `eval echo '${'$as_ac_var'}'` = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21265_ACEOF
21266
21267fi
21268done
21269
21270echo "$as_me:$LINENO: checking for working mmap" >&5
21271echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21272if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275 if test "$cross_compiling" = yes; then
21276 ac_cv_func_mmap_fixed_mapped=no
21277else
21278 cat >conftest.$ac_ext <<_ACEOF
21279#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021280/* confdefs.h. */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021285$ac_includes_default
21286/* malloc might have been renamed as rpl_malloc. */
21287#undef malloc
21288
21289/* Thanks to Mike Haertel and Jim Avera for this test.
21290 Here is a matrix of mmap possibilities:
21291 mmap private not fixed
21292 mmap private fixed at somewhere currently unmapped
21293 mmap private fixed at somewhere already mapped
21294 mmap shared not fixed
21295 mmap shared fixed at somewhere currently unmapped
21296 mmap shared fixed at somewhere already mapped
21297 For private mappings, we should verify that changes cannot be read()
21298 back from the file, nor mmap's back from the file at a different
21299 address. (There have been systems where private was not correctly
21300 implemented like the infamous i386 svr4.0, and systems where the
21301 VM page cache was not coherent with the file system buffer cache
21302 like early versions of FreeBSD and possibly contemporary NetBSD.)
21303 For shared mappings, we should conversely verify that changes get
21304 propagated back to all the places they're supposed to be.
21305
21306 Grep wants private fixed already mapped.
21307 The main things grep needs to know about mmap are:
21308 * does it exist and is it safe to write into the mmap'd area
21309 * how to use it (BSD variants) */
21310
21311#include <fcntl.h>
21312#include <sys/mman.h>
21313
21314#if !STDC_HEADERS && !HAVE_STDLIB_H
21315char *malloc ();
21316#endif
21317
21318/* This mess was copied from the GNU getpagesize.h. */
21319#if !HAVE_GETPAGESIZE
21320/* Assume that all systems that can run configure have sys/param.h. */
21321# if !HAVE_SYS_PARAM_H
21322# define HAVE_SYS_PARAM_H 1
21323# endif
21324
21325# ifdef _SC_PAGESIZE
21326# define getpagesize() sysconf(_SC_PAGESIZE)
21327# else /* no _SC_PAGESIZE */
21328# if HAVE_SYS_PARAM_H
21329# include <sys/param.h>
21330# ifdef EXEC_PAGESIZE
21331# define getpagesize() EXEC_PAGESIZE
21332# else /* no EXEC_PAGESIZE */
21333# ifdef NBPG
21334# define getpagesize() NBPG * CLSIZE
21335# ifndef CLSIZE
21336# define CLSIZE 1
21337# endif /* no CLSIZE */
21338# else /* no NBPG */
21339# ifdef NBPC
21340# define getpagesize() NBPC
21341# else /* no NBPC */
21342# ifdef PAGESIZE
21343# define getpagesize() PAGESIZE
21344# endif /* PAGESIZE */
21345# endif /* no NBPC */
21346# endif /* no NBPG */
21347# endif /* no EXEC_PAGESIZE */
21348# else /* no HAVE_SYS_PARAM_H */
21349# define getpagesize() 8192 /* punt totally */
21350# endif /* no HAVE_SYS_PARAM_H */
21351# endif /* no _SC_PAGESIZE */
21352
21353#endif /* no HAVE_GETPAGESIZE */
21354
21355int
21356main ()
21357{
21358 char *data, *data2, *data3;
21359 int i, pagesize;
21360 int fd;
21361
21362 pagesize = getpagesize ();
21363
21364 /* First, make a file with some known garbage in it. */
21365 data = (char *) malloc (pagesize);
21366 if (!data)
21367 exit (1);
21368 for (i = 0; i < pagesize; ++i)
21369 *(data + i) = rand ();
21370 umask (0);
21371 fd = creat ("conftest.mmap", 0600);
21372 if (fd < 0)
21373 exit (1);
21374 if (write (fd, data, pagesize) != pagesize)
21375 exit (1);
21376 close (fd);
21377
21378 /* Next, try to mmap the file at a fixed address which already has
21379 something else allocated at it. If we can, also make sure that
21380 we see the same garbage. */
21381 fd = open ("conftest.mmap", O_RDWR);
21382 if (fd < 0)
21383 exit (1);
21384 data2 = (char *) malloc (2 * pagesize);
21385 if (!data2)
21386 exit (1);
21387 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21388 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21389 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21390 exit (1);
21391 for (i = 0; i < pagesize; ++i)
21392 if (*(data + i) != *(data2 + i))
21393 exit (1);
21394
21395 /* Finally, make sure that changes to the mapped area do not
21396 percolate back to the file as seen by read(). (This is a bug on
21397 some variants of i386 svr4.0.) */
21398 for (i = 0; i < pagesize; ++i)
21399 *(data2 + i) = *(data2 + i) + 1;
21400 data3 = (char *) malloc (pagesize);
21401 if (!data3)
21402 exit (1);
21403 if (read (fd, data3, pagesize) != pagesize)
21404 exit (1);
21405 for (i = 0; i < pagesize; ++i)
21406 if (*(data + i) != *(data3 + i))
21407 exit (1);
21408 close (fd);
21409 exit (0);
21410}
21411_ACEOF
21412rm -f conftest$ac_exeext
21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_func_mmap_fixed_mapped=yes
21424else
21425 echo "$as_me: program exited with status $ac_status" >&5
21426echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021427sed 's/^/| /' conftest.$ac_ext >&5
21428
John Criswell7a73b802003-06-30 21:59:07 +000021429( exit $ac_status )
21430ac_cv_func_mmap_fixed_mapped=no
21431fi
John Criswell392aaa32003-07-22 19:18:09 +000021432rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021433fi
21434fi
21435echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21436echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21437if test $ac_cv_func_mmap_fixed_mapped = yes; then
21438
21439cat >>confdefs.h <<\_ACEOF
21440#define HAVE_MMAP 1
21441_ACEOF
21442
21443fi
21444rm -f conftest.mmap
21445
21446echo "$as_me:$LINENO: checking for mmap of files" >&5
21447echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21448if test "${ac_cv_func_mmap_file+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451
21452
21453 ac_ext=c
21454ac_cpp='$CPP $CPPFLAGS'
21455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21457ac_compiler_gnu=$ac_cv_c_compiler_gnu
21458
21459 if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000021460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21461See \`config.log' for more details." >&5
21462echo "$as_me: error: cannot run test program while cross compiling
21463See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021464 { (exit 1); exit 1; }; }
21465else
21466 cat >conftest.$ac_ext <<_ACEOF
21467#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021468/* confdefs.h. */
21469_ACEOF
21470cat confdefs.h >>conftest.$ac_ext
21471cat >>conftest.$ac_ext <<_ACEOF
21472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021473
21474#ifdef HAVE_SYS_MMAN_H
21475#include <sys/mman.h>
21476#endif
21477
21478#ifdef HAVE_SYS_TYPES_H
21479#include <sys/types.h>
21480#endif
21481
21482#ifdef HAVE_FCNTL_H
21483#include <fcntl.h>
21484#endif
21485
21486 int fd;
21487 int main () {
21488 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21489_ACEOF
21490rm -f conftest$ac_exeext
21491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492 (eval $ac_link) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_cv_func_mmap_file=yes
21502else
21503 echo "$as_me: program exited with status $ac_status" >&5
21504echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021505sed 's/^/| /' conftest.$ac_ext >&5
21506
John Criswell7a73b802003-06-30 21:59:07 +000021507( exit $ac_status )
21508ac_cv_func_mmap_file=no
21509fi
John Criswell392aaa32003-07-22 19:18:09 +000021510rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021511fi
21512 ac_ext=c
21513ac_cpp='$CPP $CPPFLAGS'
21514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516ac_compiler_gnu=$ac_cv_c_compiler_gnu
21517
21518
21519fi
21520echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21521echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21522if test "$ac_cv_func_mmap_file" = yes; then
21523 cat >>confdefs.h <<\_ACEOF
21524#define HAVE_MMAP_FILE 1
21525_ACEOF
21526
21527 MMAP_FILE=yes
21528
21529fi
21530
21531if test ${ac_cv_func_mmap_file} = "no"
21532then
21533 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21534echo "$as_me: error: mmap() of files required but not found" >&2;}
21535 { (exit 1); exit 1; }; }
21536fi
21537echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21538echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21539if test "${ac_cv_header_mmap_anon+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543
21544 ac_ext=c
21545ac_cpp='$CPP $CPPFLAGS'
21546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550 cat >conftest.$ac_ext <<_ACEOF
21551#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021557#include <sys/mman.h>
21558 #include <unistd.h>
21559 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021560int
21561main ()
21562{
21563mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21564 ;
21565 return 0;
21566}
21567_ACEOF
21568rm -f conftest.$ac_objext
21569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21570 (eval $ac_compile) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -s conftest.$ac_objext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_header_mmap_anon=yes
21581else
21582 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021583sed 's/^/| /' conftest.$ac_ext >&5
21584
John Criswell7a73b802003-06-30 21:59:07 +000021585ac_cv_header_mmap_anon=no
21586fi
21587rm -f conftest.$ac_objext conftest.$ac_ext
21588 ac_ext=c
21589ac_cpp='$CPP $CPPFLAGS'
21590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
21594
21595fi
21596echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21597echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21598if test "$ac_cv_header_mmap_anon" = yes; then
21599 cat >>confdefs.h <<\_ACEOF
21600#define HAVE_MMAP_ANONYMOUS 1
21601_ACEOF
21602
21603fi
21604
21605echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21606echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21607if test "${ac_cv_type_signal+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610 cat >conftest.$ac_ext <<_ACEOF
21611#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021617#include <sys/types.h>
21618#include <signal.h>
21619#ifdef signal
21620# undef signal
21621#endif
21622#ifdef __cplusplus
21623extern "C" void (*signal (int, void (*)(int)))(int);
21624#else
21625void (*signal ()) ();
21626#endif
21627
John Criswell7a73b802003-06-30 21:59:07 +000021628int
21629main ()
21630{
21631int i;
21632 ;
21633 return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
21642 { ac_try='test -s conftest.$ac_objext'
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_type_signal=void
21649else
21650 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021651sed 's/^/| /' conftest.$ac_ext >&5
21652
John Criswell7a73b802003-06-30 21:59:07 +000021653ac_cv_type_signal=int
21654fi
21655rm -f conftest.$ac_objext conftest.$ac_ext
21656fi
21657echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21658echo "${ECHO_T}$ac_cv_type_signal" >&6
21659
21660cat >>confdefs.h <<_ACEOF
21661#define RETSIGTYPE $ac_cv_type_signal
21662_ACEOF
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21675do
21676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677echo "$as_me:$LINENO: checking for $ac_func" >&5
21678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21679if eval "test \"\${$as_ac_var+set}\" = set"; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021689/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21693#ifdef __STDC__
21694# include <limits.h>
21695#else
21696# include <assert.h>
21697#endif
John Criswell7a73b802003-06-30 21:59:07 +000021698/* Override any gcc2 internal prototype to avoid an error. */
21699#ifdef __cplusplus
21700extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021701{
John Criswell7a73b802003-06-30 21:59:07 +000021702#endif
21703/* We use char because int might match the return type of a gcc2
21704 builtin and then its argument prototype would still apply. */
21705char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021706/* The GNU C library defines this for functions which it implements
21707 to always fail with ENOSYS. Some functions are actually named
21708 something starting with __ and the normal name is an alias. */
21709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21710choke me
21711#else
John Criswell392aaa32003-07-22 19:18:09 +000021712char (*f) () = $ac_func;
21713#endif
21714#ifdef __cplusplus
21715}
John Criswell7a73b802003-06-30 21:59:07 +000021716#endif
21717
John Criswell392aaa32003-07-22 19:18:09 +000021718int
21719main ()
21720{
21721return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021722 ;
21723 return 0;
21724}
21725_ACEOF
21726rm -f conftest.$ac_objext conftest$ac_exeext
21727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728 (eval $ac_link) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -s conftest$ac_exeext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 eval "$as_ac_var=yes"
21739else
21740 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021741sed 's/^/| /' conftest.$ac_ext >&5
21742
John Criswell7a73b802003-06-30 21:59:07 +000021743eval "$as_ac_var=no"
21744fi
21745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21746fi
21747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21749if test `eval echo '${'$as_ac_var'}'` = yes; then
21750 cat >>confdefs.h <<_ACEOF
21751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21752_ACEOF
21753
21754fi
21755done
21756
21757
21758
21759echo "$as_me:$LINENO: checking for mmap" >&5
21760echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21761if test "${ac_cv_func_mmap+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763else
21764 cat >conftest.$ac_ext <<_ACEOF
21765#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021766/* confdefs.h. */
21767_ACEOF
21768cat confdefs.h >>conftest.$ac_ext
21769cat >>conftest.$ac_ext <<_ACEOF
21770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021771/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021772 which can conflict with char mmap (); below.
21773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774 <limits.h> exists even on freestanding compilers. */
21775#ifdef __STDC__
21776# include <limits.h>
21777#else
21778# include <assert.h>
21779#endif
John Criswell7a73b802003-06-30 21:59:07 +000021780/* Override any gcc2 internal prototype to avoid an error. */
21781#ifdef __cplusplus
21782extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021783{
John Criswell7a73b802003-06-30 21:59:07 +000021784#endif
21785/* We use char because int might match the return type of a gcc2
21786 builtin and then its argument prototype would still apply. */
21787char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000021788/* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791#if defined (__stub_mmap) || defined (__stub___mmap)
21792choke me
21793#else
John Criswell392aaa32003-07-22 19:18:09 +000021794char (*f) () = mmap;
21795#endif
21796#ifdef __cplusplus
21797}
John Criswell7a73b802003-06-30 21:59:07 +000021798#endif
21799
John Criswell392aaa32003-07-22 19:18:09 +000021800int
21801main ()
21802{
21803return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000021804 ;
21805 return 0;
21806}
21807_ACEOF
21808rm -f conftest.$ac_objext conftest$ac_exeext
21809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_func_mmap=yes
21821else
21822 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021823sed 's/^/| /' conftest.$ac_ext >&5
21824
John Criswell7a73b802003-06-30 21:59:07 +000021825ac_cv_func_mmap=no
21826fi
21827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21828fi
21829echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21830echo "${ECHO_T}$ac_cv_func_mmap" >&6
21831if test $ac_cv_func_mmap = yes; then
21832 :
21833else
21834 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21835echo "$as_me: error: Function mmap() required but not found" >&2;}
21836 { (exit 1); exit 1; }; }
21837fi
21838
21839echo "$as_me:$LINENO: checking for mprotect" >&5
21840echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21841if test "${ac_cv_func_mprotect+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844 cat >conftest.$ac_ext <<_ACEOF
21845#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021851/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021852 which can conflict with char mprotect (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21855#ifdef __STDC__
21856# include <limits.h>
21857#else
21858# include <assert.h>
21859#endif
John Criswell7a73b802003-06-30 21:59:07 +000021860/* Override any gcc2 internal prototype to avoid an error. */
21861#ifdef __cplusplus
21862extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021863{
John Criswell7a73b802003-06-30 21:59:07 +000021864#endif
21865/* We use char because int might match the return type of a gcc2
21866 builtin and then its argument prototype would still apply. */
21867char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021868/* The GNU C library defines this for functions which it implements
21869 to always fail with ENOSYS. Some functions are actually named
21870 something starting with __ and the normal name is an alias. */
21871#if defined (__stub_mprotect) || defined (__stub___mprotect)
21872choke me
21873#else
John Criswell392aaa32003-07-22 19:18:09 +000021874char (*f) () = mprotect;
21875#endif
21876#ifdef __cplusplus
21877}
John Criswell7a73b802003-06-30 21:59:07 +000021878#endif
21879
John Criswell392aaa32003-07-22 19:18:09 +000021880int
21881main ()
21882{
21883return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021884 ;
21885 return 0;
21886}
21887_ACEOF
21888rm -f conftest.$ac_objext conftest$ac_exeext
21889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21890 (eval $ac_link) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
21894 { ac_try='test -s conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_cv_func_mprotect=yes
21901else
21902 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021903sed 's/^/| /' conftest.$ac_ext >&5
21904
John Criswell7a73b802003-06-30 21:59:07 +000021905ac_cv_func_mprotect=no
21906fi
21907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21908fi
21909echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21910echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21911if test $ac_cv_func_mprotect = yes; then
21912 :
21913else
21914 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21915echo "$as_me: error: Function mprotect() required but not found" >&2;}
21916 { (exit 1); exit 1; }; }
21917fi
21918
21919
21920# Check whether --enable-purify or --disable-purify was given.
21921if test "${enable_purify+set}" = set; then
21922 enableval="$enable_purify"
21923 ENABLE_PURIFY=ENABLE_PURIFY=1
21924
21925else
21926 ENABLE_PURIFY=
21927
21928fi;
John Criswell7a73b802003-06-30 21:59:07 +000021929# Check whether --enable-optimized or --disable-optimized was given.
21930if test "${enable_optimized+set}" = set; then
21931 enableval="$enable_optimized"
21932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21933
21934else
21935 ENABLE_OPTIMIZED=
21936
21937fi;
21938# Check whether --enable-spec or --disable-spec was given.
21939if test "${enable_spec+set}" = set; then
21940 enableval="$enable_spec"
21941 USE_SPEC=USE_SPEC=1
21942
21943else
21944 USE_SPEC=
21945
21946fi;
21947# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21948if test "${enable_precompiled_bytecode+set}" = set; then
21949 enableval="$enable_precompiled_bytecode"
21950 UPB=USE_PRECOMPILED_BYTECODE=1
21951
21952else
21953 UPB=
21954
21955fi;
21956case $build in
21957 *i*86*) # Check whether --enable-jit or --disable-jit was given.
21958if test "${enable_jit+set}" = set; then
21959 enableval="$enable_jit"
21960 JIT=TARGET_HAS_JIT=1
21961
21962else
21963 JIT=
21964
21965fi;
21966 ;;
21967 *)
21968 ;;
21969esac
21970
21971
21972# Check whether --with-spec or --without-spec was given.
21973if test "${with_spec+set}" = set; then
21974 withval="$with_spec"
21975 SPEC_ROOT=$withval
21976
21977else
21978 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21979
21980fi;
21981
21982# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21983if test "${with_llvmgccdir+set}" = set; then
21984 withval="$with_llvmgccdir"
21985 LLVMGCCDIR=$withval
21986
21987fi;
21988
21989# Check whether --with-bcrepos or --without-bcrepos was given.
21990if test "${with_bcrepos+set}" = set; then
21991 withval="$with_bcrepos"
21992 BCR=$withval
21993
21994else
21995 BCR=/home/vadve/lattner/LLVMPrograms
21996
21997fi;
21998
21999# Check whether --with-papi or --without-papi was given.
22000if test "${with_papi+set}" = set; then
22001 withval="$with_papi"
22002 PAPIDIR=$withval
22003
22004else
22005 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
22006
22007fi;
22008
22009# Check whether --with-objroot or --without-objroot was given.
22010if test "${with_objroot+set}" = set; then
22011 withval="$with_objroot"
22012 OBJROOT=$withval
22013
22014else
22015 OBJROOT=.
22016
22017fi;
22018
22019# Check whether --with-purify or --without-purify was given.
22020if test "${with_purify+set}" = set; then
22021 withval="$with_purify"
22022 PURIFY=$withval
22023
22024fi;
22025
John Criswell392aaa32003-07-22 19:18:09 +000022026 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022027cat >confcache <<\_ACEOF
22028# This file is a shell script that caches the results of configure
22029# tests run on this system so they can be shared between configure
22030# scripts and configure runs, see configure's option --config-cache.
22031# It is not useful on other systems. If it contains results you don't
22032# want to keep, you may remove or edit it.
22033#
22034# config.status only pays attention to the cache file if you give it
22035# the --recheck option to rerun configure.
22036#
John Criswell392aaa32003-07-22 19:18:09 +000022037# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022038# loading this file, other *unset* `ac_cv_foo' will be assigned the
22039# following values.
22040
22041_ACEOF
22042
22043# The following way of writing the cache mishandles newlines in values,
22044# but we know of no workaround that is simple, portable, and efficient.
22045# So, don't put newlines in cache variables' values.
22046# Ultrix sh set writes to stderr and can't be redirected directly,
22047# and sets the high bit in the cache file unless we assign to the vars.
22048{
22049 (set) 2>&1 |
22050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22051 *ac_space=\ *)
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22054 sed -n \
22055 "s/'/'\\\\''/g;
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22057 ;;
22058 *)
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22060 sed -n \
22061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22062 ;;
22063 esac;
22064} |
22065 sed '
22066 t clear
22067 : clear
22068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22069 t end
22070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22071 : end' >>confcache
John Criswell392aaa32003-07-22 19:18:09 +000022072if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022073 if test -w $cache_file; then
22074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075 cat confcache >$cache_file
22076 else
22077 echo "not updating unwritable cache $cache_file"
22078 fi
22079fi
22080rm -f confcache
22081
22082test "x$prefix" = xNONE && prefix=$ac_default_prefix
22083# Let make expand exec_prefix.
22084test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22085
22086# VPATH may cause trouble with some makes, so we remove $(srcdir),
22087# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088# trailing colons and then remove the whole line if VPATH becomes empty
22089# (actually we leave an empty line to preserve line numbers).
22090if test "x$srcdir" = x.; then
22091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22092s/:*\$(srcdir):*/:/;
22093s/:*\${srcdir}:*/:/;
22094s/:*@srcdir@:*/:/;
22095s/^\([^=]*=[ ]*\):*/\1/;
22096s/:*$//;
22097s/^[^=]*=[ ]*$//;
22098}'
22099fi
22100
22101DEFS=-DHAVE_CONFIG_H
22102
John Criswell392aaa32003-07-22 19:18:09 +000022103ac_libobjs=
22104ac_ltlibobjs=
22105for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22106 # 1. Remove the extension, and $U if already installed.
22107 ac_i=`echo "$ac_i" |
22108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22109 # 2. Add them.
22110 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22111 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22112done
22113LIBOBJS=$ac_libobjs
22114
22115LTLIBOBJS=$ac_ltlibobjs
22116
22117
John Criswell7a73b802003-06-30 21:59:07 +000022118
22119: ${CONFIG_STATUS=./config.status}
22120ac_clean_files_save=$ac_clean_files
22121ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22122{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124cat >$CONFIG_STATUS <<_ACEOF
22125#! $SHELL
22126# Generated by $as_me.
22127# Run this file to recreate the current configuration.
22128# Compiler output produced by configure, useful for debugging
22129# configure, is in config.log if it exists.
22130
22131debug=false
John Criswell392aaa32003-07-22 19:18:09 +000022132ac_cs_recheck=false
22133ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022134SHELL=\${CONFIG_SHELL-$SHELL}
22135_ACEOF
22136
22137cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022138## --------------------- ##
22139## M4sh Initialization. ##
22140## --------------------- ##
22141
22142# Be Bourne compatible
22143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22144 emulate sh
22145 NULLCMD=:
John Criswell392aaa32003-07-22 19:18:09 +000022146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147 # is contrary to our usage. Disable this feature.
22148 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022149elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22150 set -o posix
22151fi
22152
John Criswell7a73b802003-06-30 21:59:07 +000022153# Support unset when possible.
22154if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22155 as_unset=unset
22156else
22157 as_unset=false
22158fi
22159
John Criswell392aaa32003-07-22 19:18:09 +000022160
22161# Work around bugs in pre-3.0 UWIN ksh.
22162$as_unset ENV MAIL MAILPATH
22163PS1='$ '
22164PS2='> '
22165PS4='+ '
22166
22167# NLS nuisances.
22168for as_var in \
22169 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22170 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22171 LC_TELEPHONE LC_TIME
22172do
22173 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22174 eval $as_var=C; export $as_var
22175 else
22176 $as_unset $as_var
22177 fi
22178done
22179
22180# Required to use basename.
22181if expr a : '\(a\)' >/dev/null 2>&1; then
22182 as_expr=expr
22183else
22184 as_expr=false
22185fi
22186
22187if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22188 as_basename=basename
22189else
22190 as_basename=false
22191fi
John Criswell7a73b802003-06-30 21:59:07 +000022192
22193
22194# Name of the executable.
John Criswell392aaa32003-07-22 19:18:09 +000022195as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022196$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22197 X"$0" : 'X\(//\)$' \| \
22198 X"$0" : 'X\(/\)$' \| \
22199 . : '\(.\)' 2>/dev/null ||
22200echo X/"$0" |
22201 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22202 /^X\/\(\/\/\)$/{ s//\1/; q; }
22203 /^X\/\(\/\).*/{ s//\1/; q; }
22204 s/.*/./; q'`
22205
John Criswell392aaa32003-07-22 19:18:09 +000022206
John Criswell7a73b802003-06-30 21:59:07 +000022207# PATH needs CR, and LINENO needs CR and PATH.
22208# Avoid depending upon Character Ranges.
22209as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22210as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22211as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22212as_cr_digits='0123456789'
22213as_cr_alnum=$as_cr_Letters$as_cr_digits
22214
22215# The user is always right.
22216if test "${PATH_SEPARATOR+set}" != set; then
John Criswell392aaa32003-07-22 19:18:09 +000022217 echo "#! /bin/sh" >conf$$.sh
22218 echo "exit 0" >>conf$$.sh
22219 chmod +x conf$$.sh
22220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022221 PATH_SEPARATOR=';'
22222 else
22223 PATH_SEPARATOR=:
22224 fi
John Criswell392aaa32003-07-22 19:18:09 +000022225 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022226fi
22227
22228
22229 as_lineno_1=$LINENO
22230 as_lineno_2=$LINENO
22231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22232 test "x$as_lineno_1" != "x$as_lineno_2" &&
22233 test "x$as_lineno_3" = "x$as_lineno_2" || {
22234 # Find who we are. Look in the path if we contain no path at all
22235 # relative or not.
22236 case $0 in
22237 *[\\/]* ) as_myself=$0 ;;
22238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22239for as_dir in $PATH
22240do
22241 IFS=$as_save_IFS
22242 test -z "$as_dir" && as_dir=.
22243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22244done
22245
22246 ;;
22247 esac
22248 # We did not find ourselves, most probably we were run as `sh COMMAND'
22249 # in which case we are not to be found in the path.
22250 if test "x$as_myself" = x; then
22251 as_myself=$0
22252 fi
22253 if test ! -f "$as_myself"; then
22254 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22255echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22256 { (exit 1); exit 1; }; }
22257 fi
22258 case $CONFIG_SHELL in
22259 '')
22260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22261for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22262do
22263 IFS=$as_save_IFS
22264 test -z "$as_dir" && as_dir=.
22265 for as_base in sh bash ksh sh5; do
22266 case $as_dir in
22267 /*)
22268 if ("$as_dir/$as_base" -c '
22269 as_lineno_1=$LINENO
22270 as_lineno_2=$LINENO
22271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22272 test "x$as_lineno_1" != "x$as_lineno_2" &&
22273 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell392aaa32003-07-22 19:18:09 +000022274 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22275 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022276 CONFIG_SHELL=$as_dir/$as_base
22277 export CONFIG_SHELL
22278 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22279 fi;;
22280 esac
22281 done
22282done
22283;;
22284 esac
22285
22286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22287 # uniformly replaced by the line number. The first 'sed' inserts a
22288 # line-number line before each line; the second 'sed' does the real
22289 # work. The second script uses 'N' to pair each line-number line
22290 # with the numbered line, and appends trailing '-' during
22291 # substitution so that $LINENO is not a special case at line end.
22292 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22293 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22294 sed '=' <$as_myself |
22295 sed '
22296 N
22297 s,$,-,
22298 : loop
22299 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22300 t loop
22301 s,-$,,
22302 s,^['$as_cr_digits']*\n,,
22303 ' >$as_me.lineno &&
22304 chmod +x $as_me.lineno ||
22305 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22306echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22307 { (exit 1); exit 1; }; }
22308
22309 # Don't try to exec as it changes $[0], causing all sort of problems
22310 # (the dirname of $[0] is not the place where we might find the
22311 # original and so on. Autoconf is especially sensible to this).
22312 . ./$as_me.lineno
22313 # Exit status is that of the last command.
22314 exit
22315}
22316
22317
22318case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22319 *c*,-n*) ECHO_N= ECHO_C='
22320' ECHO_T=' ' ;;
22321 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22322 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22323esac
22324
22325if expr a : '\(a\)' >/dev/null 2>&1; then
22326 as_expr=expr
22327else
22328 as_expr=false
22329fi
22330
22331rm -f conf$$ conf$$.exe conf$$.file
22332echo >conf$$.file
22333if ln -s conf$$.file conf$$ 2>/dev/null; then
22334 # We could just check for DJGPP; but this test a) works b) is more generic
22335 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22336 if test -f conf$$.exe; then
22337 # Don't use ln at all; we don't have any links
22338 as_ln_s='cp -p'
22339 else
22340 as_ln_s='ln -s'
22341 fi
22342elif ln conf$$.file conf$$ 2>/dev/null; then
22343 as_ln_s=ln
22344else
22345 as_ln_s='cp -p'
22346fi
22347rm -f conf$$ conf$$.exe conf$$.file
22348
John Criswell392aaa32003-07-22 19:18:09 +000022349if mkdir -p . 2>/dev/null; then
22350 as_mkdir_p=:
22351else
22352 as_mkdir_p=false
22353fi
22354
John Criswell7a73b802003-06-30 21:59:07 +000022355as_executable_p="test -f"
22356
22357# Sed expression to map a string onto a valid CPP name.
22358as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22359
22360# Sed expression to map a string onto a valid variable name.
22361as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22362
22363
22364# IFS
22365# We need space, tab and new line, in precisely that order.
22366as_nl='
22367'
22368IFS=" $as_nl"
22369
22370# CDPATH.
John Criswell392aaa32003-07-22 19:18:09 +000022371$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022372
22373exec 6>&1
22374
22375# Open the log real soon, to keep \$[0] and so on meaningful, and to
22376# report actual input values of CONFIG_FILES etc. instead of their
22377# values after options handling. Logging --version etc. is OK.
22378exec 5>>config.log
22379{
22380 echo
22381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22382## Running $as_me. ##
22383_ASBOX
22384} >&5
22385cat >&5 <<_CSEOF
22386
22387This file was extended by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +000022388generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022389
22390 CONFIG_FILES = $CONFIG_FILES
22391 CONFIG_HEADERS = $CONFIG_HEADERS
22392 CONFIG_LINKS = $CONFIG_LINKS
22393 CONFIG_COMMANDS = $CONFIG_COMMANDS
22394 $ $0 $@
22395
22396_CSEOF
22397echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22398echo >&5
22399_ACEOF
22400
22401# Files that config.status was made for.
22402if test -n "$ac_config_files"; then
22403 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22404fi
22405
22406if test -n "$ac_config_headers"; then
22407 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22408fi
22409
22410if test -n "$ac_config_links"; then
22411 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22412fi
22413
22414if test -n "$ac_config_commands"; then
22415 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22416fi
22417
22418cat >>$CONFIG_STATUS <<\_ACEOF
22419
22420ac_cs_usage="\
22421\`$as_me' instantiates files from templates according to the
22422current configuration.
22423
22424Usage: $0 [OPTIONS] [FILE]...
22425
22426 -h, --help print this help, then exit
22427 -V, --version print version number, then exit
John Criswell392aaa32003-07-22 19:18:09 +000022428 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022429 -d, --debug don't remove temporary files
22430 --recheck update $as_me by reconfiguring in the same conditions
22431 --file=FILE[:TEMPLATE]
22432 instantiate the configuration file FILE
22433 --header=FILE[:TEMPLATE]
22434 instantiate the configuration header FILE
22435
22436Configuration files:
22437$config_files
22438
22439Configuration headers:
22440$config_headers
22441
22442Report bugs to <bug-autoconf@gnu.org>."
22443_ACEOF
22444
22445cat >>$CONFIG_STATUS <<_ACEOF
22446ac_cs_version="\\
22447[LLVM] config.status [1.0]
John Criswell392aaa32003-07-22 19:18:09 +000022448configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022449 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22450
22451Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22452Free Software Foundation, Inc.
22453This config.status script is free software; the Free Software Foundation
22454gives unlimited permission to copy, distribute and modify it."
22455srcdir=$srcdir
22456INSTALL="$INSTALL"
22457_ACEOF
22458
22459cat >>$CONFIG_STATUS <<\_ACEOF
22460# If no file are specified by the user, then we need to provide default
22461# value. By we need to know if files were specified by the user.
22462ac_need_defaults=:
22463while test $# != 0
22464do
22465 case $1 in
22466 --*=*)
22467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell392aaa32003-07-22 19:18:09 +000022469 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022470 ;;
John Criswell392aaa32003-07-22 19:18:09 +000022471 -*)
22472 ac_option=$1
22473 ac_optarg=$2
22474 ac_shift=shift
22475 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022476 *) # This is not an option, so the user has probably given explicit
22477 # arguments.
John Criswell392aaa32003-07-22 19:18:09 +000022478 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022479 ac_need_defaults=false;;
22480 esac
22481
John Criswell392aaa32003-07-22 19:18:09 +000022482 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022483 # Handling of the options.
22484_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022485cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000022486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22487 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022488 --version | --vers* | -V )
22489 echo "$ac_cs_version"; exit 0 ;;
22490 --he | --h)
22491 # Conflict between --help and --header
22492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22493Try \`$0 --help' for more information." >&5
22494echo "$as_me: error: ambiguous option: $1
22495Try \`$0 --help' for more information." >&2;}
22496 { (exit 1); exit 1; }; };;
22497 --help | --hel | -h )
22498 echo "$ac_cs_usage"; exit 0 ;;
22499 --debug | --d* | -d )
22500 debug=: ;;
22501 --file | --fil | --fi | --f )
John Criswell392aaa32003-07-22 19:18:09 +000022502 $ac_shift
22503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022504 ac_need_defaults=false;;
22505 --header | --heade | --head | --hea )
John Criswell392aaa32003-07-22 19:18:09 +000022506 $ac_shift
22507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022508 ac_need_defaults=false;;
John Criswell392aaa32003-07-22 19:18:09 +000022509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22511 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022512
22513 # This is an error.
22514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22515Try \`$0 --help' for more information." >&5
22516echo "$as_me: error: unrecognized option: $1
22517Try \`$0 --help' for more information." >&2;}
22518 { (exit 1); exit 1; }; } ;;
22519
22520 *) ac_config_targets="$ac_config_targets $1" ;;
22521
22522 esac
22523 shift
22524done
22525
John Criswell392aaa32003-07-22 19:18:09 +000022526ac_configure_extra_args=
22527
22528if $ac_cs_silent; then
22529 exec 6>/dev/null
22530 ac_configure_extra_args="$ac_configure_extra_args --silent"
22531fi
22532
22533_ACEOF
22534cat >>$CONFIG_STATUS <<_ACEOF
22535if \$ac_cs_recheck; then
22536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22538fi
22539
John Criswell7a73b802003-06-30 21:59:07 +000022540_ACEOF
22541
22542
22543
22544
22545
22546cat >>$CONFIG_STATUS <<\_ACEOF
22547for ac_config_target in $ac_config_targets
22548do
22549 case "$ac_config_target" in
22550 # Handling of arguments.
22551 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22552 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22554echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22555 { (exit 1); exit 1; }; };;
22556 esac
22557done
22558
22559# If the user did not use the arguments to specify the items to instantiate,
22560# then the envvar interface is used. Set only those that are not.
22561# We use the long form for the default assignment because of an extremely
22562# bizarre bug on SunOS 4.1.3.
22563if $ac_need_defaults; then
22564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22566fi
22567
John Criswell392aaa32003-07-22 19:18:09 +000022568# Have a temporary directory for convenience. Make it in the build tree
22569# simply because there is no reason to put it here, and in addition,
22570# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022571# Create a temporary directory, and hook for its removal unless debugging.
22572$debug ||
22573{
22574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22575 trap '{ (exit 1); exit 1; }' 1 2 13 15
22576}
22577
22578# Create a (secure) tmp directory for tmp files.
John Criswell392aaa32003-07-22 19:18:09 +000022579
John Criswell7a73b802003-06-30 21:59:07 +000022580{
John Criswell392aaa32003-07-22 19:18:09 +000022581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022582 test -n "$tmp" && test -d "$tmp"
22583} ||
22584{
John Criswell392aaa32003-07-22 19:18:09 +000022585 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022586 (umask 077 && mkdir $tmp)
22587} ||
22588{
John Criswell392aaa32003-07-22 19:18:09 +000022589 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022590 { (exit 1); exit 1; }
22591}
22592
22593_ACEOF
22594
22595cat >>$CONFIG_STATUS <<_ACEOF
22596
22597#
22598# CONFIG_FILES section.
22599#
22600
22601# No need to generate the scripts if there are no CONFIG_FILES.
22602# This happens for instance when ./config.status config.h
22603if test -n "\$CONFIG_FILES"; then
22604 # Protect against being on the right side of a sed subst in config.status.
22605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22607s,@SHELL@,$SHELL,;t t
22608s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22609s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22610s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22611s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22612s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22613s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22614s,@exec_prefix@,$exec_prefix,;t t
22615s,@prefix@,$prefix,;t t
22616s,@program_transform_name@,$program_transform_name,;t t
22617s,@bindir@,$bindir,;t t
22618s,@sbindir@,$sbindir,;t t
22619s,@libexecdir@,$libexecdir,;t t
22620s,@datadir@,$datadir,;t t
22621s,@sysconfdir@,$sysconfdir,;t t
22622s,@sharedstatedir@,$sharedstatedir,;t t
22623s,@localstatedir@,$localstatedir,;t t
22624s,@libdir@,$libdir,;t t
22625s,@includedir@,$includedir,;t t
22626s,@oldincludedir@,$oldincludedir,;t t
22627s,@infodir@,$infodir,;t t
22628s,@mandir@,$mandir,;t t
22629s,@build_alias@,$build_alias,;t t
22630s,@host_alias@,$host_alias,;t t
22631s,@target_alias@,$target_alias,;t t
22632s,@DEFS@,$DEFS,;t t
22633s,@ECHO_C@,$ECHO_C,;t t
22634s,@ECHO_N@,$ECHO_N,;t t
22635s,@ECHO_T@,$ECHO_T,;t t
22636s,@LIBS@,$LIBS,;t t
22637s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22638s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22639s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22640s,@build@,$build,;t t
22641s,@build_cpu@,$build_cpu,;t t
22642s,@build_vendor@,$build_vendor,;t t
22643s,@build_os@,$build_os,;t t
22644s,@host@,$host,;t t
22645s,@host_cpu@,$host_cpu,;t t
22646s,@host_vendor@,$host_vendor,;t t
22647s,@host_os@,$host_os,;t t
22648s,@target@,$target,;t t
22649s,@target_cpu@,$target_cpu,;t t
22650s,@target_vendor@,$target_vendor,;t t
22651s,@target_os@,$target_os,;t t
22652s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022653s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022654s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022655s,@CXX@,$CXX,;t t
22656s,@CXXFLAGS@,$CXXFLAGS,;t t
22657s,@LDFLAGS@,$LDFLAGS,;t t
22658s,@CPPFLAGS@,$CPPFLAGS,;t t
22659s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22660s,@EXEEXT@,$EXEEXT,;t t
22661s,@OBJEXT@,$OBJEXT,;t t
22662s,@CC@,$CC,;t t
22663s,@CFLAGS@,$CFLAGS,;t t
22664s,@ac_ct_CC@,$ac_ct_CC,;t t
22665s,@CPP@,$CPP,;t t
22666s,@ifGNUmake@,$ifGNUmake,;t t
22667s,@LEX@,$LEX,;t t
22668s,@LEXLIB@,$LEXLIB,;t t
22669s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22670s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022671s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022672s,@LN_S@,$LN_S,;t t
22673s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022674s,@AR@,$AR,;t t
22675s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022676s,@RANLIB@,$RANLIB,;t t
22677s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22678s,@STRIP@,$STRIP,;t t
22679s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022680s,@CXXCPP@,$CXXCPP,;t t
22681s,@F77@,$F77,;t t
22682s,@FFLAGS@,$FFLAGS,;t t
22683s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022684s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022685s,@SED@,$SED,;t t
22686s,@RM@,$RM,;t t
22687s,@MKDIR@,$MKDIR,;t t
22688s,@DATE@,$DATE,;t t
22689s,@MV@,$MV,;t t
22690s,@DOT@,$DOT,;t t
22691s,@ETAGS@,$ETAGS,;t t
22692s,@PURIFY@,$PURIFY,;t t
22693s,@ALLOCA@,$ALLOCA,;t t
22694s,@LIBOBJS@,$LIBOBJS,;t t
22695s,@MMAP_FILE@,$MMAP_FILE,;t t
22696s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022697s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22698s,@USE_SPEC@,$USE_SPEC,;t t
22699s,@UPB@,$UPB,;t t
22700s,@JIT@,$JIT,;t t
22701s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22702s,@BCR@,$BCR,;t t
22703s,@PAPIDIR@,$PAPIDIR,;t t
22704s,@OBJROOT@,$OBJROOT,;t t
John Criswell392aaa32003-07-22 19:18:09 +000022705s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022706CEOF
22707
22708_ACEOF
22709
22710 cat >>$CONFIG_STATUS <<\_ACEOF
22711 # Split the substitutions into bite-sized pieces for seds with
22712 # small command number limits, like on Digital OSF/1 and HP-UX.
22713 ac_max_sed_lines=48
22714 ac_sed_frag=1 # Number of current file.
22715 ac_beg=1 # First line for current file.
22716 ac_end=$ac_max_sed_lines # Line after last line for current file.
22717 ac_more_lines=:
22718 ac_sed_cmds=
22719 while $ac_more_lines; do
22720 if test $ac_beg -gt 1; then
22721 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22722 else
22723 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22724 fi
22725 if test ! -s $tmp/subs.frag; then
22726 ac_more_lines=false
22727 else
22728 # The purpose of the label and of the branching condition is to
22729 # speed up the sed processing (if there are no `@' at all, there
22730 # is no need to browse any of the substitutions).
22731 # These are the two extra sed commands mentioned above.
22732 (echo ':t
22733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22734 if test -z "$ac_sed_cmds"; then
22735 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22736 else
22737 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22738 fi
22739 ac_sed_frag=`expr $ac_sed_frag + 1`
22740 ac_beg=$ac_end
22741 ac_end=`expr $ac_end + $ac_max_sed_lines`
22742 fi
22743 done
22744 if test -z "$ac_sed_cmds"; then
22745 ac_sed_cmds=cat
22746 fi
22747fi # test -n "$CONFIG_FILES"
22748
22749_ACEOF
22750cat >>$CONFIG_STATUS <<\_ACEOF
22751for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22753 case $ac_file in
22754 - | *:- | *:-:* ) # input from stdin
22755 cat >$tmp/stdin
22756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22760 * ) ac_file_in=$ac_file.in ;;
22761 esac
22762
22763 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22766 X"$ac_file" : 'X\(//\)[^/]' \| \
22767 X"$ac_file" : 'X\(//\)$' \| \
22768 X"$ac_file" : 'X\(/\)' \| \
22769 . : '\(.\)' 2>/dev/null ||
22770echo X"$ac_file" |
22771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22773 /^X\(\/\/\)$/{ s//\1/; q; }
22774 /^X\(\/\).*/{ s//\1/; q; }
22775 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000022776 { if $as_mkdir_p; then
22777 mkdir -p "$ac_dir"
22778 else
22779 as_dir="$ac_dir"
22780 as_dirs=
22781 while test ! -d "$as_dir"; do
22782 as_dirs="$as_dir $as_dirs"
22783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22784$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22785 X"$as_dir" : 'X\(//\)[^/]' \| \
22786 X"$as_dir" : 'X\(//\)$' \| \
22787 X"$as_dir" : 'X\(/\)' \| \
22788 . : '\(.\)' 2>/dev/null ||
22789echo X"$as_dir" |
22790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22792 /^X\(\/\/\)$/{ s//\1/; q; }
22793 /^X\(\/\).*/{ s//\1/; q; }
22794 s/.*/./; q'`
22795 done
22796 test ! -n "$as_dirs" || mkdir $as_dirs
22797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22798echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22799 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022800
22801 ac_builddir=.
22802
22803if test "$ac_dir" != .; then
22804 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22805 # A "../" for each directory in $ac_dir_suffix.
22806 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22807else
22808 ac_dir_suffix= ac_top_builddir=
22809fi
22810
22811case $srcdir in
22812 .) # No --srcdir option. We are building in place.
22813 ac_srcdir=.
22814 if test -z "$ac_top_builddir"; then
22815 ac_top_srcdir=.
22816 else
22817 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22818 fi ;;
22819 [\\/]* | ?:[\\/]* ) # Absolute path.
22820 ac_srcdir=$srcdir$ac_dir_suffix;
22821 ac_top_srcdir=$srcdir ;;
22822 *) # Relative path.
22823 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22824 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22825esac
22826# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22827# absolute.
22828ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +000022829ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000022830ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22831ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22832
22833
22834 case $INSTALL in
22835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22836 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22837 esac
22838
22839 if test x"$ac_file" != x-; then
22840 { echo "$as_me:$LINENO: creating $ac_file" >&5
22841echo "$as_me: creating $ac_file" >&6;}
22842 rm -f "$ac_file"
22843 fi
22844 # Let's still pretend it is `configure' which instantiates (i.e., don't
22845 # use $as_me), people would be surprised to read:
22846 # /* config.h. Generated by config.status. */
22847 if test x"$ac_file" = x-; then
22848 configure_input=
22849 else
22850 configure_input="$ac_file. "
22851 fi
22852 configure_input=$configure_input"Generated from `echo $ac_file_in |
22853 sed 's,.*/,,'` by configure."
22854
22855 # First look for the input files in the build tree, otherwise in the
22856 # src tree.
22857 ac_file_inputs=`IFS=:
22858 for f in $ac_file_in; do
22859 case $f in
22860 -) echo $tmp/stdin ;;
22861 [\\/$]*)
22862 # Absolute (can't be DOS-style, as IFS=:)
22863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22864echo "$as_me: error: cannot find input file: $f" >&2;}
22865 { (exit 1); exit 1; }; }
22866 echo $f;;
22867 *) # Relative
22868 if test -f "$f"; then
22869 # Build tree
22870 echo $f
22871 elif test -f "$srcdir/$f"; then
22872 # Source tree
22873 echo $srcdir/$f
22874 else
22875 # /dev/null tree
22876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22877echo "$as_me: error: cannot find input file: $f" >&2;}
22878 { (exit 1); exit 1; }; }
22879 fi;;
22880 esac
22881 done` || { (exit 1); exit 1; }
22882_ACEOF
22883cat >>$CONFIG_STATUS <<_ACEOF
22884 sed "$ac_vpsub
22885$extrasub
22886_ACEOF
22887cat >>$CONFIG_STATUS <<\_ACEOF
22888:t
22889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22890s,@configure_input@,$configure_input,;t t
22891s,@srcdir@,$ac_srcdir,;t t
22892s,@abs_srcdir@,$ac_abs_srcdir,;t t
22893s,@top_srcdir@,$ac_top_srcdir,;t t
22894s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22895s,@builddir@,$ac_builddir,;t t
22896s,@abs_builddir@,$ac_abs_builddir,;t t
22897s,@top_builddir@,$ac_top_builddir,;t t
22898s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22899s,@INSTALL@,$ac_INSTALL,;t t
22900" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22901 rm -f $tmp/stdin
22902 if test x"$ac_file" != x-; then
22903 mv $tmp/out $ac_file
22904 else
22905 cat $tmp/out
22906 rm -f $tmp/out
22907 fi
22908
22909done
22910_ACEOF
22911cat >>$CONFIG_STATUS <<\_ACEOF
22912
22913#
22914# CONFIG_HEADER section.
22915#
22916
22917# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22918# NAME is the cpp macro being defined and VALUE is the value it is being given.
22919#
22920# ac_d sets the value in "#define NAME VALUE" lines.
22921ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22922ac_dB='[ ].*$,\1#\2'
22923ac_dC=' '
22924ac_dD=',;t'
22925# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22926ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22927ac_uB='$,\1#\2define\3'
22928ac_uC=' '
22929ac_uD=',;t'
22930
22931for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22933 case $ac_file in
22934 - | *:- | *:-:* ) # input from stdin
22935 cat >$tmp/stdin
22936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22940 * ) ac_file_in=$ac_file.in ;;
22941 esac
22942
22943 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22944echo "$as_me: creating $ac_file" >&6;}
22945
22946 # First look for the input files in the build tree, otherwise in the
22947 # src tree.
22948 ac_file_inputs=`IFS=:
22949 for f in $ac_file_in; do
22950 case $f in
22951 -) echo $tmp/stdin ;;
22952 [\\/$]*)
22953 # Absolute (can't be DOS-style, as IFS=:)
22954 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22955echo "$as_me: error: cannot find input file: $f" >&2;}
22956 { (exit 1); exit 1; }; }
22957 echo $f;;
22958 *) # Relative
22959 if test -f "$f"; then
22960 # Build tree
22961 echo $f
22962 elif test -f "$srcdir/$f"; then
22963 # Source tree
22964 echo $srcdir/$f
22965 else
22966 # /dev/null tree
22967 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22968echo "$as_me: error: cannot find input file: $f" >&2;}
22969 { (exit 1); exit 1; }; }
22970 fi;;
22971 esac
22972 done` || { (exit 1); exit 1; }
22973 # Remove the trailing spaces.
22974 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22975
22976_ACEOF
22977
22978# Transform confdefs.h into two sed scripts, `conftest.defines' and
22979# `conftest.undefs', that substitutes the proper values into
22980# config.h.in to produce config.h. The first handles `#define'
22981# templates, and the second `#undef' templates.
22982# And first: Protect against being on the right side of a sed subst in
22983# config.status. Protect against being in an unquoted here document
22984# in config.status.
22985rm -f conftest.defines conftest.undefs
22986# Using a here document instead of a string reduces the quoting nightmare.
22987# Putting comments in sed scripts is not portable.
22988#
22989# `end' is used to avoid that the second main sed command (meant for
22990# 0-ary CPP macros) applies to n-ary macro definitions.
22991# See the Autoconf documentation for `clear'.
22992cat >confdef2sed.sed <<\_ACEOF
22993s/[\\&,]/\\&/g
22994s,[\\$`],\\&,g
22995t clear
22996: clear
22997s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22998t end
22999s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23000: end
23001_ACEOF
23002# If some macros were called several times there might be several times
23003# the same #defines, which is useless. Nevertheless, we may not want to
23004# sort them, since we want the *last* AC-DEFINE to be honored.
23005uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23006sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23007rm -f confdef2sed.sed
23008
23009# This sed command replaces #undef with comments. This is necessary, for
23010# example, in the case of _POSIX_SOURCE, which is predefined and required
23011# on some systems where configure will not decide to define it.
23012cat >>conftest.undefs <<\_ACEOF
23013s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23014_ACEOF
23015
23016# Break up conftest.defines because some shells have a limit on the size
23017# of here documents, and old seds have small limits too (100 cmds).
23018echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell392aaa32003-07-22 19:18:09 +000023019echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023020echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23021echo ' :' >>$CONFIG_STATUS
23022rm -f conftest.tail
23023while grep . conftest.defines >/dev/null
23024do
23025 # Write a limited-size here document to $tmp/defines.sed.
23026 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23027 # Speed up: don't consider the non `#define' lines.
23028 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23029 # Work around the forget-to-reset-the-flag bug.
23030 echo 't clr' >>$CONFIG_STATUS
23031 echo ': clr' >>$CONFIG_STATUS
23032 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23033 echo 'CEOF
23034 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23035 rm -f $tmp/in
23036 mv $tmp/out $tmp/in
23037' >>$CONFIG_STATUS
23038 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23039 rm -f conftest.defines
23040 mv conftest.tail conftest.defines
23041done
23042rm -f conftest.defines
John Criswell392aaa32003-07-22 19:18:09 +000023043echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023044echo >>$CONFIG_STATUS
23045
23046# Break up conftest.undefs because some shells have a limit on the size
23047# of here documents, and old seds have small limits too (100 cmds).
23048echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23049rm -f conftest.tail
23050while grep . conftest.undefs >/dev/null
23051do
23052 # Write a limited-size here document to $tmp/undefs.sed.
23053 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23054 # Speed up: don't consider the non `#undef'
23055 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23056 # Work around the forget-to-reset-the-flag bug.
23057 echo 't clr' >>$CONFIG_STATUS
23058 echo ': clr' >>$CONFIG_STATUS
23059 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23060 echo 'CEOF
23061 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23062 rm -f $tmp/in
23063 mv $tmp/out $tmp/in
23064' >>$CONFIG_STATUS
23065 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23066 rm -f conftest.undefs
23067 mv conftest.tail conftest.undefs
23068done
23069rm -f conftest.undefs
23070
23071cat >>$CONFIG_STATUS <<\_ACEOF
23072 # Let's still pretend it is `configure' which instantiates (i.e., don't
23073 # use $as_me), people would be surprised to read:
23074 # /* config.h. Generated by config.status. */
23075 if test x"$ac_file" = x-; then
23076 echo "/* Generated by configure. */" >$tmp/config.h
23077 else
23078 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23079 fi
23080 cat $tmp/in >>$tmp/config.h
23081 rm -f $tmp/in
23082 if test x"$ac_file" != x-; then
John Criswell392aaa32003-07-22 19:18:09 +000023083 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023084 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23085echo "$as_me: $ac_file is unchanged" >&6;}
23086 else
23087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23088$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089 X"$ac_file" : 'X\(//\)[^/]' \| \
23090 X"$ac_file" : 'X\(//\)$' \| \
23091 X"$ac_file" : 'X\(/\)' \| \
23092 . : '\(.\)' 2>/dev/null ||
23093echo X"$ac_file" |
23094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23096 /^X\(\/\/\)$/{ s//\1/; q; }
23097 /^X\(\/\).*/{ s//\1/; q; }
23098 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000023099 { if $as_mkdir_p; then
23100 mkdir -p "$ac_dir"
23101 else
23102 as_dir="$ac_dir"
23103 as_dirs=
23104 while test ! -d "$as_dir"; do
23105 as_dirs="$as_dir $as_dirs"
23106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23108 X"$as_dir" : 'X\(//\)[^/]' \| \
23109 X"$as_dir" : 'X\(//\)$' \| \
23110 X"$as_dir" : 'X\(/\)' \| \
23111 . : '\(.\)' 2>/dev/null ||
23112echo X"$as_dir" |
23113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23115 /^X\(\/\/\)$/{ s//\1/; q; }
23116 /^X\(\/\).*/{ s//\1/; q; }
23117 s/.*/./; q'`
23118 done
23119 test ! -n "$as_dirs" || mkdir $as_dirs
23120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23121echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23122 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023123
23124 rm -f $ac_file
23125 mv $tmp/config.h $ac_file
23126 fi
23127 else
23128 cat $tmp/config.h
23129 rm -f $tmp/config.h
23130 fi
23131done
23132_ACEOF
23133
23134cat >>$CONFIG_STATUS <<\_ACEOF
23135
23136{ (exit 0); exit 0; }
23137_ACEOF
23138chmod +x $CONFIG_STATUS
23139ac_clean_files=$ac_clean_files_save
23140
23141
23142# configure is writing to config.log, and then calls config.status.
23143# config.status does its own redirection, appending to config.log.
23144# Unfortunately, on DOS this fails, as config.log is still kept open
23145# by configure, so config.status won't be able to write to it; its
23146# output is simply discarded. So we exec the FD to /dev/null,
23147# effectively closing config.log, so it can be properly (re)opened and
23148# appended to by config.status. When coming back to configure, we
23149# need to make the FD available again.
23150if test "$no_create" != yes; then
23151 ac_cs_success=:
John Criswell392aaa32003-07-22 19:18:09 +000023152 ac_config_status_args=
23153 test "$silent" = yes &&
23154 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023155 exec 5>/dev/null
John Criswell392aaa32003-07-22 19:18:09 +000023156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023157 exec 5>>config.log
23158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23159 # would make configure fail if this is the last instruction.
23160 $ac_cs_success || { (exit 1); exit 1; }
23161fi
23162