blob: f0759bb519a82537de92704527b5a1c0256afb78 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
a.rottmann964dbb12004-02-26 19:47:42 +00003# Generated by GNU Autoconf 2.59.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann964dbb12004-02-26 19:47:42 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
a.rottmann964dbb12004-02-26 19:47:42 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
24# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
a.rottmann964dbb12004-02-26 19:47:42 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
drh75897232000-05-29 14:26:00 +0000243
a.rottmann84e63352003-03-24 09:42:16 +0000244
drh71eb93e2001-09-28 01:34:43 +0000245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
a.rottmann9bc8b932004-02-29 15:18:31 +0000262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
drh71eb93e2001-09-28 01:34:43 +0000263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000274$*
drh71eb93e2001-09-28 01:34:43 +0000275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
a.rottmann9bc8b932004-02-29 15:18:31 +0000308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000309 for dir in $PATH /usr/ucb; do
a.rottmann9bc8b932004-02-29 15:18:31 +0000310 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000319 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
drh71eb93e2001-09-28 01:34:43 +0000391
drh71eb93e2001-09-28 01:34:43 +0000392
a.rottmann9bc8b932004-02-29 15:18:31 +0000393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
drh71eb93e2001-09-28 01:34:43 +0000398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
drh75897232000-05-29 14:26:00 +0000408ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000409ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000410cross_compiling=no
411subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000412MFLAGS=
413MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
a.rottmann84e63352003-03-24 09:42:16 +0000421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
drh71eb93e2001-09-28 01:34:43 +0000428ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000429# 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
a.rottmann9bc8b932004-02-29 15:18:31 +0000466ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR ENCODING ALLOWATTACHMEM ALLOWRELEASE INMEMORYDB TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TARGET_TCL_LIBS TARGET_TCL_INC TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000467ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000468
469# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000470ac_init_help=
471ac_init_version=false
drh75897232000-05-29 14:26:00 +0000472# The variables have the same names as the options, with
473# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000474cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000475exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000476no_create=
drh75897232000-05-29 14:26:00 +0000477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
drh75897232000-05-29 14:26:00 +0000485verbose=
486x_includes=NONE
487x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
drh75897232000-05-29 14:26:00 +0000507ac_prev=
508for ac_option
509do
drh75897232000-05-29 14:26:00 +0000510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
drh71eb93e2001-09-28 01:34:43 +0000517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
drh71eb93e2001-09-28 01:34:43 +0000521 case $ac_option in
drh75897232000-05-29 14:26:00 +0000522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000526 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000527
528 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000529 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000531 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000547 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000548
549 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000551 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000557
558 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000560 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000567 *) ac_optarg=yes ;;
568 esac
drh71eb93e2001-09-28 01:34:43 +0000569 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000578 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
drh71eb93e2001-09-28 01:34:43 +0000584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000590
591 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000592 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000593 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000594 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000601 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000606 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000611 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000618 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000627 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000632 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000639 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000653 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000658 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000665 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000672 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000689 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000699 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000710 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000715 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000720 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000727 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000730 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000732 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
drh71eb93e2001-09-28 01:34:43 +0000737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000739
740 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000742 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000746 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000749 *) ac_optarg=yes ;;
750 esac
drh71eb93e2001-09-28 01:34:43 +0000751 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000752
753 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000755 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000771 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000778 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000779
drh71eb93e2001-09-28 01:34:43 +0000780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000783 ;;
784
drh71eb93e2001-09-28 01:34:43 +0000785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
drh75897232000-05-29 14:26:00 +0000795 *)
drh71eb93e2001-09-28 01:34:43 +0000796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000810fi
811
drh71eb93e2001-09-28 01:34:43 +0000812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000814do
drh71eb93e2001-09-28 01:34:43 +0000815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
821done
822
drh71eb93e2001-09-28 01:34:43 +0000823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a.rottmann964dbb12004-02-26 19:47:42 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
drh71eb93e2001-09-28 01:34:43 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000831 { (exit 1); exit 1; }; };;
832 esac
833done
drh75897232000-05-29 14:26:00 +0000834
drh71eb93e2001-09-28 01:34:43 +0000835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000837# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000838build=$build_alias
839host=$host_alias
840target=$target_alias
drh75897232000-05-29 14:26:00 +0000841
a.rottmann84e63352003-03-24 09:42:16 +0000842# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000857
a.rottmann84e63352003-03-24 09:42:16 +0000858
drh75897232000-05-29 14:26:00 +0000859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000885 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000886 else
a.rottmann84e63352003-03-24 09:42:16 +0000887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000888 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000889 fi
890fi
a.rottmann84e63352003-03-24 09:42:16 +0000891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
a.rottmann9bc8b932004-02-29 15:18:31 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
drh75897232000-05-29 14:26:00 +0000947
drh71eb93e2001-09-28 01:34:43 +0000948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000954 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
a.rottmann84e63352003-03-24 09:42:16 +0000975_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000976
a.rottmann84e63352003-03-24 09:42:16 +0000977 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000980 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000982 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +00001004_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001005
a.rottmann84e63352003-03-24 09:42:16 +00001006 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001007
1008System types:
1009 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001012fi
1013
1014if test -n "$ac_init_help"; then
1015
a.rottmann84e63352003-03-24 09:42:16 +00001016 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001017
1018Optional Features:
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001021 --enable-shared[=PKGS]
1022 build shared libraries [default=yes]
1023 --enable-static[=PKGS]
1024 build static libraries [default=yes]
1025 --enable-fast-install[=PKGS]
1026 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001027 --disable-libtool-lock avoid locking (might break parallel builds)
1028 --enable-utf8 Use UTF-8 encodings
paulb0208cc2003-04-13 18:26:49 +00001029 --enable-incore-db Support incore database
xdong28f79f72003-09-23 00:35:21 +00001030 --enable-releasemode Support libtool link to release mode
paulb0208cc2003-04-13 18:26:49 +00001031 --enable-tempdb-in-ram Use an in-ram database for temporary tables
drh71eb93e2001-09-28 01:34:43 +00001032
1033Optional Packages:
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001036 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1037 --with-pic try to use only PIC/non-PIC objects [default=use
1038 both]
1039 --with-tags[=TAGS]
1040 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001041 --with-hints=FILE Read configuration options from FILE
1042
1043Some influential environment variables:
1044 CC C compiler command
1045 CFLAGS C compiler flags
1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1047 nonstandard directory <lib dir>
1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049 headers in a nonstandard directory <include dir>
1050 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001051 CXX C++ compiler command
1052 CXXFLAGS C++ compiler flags
1053 CXXCPP C++ preprocessor
1054 F77 Fortran 77 compiler command
1055 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001056
1057Use these variables to override the choices made by `configure' or to help
1058it to find libraries and programs with nonstandard names/locations.
1059
a.rottmann84e63352003-03-24 09:42:16 +00001060_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001061fi
1062
1063if test "$ac_init_help" = "recursive"; then
1064 # If there are subdirs, report their specific --help.
1065 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001066 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1067 test -d $ac_dir || continue
1068 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001069
a.rottmann84e63352003-03-24 09:42:16 +00001070if test "$ac_dir" != .; then
1071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1072 # A "../" for each directory in $ac_dir_suffix.
1073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1074else
1075 ac_dir_suffix= ac_top_builddir=
1076fi
drh71eb93e2001-09-28 01:34:43 +00001077
a.rottmann84e63352003-03-24 09:42:16 +00001078case $srcdir in
1079 .) # No --srcdir option. We are building in place.
1080 ac_srcdir=.
1081 if test -z "$ac_top_builddir"; then
1082 ac_top_srcdir=.
1083 else
1084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1085 fi ;;
1086 [\\/]* | ?:[\\/]* ) # Absolute path.
1087 ac_srcdir=$srcdir$ac_dir_suffix;
1088 ac_top_srcdir=$srcdir ;;
1089 *) # Relative path.
1090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092esac
a.rottmann964dbb12004-02-26 19:47:42 +00001093
1094# Do not use `cd foo && pwd` to compute absolute paths, because
1095# the directories may not exist.
1096case `pwd` in
1097.) ac_abs_builddir="$ac_dir";;
1098*)
1099 case "$ac_dir" in
1100 .) ac_abs_builddir=`pwd`;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_top_builddir=${ac_top_builddir}.;;
1107*)
1108 case ${ac_top_builddir}. in
1109 .) ac_abs_top_builddir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_srcdir=$ac_srcdir;;
1116*)
1117 case $ac_srcdir in
1118 .) ac_abs_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_srcdir=$ac_top_srcdir;;
1125*)
1126 case $ac_top_srcdir in
1127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1130 esac;;
1131esac
a.rottmann84e63352003-03-24 09:42:16 +00001132
1133 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001134 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001135 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001136 echo
a.rottmann84e63352003-03-24 09:42:16 +00001137 $SHELL $ac_srcdir/configure.gnu --help=recursive
1138 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001139 echo
a.rottmann84e63352003-03-24 09:42:16 +00001140 $SHELL $ac_srcdir/configure --help=recursive
1141 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001142 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001143 echo
1144 $ac_configure --help
1145 else
a.rottmann84e63352003-03-24 09:42:16 +00001146 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001147 fi
a.rottmann964dbb12004-02-26 19:47:42 +00001148 cd "$ac_popdir"
drh71eb93e2001-09-28 01:34:43 +00001149 done
1150fi
1151
1152test -n "$ac_init_help" && exit 0
1153if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001154 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001155
a.rottmann964dbb12004-02-26 19:47:42 +00001156Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001157This configure script is free software; the Free Software Foundation
1158gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001159_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001160 exit 0
1161fi
1162exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001163cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001164This file contains any messages produced by compilers while
1165running configure, to aid debugging if configure makes a mistake.
1166
1167It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001168generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001169
1170 $ $0 $@
1171
a.rottmann84e63352003-03-24 09:42:16 +00001172_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001173{
1174cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001175## --------- ##
1176## Platform. ##
1177## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001178
1179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1180uname -m = `(uname -m) 2>/dev/null || echo unknown`
1181uname -r = `(uname -r) 2>/dev/null || echo unknown`
1182uname -s = `(uname -s) 2>/dev/null || echo unknown`
1183uname -v = `(uname -v) 2>/dev/null || echo unknown`
1184
1185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1187
1188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1191hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1195
drh71eb93e2001-09-28 01:34:43 +00001196_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001197
1198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1199for as_dir in $PATH
1200do
1201 IFS=$as_save_IFS
1202 test -z "$as_dir" && as_dir=.
1203 echo "PATH: $as_dir"
1204done
1205
drh71eb93e2001-09-28 01:34:43 +00001206} >&5
1207
a.rottmann84e63352003-03-24 09:42:16 +00001208cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001209
a.rottmann84e63352003-03-24 09:42:16 +00001210
1211## ----------- ##
1212## Core tests. ##
1213## ----------- ##
1214
1215_ACEOF
1216
drh71eb93e2001-09-28 01:34:43 +00001217
1218# Keep a trace of the command line.
1219# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001220# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001221# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001222# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001223ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001224ac_configure_args0=
1225ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001226ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001227ac_must_keep_next=false
1228for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001229do
a.rottmann84e63352003-03-24 09:42:16 +00001230 for ac_arg
1231 do
1232 case $ac_arg in
1233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 continue ;;
1237 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 esac
1240 case $ac_pass in
1241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1242 2)
1243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1244 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001245 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001246 else
a.rottmann964dbb12004-02-26 19:47:42 +00001247 case $ac_arg in
1248 *=* | --config-cache | -C | -disable-* | --disable-* \
1249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1251 | -with-* | --with-* | -without-* | --without-* | --x)
1252 case "$ac_configure_args0 " in
1253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1254 esac
1255 ;;
1256 -* ) ac_must_keep_next=true ;;
1257 esac
a.rottmann84e63352003-03-24 09:42:16 +00001258 fi
1259 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1260 # Get rid of the leading space.
1261 ac_sep=" "
1262 ;;
1263 esac
1264 done
drh71eb93e2001-09-28 01:34:43 +00001265done
a.rottmann84e63352003-03-24 09:42:16 +00001266$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1267$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001268
1269# When interrupted or exit'd, cleanup temporary files, and complete
1270# config.log. We remove comments because anyway the quotes in there
1271# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001272# WARNING: Be sure not to use single quotes in there, as some shells,
1273# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001274trap 'exit_status=$?
1275 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001276 {
1277 echo
1278
1279 cat <<\_ASBOX
1280## ---------------- ##
1281## Cache variables. ##
1282## ---------------- ##
1283_ASBOX
1284 echo
1285 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001286{
1287 (set) 2>&1 |
1288 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1289 *ac_space=\ *)
1290 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001291 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001293 ;;
1294 *)
1295 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001296 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001297 ;;
1298 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001299}
1300 echo
1301
1302 cat <<\_ASBOX
1303## ----------------- ##
1304## Output variables. ##
1305## ----------------- ##
1306_ASBOX
1307 echo
1308 for ac_var in $ac_subst_vars
1309 do
1310 eval ac_val=$`echo $ac_var`
1311 echo "$ac_var='"'"'$ac_val'"'"'"
1312 done | sort
1313 echo
1314
1315 if test -n "$ac_subst_files"; then
1316 cat <<\_ASBOX
1317## ------------- ##
1318## Output files. ##
1319## ------------- ##
1320_ASBOX
1321 echo
1322 for ac_var in $ac_subst_files
1323 do
1324 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001325 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001326 done | sort
1327 echo
1328 fi
1329
1330 if test -s confdefs.h; then
1331 cat <<\_ASBOX
1332## ----------- ##
1333## confdefs.h. ##
1334## ----------- ##
1335_ASBOX
1336 echo
1337 sed "/^$/d" confdefs.h | sort
1338 echo
1339 fi
1340 test "$ac_signal" != 0 &&
1341 echo "$as_me: caught signal $ac_signal"
1342 echo "$as_me: exit $exit_status"
1343 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001344 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001345 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001346 exit $exit_status
1347 ' 0
1348for ac_signal in 1 2 13 15; do
1349 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1350done
1351ac_signal=0
1352
1353# confdefs.h avoids OS command line length limits that DEFS can exceed.
1354rm -rf conftest* confdefs.h
1355# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1356echo >confdefs.h
1357
a.rottmann84e63352003-03-24 09:42:16 +00001358# Predefined preprocessor variables.
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_NAME "$PACKAGE_NAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_VERSION "$PACKAGE_VERSION"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_STRING "$PACKAGE_STRING"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1382_ACEOF
1383
1384
drh71eb93e2001-09-28 01:34:43 +00001385# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001386# Prefer explicitly selected file to automatically selected ones.
1387if test -z "$CONFIG_SITE"; then
1388 if test "x$prefix" != xNONE; then
1389 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1390 else
1391 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1392 fi
1393fi
1394for ac_site_file in $CONFIG_SITE; do
1395 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001396 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001397echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001398 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001399 . "$ac_site_file"
1400 fi
1401done
1402
1403if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001404 # Some versions of bash will fail to source /dev/null (special
1405 # files actually), so we avoid doing that.
1406 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001407 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001408echo "$as_me: loading cache $cache_file" >&6;}
1409 case $cache_file in
1410 [\\/]* | ?:[\\/]* ) . $cache_file;;
1411 *) . ./$cache_file;;
1412 esac
1413 fi
drh75897232000-05-29 14:26:00 +00001414else
a.rottmann84e63352003-03-24 09:42:16 +00001415 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001416echo "$as_me: creating cache $cache_file" >&6;}
1417 >$cache_file
1418fi
1419
1420# Check that the precious variables saved in the cache have kept the same
1421# value.
1422ac_cache_corrupted=false
1423for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001424 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1426 eval ac_new_set=\$ac_env_${ac_var}_set
1427 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1428 eval ac_new_val="\$ac_env_${ac_var}_value"
1429 case $ac_old_set,$ac_new_set in
1430 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001431 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001432echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1433 ac_cache_corrupted=: ;;
1434 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001435 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001436echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1438 ,);;
1439 *)
1440 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001441 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001442echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001443 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001444echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001445 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001446echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001447 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001448 fi;;
1449 esac
a.rottmann84e63352003-03-24 09:42:16 +00001450 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001465echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001467echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001469fi
1470
1471ac_ext=c
drh75897232000-05-29 14:26:00 +00001472ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001476
a.rottmann84e63352003-03-24 09:42:16 +00001477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
drh75897232000-05-29 14:26:00 +00001495
1496# The following RCS revision string applies to configure.in
a.rottmann9bc8b932004-02-29 15:18:31 +00001497# $Revision: 1.21 $
drh75897232000-05-29 14:26:00 +00001498
1499#########
drh71eb93e2001-09-28 01:34:43 +00001500# Programs needed
drh75897232000-05-29 14:26:00 +00001501#
drh71eb93e2001-09-28 01:34:43 +00001502# Check whether --enable-shared or --disable-shared was given.
1503if test "${enable_shared+set}" = set; then
1504 enableval="$enable_shared"
1505 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001506 case $enableval in
1507 yes) enable_shared=yes ;;
1508 no) enable_shared=no ;;
1509 *)
1510 enable_shared=no
1511 # Look at the argument we got. We use all the common list separators.
1512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1513 for pkg in $enableval; do
1514 IFS="$lt_save_ifs"
1515 if test "X$pkg" = "X$p"; then
1516 enable_shared=yes
1517 fi
1518 done
1519 IFS="$lt_save_ifs"
1520 ;;
1521 esac
drh71eb93e2001-09-28 01:34:43 +00001522else
1523 enable_shared=yes
1524fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001525
drh71eb93e2001-09-28 01:34:43 +00001526# Check whether --enable-static or --disable-static was given.
1527if test "${enable_static+set}" = set; then
1528 enableval="$enable_static"
1529 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001530 case $enableval in
1531 yes) enable_static=yes ;;
1532 no) enable_static=no ;;
1533 *)
1534 enable_static=no
1535 # Look at the argument we got. We use all the common list separators.
1536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1537 for pkg in $enableval; do
1538 IFS="$lt_save_ifs"
1539 if test "X$pkg" = "X$p"; then
1540 enable_static=yes
1541 fi
1542 done
1543 IFS="$lt_save_ifs"
1544 ;;
1545 esac
drh71eb93e2001-09-28 01:34:43 +00001546else
1547 enable_static=yes
1548fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001549
drh71eb93e2001-09-28 01:34:43 +00001550# Check whether --enable-fast-install or --disable-fast-install was given.
1551if test "${enable_fast_install+set}" = set; then
1552 enableval="$enable_fast_install"
1553 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001554 case $enableval in
1555 yes) enable_fast_install=yes ;;
1556 no) enable_fast_install=no ;;
1557 *)
1558 enable_fast_install=no
1559 # Look at the argument we got. We use all the common list separators.
1560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1561 for pkg in $enableval; do
1562 IFS="$lt_save_ifs"
1563 if test "X$pkg" = "X$p"; then
1564 enable_fast_install=yes
1565 fi
1566 done
1567 IFS="$lt_save_ifs"
1568 ;;
1569 esac
drh71eb93e2001-09-28 01:34:43 +00001570else
1571 enable_fast_install=yes
1572fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001573
drh71eb93e2001-09-28 01:34:43 +00001574ac_aux_dir=
1575for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1588 fi
1589done
1590if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001592echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1594fi
1595ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599# Make sure we can run config.sub.
1600$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001602echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1604
a.rottmann84e63352003-03-24 09:42:16 +00001605echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001606echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_build_alias=$build_alias
1611test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001620 { (exit 1); exit 1; }; }
1621
1622fi
a.rottmann84e63352003-03-24 09:42:16 +00001623echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001624echo "${ECHO_T}$ac_cv_build" >&6
1625build=$ac_cv_build
1626build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
a.rottmann84e63352003-03-24 09:42:16 +00001630
1631echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001632echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 ac_cv_host_alias=$host_alias
1637test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001641echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
a.rottmann84e63352003-03-24 09:42:16 +00001645echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001646echo "${ECHO_T}$ac_cv_host" >&6
1647host=$ac_cv_host
1648host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
a.rottmann84e63352003-03-24 09:42:16 +00001652
drh71eb93e2001-09-28 01:34:43 +00001653ac_ext=c
1654ac_cpp='$CPP $CPPFLAGS'
1655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1657ac_compiler_gnu=$ac_cv_c_compiler_gnu
1658if test -n "$ac_tool_prefix"; then
1659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1660set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001661echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668else
a.rottmann84e63352003-03-24 09:42:16 +00001669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680done
drh71eb93e2001-09-28 01:34:43 +00001681done
1682
1683fi
1684fi
1685CC=$ac_cv_prog_CC
1686if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001687 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001688echo "${ECHO_T}$CC" >&6
1689else
a.rottmann84e63352003-03-24 09:42:16 +00001690 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001691echo "${ECHO_T}no" >&6
1692fi
1693
1694fi
1695if test -z "$ac_cv_prog_CC"; then
1696 ac_ct_CC=$CC
1697 # Extract the first word of "gcc", so it can be a program name with args.
1698set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001699echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
a.rottmann84e63352003-03-24 09:42:16 +00001707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="gcc"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
drh71eb93e2001-09-28 01:34:43 +00001719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
a.rottmann84e63352003-03-24 09:42:16 +00001728 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001729echo "${ECHO_T}no" >&6
1730fi
1731
1732 CC=$ac_ct_CC
1733else
1734 CC="$ac_cv_prog_CC"
1735fi
1736
1737if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1740set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001741echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746 if test -n "$CC"; then
1747 ac_cv_prog_CC="$CC" # Let the user override the test.
1748else
a.rottmann84e63352003-03-24 09:42:16 +00001749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_CC="${ac_tool_prefix}cc"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1759 fi
1760done
drh71eb93e2001-09-28 01:34:43 +00001761done
1762
1763fi
1764fi
1765CC=$ac_cv_prog_CC
1766if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001767 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001768echo "${ECHO_T}$CC" >&6
1769else
a.rottmann84e63352003-03-24 09:42:16 +00001770 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001771echo "${ECHO_T}no" >&6
1772fi
1773
1774fi
1775if test -z "$ac_cv_prog_CC"; then
1776 ac_ct_CC=$CC
1777 # Extract the first word of "cc", so it can be a program name with args.
1778set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001779echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784 if test -n "$ac_ct_CC"; then
1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786else
a.rottmann84e63352003-03-24 09:42:16 +00001787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_CC="cc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1797 fi
1798done
drh71eb93e2001-09-28 01:34:43 +00001799done
1800
1801fi
1802fi
1803ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001806echo "${ECHO_T}$ac_ct_CC" >&6
1807else
a.rottmann84e63352003-03-24 09:42:16 +00001808 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001809echo "${ECHO_T}no" >&6
1810fi
1811
1812 CC=$ac_ct_CC
1813else
1814 CC="$ac_cv_prog_CC"
1815fi
1816
1817fi
1818if test -z "$CC"; then
1819 # Extract the first word of "cc", so it can be a program name with args.
1820set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001821echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823if test "${ac_cv_prog_CC+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828else
1829 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1838 ac_prog_rejected=yes
1839 continue
1840 fi
1841 ac_cv_prog_CC="cc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
drh71eb93e2001-09-28 01:34:43 +00001846done
1847
1848if test $ac_prog_rejected = yes; then
1849 # We found a bogon in the path, so make sure we never use it.
1850 set dummy $ac_cv_prog_CC
1851 shift
1852 if test $# != 0; then
1853 # We chose a different compiler from the bogus one.
1854 # However, it has the same basename, so the bogon will be chosen
1855 # first if we set CC to just the basename; use the full file name.
1856 shift
a.rottmann84e63352003-03-24 09:42:16 +00001857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001858 fi
1859fi
1860fi
1861fi
1862CC=$ac_cv_prog_CC
1863if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001864 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001865echo "${ECHO_T}$CC" >&6
1866else
a.rottmann84e63352003-03-24 09:42:16 +00001867 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001868echo "${ECHO_T}no" >&6
1869fi
1870
1871fi
1872if test -z "$CC"; then
1873 if test -n "$ac_tool_prefix"; then
1874 for ac_prog in cl
1875 do
1876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001878echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885else
a.rottmann84e63352003-03-24 09:42:16 +00001886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1896 fi
1897done
drh71eb93e2001-09-28 01:34:43 +00001898done
1899
1900fi
1901fi
1902CC=$ac_cv_prog_CC
1903if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001904 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001905echo "${ECHO_T}$CC" >&6
1906else
a.rottmann84e63352003-03-24 09:42:16 +00001907 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001908echo "${ECHO_T}no" >&6
1909fi
1910
1911 test -n "$CC" && break
1912 done
1913fi
1914if test -z "$CC"; then
1915 ac_ct_CC=$CC
1916 for ac_prog in cl
1917do
1918 # Extract the first word of "$ac_prog", so it can be a program name with args.
1919set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001920echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927else
a.rottmann84e63352003-03-24 09:42:16 +00001928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_CC="$ac_prog"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
drh71eb93e2001-09-28 01:34:43 +00001940done
1941
1942fi
1943fi
1944ac_ct_CC=$ac_cv_prog_ac_ct_CC
1945if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001946 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001947echo "${ECHO_T}$ac_ct_CC" >&6
1948else
a.rottmann84e63352003-03-24 09:42:16 +00001949 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001950echo "${ECHO_T}no" >&6
1951fi
1952
1953 test -n "$ac_ct_CC" && break
1954done
1955
1956 CC=$ac_ct_CC
1957fi
1958
1959fi
1960
a.rottmann84e63352003-03-24 09:42:16 +00001961
1962test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1963See \`config.log' for more details." >&5
1964echo "$as_me: error: no acceptable C compiler found in \$PATH
1965See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001966 { (exit 1); exit 1; }; }
1967
1968# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001969echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001970 "checking for C compiler version" >&5
1971ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001972{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001973 (eval $ac_compiler --version </dev/null >&5) 2>&5
1974 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001976 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001977{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001978 (eval $ac_compiler -v </dev/null >&5) 2>&5
1979 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001981 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001983 (eval $ac_compiler -V </dev/null >&5) 2>&5
1984 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001986 (exit $ac_status); }
1987
1988cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001989/* confdefs.h. */
1990_ACEOF
1991cat confdefs.h >>conftest.$ac_ext
1992cat >>conftest.$ac_ext <<_ACEOF
1993/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001994
1995int
1996main ()
1997{
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002004ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002005# Try to create an executable without -o first, disregard a.out.
2006# It will help us diagnose broken compilers, and finding out an intuition
2007# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002008echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2009echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002010ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002011if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002012 (eval $ac_link_default) 2>&5
2013 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002015 (exit $ac_status); }; then
2016 # Find the output, starting from the most likely. This scheme is
2017# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2018# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002019
2020# Be careful to initialize this variable, since it used to be cached.
2021# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022ac_cv_exeext=
2023# b.out is created by i960 compilers.
2024for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2025do
2026 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002027 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002029 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002030 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002031 # This is the source file.
2032 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002033 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002034 # We found the default executable, but exeext='' is most
2035 # certainly right.
2036 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002037 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039 # FIXME: I believe we export ac_cv_exeext for Libtool,
2040 # but it would be cool to find out if it's true. Does anybody
2041 # maintain Libtool? --akim.
2042 export ac_cv_exeext
2043 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002044 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002045 break;;
drh71eb93e2001-09-28 01:34:43 +00002046 esac
2047done
2048else
2049 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: C compiler cannot create executables
2055See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002056 { (exit 77); exit 77; }; }
2057fi
2058
2059ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002060echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002061echo "${ECHO_T}$ac_file" >&6
2062
2063# Check the compiler produces executables we can run. If not, either
2064# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002065echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002066echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2067# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2068# If not cross compiling, check that we can run a simple program.
2069if test "$cross_compiling" != yes; then
2070 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002072 (eval $ac_try) 2>&5
2073 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002075 (exit $ac_status); }; }; then
2076 cross_compiling=no
2077 else
2078 if test "$cross_compiling" = maybe; then
2079 cross_compiling=yes
2080 else
a.rottmann84e63352003-03-24 09:42:16 +00002081 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2082If you meant to cross compile, use \`--host'.
2083See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002084echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002085If you meant to cross compile, use \`--host'.
2086See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002087 { (exit 1); exit 1; }; }
2088 fi
2089 fi
2090fi
a.rottmann84e63352003-03-24 09:42:16 +00002091echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002092echo "${ECHO_T}yes" >&6
2093
a.rottmann84e63352003-03-24 09:42:16 +00002094rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002095ac_clean_files=$ac_clean_files_save
2096# Check the compiler produces executables we can run. If not, either
2097# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002098echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002099echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002100echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002101echo "${ECHO_T}$cross_compiling" >&6
2102
a.rottmann84e63352003-03-24 09:42:16 +00002103echo "$as_me:$LINENO: checking for suffix of executables" >&5
2104echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002106 (eval $ac_link) 2>&5
2107 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002109 (exit $ac_status); }; then
2110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2111# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2112# work properly (i.e., refer to `conftest.exe'), while it won't with
2113# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002114for ac_file in conftest.exe conftest conftest.*; do
2115 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002116 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002119 export ac_cv_exeext
2120 break;;
drh71eb93e2001-09-28 01:34:43 +00002121 * ) break;;
2122 esac
2123done
2124else
a.rottmann84e63352003-03-24 09:42:16 +00002125 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2128See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002129 { (exit 1); exit 1; }; }
2130fi
2131
2132rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002133echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002134echo "${ECHO_T}$ac_cv_exeext" >&6
2135
2136rm -f conftest.$ac_ext
2137EXEEXT=$ac_cv_exeext
2138ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002139echo "$as_me:$LINENO: checking for suffix of object files" >&5
2140echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002141if test "${ac_cv_objext+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002150
2151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002161 (eval $ac_compile) 2>&5
2162 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002164 (exit $ac_status); }; then
2165 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2166 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2169 break;;
2170 esac
2171done
2172else
2173 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: cannot compute suffix of object files: cannot compile
2179See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002180 { (exit 1); exit 1; }; }
2181fi
2182
2183rm -f conftest.$ac_cv_objext conftest.$ac_ext
2184fi
a.rottmann84e63352003-03-24 09:42:16 +00002185echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002186echo "${ECHO_T}$ac_cv_objext" >&6
2187OBJEXT=$ac_cv_objext
2188ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002189echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002190echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2191if test "${ac_cv_c_compiler_gnu+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002195/* confdefs.h. */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002200
2201int
2202main ()
2203{
2204#ifndef __GNUC__
2205 choke me
2206#endif
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002214 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002215 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002220 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002229 (eval $ac_try) 2>&5
2230 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002232 (exit $ac_status); }; }; then
2233 ac_compiler_gnu=yes
2234else
2235 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002236sed 's/^/| /' conftest.$ac_ext >&5
2237
drh71eb93e2001-09-28 01:34:43 +00002238ac_compiler_gnu=no
2239fi
a.rottmann964dbb12004-02-26 19:47:42 +00002240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002241ac_cv_c_compiler_gnu=$ac_compiler_gnu
2242
2243fi
a.rottmann84e63352003-03-24 09:42:16 +00002244echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002245echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2246GCC=`test $ac_compiler_gnu = yes && echo yes`
2247ac_test_CFLAGS=${CFLAGS+set}
2248ac_save_CFLAGS=$CFLAGS
2249CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002250echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002251echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2252if test "${ac_cv_prog_cc_g+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002261
2262int
2263main ()
2264{
2265
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002272 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002273 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002278 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002287 (eval $ac_try) 2>&5
2288 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002290 (exit $ac_status); }; }; then
2291 ac_cv_prog_cc_g=yes
2292else
2293 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002294sed 's/^/| /' conftest.$ac_ext >&5
2295
drh71eb93e2001-09-28 01:34:43 +00002296ac_cv_prog_cc_g=no
2297fi
a.rottmann964dbb12004-02-26 19:47:42 +00002298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002299fi
a.rottmann84e63352003-03-24 09:42:16 +00002300echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002301echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2302if test "$ac_test_CFLAGS" = set; then
2303 CFLAGS=$ac_save_CFLAGS
2304elif test $ac_cv_prog_cc_g = yes; then
2305 if test "$GCC" = yes; then
2306 CFLAGS="-g -O2"
2307 else
2308 CFLAGS="-g"
2309 fi
2310else
2311 if test "$GCC" = yes; then
2312 CFLAGS="-O2"
2313 else
2314 CFLAGS=
2315 fi
2316fi
a.rottmann84e63352003-03-24 09:42:16 +00002317echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2318echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2319if test "${ac_cv_prog_cc_stdc+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 ac_cv_prog_cc_stdc=no
2323ac_save_CC=$CC
2324cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002325/* confdefs.h. */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h. */
2330#include <stdarg.h>
2331#include <stdio.h>
2332#include <sys/types.h>
2333#include <sys/stat.h>
2334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2335struct buf { int x; };
2336FILE * (*rcsopen) (struct buf *, struct stat *, int);
2337static char *e (p, i)
2338 char **p;
2339 int i;
2340{
2341 return p[i];
2342}
2343static char *f (char * (*g) (char **, int), char **p, ...)
2344{
2345 char *s;
2346 va_list v;
2347 va_start (v,p);
2348 s = g (p, va_arg (v,int));
2349 va_end (v);
2350 return s;
2351}
a.rottmann964dbb12004-02-26 19:47:42 +00002352
2353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2354 function prototypes and stuff, but not '\xHH' hex character constants.
2355 These don't provoke an error unfortunately, instead are silently treated
2356 as 'x'. The following induces an error, until -std1 is added to get
2357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2358 array size at least. It's necessary to write '\x00'==0 to get something
2359 that's true only with -std1. */
2360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2361
a.rottmann84e63352003-03-24 09:42:16 +00002362int test (int i, double x);
2363struct s1 {int (*f) (int a);};
2364struct s2 {int (*f) (double a);};
2365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2366int argc;
2367char **argv;
2368int
2369main ()
2370{
2371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376# Don't try gcc -ansi; that turns off useful extensions and
2377# breaks some systems' header files.
2378# AIX -qlanglvl=ansi
2379# Ultrix and OSF/1 -std1
2380# HP-UX 10.20 and later -Ae
2381# HP-UX older versions -Aa -D_HPUX_SOURCE
2382# SVR4 -Xc -D__EXTENSIONS__
2383for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2384do
2385 CC="$ac_save_CC $ac_arg"
2386 rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002388 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002389 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_cv_prog_cc_stdc=$ac_arg
2408break
2409else
2410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413fi
a.rottmann964dbb12004-02-26 19:47:42 +00002414rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002415done
2416rm -f conftest.$ac_ext conftest.$ac_objext
2417CC=$ac_save_CC
2418
2419fi
2420
2421case "x$ac_cv_prog_cc_stdc" in
2422 x|xno)
2423 echo "$as_me:$LINENO: result: none needed" >&5
2424echo "${ECHO_T}none needed" >&6 ;;
2425 *)
2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2427echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2428 CC="$CC $ac_cv_prog_cc_stdc" ;;
2429esac
2430
drh71eb93e2001-09-28 01:34:43 +00002431# Some people use a C++ compiler to compile C. Since we use `exit',
2432# in C++ we need to declare it. In case someone uses the same compiler
2433# for both compiling C and C++ we need to have the C++ compiler decide
2434# the declaration of exit, since it's the most demanding environment.
2435cat >conftest.$ac_ext <<_ACEOF
2436#ifndef __cplusplus
2437 choke me
2438#endif
2439_ACEOF
2440rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002442 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002443 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002448 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002457 (eval $ac_try) 2>&5
2458 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002460 (exit $ac_status); }; }; then
2461 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002462 '' \
drh71eb93e2001-09-28 01:34:43 +00002463 'extern "C" void std::exit (int) throw (); using std::exit;' \
2464 'extern "C" void std::exit (int); using std::exit;' \
2465 'extern "C" void exit (int) throw ();' \
2466 'extern "C" void exit (int);' \
2467 'void exit (int);'
2468do
2469 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002470/* confdefs.h. */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002475$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002476#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002477int
2478main ()
2479{
2480exit (42);
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002487 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002488 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002493 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002502 (eval $ac_try) 2>&5
2503 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002505 (exit $ac_status); }; }; then
2506 :
2507else
2508 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002509sed 's/^/| /' conftest.$ac_ext >&5
2510
drh71eb93e2001-09-28 01:34:43 +00002511continue
2512fi
a.rottmann964dbb12004-02-26 19:47:42 +00002513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002514 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002520$ac_declaration
2521int
2522main ()
2523{
2524exit (42);
2525 ;
2526 return 0;
2527}
2528_ACEOF
2529rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002531 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002532 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
2535 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002537 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002546 (eval $ac_try) 2>&5
2547 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002549 (exit $ac_status); }; }; then
2550 break
2551else
2552 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002553sed 's/^/| /' conftest.$ac_ext >&5
2554
drh71eb93e2001-09-28 01:34:43 +00002555fi
a.rottmann964dbb12004-02-26 19:47:42 +00002556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002557done
2558rm -f conftest*
2559if test -n "$ac_declaration"; then
2560 echo '#ifdef __cplusplus' >>confdefs.h
2561 echo $ac_declaration >>confdefs.h
2562 echo '#endif' >>confdefs.h
2563fi
2564
2565else
2566 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002567sed 's/^/| /' conftest.$ac_ext >&5
2568
drh71eb93e2001-09-28 01:34:43 +00002569fi
a.rottmann964dbb12004-02-26 19:47:42 +00002570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
a.rottmann9bc8b932004-02-29 15:18:31 +00002577echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2578echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2579if test "${lt_cv_path_SED+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 # Loop through the user's path and test for sed and gsed.
2583# Then use that list of sed's as ones to test for truncation.
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for lt_ac_prog in sed gsed; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2592 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2593 fi
2594 done
2595 done
2596done
2597lt_ac_max=0
2598lt_ac_count=0
2599# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2600# along with /bin/sed that truncates output.
2601for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2602 test ! -f $lt_ac_sed && break
2603 cat /dev/null > conftest.in
2604 lt_ac_count=0
2605 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2606 # Check for GNU sed and select it if it is found.
2607 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2608 lt_cv_path_SED=$lt_ac_sed
2609 break
2610 fi
2611 while true; do
2612 cat conftest.in conftest.in >conftest.tmp
2613 mv conftest.tmp conftest.in
2614 cp conftest.in conftest.nl
2615 echo >>conftest.nl
2616 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2617 cmp -s conftest.out conftest.nl || break
2618 # 10000 chars as input seems more than enough
2619 test $lt_ac_count -gt 10 && break
2620 lt_ac_count=`expr $lt_ac_count + 1`
2621 if test $lt_ac_count -gt $lt_ac_max; then
2622 lt_ac_max=$lt_ac_count
2623 lt_cv_path_SED=$lt_ac_sed
2624 fi
2625 done
2626done
2627SED=$lt_cv_path_SED
2628
a.rottmann84e63352003-03-24 09:42:16 +00002629fi
2630
a.rottmann9bc8b932004-02-29 15:18:31 +00002631echo "$as_me:$LINENO: result: $SED" >&5
2632echo "${ECHO_T}$SED" >&6
2633
2634echo "$as_me:$LINENO: checking for egrep" >&5
2635echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2636if test "${ac_cv_prog_egrep+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2640 then ac_cv_prog_egrep='grep -E'
2641 else ac_cv_prog_egrep='egrep'
2642 fi
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2645echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2646 EGREP=$ac_cv_prog_egrep
2647
2648
a.rottmann84e63352003-03-24 09:42:16 +00002649
drh71eb93e2001-09-28 01:34:43 +00002650# Check whether --with-gnu-ld or --without-gnu-ld was given.
2651if test "${with_gnu_ld+set}" = set; then
2652 withval="$with_gnu_ld"
2653 test "$withval" = no || with_gnu_ld=yes
2654else
2655 with_gnu_ld=no
2656fi;
2657ac_prog=ld
2658if test "$GCC" = yes; then
2659 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002660 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2661echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002662 case $host in
2663 *-*-mingw*)
2664 # gcc leaves a trailing carriage return which upsets mingw
2665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2666 *)
2667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2668 esac
2669 case $ac_prog in
2670 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002671 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002672 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002673 # Canonicalize the pathname of ld
2674 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002675 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002676 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002677 done
2678 test -z "$LD" && LD="$ac_prog"
2679 ;;
2680 "")
2681 # If it fails, then pretend we aren't using GCC.
2682 ac_prog=ld
2683 ;;
2684 *)
2685 # If it is relative, then search for the first ld in PATH.
2686 with_gnu_ld=unknown
2687 ;;
2688 esac
2689elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002690 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002691echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2692else
a.rottmann84e63352003-03-24 09:42:16 +00002693 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002694echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2695fi
2696if test "${lt_cv_path_LD+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002701 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002702 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002703 test -z "$ac_dir" && ac_dir=.
2704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2705 lt_cv_path_LD="$ac_dir/$ac_prog"
2706 # Check to see if the program is GNU ld. I'd rather use --version,
2707 # but apparently some GNU ld's only accept -v.
2708 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2710 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002711 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002712 ;;
2713 *)
drh71eb93e2001-09-28 01:34:43 +00002714 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002715 ;;
2716 esac
drh71eb93e2001-09-28 01:34:43 +00002717 fi
2718 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002719 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002720else
2721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2722fi
2723fi
2724
2725LD="$lt_cv_path_LD"
2726if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002727 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002728echo "${ECHO_T}$LD" >&6
2729else
a.rottmann84e63352003-03-24 09:42:16 +00002730 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002731echo "${ECHO_T}no" >&6
2732fi
a.rottmann84e63352003-03-24 09:42:16 +00002733test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002734echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2735 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002736echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002737echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2738if test "${lt_cv_prog_gnu_ld+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002742case `$LD -v 2>&1 </dev/null` in
2743*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002744 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002745 ;;
2746*)
drh71eb93e2001-09-28 01:34:43 +00002747 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002748 ;;
2749esac
drh71eb93e2001-09-28 01:34:43 +00002750fi
a.rottmann84e63352003-03-24 09:42:16 +00002751echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002752echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2753with_gnu_ld=$lt_cv_prog_gnu_ld
2754
a.rottmann84e63352003-03-24 09:42:16 +00002755
2756echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002757echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2758if test "${lt_cv_ld_reload_flag+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760else
2761 lt_cv_ld_reload_flag='-r'
2762fi
a.rottmann84e63352003-03-24 09:42:16 +00002763echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002764echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2765reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002766case $reload_flag in
2767"" | " "*) ;;
2768*) reload_flag=" $reload_flag" ;;
2769esac
2770reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002771
a.rottmann84e63352003-03-24 09:42:16 +00002772echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002773echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2774if test "${lt_cv_path_NM+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$NM"; then
2778 # Let the user override the test.
2779 lt_cv_path_NM="$NM"
2780else
a.rottmann9bc8b932004-02-29 15:18:31 +00002781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002782 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002783 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002784 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002785 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002787 # Check to see if the nm accepts a BSD-compat flag.
2788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2789 # nm: unknown option "B" ignored
2790 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2792 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002793 lt_cv_path_NM="$tmp_nm -B"
2794 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002795 ;;
2796 *)
2797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2798 */dev/null*)
2799 lt_cv_path_NM="$tmp_nm -p"
2800 break
2801 ;;
2802 *)
2803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2804 continue # so that we can try to find one that supports BSD flags
2805 ;;
2806 esac
2807 esac
drh71eb93e2001-09-28 01:34:43 +00002808 fi
2809 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002810 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002811 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2812fi
2813fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002814echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2815echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002816NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002817
2818echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002819echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2820LN_S=$as_ln_s
2821if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002822 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002823echo "${ECHO_T}yes" >&6
2824else
a.rottmann84e63352003-03-24 09:42:16 +00002825 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002826echo "${ECHO_T}no, using $LN_S" >&6
2827fi
2828
a.rottmann84e63352003-03-24 09:42:16 +00002829echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2830echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002831if test "${lt_cv_deplibs_check_method+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 lt_cv_file_magic_cmd='$MAGIC_CMD'
2835lt_cv_file_magic_test_file=
2836lt_cv_deplibs_check_method='unknown'
2837# Need to set the preceding variable on all platforms that support
2838# interlibrary dependencies.
2839# 'none' -- dependencies not supported.
2840# `unknown' -- same as none, but documents that we really don't know.
2841# 'pass_all' -- all dependencies passed with no checks.
2842# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002843# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002844# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002845# If you have `file' or equivalent on your system and you're not sure
2846# whether `pass_all' will *always* work, you probably want this one.
2847
2848case $host_os in
2849aix4* | aix5*)
2850 lt_cv_deplibs_check_method=pass_all
2851 ;;
2852
2853beos*)
2854 lt_cv_deplibs_check_method=pass_all
2855 ;;
2856
2857bsdi4*)
2858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2859 lt_cv_file_magic_cmd='/usr/bin/file -L'
2860 lt_cv_file_magic_test_file=/shlib/libc.so
2861 ;;
2862
a.rottmann9bc8b932004-02-29 15:18:31 +00002863cygwin*)
2864 # win32_libid is a shell function defined in ltmain.sh
2865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2866 lt_cv_file_magic_cmd='win32_libid'
2867 ;;
2868
2869mingw* | pw32*)
2870 # Base MSYS/MinGW do not provide the 'file' command needed by
2871 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2873 lt_cv_file_magic_cmd='$OBJDUMP -f'
2874 ;;
2875
2876darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002877 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002878 ;;
2879
a.rottmann9bc8b932004-02-29 15:18:31 +00002880freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2882 case $host_cpu in
2883 i*86 )
2884 # Not sure whether the presence of OpenBSD here was a mistake.
2885 # Let's accept both of them until this is cleared up.
2886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2887 lt_cv_file_magic_cmd=/usr/bin/file
2888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2889 ;;
2890 esac
2891 else
2892 lt_cv_deplibs_check_method=pass_all
2893 fi
2894 ;;
2895
2896gnu*)
2897 lt_cv_deplibs_check_method=pass_all
2898 ;;
2899
a.rottmann9bc8b932004-02-29 15:18:31 +00002900hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002901 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002902 case "$host_cpu" in
2903 ia64*)
2904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2906 ;;
2907 hppa*64*)
2908 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]'
2909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2910 ;;
2911 *)
2912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2913 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2914 ;;
2915 esac
drh71eb93e2001-09-28 01:34:43 +00002916 ;;
2917
a.rottmann84e63352003-03-24 09:42:16 +00002918irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002919 case $LD in
2920 *-32|*"-32 ") libmagic=32-bit;;
2921 *-n32|*"-n32 ") libmagic=N32;;
2922 *-64|*"-64 ") libmagic=64-bit;;
2923 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002924 esac
drh71eb93e2001-09-28 01:34:43 +00002925 lt_cv_deplibs_check_method=pass_all
2926 ;;
2927
2928# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002929linux*)
2930 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002931 ;;
2932
a.rottmann9bc8b932004-02-29 15:18:31 +00002933netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002934 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002936 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002938 fi
2939 ;;
2940
2941newos6*)
2942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2943 lt_cv_file_magic_cmd=/usr/bin/file
2944 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2945 ;;
2946
a.rottmann9bc8b932004-02-29 15:18:31 +00002947nto-qnx*)
2948 lt_cv_deplibs_check_method=unknown
2949 ;;
2950
a.rottmann84e63352003-03-24 09:42:16 +00002951openbsd*)
2952 lt_cv_file_magic_cmd=/usr/bin/file
2953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2954 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2956 else
2957 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2958 fi
drh71eb93e2001-09-28 01:34:43 +00002959 ;;
2960
2961osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002962 lt_cv_deplibs_check_method=pass_all
2963 ;;
2964
2965sco3.2v5*)
2966 lt_cv_deplibs_check_method=pass_all
2967 ;;
2968
2969solaris*)
2970 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002971 ;;
2972
drh71eb93e2001-09-28 01:34:43 +00002973sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2974 case $host_vendor in
2975 motorola)
2976 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]'
2977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2978 ;;
2979 ncr)
2980 lt_cv_deplibs_check_method=pass_all
2981 ;;
2982 sequent)
2983 lt_cv_file_magic_cmd='/bin/file'
2984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2985 ;;
2986 sni)
2987 lt_cv_file_magic_cmd='/bin/file'
2988 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2989 lt_cv_file_magic_test_file=/lib/libc.so
2990 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002991 siemens)
2992 lt_cv_deplibs_check_method=pass_all
2993 ;;
drh71eb93e2001-09-28 01:34:43 +00002994 esac
2995 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00002996
2997sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
2998 lt_cv_deplibs_check_method=pass_all
2999 ;;
drh71eb93e2001-09-28 01:34:43 +00003000esac
3001
3002fi
a.rottmann84e63352003-03-24 09:42:16 +00003003echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003004echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3005file_magic_cmd=$lt_cv_file_magic_cmd
3006deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003007test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003008
drh71eb93e2001-09-28 01:34:43 +00003009
drh71eb93e2001-09-28 01:34:43 +00003010
drh71eb93e2001-09-28 01:34:43 +00003011
a.rottmann9bc8b932004-02-29 15:18:31 +00003012# If no C compiler was specified, use CC.
3013LTCC=${LTCC-"$CC"}
3014
3015# Allow CC to be a program name with arguments.
3016compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003017
drh71eb93e2001-09-28 01:34:43 +00003018
a.rottmann9bc8b932004-02-29 15:18:31 +00003019# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3020if test "${enable_libtool_lock+set}" = set; then
3021 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003022
a.rottmann9bc8b932004-02-29 15:18:31 +00003023fi;
3024test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003025
a.rottmann9bc8b932004-02-29 15:18:31 +00003026# Some flags need to be propagated to the compiler or linker for good
3027# libtool support.
3028case $host in
3029ia64-*-hpux*)
3030 # Find out which ABI we are using.
3031 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003033 (eval $ac_compile) 2>&5
3034 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003036 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003037 case `/usr/bin/file conftest.$ac_objext` in
3038 *ELF-32*)
3039 HPUX_IA64_MODE="32"
3040 ;;
3041 *ELF-64*)
3042 HPUX_IA64_MODE="64"
3043 ;;
3044 esac
3045 fi
3046 rm -rf conftest*
3047 ;;
3048*-*-irix6*)
3049 # Find out which ABI we are using.
3050 echo '#line 3050 "configure"' > conftest.$ac_ext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003053 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003055 (exit $ac_status); }; then
3056 if test "$lt_cv_prog_gnu_ld" = yes; then
3057 case `/usr/bin/file conftest.$ac_objext` in
3058 *32-bit*)
3059 LD="${LD-ld} -melf32bsmip"
3060 ;;
3061 *N32*)
3062 LD="${LD-ld} -melf32bmipn32"
3063 ;;
3064 *64-bit*)
3065 LD="${LD-ld} -melf64bmip"
3066 ;;
3067 esac
3068 else
3069 case `/usr/bin/file conftest.$ac_objext` in
3070 *32-bit*)
3071 LD="${LD-ld} -32"
3072 ;;
3073 *N32*)
3074 LD="${LD-ld} -n32"
3075 ;;
3076 *64-bit*)
3077 LD="${LD-ld} -64"
3078 ;;
3079 esac
3080 fi
3081 fi
3082 rm -rf conftest*
3083 ;;
drh71eb93e2001-09-28 01:34:43 +00003084
a.rottmann9bc8b932004-02-29 15:18:31 +00003085x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3086 # Find out which ABI we are using.
3087 echo 'int i;' > conftest.$ac_ext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 case "`/usr/bin/file conftest.o`" in
3094 *32-bit*)
3095 case $host in
3096 x86_64-*linux*)
3097 LD="${LD-ld} -m elf_i386"
3098 ;;
3099 ppc64-*linux*|powerpc64-*linux*)
3100 LD="${LD-ld} -m elf32ppclinux"
3101 ;;
3102 s390x-*linux*)
3103 LD="${LD-ld} -m elf_s390"
3104 ;;
3105 sparc64-*linux*)
3106 LD="${LD-ld} -m elf32_sparc"
3107 ;;
3108 esac
3109 ;;
3110 *64-bit*)
3111 case $host in
3112 x86_64-*linux*)
3113 LD="${LD-ld} -m elf_x86_64"
3114 ;;
3115 ppc*-*linux*|powerpc*-*linux*)
3116 LD="${LD-ld} -m elf64ppc"
3117 ;;
3118 s390*-*linux*)
3119 LD="${LD-ld} -m elf64_s390"
3120 ;;
3121 sparc*-*linux*)
3122 LD="${LD-ld} -m elf64_sparc"
3123 ;;
3124 esac
3125 ;;
3126 esac
3127 fi
3128 rm -rf conftest*
3129 ;;
drh71eb93e2001-09-28 01:34:43 +00003130
a.rottmann9bc8b932004-02-29 15:18:31 +00003131*-*-sco3.2v5*)
3132 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3133 SAVE_CFLAGS="$CFLAGS"
3134 CFLAGS="$CFLAGS -belf"
3135 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3136echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3137if test "${lt_cv_cc_needs_belf+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 ac_ext=c
3141ac_cpp='$CPP $CPPFLAGS'
3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003145
a.rottmann9bc8b932004-02-29 15:18:31 +00003146 cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h. */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
3151/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003152
a.rottmann9bc8b932004-02-29 15:18:31 +00003153int
3154main ()
drh71eb93e2001-09-28 01:34:43 +00003155{
drh71eb93e2001-09-28 01:34:43 +00003156
a.rottmann9bc8b932004-02-29 15:18:31 +00003157 ;
3158 return 0;
drh71eb93e2001-09-28 01:34:43 +00003159}
a.rottmann9bc8b932004-02-29 15:18:31 +00003160_ACEOF
3161rm -f conftest.$ac_objext conftest$ac_exeext
3162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3163 (eval $ac_link) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003173 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest$ac_exeext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003183else
a.rottmann9bc8b932004-02-29 15:18:31 +00003184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003188fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003189rm -f conftest.err conftest.$ac_objext \
3190 conftest$ac_exeext conftest.$ac_ext
3191 ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
drh71eb93e2001-09-28 01:34:43 +00003197fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003198echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3199echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3202 CFLAGS="$SAVE_CFLAGS"
3203 fi
3204 ;;
3205
3206esac
3207
3208need_locks="$enable_libtool_lock"
3209
drh71eb93e2001-09-28 01:34:43 +00003210
a.rottmann84e63352003-03-24 09:42:16 +00003211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3218# On Suns, sometimes $CPP names a directory.
3219if test -n "$CPP" && test -d "$CPP"; then
3220 CPP=
3221fi
3222if test -z "$CPP"; then
3223 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
a.rottmann84e63352003-03-24 09:42:16 +00003226 # Double quotes because CPP needs to be expanded
3227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228 do
3229 ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes
3231do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#ifdef __STDC__
3245# include <limits.h>
3246#else
3247# include <assert.h>
3248#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003249 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003250_ACEOF
3251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003262 else
3263 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003264 fi
a.rottmann84e63352003-03-24 09:42:16 +00003265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277rm -f conftest.err conftest.$ac_ext
3278
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
3287#include <ac_nonexistent.h>
3288_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3308continue
3309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then
3323 break
3324fi
3325
3326 done
3327 ac_cv_prog_CPP=$CPP
3328
3329fi
3330 CPP=$ac_cv_prog_CPP
3331else
3332 ac_cv_prog_CPP=$CPP
3333fi
3334echo "$as_me:$LINENO: result: $CPP" >&5
3335echo "${ECHO_T}$CPP" >&6
3336ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003356 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003357_ACEOF
3358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003369 else
3370 ac_cpp_err=
3371 fi
3372else
3373 ac_cpp_err=yes
3374fi
3375if test -z "$ac_cpp_err"; then
3376 :
3377else
3378 echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 # Broken: fails on valid input.
3382continue
3383fi
3384rm -f conftest.err conftest.$ac_ext
3385
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#include <ac_nonexistent.h>
3395_ACEOF
3396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003407 else
3408 ac_cpp_err=
3409 fi
3410else
3411 ac_cpp_err=yes
3412fi
3413if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3415continue
3416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
3424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then
3430 :
3431else
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3437fi
3438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
a.rottmann84e63352003-03-24 09:42:16 +00003446echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3447echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3448if test "${ac_cv_header_stdc+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
3457#include <stdlib.h>
3458#include <stdarg.h>
3459#include <string.h>
3460#include <float.h>
3461
3462int
3463main ()
3464{
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470rm -f conftest.$ac_objext
3471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003472 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003473 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; } &&
3485 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_cv_header_stdc=yes
3492else
3493 echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496ac_cv_header_stdc=no
3497fi
a.rottmann964dbb12004-02-26 19:47:42 +00003498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003499
3500if test $ac_cv_header_stdc = yes; then
3501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3502 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
3508#include <string.h>
3509
3510_ACEOF
3511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 $EGREP "memchr" >/dev/null 2>&1; then
3513 :
3514else
3515 ac_cv_header_stdc=no
3516fi
3517rm -f conftest*
3518
3519fi
3520
3521if test $ac_cv_header_stdc = yes; then
3522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3523 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529#include <stdlib.h>
3530
3531_ACEOF
3532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3533 $EGREP "free" >/dev/null 2>&1; then
3534 :
3535else
3536 ac_cv_header_stdc=no
3537fi
3538rm -f conftest*
3539
3540fi
3541
3542if test $ac_cv_header_stdc = yes; then
3543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3544 if test "$cross_compiling" = yes; then
3545 :
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553#include <ctype.h>
3554#if ((' ' & 0x0FF) == 0x020)
3555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3557#else
3558# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003559 (('a' <= (c) && (c) <= 'i') \
3560 || ('j' <= (c) && (c) <= 'r') \
3561 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3563#endif
3564
3565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3566int
3567main ()
3568{
3569 int i;
3570 for (i = 0; i < 256; i++)
3571 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003572 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003573 exit(2);
3574 exit (0);
3575}
3576_ACEOF
3577rm -f conftest$ac_exeext
3578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3579 (eval $ac_link) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 :
3589else
3590 echo "$as_me: program exited with status $ac_status" >&5
3591echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594( exit $ac_status )
3595ac_cv_header_stdc=no
3596fi
a.rottmann964dbb12004-02-26 19:47:42 +00003597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003598fi
3599fi
3600fi
3601echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3602echo "${ECHO_T}$ac_cv_header_stdc" >&6
3603if test $ac_cv_header_stdc = yes; then
3604
3605cat >>confdefs.h <<\_ACEOF
3606#define STDC_HEADERS 1
3607_ACEOF
3608
3609fi
3610
3611# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003622 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003623do
3624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3625echo "$as_me:$LINENO: checking for $ac_header" >&5
3626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3627if eval "test \"\${$as_ac_Header+set}\" = set"; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636$ac_includes_default
3637
3638#include <$ac_header>
3639_ACEOF
3640rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003642 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003643 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; } &&
3655 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 eval "$as_ac_Header=yes"
3662else
3663 echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666eval "$as_ac_Header=no"
3667fi
a.rottmann964dbb12004-02-26 19:47:42 +00003668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003669fi
3670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3672if test `eval echo '${'$as_ac_Header'}'` = yes; then
3673 cat >>confdefs.h <<_ACEOF
3674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3675_ACEOF
3676
3677fi
3678
3679done
3680
3681
3682
3683for ac_header in dlfcn.h
3684do
3685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3686if eval "test \"\${$as_ac_Header+set}\" = set"; then
3687 echo "$as_me:$LINENO: checking for $ac_header" >&5
3688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3689if eval "test \"\${$as_ac_Header+set}\" = set"; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691fi
3692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3694else
3695 # Is the header compilable?
3696echo "$as_me:$LINENO: checking $ac_header usability" >&5
3697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3698cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003699/* confdefs.h. */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h. */
3704$ac_includes_default
3705#include <$ac_header>
3706_ACEOF
3707rm -f conftest.$ac_objext
3708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003709 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003710 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_header_compiler=yes
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_header_compiler=no
3734fi
a.rottmann964dbb12004-02-26 19:47:42 +00003735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3737echo "${ECHO_T}$ac_header_compiler" >&6
3738
3739# Is the header present?
3740echo "$as_me:$LINENO: checking $ac_header presence" >&5
3741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3742cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003743/* confdefs.h. */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h. */
3748#include <$ac_header>
3749_ACEOF
3750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003761 else
3762 ac_cpp_err=
3763 fi
3764else
3765 ac_cpp_err=yes
3766fi
3767if test -z "$ac_cpp_err"; then
3768 ac_header_preproc=yes
3769else
3770 echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 ac_header_preproc=no
3774fi
3775rm -f conftest.err conftest.$ac_ext
3776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3777echo "${ECHO_T}$ac_header_preproc" >&6
3778
3779# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3781 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3786 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003787 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003788 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003801 (
3802 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003803## ------------------------------------------ ##
3804## Report this to the AC_PACKAGE_NAME lists. ##
3805## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003806_ASBOX
3807 ) |
3808 sed "s/^/$as_me: WARNING: /" >&2
3809 ;;
drh71eb93e2001-09-28 01:34:43 +00003810esac
a.rottmann84e63352003-03-24 09:42:16 +00003811echo "$as_me:$LINENO: checking for $ac_header" >&5
3812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3813if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
a.rottmann964dbb12004-02-26 19:47:42 +00003816 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003817fi
3818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820
3821fi
3822if test `eval echo '${'$as_ac_Header'}'` = yes; then
3823 cat >>confdefs.h <<_ACEOF
3824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825_ACEOF
3826
3827fi
3828
drh71eb93e2001-09-28 01:34:43 +00003829done
3830
a.rottmann9bc8b932004-02-29 15:18:31 +00003831ac_ext=cc
3832ac_cpp='$CXXCPP $CPPFLAGS'
3833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3836if test -n "$ac_tool_prefix"; then
3837 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3838 do
3839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3840set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3841echo "$as_me:$LINENO: checking for $ac_word" >&5
3842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3843if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
a.rottmann9bc8b932004-02-29 15:18:31 +00003846 if test -n "$CXX"; then
3847 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3848else
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860done
3861done
drh71eb93e2001-09-28 01:34:43 +00003862
drh71eb93e2001-09-28 01:34:43 +00003863fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003864fi
3865CXX=$ac_cv_prog_CXX
3866if test -n "$CXX"; then
3867 echo "$as_me:$LINENO: result: $CXX" >&5
3868echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003869else
a.rottmann84e63352003-03-24 09:42:16 +00003870 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003871echo "${ECHO_T}no" >&6
3872fi
3873
a.rottmann9bc8b932004-02-29 15:18:31 +00003874 test -n "$CXX" && break
3875 done
3876fi
3877if test -z "$CXX"; then
3878 ac_ct_CXX=$CXX
3879 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3880do
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882set dummy $ac_prog; ac_word=$2
3883echo "$as_me:$LINENO: checking for $ac_word" >&5
3884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
a.rottmann9bc8b932004-02-29 15:18:31 +00003888 if test -n "$ac_ct_CXX"; then
3889 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_CXX="$ac_prog"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903done
drh71eb93e2001-09-28 01:34:43 +00003904
drh71eb93e2001-09-28 01:34:43 +00003905fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003906fi
3907ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3908if test -n "$ac_ct_CXX"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3910echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003911else
a.rottmann84e63352003-03-24 09:42:16 +00003912 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003913echo "${ECHO_T}no" >&6
3914fi
3915
a.rottmann9bc8b932004-02-29 15:18:31 +00003916 test -n "$ac_ct_CXX" && break
3917done
3918test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3919
3920 CXX=$ac_ct_CXX
3921fi
3922
3923
3924# Provide some information about the compiler.
3925echo "$as_me:$LINENO:" \
3926 "checking for C++ compiler version" >&5
3927ac_compiler=`set X $ac_compile; echo $2`
3928{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3929 (eval $ac_compiler --version </dev/null >&5) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }
3933{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3934 (eval $ac_compiler -v </dev/null >&5) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }
3938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3939 (eval $ac_compiler -V </dev/null >&5) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
3943
3944echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3945echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3946if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */
3955
3956int
3957main ()
3958{
3959#ifndef __GNUC__
3960 choke me
3961#endif
3962
3963 ;
3964 return 0;
3965}
3966_ACEOF
3967rm -f conftest.$ac_objext
3968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_compiler_gnu=yes
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993ac_compiler_gnu=no
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3997
3998fi
3999echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4000echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4001GXX=`test $ac_compiler_gnu = yes && echo yes`
4002ac_test_CXXFLAGS=${CXXFLAGS+set}
4003ac_save_CXXFLAGS=$CXXFLAGS
4004CXXFLAGS="-g"
4005echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4006echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4007if test "${ac_cv_prog_cxx_g+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010 cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4016
4017int
4018main ()
4019{
4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025rm -f conftest.$ac_objext
4026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_prog_cxx_g=yes
4047else
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051ac_cv_prog_cxx_g=no
4052fi
4053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054fi
4055echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4056echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4057if test "$ac_test_CXXFLAGS" = set; then
4058 CXXFLAGS=$ac_save_CXXFLAGS
4059elif test $ac_cv_prog_cxx_g = yes; then
4060 if test "$GXX" = yes; then
4061 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004062 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004063 CXXFLAGS="-g"
4064 fi
4065else
4066 if test "$GXX" = yes; then
4067 CXXFLAGS="-O2"
4068 else
4069 CXXFLAGS=
4070 fi
4071fi
4072for ac_declaration in \
4073 '' \
4074 'extern "C" void std::exit (int) throw (); using std::exit;' \
4075 'extern "C" void std::exit (int); using std::exit;' \
4076 'extern "C" void exit (int) throw ();' \
4077 'extern "C" void exit (int);' \
4078 'void exit (int);'
4079do
4080 cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
4086$ac_declaration
4087#include <stdlib.h>
4088int
4089main ()
4090{
4091exit (42);
4092 ;
4093 return 0;
4094}
4095_ACEOF
4096rm -f conftest.$ac_objext
4097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 :
4118else
4119 echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122continue
4123fi
4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131$ac_declaration
4132int
4133main ()
4134{
4135exit (42);
4136 ;
4137 return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext
4141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 break
4162else
4163 echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166fi
4167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168done
4169rm -f conftest*
4170if test -n "$ac_declaration"; then
4171 echo '#ifdef __cplusplus' >>confdefs.h
4172 echo $ac_declaration >>confdefs.h
4173 echo '#endif' >>confdefs.h
4174fi
4175
4176ac_ext=cc
4177ac_cpp='$CXXCPP $CPPFLAGS'
4178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4181
4182ac_ext=cc
4183ac_cpp='$CXXCPP $CPPFLAGS'
4184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4187echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4188echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4189if test -z "$CXXCPP"; then
4190 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193 # Double quotes because CXXCPP needs to be expanded
4194 for CXXCPP in "$CXX -E" "/lib/cpp"
4195 do
4196 ac_preproc_ok=false
4197for ac_cxx_preproc_warn_flag in '' yes
4198do
4199 # Use a header file that comes with gcc, so configuring glibc
4200 # with a fresh cross-compiler works.
4201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4202 # <limits.h> exists even on freestanding compilers.
4203 # On the NeXT, cc -E runs the code through the compiler's parser,
4204 # not just through cpp. "Syntax error" is here to catch this case.
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211#ifdef __STDC__
4212# include <limits.h>
4213#else
4214# include <assert.h>
4215#endif
4216 Syntax error
4217_ACEOF
4218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null; then
4226 if test -s conftest.err; then
4227 ac_cpp_err=$ac_cxx_preproc_warn_flag
4228 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4229 else
4230 ac_cpp_err=
4231 fi
4232else
4233 ac_cpp_err=yes
4234fi
4235if test -z "$ac_cpp_err"; then
4236 :
4237else
4238 echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 # Broken: fails on valid input.
4242continue
4243fi
4244rm -f conftest.err conftest.$ac_ext
4245
4246 # OK, works on sane cases. Now check whether non-existent headers
4247 # can be detected and how.
4248 cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254#include <ac_nonexistent.h>
4255_ACEOF
4256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } >/dev/null; then
4264 if test -s conftest.err; then
4265 ac_cpp_err=$ac_cxx_preproc_warn_flag
4266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4267 else
4268 ac_cpp_err=
4269 fi
4270else
4271 ac_cpp_err=yes
4272fi
4273if test -z "$ac_cpp_err"; then
4274 # Broken: success on invalid input.
4275continue
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 # Passes both tests.
4281ac_preproc_ok=:
4282break
4283fi
4284rm -f conftest.err conftest.$ac_ext
4285
4286done
4287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288rm -f conftest.err conftest.$ac_ext
4289if $ac_preproc_ok; then
4290 break
4291fi
4292
4293 done
4294 ac_cv_prog_CXXCPP=$CXXCPP
4295
4296fi
4297 CXXCPP=$ac_cv_prog_CXXCPP
4298else
4299 ac_cv_prog_CXXCPP=$CXXCPP
4300fi
4301echo "$as_me:$LINENO: result: $CXXCPP" >&5
4302echo "${ECHO_T}$CXXCPP" >&6
4303ac_preproc_ok=false
4304for ac_cxx_preproc_warn_flag in '' yes
4305do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318#ifdef __STDC__
4319# include <limits.h>
4320#else
4321# include <assert.h>
4322#endif
4323 Syntax error
4324_ACEOF
4325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null; then
4333 if test -s conftest.err; then
4334 ac_cpp_err=$ac_cxx_preproc_warn_flag
4335 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4336 else
4337 ac_cpp_err=
4338 fi
4339else
4340 ac_cpp_err=yes
4341fi
4342if test -z "$ac_cpp_err"; then
4343 :
4344else
4345 echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 # Broken: fails on valid input.
4349continue
4350fi
4351rm -f conftest.err conftest.$ac_ext
4352
4353 # OK, works on sane cases. Now check whether non-existent headers
4354 # can be detected and how.
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361#include <ac_nonexistent.h>
4362_ACEOF
4363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } >/dev/null; then
4371 if test -s conftest.err; then
4372 ac_cpp_err=$ac_cxx_preproc_warn_flag
4373 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4374 else
4375 ac_cpp_err=
4376 fi
4377else
4378 ac_cpp_err=yes
4379fi
4380if test -z "$ac_cpp_err"; then
4381 # Broken: success on invalid input.
4382continue
4383else
4384 echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 # Passes both tests.
4388ac_preproc_ok=:
4389break
4390fi
4391rm -f conftest.err conftest.$ac_ext
4392
4393done
4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395rm -f conftest.err conftest.$ac_ext
4396if $ac_preproc_ok; then
4397 :
4398else
4399 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4400See \`config.log' for more details." >&5
4401echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4402See \`config.log' for more details." >&2;}
4403 { (exit 1); exit 1; }; }
4404fi
4405
4406ac_ext=cc
4407ac_cpp='$CXXCPP $CPPFLAGS'
4408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4411
4412
4413ac_ext=f
4414ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4415ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4417if test -n "$ac_tool_prefix"; then
4418 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4419 do
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424if test "${ac_cv_prog_F77+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 if test -n "$F77"; then
4428 ac_cv_prog_F77="$F77" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443
4444fi
4445fi
4446F77=$ac_cv_prog_F77
4447if test -n "$F77"; then
4448 echo "$as_me:$LINENO: result: $F77" >&5
4449echo "${ECHO_T}$F77" >&6
4450else
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
4453fi
4454
4455 test -n "$F77" && break
4456 done
4457fi
4458if test -z "$F77"; then
4459 ac_ct_F77=$F77
4460 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4461do
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463set dummy $ac_prog; ac_word=$2
4464echo "$as_me:$LINENO: checking for $ac_word" >&5
4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 if test -n "$ac_ct_F77"; then
4470 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_ac_ct_F77="$ac_prog"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485
4486fi
4487fi
4488ac_ct_F77=$ac_cv_prog_ac_ct_F77
4489if test -n "$ac_ct_F77"; then
4490 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4491echo "${ECHO_T}$ac_ct_F77" >&6
4492else
4493 echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6
4495fi
4496
4497 test -n "$ac_ct_F77" && break
4498done
4499
4500 F77=$ac_ct_F77
4501fi
4502
4503
4504# Provide some information about the compiler.
4505echo "$as_me:4505:" \
4506 "checking for Fortran 77 compiler version" >&5
4507ac_compiler=`set X $ac_compile; echo $2`
4508{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4509 (eval $ac_compiler --version </dev/null >&5) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }
4513{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4514 (eval $ac_compiler -v </dev/null >&5) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }
4518{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4519 (eval $ac_compiler -V </dev/null >&5) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }
4523rm -f a.out
4524
4525# If we don't use `.F' as extension, the preprocessor is not run on the
4526# input file. (Note that this only needs to work for GNU compilers.)
4527ac_save_ext=$ac_ext
4528ac_ext=F
4529echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4530echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4531if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 cat >conftest.$ac_ext <<_ACEOF
4535 program main
4536#ifndef __GNUC__
4537 choke me
4538#endif
4539
4540 end
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_compiler_gnu=yes
4564else
4565 echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568ac_compiler_gnu=no
4569fi
4570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4571ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4572
4573fi
4574echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4575echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4576ac_ext=$ac_save_ext
4577ac_test_FFLAGS=${FFLAGS+set}
4578ac_save_FFLAGS=$FFLAGS
4579FFLAGS=
4580echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4581echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4582if test "${ac_cv_prog_f77_g+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 FFLAGS=-g
4586cat >conftest.$ac_ext <<_ACEOF
4587 program main
4588
4589 end
4590_ACEOF
4591rm -f conftest.$ac_objext
4592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_prog_f77_g=yes
4613else
4614 echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617ac_cv_prog_f77_g=no
4618fi
4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621fi
4622echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4623echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4624if test "$ac_test_FFLAGS" = set; then
4625 FFLAGS=$ac_save_FFLAGS
4626elif test $ac_cv_prog_f77_g = yes; then
4627 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4628 FFLAGS="-g -O2"
4629 else
4630 FFLAGS="-g"
4631 fi
4632else
4633 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4634 FFLAGS="-O2"
4635 else
4636 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004637 fi
4638fi
4639
a.rottmann9bc8b932004-02-29 15:18:31 +00004640G77=`test $ac_compiler_gnu = yes && echo yes`
4641ac_ext=c
4642ac_cpp='$CPP $CPPFLAGS'
4643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646
4647
4648
4649# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4650
4651# find the maximum length of command line arguments
4652echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4653echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4654if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 i=0
4658 testring="ABCD"
4659
4660 case $build_os in
4661 msdosdjgpp*)
4662 # On DJGPP, this test can blow up pretty badly due to problems in libc
4663 # (any single argument exceeding 2000 bytes causes a buffer overrun
4664 # during glob expansion). Even if it were fixed, the result of this
4665 # check would be larger than it should be.
4666 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4667 ;;
4668
4669 gnu*)
4670 # Under GNU Hurd, this test is not required because there is
4671 # no limit to the length of command line arguments.
4672 # Libtool will interpret -1 as no limit whatsoever
4673 lt_cv_sys_max_cmd_len=-1;
4674 ;;
4675
4676 cygwin* | mingw*)
4677 # On Win9x/ME, this test blows up -- it succeeds, but takes
4678 # about 5 minutes as the teststring grows exponentially.
4679 # Worse, since 9x/ME are not pre-emptively multitasking,
4680 # you end up with a "frozen" computer, even though with patience
4681 # the test eventually succeeds (with a max line length of 256k).
4682 # Instead, let's just punt: use the minimum linelength reported by
4683 # all of the supported platforms: 8192 (on NT/2K/XP).
4684 lt_cv_sys_max_cmd_len=8192;
4685 ;;
4686
4687 amigaos*)
4688 # On AmigaOS with pdksh, this test takes hours, literally.
4689 # So we just punt and use a minimum line length of 8192.
4690 lt_cv_sys_max_cmd_len=8192;
4691 ;;
4692
4693 *)
4694 # If test is not a shell built-in, we'll probably end up computing a
4695 # maximum length that is only half of the actual maximum length, but
4696 # we can't tell.
4697 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4698 = "XX$testring") >/dev/null 2>&1 &&
4699 new_result=`expr "X$testring" : ".*" 2>&1` &&
4700 lt_cv_sys_max_cmd_len=$new_result &&
4701 test $i != 17 # 1/2 MB should be enough
4702 do
4703 i=`expr $i + 1`
4704 testring=$testring$testring
4705 done
4706 testring=
4707 # Add a significant safety factor because C++ compilers can tack on massive
4708 # amounts of additional arguments before passing them to the linker.
4709 # It appears as though 1/2 is a usable value.
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4711 ;;
4712 esac
4713
4714fi
4715
4716if test -n $lt_cv_sys_max_cmd_len ; then
4717 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4718echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4719else
4720 echo "$as_me:$LINENO: result: none" >&5
4721echo "${ECHO_T}none" >&6
4722fi
4723
4724
4725
4726
4727# Check for command to grab the raw symbol name followed by C symbol from nm.
4728echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4729echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4730if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733
4734# These are sane defaults that work on at least a few old systems.
4735# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4736
4737# Character class describing NM global symbol codes.
4738symcode='[BCDEGRST]'
4739
4740# Regexp to match symbols that can be accessed directly from C.
4741sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4742
4743# Transform the above into a raw symbol and a C symbol.
4744symxfrm='\1 \2\3 \3'
4745
4746# Transform an extracted symbol line into a proper C declaration
4747lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4748
4749# Transform an extracted symbol line into symbol name and symbol address
4750lt_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'"
4751
4752# Define system-specific variables.
4753case $host_os in
4754aix*)
4755 symcode='[BCDT]'
4756 ;;
4757cygwin* | mingw* | pw32*)
4758 symcode='[ABCDGISTW]'
4759 ;;
4760hpux*) # Its linker distinguishes data from code symbols
4761 if test "$host_cpu" = ia64; then
4762 symcode='[ABCDEGRST]'
4763 fi
4764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4765 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'"
4766 ;;
4767irix* | nonstopux*)
4768 symcode='[BCDEGRST]'
4769 ;;
4770osf*)
4771 symcode='[BCDEGQRST]'
4772 ;;
4773solaris* | sysv5*)
4774 symcode='[BDRT]'
4775 ;;
4776sysv4)
4777 symcode='[DFNSTU]'
4778 ;;
4779esac
4780
4781# Handle CRLF in mingw tool chain
4782opt_cr=
4783case $build_os in
4784mingw*)
4785 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4786 ;;
4787esac
4788
4789# If we're using GNU nm, then use its standard symbol codes.
4790case `$NM -V 2>&1` in
4791*GNU* | *'with BFD'*)
4792 symcode='[ABCDGIRSTW]' ;;
4793esac
4794
4795# Try without a prefix undercore, then with it.
4796for ac_symprfx in "" "_"; do
4797
4798 # Write the raw and C identifiers.
4799 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4800
4801 # Check to see that the pipe works correctly.
4802 pipe_works=no
4803
4804 rm -f conftest*
4805 cat > conftest.$ac_ext <<EOF
4806#ifdef __cplusplus
4807extern "C" {
4808#endif
4809char nm_test_var;
4810void nm_test_func(){}
4811#ifdef __cplusplus
4812}
4813#endif
4814int main(){nm_test_var='a';nm_test_func();return(0);}
4815EOF
4816
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; then
4822 # Now try to grab the symbols.
4823 nlist=conftest.nm
4824 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4825 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && test -s "$nlist"; then
4829 # Try sorting and uniquifying the output.
4830 if sort "$nlist" | uniq > "$nlist"T; then
4831 mv -f "$nlist"T "$nlist"
4832 else
4833 rm -f "$nlist"T
4834 fi
4835
4836 # Make sure that we snagged all the symbols we need.
4837 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4838 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4839 cat <<EOF > conftest.$ac_ext
4840#ifdef __cplusplus
4841extern "C" {
4842#endif
4843
4844EOF
4845 # Now generate the symbol file.
4846 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4847
4848 cat <<EOF >> conftest.$ac_ext
4849#if defined (__STDC__) && __STDC__
4850# define lt_ptr_t void *
4851#else
4852# define lt_ptr_t char *
4853# define const
4854#endif
4855
4856/* The mapping between symbol names and symbols. */
4857const struct {
4858 const char *name;
4859 lt_ptr_t address;
4860}
4861lt_preloaded_symbols[] =
4862{
4863EOF
4864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4865 cat <<\EOF >> conftest.$ac_ext
4866 {0, (lt_ptr_t) 0}
4867};
4868
4869#ifdef __cplusplus
4870}
4871#endif
4872EOF
4873 # Now try linking the two files.
4874 mv conftest.$ac_objext conftstm.$ac_objext
4875 lt_save_LIBS="$LIBS"
4876 lt_save_CFLAGS="$CFLAGS"
4877 LIBS="conftstm.$ac_objext"
4878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4884 pipe_works=yes
4885 fi
4886 LIBS="$lt_save_LIBS"
4887 CFLAGS="$lt_save_CFLAGS"
4888 else
4889 echo "cannot find nm_test_func in $nlist" >&5
4890 fi
4891 else
4892 echo "cannot find nm_test_var in $nlist" >&5
4893 fi
4894 else
4895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4896 fi
4897 else
4898 echo "$progname: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4900 fi
4901 rm -f conftest* conftst*
4902
4903 # Do not use the global_symbol_pipe unless it works.
4904 if test "$pipe_works" = yes; then
4905 break
4906 else
4907 lt_cv_sys_global_symbol_pipe=
4908 fi
4909done
4910
4911fi
4912
4913if test -z "$lt_cv_sys_global_symbol_pipe"; then
4914 lt_cv_sys_global_symbol_to_cdecl=
4915fi
4916if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4917 echo "$as_me:$LINENO: result: failed" >&5
4918echo "${ECHO_T}failed" >&6
4919else
4920 echo "$as_me:$LINENO: result: ok" >&5
4921echo "${ECHO_T}ok" >&6
4922fi
4923
4924echo "$as_me:$LINENO: checking for objdir" >&5
4925echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4926if test "${lt_cv_objdir+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 rm -f .libs 2>/dev/null
4930mkdir .libs 2>/dev/null
4931if test -d .libs; then
4932 lt_cv_objdir=.libs
4933else
4934 # MS-DOS does not allow filenames that begin with a dot.
4935 lt_cv_objdir=_libs
4936fi
4937rmdir .libs 2>/dev/null
4938fi
4939echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4940echo "${ECHO_T}$lt_cv_objdir" >&6
4941objdir=$lt_cv_objdir
4942
4943
4944
4945
4946
4947case $host_os in
4948aix3*)
4949 # AIX sometimes has problems with the GCC collect2 program. For some
4950 # reason, if we set the COLLECT_NAMES environment variable, the problems
4951 # vanish in a puff of smoke.
4952 if test "X${COLLECT_NAMES+set}" != Xset; then
4953 COLLECT_NAMES=
4954 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004955 fi
4956 ;;
4957esac
4958
a.rottmann9bc8b932004-02-29 15:18:31 +00004959# Sed substitution that helps us do robust quoting. It backslashifies
4960# metacharacters that are still active within double-quoted strings.
4961Xsed='sed -e s/^X//'
4962sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4963
4964# Same as above, but do not quote variable references.
4965double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4966
4967# Sed substitution to delay expansion of an escaped shell variable in a
4968# double_quote_subst'ed string.
4969delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4970
4971# Sed substitution to avoid accidental globbing in evaled expressions
4972no_glob_subst='s/\*/\\\*/g'
4973
4974# Constants:
4975rm="rm -f"
4976
4977# Global variables:
4978default_ofile=libtool
4979can_build_shared=yes
4980
4981# All known linkers require a `.a' archive for static linking (except M$VC,
4982# which needs '.lib').
4983libext=a
4984ltmain="$ac_aux_dir/ltmain.sh"
4985ofile="$default_ofile"
4986with_gnu_ld="$lt_cv_prog_gnu_ld"
4987
4988if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4990set dummy ${ac_tool_prefix}ar; ac_word=$2
4991echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993if test "${ac_cv_prog_AR+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 if test -n "$AR"; then
4997 ac_cv_prog_AR="$AR" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_AR="${ac_tool_prefix}ar"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010done
5011done
5012
5013fi
5014fi
5015AR=$ac_cv_prog_AR
5016if test -n "$AR"; then
5017 echo "$as_me:$LINENO: result: $AR" >&5
5018echo "${ECHO_T}$AR" >&6
5019else
5020 echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022fi
5023
5024fi
5025if test -z "$ac_cv_prog_AR"; then
5026 ac_ct_AR=$AR
5027 # Extract the first word of "ar", so it can be a program name with args.
5028set dummy ar; ac_word=$2
5029echo "$as_me:$LINENO: checking for $ac_word" >&5
5030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5031if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034 if test -n "$ac_ct_AR"; then
5035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_ac_ct_AR="ar"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048done
5049done
5050
5051 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5052fi
5053fi
5054ac_ct_AR=$ac_cv_prog_ac_ct_AR
5055if test -n "$ac_ct_AR"; then
5056 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5057echo "${ECHO_T}$ac_ct_AR" >&6
5058else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061fi
5062
5063 AR=$ac_ct_AR
5064else
5065 AR="$ac_cv_prog_AR"
5066fi
5067
a.rottmann84e63352003-03-24 09:42:16 +00005068if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5070set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5071echo "$as_me:$LINENO: checking for $ac_word" >&5
5072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5073if test "${ac_cv_prog_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 if test -n "$RANLIB"; then
5077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090done
5091done
5092
5093fi
5094fi
5095RANLIB=$ac_cv_prog_RANLIB
5096if test -n "$RANLIB"; then
5097 echo "$as_me:$LINENO: result: $RANLIB" >&5
5098echo "${ECHO_T}$RANLIB" >&6
5099else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102fi
5103
5104fi
5105if test -z "$ac_cv_prog_RANLIB"; then
5106 ac_ct_RANLIB=$RANLIB
5107 # Extract the first word of "ranlib", so it can be a program name with args.
5108set dummy ranlib; ac_word=$2
5109echo "$as_me:$LINENO: checking for $ac_word" >&5
5110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5111if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113else
5114 if test -n "$ac_ct_RANLIB"; then
5115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_ac_ct_RANLIB="ranlib"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128done
5129done
5130
5131 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5132fi
5133fi
5134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5135if test -n "$ac_ct_RANLIB"; then
5136 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5137echo "${ECHO_T}$ac_ct_RANLIB" >&6
5138else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141fi
5142
5143 RANLIB=$ac_ct_RANLIB
5144else
5145 RANLIB="$ac_cv_prog_RANLIB"
5146fi
5147
5148if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}strip; ac_word=$2
5151echo "$as_me:$LINENO: checking for $ac_word" >&5
5152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153if test "${ac_cv_prog_STRIP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 if test -n "$STRIP"; then
5157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171done
5172
5173fi
5174fi
5175STRIP=$ac_cv_prog_STRIP
5176if test -n "$STRIP"; then
5177 echo "$as_me:$LINENO: result: $STRIP" >&5
5178echo "${ECHO_T}$STRIP" >&6
5179else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182fi
5183
5184fi
5185if test -z "$ac_cv_prog_STRIP"; then
5186 ac_ct_STRIP=$STRIP
5187 # Extract the first word of "strip", so it can be a program name with args.
5188set dummy strip; ac_word=$2
5189echo "$as_me:$LINENO: checking for $ac_word" >&5
5190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 if test -n "$ac_ct_STRIP"; then
5195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_STRIP="strip"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209done
5210
5211 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5212fi
5213fi
5214ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5215if test -n "$ac_ct_STRIP"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5217echo "${ECHO_T}$ac_ct_STRIP" >&6
5218else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223 STRIP=$ac_ct_STRIP
5224else
5225 STRIP="$ac_cv_prog_STRIP"
5226fi
5227
5228
a.rottmann84e63352003-03-24 09:42:16 +00005229old_CC="$CC"
5230old_CFLAGS="$CFLAGS"
5231
5232# Set sane defaults for various variables
5233test -z "$AR" && AR=ar
5234test -z "$AR_FLAGS" && AR_FLAGS=cru
5235test -z "$AS" && AS=as
5236test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005237test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005238test -z "$DLLTOOL" && DLLTOOL=dlltool
5239test -z "$LD" && LD=ld
5240test -z "$LN_S" && LN_S="ln -s"
5241test -z "$MAGIC_CMD" && MAGIC_CMD=file
5242test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005243test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005244test -z "$OBJDUMP" && OBJDUMP=objdump
5245test -z "$RANLIB" && RANLIB=:
5246test -z "$STRIP" && STRIP=:
5247test -z "$ac_objext" && ac_objext=o
5248
a.rottmann84e63352003-03-24 09:42:16 +00005249# Determine commands to create old-style static archives.
5250old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5251old_postinstall_cmds='chmod 644 $oldlib'
5252old_postuninstall_cmds=
5253
5254if test -n "$RANLIB"; then
5255 case $host_os in
5256 openbsd*)
5257 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5258 ;;
5259 *)
5260 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5261 ;;
5262 esac
5263 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5264fi
5265
a.rottmann9bc8b932004-02-29 15:18:31 +00005266# Only perform the check for file, if the check method requires it
5267case $deplibs_check_method in
5268file_magic*)
5269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5270 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5271echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5272if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005274else
a.rottmann9bc8b932004-02-29 15:18:31 +00005275 case $MAGIC_CMD in
5276[\\/*] | ?:[\\/]*)
5277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5278 ;;
5279*)
5280 lt_save_MAGIC_CMD="$MAGIC_CMD"
5281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5283 for ac_dir in $ac_dummy; do
5284 IFS="$lt_save_ifs"
5285 test -z "$ac_dir" && ac_dir=.
5286 if test -f $ac_dir/${ac_tool_prefix}file; then
5287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5288 if test -n "$file_magic_test_file"; then
5289 case $deplibs_check_method in
5290 "file_magic "*)
5291 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5294 $EGREP "$file_magic_regex" > /dev/null; then
5295 :
5296 else
5297 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005298
a.rottmann9bc8b932004-02-29 15:18:31 +00005299*** Warning: the command libtool uses to detect shared libraries,
5300*** $file_magic_cmd, produces output that libtool cannot recognize.
5301*** The result is that libtool may fail to recognize shared libraries
5302*** as such. This will affect the creation of libtool libraries that
5303*** depend on shared libraries, but programs linked with such libtool
5304*** libraries will work regardless of this problem. Nevertheless, you
5305*** may want to report the problem to your system manager and/or to
5306*** bug-libtool@gnu.org
5307
5308EOF
5309 fi ;;
5310 esac
5311 fi
5312 break
5313 fi
5314 done
5315 IFS="$lt_save_ifs"
5316 MAGIC_CMD="$lt_save_MAGIC_CMD"
5317 ;;
5318esac
5319fi
5320
5321MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5322if test -n "$MAGIC_CMD"; then
5323 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5324echo "${ECHO_T}$MAGIC_CMD" >&6
5325else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328fi
5329
5330if test -z "$lt_cv_path_MAGIC_CMD"; then
5331 if test -n "$ac_tool_prefix"; then
5332 echo "$as_me:$LINENO: checking for file" >&5
5333echo $ECHO_N "checking for file... $ECHO_C" >&6
5334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337 case $MAGIC_CMD in
5338[\\/*] | ?:[\\/]*)
5339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5340 ;;
5341*)
5342 lt_save_MAGIC_CMD="$MAGIC_CMD"
5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5345 for ac_dir in $ac_dummy; do
5346 IFS="$lt_save_ifs"
5347 test -z "$ac_dir" && ac_dir=.
5348 if test -f $ac_dir/file; then
5349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5350 if test -n "$file_magic_test_file"; then
5351 case $deplibs_check_method in
5352 "file_magic "*)
5353 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5356 $EGREP "$file_magic_regex" > /dev/null; then
5357 :
5358 else
5359 cat <<EOF 1>&2
5360
5361*** Warning: the command libtool uses to detect shared libraries,
5362*** $file_magic_cmd, produces output that libtool cannot recognize.
5363*** The result is that libtool may fail to recognize shared libraries
5364*** as such. This will affect the creation of libtool libraries that
5365*** depend on shared libraries, but programs linked with such libtool
5366*** libraries will work regardless of this problem. Nevertheless, you
5367*** may want to report the problem to your system manager and/or to
5368*** bug-libtool@gnu.org
5369
5370EOF
5371 fi ;;
5372 esac
5373 fi
5374 break
5375 fi
5376 done
5377 IFS="$lt_save_ifs"
5378 MAGIC_CMD="$lt_save_MAGIC_CMD"
5379 ;;
5380esac
5381fi
5382
5383MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5384if test -n "$MAGIC_CMD"; then
5385 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5386echo "${ECHO_T}$MAGIC_CMD" >&6
5387else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390fi
5391
5392 else
5393 MAGIC_CMD=:
5394 fi
5395fi
5396
5397 fi
5398 ;;
5399esac
5400
5401enable_dlopen=no
5402enable_win32_dll=no
5403
5404# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5405if test "${enable_libtool_lock+set}" = set; then
5406 enableval="$enable_libtool_lock"
5407
5408fi;
5409test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005410
5411
drh71eb93e2001-09-28 01:34:43 +00005412# Check whether --with-pic or --without-pic was given.
5413if test "${with_pic+set}" = set; then
5414 withval="$with_pic"
5415 pic_mode="$withval"
5416else
5417 pic_mode=default
5418fi;
5419test -z "$pic_mode" && pic_mode=default
5420
a.rottmann9bc8b932004-02-29 15:18:31 +00005421# Use C for the default configuration in the libtool script
5422tagname=
5423lt_save_CC="$CC"
5424ac_ext=c
5425ac_cpp='$CPP $CPPFLAGS'
5426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429
5430
5431# Source file extension for C test sources.
5432ac_ext=c
5433
5434# Object file extension for compiled C test sources.
5435objext=o
5436objext=$objext
5437
5438# Code to be used in simple compile tests
5439lt_simple_compile_test_code="int some_variable = 0;\n"
5440
5441# Code to be used in simple link tests
5442lt_simple_link_test_code='int main(){return(0);}\n'
5443
5444
5445# If no C compiler was specified, use CC.
5446LTCC=${LTCC-"$CC"}
5447
5448# Allow CC to be a program name with arguments.
5449compiler=$CC
5450
5451
5452#
5453# Check for any special shared library compilation flags.
5454#
5455lt_prog_cc_shlib=
5456if test "$GCC" = no; then
5457 case $host_os in
5458 sco3.2v5*)
5459 lt_prog_cc_shlib='-belf'
5460 ;;
5461 esac
5462fi
5463if test -n "$lt_prog_cc_shlib"; then
5464 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5465echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5466 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5467 else
5468 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5469echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5470 lt_cv_prog_cc_can_build_shared=no
5471 fi
5472fi
5473
5474
5475#
5476# Check to make sure the static flag actually works.
5477#
5478echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5479echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5480if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
a.rottmann9bc8b932004-02-29 15:18:31 +00005483 lt_prog_compiler_static_works=no
5484 save_LDFLAGS="$LDFLAGS"
5485 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5486 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5488 # The compiler can only warn and ignore the option if not recognized
5489 # So say no if there are warnings
5490 if test -s conftest.err; then
5491 # Append any errors to the config.log.
5492 cat conftest.err 1>&5
5493 else
5494 lt_prog_compiler_static_works=yes
5495 fi
5496 fi
5497 $rm conftest*
5498 LDFLAGS="$save_LDFLAGS"
5499
5500fi
5501echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5502echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5503
5504if test x"$lt_prog_compiler_static_works" = xyes; then
5505 :
5506else
5507 lt_prog_compiler_static=
5508fi
5509
5510
5511
5512
5513lt_prog_compiler_no_builtin_flag=
5514
5515if test "$GCC" = yes; then
5516 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5517
5518
5519echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5520echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5521if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524 lt_cv_prog_compiler_rtti_exceptions=no
5525 ac_outfile=conftest.$ac_objext
5526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5527 lt_compiler_flag="-fno-rtti -fno-exceptions"
5528 # Insert the option either (1) after the last *FLAGS variable, or
5529 # (2) before a word containing "conftest.", or (3) at the end.
5530 # Note that $ac_compile itself does not contain backslashes and begins
5531 # with a dollar sign (not a hyphen), so the echo should work correctly.
5532 # The option is referenced via a variable to avoid confusing sed.
5533 lt_compile=`echo "$ac_compile" | $SED \
5534 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5536 -e 's:$: $lt_compiler_flag:'`
5537 (eval echo "\"\$as_me:5537: $lt_compile\"" >&5)
5538 (eval "$lt_compile" 2>conftest.err)
5539 ac_status=$?
5540 cat conftest.err >&5
5541 echo "$as_me:5541: \$? = $ac_status" >&5
5542 if (exit $ac_status) && test -s "$ac_outfile"; then
5543 # The compiler can only warn and ignore the option if not recognized
5544 # So say no if there are warnings
5545 if test ! -s conftest.err; then
5546 lt_cv_prog_compiler_rtti_exceptions=yes
5547 fi
5548 fi
5549 $rm conftest*
5550
5551fi
5552echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5553echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5554
5555if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5556 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5557else
5558 :
5559fi
5560
5561fi
5562
5563lt_prog_compiler_wl=
5564lt_prog_compiler_pic=
5565lt_prog_compiler_static=
5566
5567echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5568echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005569
drh71eb93e2001-09-28 01:34:43 +00005570 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005571 lt_prog_compiler_wl='-Wl,'
5572 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005573
5574 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005575 aix*)
5576 # All AIX code is PIC.
5577 if test "$host_cpu" = ia64; then
5578 # AIX 5 now supports IA64 processor
5579 lt_prog_compiler_static='-Bstatic'
5580 fi
drh71eb93e2001-09-28 01:34:43 +00005581 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005582
drh71eb93e2001-09-28 01:34:43 +00005583 amigaos*)
5584 # FIXME: we need at least 68020 code to build shared libraries, but
5585 # adding the `-m68020' flag to GCC prevents building anything better,
5586 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005587 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005588 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005589
5590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005591 # PIC is the default for these OSes.
5592 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005593
5594 mingw* | pw32* | os2*)
5595 # This hack is so that the source file can tell whether it is being
5596 # built for inclusion in a dll (and should export symbols for example).
5597 lt_prog_compiler_pic='-DDLL_EXPORT'
5598 ;;
5599
drh71eb93e2001-09-28 01:34:43 +00005600 darwin* | rhapsody*)
5601 # PIC is the default on this platform
5602 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005603 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005604 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005605
5606 msdosdjgpp*)
5607 # Just because we use GCC doesn't mean we suddenly get shared libraries
5608 # on systems that don't support them.
5609 lt_prog_compiler_can_build_shared=no
5610 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005611 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005612
drh71eb93e2001-09-28 01:34:43 +00005613 sysv4*MP*)
5614 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005615 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005616 fi
5617 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005618
5619 hpux*)
5620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5621 # not for PA HP-UX.
5622 case "$host_cpu" in
5623 hppa*64*|ia64*)
5624 # +Z the default
5625 ;;
5626 *)
5627 lt_prog_compiler_pic='-fPIC'
5628 ;;
5629 esac
5630 ;;
5631
drh71eb93e2001-09-28 01:34:43 +00005632 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005633 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005634 ;;
5635 esac
5636 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005637 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005638 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005639 aix*)
5640 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005641 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005642 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005643 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005644 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005646 fi
5647 ;;
5648
a.rottmann9bc8b932004-02-29 15:18:31 +00005649 mingw* | pw32* | os2*)
5650 # This hack is so that the source file can tell whether it is being
5651 # built for inclusion in a dll (and should export symbols for example).
5652 lt_prog_compiler_pic='-DDLL_EXPORT'
5653 ;;
5654
a.rottmann84e63352003-03-24 09:42:16 +00005655 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005656 lt_prog_compiler_wl='-Wl,'
5657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5658 # not for PA HP-UX.
5659 case "$host_cpu" in
5660 hppa*64*|ia64*)
5661 # +Z the default
5662 ;;
5663 *)
5664 lt_prog_compiler_pic='+Z'
5665 ;;
5666 esac
5667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5668 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005669 ;;
5670
5671 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005672 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005673 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005674 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005675 ;;
5676
5677 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005678 lt_prog_compiler_pic='-KPIC'
5679 lt_prog_compiler_static='-Bstatic'
5680 ;;
5681
5682 linux*)
5683 case $CC in
5684 icc* | ecc*)
5685 lt_prog_compiler_wl='-Wl,'
5686 lt_prog_compiler_pic='-KPIC'
5687 lt_prog_compiler_static='-static'
5688 ;;
5689 ccc*)
5690 lt_prog_compiler_wl='-Wl,'
5691 # All Alpha code is PIC.
5692 lt_prog_compiler_static='-non_shared'
5693 ;;
5694 esac
drh71eb93e2001-09-28 01:34:43 +00005695 ;;
5696
5697 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005698 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005699 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005700 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005701 ;;
5702
5703 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005704 lt_prog_compiler_pic='-Kpic'
5705 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005706 ;;
5707
5708 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005709 lt_prog_compiler_wl='-Wl,'
5710 lt_prog_compiler_pic='-KPIC'
5711 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005712 ;;
5713
5714 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005715 lt_prog_compiler_wl='-Qoption ld '
5716 lt_prog_compiler_pic='-PIC'
5717 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005718 ;;
5719
5720 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005721 lt_prog_compiler_wl='-Wl,'
5722 lt_prog_compiler_pic='-KPIC'
5723 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005724 ;;
5725
5726 sysv4*MP*)
5727 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005728 lt_prog_compiler_pic='-Kconform_pic'
5729 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005730 fi
5731 ;;
5732
a.rottmann9bc8b932004-02-29 15:18:31 +00005733 uts4*)
5734 lt_prog_compiler_pic='-pic'
5735 lt_prog_compiler_static='-Bstatic'
5736 ;;
5737
drh71eb93e2001-09-28 01:34:43 +00005738 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005739 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005740 ;;
5741 esac
5742 fi
5743
a.rottmann9bc8b932004-02-29 15:18:31 +00005744echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5745echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005746
a.rottmann9bc8b932004-02-29 15:18:31 +00005747#
5748# Check to make sure the PIC flag actually works.
5749#
5750if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005751
a.rottmann9bc8b932004-02-29 15:18:31 +00005752echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5753echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5754if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
a.rottmann9bc8b932004-02-29 15:18:31 +00005757 lt_prog_compiler_pic_works=no
5758 ac_outfile=conftest.$ac_objext
5759 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5760 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5761 # Insert the option either (1) after the last *FLAGS variable, or
5762 # (2) before a word containing "conftest.", or (3) at the end.
5763 # Note that $ac_compile itself does not contain backslashes and begins
5764 # with a dollar sign (not a hyphen), so the echo should work correctly.
5765 # The option is referenced via a variable to avoid confusing sed.
5766 lt_compile=`echo "$ac_compile" | $SED \
5767 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5769 -e 's:$: $lt_compiler_flag:'`
5770 (eval echo "\"\$as_me:5770: $lt_compile\"" >&5)
5771 (eval "$lt_compile" 2>conftest.err)
5772 ac_status=$?
5773 cat conftest.err >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 if (exit $ac_status) && test -s "$ac_outfile"; then
5776 # The compiler can only warn and ignore the option if not recognized
5777 # So say no if there are warnings
5778 if test ! -s conftest.err; then
5779 lt_prog_compiler_pic_works=yes
5780 fi
5781 fi
5782 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005783
a.rottmann9bc8b932004-02-29 15:18:31 +00005784fi
5785echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5786echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005787
a.rottmann9bc8b932004-02-29 15:18:31 +00005788if test x"$lt_prog_compiler_pic_works" = xyes; then
5789 case $lt_prog_compiler_pic in
5790 "" | " "*) ;;
5791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5792 esac
drh71eb93e2001-09-28 01:34:43 +00005793else
a.rottmann9bc8b932004-02-29 15:18:31 +00005794 lt_prog_compiler_pic=
5795 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005796fi
5797
a.rottmann84e63352003-03-24 09:42:16 +00005798fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005799case "$host_os" in
5800 # For platforms which do not support PIC, -DPIC is meaningless:
5801 *djgpp*)
5802 lt_prog_compiler_pic=
5803 ;;
5804 *)
5805 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5806 ;;
5807esac
a.rottmann84e63352003-03-24 09:42:16 +00005808
a.rottmann84e63352003-03-24 09:42:16 +00005809echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005810echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005811if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
a.rottmann9bc8b932004-02-29 15:18:31 +00005814 lt_cv_prog_compiler_c_o=no
5815 $rm -r conftest 2>/dev/null
5816 mkdir conftest
5817 cd conftest
5818 mkdir out
5819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005820
a.rottmann9bc8b932004-02-29 15:18:31 +00005821 lt_compiler_flag="-o out/conftest2.$ac_objext"
5822 # Insert the option either (1) after the last *FLAGS variable, or
5823 # (2) before a word containing "conftest.", or (3) at the end.
5824 # Note that $ac_compile itself does not contain backslashes and begins
5825 # with a dollar sign (not a hyphen), so the echo should work correctly.
5826 lt_compile=`echo "$ac_compile" | $SED \
5827 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5829 -e 's:$: $lt_compiler_flag:'`
5830 (eval echo "\"\$as_me:5830: $lt_compile\"" >&5)
5831 (eval "$lt_compile" 2>out/conftest.err)
5832 ac_status=$?
5833 cat out/conftest.err >&5
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5836 then
5837 # The compiler can only warn and ignore the option if not recognized
5838 # So say no if there are warnings
5839 if test ! -s out/conftest.err; then
5840 lt_cv_prog_compiler_c_o=yes
5841 fi
5842 fi
5843 chmod u+w .
5844 $rm conftest*
5845 # SGI C++ compiler will create directory out/ii_files/ for
5846 # template instantiation
5847 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5848 $rm out/* && rmdir out
5849 cd ..
5850 rmdir conftest
5851 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005852
5853fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5855echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005856
a.rottmann84e63352003-03-24 09:42:16 +00005857
drh71eb93e2001-09-28 01:34:43 +00005858hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005859if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005860 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005861 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005862echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5863 hard_links=yes
5864 $rm conftest*
5865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5866 touch conftest.a
5867 ln conftest.a conftest.b 2>&5 || hard_links=no
5868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005869 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005870echo "${ECHO_T}$hard_links" >&6
5871 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005873echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5874 need_locks=warn
5875 fi
5876else
5877 need_locks=no
5878fi
5879
a.rottmann9bc8b932004-02-29 15:18:31 +00005880echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5881echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5882
5883 runpath_var=
5884 allow_undefined_flag=
5885 enable_shared_with_static_runtimes=no
5886 archive_cmds=
5887 archive_expsym_cmds=
5888 old_archive_From_new_cmds=
5889 old_archive_from_expsyms_cmds=
5890 export_dynamic_flag_spec=
5891 whole_archive_flag_spec=
5892 thread_safe_flag_spec=
5893 hardcode_libdir_flag_spec=
5894 hardcode_libdir_flag_spec_ld=
5895 hardcode_libdir_separator=
5896 hardcode_direct=no
5897 hardcode_minus_L=no
5898 hardcode_shlibpath_var=unsupported
5899 link_all_deplibs=unknown
5900 hardcode_automatic=no
5901 module_cmds=
5902 module_expsym_cmds=
5903 always_export_symbols=no
5904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5905 # include_expsyms should be a list of space-separated symbols to be *always*
5906 # included in the symbol list
5907 include_expsyms=
5908 # exclude_expsyms can be an extended regexp of symbols to exclude
5909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5911 # as well as any symbol that contains `d'.
5912 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5914 # platforms (ab)use it in PIC code, but their linkers get confused if
5915 # the symbol is explicitly referenced. Since portable code cannot
5916 # rely on this symbol name, it's probably fine to never include it in
5917 # preloaded symbol tables.
5918 extract_expsyms_cmds=
5919
5920 case $host_os in
5921 cygwin* | mingw* | pw32*)
5922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5923 # When not using gcc, we currently assume that we are using
5924 # Microsoft Visual C++.
5925 if test "$GCC" != yes; then
5926 with_gnu_ld=no
5927 fi
5928 ;;
5929 openbsd*)
5930 with_gnu_ld=no
5931 ;;
5932 esac
5933
5934 ld_shlibs=yes
5935 if test "$with_gnu_ld" = yes; then
5936 # If archive_cmds runs LD, not CC, wlarc should be empty
5937 wlarc='${wl}'
5938
5939 # See if GNU ld supports shared libraries.
5940 case $host_os in
5941 aix3* | aix4* | aix5*)
5942 # On AIX/PPC, the GNU linker is very broken
5943 if test "$host_cpu" != ia64; then
5944 ld_shlibs=no
5945 cat <<EOF 1>&2
5946
5947*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5948*** to be unable to reliably create shared libraries on AIX.
5949*** Therefore, libtool is disabling shared libraries support. If you
5950*** really care for shared libraries, you may want to modify your PATH
5951*** so that a non-GNU linker is found, and then restart.
5952
5953EOF
5954 fi
5955 ;;
5956
5957 amigaos*)
5958 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)'
5959 hardcode_libdir_flag_spec='-L$libdir'
5960 hardcode_minus_L=yes
5961
5962 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5963 # that the semantics of dynamic libraries on AmigaOS, at least up
5964 # to version 4, is to share data among multiple programs linked
5965 # with the same dynamic library. Since this doesn't match the
5966 # behavior of shared libraries on other platforms, we can't use
5967 # them.
5968 ld_shlibs=no
5969 ;;
5970
5971 beos*)
5972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5973 allow_undefined_flag=unsupported
5974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5975 # support --undefined. This deserves some investigation. FIXME
5976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5977 else
5978 ld_shlibs=no
5979 fi
5980 ;;
5981
5982 cygwin* | mingw* | pw32*)
5983 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5984 # as there is no search path for DLLs.
5985 hardcode_libdir_flag_spec='-L$libdir'
5986 allow_undefined_flag=unsupported
5987 always_export_symbols=no
5988 enable_shared_with_static_runtimes=yes
5989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5990
5991 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5993 # If the export-symbols file already is a .def file (1st line
5994 # is EXPORTS), use it as is; otherwise, prepend...
5995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5996 cp $export_symbols $output_objdir/$soname.def;
5997 else
5998 echo EXPORTS > $output_objdir/$soname.def;
5999 cat $export_symbols >> $output_objdir/$soname.def;
6000 fi~
6001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6002 else
6003 ld_shlibs=no
6004 fi
6005 ;;
6006
6007 netbsd* | knetbsd*-gnu)
6008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6009 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6010 wlarc=
6011 else
6012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6014 fi
6015 ;;
6016
6017 solaris* | sysv5*)
6018 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6019 ld_shlibs=no
6020 cat <<EOF 1>&2
6021
6022*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6023*** create shared libraries on Solaris systems. Therefore, libtool
6024*** is disabling shared libraries support. We urge you to upgrade GNU
6025*** binutils to release 2.9.1 or newer. Another option is to modify
6026*** your PATH or compiler configuration so that the native linker is
6027*** used, and then restart.
6028
6029EOF
6030 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6033 else
6034 ld_shlibs=no
6035 fi
6036 ;;
6037
6038 sunos4*)
6039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6040 wlarc=
6041 hardcode_direct=yes
6042 hardcode_shlibpath_var=no
6043 ;;
6044
6045 linux*)
6046 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6047 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6048 archive_cmds="$tmp_archive_cmds"
6049 supports_anon_versioning=no
6050 case `$LD -v 2>/dev/null` in
6051 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6052 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6053 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6054 *\ 2.11.*) ;; # other 2.11 versions
6055 *) supports_anon_versioning=yes ;;
6056 esac
6057 if test $supports_anon_versioning = yes; then
6058 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6059cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6060$echo "local: *; };" >> $output_objdir/$libname.ver~
6061 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6062 else
6063 archive_expsym_cmds="$tmp_archive_cmds"
6064 fi
6065 else
6066 ld_shlibs=no
6067 fi
6068 ;;
6069
6070 *)
6071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6074 else
6075 ld_shlibs=no
6076 fi
6077 ;;
6078 esac
6079
6080 if test "$ld_shlibs" = yes; then
6081 runpath_var=LD_RUN_PATH
6082 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6083 export_dynamic_flag_spec='${wl}--export-dynamic'
6084 # ancient GNU ld didn't support --whole-archive et. al.
6085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6086 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6087 else
6088 whole_archive_flag_spec=
6089 fi
6090 fi
6091 else
6092 # PORTME fill in a description of your system's linker (not GNU ld)
6093 case $host_os in
6094 aix3*)
6095 allow_undefined_flag=unsupported
6096 always_export_symbols=yes
6097 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'
6098 # Note: this linker hardcodes the directories in LIBPATH if there
6099 # are no directories specified by -L.
6100 hardcode_minus_L=yes
6101 if test "$GCC" = yes && test -z "$link_static_flag"; then
6102 # Neither direct hardcoding nor static linking is supported with a
6103 # broken collect2.
6104 hardcode_direct=unsupported
6105 fi
6106 ;;
6107
6108 aix4* | aix5*)
6109 if test "$host_cpu" = ia64; then
6110 # On IA64, the linker does run time linking by default, so we don't
6111 # have to do anything special.
6112 aix_use_runtimelinking=no
6113 exp_sym_flag='-Bexport'
6114 no_entry_flag=""
6115 else
6116 # If we're using GNU nm, then we don't want the "-C" option.
6117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6119 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'
6120 else
6121 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'
6122 fi
6123 aix_use_runtimelinking=no
6124
6125 # Test if we are trying to use run time linking or normal
6126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6127 # need to do runtime linking.
6128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6129 for ld_flag in $LDFLAGS; do
6130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6131 aix_use_runtimelinking=yes
6132 break
6133 fi
6134 done
6135 esac
6136
6137 exp_sym_flag='-bexport'
6138 no_entry_flag='-bnoentry'
6139 fi
6140
6141 # When large executables or shared objects are built, AIX ld can
6142 # have problems creating the table of contents. If linking a library
6143 # or program results in "error TOC overflow" add -mminimal-toc to
6144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6146
6147 archive_cmds=''
6148 hardcode_direct=yes
6149 hardcode_libdir_separator=':'
6150 link_all_deplibs=yes
6151
6152 if test "$GCC" = yes; then
6153 case $host_os in aix4.012|aix4.012.*)
6154 # We only want to do this on AIX 4.2 and lower, the check
6155 # below for broken collect2 doesn't work under 4.3+
6156 collect2name=`${CC} -print-prog-name=collect2`
6157 if test -f "$collect2name" && \
6158 strings "$collect2name" | grep resolve_lib_name >/dev/null
6159 then
6160 # We have reworked collect2
6161 hardcode_direct=yes
6162 else
6163 # We have old collect2
6164 hardcode_direct=unsupported
6165 # It fails to find uninstalled libraries when the uninstalled
6166 # path is not listed in the libpath. Setting hardcode_minus_L
6167 # to unsupported forces relinking
6168 hardcode_minus_L=yes
6169 hardcode_libdir_flag_spec='-L$libdir'
6170 hardcode_libdir_separator=
6171 fi
6172 esac
6173 shared_flag='-shared'
6174 else
6175 # not using gcc
6176 if test "$host_cpu" = ia64; then
6177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6178 # chokes on -Wl,-G. The following line is correct:
6179 shared_flag='-G'
6180 else
6181 if test "$aix_use_runtimelinking" = yes; then
6182 shared_flag='${wl}-G'
6183 else
6184 shared_flag='${wl}-bM:SRE'
6185 fi
6186 fi
6187 fi
6188
6189 # It seems that -bexpall does not export symbols beginning with
6190 # underscore (_), so it is better to generate a list of symbols to export.
6191 always_export_symbols=yes
6192 if test "$aix_use_runtimelinking" = yes; then
6193 # Warning - without using the other runtime loading flags (-brtl),
6194 # -berok will link without error, but may produce a broken library.
6195 allow_undefined_flag='-berok'
6196 # Determine the default libpath from the value encoded in an empty executable.
6197 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006198/* confdefs.h. */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006203
a.rottmann84e63352003-03-24 09:42:16 +00006204int
6205main ()
6206{
a.rottmann9bc8b932004-02-29 15:18:31 +00006207
a.rottmann84e63352003-03-24 09:42:16 +00006208 ;
6209 return 0;
6210}
6211_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006212rm -f conftest.$ac_objext conftest$ac_exeext
6213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006215 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006227 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006233
a.rottmann9bc8b932004-02-29 15:18:31 +00006234aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6235}'`
6236# Check for a 64-bit object if we didn't find anything.
6237if 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; }
6238}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006239else
6240 echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006244rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006247
a.rottmann9bc8b932004-02-29 15:18:31 +00006248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6249 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"
6250 else
6251 if test "$host_cpu" = ia64; then
6252 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6253 allow_undefined_flag="-z nodefs"
6254 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"
6255 else
6256 # Determine the default libpath from the value encoded in an empty executable.
6257 cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h. */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006263
a.rottmann9bc8b932004-02-29 15:18:31 +00006264int
6265main ()
6266{
a.rottmann84e63352003-03-24 09:42:16 +00006267
a.rottmann9bc8b932004-02-29 15:18:31 +00006268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006293
a.rottmann9bc8b932004-02-29 15:18:31 +00006294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6295}'`
6296# Check for a 64-bit object if we didn't find anything.
6297if 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; }
6298}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006299else
a.rottmann9bc8b932004-02-29 15:18:31 +00006300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006302
a.rottmann9bc8b932004-02-29 15:18:31 +00006303fi
6304rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006307
a.rottmann9bc8b932004-02-29 15:18:31 +00006308 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6309 # Warning - without using the other run time loading flags,
6310 # -berok will link without error, but may produce a broken library.
6311 no_undefined_flag=' ${wl}-bernotok'
6312 allow_undefined_flag=' ${wl}-berok'
6313 # -bexpall does not export symbols beginning with underscore (_)
6314 always_export_symbols=yes
6315 # Exported symbols can be pulled into shared objects from archives
6316 whole_archive_flag_spec=' '
6317 archive_cmds_need_lc=yes
6318 # This is similar to how AIX traditionally builds it's shared libraries.
6319 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'
a.rottmann84e63352003-03-24 09:42:16 +00006320 fi
6321 fi
a.rottmann84e63352003-03-24 09:42:16 +00006322 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006323
6324 amigaos*)
6325 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)'
6326 hardcode_libdir_flag_spec='-L$libdir'
6327 hardcode_minus_L=yes
6328 # see comment about different semantics on the GNU ld section
6329 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006330 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006331
a.rottmann9bc8b932004-02-29 15:18:31 +00006332 bsdi4*)
6333 export_dynamic_flag_spec=-rdynamic
6334 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006335
a.rottmann9bc8b932004-02-29 15:18:31 +00006336 cygwin* | mingw* | pw32*)
6337 # When not using gcc, we currently assume that we are using
6338 # Microsoft Visual C++.
6339 # hardcode_libdir_flag_spec is actually meaningless, as there is
6340 # no search path for DLLs.
6341 hardcode_libdir_flag_spec=' '
6342 allow_undefined_flag=unsupported
6343 # Tell ltmain to make .lib files, not .a files.
6344 libext=lib
6345 # Tell ltmain to make .dll files, not .so files.
6346 shrext=".dll"
6347 # FIXME: Setting linknames here is a bad hack.
6348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6349 # The linker will automatically build a .lib file if we build a DLL.
6350 old_archive_From_new_cmds='true'
6351 # FIXME: Should let the user specify the lib program.
6352 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6353 fix_srcfile_path='`cygpath -w "$srcfile"`'
6354 enable_shared_with_static_runtimes=yes
6355 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006356
a.rottmann9bc8b932004-02-29 15:18:31 +00006357 darwin* | rhapsody*)
6358 if test "$GXX" = yes ; then
6359 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006360 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006361 rhapsody* | darwin1.[012])
6362 allow_undefined_flag='-undefined suppress'
6363 ;;
6364 *) # Darwin 1.3 on
6365 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6366 allow_undefined_flag='-flat_namespace -undefined suppress'
6367 else
6368 case ${MACOSX_DEPLOYMENT_TARGET} in
6369 10.[012])
6370 allow_undefined_flag='-flat_namespace -undefined suppress'
6371 ;;
6372 10.*)
6373 allow_undefined_flag='-undefined dynamic_lookup'
6374 ;;
6375 esac
6376 fi
a.rottmann84e63352003-03-24 09:42:16 +00006377 ;;
6378 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006379 lt_int_apple_cc_single_mod=no
6380 output_verbose_link_cmd='echo'
6381 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6382 lt_int_apple_cc_single_mod=yes
6383 fi
6384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6385 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6386 else
6387 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'
6388 fi
6389 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6390 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6391 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6392 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}'
6393 else
6394 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}'
6395 fi
6396 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6397 hardcode_direct=no
6398 hardcode_automatic=yes
6399 hardcode_shlibpath_var=unsupported
6400 whole_archive_flag_spec='-all_load $convenience'
6401 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006402 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006403 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006404 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006405 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407 dgux*)
6408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6409 hardcode_libdir_flag_spec='-L$libdir'
6410 hardcode_shlibpath_var=no
6411 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006412
a.rottmann9bc8b932004-02-29 15:18:31 +00006413 freebsd1*)
6414 ld_shlibs=no
6415 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006416
a.rottmann9bc8b932004-02-29 15:18:31 +00006417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6418 # support. Future versions do this automatically, but an explicit c++rt0.o
6419 # does not break anything, and helps significantly (at the cost of a little
6420 # extra space).
6421 freebsd2.2*)
6422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6423 hardcode_libdir_flag_spec='-R$libdir'
6424 hardcode_direct=yes
6425 hardcode_shlibpath_var=no
6426 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006427
a.rottmann9bc8b932004-02-29 15:18:31 +00006428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6429 freebsd2*)
6430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6431 hardcode_direct=yes
6432 hardcode_minus_L=yes
6433 hardcode_shlibpath_var=no
6434 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006435
a.rottmann9bc8b932004-02-29 15:18:31 +00006436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6437 freebsd* | kfreebsd*-gnu)
6438 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6439 hardcode_libdir_flag_spec='-R$libdir'
6440 hardcode_direct=yes
6441 hardcode_shlibpath_var=no
6442 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006443
a.rottmann9bc8b932004-02-29 15:18:31 +00006444 hpux9*)
6445 if test "$GCC" = yes; then
6446 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'
6447 else
6448 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'
6449 fi
6450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6451 hardcode_libdir_separator=:
6452 hardcode_direct=yes
6453
6454 # hardcode_minus_L: Not really in the search PATH,
6455 # but as the default location of the library.
6456 hardcode_minus_L=yes
6457 export_dynamic_flag_spec='${wl}-E'
6458 ;;
6459
6460 hpux10* | hpux11*)
6461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6462 case "$host_cpu" in
6463 hppa*64*|ia64*)
6464 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6465 ;;
6466 *)
6467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6468 ;;
6469 esac
6470 else
6471 case "$host_cpu" in
6472 hppa*64*|ia64*)
6473 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6474 ;;
6475 *)
6476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6477 ;;
6478 esac
6479 fi
6480 if test "$with_gnu_ld" = no; then
6481 case "$host_cpu" in
6482 hppa*64*)
6483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6484 hardcode_libdir_flag_spec_ld='+b $libdir'
6485 hardcode_libdir_separator=:
6486 hardcode_direct=no
6487 hardcode_shlibpath_var=no
6488 ;;
6489 ia64*)
6490 hardcode_libdir_flag_spec='-L$libdir'
6491 hardcode_direct=no
6492 hardcode_shlibpath_var=no
6493
6494 # hardcode_minus_L: Not really in the search PATH,
6495 # but as the default location of the library.
6496 hardcode_minus_L=yes
6497 ;;
6498 *)
6499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6500 hardcode_libdir_separator=:
6501 hardcode_direct=yes
6502 export_dynamic_flag_spec='${wl}-E'
6503
6504 # hardcode_minus_L: Not really in the search PATH,
6505 # but as the default location of the library.
6506 hardcode_minus_L=yes
6507 ;;
6508 esac
6509 fi
6510 ;;
6511
6512 irix5* | irix6* | nonstopux*)
6513 if test "$GCC" = yes; then
6514 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'
6515 else
6516 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'
6517 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6518 fi
6519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6520 hardcode_libdir_separator=:
6521 link_all_deplibs=yes
6522 ;;
6523
6524 netbsd* | knetbsd*-gnu)
6525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6527 else
6528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6529 fi
6530 hardcode_libdir_flag_spec='-R$libdir'
6531 hardcode_direct=yes
6532 hardcode_shlibpath_var=no
6533 ;;
6534
6535 newsos6)
6536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6537 hardcode_direct=yes
6538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6539 hardcode_libdir_separator=:
6540 hardcode_shlibpath_var=no
6541 ;;
6542
6543 openbsd*)
6544 hardcode_direct=yes
6545 hardcode_shlibpath_var=no
6546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6549 export_dynamic_flag_spec='${wl}-E'
6550 else
6551 case $host_os in
6552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6554 hardcode_libdir_flag_spec='-R$libdir'
6555 ;;
6556 *)
6557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6559 ;;
6560 esac
6561 fi
6562 ;;
6563
6564 os2*)
6565 hardcode_libdir_flag_spec='-L$libdir'
6566 hardcode_minus_L=yes
6567 allow_undefined_flag=unsupported
6568 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'
6569 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6570 ;;
6571
6572 osf3*)
6573 if test "$GCC" = yes; then
6574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6575 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'
6576 else
6577 allow_undefined_flag=' -expect_unresolved \*'
6578 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'
6579 fi
6580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6581 hardcode_libdir_separator=:
6582 ;;
6583
6584 osf4* | osf5*) # as osf3* with the addition of -msym flag
6585 if test "$GCC" = yes; then
6586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6587 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'
6588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6589 else
6590 allow_undefined_flag=' -expect_unresolved \*'
6591 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'
6592 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6593 $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'
6594
6595 # Both c and cxx compiler support -rpath directly
6596 hardcode_libdir_flag_spec='-rpath $libdir'
6597 fi
6598 hardcode_libdir_separator=:
6599 ;;
6600
6601 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6603 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006604 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006605 runpath_var=LD_RUN_PATH
6606 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006607 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006608
a.rottmann9bc8b932004-02-29 15:18:31 +00006609 solaris*)
6610 no_undefined_flag=' -z text'
6611 if test "$GCC" = yes; then
6612 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6613 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6614 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6615 else
6616 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6617 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6619 fi
6620 hardcode_libdir_flag_spec='-R$libdir'
6621 hardcode_shlibpath_var=no
6622 case $host_os in
6623 solaris2.[0-5] | solaris2.[0-5].*) ;;
6624 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6625 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6626 esac
6627 link_all_deplibs=yes
6628 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006629
a.rottmann9bc8b932004-02-29 15:18:31 +00006630 sunos4*)
6631 if test "x$host_vendor" = xsequent; then
6632 # Use $CC to link under sequent, because it throws in some extra .o
6633 # files that make .init and .fini sections work.
6634 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6635 else
6636 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6637 fi
6638 hardcode_libdir_flag_spec='-L$libdir'
6639 hardcode_direct=yes
6640 hardcode_minus_L=yes
6641 hardcode_shlibpath_var=no
6642 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006643
a.rottmann9bc8b932004-02-29 15:18:31 +00006644 sysv4)
6645 case $host_vendor in
6646 sni)
6647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6648 hardcode_direct=yes # is this really true???
6649 ;;
6650 siemens)
6651 ## LD is ld it makes a PLAMLIB
6652 ## CC just makes a GrossModule.
6653 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6654 reload_cmds='$CC -r -o $output$reload_objs'
6655 hardcode_direct=no
6656 ;;
6657 motorola)
6658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6659 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6660 ;;
6661 esac
6662 runpath_var='LD_RUN_PATH'
6663 hardcode_shlibpath_var=no
6664 ;;
6665
6666 sysv4.3*)
6667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6668 hardcode_shlibpath_var=no
6669 export_dynamic_flag_spec='-Bexport'
6670 ;;
6671
6672 sysv4*MP*)
6673 if test -d /usr/nec; then
6674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6675 hardcode_shlibpath_var=no
6676 runpath_var=LD_RUN_PATH
6677 hardcode_runpath_var=yes
6678 ld_shlibs=yes
6679 fi
6680 ;;
6681
6682 sysv4.2uw2*)
6683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6684 hardcode_direct=yes
6685 hardcode_minus_L=no
6686 hardcode_shlibpath_var=no
6687 hardcode_runpath_var=yes
6688 runpath_var=LD_RUN_PATH
6689 ;;
6690
6691 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6692 no_undefined_flag='${wl}-z ${wl}text'
6693 if test "$GCC" = yes; then
6694 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6695 else
6696 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6697 fi
6698 runpath_var='LD_RUN_PATH'
6699 hardcode_shlibpath_var=no
6700 ;;
6701
6702 sysv5*)
6703 no_undefined_flag=' -z text'
6704 # $CC -shared without GNU ld will not create a library from C++
6705 # object files and a static libstdc++, better avoid it by now
6706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6707 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6709 hardcode_libdir_flag_spec=
6710 hardcode_shlibpath_var=no
6711 runpath_var='LD_RUN_PATH'
6712 ;;
6713
6714 uts4*)
6715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6716 hardcode_libdir_flag_spec='-L$libdir'
6717 hardcode_shlibpath_var=no
6718 ;;
6719
6720 *)
6721 ld_shlibs=no
6722 ;;
6723 esac
6724 fi
6725
a.rottmann84e63352003-03-24 09:42:16 +00006726echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6727echo "${ECHO_T}$ld_shlibs" >&6
6728test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006729
a.rottmann9bc8b932004-02-29 15:18:31 +00006730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6731if test "$GCC" = yes; then
6732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6733fi
drh71eb93e2001-09-28 01:34:43 +00006734
a.rottmann9bc8b932004-02-29 15:18:31 +00006735#
6736# Do we need to explicitly link libc?
6737#
6738case "x$archive_cmds_need_lc" in
6739x|xyes)
6740 # Assume -lc should be added
6741 archive_cmds_need_lc=yes
6742
6743 if test "$enable_shared" = yes && test "$GCC" = yes; then
6744 case $archive_cmds in
6745 *'~'*)
6746 # FIXME: we may have to deal with multi-command sequences.
6747 ;;
6748 '$CC '*)
6749 # Test whether the compiler implicitly links with -lc since on some
6750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6751 # to ld, don't add -lc before -lgcc.
6752 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6753echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6754 $rm conftest*
6755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6756
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } 2>conftest.err; then
6762 soname=conftest
6763 lib=conftest
6764 libobjs=conftest.$ac_objext
6765 deplibs=
6766 wl=$lt_prog_compiler_wl
6767 compiler_flags=-v
6768 linker_flags=-v
6769 verstring=
6770 output_objdir=.
6771 libname=conftest
6772 lt_save_allow_undefined_flag=$allow_undefined_flag
6773 allow_undefined_flag=
6774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6775 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }
6779 then
6780 archive_cmds_need_lc=no
6781 else
6782 archive_cmds_need_lc=yes
6783 fi
6784 allow_undefined_flag=$lt_save_allow_undefined_flag
6785 else
6786 cat conftest.err 1>&5
6787 fi
6788 $rm conftest*
6789 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6790echo "${ECHO_T}$archive_cmds_need_lc" >&6
6791 ;;
6792 esac
drh71eb93e2001-09-28 01:34:43 +00006793 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006794 ;;
6795esac
drh71eb93e2001-09-28 01:34:43 +00006796
a.rottmann84e63352003-03-24 09:42:16 +00006797echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006798echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6799library_names_spec=
6800libname_spec='lib$name'
6801soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006802shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006803postinstall_cmds=
6804postuninstall_cmds=
6805finish_cmds=
6806finish_eval=
6807shlibpath_var=
6808shlibpath_overrides_runpath=unknown
6809version_type=none
6810dynamic_linker="$host_os ld.so"
6811sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006812if test "$GCC" = yes; then
6813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6815 # if the path contains ";" then we assume it to be the separator
6816 # otherwise default to the standard path separator (i.e. ":") - it is
6817 # assumed that no part of a normal pathname contains ";" but that should
6818 # okay in the real world where ";" in dirpaths is itself problematic.
6819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6820 else
6821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6822 fi
6823else
6824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6825fi
6826need_lib_prefix=unknown
6827hardcode_into_libs=no
6828
6829# when you set need_version to no, make sure it does not cause -set_version
6830# flags to be left without arguments
6831need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006832
6833case $host_os in
6834aix3*)
6835 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006837 shlibpath_var=LIBPATH
6838
a.rottmann9bc8b932004-02-29 15:18:31 +00006839 # AIX 3 has no versioning support, so we append a major version to the name.
6840 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006841 ;;
6842
6843aix4* | aix5*)
6844 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006845 need_lib_prefix=no
6846 need_version=no
6847 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006848 if test "$host_cpu" = ia64; then
6849 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006851 shlibpath_var=LD_LIBRARY_PATH
6852 else
6853 # With GCC up to 2.95.x, collect2 would create an import file
6854 # for dependence libraries. The import file would start with
6855 # the line `#! .'. This would cause the generated library to
6856 # depend on `.', always an invalid library. This was fixed in
6857 # development snapshots of GCC prior to 3.0.
6858 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006859 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6861 echo ' yes '
6862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6863 :
6864 else
6865 can_build_shared=no
6866 fi
6867 ;;
drh71eb93e2001-09-28 01:34:43 +00006868 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6870 # soname into executable. Probably we can add versioning support to
6871 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006872 if test "$aix_use_runtimelinking" = yes; then
6873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6874 # instead of lib<name>.a to let people know that these are not
6875 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006877 else
6878 # We preserve .a as extension for shared libraries through AIX4.2
6879 # and later when we are not doing run time linking.
6880 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006881 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006882 fi
6883 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006884 fi
6885 ;;
6886
6887amigaos*)
6888 library_names_spec='$libname.ixlibrary $libname.a'
6889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006890 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'
drh71eb93e2001-09-28 01:34:43 +00006891 ;;
6892
6893beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006894 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006895 dynamic_linker="$host_os ld.so"
6896 shlibpath_var=LIBRARY_PATH
6897 ;;
6898
6899bsdi4*)
6900 version_type=linux
6901 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6903 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6905 shlibpath_var=LD_LIBRARY_PATH
6906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6908 # the default ld.so.conf also contains /usr/contrib/lib and
6909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6910 # libtool to hard-code these into programs
6911 ;;
6912
6913cygwin* | mingw* | pw32*)
6914 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006916 need_version=no
6917 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006918
drh71eb93e2001-09-28 01:34:43 +00006919 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006921 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6923 postinstall_cmds='base_file=`basename \${file}`~
6924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006925 dldir=$destdir/`dirname \$dlpath`~
6926 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006927 $install_prog $dir/$dlname \$dldir/$dlname'
6928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006929 dlpath=$dir/\$dldll~
6930 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006931 shlibpath_overrides_runpath=yes
6932
6933 case $host_os in
6934 cygwin*)
6935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6936 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6938 ;;
6939 mingw*)
6940 # MinGW DLLs use traditional 'lib' prefix
6941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6943 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6944 # It is most probably a Windows format PATH printed by
6945 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6946 # path with ; separators, and with drive letters. We can handle the
6947 # drive letters (cygwin fileutils understands them), so leave them,
6948 # especially as we might pass files found there to a mingw objdump,
6949 # which wouldn't understand a cygwinified path. Ahh.
6950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6951 else
6952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6953 fi
6954 ;;
6955 pw32*)
6956 # pw32 DLLs use 'pw' prefix rather than 'lib'
6957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6958 ;;
6959 esac
drh71eb93e2001-09-28 01:34:43 +00006960 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006961
drh71eb93e2001-09-28 01:34:43 +00006962 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006964 ;;
6965 esac
6966 dynamic_linker='Win32 ld.exe'
6967 # FIXME: first we should search . and the directory the executable is in
6968 shlibpath_var=PATH
6969 ;;
6970
6971darwin* | rhapsody*)
6972 dynamic_linker="$host_os dyld"
6973 version_type=darwin
6974 need_lib_prefix=no
6975 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006976 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6977 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00006978 shlibpath_overrides_runpath=yes
6979 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6981 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6982 if test "$GCC" = yes; then
6983 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"`
6984 else
6985 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6986 fi
6987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6988 ;;
6989
6990dgux*)
6991 version_type=linux
6992 need_lib_prefix=no
6993 need_version=no
6994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6995 soname_spec='${libname}${release}${shared_ext}$major'
6996 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00006997 ;;
6998
a.rottmann84e63352003-03-24 09:42:16 +00006999freebsd1*)
7000 dynamic_linker=no
7001 ;;
7002
a.rottmann9bc8b932004-02-29 15:18:31 +00007003kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007004 version_type=linux
7005 need_lib_prefix=no
7006 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7008 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007009 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007010 shlibpath_overrides_runpath=no
7011 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007012 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007013 ;;
7014
7015freebsd*)
7016 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7017 version_type=freebsd-$objformat
7018 case $version_type in
7019 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007021 need_version=no
7022 need_lib_prefix=no
7023 ;;
7024 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007026 need_version=yes
7027 ;;
7028 esac
7029 shlibpath_var=LD_LIBRARY_PATH
7030 case $host_os in
7031 freebsd2*)
7032 shlibpath_overrides_runpath=yes
7033 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 freebsd3.01* | freebsdelf3.01*)
7035 shlibpath_overrides_runpath=yes
7036 hardcode_into_libs=yes
7037 ;;
7038 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007039 shlibpath_overrides_runpath=no
7040 hardcode_into_libs=yes
7041 ;;
7042 esac
7043 ;;
7044
7045gnu*)
7046 version_type=linux
7047 need_lib_prefix=no
7048 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7050 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007051 shlibpath_var=LD_LIBRARY_PATH
7052 hardcode_into_libs=yes
7053 ;;
7054
7055hpux9* | hpux10* | hpux11*)
7056 # Give a soname corresponding to the major version so that dld.sl refuses to
7057 # link against other versions.
7058 version_type=sunos
7059 need_lib_prefix=no
7060 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007061 case "$host_cpu" in
7062 ia64*)
7063 shrext='.so'
7064 hardcode_into_libs=yes
7065 dynamic_linker="$host_os dld.so"
7066 shlibpath_var=LD_LIBRARY_PATH
7067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 if test "X$HPUX_IA64_MODE" = X32; then
7071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7072 else
7073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7074 fi
7075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7076 ;;
7077 hppa*64*)
7078 shrext='.sl'
7079 hardcode_into_libs=yes
7080 dynamic_linker="$host_os dld.sl"
7081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084 soname_spec='${libname}${release}${shared_ext}$major'
7085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7087 ;;
7088 *)
7089 shrext='.sl'
7090 dynamic_linker="$host_os dld.sl"
7091 shlibpath_var=SHLIB_PATH
7092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7094 soname_spec='${libname}${release}${shared_ext}$major'
7095 ;;
7096 esac
drh71eb93e2001-09-28 01:34:43 +00007097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7098 postinstall_cmds='chmod 555 $lib'
7099 ;;
7100
a.rottmann84e63352003-03-24 09:42:16 +00007101irix5* | irix6* | nonstopux*)
7102 case $host_os in
7103 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 *)
7105 if test "$lt_cv_prog_gnu_ld" = yes; then
7106 version_type=linux
7107 else
7108 version_type=irix
7109 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007110 esac
drh71eb93e2001-09-28 01:34:43 +00007111 need_lib_prefix=no
7112 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007113 soname_spec='${libname}${release}${shared_ext}$major'
7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007115 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007116 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007117 libsuff= shlibsuff=
7118 ;;
7119 *)
7120 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7122 libsuff= shlibsuff= libmagic=32-bit;;
7123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7124 libsuff=32 shlibsuff=N32 libmagic=N32;;
7125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007127 *) libsuff= shlibsuff= libmagic=never-match;;
7128 esac
7129 ;;
7130 esac
7131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7132 shlibpath_overrides_runpath=no
7133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007136 ;;
7137
7138# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007139linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007140 dynamic_linker=no
7141 ;;
7142
7143# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007144linux*)
drh71eb93e2001-09-28 01:34:43 +00007145 version_type=linux
7146 need_lib_prefix=no
7147 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7151 shlibpath_var=LD_LIBRARY_PATH
7152 shlibpath_overrides_runpath=no
7153 # This implies no fast_install, which is unacceptable.
7154 # Some rework will be needed to allow for fast_install
7155 # before this can be enabled.
7156 hardcode_into_libs=yes
7157
a.rottmann9bc8b932004-02-29 15:18:31 +00007158 # Append ld.so.conf contents to the search path
7159 if test -f /etc/ld.so.conf; then
7160 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7161 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7162 fi
7163
drh71eb93e2001-09-28 01:34:43 +00007164 # We used to test for /lib/ld.so.1 and disable shared libraries on
7165 # powerpc, because MkLinux only supported shared libraries with the
7166 # GNU dynamic linker. Since this was broken with cross compilers,
7167 # most powerpc-linux boxes support dynamic linking these days and
7168 # people can always --disable-shared, the test was removed, and we
7169 # assume the GNU/Linux dynamic linker is in use.
7170 dynamic_linker='GNU/Linux ld.so'
7171 ;;
7172
a.rottmann9bc8b932004-02-29 15:18:31 +00007173knetbsd*-gnu)
7174 version_type=linux
7175 need_lib_prefix=no
7176 need_version=no
7177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7178 soname_spec='${libname}${release}${shared_ext}$major'
7179 shlibpath_var=LD_LIBRARY_PATH
7180 shlibpath_overrides_runpath=no
7181 hardcode_into_libs=yes
7182 dynamic_linker='GNU ld.so'
7183 ;;
7184
drh71eb93e2001-09-28 01:34:43 +00007185netbsd*)
7186 version_type=sunos
7187 need_lib_prefix=no
7188 need_version=no
7189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7192 dynamic_linker='NetBSD (a.out) ld.so'
7193 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007196 dynamic_linker='NetBSD ld.elf_so'
7197 fi
7198 shlibpath_var=LD_LIBRARY_PATH
7199 shlibpath_overrides_runpath=yes
7200 hardcode_into_libs=yes
7201 ;;
7202
7203newsos6)
7204 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7206 shlibpath_var=LD_LIBRARY_PATH
7207 shlibpath_overrides_runpath=yes
7208 ;;
7209
7210nto-qnx*)
7211 version_type=linux
7212 need_lib_prefix=no
7213 need_version=no
7214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7215 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007216 shlibpath_var=LD_LIBRARY_PATH
7217 shlibpath_overrides_runpath=yes
7218 ;;
7219
drh71eb93e2001-09-28 01:34:43 +00007220openbsd*)
7221 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007222 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007223 need_version=yes
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7226 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007228 case $host_os in
7229 openbsd2.[89] | openbsd2.[89].*)
7230 shlibpath_overrides_runpath=no
7231 ;;
7232 *)
7233 shlibpath_overrides_runpath=yes
7234 ;;
7235 esac
a.rottmann84e63352003-03-24 09:42:16 +00007236 else
7237 shlibpath_overrides_runpath=yes
7238 fi
drh71eb93e2001-09-28 01:34:43 +00007239 ;;
7240
7241os2*)
7242 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007244 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007246 dynamic_linker='OS/2 ld.exe'
7247 shlibpath_var=LIBPATH
7248 ;;
7249
7250osf3* | osf4* | osf5*)
7251 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007252 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 need_version=no
7254 soname_spec='${libname}${release}${shared_ext}$major'
7255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007256 shlibpath_var=LD_LIBRARY_PATH
7257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7259 ;;
7260
7261sco3.2v5*)
7262 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 soname_spec='${libname}${release}${shared_ext}$major'
7264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007265 shlibpath_var=LD_LIBRARY_PATH
7266 ;;
7267
7268solaris*)
7269 version_type=linux
7270 need_lib_prefix=no
7271 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7273 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007274 shlibpath_var=LD_LIBRARY_PATH
7275 shlibpath_overrides_runpath=yes
7276 hardcode_into_libs=yes
7277 # ldd complains unless libraries are executable
7278 postinstall_cmds='chmod +x $lib'
7279 ;;
7280
7281sunos4*)
7282 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7285 shlibpath_var=LD_LIBRARY_PATH
7286 shlibpath_overrides_runpath=yes
7287 if test "$with_gnu_ld" = yes; then
7288 need_lib_prefix=no
7289 fi
7290 need_version=yes
7291 ;;
7292
7293sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7294 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7296 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007297 shlibpath_var=LD_LIBRARY_PATH
7298 case $host_vendor in
7299 sni)
7300 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007301 need_lib_prefix=no
7302 export_dynamic_flag_spec='${wl}-Blargedynsym'
7303 runpath_var=LD_RUN_PATH
7304 ;;
7305 siemens)
7306 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007307 ;;
7308 motorola)
7309 need_lib_prefix=no
7310 need_version=no
7311 shlibpath_overrides_runpath=no
7312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7313 ;;
7314 esac
7315 ;;
7316
7317sysv4*MP*)
7318 if test -d /usr/nec ;then
7319 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7321 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007322 shlibpath_var=LD_LIBRARY_PATH
7323 fi
7324 ;;
7325
a.rottmann9bc8b932004-02-29 15:18:31 +00007326uts4*)
7327 version_type=linux
7328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7329 soname_spec='${libname}${release}${shared_ext}$major'
7330 shlibpath_var=LD_LIBRARY_PATH
7331 ;;
7332
drh71eb93e2001-09-28 01:34:43 +00007333*)
7334 dynamic_linker=no
7335 ;;
7336esac
a.rottmann84e63352003-03-24 09:42:16 +00007337echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007338echo "${ECHO_T}$dynamic_linker" >&6
7339test "$dynamic_linker" = no && can_build_shared=no
7340
a.rottmann9bc8b932004-02-29 15:18:31 +00007341echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7342echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7343hardcode_action=
7344if test -n "$hardcode_libdir_flag_spec" || \
7345 test -n "$runpath_var " || \
7346 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007347
a.rottmann9bc8b932004-02-29 15:18:31 +00007348 # We can hardcode non-existant directories.
7349 if test "$hardcode_direct" != no &&
7350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7351 # have to relink, otherwise we might link with an installed library
7352 # when we should be linking with a yet-to-be-installed one
7353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7354 test "$hardcode_minus_L" != no; then
7355 # Linking always hardcodes the temporary library directory.
7356 hardcode_action=relink
7357 else
7358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7359 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007360 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007361else
7362 # We cannot hardcode anything, or else we can only hardcode existing
7363 # directories.
7364 hardcode_action=unsupported
7365fi
7366echo "$as_me:$LINENO: result: $hardcode_action" >&5
7367echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007368
7369if test "$hardcode_action" = relink; then
7370 # Fast installation is not supported
7371 enable_fast_install=no
7372elif test "$shlibpath_overrides_runpath" = yes ||
7373 test "$enable_shared" = no; then
7374 # Fast installation is not necessary
7375 enable_fast_install=needless
7376fi
7377
a.rottmann9bc8b932004-02-29 15:18:31 +00007378striplib=
7379old_striplib=
7380echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7381echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7382if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7385 echo "$as_me:$LINENO: result: yes" >&5
7386echo "${ECHO_T}yes" >&6
7387else
7388# FIXME - insert some real tests, host_os isn't really good enough
7389 case $host_os in
7390 darwin*)
7391 if test -n "$STRIP" ; then
7392 striplib="$STRIP -x"
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
7398fi
7399 ;;
7400 *)
7401 echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6
7403 ;;
7404 esac
a.rottmann84e63352003-03-24 09:42:16 +00007405fi
7406
drh71eb93e2001-09-28 01:34:43 +00007407if test "x$enable_dlopen" != xyes; then
7408 enable_dlopen=unknown
7409 enable_dlopen_self=unknown
7410 enable_dlopen_self_static=unknown
7411else
7412 lt_cv_dlopen=no
7413 lt_cv_dlopen_libs=
7414
7415 case $host_os in
7416 beos*)
7417 lt_cv_dlopen="load_add_on"
7418 lt_cv_dlopen_libs=
7419 lt_cv_dlopen_self=yes
7420 ;;
7421
a.rottmann9bc8b932004-02-29 15:18:31 +00007422 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007423 lt_cv_dlopen="LoadLibrary"
7424 lt_cv_dlopen_libs=
7425 ;;
7426
a.rottmann9bc8b932004-02-29 15:18:31 +00007427 cygwin*)
7428 lt_cv_dlopen="dlopen"
7429 lt_cv_dlopen_libs=
7430 ;;
7431
7432 darwin*)
7433 # if libdl is installed we need to link against it
7434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7435echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7436if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 ac_check_lib_save_LIBS=$LIBS
7440LIBS="-ldl $LIBS"
7441cat >conftest.$ac_ext <<_ACEOF
7442/* confdefs.h. */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h. */
7447
7448/* Override any gcc2 internal prototype to avoid an error. */
7449#ifdef __cplusplus
7450extern "C"
7451#endif
7452/* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7454char dlopen ();
7455int
7456main ()
7457{
7458dlopen ();
7459 ;
7460 return 0;
7461}
7462_ACEOF
7463rm -f conftest.$ac_objext conftest$ac_exeext
7464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_lib_dl_dlopen=yes
7485else
7486 echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489ac_cv_lib_dl_dlopen=no
7490fi
7491rm -f conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493LIBS=$ac_check_lib_save_LIBS
7494fi
7495echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7496echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7497if test $ac_cv_lib_dl_dlopen = yes; then
7498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7499else
7500
7501 lt_cv_dlopen="dyld"
7502 lt_cv_dlopen_libs=
7503 lt_cv_dlopen_self=yes
7504
7505fi
7506
7507 ;;
7508
drh71eb93e2001-09-28 01:34:43 +00007509 *)
a.rottmann84e63352003-03-24 09:42:16 +00007510 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007511echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7512if test "${ac_cv_func_shl_load+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007516/* confdefs.h. */
7517_ACEOF
7518cat confdefs.h >>conftest.$ac_ext
7519cat >>conftest.$ac_ext <<_ACEOF
7520/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007521/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7523#define shl_load innocuous_shl_load
7524
drh71eb93e2001-09-28 01:34:43 +00007525/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007526 which can conflict with char shl_load (); below.
7527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7528 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007529
a.rottmann84e63352003-03-24 09:42:16 +00007530#ifdef __STDC__
7531# include <limits.h>
7532#else
7533# include <assert.h>
7534#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007535
7536#undef shl_load
7537
drh71eb93e2001-09-28 01:34:43 +00007538/* Override any gcc2 internal prototype to avoid an error. */
7539#ifdef __cplusplus
7540extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007541{
drh71eb93e2001-09-28 01:34:43 +00007542#endif
7543/* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007546/* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549#if defined (__stub_shl_load) || defined (__stub___shl_load)
7550choke me
7551#else
a.rottmann84e63352003-03-24 09:42:16 +00007552char (*f) () = shl_load;
7553#endif
7554#ifdef __cplusplus
7555}
drh71eb93e2001-09-28 01:34:43 +00007556#endif
7557
a.rottmann84e63352003-03-24 09:42:16 +00007558int
7559main ()
7560{
7561return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007562 ;
7563 return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007568 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007569 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007574 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007583 (eval $ac_try) 2>&5
7584 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007586 (exit $ac_status); }; }; then
7587 ac_cv_func_shl_load=yes
7588else
7589 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007590sed 's/^/| /' conftest.$ac_ext >&5
7591
drh71eb93e2001-09-28 01:34:43 +00007592ac_cv_func_shl_load=no
7593fi
a.rottmann964dbb12004-02-26 19:47:42 +00007594rm -f conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007596fi
a.rottmann84e63352003-03-24 09:42:16 +00007597echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007598echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7599if test $ac_cv_func_shl_load = yes; then
7600 lt_cv_dlopen="shl_load"
7601else
a.rottmann84e63352003-03-24 09:42:16 +00007602 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007603echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7604if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 ac_check_lib_save_LIBS=$LIBS
7608LIBS="-ldld $LIBS"
7609cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007610/* confdefs.h. */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007615
7616/* Override any gcc2 internal prototype to avoid an error. */
7617#ifdef __cplusplus
7618extern "C"
7619#endif
7620/* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622char shl_load ();
7623int
7624main ()
7625{
7626shl_load ();
7627 ;
7628 return 0;
7629}
7630_ACEOF
7631rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007633 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007634 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007639 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; } &&
7646 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007648 (eval $ac_try) 2>&5
7649 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007651 (exit $ac_status); }; }; then
7652 ac_cv_lib_dld_shl_load=yes
7653else
7654 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007655sed 's/^/| /' conftest.$ac_ext >&5
7656
drh71eb93e2001-09-28 01:34:43 +00007657ac_cv_lib_dld_shl_load=no
7658fi
a.rottmann964dbb12004-02-26 19:47:42 +00007659rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007661LIBS=$ac_check_lib_save_LIBS
7662fi
a.rottmann84e63352003-03-24 09:42:16 +00007663echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7665if test $ac_cv_lib_dld_shl_load = yes; then
7666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7667else
a.rottmann84e63352003-03-24 09:42:16 +00007668 echo "$as_me:$LINENO: checking for dlopen" >&5
7669echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7670if test "${ac_cv_func_dlopen+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007679/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7681#define dlopen innocuous_dlopen
7682
a.rottmann84e63352003-03-24 09:42:16 +00007683/* System header to define __stub macros and hopefully few prototypes,
7684 which can conflict with char dlopen (); below.
7685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7686 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007687
a.rottmann84e63352003-03-24 09:42:16 +00007688#ifdef __STDC__
7689# include <limits.h>
7690#else
7691# include <assert.h>
7692#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007693
7694#undef dlopen
7695
a.rottmann84e63352003-03-24 09:42:16 +00007696/* Override any gcc2 internal prototype to avoid an error. */
7697#ifdef __cplusplus
7698extern "C"
7699{
7700#endif
7701/* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7703char dlopen ();
7704/* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707#if defined (__stub_dlopen) || defined (__stub___dlopen)
7708choke me
7709#else
7710char (*f) () = dlopen;
7711#endif
7712#ifdef __cplusplus
7713}
7714#endif
7715
7716int
7717main ()
7718{
7719return f != dlopen;
7720 ;
7721 return 0;
7722}
7723_ACEOF
7724rm -f conftest.$ac_objext conftest$ac_exeext
7725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007726 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007727 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_func_dlopen=yes
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
7750ac_cv_func_dlopen=no
7751fi
a.rottmann964dbb12004-02-26 19:47:42 +00007752rm -f conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007754fi
7755echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7756echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7757if test $ac_cv_func_dlopen = yes; then
7758 lt_cv_dlopen="dlopen"
7759else
7760 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 ac_check_lib_save_LIBS=$LIBS
7766LIBS="-ldl $LIBS"
7767cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007773
7774/* Override any gcc2 internal prototype to avoid an error. */
7775#ifdef __cplusplus
7776extern "C"
7777#endif
7778/* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7780char dlopen ();
7781int
7782main ()
7783{
7784dlopen ();
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007791 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007792 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007797 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007806 (eval $ac_try) 2>&5
7807 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007809 (exit $ac_status); }; }; then
7810 ac_cv_lib_dl_dlopen=yes
7811else
7812 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007813sed 's/^/| /' conftest.$ac_ext >&5
7814
drh71eb93e2001-09-28 01:34:43 +00007815ac_cv_lib_dl_dlopen=no
7816fi
a.rottmann964dbb12004-02-26 19:47:42 +00007817rm -f conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007819LIBS=$ac_check_lib_save_LIBS
7820fi
a.rottmann84e63352003-03-24 09:42:16 +00007821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007822echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7823if test $ac_cv_lib_dl_dlopen = yes; then
7824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7825else
a.rottmann84e63352003-03-24 09:42:16 +00007826 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007827echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7828if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831 ac_check_lib_save_LIBS=$LIBS
7832LIBS="-lsvld $LIBS"
7833cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007839
7840/* Override any gcc2 internal prototype to avoid an error. */
7841#ifdef __cplusplus
7842extern "C"
7843#endif
7844/* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7846char dlopen ();
7847int
7848main ()
7849{
7850dlopen ();
7851 ;
7852 return 0;
7853}
7854_ACEOF
7855rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007857 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007858 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007863 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007872 (eval $ac_try) 2>&5
7873 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007875 (exit $ac_status); }; }; then
7876 ac_cv_lib_svld_dlopen=yes
7877else
7878 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007879sed 's/^/| /' conftest.$ac_ext >&5
7880
drh71eb93e2001-09-28 01:34:43 +00007881ac_cv_lib_svld_dlopen=no
7882fi
a.rottmann964dbb12004-02-26 19:47:42 +00007883rm -f conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007885LIBS=$ac_check_lib_save_LIBS
7886fi
a.rottmann84e63352003-03-24 09:42:16 +00007887echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007888echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7889if test $ac_cv_lib_svld_dlopen = yes; then
7890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007891else
7892 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7893echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7894if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 ac_check_lib_save_LIBS=$LIBS
7898LIBS="-ldld $LIBS"
7899cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905
7906/* Override any gcc2 internal prototype to avoid an error. */
7907#ifdef __cplusplus
7908extern "C"
7909#endif
7910/* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912char dld_link ();
7913int
7914main ()
7915{
7916dld_link ();
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007923 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007924 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_lib_dld_dld_link=yes
7943else
7944 echo "$as_me: failed program was:" >&5
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007948fi
a.rottmann964dbb12004-02-26 19:47:42 +00007949rm -f conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007951LIBS=$ac_check_lib_save_LIBS
7952fi
7953echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7954echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7955if test $ac_cv_lib_dld_dld_link = yes; then
7956 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7957fi
7958
drh71eb93e2001-09-28 01:34:43 +00007959
7960fi
7961
drh71eb93e2001-09-28 01:34:43 +00007962
7963fi
7964
a.rottmann84e63352003-03-24 09:42:16 +00007965
7966fi
7967
7968
7969fi
7970
7971
drh71eb93e2001-09-28 01:34:43 +00007972fi
7973
7974 ;;
7975 esac
7976
7977 if test "x$lt_cv_dlopen" != xno; then
7978 enable_dlopen=yes
7979 else
7980 enable_dlopen=no
7981 fi
7982
7983 case $lt_cv_dlopen in
7984 dlopen)
7985 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007986 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00007987
7988 save_LDFLAGS="$LDFLAGS"
7989 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7990
7991 save_LIBS="$LIBS"
7992 LIBS="$lt_cv_dlopen_libs $LIBS"
7993
a.rottmann84e63352003-03-24 09:42:16 +00007994 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00007995echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7996if test "${lt_cv_dlopen_self+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 if test "$cross_compiling" = yes; then :
8000 lt_cv_dlopen_self=cross
8001else
a.rottmann9bc8b932004-02-29 15:18:31 +00008002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008003 lt_status=$lt_dlunknown
8004 cat > conftest.$ac_ext <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00008005#line 8005 "configure"
drh71eb93e2001-09-28 01:34:43 +00008006#include "confdefs.h"
8007
8008#if HAVE_DLFCN_H
8009#include <dlfcn.h>
8010#endif
8011
8012#include <stdio.h>
8013
8014#ifdef RTLD_GLOBAL
8015# define LT_DLGLOBAL RTLD_GLOBAL
8016#else
8017# ifdef DL_GLOBAL
8018# define LT_DLGLOBAL DL_GLOBAL
8019# else
8020# define LT_DLGLOBAL 0
8021# endif
8022#endif
8023
8024/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8025 find out it does not work in some platform. */
8026#ifndef LT_DLLAZY_OR_NOW
8027# ifdef RTLD_LAZY
8028# define LT_DLLAZY_OR_NOW RTLD_LAZY
8029# else
8030# ifdef DL_LAZY
8031# define LT_DLLAZY_OR_NOW DL_LAZY
8032# else
8033# ifdef RTLD_NOW
8034# define LT_DLLAZY_OR_NOW RTLD_NOW
8035# else
8036# ifdef DL_NOW
8037# define LT_DLLAZY_OR_NOW DL_NOW
8038# else
8039# define LT_DLLAZY_OR_NOW 0
8040# endif
8041# endif
8042# endif
8043# endif
8044#endif
8045
8046#ifdef __cplusplus
8047extern "C" void exit (int);
8048#endif
8049
8050void fnord() { int i=42;}
8051int main ()
8052{
8053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8054 int status = $lt_dlunknown;
8055
8056 if (self)
8057 {
8058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8060 /* dlclose (self); */
8061 }
8062
8063 exit (status);
8064}
8065EOF
a.rottmann84e63352003-03-24 09:42:16 +00008066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008067 (eval $ac_link) 2>&5
8068 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008070 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8071 (./conftest; exit; ) 2>/dev/null
8072 lt_status=$?
8073 case x$lt_status in
8074 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8075 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8076 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8077 esac
8078 else :
8079 # compilation failed
8080 lt_cv_dlopen_self=no
8081 fi
8082fi
8083rm -fr conftest*
8084
a.rottmann84e63352003-03-24 09:42:16 +00008085
drh71eb93e2001-09-28 01:34:43 +00008086fi
a.rottmann84e63352003-03-24 09:42:16 +00008087echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008088echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8089
8090 if test "x$lt_cv_dlopen_self" = xyes; then
8091 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008092 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008093echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8094if test "${lt_cv_dlopen_self_static+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 if test "$cross_compiling" = yes; then :
8098 lt_cv_dlopen_self_static=cross
8099else
a.rottmann9bc8b932004-02-29 15:18:31 +00008100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008101 lt_status=$lt_dlunknown
8102 cat > conftest.$ac_ext <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00008103#line 8103 "configure"
drh71eb93e2001-09-28 01:34:43 +00008104#include "confdefs.h"
8105
8106#if HAVE_DLFCN_H
8107#include <dlfcn.h>
8108#endif
8109
8110#include <stdio.h>
8111
8112#ifdef RTLD_GLOBAL
8113# define LT_DLGLOBAL RTLD_GLOBAL
8114#else
8115# ifdef DL_GLOBAL
8116# define LT_DLGLOBAL DL_GLOBAL
8117# else
8118# define LT_DLGLOBAL 0
8119# endif
8120#endif
8121
8122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8123 find out it does not work in some platform. */
8124#ifndef LT_DLLAZY_OR_NOW
8125# ifdef RTLD_LAZY
8126# define LT_DLLAZY_OR_NOW RTLD_LAZY
8127# else
8128# ifdef DL_LAZY
8129# define LT_DLLAZY_OR_NOW DL_LAZY
8130# else
8131# ifdef RTLD_NOW
8132# define LT_DLLAZY_OR_NOW RTLD_NOW
8133# else
8134# ifdef DL_NOW
8135# define LT_DLLAZY_OR_NOW DL_NOW
8136# else
8137# define LT_DLLAZY_OR_NOW 0
8138# endif
8139# endif
8140# endif
8141# endif
8142#endif
8143
8144#ifdef __cplusplus
8145extern "C" void exit (int);
8146#endif
8147
8148void fnord() { int i=42;}
8149int main ()
8150{
8151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8152 int status = $lt_dlunknown;
8153
8154 if (self)
8155 {
8156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8157 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8158 /* dlclose (self); */
8159 }
8160
8161 exit (status);
8162}
8163EOF
a.rottmann84e63352003-03-24 09:42:16 +00008164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008165 (eval $ac_link) 2>&5
8166 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8169 (./conftest; exit; ) 2>/dev/null
8170 lt_status=$?
8171 case x$lt_status in
8172 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8173 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8174 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8175 esac
8176 else :
8177 # compilation failed
8178 lt_cv_dlopen_self_static=no
8179 fi
8180fi
8181rm -fr conftest*
8182
a.rottmann84e63352003-03-24 09:42:16 +00008183
drh71eb93e2001-09-28 01:34:43 +00008184fi
a.rottmann84e63352003-03-24 09:42:16 +00008185echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008186echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8187 fi
8188
8189 CPPFLAGS="$save_CPPFLAGS"
8190 LDFLAGS="$save_LDFLAGS"
8191 LIBS="$save_LIBS"
8192 ;;
8193 esac
8194
8195 case $lt_cv_dlopen_self in
8196 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8197 *) enable_dlopen_self=unknown ;;
8198 esac
8199
8200 case $lt_cv_dlopen_self_static in
8201 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8202 *) enable_dlopen_self_static=unknown ;;
8203 esac
8204fi
8205
drh71eb93e2001-09-28 01:34:43 +00008206
a.rottmann9bc8b932004-02-29 15:18:31 +00008207# Report which librarie types wil actually be built
8208echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8209echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8210echo "$as_me:$LINENO: result: $can_build_shared" >&5
8211echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008212
a.rottmann9bc8b932004-02-29 15:18:31 +00008213echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8214echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8215test "$can_build_shared" = "no" && enable_shared=no
8216
8217# On AIX, shared libraries and static libraries use the same namespace, and
8218# are all built from PIC.
8219case "$host_os" in
8220aix3*)
8221 test "$enable_shared" = yes && enable_static=no
8222 if test -n "$RANLIB"; then
8223 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8224 postinstall_cmds='$RANLIB $lib'
8225 fi
8226 ;;
8227
8228aix4*)
8229 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8230 test "$enable_shared" = yes && enable_static=no
8231 fi
8232 ;;
8233 darwin* | rhapsody*)
8234 if test "$GCC" = yes; then
8235 archive_cmds_need_lc=no
8236 case "$host_os" in
8237 rhapsody* | darwin1.[012])
8238 allow_undefined_flag='-undefined suppress'
8239 ;;
8240 *) # Darwin 1.3 on
8241 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8242 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008243 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008244 case ${MACOSX_DEPLOYMENT_TARGET} in
8245 10.[012])
8246 allow_undefined_flag='-flat_namespace -undefined suppress'
8247 ;;
8248 10.*)
8249 allow_undefined_flag='-undefined dynamic_lookup'
8250 ;;
8251 esac
a.rottmann84e63352003-03-24 09:42:16 +00008252 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008253 ;;
8254 esac
8255 output_verbose_link_cmd='echo'
8256 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8257 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8259 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}'
8260 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8261 hardcode_direct=no
8262 hardcode_automatic=yes
8263 hardcode_shlibpath_var=unsupported
8264 whole_archive_flag_spec='-all_load $convenience'
8265 link_all_deplibs=yes
8266 else
8267 ld_shlibs=no
8268 fi
a.rottmann84e63352003-03-24 09:42:16 +00008269 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008270esac
8271echo "$as_me:$LINENO: result: $enable_shared" >&5
8272echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008273
a.rottmann9bc8b932004-02-29 15:18:31 +00008274echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8275echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8276# Make sure either enable_shared or enable_static is yes.
8277test "$enable_shared" = yes || enable_static=yes
8278echo "$as_me:$LINENO: result: $enable_static" >&5
8279echo "${ECHO_T}$enable_static" >&6
8280
8281# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008282# libtool distribution, otherwise you forgot to ship ltmain.sh
8283# with your package, and you will get complaints that there are
8284# no rules to generate ltmain.sh.
8285if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008286 # See if we are running on zsh, and set the options which allow our commands through
8287 # without removal of \ escapes.
8288 if test -n "${ZSH_VERSION+set}" ; then
8289 setopt NO_GLOB_SUBST
8290 fi
drh71eb93e2001-09-28 01:34:43 +00008291 # Now quote all the things that may contain metacharacters while being
8292 # careful not to overquote the AC_SUBSTed values. We take copies of the
8293 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008294 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8295 SED SHELL STRIP \
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 \
drh71eb93e2001-09-28 01:34:43 +00008301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +00008338
8339 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +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 | \
a.rottmann84e63352003-03-24 09:42:16 +00008349 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008350 old_postinstall_cmds | old_postuninstall_cmds | \
8351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +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"
drh71eb93e2001-09-28 01:34:43 +00008374#! $SHELL
8375
a.rottmann9bc8b932004-02-29 15:18:31 +00008376# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008377# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8378# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8379#
a.rottmann9bc8b932004-02-29 15:18:31 +00008380# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8381# Free Software Foundation, Inc.
8382#
8383# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +00008405# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008406SED=$lt_SED
8407
drh71eb93e2001-09-28 01:34:43 +00008408# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008409Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +00008415# The names of the tagged configurations supported by this script.
8416available_tags=
8417
drh71eb93e2001-09-28 01:34:43 +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.
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +00008451# A C compiler.
8452LTCC=$lt_LTCC
8453
8454# A language-specific compiler.
8455CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008456
8457# Is the compiler the GNU C compiler?
8458with_gcc=$GCC
8459
a.rottmann9bc8b932004-02-29 15:18:31 +00008460# An ERE matcher.
8461EGREP=$lt_EGREP
8462
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +00008473STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008474
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.
a.rottmann9bc8b932004-02-29 15:18:31 +00008495wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008496
8497# Object file suffix (normally "o").
8498objext="$ac_objext"
8499
8500# Old archive suffix (normally "a").
8501libext="$libext"
8502
a.rottmann9bc8b932004-02-29 15:18:31 +00008503# Shared library suffix (normally ".so").
8504shrext='$shrext'
8505
drh71eb93e2001-09-28 01:34:43 +00008506# Executable file suffix (normally "").
8507exeext="$exeext"
8508
8509# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008510pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008511pic_mode=$pic_mode
8512
a.rottmann9bc8b932004-02-29 15:18:31 +00008513# What is the maximum length of a command?
8514max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008515
a.rottmann9bc8b932004-02-29 15:18:31 +00008516# Does compiler simultaneously support -c and -o options?
8517compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +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.
a.rottmann9bc8b932004-02-29 15:18:31 +00008538link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008539
8540# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +00008587# Commands to strip libraries.
8588old_striplib=$lt_old_striplib
8589striplib=$lt_striplib
8590
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +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.
a.rottmann9bc8b932004-02-29 15:18:31 +00008630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008631
8632# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008634
8635# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +00008662# Whether we need a single -rpath flag with a separated argument.
8663hardcode_libdir_separator=$lt_hardcode_libdir_separator
8664
a.rottmann9bc8b932004-02-29 15:18:31 +00008665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +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
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +00008716
drh71eb93e2001-09-28 01:34:43 +00008717 case $host_os in
8718 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008719 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +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 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008730 esac
drh71eb93e2001-09-28 01:34:43 +00008731
drh71eb93e2001-09-28 01:34:43 +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?
a.rottmann9bc8b932004-02-29 15:18:31 +00008736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008737
a.rottmann9bc8b932004-02-29 15:18:31 +00008738 mv -f "$cfgfile" "$ofile" || \
8739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008740 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +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 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8747 if test -f "$ltmain_in"; then
8748 test -f Makefile && make "$ltmain"
8749 fi
drh71eb93e2001-09-28 01:34:43 +00008750fi
8751
drh71eb93e2001-09-28 01:34:43 +00008752
a.rottmann9bc8b932004-02-29 15:18:31 +00008753ac_ext=c
8754ac_cpp='$CPP $CPPFLAGS'
8755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758
8759CC="$lt_save_CC"
8760
8761
8762# Check whether --with-tags or --without-tags was given.
8763if test "${with_tags+set}" = set; then
8764 withval="$with_tags"
8765 tagnames="$withval"
8766fi;
8767
8768if test -f "$ltmain" && test -n "$tagnames"; then
8769 if test ! -f "${ofile}"; then
8770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8771echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8772 fi
8773
8774 if test -z "$LTCC"; then
8775 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8776 if test -z "$LTCC"; then
8777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8778echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8779 else
8780 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8781echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8782 fi
8783 fi
8784
8785 # Extract list of available tagged configurations in $ofile.
8786 # Note that this assumes the entire list is on one line.
8787 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8788
8789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8790 for tagname in $tagnames; do
8791 IFS="$lt_save_ifs"
8792 # Check whether tagname contains only valid characters
8793 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8794 "") ;;
8795 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8796echo "$as_me: error: invalid tag name: $tagname" >&2;}
8797 { (exit 1); exit 1; }; }
8798 ;;
8799 esac
8800
8801 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8802 then
8803 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8804echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8805 { (exit 1); exit 1; }; }
8806 fi
8807
8808 # Update the list of available tags.
8809 if test -n "$tagname"; then
8810 echo appending configuration tag \"$tagname\" to $ofile
8811
8812 case $tagname in
8813 CXX)
8814 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8815 ac_ext=cc
8816ac_cpp='$CXXCPP $CPPFLAGS'
8817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8820
8821
8822
8823
8824archive_cmds_need_lc_CXX=no
8825allow_undefined_flag_CXX=
8826always_export_symbols_CXX=no
8827archive_expsym_cmds_CXX=
8828export_dynamic_flag_spec_CXX=
8829hardcode_direct_CXX=no
8830hardcode_libdir_flag_spec_CXX=
8831hardcode_libdir_flag_spec_ld_CXX=
8832hardcode_libdir_separator_CXX=
8833hardcode_minus_L_CXX=no
8834hardcode_automatic_CXX=no
8835module_cmds_CXX=
8836module_expsym_cmds_CXX=
8837link_all_deplibs_CXX=unknown
8838old_archive_cmds_CXX=$old_archive_cmds
8839no_undefined_flag_CXX=
8840whole_archive_flag_spec_CXX=
8841enable_shared_with_static_runtimes_CXX=no
8842
8843# Dependencies to place before and after the object being linked:
8844predep_objects_CXX=
8845postdep_objects_CXX=
8846predeps_CXX=
8847postdeps_CXX=
8848compiler_lib_search_path_CXX=
8849
8850# Source file extension for C++ test sources.
8851ac_ext=cc
8852
8853# Object file extension for compiled C++ test sources.
8854objext=o
8855objext_CXX=$objext
8856
8857# Code to be used in simple compile tests
8858lt_simple_compile_test_code="int some_variable = 0;\n"
8859
8860# Code to be used in simple link tests
8861lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8862
8863# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8864
8865# If no C compiler was specified, use CC.
8866LTCC=${LTCC-"$CC"}
8867
8868# Allow CC to be a program name with arguments.
8869compiler=$CC
8870
8871
8872# Allow CC to be a program name with arguments.
8873lt_save_CC=$CC
8874lt_save_LD=$LD
8875lt_save_GCC=$GCC
8876GCC=$GXX
8877lt_save_with_gnu_ld=$with_gnu_ld
8878lt_save_path_LD=$lt_cv_path_LD
8879if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8880 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8881else
8882 unset lt_cv_prog_gnu_ld
8883fi
8884if test -n "${lt_cv_path_LDCXX+set}"; then
8885 lt_cv_path_LD=$lt_cv_path_LDCXX
8886else
8887 unset lt_cv_path_LD
8888fi
8889test -z "${LDCXX+set}" || LD=$LDCXX
8890CC=${CXX-"c++"}
8891compiler=$CC
8892compiler_CXX=$CC
8893cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8894
8895# We don't want -fno-exception wen compiling C++ code, so set the
8896# no_builtin_flag separately
8897if test "$GXX" = yes; then
8898 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8899else
8900 lt_prog_compiler_no_builtin_flag_CXX=
8901fi
8902
8903if test "$GXX" = yes; then
8904 # Set up default GNU C++ configuration
8905
8906
8907# Check whether --with-gnu-ld or --without-gnu-ld was given.
8908if test "${with_gnu_ld+set}" = set; then
8909 withval="$with_gnu_ld"
8910 test "$withval" = no || with_gnu_ld=yes
8911else
8912 with_gnu_ld=no
8913fi;
8914ac_prog=ld
8915if test "$GCC" = yes; then
8916 # Check if gcc -print-prog-name=ld gives a path.
8917 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8918echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8919 case $host in
8920 *-*-mingw*)
8921 # gcc leaves a trailing carriage return which upsets mingw
8922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8923 *)
8924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8925 esac
8926 case $ac_prog in
8927 # Accept absolute paths.
8928 [\\/]* | ?:[\\/]*)
8929 re_direlt='/[^/][^/]*/\.\./'
8930 # Canonicalize the pathname of ld
8931 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8932 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8933 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8934 done
8935 test -z "$LD" && LD="$ac_prog"
8936 ;;
8937 "")
8938 # If it fails, then pretend we aren't using GCC.
8939 ac_prog=ld
8940 ;;
8941 *)
8942 # If it is relative, then search for the first ld in PATH.
8943 with_gnu_ld=unknown
8944 ;;
8945 esac
8946elif test "$with_gnu_ld" = yes; then
8947 echo "$as_me:$LINENO: checking for GNU ld" >&5
8948echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8949else
8950 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8951echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8952fi
8953if test "${lt_cv_path_LD+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 if test -z "$LD"; then
8957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8958 for ac_dir in $PATH; do
8959 IFS="$lt_save_ifs"
8960 test -z "$ac_dir" && ac_dir=.
8961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8962 lt_cv_path_LD="$ac_dir/$ac_prog"
8963 # Check to see if the program is GNU ld. I'd rather use --version,
8964 # but apparently some GNU ld's only accept -v.
8965 # Break only if it was the GNU/non-GNU ld that we prefer.
8966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8967 *GNU* | *'with BFD'*)
8968 test "$with_gnu_ld" != no && break
8969 ;;
8970 *)
8971 test "$with_gnu_ld" != yes && break
8972 ;;
8973 esac
8974 fi
8975 done
8976 IFS="$lt_save_ifs"
8977else
8978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8979fi
8980fi
8981
8982LD="$lt_cv_path_LD"
8983if test -n "$LD"; then
8984 echo "$as_me:$LINENO: result: $LD" >&5
8985echo "${ECHO_T}$LD" >&6
8986else
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
8989fi
8990test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8991echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8992 { (exit 1); exit 1; }; }
8993echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8994echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8995if test "${lt_cv_prog_gnu_ld+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8999case `$LD -v 2>&1 </dev/null` in
9000*GNU* | *'with BFD'*)
9001 lt_cv_prog_gnu_ld=yes
9002 ;;
9003*)
9004 lt_cv_prog_gnu_ld=no
9005 ;;
9006esac
9007fi
9008echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9009echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9010with_gnu_ld=$lt_cv_prog_gnu_ld
9011
9012
9013
9014 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9015 # archiving commands below assume that GNU ld is being used.
9016 if test "$with_gnu_ld" = yes; then
9017 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 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'
9019
9020 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9022
9023 # If archive_cmds runs LD, not CC, wlarc should be empty
9024 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9025 # investigate it a little bit more. (MM)
9026 wlarc='${wl}'
9027
9028 # ancient GNU ld didn't support --whole-archive et. al.
9029 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9030 grep 'no-whole-archive' > /dev/null; then
9031 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9032 else
9033 whole_archive_flag_spec_CXX=
9034 fi
9035 else
9036 with_gnu_ld=no
9037 wlarc=
9038
9039 # A generic and very simple default shared library creation
9040 # command for GNU C++ for the case where it uses the native
9041 # linker, instead of GNU ld. If possible, this setting should
9042 # overridden to take advantage of the native linker features on
9043 # the platform it is being used on.
9044 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9045 fi
9046
9047 # Commands to make compiler produce verbose output that lists
9048 # what "hidden" libraries, object files and flags are used when
9049 # linking a shared library.
9050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9051
9052else
9053 GXX=no
9054 with_gnu_ld=no
9055 wlarc=
9056fi
9057
9058# PORTME: fill in a description of your system's C++ link characteristics
9059echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9060echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9061ld_shlibs_CXX=yes
9062case $host_os in
9063 aix3*)
9064 # FIXME: insert proper C++ library support
9065 ld_shlibs_CXX=no
9066 ;;
9067 aix4* | aix5*)
9068 if test "$host_cpu" = ia64; then
9069 # On IA64, the linker does run time linking by default, so we don't
9070 # have to do anything special.
9071 aix_use_runtimelinking=no
9072 exp_sym_flag='-Bexport'
9073 no_entry_flag=""
9074 else
9075 aix_use_runtimelinking=no
9076
9077 # Test if we are trying to use run time linking or normal
9078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9079 # need to do runtime linking.
9080 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9081 for ld_flag in $LDFLAGS; do
9082 case $ld_flag in
9083 *-brtl*)
9084 aix_use_runtimelinking=yes
9085 break
9086 ;;
9087 esac
9088 done
9089 esac
9090
9091 exp_sym_flag='-bexport'
9092 no_entry_flag='-bnoentry'
9093 fi
9094
9095 # When large executables or shared objects are built, AIX ld can
9096 # have problems creating the table of contents. If linking a library
9097 # or program results in "error TOC overflow" add -mminimal-toc to
9098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9100
9101 archive_cmds_CXX=''
9102 hardcode_direct_CXX=yes
9103 hardcode_libdir_separator_CXX=':'
9104 link_all_deplibs_CXX=yes
9105
9106 if test "$GXX" = yes; then
9107 case $host_os in aix4.012|aix4.012.*)
9108 # We only want to do this on AIX 4.2 and lower, the check
9109 # below for broken collect2 doesn't work under 4.3+
9110 collect2name=`${CC} -print-prog-name=collect2`
9111 if test -f "$collect2name" && \
9112 strings "$collect2name" | grep resolve_lib_name >/dev/null
9113 then
9114 # We have reworked collect2
9115 hardcode_direct_CXX=yes
9116 else
9117 # We have old collect2
9118 hardcode_direct_CXX=unsupported
9119 # It fails to find uninstalled libraries when the uninstalled
9120 # path is not listed in the libpath. Setting hardcode_minus_L
9121 # to unsupported forces relinking
9122 hardcode_minus_L_CXX=yes
9123 hardcode_libdir_flag_spec_CXX='-L$libdir'
9124 hardcode_libdir_separator_CXX=
9125 fi
9126 esac
9127 shared_flag='-shared'
9128 else
9129 # not using gcc
9130 if test "$host_cpu" = ia64; then
9131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9132 # chokes on -Wl,-G. The following line is correct:
9133 shared_flag='-G'
9134 else
9135 if test "$aix_use_runtimelinking" = yes; then
9136 shared_flag='${wl}-G'
9137 else
9138 shared_flag='${wl}-bM:SRE'
9139 fi
9140 fi
9141 fi
9142
9143 # It seems that -bexpall does not export symbols beginning with
9144 # underscore (_), so it is better to generate a list of symbols to export.
9145 always_export_symbols_CXX=yes
9146 if test "$aix_use_runtimelinking" = yes; then
9147 # Warning - without using the other runtime loading flags (-brtl),
9148 # -berok will link without error, but may produce a broken library.
9149 allow_undefined_flag_CXX='-berok'
9150 # Determine the default libpath from the value encoded in an empty executable.
9151 cat >conftest.$ac_ext <<_ACEOF
9152/* confdefs.h. */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h. */
9157
9158int
9159main ()
9160{
9161
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187
9188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9189}'`
9190# Check for a 64-bit object if we didn't find anything.
9191if 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; }
9192}'`; fi
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197fi
9198rm -f conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9201
9202 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9203
9204 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"
9205 else
9206 if test "$host_cpu" = ia64; then
9207 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9208 allow_undefined_flag_CXX="-z nodefs"
9209 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"
9210 else
9211 # Determine the default libpath from the value encoded in an empty executable.
9212 cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h. */
9218
9219int
9220main ()
9221{
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext conftest$ac_exeext
9228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248
9249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9250}'`
9251# Check for a 64-bit object if we didn't find anything.
9252if 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; }
9253}'`; fi
9254else
9255 echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
9258fi
9259rm -f conftest.err conftest.$ac_objext \
9260 conftest$ac_exeext conftest.$ac_ext
9261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9262
9263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9264 # Warning - without using the other run time loading flags,
9265 # -berok will link without error, but may produce a broken library.
9266 no_undefined_flag_CXX=' ${wl}-bernotok'
9267 allow_undefined_flag_CXX=' ${wl}-berok'
9268 # -bexpall does not export symbols beginning with underscore (_)
9269 always_export_symbols_CXX=yes
9270 # Exported symbols can be pulled into shared objects from archives
9271 whole_archive_flag_spec_CXX=' '
9272 archive_cmds_need_lc_CXX=yes
9273 # This is similar to how AIX traditionally builds it's shared libraries.
9274 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'
9275 fi
9276 fi
9277 ;;
9278 chorus*)
9279 case $cc_basename in
9280 *)
9281 # FIXME: insert proper C++ library support
9282 ld_shlibs_CXX=no
9283 ;;
9284 esac
9285 ;;
9286
9287 cygwin* | mingw* | pw32*)
9288 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9289 # as there is no search path for DLLs.
9290 hardcode_libdir_flag_spec_CXX='-L$libdir'
9291 allow_undefined_flag_CXX=unsupported
9292 always_export_symbols_CXX=no
9293 enable_shared_with_static_runtimes_CXX=yes
9294
9295 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9296 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'
9297 # If the export-symbols file already is a .def file (1st line
9298 # is EXPORTS), use it as is; otherwise, prepend...
9299 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9300 cp $export_symbols $output_objdir/$soname.def;
9301 else
9302 echo EXPORTS > $output_objdir/$soname.def;
9303 cat $export_symbols >> $output_objdir/$soname.def;
9304 fi~
9305 $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'
9306 else
9307 ld_shlibs_CXX=no
9308 fi
9309 ;;
9310
9311 darwin* | rhapsody*)
9312 if test "$GXX" = yes; then
9313 archive_cmds_need_lc_CXX=no
9314 case "$host_os" in
9315 rhapsody* | darwin1.[012])
9316 allow_undefined_flag_CXX='-undefined suppress'
9317 ;;
9318 *) # Darwin 1.3 on
9319 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9320 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9321 else
9322 case ${MACOSX_DEPLOYMENT_TARGET} in
9323 10.[012])
9324 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9325 ;;
9326 10.*)
9327 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9328 ;;
9329 esac
9330 fi
9331 ;;
9332 esac
9333 lt_int_apple_cc_single_mod=no
9334 output_verbose_link_cmd='echo'
9335 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9336 lt_int_apple_cc_single_mod=yes
9337 fi
9338 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9339 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9340 else
9341 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'
9342 fi
9343 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9344
9345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9347 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}'
9348 else
9349 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}'
9350 fi
9351 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9352 hardcode_direct_CXX=no
9353 hardcode_automatic_CXX=yes
9354 hardcode_shlibpath_var_CXX=unsupported
9355 whole_archive_flag_spec_CXX='-all_load $convenience'
9356 link_all_deplibs_CXX=yes
9357 else
9358 ld_shlibs_CXX=no
9359 fi
9360 ;;
9361
9362 dgux*)
9363 case $cc_basename in
9364 ec++)
9365 # FIXME: insert proper C++ library support
9366 ld_shlibs_CXX=no
9367 ;;
9368 ghcx)
9369 # Green Hills C++ Compiler
9370 # FIXME: insert proper C++ library support
9371 ld_shlibs_CXX=no
9372 ;;
9373 *)
9374 # FIXME: insert proper C++ library support
9375 ld_shlibs_CXX=no
9376 ;;
9377 esac
9378 ;;
9379 freebsd12*)
9380 # C++ shared libraries reported to be fairly broken before switch to ELF
9381 ld_shlibs_CXX=no
9382 ;;
9383 freebsd-elf*)
9384 archive_cmds_need_lc_CXX=no
9385 ;;
9386 freebsd* | kfreebsd*-gnu)
9387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9388 # conventions
9389 ld_shlibs_CXX=yes
9390 ;;
9391 gnu*)
9392 ;;
9393 hpux9*)
9394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9396 export_dynamic_flag_spec_CXX='${wl}-E'
9397 hardcode_direct_CXX=yes
9398 hardcode_minus_L_CXX=yes # Not in the search PATH,
9399 # but as the default
9400 # location of the library.
9401
9402 case $cc_basename in
9403 CC)
9404 # FIXME: insert proper C++ library support
9405 ld_shlibs_CXX=no
9406 ;;
9407 aCC)
9408 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'
9409 # Commands to make compiler produce verbose output that lists
9410 # what "hidden" libraries, object files and flags are used when
9411 # linking a shared library.
9412 #
9413 # There doesn't appear to be a way to prevent this compiler from
9414 # explicitly linking system object files so we need to strip them
9415 # from the output so that they don't get included in the library
9416 # dependencies.
9417 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'
9418 ;;
9419 *)
9420 if test "$GXX" = yes; then
9421 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'
9422 else
9423 # FIXME: insert proper C++ library support
9424 ld_shlibs_CXX=no
9425 fi
9426 ;;
9427 esac
9428 ;;
9429 hpux10*|hpux11*)
9430 if test $with_gnu_ld = no; then
9431 case "$host_cpu" in
9432 hppa*64*)
9433 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9435 hardcode_libdir_separator_CXX=:
9436 ;;
9437 ia64*)
9438 hardcode_libdir_flag_spec_CXX='-L$libdir'
9439 ;;
9440 *)
9441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9442 hardcode_libdir_separator_CXX=:
9443 export_dynamic_flag_spec_CXX='${wl}-E'
9444 ;;
9445 esac
9446 fi
9447 case "$host_cpu" in
9448 hppa*64*)
9449 hardcode_direct_CXX=no
9450 hardcode_shlibpath_var_CXX=no
9451 ;;
9452 ia64*)
9453 hardcode_direct_CXX=no
9454 hardcode_shlibpath_var_CXX=no
9455 hardcode_minus_L_CXX=yes # Not in the search PATH,
9456 # but as the default
9457 # location of the library.
9458 ;;
9459 *)
9460 hardcode_direct_CXX=yes
9461 hardcode_minus_L_CXX=yes # Not in the search PATH,
9462 # but as the default
9463 # location of the library.
9464 ;;
9465 esac
9466
9467 case $cc_basename in
9468 CC)
9469 # FIXME: insert proper C++ library support
9470 ld_shlibs_CXX=no
9471 ;;
9472 aCC)
9473 case "$host_cpu" in
9474 hppa*64*|ia64*)
9475 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9476 ;;
9477 *)
9478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9479 ;;
9480 esac
9481 # Commands to make compiler produce verbose output that lists
9482 # what "hidden" libraries, object files and flags are used when
9483 # linking a shared library.
9484 #
9485 # There doesn't appear to be a way to prevent this compiler from
9486 # explicitly linking system object files so we need to strip them
9487 # from the output so that they don't get included in the library
9488 # dependencies.
9489 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'
9490 ;;
9491 *)
9492 if test "$GXX" = yes; then
9493 if test $with_gnu_ld = no; then
9494 case "$host_cpu" in
9495 ia64*|hppa*64*)
9496 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9497 ;;
9498 *)
9499 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'
9500 ;;
9501 esac
9502 fi
9503 else
9504 # FIXME: insert proper C++ library support
9505 ld_shlibs_CXX=no
9506 fi
9507 ;;
9508 esac
9509 ;;
9510 irix5* | irix6*)
9511 case $cc_basename in
9512 CC)
9513 # SGI C++
9514 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'
9515
9516 # Archives containing C++ object files must be created using
9517 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9518 # necessary to make sure instantiated templates are included
9519 # in the archive.
9520 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9521 ;;
9522 *)
9523 if test "$GXX" = yes; then
9524 if test "$with_gnu_ld" = no; then
9525 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'
9526 else
9527 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'
9528 fi
9529 fi
9530 link_all_deplibs_CXX=yes
9531 ;;
9532 esac
9533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator_CXX=:
9535 ;;
9536 linux*)
9537 case $cc_basename in
9538 KCC)
9539 # Kuck and Associates, Inc. (KAI) C++ Compiler
9540
9541 # KCC will only create a shared library if the output file
9542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9543 # to its proper name (with version) after linking.
9544 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'
9545 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'
9546 # Commands to make compiler produce verbose output that lists
9547 # what "hidden" libraries, object files and flags are used when
9548 # linking a shared library.
9549 #
9550 # There doesn't appear to be a way to prevent this compiler from
9551 # explicitly linking system object files so we need to strip them
9552 # from the output so that they don't get included in the library
9553 # dependencies.
9554 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'
9555
9556 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9558
9559 # Archives containing C++ object files must be created using
9560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9562 ;;
9563 icpc)
9564 # Intel C++
9565 with_gnu_ld=yes
9566 archive_cmds_need_lc_CXX=no
9567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 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'
9569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9572 ;;
9573 cxx)
9574 # Compaq C++
9575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 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'
9577
9578 runpath_var=LD_RUN_PATH
9579 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9580 hardcode_libdir_separator_CXX=:
9581
9582 # Commands to make compiler produce verbose output that lists
9583 # what "hidden" libraries, object files and flags are used when
9584 # linking a shared library.
9585 #
9586 # There doesn't appear to be a way to prevent this compiler from
9587 # explicitly linking system object files so we need to strip them
9588 # from the output so that they don't get included in the library
9589 # dependencies.
9590 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'
9591 ;;
9592 esac
9593 ;;
9594 lynxos*)
9595 # FIXME: insert proper C++ library support
9596 ld_shlibs_CXX=no
9597 ;;
9598 m88k*)
9599 # FIXME: insert proper C++ library support
9600 ld_shlibs_CXX=no
9601 ;;
9602 mvs*)
9603 case $cc_basename in
9604 cxx)
9605 # FIXME: insert proper C++ library support
9606 ld_shlibs_CXX=no
9607 ;;
9608 *)
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 esac
9613 ;;
9614 netbsd* | knetbsd*-gnu)
9615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9616 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9617 wlarc=
9618 hardcode_libdir_flag_spec_CXX='-R$libdir'
9619 hardcode_direct_CXX=yes
9620 hardcode_shlibpath_var_CXX=no
9621 fi
9622 # Workaround some broken pre-1.5 toolchains
9623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9624 ;;
9625 osf3*)
9626 case $cc_basename in
9627 KCC)
9628 # Kuck and Associates, Inc. (KAI) C++ Compiler
9629
9630 # KCC will only create a shared library if the output file
9631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9632 # to its proper name (with version) after linking.
9633 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'
9634
9635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9636 hardcode_libdir_separator_CXX=:
9637
9638 # Archives containing C++ object files must be created using
9639 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9640 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9641
9642 ;;
9643 RCC)
9644 # Rational C++ 2.4.1
9645 # FIXME: insert proper C++ library support
9646 ld_shlibs_CXX=no
9647 ;;
9648 cxx)
9649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9650 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'
9651
9652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9653 hardcode_libdir_separator_CXX=:
9654
9655 # Commands to make compiler produce verbose output that lists
9656 # what "hidden" libraries, object files and flags are used when
9657 # linking a shared library.
9658 #
9659 # There doesn't appear to be a way to prevent this compiler from
9660 # explicitly linking system object files so we need to strip them
9661 # from the output so that they don't get included in the library
9662 # dependencies.
9663 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'
9664 ;;
9665 *)
9666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9668 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'
9669
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9671 hardcode_libdir_separator_CXX=:
9672
9673 # Commands to make compiler produce verbose output that lists
9674 # what "hidden" libraries, object files and flags are used when
9675 # linking a shared library.
9676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9677
9678 else
9679 # FIXME: insert proper C++ library support
9680 ld_shlibs_CXX=no
9681 fi
9682 ;;
9683 esac
9684 ;;
9685 osf4* | osf5*)
9686 case $cc_basename in
9687 KCC)
9688 # Kuck and Associates, Inc. (KAI) C++ Compiler
9689
9690 # KCC will only create a shared library if the output file
9691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9692 # to its proper name (with version) after linking.
9693 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'
9694
9695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9696 hardcode_libdir_separator_CXX=:
9697
9698 # Archives containing C++ object files must be created using
9699 # the KAI C++ compiler.
9700 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9701 ;;
9702 RCC)
9703 # Rational C++ 2.4.1
9704 # FIXME: insert proper C++ library support
9705 ld_shlibs_CXX=no
9706 ;;
9707 cxx)
9708 allow_undefined_flag_CXX=' -expect_unresolved \*'
9709 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'
9710 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9711 echo "-hidden">> $lib.exp~
9712 $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~
9713 $rm $lib.exp'
9714
9715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9716 hardcode_libdir_separator_CXX=:
9717
9718 # Commands to make compiler produce verbose output that lists
9719 # what "hidden" libraries, object files and flags are used when
9720 # linking a shared library.
9721 #
9722 # There doesn't appear to be a way to prevent this compiler from
9723 # explicitly linking system object files so we need to strip them
9724 # from the output so that they don't get included in the library
9725 # dependencies.
9726 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'
9727 ;;
9728 *)
9729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9731 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'
9732
9733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator_CXX=:
9735
9736 # Commands to make compiler produce verbose output that lists
9737 # what "hidden" libraries, object files and flags are used when
9738 # linking a shared library.
9739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9740
9741 else
9742 # FIXME: insert proper C++ library support
9743 ld_shlibs_CXX=no
9744 fi
9745 ;;
9746 esac
9747 ;;
9748 psos*)
9749 # FIXME: insert proper C++ library support
9750 ld_shlibs_CXX=no
9751 ;;
9752 sco*)
9753 archive_cmds_need_lc_CXX=no
9754 case $cc_basename in
9755 CC)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 *)
9760 # FIXME: insert proper C++ library support
9761 ld_shlibs_CXX=no
9762 ;;
9763 esac
9764 ;;
9765 sunos4*)
9766 case $cc_basename in
9767 CC)
9768 # Sun C++ 4.x
9769 # FIXME: insert proper C++ library support
9770 ld_shlibs_CXX=no
9771 ;;
9772 lcc)
9773 # Lucid
9774 # FIXME: insert proper C++ library support
9775 ld_shlibs_CXX=no
9776 ;;
9777 *)
9778 # FIXME: insert proper C++ library support
9779 ld_shlibs_CXX=no
9780 ;;
9781 esac
9782 ;;
9783 solaris*)
9784 case $cc_basename in
9785 CC)
9786 # Sun C++ 4.2, 5.x and Centerline C++
9787 no_undefined_flag_CXX=' -zdefs'
9788 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790 $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'
9791
9792 hardcode_libdir_flag_spec_CXX='-R$libdir'
9793 hardcode_shlibpath_var_CXX=no
9794 case $host_os in
9795 solaris2.0-5 | solaris2.0-5.*) ;;
9796 *)
9797 # The C++ compiler is used as linker so we must use $wl
9798 # flag to pass the commands to the underlying system
9799 # linker.
9800 # Supported since Solaris 2.6 (maybe 2.5.1?)
9801 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9802 ;;
9803 esac
9804 link_all_deplibs_CXX=yes
9805
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9809 #
9810 # There doesn't appear to be a way to prevent this compiler from
9811 # explicitly linking system object files so we need to strip them
9812 # from the output so that they don't get included in the library
9813 # dependencies.
9814 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'
9815
9816 # Archives containing C++ object files must be created using
9817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9818 # necessary to make sure instantiated templates are included
9819 # in the archive.
9820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9821 ;;
9822 gcx)
9823 # Green Hills C++ Compiler
9824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9825
9826 # The C++ compiler must be used to create the archive.
9827 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9828 ;;
9829 *)
9830 # GNU C++ compiler with Solaris linker
9831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9832 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9833 if $CC --version | grep -v '^2\.7' > /dev/null; then
9834 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9835 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9836 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9837
9838 # Commands to make compiler produce verbose output that lists
9839 # what "hidden" libraries, object files and flags are used when
9840 # linking a shared library.
9841 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9842 else
9843 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9844 # platform.
9845 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9846 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9847 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9848
9849 # Commands to make compiler produce verbose output that lists
9850 # what "hidden" libraries, object files and flags are used when
9851 # linking a shared library.
9852 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9853 fi
9854
9855 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9856 fi
9857 ;;
9858 esac
9859 ;;
9860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9861 archive_cmds_need_lc_CXX=no
9862 ;;
9863 tandem*)
9864 case $cc_basename in
9865 NCC)
9866 # NonStop-UX NCC 3.20
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 *)
9871 # FIXME: insert proper C++ library support
9872 ld_shlibs_CXX=no
9873 ;;
9874 esac
9875 ;;
9876 vxworks*)
9877 # FIXME: insert proper C++ library support
9878 ld_shlibs_CXX=no
9879 ;;
9880 *)
9881 # FIXME: insert proper C++ library support
9882 ld_shlibs_CXX=no
9883 ;;
9884esac
9885echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9886echo "${ECHO_T}$ld_shlibs_CXX" >&6
9887test "$ld_shlibs_CXX" = no && can_build_shared=no
9888
9889GCC_CXX="$GXX"
9890LD_CXX="$LD"
9891
9892
9893cat > conftest.$ac_ext <<EOF
9894class Foo
9895{
9896public:
9897 Foo (void) { a = 0; }
9898private:
9899 int a;
9900};
9901EOF
9902
9903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; then
9908 # Parse the compiler output and extract the necessary
9909 # objects, libraries and library flags.
9910
9911 # Sentinel used to keep track of whether or not we are before
9912 # the conftest object file.
9913 pre_test_object_deps_done=no
9914
9915 # The `*' in the case matches for architectures that use `case' in
9916 # $output_verbose_cmd can trigger glob expansion during the loop
9917 # eval without this substitution.
9918 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9919
9920 for p in `eval $output_verbose_link_cmd`; do
9921 case $p in
9922
9923 -L* | -R* | -l*)
9924 # Some compilers place space between "-{L,R}" and the path.
9925 # Remove the space.
9926 if test $p = "-L" \
9927 || test $p = "-R"; then
9928 prev=$p
9929 continue
9930 else
9931 prev=
9932 fi
9933
9934 if test "$pre_test_object_deps_done" = no; then
9935 case $p in
9936 -L* | -R*)
9937 # Internal compiler library paths should come after those
9938 # provided the user. The postdeps already come after the
9939 # user supplied libs so there is no need to process them.
9940 if test -z "$compiler_lib_search_path_CXX"; then
9941 compiler_lib_search_path_CXX="${prev}${p}"
9942 else
9943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9944 fi
9945 ;;
9946 # The "-l" case would never come before the object being
9947 # linked, so don't bother handling this case.
9948 esac
9949 else
9950 if test -z "$postdeps_CXX"; then
9951 postdeps_CXX="${prev}${p}"
9952 else
9953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9954 fi
9955 fi
9956 ;;
9957
9958 *.$objext)
9959 # This assumes that the test object file only shows up
9960 # once in the compiler output.
9961 if test "$p" = "conftest.$objext"; then
9962 pre_test_object_deps_done=yes
9963 continue
9964 fi
9965
9966 if test "$pre_test_object_deps_done" = no; then
9967 if test -z "$predep_objects_CXX"; then
9968 predep_objects_CXX="$p"
9969 else
9970 predep_objects_CXX="$predep_objects_CXX $p"
9971 fi
9972 else
9973 if test -z "$postdep_objects_CXX"; then
9974 postdep_objects_CXX="$p"
9975 else
9976 postdep_objects_CXX="$postdep_objects_CXX $p"
9977 fi
9978 fi
9979 ;;
9980
9981 *) ;; # Ignore the rest.
9982
9983 esac
9984 done
9985
9986 # Clean up.
9987 rm -f a.out a.exe
9988else
9989 echo "libtool.m4: error: problem compiling CXX test program"
9990fi
9991
9992$rm -f confest.$objext
9993
9994case " $postdeps_CXX " in
9995*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9996esac
9997
9998lt_prog_compiler_wl_CXX=
9999lt_prog_compiler_pic_CXX=
10000lt_prog_compiler_static_CXX=
10001
10002echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10003echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10004
10005 # C++ specific cases for pic, static, wl, etc.
10006 if test "$GXX" = yes; then
10007 lt_prog_compiler_wl_CXX='-Wl,'
10008 lt_prog_compiler_static_CXX='-static'
10009
10010 case $host_os in
10011 aix*)
10012 # All AIX code is PIC.
10013 if test "$host_cpu" = ia64; then
10014 # AIX 5 now supports IA64 processor
10015 lt_prog_compiler_static_CXX='-Bstatic'
10016 fi
10017 ;;
10018 amigaos*)
10019 # FIXME: we need at least 68020 code to build shared libraries, but
10020 # adding the `-m68020' flag to GCC prevents building anything better,
10021 # like `-m68040'.
10022 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10023 ;;
10024 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10025 # PIC is the default for these OSes.
10026 ;;
10027 mingw* | os2* | pw32*)
10028 # This hack is so that the source file can tell whether it is being
10029 # built for inclusion in a dll (and should export symbols for example).
10030 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10031 ;;
10032 darwin* | rhapsody*)
10033 # PIC is the default on this platform
10034 # Common symbols not allowed in MH_DYLIB files
10035 lt_prog_compiler_pic_CXX='-fno-common'
10036 ;;
10037 *djgpp*)
10038 # DJGPP does not support shared libraries at all
10039 lt_prog_compiler_pic_CXX=
10040 ;;
10041 sysv4*MP*)
10042 if test -d /usr/nec; then
10043 lt_prog_compiler_pic_CXX=-Kconform_pic
10044 fi
10045 ;;
10046 hpux*)
10047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10048 # not for PA HP-UX.
10049 case "$host_cpu" in
10050 hppa*64*|ia64*)
10051 ;;
10052 *)
10053 lt_prog_compiler_pic_CXX='-fPIC'
10054 ;;
10055 esac
10056 ;;
10057 *)
10058 lt_prog_compiler_pic_CXX='-fPIC'
10059 ;;
10060 esac
10061 else
10062 case $host_os in
10063 aix4* | aix5*)
10064 # All AIX code is PIC.
10065 if test "$host_cpu" = ia64; then
10066 # AIX 5 now supports IA64 processor
10067 lt_prog_compiler_static_CXX='-Bstatic'
10068 else
10069 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10070 fi
10071 ;;
10072 chorus*)
10073 case $cc_basename in
10074 cxch68)
10075 # Green Hills C++ Compiler
10076 # _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"
10077 ;;
10078 esac
10079 ;;
10080 dgux*)
10081 case $cc_basename in
10082 ec++)
10083 lt_prog_compiler_pic_CXX='-KPIC'
10084 ;;
10085 ghcx)
10086 # Green Hills C++ Compiler
10087 lt_prog_compiler_pic_CXX='-pic'
10088 ;;
10089 *)
10090 ;;
10091 esac
10092 ;;
10093 freebsd* | kfreebsd*-gnu)
10094 # FreeBSD uses GNU C++
10095 ;;
10096 hpux9* | hpux10* | hpux11*)
10097 case $cc_basename in
10098 CC)
10099 lt_prog_compiler_wl_CXX='-Wl,'
10100 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10101 if test "$host_cpu" != ia64; then
10102 lt_prog_compiler_pic_CXX='+Z'
10103 fi
10104 ;;
10105 aCC)
10106 lt_prog_compiler_wl_CXX='-Wl,'
10107 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10108 case "$host_cpu" in
10109 hppa*64*|ia64*)
10110 # +Z the default
10111 ;;
10112 *)
10113 lt_prog_compiler_pic_CXX='+Z'
10114 ;;
10115 esac
10116 ;;
10117 *)
10118 ;;
10119 esac
10120 ;;
10121 irix5* | irix6* | nonstopux*)
10122 case $cc_basename in
10123 CC)
10124 lt_prog_compiler_wl_CXX='-Wl,'
10125 lt_prog_compiler_static_CXX='-non_shared'
10126 # CC pic flag -KPIC is the default.
10127 ;;
10128 *)
10129 ;;
10130 esac
10131 ;;
10132 linux*)
10133 case $cc_basename in
10134 KCC)
10135 # KAI C++ Compiler
10136 lt_prog_compiler_wl_CXX='--backend -Wl,'
10137 lt_prog_compiler_pic_CXX='-fPIC'
10138 ;;
10139 icpc)
10140 # Intel C++
10141 lt_prog_compiler_wl_CXX='-Wl,'
10142 lt_prog_compiler_pic_CXX='-KPIC'
10143 lt_prog_compiler_static_CXX='-static'
10144 ;;
10145 cxx)
10146 # Compaq C++
10147 # Make sure the PIC flag is empty. It appears that all Alpha
10148 # Linux and Compaq Tru64 Unix objects are PIC.
10149 lt_prog_compiler_pic_CXX=
10150 lt_prog_compiler_static_CXX='-non_shared'
10151 ;;
10152 *)
10153 ;;
10154 esac
10155 ;;
10156 lynxos*)
10157 ;;
10158 m88k*)
10159 ;;
10160 mvs*)
10161 case $cc_basename in
10162 cxx)
10163 lt_prog_compiler_pic_CXX='-W c,exportall'
10164 ;;
10165 *)
10166 ;;
10167 esac
10168 ;;
10169 netbsd* | knetbsd*-gnu)
10170 ;;
10171 osf3* | osf4* | osf5*)
10172 case $cc_basename in
10173 KCC)
10174 lt_prog_compiler_wl_CXX='--backend -Wl,'
10175 ;;
10176 RCC)
10177 # Rational C++ 2.4.1
10178 lt_prog_compiler_pic_CXX='-pic'
10179 ;;
10180 cxx)
10181 # Digital/Compaq C++
10182 lt_prog_compiler_wl_CXX='-Wl,'
10183 # Make sure the PIC flag is empty. It appears that all Alpha
10184 # Linux and Compaq Tru64 Unix objects are PIC.
10185 lt_prog_compiler_pic_CXX=
10186 lt_prog_compiler_static_CXX='-non_shared'
10187 ;;
10188 *)
10189 ;;
10190 esac
10191 ;;
10192 psos*)
10193 ;;
10194 sco*)
10195 case $cc_basename in
10196 CC)
10197 lt_prog_compiler_pic_CXX='-fPIC'
10198 ;;
10199 *)
10200 ;;
10201 esac
10202 ;;
10203 solaris*)
10204 case $cc_basename in
10205 CC)
10206 # Sun C++ 4.2, 5.x and Centerline C++
10207 lt_prog_compiler_pic_CXX='-KPIC'
10208 lt_prog_compiler_static_CXX='-Bstatic'
10209 lt_prog_compiler_wl_CXX='-Qoption ld '
10210 ;;
10211 gcx)
10212 # Green Hills C++ Compiler
10213 lt_prog_compiler_pic_CXX='-PIC'
10214 ;;
10215 *)
10216 ;;
10217 esac
10218 ;;
10219 sunos4*)
10220 case $cc_basename in
10221 CC)
10222 # Sun C++ 4.x
10223 lt_prog_compiler_pic_CXX='-pic'
10224 lt_prog_compiler_static_CXX='-Bstatic'
10225 ;;
10226 lcc)
10227 # Lucid
10228 lt_prog_compiler_pic_CXX='-pic'
10229 ;;
10230 *)
10231 ;;
10232 esac
10233 ;;
10234 tandem*)
10235 case $cc_basename in
10236 NCC)
10237 # NonStop-UX NCC 3.20
10238 lt_prog_compiler_pic_CXX='-KPIC'
10239 ;;
10240 *)
10241 ;;
10242 esac
10243 ;;
10244 unixware*)
10245 ;;
10246 vxworks*)
10247 ;;
10248 *)
10249 lt_prog_compiler_can_build_shared_CXX=no
10250 ;;
10251 esac
10252 fi
10253
10254echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10255echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10256
10257#
10258# Check to make sure the PIC flag actually works.
10259#
10260if test -n "$lt_prog_compiler_pic_CXX"; then
10261
10262echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10263echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10264if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266else
10267 lt_prog_compiler_pic_works_CXX=no
10268 ac_outfile=conftest.$ac_objext
10269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10270 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10271 # Insert the option either (1) after the last *FLAGS variable, or
10272 # (2) before a word containing "conftest.", or (3) at the end.
10273 # Note that $ac_compile itself does not contain backslashes and begins
10274 # with a dollar sign (not a hyphen), so the echo should work correctly.
10275 # The option is referenced via a variable to avoid confusing sed.
10276 lt_compile=`echo "$ac_compile" | $SED \
10277 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10279 -e 's:$: $lt_compiler_flag:'`
10280 (eval echo "\"\$as_me:10280: $lt_compile\"" >&5)
10281 (eval "$lt_compile" 2>conftest.err)
10282 ac_status=$?
10283 cat conftest.err >&5
10284 echo "$as_me:10284: \$? = $ac_status" >&5
10285 if (exit $ac_status) && test -s "$ac_outfile"; then
10286 # The compiler can only warn and ignore the option if not recognized
10287 # So say no if there are warnings
10288 if test ! -s conftest.err; then
10289 lt_prog_compiler_pic_works_CXX=yes
10290 fi
10291 fi
10292 $rm conftest*
10293
10294fi
10295echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10296echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10297
10298if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10299 case $lt_prog_compiler_pic_CXX in
10300 "" | " "*) ;;
10301 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10302 esac
10303else
10304 lt_prog_compiler_pic_CXX=
10305 lt_prog_compiler_can_build_shared_CXX=no
10306fi
10307
10308fi
10309case "$host_os" in
10310 # For platforms which do not support PIC, -DPIC is meaningless:
10311 *djgpp*)
10312 lt_prog_compiler_pic_CXX=
10313 ;;
10314 *)
10315 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10316 ;;
10317esac
10318
10319echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10320echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10321if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 lt_cv_prog_compiler_c_o_CXX=no
10325 $rm -r conftest 2>/dev/null
10326 mkdir conftest
10327 cd conftest
10328 mkdir out
10329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10330
10331 lt_compiler_flag="-o out/conftest2.$ac_objext"
10332 # Insert the option either (1) after the last *FLAGS variable, or
10333 # (2) before a word containing "conftest.", or (3) at the end.
10334 # Note that $ac_compile itself does not contain backslashes and begins
10335 # with a dollar sign (not a hyphen), so the echo should work correctly.
10336 lt_compile=`echo "$ac_compile" | $SED \
10337 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10339 -e 's:$: $lt_compiler_flag:'`
10340 (eval echo "\"\$as_me:10340: $lt_compile\"" >&5)
10341 (eval "$lt_compile" 2>out/conftest.err)
10342 ac_status=$?
10343 cat out/conftest.err >&5
10344 echo "$as_me:10344: \$? = $ac_status" >&5
10345 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10346 then
10347 # The compiler can only warn and ignore the option if not recognized
10348 # So say no if there are warnings
10349 if test ! -s out/conftest.err; then
10350 lt_cv_prog_compiler_c_o_CXX=yes
10351 fi
10352 fi
10353 chmod u+w .
10354 $rm conftest*
10355 # SGI C++ compiler will create directory out/ii_files/ for
10356 # template instantiation
10357 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10358 $rm out/* && rmdir out
10359 cd ..
10360 rmdir conftest
10361 $rm conftest*
10362
10363fi
10364echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10365echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10366
10367
10368hard_links="nottested"
10369if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10370 # do not overwrite the value of need_locks provided by the user
10371 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10372echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10373 hard_links=yes
10374 $rm conftest*
10375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10376 touch conftest.a
10377 ln conftest.a conftest.b 2>&5 || hard_links=no
10378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10379 echo "$as_me:$LINENO: result: $hard_links" >&5
10380echo "${ECHO_T}$hard_links" >&6
10381 if test "$hard_links" = no; then
10382 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10383echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10384 need_locks=warn
10385 fi
10386else
10387 need_locks=no
10388fi
10389
10390echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10391echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10392
10393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10394 case $host_os in
10395 aix4* | aix5*)
10396 # If we're using GNU nm, then we don't want the "-C" option.
10397 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10398 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10399 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'
10400 else
10401 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'
10402 fi
10403 ;;
10404 pw32*)
10405 export_symbols_cmds_CXX="$ltdll_cmds"
10406 ;;
10407 cygwin* | mingw*)
10408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10409 ;;
10410 *)
10411 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10412 ;;
10413 esac
10414
10415echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10416echo "${ECHO_T}$ld_shlibs_CXX" >&6
10417test "$ld_shlibs_CXX" = no && can_build_shared=no
10418
10419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10420if test "$GCC" = yes; then
10421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10422fi
10423
10424#
10425# Do we need to explicitly link libc?
10426#
10427case "x$archive_cmds_need_lc_CXX" in
10428x|xyes)
10429 # Assume -lc should be added
10430 archive_cmds_need_lc_CXX=yes
10431
10432 if test "$enable_shared" = yes && test "$GCC" = yes; then
10433 case $archive_cmds_CXX in
10434 *'~'*)
10435 # FIXME: we may have to deal with multi-command sequences.
10436 ;;
10437 '$CC '*)
10438 # Test whether the compiler implicitly links with -lc since on some
10439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10440 # to ld, don't add -lc before -lgcc.
10441 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10442echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10443 $rm conftest*
10444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10445
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } 2>conftest.err; then
10451 soname=conftest
10452 lib=conftest
10453 libobjs=conftest.$ac_objext
10454 deplibs=
10455 wl=$lt_prog_compiler_wl_CXX
10456 compiler_flags=-v
10457 linker_flags=-v
10458 verstring=
10459 output_objdir=.
10460 libname=conftest
10461 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10462 allow_undefined_flag_CXX=
10463 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10464 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }
10468 then
10469 archive_cmds_need_lc_CXX=no
10470 else
10471 archive_cmds_need_lc_CXX=yes
10472 fi
10473 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10474 else
10475 cat conftest.err 1>&5
10476 fi
10477 $rm conftest*
10478 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10479echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10480 ;;
10481 esac
10482 fi
10483 ;;
10484esac
10485
10486echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10487echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10488library_names_spec=
10489libname_spec='lib$name'
10490soname_spec=
10491shrext=".so"
10492postinstall_cmds=
10493postuninstall_cmds=
10494finish_cmds=
10495finish_eval=
10496shlibpath_var=
10497shlibpath_overrides_runpath=unknown
10498version_type=none
10499dynamic_linker="$host_os ld.so"
10500sys_lib_dlsearch_path_spec="/lib /usr/lib"
10501if test "$GCC" = yes; then
10502 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10503 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10504 # if the path contains ";" then we assume it to be the separator
10505 # otherwise default to the standard path separator (i.e. ":") - it is
10506 # assumed that no part of a normal pathname contains ";" but that should
10507 # okay in the real world where ";" in dirpaths is itself problematic.
10508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10509 else
10510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10511 fi
10512else
10513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10514fi
10515need_lib_prefix=unknown
10516hardcode_into_libs=no
10517
10518# when you set need_version to no, make sure it does not cause -set_version
10519# flags to be left without arguments
10520need_version=unknown
10521
10522case $host_os in
10523aix3*)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10526 shlibpath_var=LIBPATH
10527
10528 # AIX 3 has no versioning support, so we append a major version to the name.
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 ;;
10531
10532aix4* | aix5*)
10533 version_type=linux
10534 need_lib_prefix=no
10535 need_version=no
10536 hardcode_into_libs=yes
10537 if test "$host_cpu" = ia64; then
10538 # AIX 5 supports IA64
10539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 else
10542 # With GCC up to 2.95.x, collect2 would create an import file
10543 # for dependence libraries. The import file would start with
10544 # the line `#! .'. This would cause the generated library to
10545 # depend on `.', always an invalid library. This was fixed in
10546 # development snapshots of GCC prior to 3.0.
10547 case $host_os in
10548 aix4 | aix4.[01] | aix4.[01].*)
10549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10550 echo ' yes '
10551 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10552 :
10553 else
10554 can_build_shared=no
10555 fi
10556 ;;
10557 esac
10558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10559 # soname into executable. Probably we can add versioning support to
10560 # collect2, so additional links can be useful in future.
10561 if test "$aix_use_runtimelinking" = yes; then
10562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10563 # instead of lib<name>.a to let people know that these are not
10564 # typical AIX shared libraries.
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 else
10567 # We preserve .a as extension for shared libraries through AIX4.2
10568 # and later when we are not doing run time linking.
10569 library_names_spec='${libname}${release}.a $libname.a'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 fi
10572 shlibpath_var=LIBPATH
10573 fi
10574 ;;
10575
10576amigaos*)
10577 library_names_spec='$libname.ixlibrary $libname.a'
10578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579 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'
10580 ;;
10581
10582beos*)
10583 library_names_spec='${libname}${shared_ext}'
10584 dynamic_linker="$host_os ld.so"
10585 shlibpath_var=LIBRARY_PATH
10586 ;;
10587
10588bsdi4*)
10589 version_type=linux
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10597 # the default ld.so.conf also contains /usr/contrib/lib and
10598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10599 # libtool to hard-code these into programs
10600 ;;
10601
10602cygwin* | mingw* | pw32*)
10603 version_type=windows
10604 shrext=".dll"
10605 need_version=no
10606 need_lib_prefix=no
10607
10608 case $GCC,$host_os in
10609 yes,cygwin* | yes,mingw* | yes,pw32*)
10610 library_names_spec='$libname.dll.a'
10611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10612 postinstall_cmds='base_file=`basename \${file}`~
10613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10614 dldir=$destdir/`dirname \$dlpath`~
10615 test -d \$dldir || mkdir -p \$dldir~
10616 $install_prog $dir/$dlname \$dldir/$dlname'
10617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10618 dlpath=$dir/\$dldll~
10619 $rm \$dlpath'
10620 shlibpath_overrides_runpath=yes
10621
10622 case $host_os in
10623 cygwin*)
10624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10627 ;;
10628 mingw*)
10629 # MinGW DLLs use traditional 'lib' prefix
10630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10632 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10633 # It is most probably a Windows format PATH printed by
10634 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10635 # path with ; separators, and with drive letters. We can handle the
10636 # drive letters (cygwin fileutils understands them), so leave them,
10637 # especially as we might pass files found there to a mingw objdump,
10638 # which wouldn't understand a cygwinified path. Ahh.
10639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10640 else
10641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10642 fi
10643 ;;
10644 pw32*)
10645 # pw32 DLLs use 'pw' prefix rather than 'lib'
10646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10647 ;;
10648 esac
10649 ;;
10650
10651 *)
10652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10653 ;;
10654 esac
10655 dynamic_linker='Win32 ld.exe'
10656 # FIXME: first we should search . and the directory the executable is in
10657 shlibpath_var=PATH
10658 ;;
10659
10660darwin* | rhapsody*)
10661 dynamic_linker="$host_os dyld"
10662 version_type=darwin
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10666 soname_spec='${libname}${release}${major}$shared_ext'
10667 shlibpath_overrides_runpath=yes
10668 shlibpath_var=DYLD_LIBRARY_PATH
10669 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10670 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10671 if test "$GCC" = yes; then
10672 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"`
10673 else
10674 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10675 fi
10676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10677 ;;
10678
10679dgux*)
10680 version_type=linux
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 ;;
10687
10688freebsd1*)
10689 dynamic_linker=no
10690 ;;
10691
10692kfreebsd*-gnu)
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10701 dynamic_linker='GNU ld.so'
10702 ;;
10703
10704freebsd*)
10705 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10706 version_type=freebsd-$objformat
10707 case $version_type in
10708 freebsd-elf*)
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10710 need_version=no
10711 need_lib_prefix=no
10712 ;;
10713 freebsd-*)
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10715 need_version=yes
10716 ;;
10717 esac
10718 shlibpath_var=LD_LIBRARY_PATH
10719 case $host_os in
10720 freebsd2*)
10721 shlibpath_overrides_runpath=yes
10722 ;;
10723 freebsd3.01* | freebsdelf3.01*)
10724 shlibpath_overrides_runpath=yes
10725 hardcode_into_libs=yes
10726 ;;
10727 *) # from 3.2 on
10728 shlibpath_overrides_runpath=no
10729 hardcode_into_libs=yes
10730 ;;
10731 esac
10732 ;;
10733
10734gnu*)
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 hardcode_into_libs=yes
10742 ;;
10743
10744hpux9* | hpux10* | hpux11*)
10745 # Give a soname corresponding to the major version so that dld.sl refuses to
10746 # link against other versions.
10747 version_type=sunos
10748 need_lib_prefix=no
10749 need_version=no
10750 case "$host_cpu" in
10751 ia64*)
10752 shrext='.so'
10753 hardcode_into_libs=yes
10754 dynamic_linker="$host_os dld.so"
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 if test "X$HPUX_IA64_MODE" = X32; then
10760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10761 else
10762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10763 fi
10764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10765 ;;
10766 hppa*64*)
10767 shrext='.sl'
10768 hardcode_into_libs=yes
10769 dynamic_linker="$host_os dld.sl"
10770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10776 ;;
10777 *)
10778 shrext='.sl'
10779 dynamic_linker="$host_os dld.sl"
10780 shlibpath_var=SHLIB_PATH
10781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 ;;
10785 esac
10786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10787 postinstall_cmds='chmod 555 $lib'
10788 ;;
10789
10790irix5* | irix6* | nonstopux*)
10791 case $host_os in
10792 nonstopux*) version_type=nonstopux ;;
10793 *)
10794 if test "$lt_cv_prog_gnu_ld" = yes; then
10795 version_type=linux
10796 else
10797 version_type=irix
10798 fi ;;
10799 esac
10800 need_lib_prefix=no
10801 need_version=no
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10804 case $host_os in
10805 irix5* | nonstopux*)
10806 libsuff= shlibsuff=
10807 ;;
10808 *)
10809 case $LD in # libtool.m4 will add one of these switches to LD
10810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10811 libsuff= shlibsuff= libmagic=32-bit;;
10812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10813 libsuff=32 shlibsuff=N32 libmagic=N32;;
10814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10816 *) libsuff= shlibsuff= libmagic=never-match;;
10817 esac
10818 ;;
10819 esac
10820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10821 shlibpath_overrides_runpath=no
10822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10824 hardcode_into_libs=yes
10825 ;;
10826
10827# No shared lib support for Linux oldld, aout, or coff.
10828linux*oldld* | linux*aout* | linux*coff*)
10829 dynamic_linker=no
10830 ;;
10831
10832# This must be Linux ELF.
10833linux*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=no
10842 # This implies no fast_install, which is unacceptable.
10843 # Some rework will be needed to allow for fast_install
10844 # before this can be enabled.
10845 hardcode_into_libs=yes
10846
10847 # Append ld.so.conf contents to the search path
10848 if test -f /etc/ld.so.conf; then
10849 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10850 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10851 fi
10852
10853 # We used to test for /lib/ld.so.1 and disable shared libraries on
10854 # powerpc, because MkLinux only supported shared libraries with the
10855 # GNU dynamic linker. Since this was broken with cross compilers,
10856 # most powerpc-linux boxes support dynamic linking these days and
10857 # people can always --disable-shared, the test was removed, and we
10858 # assume the GNU/Linux dynamic linker is in use.
10859 dynamic_linker='GNU/Linux ld.so'
10860 ;;
10861
10862knetbsd*-gnu)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=no
10870 hardcode_into_libs=yes
10871 dynamic_linker='GNU ld.so'
10872 ;;
10873
10874netbsd*)
10875 version_type=sunos
10876 need_lib_prefix=no
10877 need_version=no
10878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10881 dynamic_linker='NetBSD (a.out) ld.so'
10882 else
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 dynamic_linker='NetBSD ld.elf_so'
10886 fi
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 hardcode_into_libs=yes
10890 ;;
10891
10892newsos6)
10893 version_type=linux
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=yes
10897 ;;
10898
10899nto-qnx*)
10900 version_type=linux
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 ;;
10908
10909openbsd*)
10910 version_type=sunos
10911 need_lib_prefix=no
10912 need_version=yes
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10917 case $host_os in
10918 openbsd2.[89] | openbsd2.[89].*)
10919 shlibpath_overrides_runpath=no
10920 ;;
10921 *)
10922 shlibpath_overrides_runpath=yes
10923 ;;
10924 esac
10925 else
10926 shlibpath_overrides_runpath=yes
10927 fi
10928 ;;
10929
10930os2*)
10931 libname_spec='$name'
10932 shrext=".dll"
10933 need_lib_prefix=no
10934 library_names_spec='$libname${shared_ext} $libname.a'
10935 dynamic_linker='OS/2 ld.exe'
10936 shlibpath_var=LIBPATH
10937 ;;
10938
10939osf3* | osf4* | osf5*)
10940 version_type=osf
10941 need_lib_prefix=no
10942 need_version=no
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10947 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10948 ;;
10949
10950sco3.2v5*)
10951 version_type=osf
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 ;;
10956
10957solaris*)
10958 version_type=linux
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965 hardcode_into_libs=yes
10966 # ldd complains unless libraries are executable
10967 postinstall_cmds='chmod +x $lib'
10968 ;;
10969
10970sunos4*)
10971 version_type=sunos
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 if test "$with_gnu_ld" = yes; then
10977 need_lib_prefix=no
10978 fi
10979 need_version=yes
10980 ;;
10981
10982sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10983 version_type=linux
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 case $host_vendor in
10988 sni)
10989 shlibpath_overrides_runpath=no
10990 need_lib_prefix=no
10991 export_dynamic_flag_spec='${wl}-Blargedynsym'
10992 runpath_var=LD_RUN_PATH
10993 ;;
10994 siemens)
10995 need_lib_prefix=no
10996 ;;
10997 motorola)
10998 need_lib_prefix=no
10999 need_version=no
11000 shlibpath_overrides_runpath=no
11001 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11002 ;;
11003 esac
11004 ;;
11005
11006sysv4*MP*)
11007 if test -d /usr/nec ;then
11008 version_type=linux
11009 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11010 soname_spec='$libname${shared_ext}.$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 fi
11013 ;;
11014
11015uts4*)
11016 version_type=linux
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 ;;
11021
11022*)
11023 dynamic_linker=no
11024 ;;
11025esac
11026echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11027echo "${ECHO_T}$dynamic_linker" >&6
11028test "$dynamic_linker" = no && can_build_shared=no
11029
11030echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11031echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11032hardcode_action_CXX=
11033if test -n "$hardcode_libdir_flag_spec_CXX" || \
11034 test -n "$runpath_var CXX" || \
11035 test "X$hardcode_automatic_CXX"="Xyes" ; then
11036
11037 # We can hardcode non-existant directories.
11038 if test "$hardcode_direct_CXX" != no &&
11039 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11040 # have to relink, otherwise we might link with an installed library
11041 # when we should be linking with a yet-to-be-installed one
11042 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11043 test "$hardcode_minus_L_CXX" != no; then
11044 # Linking always hardcodes the temporary library directory.
11045 hardcode_action_CXX=relink
11046 else
11047 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11048 hardcode_action_CXX=immediate
11049 fi
11050else
11051 # We cannot hardcode anything, or else we can only hardcode existing
11052 # directories.
11053 hardcode_action_CXX=unsupported
11054fi
11055echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11056echo "${ECHO_T}$hardcode_action_CXX" >&6
11057
11058if test "$hardcode_action_CXX" = relink; then
11059 # Fast installation is not supported
11060 enable_fast_install=no
11061elif test "$shlibpath_overrides_runpath" = yes ||
11062 test "$enable_shared" = no; then
11063 # Fast installation is not necessary
11064 enable_fast_install=needless
11065fi
11066
11067striplib=
11068old_striplib=
11069echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11070echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11071if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11072 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11073 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11074 echo "$as_me:$LINENO: result: yes" >&5
11075echo "${ECHO_T}yes" >&6
11076else
11077# FIXME - insert some real tests, host_os isn't really good enough
11078 case $host_os in
11079 darwin*)
11080 if test -n "$STRIP" ; then
11081 striplib="$STRIP -x"
11082 echo "$as_me:$LINENO: result: yes" >&5
11083echo "${ECHO_T}yes" >&6
11084 else
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
11087fi
11088 ;;
11089 *)
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092 ;;
11093 esac
11094fi
11095
11096if test "x$enable_dlopen" != xyes; then
11097 enable_dlopen=unknown
11098 enable_dlopen_self=unknown
11099 enable_dlopen_self_static=unknown
11100else
11101 lt_cv_dlopen=no
11102 lt_cv_dlopen_libs=
11103
11104 case $host_os in
11105 beos*)
11106 lt_cv_dlopen="load_add_on"
11107 lt_cv_dlopen_libs=
11108 lt_cv_dlopen_self=yes
11109 ;;
11110
11111 mingw* | pw32*)
11112 lt_cv_dlopen="LoadLibrary"
11113 lt_cv_dlopen_libs=
11114 ;;
11115
11116 cygwin*)
11117 lt_cv_dlopen="dlopen"
11118 lt_cv_dlopen_libs=
11119 ;;
11120
11121 darwin*)
11122 # if libdl is installed we need to link against it
11123 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11124echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11125if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127else
11128 ac_check_lib_save_LIBS=$LIBS
11129LIBS="-ldl $LIBS"
11130cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136
11137/* Override any gcc2 internal prototype to avoid an error. */
11138#ifdef __cplusplus
11139extern "C"
11140#endif
11141/* We use char because int might match the return type of a gcc2
11142 builtin and then its argument prototype would still apply. */
11143char dlopen ();
11144int
11145main ()
11146{
11147dlopen ();
11148 ;
11149 return 0;
11150}
11151_ACEOF
11152rm -f conftest.$ac_objext conftest$ac_exeext
11153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154 (eval $ac_link) 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_lib_dl_dlopen=yes
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178ac_cv_lib_dl_dlopen=no
11179fi
11180rm -f conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182LIBS=$ac_check_lib_save_LIBS
11183fi
11184echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11185echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11186if test $ac_cv_lib_dl_dlopen = yes; then
11187 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11188else
11189
11190 lt_cv_dlopen="dyld"
11191 lt_cv_dlopen_libs=
11192 lt_cv_dlopen_self=yes
11193
11194fi
11195
11196 ;;
11197
11198 *)
11199 echo "$as_me:$LINENO: checking for shl_load" >&5
11200echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11201if test "${ac_cv_func_shl_load+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203else
11204 cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11212#define shl_load innocuous_shl_load
11213
11214/* System header to define __stub macros and hopefully few prototypes,
11215 which can conflict with char shl_load (); below.
11216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11217 <limits.h> exists even on freestanding compilers. */
11218
11219#ifdef __STDC__
11220# include <limits.h>
11221#else
11222# include <assert.h>
11223#endif
11224
11225#undef shl_load
11226
11227/* Override any gcc2 internal prototype to avoid an error. */
11228#ifdef __cplusplus
11229extern "C"
11230{
11231#endif
11232/* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11234char shl_load ();
11235/* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
11238#if defined (__stub_shl_load) || defined (__stub___shl_load)
11239choke me
11240#else
11241char (*f) () = shl_load;
11242#endif
11243#ifdef __cplusplus
11244}
11245#endif
11246
11247int
11248main ()
11249{
11250return f != shl_load;
11251 ;
11252 return 0;
11253}
11254_ACEOF
11255rm -f conftest.$ac_objext conftest$ac_exeext
11256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_func_shl_load=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281ac_cv_func_shl_load=no
11282fi
11283rm -f conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285fi
11286echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11287echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11288if test $ac_cv_func_shl_load = yes; then
11289 lt_cv_dlopen="shl_load"
11290else
11291 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11292echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11293if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296 ac_check_lib_save_LIBS=$LIBS
11297LIBS="-ldld $LIBS"
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304
11305/* Override any gcc2 internal prototype to avoid an error. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309/* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11311char shl_load ();
11312int
11313main ()
11314{
11315shl_load ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext conftest$ac_exeext
11321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_lib_dld_shl_load=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346ac_cv_lib_dld_shl_load=no
11347fi
11348rm -f conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350LIBS=$ac_check_lib_save_LIBS
11351fi
11352echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11353echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11354if test $ac_cv_lib_dld_shl_load = yes; then
11355 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11356else
11357 echo "$as_me:$LINENO: checking for dlopen" >&5
11358echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11359if test "${ac_cv_func_dlopen+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11370#define dlopen innocuous_dlopen
11371
11372/* System header to define __stub macros and hopefully few prototypes,
11373 which can conflict with char dlopen (); below.
11374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11375 <limits.h> exists even on freestanding compilers. */
11376
11377#ifdef __STDC__
11378# include <limits.h>
11379#else
11380# include <assert.h>
11381#endif
11382
11383#undef dlopen
11384
11385/* Override any gcc2 internal prototype to avoid an error. */
11386#ifdef __cplusplus
11387extern "C"
11388{
11389#endif
11390/* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392char dlopen ();
11393/* The GNU C library defines this for functions which it implements
11394 to always fail with ENOSYS. Some functions are actually named
11395 something starting with __ and the normal name is an alias. */
11396#if defined (__stub_dlopen) || defined (__stub___dlopen)
11397choke me
11398#else
11399char (*f) () = dlopen;
11400#endif
11401#ifdef __cplusplus
11402}
11403#endif
11404
11405int
11406main ()
11407{
11408return f != dlopen;
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413rm -f conftest.$ac_objext conftest$ac_exeext
11414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11415 (eval $ac_link) 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_func_dlopen=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
11439ac_cv_func_dlopen=no
11440fi
11441rm -f conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443fi
11444echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11445echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11446if test $ac_cv_func_dlopen = yes; then
11447 lt_cv_dlopen="dlopen"
11448else
11449 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11450echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11451if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 ac_check_lib_save_LIBS=$LIBS
11455LIBS="-ldl $LIBS"
11456cat >conftest.$ac_ext <<_ACEOF
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462
11463/* Override any gcc2 internal prototype to avoid an error. */
11464#ifdef __cplusplus
11465extern "C"
11466#endif
11467/* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11469char dlopen ();
11470int
11471main ()
11472{
11473dlopen ();
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest$ac_exeext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_lib_dl_dlopen=yes
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504ac_cv_lib_dl_dlopen=no
11505fi
11506rm -f conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508LIBS=$ac_check_lib_save_LIBS
11509fi
11510echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11511echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11512if test $ac_cv_lib_dl_dlopen = yes; then
11513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11514else
11515 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11516echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11517if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520 ac_check_lib_save_LIBS=$LIBS
11521LIBS="-lsvld $LIBS"
11522cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528
11529/* Override any gcc2 internal prototype to avoid an error. */
11530#ifdef __cplusplus
11531extern "C"
11532#endif
11533/* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */
11535char dlopen ();
11536int
11537main ()
11538{
11539dlopen ();
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544rm -f conftest.$ac_objext conftest$ac_exeext
11545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546 (eval $ac_link) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_svld_dlopen=yes
11566else
11567 echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
11570ac_cv_lib_svld_dlopen=no
11571fi
11572rm -f conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574LIBS=$ac_check_lib_save_LIBS
11575fi
11576echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11577echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11578if test $ac_cv_lib_svld_dlopen = yes; then
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11580else
11581 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11582echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11583if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 ac_check_lib_save_LIBS=$LIBS
11587LIBS="-ldld $LIBS"
11588cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594
11595/* Override any gcc2 internal prototype to avoid an error. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599/* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601char dld_link ();
11602int
11603main ()
11604{
11605dld_link ();
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_lib_dld_dld_link=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636ac_cv_lib_dld_dld_link=no
11637fi
11638rm -f conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640LIBS=$ac_check_lib_save_LIBS
11641fi
11642echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11643echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11644if test $ac_cv_lib_dld_dld_link = yes; then
11645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11646fi
11647
11648
11649fi
11650
11651
11652fi
11653
11654
11655fi
11656
11657
11658fi
11659
11660
11661fi
11662
11663 ;;
11664 esac
11665
11666 if test "x$lt_cv_dlopen" != xno; then
11667 enable_dlopen=yes
11668 else
11669 enable_dlopen=no
11670 fi
11671
11672 case $lt_cv_dlopen in
11673 dlopen)
11674 save_CPPFLAGS="$CPPFLAGS"
11675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11676
11677 save_LDFLAGS="$LDFLAGS"
11678 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11679
11680 save_LIBS="$LIBS"
11681 LIBS="$lt_cv_dlopen_libs $LIBS"
11682
11683 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11684echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11685if test "${lt_cv_dlopen_self+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
11688 if test "$cross_compiling" = yes; then :
11689 lt_cv_dlopen_self=cross
11690else
11691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11692 lt_status=$lt_dlunknown
11693 cat > conftest.$ac_ext <<EOF
11694#line 11694 "configure"
11695#include "confdefs.h"
11696
11697#if HAVE_DLFCN_H
11698#include <dlfcn.h>
11699#endif
11700
11701#include <stdio.h>
11702
11703#ifdef RTLD_GLOBAL
11704# define LT_DLGLOBAL RTLD_GLOBAL
11705#else
11706# ifdef DL_GLOBAL
11707# define LT_DLGLOBAL DL_GLOBAL
11708# else
11709# define LT_DLGLOBAL 0
11710# endif
11711#endif
11712
11713/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11714 find out it does not work in some platform. */
11715#ifndef LT_DLLAZY_OR_NOW
11716# ifdef RTLD_LAZY
11717# define LT_DLLAZY_OR_NOW RTLD_LAZY
11718# else
11719# ifdef DL_LAZY
11720# define LT_DLLAZY_OR_NOW DL_LAZY
11721# else
11722# ifdef RTLD_NOW
11723# define LT_DLLAZY_OR_NOW RTLD_NOW
11724# else
11725# ifdef DL_NOW
11726# define LT_DLLAZY_OR_NOW DL_NOW
11727# else
11728# define LT_DLLAZY_OR_NOW 0
11729# endif
11730# endif
11731# endif
11732# endif
11733#endif
11734
11735#ifdef __cplusplus
11736extern "C" void exit (int);
11737#endif
11738
11739void fnord() { int i=42;}
11740int main ()
11741{
11742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11743 int status = $lt_dlunknown;
11744
11745 if (self)
11746 {
11747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11749 /* dlclose (self); */
11750 }
11751
11752 exit (status);
11753}
11754EOF
11755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11760 (./conftest; exit; ) 2>/dev/null
11761 lt_status=$?
11762 case x$lt_status in
11763 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11764 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11765 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11766 esac
11767 else :
11768 # compilation failed
11769 lt_cv_dlopen_self=no
11770 fi
11771fi
11772rm -fr conftest*
11773
11774
11775fi
11776echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11777echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11778
11779 if test "x$lt_cv_dlopen_self" = xyes; then
11780 LDFLAGS="$LDFLAGS $link_static_flag"
11781 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11782echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11783if test "${lt_cv_dlopen_self_static+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 if test "$cross_compiling" = yes; then :
11787 lt_cv_dlopen_self_static=cross
11788else
11789 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11790 lt_status=$lt_dlunknown
11791 cat > conftest.$ac_ext <<EOF
11792#line 11792 "configure"
11793#include "confdefs.h"
11794
11795#if HAVE_DLFCN_H
11796#include <dlfcn.h>
11797#endif
11798
11799#include <stdio.h>
11800
11801#ifdef RTLD_GLOBAL
11802# define LT_DLGLOBAL RTLD_GLOBAL
11803#else
11804# ifdef DL_GLOBAL
11805# define LT_DLGLOBAL DL_GLOBAL
11806# else
11807# define LT_DLGLOBAL 0
11808# endif
11809#endif
11810
11811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11812 find out it does not work in some platform. */
11813#ifndef LT_DLLAZY_OR_NOW
11814# ifdef RTLD_LAZY
11815# define LT_DLLAZY_OR_NOW RTLD_LAZY
11816# else
11817# ifdef DL_LAZY
11818# define LT_DLLAZY_OR_NOW DL_LAZY
11819# else
11820# ifdef RTLD_NOW
11821# define LT_DLLAZY_OR_NOW RTLD_NOW
11822# else
11823# ifdef DL_NOW
11824# define LT_DLLAZY_OR_NOW DL_NOW
11825# else
11826# define LT_DLLAZY_OR_NOW 0
11827# endif
11828# endif
11829# endif
11830# endif
11831#endif
11832
11833#ifdef __cplusplus
11834extern "C" void exit (int);
11835#endif
11836
11837void fnord() { int i=42;}
11838int main ()
11839{
11840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11841 int status = $lt_dlunknown;
11842
11843 if (self)
11844 {
11845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11846 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11847 /* dlclose (self); */
11848 }
11849
11850 exit (status);
11851}
11852EOF
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11858 (./conftest; exit; ) 2>/dev/null
11859 lt_status=$?
11860 case x$lt_status in
11861 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11862 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11863 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11864 esac
11865 else :
11866 # compilation failed
11867 lt_cv_dlopen_self_static=no
11868 fi
11869fi
11870rm -fr conftest*
11871
11872
11873fi
11874echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11875echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11876 fi
11877
11878 CPPFLAGS="$save_CPPFLAGS"
11879 LDFLAGS="$save_LDFLAGS"
11880 LIBS="$save_LIBS"
11881 ;;
11882 esac
11883
11884 case $lt_cv_dlopen_self in
11885 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11886 *) enable_dlopen_self=unknown ;;
11887 esac
11888
11889 case $lt_cv_dlopen_self_static in
11890 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11891 *) enable_dlopen_self_static=unknown ;;
11892 esac
11893fi
11894
11895
11896# The else clause should only fire when bootstrapping the
11897# libtool distribution, otherwise you forgot to ship ltmain.sh
11898# with your package, and you will get complaints that there are
11899# no rules to generate ltmain.sh.
11900if test -f "$ltmain"; then
11901 # See if we are running on zsh, and set the options which allow our commands through
11902 # without removal of \ escapes.
11903 if test -n "${ZSH_VERSION+set}" ; then
11904 setopt NO_GLOB_SUBST
11905 fi
11906 # Now quote all the things that may contain metacharacters while being
11907 # careful not to overquote the AC_SUBSTed values. We take copies of the
11908 # variables and quote the copies for generation of the libtool script.
11909 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11910 SED SHELL STRIP \
11911 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11912 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11913 deplibs_check_method reload_flag reload_cmds need_locks \
11914 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11915 lt_cv_sys_global_symbol_to_c_name_address \
11916 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11917 old_postinstall_cmds old_postuninstall_cmds \
11918 compiler_CXX \
11919 CC_CXX \
11920 LD_CXX \
11921 lt_prog_compiler_wl_CXX \
11922 lt_prog_compiler_pic_CXX \
11923 lt_prog_compiler_static_CXX \
11924 lt_prog_compiler_no_builtin_flag_CXX \
11925 export_dynamic_flag_spec_CXX \
11926 thread_safe_flag_spec_CXX \
11927 whole_archive_flag_spec_CXX \
11928 enable_shared_with_static_runtimes_CXX \
11929 old_archive_cmds_CXX \
11930 old_archive_from_new_cmds_CXX \
11931 predep_objects_CXX \
11932 postdep_objects_CXX \
11933 predeps_CXX \
11934 postdeps_CXX \
11935 compiler_lib_search_path_CXX \
11936 archive_cmds_CXX \
11937 archive_expsym_cmds_CXX \
11938 postinstall_cmds_CXX \
11939 postuninstall_cmds_CXX \
11940 old_archive_from_expsyms_cmds_CXX \
11941 allow_undefined_flag_CXX \
11942 no_undefined_flag_CXX \
11943 export_symbols_cmds_CXX \
11944 hardcode_libdir_flag_spec_CXX \
11945 hardcode_libdir_flag_spec_ld_CXX \
11946 hardcode_libdir_separator_CXX \
11947 hardcode_automatic_CXX \
11948 module_cmds_CXX \
11949 module_expsym_cmds_CXX \
11950 lt_cv_prog_compiler_c_o_CXX \
11951 exclude_expsyms_CXX \
11952 include_expsyms_CXX; do
11953
11954 case $var in
11955 old_archive_cmds_CXX | \
11956 old_archive_from_new_cmds_CXX | \
11957 archive_cmds_CXX | \
11958 archive_expsym_cmds_CXX | \
11959 module_cmds_CXX | \
11960 module_expsym_cmds_CXX | \
11961 old_archive_from_expsyms_cmds_CXX | \
11962 export_symbols_cmds_CXX | \
11963 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11964 postinstall_cmds | postuninstall_cmds | \
11965 old_postinstall_cmds | old_postuninstall_cmds | \
11966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11967 # Double-quote double-evaled strings.
11968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11969 ;;
11970 *)
11971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11972 ;;
11973 esac
11974 done
11975
11976 case $lt_echo in
11977 *'\$0 --fallback-echo"')
11978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11979 ;;
11980 esac
11981
11982cfgfile="$ofile"
11983
11984 cat <<__EOF__ >> "$cfgfile"
11985# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11986
11987# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11988
11989# Shell to use when invoking shell scripts.
11990SHELL=$lt_SHELL
11991
11992# Whether or not to build shared libraries.
11993build_libtool_libs=$enable_shared
11994
11995# Whether or not to build static libraries.
11996build_old_libs=$enable_static
11997
11998# Whether or not to add -lc for building shared libraries.
11999build_libtool_need_lc=$archive_cmds_need_lc_CXX
12000
12001# Whether or not to disallow shared libs when runtime libs are static
12002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12003
12004# Whether or not to optimize for fast installation.
12005fast_install=$enable_fast_install
12006
12007# The host system.
12008host_alias=$host_alias
12009host=$host
12010
12011# An echo program that does not interpret backslashes.
12012echo=$lt_echo
12013
12014# The archiver.
12015AR=$lt_AR
12016AR_FLAGS=$lt_AR_FLAGS
12017
12018# A C compiler.
12019LTCC=$lt_LTCC
12020
12021# A language-specific compiler.
12022CC=$lt_compiler_CXX
12023
12024# Is the compiler the GNU C compiler?
12025with_gcc=$GCC_CXX
12026
12027# An ERE matcher.
12028EGREP=$lt_EGREP
12029
12030# The linker used to build libraries.
12031LD=$lt_LD_CXX
12032
12033# Whether we need hard or soft links.
12034LN_S=$lt_LN_S
12035
12036# A BSD-compatible nm program.
12037NM=$lt_NM
12038
12039# A symbol stripping program
12040STRIP=$lt_STRIP
12041
12042# Used to examine libraries when file_magic_cmd begins "file"
12043MAGIC_CMD=$MAGIC_CMD
12044
12045# Used on cygwin: DLL creation program.
12046DLLTOOL="$DLLTOOL"
12047
12048# Used on cygwin: object dumper.
12049OBJDUMP="$OBJDUMP"
12050
12051# Used on cygwin: assembler.
12052AS="$AS"
12053
12054# The name of the directory that contains temporary libtool files.
12055objdir=$objdir
12056
12057# How to create reloadable object files.
12058reload_flag=$lt_reload_flag
12059reload_cmds=$lt_reload_cmds
12060
12061# How to pass a linker flag through the compiler.
12062wl=$lt_lt_prog_compiler_wl_CXX
12063
12064# Object file suffix (normally "o").
12065objext="$ac_objext"
12066
12067# Old archive suffix (normally "a").
12068libext="$libext"
12069
12070# Shared library suffix (normally ".so").
12071shrext='$shrext'
12072
12073# Executable file suffix (normally "").
12074exeext="$exeext"
12075
12076# Additional compiler flags for building library objects.
12077pic_flag=$lt_lt_prog_compiler_pic_CXX
12078pic_mode=$pic_mode
12079
12080# What is the maximum length of a command?
12081max_cmd_len=$lt_cv_sys_max_cmd_len
12082
12083# Does compiler simultaneously support -c and -o options?
12084compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12085
12086# Must we lock files when doing compilation ?
12087need_locks=$lt_need_locks
12088
12089# Do we need the lib prefix for modules?
12090need_lib_prefix=$need_lib_prefix
12091
12092# Do we need a version for libraries?
12093need_version=$need_version
12094
12095# Whether dlopen is supported.
12096dlopen_support=$enable_dlopen
12097
12098# Whether dlopen of programs is supported.
12099dlopen_self=$enable_dlopen_self
12100
12101# Whether dlopen of statically linked programs is supported.
12102dlopen_self_static=$enable_dlopen_self_static
12103
12104# Compiler flag to prevent dynamic linking.
12105link_static_flag=$lt_lt_prog_compiler_static_CXX
12106
12107# Compiler flag to turn off builtin functions.
12108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12109
12110# Compiler flag to allow reflexive dlopens.
12111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12112
12113# Compiler flag to generate shared objects directly from archives.
12114whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12115
12116# Compiler flag to generate thread-safe objects.
12117thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12118
12119# Library versioning type.
12120version_type=$version_type
12121
12122# Format of library name prefix.
12123libname_spec=$lt_libname_spec
12124
12125# List of archive names. First name is the real one, the rest are links.
12126# The last name is the one that the linker finds with -lNAME.
12127library_names_spec=$lt_library_names_spec
12128
12129# The coded name of the library, if different from the real name.
12130soname_spec=$lt_soname_spec
12131
12132# Commands used to build and install an old-style archive.
12133RANLIB=$lt_RANLIB
12134old_archive_cmds=$lt_old_archive_cmds_CXX
12135old_postinstall_cmds=$lt_old_postinstall_cmds
12136old_postuninstall_cmds=$lt_old_postuninstall_cmds
12137
12138# Create an old-style archive from a shared archive.
12139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12140
12141# Create a temporary old-style archive to link instead of a shared archive.
12142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12143
12144# Commands used to build and install a shared archive.
12145archive_cmds=$lt_archive_cmds_CXX
12146archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12147postinstall_cmds=$lt_postinstall_cmds
12148postuninstall_cmds=$lt_postuninstall_cmds
12149
12150# Commands used to build a loadable module (assumed same as above if empty)
12151module_cmds=$lt_module_cmds_CXX
12152module_expsym_cmds=$lt_module_expsym_cmds_CXX
12153
12154# Commands to strip libraries.
12155old_striplib=$lt_old_striplib
12156striplib=$lt_striplib
12157
12158# Dependencies to place before the objects being linked to create a
12159# shared library.
12160predep_objects=$lt_predep_objects_CXX
12161
12162# Dependencies to place after the objects being linked to create a
12163# shared library.
12164postdep_objects=$lt_postdep_objects_CXX
12165
12166# Dependencies to place before the objects being linked to create a
12167# shared library.
12168predeps=$lt_predeps_CXX
12169
12170# Dependencies to place after the objects being linked to create a
12171# shared library.
12172postdeps=$lt_postdeps_CXX
12173
12174# The library search path used internally by the compiler when linking
12175# a shared library.
12176compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12177
12178# Method to check whether dependent libraries are shared objects.
12179deplibs_check_method=$lt_deplibs_check_method
12180
12181# Command to use when deplibs_check_method == file_magic.
12182file_magic_cmd=$lt_file_magic_cmd
12183
12184# Flag that allows shared libraries with undefined symbols to be built.
12185allow_undefined_flag=$lt_allow_undefined_flag_CXX
12186
12187# Flag that forces no undefined symbols.
12188no_undefined_flag=$lt_no_undefined_flag_CXX
12189
12190# Commands used to finish a libtool library installation in a directory.
12191finish_cmds=$lt_finish_cmds
12192
12193# Same as above, but a single script fragment to be evaled but not shown.
12194finish_eval=$lt_finish_eval
12195
12196# Take the output of nm and produce a listing of raw symbols and C names.
12197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12198
12199# Transform the output of nm in a proper C declaration
12200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12201
12202# Transform the output of nm in a C name address pair
12203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12204
12205# This is the shared library runtime path variable.
12206runpath_var=$runpath_var
12207
12208# This is the shared library path variable.
12209shlibpath_var=$shlibpath_var
12210
12211# Is shlibpath searched before the hard-coded library search path?
12212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12213
12214# How to hardcode a shared library path into an executable.
12215hardcode_action=$hardcode_action_CXX
12216
12217# Whether we should hardcode library paths into libraries.
12218hardcode_into_libs=$hardcode_into_libs
12219
12220# Flag to hardcode \$libdir into a binary during linking.
12221# This must work even if \$libdir does not exist.
12222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12223
12224# If ld is used when linking, flag to hardcode \$libdir into
12225# a binary during linking. This must work even if \$libdir does
12226# not exist.
12227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12228
12229# Whether we need a single -rpath flag with a separated argument.
12230hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12231
12232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12233# resulting binary.
12234hardcode_direct=$hardcode_direct_CXX
12235
12236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12237# resulting binary.
12238hardcode_minus_L=$hardcode_minus_L_CXX
12239
12240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12241# the resulting binary.
12242hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12243
12244# Set to yes if building a shared library automatically hardcodes DIR into the library
12245# and all subsequent libraries and executables linked against it.
12246hardcode_automatic=$hardcode_automatic_CXX
12247
12248# Variables whose values should be saved in libtool wrapper scripts and
12249# restored at relink time.
12250variables_saved_for_relink="$variables_saved_for_relink"
12251
12252# Whether libtool must link a program against all its dependency libraries.
12253link_all_deplibs=$link_all_deplibs_CXX
12254
12255# Compile-time system search path for libraries
12256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12257
12258# Run-time system search path for libraries
12259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12260
12261# Fix the shell variable \$srcfile for the compiler.
12262fix_srcfile_path="$fix_srcfile_path_CXX"
12263
12264# Set to yes if exported symbols are required.
12265always_export_symbols=$always_export_symbols_CXX
12266
12267# The commands to list exported symbols.
12268export_symbols_cmds=$lt_export_symbols_cmds_CXX
12269
12270# The commands to extract the exported symbol list from a shared archive.
12271extract_expsyms_cmds=$lt_extract_expsyms_cmds
12272
12273# Symbols that should not be listed in the preloaded symbols.
12274exclude_expsyms=$lt_exclude_expsyms_CXX
12275
12276# Symbols that must always be exported.
12277include_expsyms=$lt_include_expsyms_CXX
12278
12279# ### END LIBTOOL TAG CONFIG: $tagname
12280
12281__EOF__
12282
12283
12284else
12285 # If there is no Makefile yet, we rely on a make rule to execute
12286 # `config.status --recheck' to rerun these tests and create the
12287 # libtool script then.
12288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12289 if test -f "$ltmain_in"; then
12290 test -f Makefile && make "$ltmain"
12291 fi
12292fi
12293
12294
12295ac_ext=c
12296ac_cpp='$CPP $CPPFLAGS'
12297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300
12301CC=$lt_save_CC
12302LDCXX=$LD
12303LD=$lt_save_LD
12304GCC=$lt_save_GCC
12305with_gnu_ldcxx=$with_gnu_ld
12306with_gnu_ld=$lt_save_with_gnu_ld
12307lt_cv_path_LDCXX=$lt_cv_path_LD
12308lt_cv_path_LD=$lt_save_path_LD
12309lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12310lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12311
12312 else
12313 tagname=""
12314 fi
12315 ;;
12316
12317 F77)
12318 if test -n "$F77" && test "X$F77" != "Xno"; then
12319
12320ac_ext=f
12321ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12322ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12324
12325
12326archive_cmds_need_lc_F77=no
12327allow_undefined_flag_F77=
12328always_export_symbols_F77=no
12329archive_expsym_cmds_F77=
12330export_dynamic_flag_spec_F77=
12331hardcode_direct_F77=no
12332hardcode_libdir_flag_spec_F77=
12333hardcode_libdir_flag_spec_ld_F77=
12334hardcode_libdir_separator_F77=
12335hardcode_minus_L_F77=no
12336hardcode_automatic_F77=no
12337module_cmds_F77=
12338module_expsym_cmds_F77=
12339link_all_deplibs_F77=unknown
12340old_archive_cmds_F77=$old_archive_cmds
12341no_undefined_flag_F77=
12342whole_archive_flag_spec_F77=
12343enable_shared_with_static_runtimes_F77=no
12344
12345# Source file extension for f77 test sources.
12346ac_ext=f
12347
12348# Object file extension for compiled f77 test sources.
12349objext=o
12350objext_F77=$objext
12351
12352# Code to be used in simple compile tests
12353lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12354
12355# Code to be used in simple link tests
12356lt_simple_link_test_code=" program t\n end\n"
12357
12358# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12359
12360# If no C compiler was specified, use CC.
12361LTCC=${LTCC-"$CC"}
12362
12363# Allow CC to be a program name with arguments.
12364compiler=$CC
12365
12366
12367# Allow CC to be a program name with arguments.
12368lt_save_CC="$CC"
12369CC=${F77-"f77"}
12370compiler=$CC
12371compiler_F77=$CC
12372cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12373
12374echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12375echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12376echo "$as_me:$LINENO: result: $can_build_shared" >&5
12377echo "${ECHO_T}$can_build_shared" >&6
12378
12379echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12380echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12381test "$can_build_shared" = "no" && enable_shared=no
12382
12383# On AIX, shared libraries and static libraries use the same namespace, and
12384# are all built from PIC.
12385case "$host_os" in
12386aix3*)
12387 test "$enable_shared" = yes && enable_static=no
12388 if test -n "$RANLIB"; then
12389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12390 postinstall_cmds='$RANLIB $lib'
12391 fi
12392 ;;
12393aix4*)
12394 test "$enable_shared" = yes && enable_static=no
12395 ;;
12396esac
12397echo "$as_me:$LINENO: result: $enable_shared" >&5
12398echo "${ECHO_T}$enable_shared" >&6
12399
12400echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12401echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12402# Make sure either enable_shared or enable_static is yes.
12403test "$enable_shared" = yes || enable_static=yes
12404echo "$as_me:$LINENO: result: $enable_static" >&5
12405echo "${ECHO_T}$enable_static" >&6
12406
12407test "$ld_shlibs_F77" = no && can_build_shared=no
12408
12409GCC_F77="$G77"
12410LD_F77="$LD"
12411
12412lt_prog_compiler_wl_F77=
12413lt_prog_compiler_pic_F77=
12414lt_prog_compiler_static_F77=
12415
12416echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12417echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12418
12419 if test "$GCC" = yes; then
12420 lt_prog_compiler_wl_F77='-Wl,'
12421 lt_prog_compiler_static_F77='-static'
12422
12423 case $host_os in
12424 aix*)
12425 # All AIX code is PIC.
12426 if test "$host_cpu" = ia64; then
12427 # AIX 5 now supports IA64 processor
12428 lt_prog_compiler_static_F77='-Bstatic'
12429 fi
12430 ;;
12431
12432 amigaos*)
12433 # FIXME: we need at least 68020 code to build shared libraries, but
12434 # adding the `-m68020' flag to GCC prevents building anything better,
12435 # like `-m68040'.
12436 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12437 ;;
12438
12439 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12440 # PIC is the default for these OSes.
12441 ;;
12442
12443 mingw* | pw32* | os2*)
12444 # This hack is so that the source file can tell whether it is being
12445 # built for inclusion in a dll (and should export symbols for example).
12446 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12447 ;;
12448
12449 darwin* | rhapsody*)
12450 # PIC is the default on this platform
12451 # Common symbols not allowed in MH_DYLIB files
12452 lt_prog_compiler_pic_F77='-fno-common'
12453 ;;
12454
12455 msdosdjgpp*)
12456 # Just because we use GCC doesn't mean we suddenly get shared libraries
12457 # on systems that don't support them.
12458 lt_prog_compiler_can_build_shared_F77=no
12459 enable_shared=no
12460 ;;
12461
12462 sysv4*MP*)
12463 if test -d /usr/nec; then
12464 lt_prog_compiler_pic_F77=-Kconform_pic
12465 fi
12466 ;;
12467
12468 hpux*)
12469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12470 # not for PA HP-UX.
12471 case "$host_cpu" in
12472 hppa*64*|ia64*)
12473 # +Z the default
12474 ;;
12475 *)
12476 lt_prog_compiler_pic_F77='-fPIC'
12477 ;;
12478 esac
12479 ;;
12480
12481 *)
12482 lt_prog_compiler_pic_F77='-fPIC'
12483 ;;
12484 esac
12485 else
12486 # PORTME Check for flag to pass linker flags through the system compiler.
12487 case $host_os in
12488 aix*)
12489 lt_prog_compiler_wl_F77='-Wl,'
12490 if test "$host_cpu" = ia64; then
12491 # AIX 5 now supports IA64 processor
12492 lt_prog_compiler_static_F77='-Bstatic'
12493 else
12494 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12495 fi
12496 ;;
12497
12498 mingw* | pw32* | os2*)
12499 # This hack is so that the source file can tell whether it is being
12500 # built for inclusion in a dll (and should export symbols for example).
12501 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12502 ;;
12503
12504 hpux9* | hpux10* | hpux11*)
12505 lt_prog_compiler_wl_F77='-Wl,'
12506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12507 # not for PA HP-UX.
12508 case "$host_cpu" in
12509 hppa*64*|ia64*)
12510 # +Z the default
12511 ;;
12512 *)
12513 lt_prog_compiler_pic_F77='+Z'
12514 ;;
12515 esac
12516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12517 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12518 ;;
12519
12520 irix5* | irix6* | nonstopux*)
12521 lt_prog_compiler_wl_F77='-Wl,'
12522 # PIC (with -KPIC) is the default.
12523 lt_prog_compiler_static_F77='-non_shared'
12524 ;;
12525
12526 newsos6)
12527 lt_prog_compiler_pic_F77='-KPIC'
12528 lt_prog_compiler_static_F77='-Bstatic'
12529 ;;
12530
12531 linux*)
12532 case $CC in
12533 icc* | ecc*)
12534 lt_prog_compiler_wl_F77='-Wl,'
12535 lt_prog_compiler_pic_F77='-KPIC'
12536 lt_prog_compiler_static_F77='-static'
12537 ;;
12538 ccc*)
12539 lt_prog_compiler_wl_F77='-Wl,'
12540 # All Alpha code is PIC.
12541 lt_prog_compiler_static_F77='-non_shared'
12542 ;;
12543 esac
12544 ;;
12545
12546 osf3* | osf4* | osf5*)
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 # All OSF/1 code is PIC.
12549 lt_prog_compiler_static_F77='-non_shared'
12550 ;;
12551
12552 sco3.2v5*)
12553 lt_prog_compiler_pic_F77='-Kpic'
12554 lt_prog_compiler_static_F77='-dn'
12555 ;;
12556
12557 solaris*)
12558 lt_prog_compiler_wl_F77='-Wl,'
12559 lt_prog_compiler_pic_F77='-KPIC'
12560 lt_prog_compiler_static_F77='-Bstatic'
12561 ;;
12562
12563 sunos4*)
12564 lt_prog_compiler_wl_F77='-Qoption ld '
12565 lt_prog_compiler_pic_F77='-PIC'
12566 lt_prog_compiler_static_F77='-Bstatic'
12567 ;;
12568
12569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12570 lt_prog_compiler_wl_F77='-Wl,'
12571 lt_prog_compiler_pic_F77='-KPIC'
12572 lt_prog_compiler_static_F77='-Bstatic'
12573 ;;
12574
12575 sysv4*MP*)
12576 if test -d /usr/nec ;then
12577 lt_prog_compiler_pic_F77='-Kconform_pic'
12578 lt_prog_compiler_static_F77='-Bstatic'
12579 fi
12580 ;;
12581
12582 uts4*)
12583 lt_prog_compiler_pic_F77='-pic'
12584 lt_prog_compiler_static_F77='-Bstatic'
12585 ;;
12586
12587 *)
12588 lt_prog_compiler_can_build_shared_F77=no
12589 ;;
12590 esac
12591 fi
12592
12593echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12594echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12595
12596#
12597# Check to make sure the PIC flag actually works.
12598#
12599if test -n "$lt_prog_compiler_pic_F77"; then
12600
12601echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12602echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12603if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605else
12606 lt_prog_compiler_pic_works_F77=no
12607 ac_outfile=conftest.$ac_objext
12608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12609 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12610 # Insert the option either (1) after the last *FLAGS variable, or
12611 # (2) before a word containing "conftest.", or (3) at the end.
12612 # Note that $ac_compile itself does not contain backslashes and begins
12613 # with a dollar sign (not a hyphen), so the echo should work correctly.
12614 # The option is referenced via a variable to avoid confusing sed.
12615 lt_compile=`echo "$ac_compile" | $SED \
12616 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12618 -e 's:$: $lt_compiler_flag:'`
12619 (eval echo "\"\$as_me:12619: $lt_compile\"" >&5)
12620 (eval "$lt_compile" 2>conftest.err)
12621 ac_status=$?
12622 cat conftest.err >&5
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 if (exit $ac_status) && test -s "$ac_outfile"; then
12625 # The compiler can only warn and ignore the option if not recognized
12626 # So say no if there are warnings
12627 if test ! -s conftest.err; then
12628 lt_prog_compiler_pic_works_F77=yes
12629 fi
12630 fi
12631 $rm conftest*
12632
12633fi
12634echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12635echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12636
12637if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12638 case $lt_prog_compiler_pic_F77 in
12639 "" | " "*) ;;
12640 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12641 esac
12642else
12643 lt_prog_compiler_pic_F77=
12644 lt_prog_compiler_can_build_shared_F77=no
12645fi
12646
12647fi
12648case "$host_os" in
12649 # For platforms which do not support PIC, -DPIC is meaningless:
12650 *djgpp*)
12651 lt_prog_compiler_pic_F77=
12652 ;;
12653 *)
12654 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12655 ;;
12656esac
12657
12658echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12659echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12660if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662else
12663 lt_cv_prog_compiler_c_o_F77=no
12664 $rm -r conftest 2>/dev/null
12665 mkdir conftest
12666 cd conftest
12667 mkdir out
12668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12669
12670 lt_compiler_flag="-o out/conftest2.$ac_objext"
12671 # Insert the option either (1) after the last *FLAGS variable, or
12672 # (2) before a word containing "conftest.", or (3) at the end.
12673 # Note that $ac_compile itself does not contain backslashes and begins
12674 # with a dollar sign (not a hyphen), so the echo should work correctly.
12675 lt_compile=`echo "$ac_compile" | $SED \
12676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12678 -e 's:$: $lt_compiler_flag:'`
12679 (eval echo "\"\$as_me:12679: $lt_compile\"" >&5)
12680 (eval "$lt_compile" 2>out/conftest.err)
12681 ac_status=$?
12682 cat out/conftest.err >&5
12683 echo "$as_me:12683: \$? = $ac_status" >&5
12684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12685 then
12686 # The compiler can only warn and ignore the option if not recognized
12687 # So say no if there are warnings
12688 if test ! -s out/conftest.err; then
12689 lt_cv_prog_compiler_c_o_F77=yes
12690 fi
12691 fi
12692 chmod u+w .
12693 $rm conftest*
12694 # SGI C++ compiler will create directory out/ii_files/ for
12695 # template instantiation
12696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12697 $rm out/* && rmdir out
12698 cd ..
12699 rmdir conftest
12700 $rm conftest*
12701
12702fi
12703echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12704echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12705
12706
12707hard_links="nottested"
12708if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12709 # do not overwrite the value of need_locks provided by the user
12710 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12711echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12712 hard_links=yes
12713 $rm conftest*
12714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12715 touch conftest.a
12716 ln conftest.a conftest.b 2>&5 || hard_links=no
12717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12718 echo "$as_me:$LINENO: result: $hard_links" >&5
12719echo "${ECHO_T}$hard_links" >&6
12720 if test "$hard_links" = no; then
12721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12722echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12723 need_locks=warn
12724 fi
12725else
12726 need_locks=no
12727fi
12728
12729echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12730echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12731
12732 runpath_var=
12733 allow_undefined_flag_F77=
12734 enable_shared_with_static_runtimes_F77=no
12735 archive_cmds_F77=
12736 archive_expsym_cmds_F77=
12737 old_archive_From_new_cmds_F77=
12738 old_archive_from_expsyms_cmds_F77=
12739 export_dynamic_flag_spec_F77=
12740 whole_archive_flag_spec_F77=
12741 thread_safe_flag_spec_F77=
12742 hardcode_libdir_flag_spec_F77=
12743 hardcode_libdir_flag_spec_ld_F77=
12744 hardcode_libdir_separator_F77=
12745 hardcode_direct_F77=no
12746 hardcode_minus_L_F77=no
12747 hardcode_shlibpath_var_F77=unsupported
12748 link_all_deplibs_F77=unknown
12749 hardcode_automatic_F77=no
12750 module_cmds_F77=
12751 module_expsym_cmds_F77=
12752 always_export_symbols_F77=no
12753 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12754 # include_expsyms should be a list of space-separated symbols to be *always*
12755 # included in the symbol list
12756 include_expsyms_F77=
12757 # exclude_expsyms can be an extended regexp of symbols to exclude
12758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12760 # as well as any symbol that contains `d'.
12761 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12763 # platforms (ab)use it in PIC code, but their linkers get confused if
12764 # the symbol is explicitly referenced. Since portable code cannot
12765 # rely on this symbol name, it's probably fine to never include it in
12766 # preloaded symbol tables.
12767 extract_expsyms_cmds=
12768
12769 case $host_os in
12770 cygwin* | mingw* | pw32*)
12771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12772 # When not using gcc, we currently assume that we are using
12773 # Microsoft Visual C++.
12774 if test "$GCC" != yes; then
12775 with_gnu_ld=no
12776 fi
12777 ;;
12778 openbsd*)
12779 with_gnu_ld=no
12780 ;;
12781 esac
12782
12783 ld_shlibs_F77=yes
12784 if test "$with_gnu_ld" = yes; then
12785 # If archive_cmds runs LD, not CC, wlarc should be empty
12786 wlarc='${wl}'
12787
12788 # See if GNU ld supports shared libraries.
12789 case $host_os in
12790 aix3* | aix4* | aix5*)
12791 # On AIX/PPC, the GNU linker is very broken
12792 if test "$host_cpu" != ia64; then
12793 ld_shlibs_F77=no
12794 cat <<EOF 1>&2
12795
12796*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12797*** to be unable to reliably create shared libraries on AIX.
12798*** Therefore, libtool is disabling shared libraries support. If you
12799*** really care for shared libraries, you may want to modify your PATH
12800*** so that a non-GNU linker is found, and then restart.
12801
12802EOF
12803 fi
12804 ;;
12805
12806 amigaos*)
12807 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)'
12808 hardcode_libdir_flag_spec_F77='-L$libdir'
12809 hardcode_minus_L_F77=yes
12810
12811 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12812 # that the semantics of dynamic libraries on AmigaOS, at least up
12813 # to version 4, is to share data among multiple programs linked
12814 # with the same dynamic library. Since this doesn't match the
12815 # behavior of shared libraries on other platforms, we can't use
12816 # them.
12817 ld_shlibs_F77=no
12818 ;;
12819
12820 beos*)
12821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12822 allow_undefined_flag_F77=unsupported
12823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12824 # support --undefined. This deserves some investigation. FIXME
12825 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 else
12827 ld_shlibs_F77=no
12828 fi
12829 ;;
12830
12831 cygwin* | mingw* | pw32*)
12832 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12833 # as there is no search path for DLLs.
12834 hardcode_libdir_flag_spec_F77='-L$libdir'
12835 allow_undefined_flag_F77=unsupported
12836 always_export_symbols_F77=no
12837 enable_shared_with_static_runtimes_F77=yes
12838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12839
12840 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12841 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12842 # If the export-symbols file already is a .def file (1st line
12843 # is EXPORTS), use it as is; otherwise, prepend...
12844 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12845 cp $export_symbols $output_objdir/$soname.def;
12846 else
12847 echo EXPORTS > $output_objdir/$soname.def;
12848 cat $export_symbols >> $output_objdir/$soname.def;
12849 fi~
12850 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12851 else
12852 ld_shlibs=no
12853 fi
12854 ;;
12855
12856 netbsd* | knetbsd*-gnu)
12857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12858 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12859 wlarc=
12860 else
12861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12863 fi
12864 ;;
12865
12866 solaris* | sysv5*)
12867 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12868 ld_shlibs_F77=no
12869 cat <<EOF 1>&2
12870
12871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12872*** create shared libraries on Solaris systems. Therefore, libtool
12873*** is disabling shared libraries support. We urge you to upgrade GNU
12874*** binutils to release 2.9.1 or newer. Another option is to modify
12875*** your PATH or compiler configuration so that the native linker is
12876*** used, and then restart.
12877
12878EOF
12879 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12882 else
12883 ld_shlibs_F77=no
12884 fi
12885 ;;
12886
12887 sunos4*)
12888 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12889 wlarc=
12890 hardcode_direct_F77=yes
12891 hardcode_shlibpath_var_F77=no
12892 ;;
12893
12894 linux*)
12895 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12896 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12897 archive_cmds_F77="$tmp_archive_cmds"
12898 supports_anon_versioning=no
12899 case `$LD -v 2>/dev/null` in
12900 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12903 *\ 2.11.*) ;; # other 2.11 versions
12904 *) supports_anon_versioning=yes ;;
12905 esac
12906 if test $supports_anon_versioning = yes; then
12907 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12908cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12909$echo "local: *; };" >> $output_objdir/$libname.ver~
12910 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12911 else
12912 archive_expsym_cmds_F77="$tmp_archive_cmds"
12913 fi
12914 else
12915 ld_shlibs_F77=no
12916 fi
12917 ;;
12918
12919 *)
12920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12923 else
12924 ld_shlibs_F77=no
12925 fi
12926 ;;
12927 esac
12928
12929 if test "$ld_shlibs_F77" = yes; then
12930 runpath_var=LD_RUN_PATH
12931 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12932 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12933 # ancient GNU ld didn't support --whole-archive et. al.
12934 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12935 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12936 else
12937 whole_archive_flag_spec_F77=
12938 fi
12939 fi
12940 else
12941 # PORTME fill in a description of your system's linker (not GNU ld)
12942 case $host_os in
12943 aix3*)
12944 allow_undefined_flag_F77=unsupported
12945 always_export_symbols_F77=yes
12946 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'
12947 # Note: this linker hardcodes the directories in LIBPATH if there
12948 # are no directories specified by -L.
12949 hardcode_minus_L_F77=yes
12950 if test "$GCC" = yes && test -z "$link_static_flag"; then
12951 # Neither direct hardcoding nor static linking is supported with a
12952 # broken collect2.
12953 hardcode_direct_F77=unsupported
12954 fi
12955 ;;
12956
12957 aix4* | aix5*)
12958 if test "$host_cpu" = ia64; then
12959 # On IA64, the linker does run time linking by default, so we don't
12960 # have to do anything special.
12961 aix_use_runtimelinking=no
12962 exp_sym_flag='-Bexport'
12963 no_entry_flag=""
12964 else
12965 # If we're using GNU nm, then we don't want the "-C" option.
12966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12967 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12968 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'
12969 else
12970 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'
12971 fi
12972 aix_use_runtimelinking=no
12973
12974 # Test if we are trying to use run time linking or normal
12975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12976 # need to do runtime linking.
12977 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12978 for ld_flag in $LDFLAGS; do
12979 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12980 aix_use_runtimelinking=yes
12981 break
12982 fi
12983 done
12984 esac
12985
12986 exp_sym_flag='-bexport'
12987 no_entry_flag='-bnoentry'
12988 fi
12989
12990 # When large executables or shared objects are built, AIX ld can
12991 # have problems creating the table of contents. If linking a library
12992 # or program results in "error TOC overflow" add -mminimal-toc to
12993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12995
12996 archive_cmds_F77=''
12997 hardcode_direct_F77=yes
12998 hardcode_libdir_separator_F77=':'
12999 link_all_deplibs_F77=yes
13000
13001 if test "$GCC" = yes; then
13002 case $host_os in aix4.012|aix4.012.*)
13003 # We only want to do this on AIX 4.2 and lower, the check
13004 # below for broken collect2 doesn't work under 4.3+
13005 collect2name=`${CC} -print-prog-name=collect2`
13006 if test -f "$collect2name" && \
13007 strings "$collect2name" | grep resolve_lib_name >/dev/null
13008 then
13009 # We have reworked collect2
13010 hardcode_direct_F77=yes
13011 else
13012 # We have old collect2
13013 hardcode_direct_F77=unsupported
13014 # It fails to find uninstalled libraries when the uninstalled
13015 # path is not listed in the libpath. Setting hardcode_minus_L
13016 # to unsupported forces relinking
13017 hardcode_minus_L_F77=yes
13018 hardcode_libdir_flag_spec_F77='-L$libdir'
13019 hardcode_libdir_separator_F77=
13020 fi
13021 esac
13022 shared_flag='-shared'
13023 else
13024 # not using gcc
13025 if test "$host_cpu" = ia64; then
13026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13027 # chokes on -Wl,-G. The following line is correct:
13028 shared_flag='-G'
13029 else
13030 if test "$aix_use_runtimelinking" = yes; then
13031 shared_flag='${wl}-G'
13032 else
13033 shared_flag='${wl}-bM:SRE'
13034 fi
13035 fi
13036 fi
13037
13038 # It seems that -bexpall does not export symbols beginning with
13039 # underscore (_), so it is better to generate a list of symbols to export.
13040 always_export_symbols_F77=yes
13041 if test "$aix_use_runtimelinking" = yes; then
13042 # Warning - without using the other runtime loading flags (-brtl),
13043 # -berok will link without error, but may produce a broken library.
13044 allow_undefined_flag_F77='-berok'
13045 # Determine the default libpath from the value encoded in an empty executable.
13046 cat >conftest.$ac_ext <<_ACEOF
13047 program main
13048
13049 end
13050_ACEOF
13051rm -f conftest.$ac_objext conftest$ac_exeext
13052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072
13073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13074}'`
13075# Check for a 64-bit object if we didn't find anything.
13076if 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; }
13077}'`; fi
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082fi
13083rm -f conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13086
13087 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13088 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"
13089 else
13090 if test "$host_cpu" = ia64; then
13091 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13092 allow_undefined_flag_F77="-z nodefs"
13093 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"
13094 else
13095 # Determine the default libpath from the value encoded in an empty executable.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 program main
13098
13099 end
13100_ACEOF
13101rm -f conftest.$ac_objext conftest$ac_exeext
13102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122
13123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13124}'`
13125# Check for a 64-bit object if we didn't find anything.
13126if 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; }
13127}'`; fi
13128else
13129 echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132fi
13133rm -f conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13136
13137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13138 # Warning - without using the other run time loading flags,
13139 # -berok will link without error, but may produce a broken library.
13140 no_undefined_flag_F77=' ${wl}-bernotok'
13141 allow_undefined_flag_F77=' ${wl}-berok'
13142 # -bexpall does not export symbols beginning with underscore (_)
13143 always_export_symbols_F77=yes
13144 # Exported symbols can be pulled into shared objects from archives
13145 whole_archive_flag_spec_F77=' '
13146 archive_cmds_need_lc_F77=yes
13147 # This is similar to how AIX traditionally builds it's shared libraries.
13148 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'
13149 fi
13150 fi
13151 ;;
13152
13153 amigaos*)
13154 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)'
13155 hardcode_libdir_flag_spec_F77='-L$libdir'
13156 hardcode_minus_L_F77=yes
13157 # see comment about different semantics on the GNU ld section
13158 ld_shlibs_F77=no
13159 ;;
13160
13161 bsdi4*)
13162 export_dynamic_flag_spec_F77=-rdynamic
13163 ;;
13164
13165 cygwin* | mingw* | pw32*)
13166 # When not using gcc, we currently assume that we are using
13167 # Microsoft Visual C++.
13168 # hardcode_libdir_flag_spec is actually meaningless, as there is
13169 # no search path for DLLs.
13170 hardcode_libdir_flag_spec_F77=' '
13171 allow_undefined_flag_F77=unsupported
13172 # Tell ltmain to make .lib files, not .a files.
13173 libext=lib
13174 # Tell ltmain to make .dll files, not .so files.
13175 shrext=".dll"
13176 # FIXME: Setting linknames here is a bad hack.
13177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13178 # The linker will automatically build a .lib file if we build a DLL.
13179 old_archive_From_new_cmds_F77='true'
13180 # FIXME: Should let the user specify the lib program.
13181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13182 fix_srcfile_path='`cygpath -w "$srcfile"`'
13183 enable_shared_with_static_runtimes_F77=yes
13184 ;;
13185
13186 darwin* | rhapsody*)
13187 if test "$GXX" = yes ; then
13188 archive_cmds_need_lc_F77=no
13189 case "$host_os" in
13190 rhapsody* | darwin1.[012])
13191 allow_undefined_flag_F77='-undefined suppress'
13192 ;;
13193 *) # Darwin 1.3 on
13194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13195 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13196 else
13197 case ${MACOSX_DEPLOYMENT_TARGET} in
13198 10.[012])
13199 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13200 ;;
13201 10.*)
13202 allow_undefined_flag_F77='-undefined dynamic_lookup'
13203 ;;
13204 esac
13205 fi
13206 ;;
13207 esac
13208 lt_int_apple_cc_single_mod=no
13209 output_verbose_link_cmd='echo'
13210 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13211 lt_int_apple_cc_single_mod=yes
13212 fi
13213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13214 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13215 else
13216 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'
13217 fi
13218 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13221 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}'
13222 else
13223 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}'
13224 fi
13225 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13226 hardcode_direct_F77=no
13227 hardcode_automatic_F77=yes
13228 hardcode_shlibpath_var_F77=unsupported
13229 whole_archive_flag_spec_F77='-all_load $convenience'
13230 link_all_deplibs_F77=yes
13231 else
13232 ld_shlibs_F77=no
13233 fi
13234 ;;
13235
13236 dgux*)
13237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_libdir_flag_spec_F77='-L$libdir'
13239 hardcode_shlibpath_var_F77=no
13240 ;;
13241
13242 freebsd1*)
13243 ld_shlibs_F77=no
13244 ;;
13245
13246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13247 # support. Future versions do this automatically, but an explicit c++rt0.o
13248 # does not break anything, and helps significantly (at the cost of a little
13249 # extra space).
13250 freebsd2.2*)
13251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13252 hardcode_libdir_flag_spec_F77='-R$libdir'
13253 hardcode_direct_F77=yes
13254 hardcode_shlibpath_var_F77=no
13255 ;;
13256
13257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13258 freebsd2*)
13259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13260 hardcode_direct_F77=yes
13261 hardcode_minus_L_F77=yes
13262 hardcode_shlibpath_var_F77=no
13263 ;;
13264
13265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13266 freebsd* | kfreebsd*-gnu)
13267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13268 hardcode_libdir_flag_spec_F77='-R$libdir'
13269 hardcode_direct_F77=yes
13270 hardcode_shlibpath_var_F77=no
13271 ;;
13272
13273 hpux9*)
13274 if test "$GCC" = yes; then
13275 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'
13276 else
13277 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'
13278 fi
13279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13280 hardcode_libdir_separator_F77=:
13281 hardcode_direct_F77=yes
13282
13283 # hardcode_minus_L: Not really in the search PATH,
13284 # but as the default location of the library.
13285 hardcode_minus_L_F77=yes
13286 export_dynamic_flag_spec_F77='${wl}-E'
13287 ;;
13288
13289 hpux10* | hpux11*)
13290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13291 case "$host_cpu" in
13292 hppa*64*|ia64*)
13293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 ;;
13295 *)
13296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 esac
13299 else
13300 case "$host_cpu" in
13301 hppa*64*|ia64*)
13302 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13303 ;;
13304 *)
13305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13306 ;;
13307 esac
13308 fi
13309 if test "$with_gnu_ld" = no; then
13310 case "$host_cpu" in
13311 hppa*64*)
13312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13314 hardcode_libdir_separator_F77=:
13315 hardcode_direct_F77=no
13316 hardcode_shlibpath_var_F77=no
13317 ;;
13318 ia64*)
13319 hardcode_libdir_flag_spec_F77='-L$libdir'
13320 hardcode_direct_F77=no
13321 hardcode_shlibpath_var_F77=no
13322
13323 # hardcode_minus_L: Not really in the search PATH,
13324 # but as the default location of the library.
13325 hardcode_minus_L_F77=yes
13326 ;;
13327 *)
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
13331 export_dynamic_flag_spec_F77='${wl}-E'
13332
13333 # hardcode_minus_L: Not really in the search PATH,
13334 # but as the default location of the library.
13335 hardcode_minus_L_F77=yes
13336 ;;
13337 esac
13338 fi
13339 ;;
13340
13341 irix5* | irix6* | nonstopux*)
13342 if test "$GCC" = yes; then
13343 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'
13344 else
13345 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'
13346 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13347 fi
13348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_F77=:
13350 link_all_deplibs_F77=yes
13351 ;;
13352
13353 netbsd* | knetbsd*-gnu)
13354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13355 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13356 else
13357 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13358 fi
13359 hardcode_libdir_flag_spec_F77='-R$libdir'
13360 hardcode_direct_F77=yes
13361 hardcode_shlibpath_var_F77=no
13362 ;;
13363
13364 newsos6)
13365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_direct_F77=yes
13367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13368 hardcode_libdir_separator_F77=:
13369 hardcode_shlibpath_var_F77=no
13370 ;;
13371
13372 openbsd*)
13373 hardcode_direct_F77=yes
13374 hardcode_shlibpath_var_F77=no
13375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13376 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_F77='${wl}-E'
13379 else
13380 case $host_os in
13381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_libdir_flag_spec_F77='-R$libdir'
13384 ;;
13385 *)
13386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13388 ;;
13389 esac
13390 fi
13391 ;;
13392
13393 os2*)
13394 hardcode_libdir_flag_spec_F77='-L$libdir'
13395 hardcode_minus_L_F77=yes
13396 allow_undefined_flag_F77=unsupported
13397 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'
13398 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13399 ;;
13400
13401 osf3*)
13402 if test "$GCC" = yes; then
13403 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13404 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'
13405 else
13406 allow_undefined_flag_F77=' -expect_unresolved \*'
13407 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'
13408 fi
13409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_F77=:
13411 ;;
13412
13413 osf4* | osf5*) # as osf3* with the addition of -msym flag
13414 if test "$GCC" = yes; then
13415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13416 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'
13417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13418 else
13419 allow_undefined_flag_F77=' -expect_unresolved \*'
13420 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'
13421 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~
13422 $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'
13423
13424 # Both c and cxx compiler support -rpath directly
13425 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13426 fi
13427 hardcode_libdir_separator_F77=:
13428 ;;
13429
13430 sco3.2v5*)
13431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_shlibpath_var_F77=no
13433 export_dynamic_flag_spec_F77='${wl}-Bexport'
13434 runpath_var=LD_RUN_PATH
13435 hardcode_runpath_var=yes
13436 ;;
13437
13438 solaris*)
13439 no_undefined_flag_F77=' -z text'
13440 if test "$GCC" = yes; then
13441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13444 else
13445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13448 fi
13449 hardcode_libdir_flag_spec_F77='-R$libdir'
13450 hardcode_shlibpath_var_F77=no
13451 case $host_os in
13452 solaris2.[0-5] | solaris2.[0-5].*) ;;
13453 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13455 esac
13456 link_all_deplibs_F77=yes
13457 ;;
13458
13459 sunos4*)
13460 if test "x$host_vendor" = xsequent; then
13461 # Use $CC to link under sequent, because it throws in some extra .o
13462 # files that make .init and .fini sections work.
13463 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464 else
13465 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13466 fi
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 hardcode_direct_F77=yes
13469 hardcode_minus_L_F77=yes
13470 hardcode_shlibpath_var_F77=no
13471 ;;
13472
13473 sysv4)
13474 case $host_vendor in
13475 sni)
13476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477 hardcode_direct_F77=yes # is this really true???
13478 ;;
13479 siemens)
13480 ## LD is ld it makes a PLAMLIB
13481 ## CC just makes a GrossModule.
13482 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13483 reload_cmds_F77='$CC -r -o $output$reload_objs'
13484 hardcode_direct_F77=no
13485 ;;
13486 motorola)
13487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13489 ;;
13490 esac
13491 runpath_var='LD_RUN_PATH'
13492 hardcode_shlibpath_var_F77=no
13493 ;;
13494
13495 sysv4.3*)
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_shlibpath_var_F77=no
13498 export_dynamic_flag_spec_F77='-Bexport'
13499 ;;
13500
13501 sysv4*MP*)
13502 if test -d /usr/nec; then
13503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_shlibpath_var_F77=no
13505 runpath_var=LD_RUN_PATH
13506 hardcode_runpath_var=yes
13507 ld_shlibs_F77=yes
13508 fi
13509 ;;
13510
13511 sysv4.2uw2*)
13512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13513 hardcode_direct_F77=yes
13514 hardcode_minus_L_F77=no
13515 hardcode_shlibpath_var_F77=no
13516 hardcode_runpath_var=yes
13517 runpath_var=LD_RUN_PATH
13518 ;;
13519
13520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13521 no_undefined_flag_F77='${wl}-z ${wl}text'
13522 if test "$GCC" = yes; then
13523 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 else
13525 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 fi
13527 runpath_var='LD_RUN_PATH'
13528 hardcode_shlibpath_var_F77=no
13529 ;;
13530
13531 sysv5*)
13532 no_undefined_flag_F77=' -z text'
13533 # $CC -shared without GNU ld will not create a library from C++
13534 # object files and a static libstdc++, better avoid it by now
13535 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13538 hardcode_libdir_flag_spec_F77=
13539 hardcode_shlibpath_var_F77=no
13540 runpath_var='LD_RUN_PATH'
13541 ;;
13542
13543 uts4*)
13544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_shlibpath_var_F77=no
13547 ;;
13548
13549 *)
13550 ld_shlibs_F77=no
13551 ;;
13552 esac
13553 fi
13554
13555echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13556echo "${ECHO_T}$ld_shlibs_F77" >&6
13557test "$ld_shlibs_F77" = no && can_build_shared=no
13558
13559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13560if test "$GCC" = yes; then
13561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13562fi
13563
13564#
13565# Do we need to explicitly link libc?
13566#
13567case "x$archive_cmds_need_lc_F77" in
13568x|xyes)
13569 # Assume -lc should be added
13570 archive_cmds_need_lc_F77=yes
13571
13572 if test "$enable_shared" = yes && test "$GCC" = yes; then
13573 case $archive_cmds_F77 in
13574 *'~'*)
13575 # FIXME: we may have to deal with multi-command sequences.
13576 ;;
13577 '$CC '*)
13578 # Test whether the compiler implicitly links with -lc since on some
13579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13580 # to ld, don't add -lc before -lgcc.
13581 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13583 $rm conftest*
13584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585
13586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } 2>conftest.err; then
13591 soname=conftest
13592 lib=conftest
13593 libobjs=conftest.$ac_objext
13594 deplibs=
13595 wl=$lt_prog_compiler_wl_F77
13596 compiler_flags=-v
13597 linker_flags=-v
13598 verstring=
13599 output_objdir=.
13600 libname=conftest
13601 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13602 allow_undefined_flag_F77=
13603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13604 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }
13608 then
13609 archive_cmds_need_lc_F77=no
13610 else
13611 archive_cmds_need_lc_F77=yes
13612 fi
13613 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13614 else
13615 cat conftest.err 1>&5
13616 fi
13617 $rm conftest*
13618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13619echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13620 ;;
13621 esac
13622 fi
13623 ;;
13624esac
13625
13626echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13628library_names_spec=
13629libname_spec='lib$name'
13630soname_spec=
13631shrext=".so"
13632postinstall_cmds=
13633postuninstall_cmds=
13634finish_cmds=
13635finish_eval=
13636shlibpath_var=
13637shlibpath_overrides_runpath=unknown
13638version_type=none
13639dynamic_linker="$host_os ld.so"
13640sys_lib_dlsearch_path_spec="/lib /usr/lib"
13641if test "$GCC" = yes; then
13642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13643 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13644 # if the path contains ";" then we assume it to be the separator
13645 # otherwise default to the standard path separator (i.e. ":") - it is
13646 # assumed that no part of a normal pathname contains ";" but that should
13647 # okay in the real world where ";" in dirpaths is itself problematic.
13648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13649 else
13650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13651 fi
13652else
13653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13654fi
13655need_lib_prefix=unknown
13656hardcode_into_libs=no
13657
13658# when you set need_version to no, make sure it does not cause -set_version
13659# flags to be left without arguments
13660need_version=unknown
13661
13662case $host_os in
13663aix3*)
13664 version_type=linux
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13666 shlibpath_var=LIBPATH
13667
13668 # AIX 3 has no versioning support, so we append a major version to the name.
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 ;;
13671
13672aix4* | aix5*)
13673 version_type=linux
13674 need_lib_prefix=no
13675 need_version=no
13676 hardcode_into_libs=yes
13677 if test "$host_cpu" = ia64; then
13678 # AIX 5 supports IA64
13679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13680 shlibpath_var=LD_LIBRARY_PATH
13681 else
13682 # With GCC up to 2.95.x, collect2 would create an import file
13683 # for dependence libraries. The import file would start with
13684 # the line `#! .'. This would cause the generated library to
13685 # depend on `.', always an invalid library. This was fixed in
13686 # development snapshots of GCC prior to 3.0.
13687 case $host_os in
13688 aix4 | aix4.[01] | aix4.[01].*)
13689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13690 echo ' yes '
13691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13692 :
13693 else
13694 can_build_shared=no
13695 fi
13696 ;;
13697 esac
13698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13699 # soname into executable. Probably we can add versioning support to
13700 # collect2, so additional links can be useful in future.
13701 if test "$aix_use_runtimelinking" = yes; then
13702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13703 # instead of lib<name>.a to let people know that these are not
13704 # typical AIX shared libraries.
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 else
13707 # We preserve .a as extension for shared libraries through AIX4.2
13708 # and later when we are not doing run time linking.
13709 library_names_spec='${libname}${release}.a $libname.a'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 fi
13712 shlibpath_var=LIBPATH
13713 fi
13714 ;;
13715
13716amigaos*)
13717 library_names_spec='$libname.ixlibrary $libname.a'
13718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13719 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'
13720 ;;
13721
13722beos*)
13723 library_names_spec='${libname}${shared_ext}'
13724 dynamic_linker="$host_os ld.so"
13725 shlibpath_var=LIBRARY_PATH
13726 ;;
13727
13728bsdi4*)
13729 version_type=linux
13730 need_version=no
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13737 # the default ld.so.conf also contains /usr/contrib/lib and
13738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13739 # libtool to hard-code these into programs
13740 ;;
13741
13742cygwin* | mingw* | pw32*)
13743 version_type=windows
13744 shrext=".dll"
13745 need_version=no
13746 need_lib_prefix=no
13747
13748 case $GCC,$host_os in
13749 yes,cygwin* | yes,mingw* | yes,pw32*)
13750 library_names_spec='$libname.dll.a'
13751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13752 postinstall_cmds='base_file=`basename \${file}`~
13753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13754 dldir=$destdir/`dirname \$dlpath`~
13755 test -d \$dldir || mkdir -p \$dldir~
13756 $install_prog $dir/$dlname \$dldir/$dlname'
13757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13758 dlpath=$dir/\$dldll~
13759 $rm \$dlpath'
13760 shlibpath_overrides_runpath=yes
13761
13762 case $host_os in
13763 cygwin*)
13764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13766 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13767 ;;
13768 mingw*)
13769 # MinGW DLLs use traditional 'lib' prefix
13770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13772 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13773 # It is most probably a Windows format PATH printed by
13774 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13775 # path with ; separators, and with drive letters. We can handle the
13776 # drive letters (cygwin fileutils understands them), so leave them,
13777 # especially as we might pass files found there to a mingw objdump,
13778 # which wouldn't understand a cygwinified path. Ahh.
13779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13780 else
13781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13782 fi
13783 ;;
13784 pw32*)
13785 # pw32 DLLs use 'pw' prefix rather than 'lib'
13786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13787 ;;
13788 esac
13789 ;;
13790
13791 *)
13792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13793 ;;
13794 esac
13795 dynamic_linker='Win32 ld.exe'
13796 # FIXME: first we should search . and the directory the executable is in
13797 shlibpath_var=PATH
13798 ;;
13799
13800darwin* | rhapsody*)
13801 dynamic_linker="$host_os dyld"
13802 version_type=darwin
13803 need_lib_prefix=no
13804 need_version=no
13805 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13806 soname_spec='${libname}${release}${major}$shared_ext'
13807 shlibpath_overrides_runpath=yes
13808 shlibpath_var=DYLD_LIBRARY_PATH
13809 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13810 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13811 if test "$GCC" = yes; then
13812 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"`
13813 else
13814 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13815 fi
13816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13817 ;;
13818
13819dgux*)
13820 version_type=linux
13821 need_lib_prefix=no
13822 need_version=no
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 shlibpath_var=LD_LIBRARY_PATH
13826 ;;
13827
13828freebsd1*)
13829 dynamic_linker=no
13830 ;;
13831
13832kfreebsd*-gnu)
13833 version_type=linux
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=no
13840 hardcode_into_libs=yes
13841 dynamic_linker='GNU ld.so'
13842 ;;
13843
13844freebsd*)
13845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13846 version_type=freebsd-$objformat
13847 case $version_type in
13848 freebsd-elf*)
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13850 need_version=no
13851 need_lib_prefix=no
13852 ;;
13853 freebsd-*)
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13855 need_version=yes
13856 ;;
13857 esac
13858 shlibpath_var=LD_LIBRARY_PATH
13859 case $host_os in
13860 freebsd2*)
13861 shlibpath_overrides_runpath=yes
13862 ;;
13863 freebsd3.01* | freebsdelf3.01*)
13864 shlibpath_overrides_runpath=yes
13865 hardcode_into_libs=yes
13866 ;;
13867 *) # from 3.2 on
13868 shlibpath_overrides_runpath=no
13869 hardcode_into_libs=yes
13870 ;;
13871 esac
13872 ;;
13873
13874gnu*)
13875 version_type=linux
13876 need_lib_prefix=no
13877 need_version=no
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 hardcode_into_libs=yes
13882 ;;
13883
13884hpux9* | hpux10* | hpux11*)
13885 # Give a soname corresponding to the major version so that dld.sl refuses to
13886 # link against other versions.
13887 version_type=sunos
13888 need_lib_prefix=no
13889 need_version=no
13890 case "$host_cpu" in
13891 ia64*)
13892 shrext='.so'
13893 hardcode_into_libs=yes
13894 dynamic_linker="$host_os dld.so"
13895 shlibpath_var=LD_LIBRARY_PATH
13896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 if test "X$HPUX_IA64_MODE" = X32; then
13900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13901 else
13902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13903 fi
13904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13905 ;;
13906 hppa*64*)
13907 shrext='.sl'
13908 hardcode_into_libs=yes
13909 dynamic_linker="$host_os dld.sl"
13910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13916 ;;
13917 *)
13918 shrext='.sl'
13919 dynamic_linker="$host_os dld.sl"
13920 shlibpath_var=SHLIB_PATH
13921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 ;;
13925 esac
13926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13927 postinstall_cmds='chmod 555 $lib'
13928 ;;
13929
13930irix5* | irix6* | nonstopux*)
13931 case $host_os in
13932 nonstopux*) version_type=nonstopux ;;
13933 *)
13934 if test "$lt_cv_prog_gnu_ld" = yes; then
13935 version_type=linux
13936 else
13937 version_type=irix
13938 fi ;;
13939 esac
13940 need_lib_prefix=no
13941 need_version=no
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13944 case $host_os in
13945 irix5* | nonstopux*)
13946 libsuff= shlibsuff=
13947 ;;
13948 *)
13949 case $LD in # libtool.m4 will add one of these switches to LD
13950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13951 libsuff= shlibsuff= libmagic=32-bit;;
13952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13953 libsuff=32 shlibsuff=N32 libmagic=N32;;
13954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13956 *) libsuff= shlibsuff= libmagic=never-match;;
13957 esac
13958 ;;
13959 esac
13960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13961 shlibpath_overrides_runpath=no
13962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13964 hardcode_into_libs=yes
13965 ;;
13966
13967# No shared lib support for Linux oldld, aout, or coff.
13968linux*oldld* | linux*aout* | linux*coff*)
13969 dynamic_linker=no
13970 ;;
13971
13972# This must be Linux ELF.
13973linux*)
13974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13980 shlibpath_var=LD_LIBRARY_PATH
13981 shlibpath_overrides_runpath=no
13982 # This implies no fast_install, which is unacceptable.
13983 # Some rework will be needed to allow for fast_install
13984 # before this can be enabled.
13985 hardcode_into_libs=yes
13986
13987 # Append ld.so.conf contents to the search path
13988 if test -f /etc/ld.so.conf; then
13989 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
13990 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
13991 fi
13992
13993 # We used to test for /lib/ld.so.1 and disable shared libraries on
13994 # powerpc, because MkLinux only supported shared libraries with the
13995 # GNU dynamic linker. Since this was broken with cross compilers,
13996 # most powerpc-linux boxes support dynamic linking these days and
13997 # people can always --disable-shared, the test was removed, and we
13998 # assume the GNU/Linux dynamic linker is in use.
13999 dynamic_linker='GNU/Linux ld.so'
14000 ;;
14001
14002knetbsd*-gnu)
14003 version_type=linux
14004 need_lib_prefix=no
14005 need_version=no
14006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14007 soname_spec='${libname}${release}${shared_ext}$major'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 shlibpath_overrides_runpath=no
14010 hardcode_into_libs=yes
14011 dynamic_linker='GNU ld.so'
14012 ;;
14013
14014netbsd*)
14015 version_type=sunos
14016 need_lib_prefix=no
14017 need_version=no
14018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14021 dynamic_linker='NetBSD (a.out) ld.so'
14022 else
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 dynamic_linker='NetBSD ld.elf_so'
14026 fi
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes
14029 hardcode_into_libs=yes
14030 ;;
14031
14032newsos6)
14033 version_type=linux
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes
14037 ;;
14038
14039nto-qnx*)
14040 version_type=linux
14041 need_lib_prefix=no
14042 need_version=no
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=yes
14047 ;;
14048
14049openbsd*)
14050 version_type=sunos
14051 need_lib_prefix=no
14052 need_version=yes
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14057 case $host_os in
14058 openbsd2.[89] | openbsd2.[89].*)
14059 shlibpath_overrides_runpath=no
14060 ;;
14061 *)
14062 shlibpath_overrides_runpath=yes
14063 ;;
14064 esac
14065 else
14066 shlibpath_overrides_runpath=yes
14067 fi
14068 ;;
14069
14070os2*)
14071 libname_spec='$name'
14072 shrext=".dll"
14073 need_lib_prefix=no
14074 library_names_spec='$libname${shared_ext} $libname.a'
14075 dynamic_linker='OS/2 ld.exe'
14076 shlibpath_var=LIBPATH
14077 ;;
14078
14079osf3* | osf4* | osf5*)
14080 version_type=osf
14081 need_lib_prefix=no
14082 need_version=no
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14088 ;;
14089
14090sco3.2v5*)
14091 version_type=osf
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 shlibpath_var=LD_LIBRARY_PATH
14095 ;;
14096
14097solaris*)
14098 version_type=linux
14099 need_lib_prefix=no
14100 need_version=no
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 soname_spec='${libname}${release}${shared_ext}$major'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 hardcode_into_libs=yes
14106 # ldd complains unless libraries are executable
14107 postinstall_cmds='chmod +x $lib'
14108 ;;
14109
14110sunos4*)
14111 version_type=sunos
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 shlibpath_overrides_runpath=yes
14116 if test "$with_gnu_ld" = yes; then
14117 need_lib_prefix=no
14118 fi
14119 need_version=yes
14120 ;;
14121
14122sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14123 version_type=linux
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 case $host_vendor in
14128 sni)
14129 shlibpath_overrides_runpath=no
14130 need_lib_prefix=no
14131 export_dynamic_flag_spec='${wl}-Blargedynsym'
14132 runpath_var=LD_RUN_PATH
14133 ;;
14134 siemens)
14135 need_lib_prefix=no
14136 ;;
14137 motorola)
14138 need_lib_prefix=no
14139 need_version=no
14140 shlibpath_overrides_runpath=no
14141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14142 ;;
14143 esac
14144 ;;
14145
14146sysv4*MP*)
14147 if test -d /usr/nec ;then
14148 version_type=linux
14149 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14150 soname_spec='$libname${shared_ext}.$major'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 fi
14153 ;;
14154
14155uts4*)
14156 version_type=linux
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 ;;
14161
14162*)
14163 dynamic_linker=no
14164 ;;
14165esac
14166echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14167echo "${ECHO_T}$dynamic_linker" >&6
14168test "$dynamic_linker" = no && can_build_shared=no
14169
14170echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14171echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14172hardcode_action_F77=
14173if test -n "$hardcode_libdir_flag_spec_F77" || \
14174 test -n "$runpath_var F77" || \
14175 test "X$hardcode_automatic_F77"="Xyes" ; then
14176
14177 # We can hardcode non-existant directories.
14178 if test "$hardcode_direct_F77" != no &&
14179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14180 # have to relink, otherwise we might link with an installed library
14181 # when we should be linking with a yet-to-be-installed one
14182 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14183 test "$hardcode_minus_L_F77" != no; then
14184 # Linking always hardcodes the temporary library directory.
14185 hardcode_action_F77=relink
14186 else
14187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14188 hardcode_action_F77=immediate
14189 fi
14190else
14191 # We cannot hardcode anything, or else we can only hardcode existing
14192 # directories.
14193 hardcode_action_F77=unsupported
14194fi
14195echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14196echo "${ECHO_T}$hardcode_action_F77" >&6
14197
14198if test "$hardcode_action_F77" = relink; then
14199 # Fast installation is not supported
14200 enable_fast_install=no
14201elif test "$shlibpath_overrides_runpath" = yes ||
14202 test "$enable_shared" = no; then
14203 # Fast installation is not necessary
14204 enable_fast_install=needless
14205fi
14206
14207striplib=
14208old_striplib=
14209echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14210echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14211if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14214 echo "$as_me:$LINENO: result: yes" >&5
14215echo "${ECHO_T}yes" >&6
14216else
14217# FIXME - insert some real tests, host_os isn't really good enough
14218 case $host_os in
14219 darwin*)
14220 if test -n "$STRIP" ; then
14221 striplib="$STRIP -x"
14222 echo "$as_me:$LINENO: result: yes" >&5
14223echo "${ECHO_T}yes" >&6
14224 else
14225 echo "$as_me:$LINENO: result: no" >&5
14226echo "${ECHO_T}no" >&6
14227fi
14228 ;;
14229 *)
14230 echo "$as_me:$LINENO: result: no" >&5
14231echo "${ECHO_T}no" >&6
14232 ;;
14233 esac
14234fi
14235
14236
14237
14238# The else clause should only fire when bootstrapping the
14239# libtool distribution, otherwise you forgot to ship ltmain.sh
14240# with your package, and you will get complaints that there are
14241# no rules to generate ltmain.sh.
14242if test -f "$ltmain"; then
14243 # See if we are running on zsh, and set the options which allow our commands through
14244 # without removal of \ escapes.
14245 if test -n "${ZSH_VERSION+set}" ; then
14246 setopt NO_GLOB_SUBST
14247 fi
14248 # Now quote all the things that may contain metacharacters while being
14249 # careful not to overquote the AC_SUBSTed values. We take copies of the
14250 # variables and quote the copies for generation of the libtool script.
14251 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14252 SED SHELL STRIP \
14253 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14254 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14255 deplibs_check_method reload_flag reload_cmds need_locks \
14256 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14257 lt_cv_sys_global_symbol_to_c_name_address \
14258 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14259 old_postinstall_cmds old_postuninstall_cmds \
14260 compiler_F77 \
14261 CC_F77 \
14262 LD_F77 \
14263 lt_prog_compiler_wl_F77 \
14264 lt_prog_compiler_pic_F77 \
14265 lt_prog_compiler_static_F77 \
14266 lt_prog_compiler_no_builtin_flag_F77 \
14267 export_dynamic_flag_spec_F77 \
14268 thread_safe_flag_spec_F77 \
14269 whole_archive_flag_spec_F77 \
14270 enable_shared_with_static_runtimes_F77 \
14271 old_archive_cmds_F77 \
14272 old_archive_from_new_cmds_F77 \
14273 predep_objects_F77 \
14274 postdep_objects_F77 \
14275 predeps_F77 \
14276 postdeps_F77 \
14277 compiler_lib_search_path_F77 \
14278 archive_cmds_F77 \
14279 archive_expsym_cmds_F77 \
14280 postinstall_cmds_F77 \
14281 postuninstall_cmds_F77 \
14282 old_archive_from_expsyms_cmds_F77 \
14283 allow_undefined_flag_F77 \
14284 no_undefined_flag_F77 \
14285 export_symbols_cmds_F77 \
14286 hardcode_libdir_flag_spec_F77 \
14287 hardcode_libdir_flag_spec_ld_F77 \
14288 hardcode_libdir_separator_F77 \
14289 hardcode_automatic_F77 \
14290 module_cmds_F77 \
14291 module_expsym_cmds_F77 \
14292 lt_cv_prog_compiler_c_o_F77 \
14293 exclude_expsyms_F77 \
14294 include_expsyms_F77; do
14295
14296 case $var in
14297 old_archive_cmds_F77 | \
14298 old_archive_from_new_cmds_F77 | \
14299 archive_cmds_F77 | \
14300 archive_expsym_cmds_F77 | \
14301 module_cmds_F77 | \
14302 module_expsym_cmds_F77 | \
14303 old_archive_from_expsyms_cmds_F77 | \
14304 export_symbols_cmds_F77 | \
14305 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14306 postinstall_cmds | postuninstall_cmds | \
14307 old_postinstall_cmds | old_postuninstall_cmds | \
14308 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14309 # Double-quote double-evaled strings.
14310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14311 ;;
14312 *)
14313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14314 ;;
14315 esac
14316 done
14317
14318 case $lt_echo in
14319 *'\$0 --fallback-echo"')
14320 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14321 ;;
14322 esac
14323
14324cfgfile="$ofile"
14325
14326 cat <<__EOF__ >> "$cfgfile"
14327# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14328
14329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14330
14331# Shell to use when invoking shell scripts.
14332SHELL=$lt_SHELL
14333
14334# Whether or not to build shared libraries.
14335build_libtool_libs=$enable_shared
14336
14337# Whether or not to build static libraries.
14338build_old_libs=$enable_static
14339
14340# Whether or not to add -lc for building shared libraries.
14341build_libtool_need_lc=$archive_cmds_need_lc_F77
14342
14343# Whether or not to disallow shared libs when runtime libs are static
14344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14345
14346# Whether or not to optimize for fast installation.
14347fast_install=$enable_fast_install
14348
14349# The host system.
14350host_alias=$host_alias
14351host=$host
14352
14353# An echo program that does not interpret backslashes.
14354echo=$lt_echo
14355
14356# The archiver.
14357AR=$lt_AR
14358AR_FLAGS=$lt_AR_FLAGS
14359
14360# A C compiler.
14361LTCC=$lt_LTCC
14362
14363# A language-specific compiler.
14364CC=$lt_compiler_F77
14365
14366# Is the compiler the GNU C compiler?
14367with_gcc=$GCC_F77
14368
14369# An ERE matcher.
14370EGREP=$lt_EGREP
14371
14372# The linker used to build libraries.
14373LD=$lt_LD_F77
14374
14375# Whether we need hard or soft links.
14376LN_S=$lt_LN_S
14377
14378# A BSD-compatible nm program.
14379NM=$lt_NM
14380
14381# A symbol stripping program
14382STRIP=$lt_STRIP
14383
14384# Used to examine libraries when file_magic_cmd begins "file"
14385MAGIC_CMD=$MAGIC_CMD
14386
14387# Used on cygwin: DLL creation program.
14388DLLTOOL="$DLLTOOL"
14389
14390# Used on cygwin: object dumper.
14391OBJDUMP="$OBJDUMP"
14392
14393# Used on cygwin: assembler.
14394AS="$AS"
14395
14396# The name of the directory that contains temporary libtool files.
14397objdir=$objdir
14398
14399# How to create reloadable object files.
14400reload_flag=$lt_reload_flag
14401reload_cmds=$lt_reload_cmds
14402
14403# How to pass a linker flag through the compiler.
14404wl=$lt_lt_prog_compiler_wl_F77
14405
14406# Object file suffix (normally "o").
14407objext="$ac_objext"
14408
14409# Old archive suffix (normally "a").
14410libext="$libext"
14411
14412# Shared library suffix (normally ".so").
14413shrext='$shrext'
14414
14415# Executable file suffix (normally "").
14416exeext="$exeext"
14417
14418# Additional compiler flags for building library objects.
14419pic_flag=$lt_lt_prog_compiler_pic_F77
14420pic_mode=$pic_mode
14421
14422# What is the maximum length of a command?
14423max_cmd_len=$lt_cv_sys_max_cmd_len
14424
14425# Does compiler simultaneously support -c and -o options?
14426compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14427
14428# Must we lock files when doing compilation ?
14429need_locks=$lt_need_locks
14430
14431# Do we need the lib prefix for modules?
14432need_lib_prefix=$need_lib_prefix
14433
14434# Do we need a version for libraries?
14435need_version=$need_version
14436
14437# Whether dlopen is supported.
14438dlopen_support=$enable_dlopen
14439
14440# Whether dlopen of programs is supported.
14441dlopen_self=$enable_dlopen_self
14442
14443# Whether dlopen of statically linked programs is supported.
14444dlopen_self_static=$enable_dlopen_self_static
14445
14446# Compiler flag to prevent dynamic linking.
14447link_static_flag=$lt_lt_prog_compiler_static_F77
14448
14449# Compiler flag to turn off builtin functions.
14450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14451
14452# Compiler flag to allow reflexive dlopens.
14453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14454
14455# Compiler flag to generate shared objects directly from archives.
14456whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14457
14458# Compiler flag to generate thread-safe objects.
14459thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14460
14461# Library versioning type.
14462version_type=$version_type
14463
14464# Format of library name prefix.
14465libname_spec=$lt_libname_spec
14466
14467# List of archive names. First name is the real one, the rest are links.
14468# The last name is the one that the linker finds with -lNAME.
14469library_names_spec=$lt_library_names_spec
14470
14471# The coded name of the library, if different from the real name.
14472soname_spec=$lt_soname_spec
14473
14474# Commands used to build and install an old-style archive.
14475RANLIB=$lt_RANLIB
14476old_archive_cmds=$lt_old_archive_cmds_F77
14477old_postinstall_cmds=$lt_old_postinstall_cmds
14478old_postuninstall_cmds=$lt_old_postuninstall_cmds
14479
14480# Create an old-style archive from a shared archive.
14481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14482
14483# Create a temporary old-style archive to link instead of a shared archive.
14484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14485
14486# Commands used to build and install a shared archive.
14487archive_cmds=$lt_archive_cmds_F77
14488archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14489postinstall_cmds=$lt_postinstall_cmds
14490postuninstall_cmds=$lt_postuninstall_cmds
14491
14492# Commands used to build a loadable module (assumed same as above if empty)
14493module_cmds=$lt_module_cmds_F77
14494module_expsym_cmds=$lt_module_expsym_cmds_F77
14495
14496# Commands to strip libraries.
14497old_striplib=$lt_old_striplib
14498striplib=$lt_striplib
14499
14500# Dependencies to place before the objects being linked to create a
14501# shared library.
14502predep_objects=$lt_predep_objects_F77
14503
14504# Dependencies to place after the objects being linked to create a
14505# shared library.
14506postdep_objects=$lt_postdep_objects_F77
14507
14508# Dependencies to place before the objects being linked to create a
14509# shared library.
14510predeps=$lt_predeps_F77
14511
14512# Dependencies to place after the objects being linked to create a
14513# shared library.
14514postdeps=$lt_postdeps_F77
14515
14516# The library search path used internally by the compiler when linking
14517# a shared library.
14518compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14519
14520# Method to check whether dependent libraries are shared objects.
14521deplibs_check_method=$lt_deplibs_check_method
14522
14523# Command to use when deplibs_check_method == file_magic.
14524file_magic_cmd=$lt_file_magic_cmd
14525
14526# Flag that allows shared libraries with undefined symbols to be built.
14527allow_undefined_flag=$lt_allow_undefined_flag_F77
14528
14529# Flag that forces no undefined symbols.
14530no_undefined_flag=$lt_no_undefined_flag_F77
14531
14532# Commands used to finish a libtool library installation in a directory.
14533finish_cmds=$lt_finish_cmds
14534
14535# Same as above, but a single script fragment to be evaled but not shown.
14536finish_eval=$lt_finish_eval
14537
14538# Take the output of nm and produce a listing of raw symbols and C names.
14539global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14540
14541# Transform the output of nm in a proper C declaration
14542global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14543
14544# Transform the output of nm in a C name address pair
14545global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14546
14547# This is the shared library runtime path variable.
14548runpath_var=$runpath_var
14549
14550# This is the shared library path variable.
14551shlibpath_var=$shlibpath_var
14552
14553# Is shlibpath searched before the hard-coded library search path?
14554shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14555
14556# How to hardcode a shared library path into an executable.
14557hardcode_action=$hardcode_action_F77
14558
14559# Whether we should hardcode library paths into libraries.
14560hardcode_into_libs=$hardcode_into_libs
14561
14562# Flag to hardcode \$libdir into a binary during linking.
14563# This must work even if \$libdir does not exist.
14564hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14565
14566# If ld is used when linking, flag to hardcode \$libdir into
14567# a binary during linking. This must work even if \$libdir does
14568# not exist.
14569hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14570
14571# Whether we need a single -rpath flag with a separated argument.
14572hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14573
14574# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14575# resulting binary.
14576hardcode_direct=$hardcode_direct_F77
14577
14578# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14579# resulting binary.
14580hardcode_minus_L=$hardcode_minus_L_F77
14581
14582# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14583# the resulting binary.
14584hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14585
14586# Set to yes if building a shared library automatically hardcodes DIR into the library
14587# and all subsequent libraries and executables linked against it.
14588hardcode_automatic=$hardcode_automatic_F77
14589
14590# Variables whose values should be saved in libtool wrapper scripts and
14591# restored at relink time.
14592variables_saved_for_relink="$variables_saved_for_relink"
14593
14594# Whether libtool must link a program against all its dependency libraries.
14595link_all_deplibs=$link_all_deplibs_F77
14596
14597# Compile-time system search path for libraries
14598sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14599
14600# Run-time system search path for libraries
14601sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14602
14603# Fix the shell variable \$srcfile for the compiler.
14604fix_srcfile_path="$fix_srcfile_path_F77"
14605
14606# Set to yes if exported symbols are required.
14607always_export_symbols=$always_export_symbols_F77
14608
14609# The commands to list exported symbols.
14610export_symbols_cmds=$lt_export_symbols_cmds_F77
14611
14612# The commands to extract the exported symbol list from a shared archive.
14613extract_expsyms_cmds=$lt_extract_expsyms_cmds
14614
14615# Symbols that should not be listed in the preloaded symbols.
14616exclude_expsyms=$lt_exclude_expsyms_F77
14617
14618# Symbols that must always be exported.
14619include_expsyms=$lt_include_expsyms_F77
14620
14621# ### END LIBTOOL TAG CONFIG: $tagname
14622
14623__EOF__
14624
14625
14626else
14627 # If there is no Makefile yet, we rely on a make rule to execute
14628 # `config.status --recheck' to rerun these tests and create the
14629 # libtool script then.
14630 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14631 if test -f "$ltmain_in"; then
14632 test -f Makefile && make "$ltmain"
14633 fi
14634fi
14635
14636
14637ac_ext=c
14638ac_cpp='$CPP $CPPFLAGS'
14639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642
14643CC="$lt_save_CC"
14644
14645 else
14646 tagname=""
14647 fi
14648 ;;
14649
14650 GCJ)
14651 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14652
14653
14654
14655# Source file extension for Java test sources.
14656ac_ext=java
14657
14658# Object file extension for compiled Java test sources.
14659objext=o
14660objext_GCJ=$objext
14661
14662# Code to be used in simple compile tests
14663lt_simple_compile_test_code="class foo {}\n"
14664
14665# Code to be used in simple link tests
14666lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14667
14668# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14669
14670# If no C compiler was specified, use CC.
14671LTCC=${LTCC-"$CC"}
14672
14673# Allow CC to be a program name with arguments.
14674compiler=$CC
14675
14676
14677# Allow CC to be a program name with arguments.
14678lt_save_CC="$CC"
14679CC=${GCJ-"gcj"}
14680compiler=$CC
14681compiler_GCJ=$CC
14682
14683# GCJ did not exist at the time GCC didn't implicitly link libc in.
14684archive_cmds_need_lc_GCJ=no
14685
14686
14687lt_prog_compiler_no_builtin_flag_GCJ=
14688
14689if test "$GCC" = yes; then
14690 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14691
14692
14693echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14694echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14695if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698 lt_cv_prog_compiler_rtti_exceptions=no
14699 ac_outfile=conftest.$ac_objext
14700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14701 lt_compiler_flag="-fno-rtti -fno-exceptions"
14702 # Insert the option either (1) after the last *FLAGS variable, or
14703 # (2) before a word containing "conftest.", or (3) at the end.
14704 # Note that $ac_compile itself does not contain backslashes and begins
14705 # with a dollar sign (not a hyphen), so the echo should work correctly.
14706 # The option is referenced via a variable to avoid confusing sed.
14707 lt_compile=`echo "$ac_compile" | $SED \
14708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14710 -e 's:$: $lt_compiler_flag:'`
14711 (eval echo "\"\$as_me:14711: $lt_compile\"" >&5)
14712 (eval "$lt_compile" 2>conftest.err)
14713 ac_status=$?
14714 cat conftest.err >&5
14715 echo "$as_me:14715: \$? = $ac_status" >&5
14716 if (exit $ac_status) && test -s "$ac_outfile"; then
14717 # The compiler can only warn and ignore the option if not recognized
14718 # So say no if there are warnings
14719 if test ! -s conftest.err; then
14720 lt_cv_prog_compiler_rtti_exceptions=yes
14721 fi
14722 fi
14723 $rm conftest*
14724
14725fi
14726echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14727echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14728
14729if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14730 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14731else
14732 :
14733fi
14734
14735fi
14736
14737lt_prog_compiler_wl_GCJ=
14738lt_prog_compiler_pic_GCJ=
14739lt_prog_compiler_static_GCJ=
14740
14741echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14742echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14743
14744 if test "$GCC" = yes; then
14745 lt_prog_compiler_wl_GCJ='-Wl,'
14746 lt_prog_compiler_static_GCJ='-static'
14747
14748 case $host_os in
14749 aix*)
14750 # All AIX code is PIC.
14751 if test "$host_cpu" = ia64; then
14752 # AIX 5 now supports IA64 processor
14753 lt_prog_compiler_static_GCJ='-Bstatic'
14754 fi
14755 ;;
14756
14757 amigaos*)
14758 # FIXME: we need at least 68020 code to build shared libraries, but
14759 # adding the `-m68020' flag to GCC prevents building anything better,
14760 # like `-m68040'.
14761 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14762 ;;
14763
14764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14765 # PIC is the default for these OSes.
14766 ;;
14767
14768 mingw* | pw32* | os2*)
14769 # This hack is so that the source file can tell whether it is being
14770 # built for inclusion in a dll (and should export symbols for example).
14771 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14772 ;;
14773
14774 darwin* | rhapsody*)
14775 # PIC is the default on this platform
14776 # Common symbols not allowed in MH_DYLIB files
14777 lt_prog_compiler_pic_GCJ='-fno-common'
14778 ;;
14779
14780 msdosdjgpp*)
14781 # Just because we use GCC doesn't mean we suddenly get shared libraries
14782 # on systems that don't support them.
14783 lt_prog_compiler_can_build_shared_GCJ=no
14784 enable_shared=no
14785 ;;
14786
14787 sysv4*MP*)
14788 if test -d /usr/nec; then
14789 lt_prog_compiler_pic_GCJ=-Kconform_pic
14790 fi
14791 ;;
14792
14793 hpux*)
14794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14795 # not for PA HP-UX.
14796 case "$host_cpu" in
14797 hppa*64*|ia64*)
14798 # +Z the default
14799 ;;
14800 *)
14801 lt_prog_compiler_pic_GCJ='-fPIC'
14802 ;;
14803 esac
14804 ;;
14805
14806 *)
14807 lt_prog_compiler_pic_GCJ='-fPIC'
14808 ;;
14809 esac
14810 else
14811 # PORTME Check for flag to pass linker flags through the system compiler.
14812 case $host_os in
14813 aix*)
14814 lt_prog_compiler_wl_GCJ='-Wl,'
14815 if test "$host_cpu" = ia64; then
14816 # AIX 5 now supports IA64 processor
14817 lt_prog_compiler_static_GCJ='-Bstatic'
14818 else
14819 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14820 fi
14821 ;;
14822
14823 mingw* | pw32* | os2*)
14824 # This hack is so that the source file can tell whether it is being
14825 # built for inclusion in a dll (and should export symbols for example).
14826 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14827 ;;
14828
14829 hpux9* | hpux10* | hpux11*)
14830 lt_prog_compiler_wl_GCJ='-Wl,'
14831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14832 # not for PA HP-UX.
14833 case "$host_cpu" in
14834 hppa*64*|ia64*)
14835 # +Z the default
14836 ;;
14837 *)
14838 lt_prog_compiler_pic_GCJ='+Z'
14839 ;;
14840 esac
14841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14842 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14843 ;;
14844
14845 irix5* | irix6* | nonstopux*)
14846 lt_prog_compiler_wl_GCJ='-Wl,'
14847 # PIC (with -KPIC) is the default.
14848 lt_prog_compiler_static_GCJ='-non_shared'
14849 ;;
14850
14851 newsos6)
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14854 ;;
14855
14856 linux*)
14857 case $CC in
14858 icc* | ecc*)
14859 lt_prog_compiler_wl_GCJ='-Wl,'
14860 lt_prog_compiler_pic_GCJ='-KPIC'
14861 lt_prog_compiler_static_GCJ='-static'
14862 ;;
14863 ccc*)
14864 lt_prog_compiler_wl_GCJ='-Wl,'
14865 # All Alpha code is PIC.
14866 lt_prog_compiler_static_GCJ='-non_shared'
14867 ;;
14868 esac
14869 ;;
14870
14871 osf3* | osf4* | osf5*)
14872 lt_prog_compiler_wl_GCJ='-Wl,'
14873 # All OSF/1 code is PIC.
14874 lt_prog_compiler_static_GCJ='-non_shared'
14875 ;;
14876
14877 sco3.2v5*)
14878 lt_prog_compiler_pic_GCJ='-Kpic'
14879 lt_prog_compiler_static_GCJ='-dn'
14880 ;;
14881
14882 solaris*)
14883 lt_prog_compiler_wl_GCJ='-Wl,'
14884 lt_prog_compiler_pic_GCJ='-KPIC'
14885 lt_prog_compiler_static_GCJ='-Bstatic'
14886 ;;
14887
14888 sunos4*)
14889 lt_prog_compiler_wl_GCJ='-Qoption ld '
14890 lt_prog_compiler_pic_GCJ='-PIC'
14891 lt_prog_compiler_static_GCJ='-Bstatic'
14892 ;;
14893
14894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14895 lt_prog_compiler_wl_GCJ='-Wl,'
14896 lt_prog_compiler_pic_GCJ='-KPIC'
14897 lt_prog_compiler_static_GCJ='-Bstatic'
14898 ;;
14899
14900 sysv4*MP*)
14901 if test -d /usr/nec ;then
14902 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14903 lt_prog_compiler_static_GCJ='-Bstatic'
14904 fi
14905 ;;
14906
14907 uts4*)
14908 lt_prog_compiler_pic_GCJ='-pic'
14909 lt_prog_compiler_static_GCJ='-Bstatic'
14910 ;;
14911
14912 *)
14913 lt_prog_compiler_can_build_shared_GCJ=no
14914 ;;
14915 esac
14916 fi
14917
14918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14919echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14920
14921#
14922# Check to make sure the PIC flag actually works.
14923#
14924if test -n "$lt_prog_compiler_pic_GCJ"; then
14925
14926echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14927echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14928if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
14931 lt_prog_compiler_pic_works_GCJ=no
14932 ac_outfile=conftest.$ac_objext
14933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14934 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14935 # Insert the option either (1) after the last *FLAGS variable, or
14936 # (2) before a word containing "conftest.", or (3) at the end.
14937 # Note that $ac_compile itself does not contain backslashes and begins
14938 # with a dollar sign (not a hyphen), so the echo should work correctly.
14939 # The option is referenced via a variable to avoid confusing sed.
14940 lt_compile=`echo "$ac_compile" | $SED \
14941 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14943 -e 's:$: $lt_compiler_flag:'`
14944 (eval echo "\"\$as_me:14944: $lt_compile\"" >&5)
14945 (eval "$lt_compile" 2>conftest.err)
14946 ac_status=$?
14947 cat conftest.err >&5
14948 echo "$as_me:14948: \$? = $ac_status" >&5
14949 if (exit $ac_status) && test -s "$ac_outfile"; then
14950 # The compiler can only warn and ignore the option if not recognized
14951 # So say no if there are warnings
14952 if test ! -s conftest.err; then
14953 lt_prog_compiler_pic_works_GCJ=yes
14954 fi
14955 fi
14956 $rm conftest*
14957
14958fi
14959echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14960echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14961
14962if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14963 case $lt_prog_compiler_pic_GCJ in
14964 "" | " "*) ;;
14965 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14966 esac
14967else
14968 lt_prog_compiler_pic_GCJ=
14969 lt_prog_compiler_can_build_shared_GCJ=no
14970fi
14971
14972fi
14973case "$host_os" in
14974 # For platforms which do not support PIC, -DPIC is meaningless:
14975 *djgpp*)
14976 lt_prog_compiler_pic_GCJ=
14977 ;;
14978 *)
14979 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14980 ;;
14981esac
14982
14983echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14984echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14985if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987else
14988 lt_cv_prog_compiler_c_o_GCJ=no
14989 $rm -r conftest 2>/dev/null
14990 mkdir conftest
14991 cd conftest
14992 mkdir out
14993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14994
14995 lt_compiler_flag="-o out/conftest2.$ac_objext"
14996 # Insert the option either (1) after the last *FLAGS variable, or
14997 # (2) before a word containing "conftest.", or (3) at the end.
14998 # Note that $ac_compile itself does not contain backslashes and begins
14999 # with a dollar sign (not a hyphen), so the echo should work correctly.
15000 lt_compile=`echo "$ac_compile" | $SED \
15001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15003 -e 's:$: $lt_compiler_flag:'`
15004 (eval echo "\"\$as_me:15004: $lt_compile\"" >&5)
15005 (eval "$lt_compile" 2>out/conftest.err)
15006 ac_status=$?
15007 cat out/conftest.err >&5
15008 echo "$as_me:15008: \$? = $ac_status" >&5
15009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15010 then
15011 # The compiler can only warn and ignore the option if not recognized
15012 # So say no if there are warnings
15013 if test ! -s out/conftest.err; then
15014 lt_cv_prog_compiler_c_o_GCJ=yes
15015 fi
15016 fi
15017 chmod u+w .
15018 $rm conftest*
15019 # SGI C++ compiler will create directory out/ii_files/ for
15020 # template instantiation
15021 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15022 $rm out/* && rmdir out
15023 cd ..
15024 rmdir conftest
15025 $rm conftest*
15026
15027fi
15028echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15029echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15030
15031
15032hard_links="nottested"
15033if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15034 # do not overwrite the value of need_locks provided by the user
15035 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15036echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15037 hard_links=yes
15038 $rm conftest*
15039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15040 touch conftest.a
15041 ln conftest.a conftest.b 2>&5 || hard_links=no
15042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15043 echo "$as_me:$LINENO: result: $hard_links" >&5
15044echo "${ECHO_T}$hard_links" >&6
15045 if test "$hard_links" = no; then
15046 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15047echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15048 need_locks=warn
15049 fi
15050else
15051 need_locks=no
15052fi
15053
15054echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15055echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15056
15057 runpath_var=
15058 allow_undefined_flag_GCJ=
15059 enable_shared_with_static_runtimes_GCJ=no
15060 archive_cmds_GCJ=
15061 archive_expsym_cmds_GCJ=
15062 old_archive_From_new_cmds_GCJ=
15063 old_archive_from_expsyms_cmds_GCJ=
15064 export_dynamic_flag_spec_GCJ=
15065 whole_archive_flag_spec_GCJ=
15066 thread_safe_flag_spec_GCJ=
15067 hardcode_libdir_flag_spec_GCJ=
15068 hardcode_libdir_flag_spec_ld_GCJ=
15069 hardcode_libdir_separator_GCJ=
15070 hardcode_direct_GCJ=no
15071 hardcode_minus_L_GCJ=no
15072 hardcode_shlibpath_var_GCJ=unsupported
15073 link_all_deplibs_GCJ=unknown
15074 hardcode_automatic_GCJ=no
15075 module_cmds_GCJ=
15076 module_expsym_cmds_GCJ=
15077 always_export_symbols_GCJ=no
15078 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15079 # include_expsyms should be a list of space-separated symbols to be *always*
15080 # included in the symbol list
15081 include_expsyms_GCJ=
15082 # exclude_expsyms can be an extended regexp of symbols to exclude
15083 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15084 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15085 # as well as any symbol that contains `d'.
15086 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15088 # platforms (ab)use it in PIC code, but their linkers get confused if
15089 # the symbol is explicitly referenced. Since portable code cannot
15090 # rely on this symbol name, it's probably fine to never include it in
15091 # preloaded symbol tables.
15092 extract_expsyms_cmds=
15093
15094 case $host_os in
15095 cygwin* | mingw* | pw32*)
15096 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15097 # When not using gcc, we currently assume that we are using
15098 # Microsoft Visual C++.
15099 if test "$GCC" != yes; then
15100 with_gnu_ld=no
15101 fi
15102 ;;
15103 openbsd*)
15104 with_gnu_ld=no
15105 ;;
15106 esac
15107
15108 ld_shlibs_GCJ=yes
15109 if test "$with_gnu_ld" = yes; then
15110 # If archive_cmds runs LD, not CC, wlarc should be empty
15111 wlarc='${wl}'
15112
15113 # See if GNU ld supports shared libraries.
15114 case $host_os in
15115 aix3* | aix4* | aix5*)
15116 # On AIX/PPC, the GNU linker is very broken
15117 if test "$host_cpu" != ia64; then
15118 ld_shlibs_GCJ=no
15119 cat <<EOF 1>&2
15120
15121*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15122*** to be unable to reliably create shared libraries on AIX.
15123*** Therefore, libtool is disabling shared libraries support. If you
15124*** really care for shared libraries, you may want to modify your PATH
15125*** so that a non-GNU linker is found, and then restart.
15126
15127EOF
15128 fi
15129 ;;
15130
15131 amigaos*)
15132 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)'
15133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15134 hardcode_minus_L_GCJ=yes
15135
15136 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15137 # that the semantics of dynamic libraries on AmigaOS, at least up
15138 # to version 4, is to share data among multiple programs linked
15139 # with the same dynamic library. Since this doesn't match the
15140 # behavior of shared libraries on other platforms, we can't use
15141 # them.
15142 ld_shlibs_GCJ=no
15143 ;;
15144
15145 beos*)
15146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15147 allow_undefined_flag_GCJ=unsupported
15148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15149 # support --undefined. This deserves some investigation. FIXME
15150 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15151 else
15152 ld_shlibs_GCJ=no
15153 fi
15154 ;;
15155
15156 cygwin* | mingw* | pw32*)
15157 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15158 # as there is no search path for DLLs.
15159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15160 allow_undefined_flag_GCJ=unsupported
15161 always_export_symbols_GCJ=no
15162 enable_shared_with_static_runtimes_GCJ=yes
15163 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15164
15165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15166 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15167 # If the export-symbols file already is a .def file (1st line
15168 # is EXPORTS), use it as is; otherwise, prepend...
15169 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15170 cp $export_symbols $output_objdir/$soname.def;
15171 else
15172 echo EXPORTS > $output_objdir/$soname.def;
15173 cat $export_symbols >> $output_objdir/$soname.def;
15174 fi~
15175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15176 else
15177 ld_shlibs=no
15178 fi
15179 ;;
15180
15181 netbsd* | knetbsd*-gnu)
15182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15183 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15184 wlarc=
15185 else
15186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188 fi
15189 ;;
15190
15191 solaris* | sysv5*)
15192 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15193 ld_shlibs_GCJ=no
15194 cat <<EOF 1>&2
15195
15196*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15197*** create shared libraries on Solaris systems. Therefore, libtool
15198*** is disabling shared libraries support. We urge you to upgrade GNU
15199*** binutils to release 2.9.1 or newer. Another option is to modify
15200*** your PATH or compiler configuration so that the native linker is
15201*** used, and then restart.
15202
15203EOF
15204 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15206 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15207 else
15208 ld_shlibs_GCJ=no
15209 fi
15210 ;;
15211
15212 sunos4*)
15213 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15214 wlarc=
15215 hardcode_direct_GCJ=yes
15216 hardcode_shlibpath_var_GCJ=no
15217 ;;
15218
15219 linux*)
15220 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15221 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 archive_cmds_GCJ="$tmp_archive_cmds"
15223 supports_anon_versioning=no
15224 case `$LD -v 2>/dev/null` in
15225 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15228 *\ 2.11.*) ;; # other 2.11 versions
15229 *) supports_anon_versioning=yes ;;
15230 esac
15231 if test $supports_anon_versioning = yes; then
15232 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15233cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15234$echo "local: *; };" >> $output_objdir/$libname.ver~
15235 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15236 else
15237 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15238 fi
15239 else
15240 ld_shlibs_GCJ=no
15241 fi
15242 ;;
15243
15244 *)
15245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15248 else
15249 ld_shlibs_GCJ=no
15250 fi
15251 ;;
15252 esac
15253
15254 if test "$ld_shlibs_GCJ" = yes; then
15255 runpath_var=LD_RUN_PATH
15256 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15257 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15258 # ancient GNU ld didn't support --whole-archive et. al.
15259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15260 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15261 else
15262 whole_archive_flag_spec_GCJ=
15263 fi
15264 fi
15265 else
15266 # PORTME fill in a description of your system's linker (not GNU ld)
15267 case $host_os in
15268 aix3*)
15269 allow_undefined_flag_GCJ=unsupported
15270 always_export_symbols_GCJ=yes
15271 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'
15272 # Note: this linker hardcodes the directories in LIBPATH if there
15273 # are no directories specified by -L.
15274 hardcode_minus_L_GCJ=yes
15275 if test "$GCC" = yes && test -z "$link_static_flag"; then
15276 # Neither direct hardcoding nor static linking is supported with a
15277 # broken collect2.
15278 hardcode_direct_GCJ=unsupported
15279 fi
15280 ;;
15281
15282 aix4* | aix5*)
15283 if test "$host_cpu" = ia64; then
15284 # On IA64, the linker does run time linking by default, so we don't
15285 # have to do anything special.
15286 aix_use_runtimelinking=no
15287 exp_sym_flag='-Bexport'
15288 no_entry_flag=""
15289 else
15290 # If we're using GNU nm, then we don't want the "-C" option.
15291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15293 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'
15294 else
15295 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'
15296 fi
15297 aix_use_runtimelinking=no
15298
15299 # Test if we are trying to use run time linking or normal
15300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15301 # need to do runtime linking.
15302 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15303 for ld_flag in $LDFLAGS; do
15304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15305 aix_use_runtimelinking=yes
15306 break
15307 fi
15308 done
15309 esac
15310
15311 exp_sym_flag='-bexport'
15312 no_entry_flag='-bnoentry'
15313 fi
15314
15315 # When large executables or shared objects are built, AIX ld can
15316 # have problems creating the table of contents. If linking a library
15317 # or program results in "error TOC overflow" add -mminimal-toc to
15318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15320
15321 archive_cmds_GCJ=''
15322 hardcode_direct_GCJ=yes
15323 hardcode_libdir_separator_GCJ=':'
15324 link_all_deplibs_GCJ=yes
15325
15326 if test "$GCC" = yes; then
15327 case $host_os in aix4.012|aix4.012.*)
15328 # We only want to do this on AIX 4.2 and lower, the check
15329 # below for broken collect2 doesn't work under 4.3+
15330 collect2name=`${CC} -print-prog-name=collect2`
15331 if test -f "$collect2name" && \
15332 strings "$collect2name" | grep resolve_lib_name >/dev/null
15333 then
15334 # We have reworked collect2
15335 hardcode_direct_GCJ=yes
15336 else
15337 # We have old collect2
15338 hardcode_direct_GCJ=unsupported
15339 # It fails to find uninstalled libraries when the uninstalled
15340 # path is not listed in the libpath. Setting hardcode_minus_L
15341 # to unsupported forces relinking
15342 hardcode_minus_L_GCJ=yes
15343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15344 hardcode_libdir_separator_GCJ=
15345 fi
15346 esac
15347 shared_flag='-shared'
15348 else
15349 # not using gcc
15350 if test "$host_cpu" = ia64; then
15351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15352 # chokes on -Wl,-G. The following line is correct:
15353 shared_flag='-G'
15354 else
15355 if test "$aix_use_runtimelinking" = yes; then
15356 shared_flag='${wl}-G'
15357 else
15358 shared_flag='${wl}-bM:SRE'
15359 fi
15360 fi
15361 fi
15362
15363 # It seems that -bexpall does not export symbols beginning with
15364 # underscore (_), so it is better to generate a list of symbols to export.
15365 always_export_symbols_GCJ=yes
15366 if test "$aix_use_runtimelinking" = yes; then
15367 # Warning - without using the other runtime loading flags (-brtl),
15368 # -berok will link without error, but may produce a broken library.
15369 allow_undefined_flag_GCJ='-berok'
15370 # Determine the default libpath from the value encoded in an empty executable.
15371 cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
15377
15378int
15379main ()
15380{
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext conftest$ac_exeext
15387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest$ac_exeext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407
15408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15409}'`
15410# Check for a 64-bit object if we didn't find anything.
15411if 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; }
15412}'`; fi
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417fi
15418rm -f conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15421
15422 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15423 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"
15424 else
15425 if test "$host_cpu" = ia64; then
15426 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15427 allow_undefined_flag_GCJ="-z nodefs"
15428 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"
15429 else
15430 # Determine the default libpath from the value encoded in an empty executable.
15431 cat >conftest.$ac_ext <<_ACEOF
15432/* confdefs.h. */
15433_ACEOF
15434cat confdefs.h >>conftest.$ac_ext
15435cat >>conftest.$ac_ext <<_ACEOF
15436/* end confdefs.h. */
15437
15438int
15439main ()
15440{
15441
15442 ;
15443 return 0;
15444}
15445_ACEOF
15446rm -f conftest.$ac_objext conftest$ac_exeext
15447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15448 (eval $ac_link) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; } &&
15461 { ac_try='test -s conftest$ac_exeext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467
15468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15469}'`
15470# Check for a 64-bit object if we didn't find anything.
15471if 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; }
15472}'`; fi
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477fi
15478rm -f conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15481
15482 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15483 # Warning - without using the other run time loading flags,
15484 # -berok will link without error, but may produce a broken library.
15485 no_undefined_flag_GCJ=' ${wl}-bernotok'
15486 allow_undefined_flag_GCJ=' ${wl}-berok'
15487 # -bexpall does not export symbols beginning with underscore (_)
15488 always_export_symbols_GCJ=yes
15489 # Exported symbols can be pulled into shared objects from archives
15490 whole_archive_flag_spec_GCJ=' '
15491 archive_cmds_need_lc_GCJ=yes
15492 # This is similar to how AIX traditionally builds it's shared libraries.
15493 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'
15494 fi
15495 fi
15496 ;;
15497
15498 amigaos*)
15499 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)'
15500 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15501 hardcode_minus_L_GCJ=yes
15502 # see comment about different semantics on the GNU ld section
15503 ld_shlibs_GCJ=no
15504 ;;
15505
15506 bsdi4*)
15507 export_dynamic_flag_spec_GCJ=-rdynamic
15508 ;;
15509
15510 cygwin* | mingw* | pw32*)
15511 # When not using gcc, we currently assume that we are using
15512 # Microsoft Visual C++.
15513 # hardcode_libdir_flag_spec is actually meaningless, as there is
15514 # no search path for DLLs.
15515 hardcode_libdir_flag_spec_GCJ=' '
15516 allow_undefined_flag_GCJ=unsupported
15517 # Tell ltmain to make .lib files, not .a files.
15518 libext=lib
15519 # Tell ltmain to make .dll files, not .so files.
15520 shrext=".dll"
15521 # FIXME: Setting linknames here is a bad hack.
15522 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15523 # The linker will automatically build a .lib file if we build a DLL.
15524 old_archive_From_new_cmds_GCJ='true'
15525 # FIXME: Should let the user specify the lib program.
15526 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15527 fix_srcfile_path='`cygpath -w "$srcfile"`'
15528 enable_shared_with_static_runtimes_GCJ=yes
15529 ;;
15530
15531 darwin* | rhapsody*)
15532 if test "$GXX" = yes ; then
15533 archive_cmds_need_lc_GCJ=no
15534 case "$host_os" in
15535 rhapsody* | darwin1.[012])
15536 allow_undefined_flag_GCJ='-undefined suppress'
15537 ;;
15538 *) # Darwin 1.3 on
15539 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15540 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15541 else
15542 case ${MACOSX_DEPLOYMENT_TARGET} in
15543 10.[012])
15544 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15545 ;;
15546 10.*)
15547 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15548 ;;
15549 esac
15550 fi
15551 ;;
15552 esac
15553 lt_int_apple_cc_single_mod=no
15554 output_verbose_link_cmd='echo'
15555 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15556 lt_int_apple_cc_single_mod=yes
15557 fi
15558 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15559 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15560 else
15561 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'
15562 fi
15563 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15566 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}'
15567 else
15568 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}'
15569 fi
15570 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15571 hardcode_direct_GCJ=no
15572 hardcode_automatic_GCJ=yes
15573 hardcode_shlibpath_var_GCJ=unsupported
15574 whole_archive_flag_spec_GCJ='-all_load $convenience'
15575 link_all_deplibs_GCJ=yes
15576 else
15577 ld_shlibs_GCJ=no
15578 fi
15579 ;;
15580
15581 dgux*)
15582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15584 hardcode_shlibpath_var_GCJ=no
15585 ;;
15586
15587 freebsd1*)
15588 ld_shlibs_GCJ=no
15589 ;;
15590
15591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15592 # support. Future versions do this automatically, but an explicit c++rt0.o
15593 # does not break anything, and helps significantly (at the cost of a little
15594 # extra space).
15595 freebsd2.2*)
15596 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15597 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15598 hardcode_direct_GCJ=yes
15599 hardcode_shlibpath_var_GCJ=no
15600 ;;
15601
15602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15603 freebsd2*)
15604 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15605 hardcode_direct_GCJ=yes
15606 hardcode_minus_L_GCJ=yes
15607 hardcode_shlibpath_var_GCJ=no
15608 ;;
15609
15610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15611 freebsd* | kfreebsd*-gnu)
15612 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15614 hardcode_direct_GCJ=yes
15615 hardcode_shlibpath_var_GCJ=no
15616 ;;
15617
15618 hpux9*)
15619 if test "$GCC" = yes; then
15620 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'
15621 else
15622 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'
15623 fi
15624 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15625 hardcode_libdir_separator_GCJ=:
15626 hardcode_direct_GCJ=yes
15627
15628 # hardcode_minus_L: Not really in the search PATH,
15629 # but as the default location of the library.
15630 hardcode_minus_L_GCJ=yes
15631 export_dynamic_flag_spec_GCJ='${wl}-E'
15632 ;;
15633
15634 hpux10* | hpux11*)
15635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15636 case "$host_cpu" in
15637 hppa*64*|ia64*)
15638 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 ;;
15640 *)
15641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15642 ;;
15643 esac
15644 else
15645 case "$host_cpu" in
15646 hppa*64*|ia64*)
15647 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15648 ;;
15649 *)
15650 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15651 ;;
15652 esac
15653 fi
15654 if test "$with_gnu_ld" = no; then
15655 case "$host_cpu" in
15656 hppa*64*)
15657 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15659 hardcode_libdir_separator_GCJ=:
15660 hardcode_direct_GCJ=no
15661 hardcode_shlibpath_var_GCJ=no
15662 ;;
15663 ia64*)
15664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15665 hardcode_direct_GCJ=no
15666 hardcode_shlibpath_var_GCJ=no
15667
15668 # hardcode_minus_L: Not really in the search PATH,
15669 # but as the default location of the library.
15670 hardcode_minus_L_GCJ=yes
15671 ;;
15672 *)
15673 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15675 hardcode_direct_GCJ=yes
15676 export_dynamic_flag_spec_GCJ='${wl}-E'
15677
15678 # hardcode_minus_L: Not really in the search PATH,
15679 # but as the default location of the library.
15680 hardcode_minus_L_GCJ=yes
15681 ;;
15682 esac
15683 fi
15684 ;;
15685
15686 irix5* | irix6* | nonstopux*)
15687 if test "$GCC" = yes; then
15688 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'
15689 else
15690 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'
15691 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15692 fi
15693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15694 hardcode_libdir_separator_GCJ=:
15695 link_all_deplibs_GCJ=yes
15696 ;;
15697
15698 netbsd* | knetbsd*-gnu)
15699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15701 else
15702 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15703 fi
15704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15705 hardcode_direct_GCJ=yes
15706 hardcode_shlibpath_var_GCJ=no
15707 ;;
15708
15709 newsos6)
15710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 hardcode_direct_GCJ=yes
15712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15713 hardcode_libdir_separator_GCJ=:
15714 hardcode_shlibpath_var_GCJ=no
15715 ;;
15716
15717 openbsd*)
15718 hardcode_direct_GCJ=yes
15719 hardcode_shlibpath_var_GCJ=no
15720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15723 export_dynamic_flag_spec_GCJ='${wl}-E'
15724 else
15725 case $host_os in
15726 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15727 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15729 ;;
15730 *)
15731 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15733 ;;
15734 esac
15735 fi
15736 ;;
15737
15738 os2*)
15739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15740 hardcode_minus_L_GCJ=yes
15741 allow_undefined_flag_GCJ=unsupported
15742 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'
15743 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15744 ;;
15745
15746 osf3*)
15747 if test "$GCC" = yes; then
15748 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15749 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'
15750 else
15751 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15752 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'
15753 fi
15754 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15755 hardcode_libdir_separator_GCJ=:
15756 ;;
15757
15758 osf4* | osf5*) # as osf3* with the addition of -msym flag
15759 if test "$GCC" = yes; then
15760 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15761 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'
15762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15763 else
15764 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15765 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'
15766 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~
15767 $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'
15768
15769 # Both c and cxx compiler support -rpath directly
15770 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15771 fi
15772 hardcode_libdir_separator_GCJ=:
15773 ;;
15774
15775 sco3.2v5*)
15776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_shlibpath_var_GCJ=no
15778 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15779 runpath_var=LD_RUN_PATH
15780 hardcode_runpath_var=yes
15781 ;;
15782
15783 solaris*)
15784 no_undefined_flag_GCJ=' -z text'
15785 if test "$GCC" = yes; then
15786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15789 else
15790 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15793 fi
15794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15795 hardcode_shlibpath_var_GCJ=no
15796 case $host_os in
15797 solaris2.[0-5] | solaris2.[0-5].*) ;;
15798 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15799 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15800 esac
15801 link_all_deplibs_GCJ=yes
15802 ;;
15803
15804 sunos4*)
15805 if test "x$host_vendor" = xsequent; then
15806 # Use $CC to link under sequent, because it throws in some extra .o
15807 # files that make .init and .fini sections work.
15808 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15809 else
15810 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15811 fi
15812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15813 hardcode_direct_GCJ=yes
15814 hardcode_minus_L_GCJ=yes
15815 hardcode_shlibpath_var_GCJ=no
15816 ;;
15817
15818 sysv4)
15819 case $host_vendor in
15820 sni)
15821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15822 hardcode_direct_GCJ=yes # is this really true???
15823 ;;
15824 siemens)
15825 ## LD is ld it makes a PLAMLIB
15826 ## CC just makes a GrossModule.
15827 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15828 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15829 hardcode_direct_GCJ=no
15830 ;;
15831 motorola)
15832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15834 ;;
15835 esac
15836 runpath_var='LD_RUN_PATH'
15837 hardcode_shlibpath_var_GCJ=no
15838 ;;
15839
15840 sysv4.3*)
15841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_shlibpath_var_GCJ=no
15843 export_dynamic_flag_spec_GCJ='-Bexport'
15844 ;;
15845
15846 sysv4*MP*)
15847 if test -d /usr/nec; then
15848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_shlibpath_var_GCJ=no
15850 runpath_var=LD_RUN_PATH
15851 hardcode_runpath_var=yes
15852 ld_shlibs_GCJ=yes
15853 fi
15854 ;;
15855
15856 sysv4.2uw2*)
15857 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_direct_GCJ=yes
15859 hardcode_minus_L_GCJ=no
15860 hardcode_shlibpath_var_GCJ=no
15861 hardcode_runpath_var=yes
15862 runpath_var=LD_RUN_PATH
15863 ;;
15864
15865 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15866 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15867 if test "$GCC" = yes; then
15868 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 else
15870 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 fi
15872 runpath_var='LD_RUN_PATH'
15873 hardcode_shlibpath_var_GCJ=no
15874 ;;
15875
15876 sysv5*)
15877 no_undefined_flag_GCJ=' -z text'
15878 # $CC -shared without GNU ld will not create a library from C++
15879 # object files and a static libstdc++, better avoid it by now
15880 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15883 hardcode_libdir_flag_spec_GCJ=
15884 hardcode_shlibpath_var_GCJ=no
15885 runpath_var='LD_RUN_PATH'
15886 ;;
15887
15888 uts4*)
15889 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15891 hardcode_shlibpath_var_GCJ=no
15892 ;;
15893
15894 *)
15895 ld_shlibs_GCJ=no
15896 ;;
15897 esac
15898 fi
15899
15900echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15901echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15902test "$ld_shlibs_GCJ" = no && can_build_shared=no
15903
15904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15905if test "$GCC" = yes; then
15906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15907fi
15908
15909#
15910# Do we need to explicitly link libc?
15911#
15912case "x$archive_cmds_need_lc_GCJ" in
15913x|xyes)
15914 # Assume -lc should be added
15915 archive_cmds_need_lc_GCJ=yes
15916
15917 if test "$enable_shared" = yes && test "$GCC" = yes; then
15918 case $archive_cmds_GCJ in
15919 *'~'*)
15920 # FIXME: we may have to deal with multi-command sequences.
15921 ;;
15922 '$CC '*)
15923 # Test whether the compiler implicitly links with -lc since on some
15924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15925 # to ld, don't add -lc before -lgcc.
15926 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15928 $rm conftest*
15929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15930
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } 2>conftest.err; then
15936 soname=conftest
15937 lib=conftest
15938 libobjs=conftest.$ac_objext
15939 deplibs=
15940 wl=$lt_prog_compiler_wl_GCJ
15941 compiler_flags=-v
15942 linker_flags=-v
15943 verstring=
15944 output_objdir=.
15945 libname=conftest
15946 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15947 allow_undefined_flag_GCJ=
15948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15949 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }
15953 then
15954 archive_cmds_need_lc_GCJ=no
15955 else
15956 archive_cmds_need_lc_GCJ=yes
15957 fi
15958 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15959 else
15960 cat conftest.err 1>&5
15961 fi
15962 $rm conftest*
15963 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15964echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15965 ;;
15966 esac
15967 fi
15968 ;;
15969esac
15970
15971echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15972echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15973library_names_spec=
15974libname_spec='lib$name'
15975soname_spec=
15976shrext=".so"
15977postinstall_cmds=
15978postuninstall_cmds=
15979finish_cmds=
15980finish_eval=
15981shlibpath_var=
15982shlibpath_overrides_runpath=unknown
15983version_type=none
15984dynamic_linker="$host_os ld.so"
15985sys_lib_dlsearch_path_spec="/lib /usr/lib"
15986if test "$GCC" = yes; then
15987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15989 # if the path contains ";" then we assume it to be the separator
15990 # otherwise default to the standard path separator (i.e. ":") - it is
15991 # assumed that no part of a normal pathname contains ";" but that should
15992 # okay in the real world where ";" in dirpaths is itself problematic.
15993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15994 else
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15996 fi
15997else
15998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15999fi
16000need_lib_prefix=unknown
16001hardcode_into_libs=no
16002
16003# when you set need_version to no, make sure it does not cause -set_version
16004# flags to be left without arguments
16005need_version=unknown
16006
16007case $host_os in
16008aix3*)
16009 version_type=linux
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16011 shlibpath_var=LIBPATH
16012
16013 # AIX 3 has no versioning support, so we append a major version to the name.
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 ;;
16016
16017aix4* | aix5*)
16018 version_type=linux
16019 need_lib_prefix=no
16020 need_version=no
16021 hardcode_into_libs=yes
16022 if test "$host_cpu" = ia64; then
16023 # AIX 5 supports IA64
16024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 else
16027 # With GCC up to 2.95.x, collect2 would create an import file
16028 # for dependence libraries. The import file would start with
16029 # the line `#! .'. This would cause the generated library to
16030 # depend on `.', always an invalid library. This was fixed in
16031 # development snapshots of GCC prior to 3.0.
16032 case $host_os in
16033 aix4 | aix4.[01] | aix4.[01].*)
16034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16035 echo ' yes '
16036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16037 :
16038 else
16039 can_build_shared=no
16040 fi
16041 ;;
16042 esac
16043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16044 # soname into executable. Probably we can add versioning support to
16045 # collect2, so additional links can be useful in future.
16046 if test "$aix_use_runtimelinking" = yes; then
16047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048 # instead of lib<name>.a to let people know that these are not
16049 # typical AIX shared libraries.
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 else
16052 # We preserve .a as extension for shared libraries through AIX4.2
16053 # and later when we are not doing run time linking.
16054 library_names_spec='${libname}${release}.a $libname.a'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 fi
16057 shlibpath_var=LIBPATH
16058 fi
16059 ;;
16060
16061amigaos*)
16062 library_names_spec='$libname.ixlibrary $libname.a'
16063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16064 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'
16065 ;;
16066
16067beos*)
16068 library_names_spec='${libname}${shared_ext}'
16069 dynamic_linker="$host_os ld.so"
16070 shlibpath_var=LIBRARY_PATH
16071 ;;
16072
16073bsdi4*)
16074 version_type=linux
16075 need_version=no
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16082 # the default ld.so.conf also contains /usr/contrib/lib and
16083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16084 # libtool to hard-code these into programs
16085 ;;
16086
16087cygwin* | mingw* | pw32*)
16088 version_type=windows
16089 shrext=".dll"
16090 need_version=no
16091 need_lib_prefix=no
16092
16093 case $GCC,$host_os in
16094 yes,cygwin* | yes,mingw* | yes,pw32*)
16095 library_names_spec='$libname.dll.a'
16096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16097 postinstall_cmds='base_file=`basename \${file}`~
16098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16099 dldir=$destdir/`dirname \$dlpath`~
16100 test -d \$dldir || mkdir -p \$dldir~
16101 $install_prog $dir/$dlname \$dldir/$dlname'
16102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16103 dlpath=$dir/\$dldll~
16104 $rm \$dlpath'
16105 shlibpath_overrides_runpath=yes
16106
16107 case $host_os in
16108 cygwin*)
16109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16112 ;;
16113 mingw*)
16114 # MinGW DLLs use traditional 'lib' prefix
16115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16118 # It is most probably a Windows format PATH printed by
16119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16120 # path with ; separators, and with drive letters. We can handle the
16121 # drive letters (cygwin fileutils understands them), so leave them,
16122 # especially as we might pass files found there to a mingw objdump,
16123 # which wouldn't understand a cygwinified path. Ahh.
16124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16125 else
16126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16127 fi
16128 ;;
16129 pw32*)
16130 # pw32 DLLs use 'pw' prefix rather than 'lib'
16131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16132 ;;
16133 esac
16134 ;;
16135
16136 *)
16137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16138 ;;
16139 esac
16140 dynamic_linker='Win32 ld.exe'
16141 # FIXME: first we should search . and the directory the executable is in
16142 shlibpath_var=PATH
16143 ;;
16144
16145darwin* | rhapsody*)
16146 dynamic_linker="$host_os dyld"
16147 version_type=darwin
16148 need_lib_prefix=no
16149 need_version=no
16150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16151 soname_spec='${libname}${release}${major}$shared_ext'
16152 shlibpath_overrides_runpath=yes
16153 shlibpath_var=DYLD_LIBRARY_PATH
16154 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16155 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16156 if test "$GCC" = yes; then
16157 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"`
16158 else
16159 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16160 fi
16161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16162 ;;
16163
16164dgux*)
16165 version_type=linux
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 ;;
16172
16173freebsd1*)
16174 dynamic_linker=no
16175 ;;
16176
16177kfreebsd*-gnu)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16186 dynamic_linker='GNU ld.so'
16187 ;;
16188
16189freebsd*)
16190 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16191 version_type=freebsd-$objformat
16192 case $version_type in
16193 freebsd-elf*)
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16195 need_version=no
16196 need_lib_prefix=no
16197 ;;
16198 freebsd-*)
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16200 need_version=yes
16201 ;;
16202 esac
16203 shlibpath_var=LD_LIBRARY_PATH
16204 case $host_os in
16205 freebsd2*)
16206 shlibpath_overrides_runpath=yes
16207 ;;
16208 freebsd3.01* | freebsdelf3.01*)
16209 shlibpath_overrides_runpath=yes
16210 hardcode_into_libs=yes
16211 ;;
16212 *) # from 3.2 on
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16215 ;;
16216 esac
16217 ;;
16218
16219gnu*)
16220 version_type=linux
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 hardcode_into_libs=yes
16227 ;;
16228
16229hpux9* | hpux10* | hpux11*)
16230 # Give a soname corresponding to the major version so that dld.sl refuses to
16231 # link against other versions.
16232 version_type=sunos
16233 need_lib_prefix=no
16234 need_version=no
16235 case "$host_cpu" in
16236 ia64*)
16237 shrext='.so'
16238 hardcode_into_libs=yes
16239 dynamic_linker="$host_os dld.so"
16240 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 if test "X$HPUX_IA64_MODE" = X32; then
16245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16246 else
16247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16248 fi
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250 ;;
16251 hppa*64*)
16252 shrext='.sl'
16253 hardcode_into_libs=yes
16254 dynamic_linker="$host_os dld.sl"
16255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16261 ;;
16262 *)
16263 shrext='.sl'
16264 dynamic_linker="$host_os dld.sl"
16265 shlibpath_var=SHLIB_PATH
16266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 ;;
16270 esac
16271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16272 postinstall_cmds='chmod 555 $lib'
16273 ;;
16274
16275irix5* | irix6* | nonstopux*)
16276 case $host_os in
16277 nonstopux*) version_type=nonstopux ;;
16278 *)
16279 if test "$lt_cv_prog_gnu_ld" = yes; then
16280 version_type=linux
16281 else
16282 version_type=irix
16283 fi ;;
16284 esac
16285 need_lib_prefix=no
16286 need_version=no
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16289 case $host_os in
16290 irix5* | nonstopux*)
16291 libsuff= shlibsuff=
16292 ;;
16293 *)
16294 case $LD in # libtool.m4 will add one of these switches to LD
16295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16296 libsuff= shlibsuff= libmagic=32-bit;;
16297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16298 libsuff=32 shlibsuff=N32 libmagic=N32;;
16299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16301 *) libsuff= shlibsuff= libmagic=never-match;;
16302 esac
16303 ;;
16304 esac
16305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16306 shlibpath_overrides_runpath=no
16307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16309 hardcode_into_libs=yes
16310 ;;
16311
16312# No shared lib support for Linux oldld, aout, or coff.
16313linux*oldld* | linux*aout* | linux*coff*)
16314 dynamic_linker=no
16315 ;;
16316
16317# This must be Linux ELF.
16318linux*)
16319 version_type=linux
16320 need_lib_prefix=no
16321 need_version=no
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 soname_spec='${libname}${release}${shared_ext}$major'
16324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=no
16327 # This implies no fast_install, which is unacceptable.
16328 # Some rework will be needed to allow for fast_install
16329 # before this can be enabled.
16330 hardcode_into_libs=yes
16331
16332 # Append ld.so.conf contents to the search path
16333 if test -f /etc/ld.so.conf; then
16334 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16335 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16336 fi
16337
16338 # We used to test for /lib/ld.so.1 and disable shared libraries on
16339 # powerpc, because MkLinux only supported shared libraries with the
16340 # GNU dynamic linker. Since this was broken with cross compilers,
16341 # most powerpc-linux boxes support dynamic linking these days and
16342 # people can always --disable-shared, the test was removed, and we
16343 # assume the GNU/Linux dynamic linker is in use.
16344 dynamic_linker='GNU/Linux ld.so'
16345 ;;
16346
16347knetbsd*-gnu)
16348 version_type=linux
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 shlibpath_overrides_runpath=no
16355 hardcode_into_libs=yes
16356 dynamic_linker='GNU ld.so'
16357 ;;
16358
16359netbsd*)
16360 version_type=sunos
16361 need_lib_prefix=no
16362 need_version=no
16363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16366 dynamic_linker='NetBSD (a.out) ld.so'
16367 else
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 dynamic_linker='NetBSD ld.elf_so'
16371 fi
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 hardcode_into_libs=yes
16375 ;;
16376
16377newsos6)
16378 version_type=linux
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 ;;
16383
16384nto-qnx*)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=yes
16392 ;;
16393
16394openbsd*)
16395 version_type=sunos
16396 need_lib_prefix=no
16397 need_version=yes
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16402 case $host_os in
16403 openbsd2.[89] | openbsd2.[89].*)
16404 shlibpath_overrides_runpath=no
16405 ;;
16406 *)
16407 shlibpath_overrides_runpath=yes
16408 ;;
16409 esac
16410 else
16411 shlibpath_overrides_runpath=yes
16412 fi
16413 ;;
16414
16415os2*)
16416 libname_spec='$name'
16417 shrext=".dll"
16418 need_lib_prefix=no
16419 library_names_spec='$libname${shared_ext} $libname.a'
16420 dynamic_linker='OS/2 ld.exe'
16421 shlibpath_var=LIBPATH
16422 ;;
16423
16424osf3* | osf4* | osf5*)
16425 version_type=osf
16426 need_lib_prefix=no
16427 need_version=no
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16432 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16433 ;;
16434
16435sco3.2v5*)
16436 version_type=osf
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 ;;
16441
16442solaris*)
16443 version_type=linux
16444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16450 hardcode_into_libs=yes
16451 # ldd complains unless libraries are executable
16452 postinstall_cmds='chmod +x $lib'
16453 ;;
16454
16455sunos4*)
16456 version_type=sunos
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 shlibpath_overrides_runpath=yes
16461 if test "$with_gnu_ld" = yes; then
16462 need_lib_prefix=no
16463 fi
16464 need_version=yes
16465 ;;
16466
16467sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16468 version_type=linux
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 case $host_vendor in
16473 sni)
16474 shlibpath_overrides_runpath=no
16475 need_lib_prefix=no
16476 export_dynamic_flag_spec='${wl}-Blargedynsym'
16477 runpath_var=LD_RUN_PATH
16478 ;;
16479 siemens)
16480 need_lib_prefix=no
16481 ;;
16482 motorola)
16483 need_lib_prefix=no
16484 need_version=no
16485 shlibpath_overrides_runpath=no
16486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16487 ;;
16488 esac
16489 ;;
16490
16491sysv4*MP*)
16492 if test -d /usr/nec ;then
16493 version_type=linux
16494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16495 soname_spec='$libname${shared_ext}.$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 fi
16498 ;;
16499
16500uts4*)
16501 version_type=linux
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 ;;
16506
16507*)
16508 dynamic_linker=no
16509 ;;
16510esac
16511echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16512echo "${ECHO_T}$dynamic_linker" >&6
16513test "$dynamic_linker" = no && can_build_shared=no
16514
16515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16517hardcode_action_GCJ=
16518if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16519 test -n "$runpath_var GCJ" || \
16520 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16521
16522 # We can hardcode non-existant directories.
16523 if test "$hardcode_direct_GCJ" != no &&
16524 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16525 # have to relink, otherwise we might link with an installed library
16526 # when we should be linking with a yet-to-be-installed one
16527 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16528 test "$hardcode_minus_L_GCJ" != no; then
16529 # Linking always hardcodes the temporary library directory.
16530 hardcode_action_GCJ=relink
16531 else
16532 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16533 hardcode_action_GCJ=immediate
16534 fi
16535else
16536 # We cannot hardcode anything, or else we can only hardcode existing
16537 # directories.
16538 hardcode_action_GCJ=unsupported
16539fi
16540echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16541echo "${ECHO_T}$hardcode_action_GCJ" >&6
16542
16543if test "$hardcode_action_GCJ" = relink; then
16544 # Fast installation is not supported
16545 enable_fast_install=no
16546elif test "$shlibpath_overrides_runpath" = yes ||
16547 test "$enable_shared" = no; then
16548 # Fast installation is not necessary
16549 enable_fast_install=needless
16550fi
16551
16552striplib=
16553old_striplib=
16554echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16555echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16556if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16557 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16558 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16559 echo "$as_me:$LINENO: result: yes" >&5
16560echo "${ECHO_T}yes" >&6
16561else
16562# FIXME - insert some real tests, host_os isn't really good enough
16563 case $host_os in
16564 darwin*)
16565 if test -n "$STRIP" ; then
16566 striplib="$STRIP -x"
16567 echo "$as_me:$LINENO: result: yes" >&5
16568echo "${ECHO_T}yes" >&6
16569 else
16570 echo "$as_me:$LINENO: result: no" >&5
16571echo "${ECHO_T}no" >&6
16572fi
16573 ;;
16574 *)
16575 echo "$as_me:$LINENO: result: no" >&5
16576echo "${ECHO_T}no" >&6
16577 ;;
16578 esac
16579fi
16580
16581if test "x$enable_dlopen" != xyes; then
16582 enable_dlopen=unknown
16583 enable_dlopen_self=unknown
16584 enable_dlopen_self_static=unknown
16585else
16586 lt_cv_dlopen=no
16587 lt_cv_dlopen_libs=
16588
16589 case $host_os in
16590 beos*)
16591 lt_cv_dlopen="load_add_on"
16592 lt_cv_dlopen_libs=
16593 lt_cv_dlopen_self=yes
16594 ;;
16595
16596 mingw* | pw32*)
16597 lt_cv_dlopen="LoadLibrary"
16598 lt_cv_dlopen_libs=
16599 ;;
16600
16601 cygwin*)
16602 lt_cv_dlopen="dlopen"
16603 lt_cv_dlopen_libs=
16604 ;;
16605
16606 darwin*)
16607 # if libdl is installed we need to link against it
16608 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16609echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16610if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612else
16613 ac_check_lib_save_LIBS=$LIBS
16614LIBS="-ldl $LIBS"
16615cat >conftest.$ac_ext <<_ACEOF
16616/* confdefs.h. */
16617_ACEOF
16618cat confdefs.h >>conftest.$ac_ext
16619cat >>conftest.$ac_ext <<_ACEOF
16620/* end confdefs.h. */
16621
16622/* Override any gcc2 internal prototype to avoid an error. */
16623#ifdef __cplusplus
16624extern "C"
16625#endif
16626/* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16628char dlopen ();
16629int
16630main ()
16631{
16632dlopen ();
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext conftest$ac_exeext
16638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639 (eval $ac_link) 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_lib_dl_dlopen=yes
16659else
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663ac_cv_lib_dl_dlopen=no
16664fi
16665rm -f conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16667LIBS=$ac_check_lib_save_LIBS
16668fi
16669echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16670echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16671if test $ac_cv_lib_dl_dlopen = yes; then
16672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16673else
16674
16675 lt_cv_dlopen="dyld"
16676 lt_cv_dlopen_libs=
16677 lt_cv_dlopen_self=yes
16678
16679fi
16680
16681 ;;
16682
16683 *)
16684 echo "$as_me:$LINENO: checking for shl_load" >&5
16685echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16686if test "${ac_cv_func_shl_load+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688else
16689 cat >conftest.$ac_ext <<_ACEOF
16690/* confdefs.h. */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h. */
16695/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16697#define shl_load innocuous_shl_load
16698
16699/* System header to define __stub macros and hopefully few prototypes,
16700 which can conflict with char shl_load (); below.
16701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16702 <limits.h> exists even on freestanding compilers. */
16703
16704#ifdef __STDC__
16705# include <limits.h>
16706#else
16707# include <assert.h>
16708#endif
16709
16710#undef shl_load
16711
16712/* Override any gcc2 internal prototype to avoid an error. */
16713#ifdef __cplusplus
16714extern "C"
16715{
16716#endif
16717/* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719char shl_load ();
16720/* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723#if defined (__stub_shl_load) || defined (__stub___shl_load)
16724choke me
16725#else
16726char (*f) () = shl_load;
16727#endif
16728#ifdef __cplusplus
16729}
16730#endif
16731
16732int
16733main ()
16734{
16735return f != shl_load;
16736 ;
16737 return 0;
16738}
16739_ACEOF
16740rm -f conftest.$ac_objext conftest$ac_exeext
16741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16742 (eval $ac_link) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_func_shl_load=yes
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766ac_cv_func_shl_load=no
16767fi
16768rm -f conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16770fi
16771echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16772echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16773if test $ac_cv_func_shl_load = yes; then
16774 lt_cv_dlopen="shl_load"
16775else
16776 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16777echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16778if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780else
16781 ac_check_lib_save_LIBS=$LIBS
16782LIBS="-ldld $LIBS"
16783cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789
16790/* Override any gcc2 internal prototype to avoid an error. */
16791#ifdef __cplusplus
16792extern "C"
16793#endif
16794/* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16796char shl_load ();
16797int
16798main ()
16799{
16800shl_load ();
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext conftest$ac_exeext
16806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807 (eval $ac_link) 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_lib_dld_shl_load=yes
16827else
16828 echo "$as_me: failed program was:" >&5
16829sed 's/^/| /' conftest.$ac_ext >&5
16830
16831ac_cv_lib_dld_shl_load=no
16832fi
16833rm -f conftest.err conftest.$ac_objext \
16834 conftest$ac_exeext conftest.$ac_ext
16835LIBS=$ac_check_lib_save_LIBS
16836fi
16837echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16838echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16839if test $ac_cv_lib_dld_shl_load = yes; then
16840 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16841else
16842 echo "$as_me:$LINENO: checking for dlopen" >&5
16843echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16844if test "${ac_cv_func_dlopen+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847 cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16855#define dlopen innocuous_dlopen
16856
16857/* System header to define __stub macros and hopefully few prototypes,
16858 which can conflict with char dlopen (); below.
16859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860 <limits.h> exists even on freestanding compilers. */
16861
16862#ifdef __STDC__
16863# include <limits.h>
16864#else
16865# include <assert.h>
16866#endif
16867
16868#undef dlopen
16869
16870/* Override any gcc2 internal prototype to avoid an error. */
16871#ifdef __cplusplus
16872extern "C"
16873{
16874#endif
16875/* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877char dlopen ();
16878/* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881#if defined (__stub_dlopen) || defined (__stub___dlopen)
16882choke me
16883#else
16884char (*f) () = dlopen;
16885#endif
16886#ifdef __cplusplus
16887}
16888#endif
16889
16890int
16891main ()
16892{
16893return f != dlopen;
16894 ;
16895 return 0;
16896}
16897_ACEOF
16898rm -f conftest.$ac_objext conftest$ac_exeext
16899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_func_dlopen=yes
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924ac_cv_func_dlopen=no
16925fi
16926rm -f conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928fi
16929echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16930echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16931if test $ac_cv_func_dlopen = yes; then
16932 lt_cv_dlopen="dlopen"
16933else
16934 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938else
16939 ac_check_lib_save_LIBS=$LIBS
16940LIBS="-ldl $LIBS"
16941cat >conftest.$ac_ext <<_ACEOF
16942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
16947
16948/* Override any gcc2 internal prototype to avoid an error. */
16949#ifdef __cplusplus
16950extern "C"
16951#endif
16952/* We use char because int might match the return type of a gcc2
16953 builtin and then its argument prototype would still apply. */
16954char dlopen ();
16955int
16956main ()
16957{
16958dlopen ();
16959 ;
16960 return 0;
16961}
16962_ACEOF
16963rm -f conftest.$ac_objext conftest$ac_exeext
16964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_cv_lib_dl_dlopen=yes
16985else
16986 echo "$as_me: failed program was:" >&5
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
16989ac_cv_lib_dl_dlopen=no
16990fi
16991rm -f conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16993LIBS=$ac_check_lib_save_LIBS
16994fi
16995echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16996echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16997if test $ac_cv_lib_dl_dlopen = yes; then
16998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16999else
17000 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17001echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17002if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17004else
17005 ac_check_lib_save_LIBS=$LIBS
17006LIBS="-lsvld $LIBS"
17007cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013
17014/* Override any gcc2 internal prototype to avoid an error. */
17015#ifdef __cplusplus
17016extern "C"
17017#endif
17018/* We use char because int might match the return type of a gcc2
17019 builtin and then its argument prototype would still apply. */
17020char dlopen ();
17021int
17022main ()
17023{
17024dlopen ();
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext conftest$ac_exeext
17030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_lib_svld_dlopen=yes
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_cv_lib_svld_dlopen=no
17056fi
17057rm -f conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059LIBS=$ac_check_lib_save_LIBS
17060fi
17061echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17062echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17063if test $ac_cv_lib_svld_dlopen = yes; then
17064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17065else
17066 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17067echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17068if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 ac_check_lib_save_LIBS=$LIBS
17072LIBS="-ldld $LIBS"
17073cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
17079
17080/* Override any gcc2 internal prototype to avoid an error. */
17081#ifdef __cplusplus
17082extern "C"
17083#endif
17084/* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17086char dld_link ();
17087int
17088main ()
17089{
17090dld_link ();
17091 ;
17092 return 0;
17093}
17094_ACEOF
17095rm -f conftest.$ac_objext conftest$ac_exeext
17096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest$ac_exeext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_lib_dld_dld_link=yes
17117else
17118 echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121ac_cv_lib_dld_dld_link=no
17122fi
17123rm -f conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125LIBS=$ac_check_lib_save_LIBS
17126fi
17127echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17128echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17129if test $ac_cv_lib_dld_dld_link = yes; then
17130 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17131fi
17132
17133
17134fi
17135
17136
17137fi
17138
17139
17140fi
17141
17142
17143fi
17144
17145
17146fi
17147
17148 ;;
17149 esac
17150
17151 if test "x$lt_cv_dlopen" != xno; then
17152 enable_dlopen=yes
17153 else
17154 enable_dlopen=no
17155 fi
17156
17157 case $lt_cv_dlopen in
17158 dlopen)
17159 save_CPPFLAGS="$CPPFLAGS"
17160 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17161
17162 save_LDFLAGS="$LDFLAGS"
17163 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17164
17165 save_LIBS="$LIBS"
17166 LIBS="$lt_cv_dlopen_libs $LIBS"
17167
17168 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17169echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17170if test "${lt_cv_dlopen_self+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 if test "$cross_compiling" = yes; then :
17174 lt_cv_dlopen_self=cross
17175else
17176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17177 lt_status=$lt_dlunknown
17178 cat > conftest.$ac_ext <<EOF
17179#line 17179 "configure"
17180#include "confdefs.h"
17181
17182#if HAVE_DLFCN_H
17183#include <dlfcn.h>
17184#endif
17185
17186#include <stdio.h>
17187
17188#ifdef RTLD_GLOBAL
17189# define LT_DLGLOBAL RTLD_GLOBAL
17190#else
17191# ifdef DL_GLOBAL
17192# define LT_DLGLOBAL DL_GLOBAL
17193# else
17194# define LT_DLGLOBAL 0
17195# endif
17196#endif
17197
17198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17199 find out it does not work in some platform. */
17200#ifndef LT_DLLAZY_OR_NOW
17201# ifdef RTLD_LAZY
17202# define LT_DLLAZY_OR_NOW RTLD_LAZY
17203# else
17204# ifdef DL_LAZY
17205# define LT_DLLAZY_OR_NOW DL_LAZY
17206# else
17207# ifdef RTLD_NOW
17208# define LT_DLLAZY_OR_NOW RTLD_NOW
17209# else
17210# ifdef DL_NOW
17211# define LT_DLLAZY_OR_NOW DL_NOW
17212# else
17213# define LT_DLLAZY_OR_NOW 0
17214# endif
17215# endif
17216# endif
17217# endif
17218#endif
17219
17220#ifdef __cplusplus
17221extern "C" void exit (int);
17222#endif
17223
17224void fnord() { int i=42;}
17225int main ()
17226{
17227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17228 int status = $lt_dlunknown;
17229
17230 if (self)
17231 {
17232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17234 /* dlclose (self); */
17235 }
17236
17237 exit (status);
17238}
17239EOF
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17245 (./conftest; exit; ) 2>/dev/null
17246 lt_status=$?
17247 case x$lt_status in
17248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17250 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17251 esac
17252 else :
17253 # compilation failed
17254 lt_cv_dlopen_self=no
17255 fi
17256fi
17257rm -fr conftest*
17258
17259
17260fi
17261echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17262echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17263
17264 if test "x$lt_cv_dlopen_self" = xyes; then
17265 LDFLAGS="$LDFLAGS $link_static_flag"
17266 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17267echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17268if test "${lt_cv_dlopen_self_static+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271 if test "$cross_compiling" = yes; then :
17272 lt_cv_dlopen_self_static=cross
17273else
17274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17275 lt_status=$lt_dlunknown
17276 cat > conftest.$ac_ext <<EOF
17277#line 17277 "configure"
17278#include "confdefs.h"
17279
17280#if HAVE_DLFCN_H
17281#include <dlfcn.h>
17282#endif
17283
17284#include <stdio.h>
17285
17286#ifdef RTLD_GLOBAL
17287# define LT_DLGLOBAL RTLD_GLOBAL
17288#else
17289# ifdef DL_GLOBAL
17290# define LT_DLGLOBAL DL_GLOBAL
17291# else
17292# define LT_DLGLOBAL 0
17293# endif
17294#endif
17295
17296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17297 find out it does not work in some platform. */
17298#ifndef LT_DLLAZY_OR_NOW
17299# ifdef RTLD_LAZY
17300# define LT_DLLAZY_OR_NOW RTLD_LAZY
17301# else
17302# ifdef DL_LAZY
17303# define LT_DLLAZY_OR_NOW DL_LAZY
17304# else
17305# ifdef RTLD_NOW
17306# define LT_DLLAZY_OR_NOW RTLD_NOW
17307# else
17308# ifdef DL_NOW
17309# define LT_DLLAZY_OR_NOW DL_NOW
17310# else
17311# define LT_DLLAZY_OR_NOW 0
17312# endif
17313# endif
17314# endif
17315# endif
17316#endif
17317
17318#ifdef __cplusplus
17319extern "C" void exit (int);
17320#endif
17321
17322void fnord() { int i=42;}
17323int main ()
17324{
17325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17326 int status = $lt_dlunknown;
17327
17328 if (self)
17329 {
17330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17332 /* dlclose (self); */
17333 }
17334
17335 exit (status);
17336}
17337EOF
17338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339 (eval $ac_link) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17343 (./conftest; exit; ) 2>/dev/null
17344 lt_status=$?
17345 case x$lt_status in
17346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17348 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17349 esac
17350 else :
17351 # compilation failed
17352 lt_cv_dlopen_self_static=no
17353 fi
17354fi
17355rm -fr conftest*
17356
17357
17358fi
17359echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17361 fi
17362
17363 CPPFLAGS="$save_CPPFLAGS"
17364 LDFLAGS="$save_LDFLAGS"
17365 LIBS="$save_LIBS"
17366 ;;
17367 esac
17368
17369 case $lt_cv_dlopen_self in
17370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17371 *) enable_dlopen_self=unknown ;;
17372 esac
17373
17374 case $lt_cv_dlopen_self_static in
17375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17376 *) enable_dlopen_self_static=unknown ;;
17377 esac
17378fi
17379
17380
17381# The else clause should only fire when bootstrapping the
17382# libtool distribution, otherwise you forgot to ship ltmain.sh
17383# with your package, and you will get complaints that there are
17384# no rules to generate ltmain.sh.
17385if test -f "$ltmain"; then
17386 # See if we are running on zsh, and set the options which allow our commands through
17387 # without removal of \ escapes.
17388 if test -n "${ZSH_VERSION+set}" ; then
17389 setopt NO_GLOB_SUBST
17390 fi
17391 # Now quote all the things that may contain metacharacters while being
17392 # careful not to overquote the AC_SUBSTed values. We take copies of the
17393 # variables and quote the copies for generation of the libtool script.
17394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17395 SED SHELL STRIP \
17396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17398 deplibs_check_method reload_flag reload_cmds need_locks \
17399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17400 lt_cv_sys_global_symbol_to_c_name_address \
17401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17402 old_postinstall_cmds old_postuninstall_cmds \
17403 compiler_GCJ \
17404 CC_GCJ \
17405 LD_GCJ \
17406 lt_prog_compiler_wl_GCJ \
17407 lt_prog_compiler_pic_GCJ \
17408 lt_prog_compiler_static_GCJ \
17409 lt_prog_compiler_no_builtin_flag_GCJ \
17410 export_dynamic_flag_spec_GCJ \
17411 thread_safe_flag_spec_GCJ \
17412 whole_archive_flag_spec_GCJ \
17413 enable_shared_with_static_runtimes_GCJ \
17414 old_archive_cmds_GCJ \
17415 old_archive_from_new_cmds_GCJ \
17416 predep_objects_GCJ \
17417 postdep_objects_GCJ \
17418 predeps_GCJ \
17419 postdeps_GCJ \
17420 compiler_lib_search_path_GCJ \
17421 archive_cmds_GCJ \
17422 archive_expsym_cmds_GCJ \
17423 postinstall_cmds_GCJ \
17424 postuninstall_cmds_GCJ \
17425 old_archive_from_expsyms_cmds_GCJ \
17426 allow_undefined_flag_GCJ \
17427 no_undefined_flag_GCJ \
17428 export_symbols_cmds_GCJ \
17429 hardcode_libdir_flag_spec_GCJ \
17430 hardcode_libdir_flag_spec_ld_GCJ \
17431 hardcode_libdir_separator_GCJ \
17432 hardcode_automatic_GCJ \
17433 module_cmds_GCJ \
17434 module_expsym_cmds_GCJ \
17435 lt_cv_prog_compiler_c_o_GCJ \
17436 exclude_expsyms_GCJ \
17437 include_expsyms_GCJ; do
17438
17439 case $var in
17440 old_archive_cmds_GCJ | \
17441 old_archive_from_new_cmds_GCJ | \
17442 archive_cmds_GCJ | \
17443 archive_expsym_cmds_GCJ | \
17444 module_cmds_GCJ | \
17445 module_expsym_cmds_GCJ | \
17446 old_archive_from_expsyms_cmds_GCJ | \
17447 export_symbols_cmds_GCJ | \
17448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17449 postinstall_cmds | postuninstall_cmds | \
17450 old_postinstall_cmds | old_postuninstall_cmds | \
17451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17452 # Double-quote double-evaled strings.
17453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17454 ;;
17455 *)
17456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17457 ;;
17458 esac
17459 done
17460
17461 case $lt_echo in
17462 *'\$0 --fallback-echo"')
17463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17464 ;;
17465 esac
17466
17467cfgfile="$ofile"
17468
17469 cat <<__EOF__ >> "$cfgfile"
17470# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17471
17472# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17473
17474# Shell to use when invoking shell scripts.
17475SHELL=$lt_SHELL
17476
17477# Whether or not to build shared libraries.
17478build_libtool_libs=$enable_shared
17479
17480# Whether or not to build static libraries.
17481build_old_libs=$enable_static
17482
17483# Whether or not to add -lc for building shared libraries.
17484build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17485
17486# Whether or not to disallow shared libs when runtime libs are static
17487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17488
17489# Whether or not to optimize for fast installation.
17490fast_install=$enable_fast_install
17491
17492# The host system.
17493host_alias=$host_alias
17494host=$host
17495
17496# An echo program that does not interpret backslashes.
17497echo=$lt_echo
17498
17499# The archiver.
17500AR=$lt_AR
17501AR_FLAGS=$lt_AR_FLAGS
17502
17503# A C compiler.
17504LTCC=$lt_LTCC
17505
17506# A language-specific compiler.
17507CC=$lt_compiler_GCJ
17508
17509# Is the compiler the GNU C compiler?
17510with_gcc=$GCC_GCJ
17511
17512# An ERE matcher.
17513EGREP=$lt_EGREP
17514
17515# The linker used to build libraries.
17516LD=$lt_LD_GCJ
17517
17518# Whether we need hard or soft links.
17519LN_S=$lt_LN_S
17520
17521# A BSD-compatible nm program.
17522NM=$lt_NM
17523
17524# A symbol stripping program
17525STRIP=$lt_STRIP
17526
17527# Used to examine libraries when file_magic_cmd begins "file"
17528MAGIC_CMD=$MAGIC_CMD
17529
17530# Used on cygwin: DLL creation program.
17531DLLTOOL="$DLLTOOL"
17532
17533# Used on cygwin: object dumper.
17534OBJDUMP="$OBJDUMP"
17535
17536# Used on cygwin: assembler.
17537AS="$AS"
17538
17539# The name of the directory that contains temporary libtool files.
17540objdir=$objdir
17541
17542# How to create reloadable object files.
17543reload_flag=$lt_reload_flag
17544reload_cmds=$lt_reload_cmds
17545
17546# How to pass a linker flag through the compiler.
17547wl=$lt_lt_prog_compiler_wl_GCJ
17548
17549# Object file suffix (normally "o").
17550objext="$ac_objext"
17551
17552# Old archive suffix (normally "a").
17553libext="$libext"
17554
17555# Shared library suffix (normally ".so").
17556shrext='$shrext'
17557
17558# Executable file suffix (normally "").
17559exeext="$exeext"
17560
17561# Additional compiler flags for building library objects.
17562pic_flag=$lt_lt_prog_compiler_pic_GCJ
17563pic_mode=$pic_mode
17564
17565# What is the maximum length of a command?
17566max_cmd_len=$lt_cv_sys_max_cmd_len
17567
17568# Does compiler simultaneously support -c and -o options?
17569compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17570
17571# Must we lock files when doing compilation ?
17572need_locks=$lt_need_locks
17573
17574# Do we need the lib prefix for modules?
17575need_lib_prefix=$need_lib_prefix
17576
17577# Do we need a version for libraries?
17578need_version=$need_version
17579
17580# Whether dlopen is supported.
17581dlopen_support=$enable_dlopen
17582
17583# Whether dlopen of programs is supported.
17584dlopen_self=$enable_dlopen_self
17585
17586# Whether dlopen of statically linked programs is supported.
17587dlopen_self_static=$enable_dlopen_self_static
17588
17589# Compiler flag to prevent dynamic linking.
17590link_static_flag=$lt_lt_prog_compiler_static_GCJ
17591
17592# Compiler flag to turn off builtin functions.
17593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17594
17595# Compiler flag to allow reflexive dlopens.
17596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17597
17598# Compiler flag to generate shared objects directly from archives.
17599whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17600
17601# Compiler flag to generate thread-safe objects.
17602thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17603
17604# Library versioning type.
17605version_type=$version_type
17606
17607# Format of library name prefix.
17608libname_spec=$lt_libname_spec
17609
17610# List of archive names. First name is the real one, the rest are links.
17611# The last name is the one that the linker finds with -lNAME.
17612library_names_spec=$lt_library_names_spec
17613
17614# The coded name of the library, if different from the real name.
17615soname_spec=$lt_soname_spec
17616
17617# Commands used to build and install an old-style archive.
17618RANLIB=$lt_RANLIB
17619old_archive_cmds=$lt_old_archive_cmds_GCJ
17620old_postinstall_cmds=$lt_old_postinstall_cmds
17621old_postuninstall_cmds=$lt_old_postuninstall_cmds
17622
17623# Create an old-style archive from a shared archive.
17624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17625
17626# Create a temporary old-style archive to link instead of a shared archive.
17627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17628
17629# Commands used to build and install a shared archive.
17630archive_cmds=$lt_archive_cmds_GCJ
17631archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17632postinstall_cmds=$lt_postinstall_cmds
17633postuninstall_cmds=$lt_postuninstall_cmds
17634
17635# Commands used to build a loadable module (assumed same as above if empty)
17636module_cmds=$lt_module_cmds_GCJ
17637module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17638
17639# Commands to strip libraries.
17640old_striplib=$lt_old_striplib
17641striplib=$lt_striplib
17642
17643# Dependencies to place before the objects being linked to create a
17644# shared library.
17645predep_objects=$lt_predep_objects_GCJ
17646
17647# Dependencies to place after the objects being linked to create a
17648# shared library.
17649postdep_objects=$lt_postdep_objects_GCJ
17650
17651# Dependencies to place before the objects being linked to create a
17652# shared library.
17653predeps=$lt_predeps_GCJ
17654
17655# Dependencies to place after the objects being linked to create a
17656# shared library.
17657postdeps=$lt_postdeps_GCJ
17658
17659# The library search path used internally by the compiler when linking
17660# a shared library.
17661compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17662
17663# Method to check whether dependent libraries are shared objects.
17664deplibs_check_method=$lt_deplibs_check_method
17665
17666# Command to use when deplibs_check_method == file_magic.
17667file_magic_cmd=$lt_file_magic_cmd
17668
17669# Flag that allows shared libraries with undefined symbols to be built.
17670allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17671
17672# Flag that forces no undefined symbols.
17673no_undefined_flag=$lt_no_undefined_flag_GCJ
17674
17675# Commands used to finish a libtool library installation in a directory.
17676finish_cmds=$lt_finish_cmds
17677
17678# Same as above, but a single script fragment to be evaled but not shown.
17679finish_eval=$lt_finish_eval
17680
17681# Take the output of nm and produce a listing of raw symbols and C names.
17682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17683
17684# Transform the output of nm in a proper C declaration
17685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17686
17687# Transform the output of nm in a C name address pair
17688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17689
17690# This is the shared library runtime path variable.
17691runpath_var=$runpath_var
17692
17693# This is the shared library path variable.
17694shlibpath_var=$shlibpath_var
17695
17696# Is shlibpath searched before the hard-coded library search path?
17697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17698
17699# How to hardcode a shared library path into an executable.
17700hardcode_action=$hardcode_action_GCJ
17701
17702# Whether we should hardcode library paths into libraries.
17703hardcode_into_libs=$hardcode_into_libs
17704
17705# Flag to hardcode \$libdir into a binary during linking.
17706# This must work even if \$libdir does not exist.
17707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17708
17709# If ld is used when linking, flag to hardcode \$libdir into
17710# a binary during linking. This must work even if \$libdir does
17711# not exist.
17712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17713
17714# Whether we need a single -rpath flag with a separated argument.
17715hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17716
17717# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17718# resulting binary.
17719hardcode_direct=$hardcode_direct_GCJ
17720
17721# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17722# resulting binary.
17723hardcode_minus_L=$hardcode_minus_L_GCJ
17724
17725# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17726# the resulting binary.
17727hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17728
17729# Set to yes if building a shared library automatically hardcodes DIR into the library
17730# and all subsequent libraries and executables linked against it.
17731hardcode_automatic=$hardcode_automatic_GCJ
17732
17733# Variables whose values should be saved in libtool wrapper scripts and
17734# restored at relink time.
17735variables_saved_for_relink="$variables_saved_for_relink"
17736
17737# Whether libtool must link a program against all its dependency libraries.
17738link_all_deplibs=$link_all_deplibs_GCJ
17739
17740# Compile-time system search path for libraries
17741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17742
17743# Run-time system search path for libraries
17744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17745
17746# Fix the shell variable \$srcfile for the compiler.
17747fix_srcfile_path="$fix_srcfile_path_GCJ"
17748
17749# Set to yes if exported symbols are required.
17750always_export_symbols=$always_export_symbols_GCJ
17751
17752# The commands to list exported symbols.
17753export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17754
17755# The commands to extract the exported symbol list from a shared archive.
17756extract_expsyms_cmds=$lt_extract_expsyms_cmds
17757
17758# Symbols that should not be listed in the preloaded symbols.
17759exclude_expsyms=$lt_exclude_expsyms_GCJ
17760
17761# Symbols that must always be exported.
17762include_expsyms=$lt_include_expsyms_GCJ
17763
17764# ### END LIBTOOL TAG CONFIG: $tagname
17765
17766__EOF__
17767
17768
17769else
17770 # If there is no Makefile yet, we rely on a make rule to execute
17771 # `config.status --recheck' to rerun these tests and create the
17772 # libtool script then.
17773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17774 if test -f "$ltmain_in"; then
17775 test -f Makefile && make "$ltmain"
17776 fi
17777fi
17778
17779
17780ac_ext=c
17781ac_cpp='$CPP $CPPFLAGS'
17782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784ac_compiler_gnu=$ac_cv_c_compiler_gnu
17785
17786CC="$lt_save_CC"
17787
17788 else
17789 tagname=""
17790 fi
17791 ;;
17792
17793 RC)
17794
17795
17796
17797# Source file extension for RC test sources.
17798ac_ext=rc
17799
17800# Object file extension for compiled RC test sources.
17801objext=o
17802objext_RC=$objext
17803
17804# Code to be used in simple compile tests
17805lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17806
17807# Code to be used in simple link tests
17808lt_simple_link_test_code="$lt_simple_compile_test_code"
17809
17810# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17811
17812# If no C compiler was specified, use CC.
17813LTCC=${LTCC-"$CC"}
17814
17815# Allow CC to be a program name with arguments.
17816compiler=$CC
17817
17818
17819# Allow CC to be a program name with arguments.
17820lt_save_CC="$CC"
17821CC=${RC-"windres"}
17822compiler=$CC
17823compiler_RC=$CC
17824lt_cv_prog_compiler_c_o_RC=yes
17825
17826# The else clause should only fire when bootstrapping the
17827# libtool distribution, otherwise you forgot to ship ltmain.sh
17828# with your package, and you will get complaints that there are
17829# no rules to generate ltmain.sh.
17830if test -f "$ltmain"; then
17831 # See if we are running on zsh, and set the options which allow our commands through
17832 # without removal of \ escapes.
17833 if test -n "${ZSH_VERSION+set}" ; then
17834 setopt NO_GLOB_SUBST
17835 fi
17836 # Now quote all the things that may contain metacharacters while being
17837 # careful not to overquote the AC_SUBSTed values. We take copies of the
17838 # variables and quote the copies for generation of the libtool script.
17839 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17840 SED SHELL STRIP \
17841 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17842 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17843 deplibs_check_method reload_flag reload_cmds need_locks \
17844 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17845 lt_cv_sys_global_symbol_to_c_name_address \
17846 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17847 old_postinstall_cmds old_postuninstall_cmds \
17848 compiler_RC \
17849 CC_RC \
17850 LD_RC \
17851 lt_prog_compiler_wl_RC \
17852 lt_prog_compiler_pic_RC \
17853 lt_prog_compiler_static_RC \
17854 lt_prog_compiler_no_builtin_flag_RC \
17855 export_dynamic_flag_spec_RC \
17856 thread_safe_flag_spec_RC \
17857 whole_archive_flag_spec_RC \
17858 enable_shared_with_static_runtimes_RC \
17859 old_archive_cmds_RC \
17860 old_archive_from_new_cmds_RC \
17861 predep_objects_RC \
17862 postdep_objects_RC \
17863 predeps_RC \
17864 postdeps_RC \
17865 compiler_lib_search_path_RC \
17866 archive_cmds_RC \
17867 archive_expsym_cmds_RC \
17868 postinstall_cmds_RC \
17869 postuninstall_cmds_RC \
17870 old_archive_from_expsyms_cmds_RC \
17871 allow_undefined_flag_RC \
17872 no_undefined_flag_RC \
17873 export_symbols_cmds_RC \
17874 hardcode_libdir_flag_spec_RC \
17875 hardcode_libdir_flag_spec_ld_RC \
17876 hardcode_libdir_separator_RC \
17877 hardcode_automatic_RC \
17878 module_cmds_RC \
17879 module_expsym_cmds_RC \
17880 lt_cv_prog_compiler_c_o_RC \
17881 exclude_expsyms_RC \
17882 include_expsyms_RC; do
17883
17884 case $var in
17885 old_archive_cmds_RC | \
17886 old_archive_from_new_cmds_RC | \
17887 archive_cmds_RC | \
17888 archive_expsym_cmds_RC | \
17889 module_cmds_RC | \
17890 module_expsym_cmds_RC | \
17891 old_archive_from_expsyms_cmds_RC | \
17892 export_symbols_cmds_RC | \
17893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17894 postinstall_cmds | postuninstall_cmds | \
17895 old_postinstall_cmds | old_postuninstall_cmds | \
17896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17897 # Double-quote double-evaled strings.
17898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17899 ;;
17900 *)
17901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17902 ;;
17903 esac
17904 done
17905
17906 case $lt_echo in
17907 *'\$0 --fallback-echo"')
17908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17909 ;;
17910 esac
17911
17912cfgfile="$ofile"
17913
17914 cat <<__EOF__ >> "$cfgfile"
17915# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17916
17917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17918
17919# Shell to use when invoking shell scripts.
17920SHELL=$lt_SHELL
17921
17922# Whether or not to build shared libraries.
17923build_libtool_libs=$enable_shared
17924
17925# Whether or not to build static libraries.
17926build_old_libs=$enable_static
17927
17928# Whether or not to add -lc for building shared libraries.
17929build_libtool_need_lc=$archive_cmds_need_lc_RC
17930
17931# Whether or not to disallow shared libs when runtime libs are static
17932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17933
17934# Whether or not to optimize for fast installation.
17935fast_install=$enable_fast_install
17936
17937# The host system.
17938host_alias=$host_alias
17939host=$host
17940
17941# An echo program that does not interpret backslashes.
17942echo=$lt_echo
17943
17944# The archiver.
17945AR=$lt_AR
17946AR_FLAGS=$lt_AR_FLAGS
17947
17948# A C compiler.
17949LTCC=$lt_LTCC
17950
17951# A language-specific compiler.
17952CC=$lt_compiler_RC
17953
17954# Is the compiler the GNU C compiler?
17955with_gcc=$GCC_RC
17956
17957# An ERE matcher.
17958EGREP=$lt_EGREP
17959
17960# The linker used to build libraries.
17961LD=$lt_LD_RC
17962
17963# Whether we need hard or soft links.
17964LN_S=$lt_LN_S
17965
17966# A BSD-compatible nm program.
17967NM=$lt_NM
17968
17969# A symbol stripping program
17970STRIP=$lt_STRIP
17971
17972# Used to examine libraries when file_magic_cmd begins "file"
17973MAGIC_CMD=$MAGIC_CMD
17974
17975# Used on cygwin: DLL creation program.
17976DLLTOOL="$DLLTOOL"
17977
17978# Used on cygwin: object dumper.
17979OBJDUMP="$OBJDUMP"
17980
17981# Used on cygwin: assembler.
17982AS="$AS"
17983
17984# The name of the directory that contains temporary libtool files.
17985objdir=$objdir
17986
17987# How to create reloadable object files.
17988reload_flag=$lt_reload_flag
17989reload_cmds=$lt_reload_cmds
17990
17991# How to pass a linker flag through the compiler.
17992wl=$lt_lt_prog_compiler_wl_RC
17993
17994# Object file suffix (normally "o").
17995objext="$ac_objext"
17996
17997# Old archive suffix (normally "a").
17998libext="$libext"
17999
18000# Shared library suffix (normally ".so").
18001shrext='$shrext'
18002
18003# Executable file suffix (normally "").
18004exeext="$exeext"
18005
18006# Additional compiler flags for building library objects.
18007pic_flag=$lt_lt_prog_compiler_pic_RC
18008pic_mode=$pic_mode
18009
18010# What is the maximum length of a command?
18011max_cmd_len=$lt_cv_sys_max_cmd_len
18012
18013# Does compiler simultaneously support -c and -o options?
18014compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18015
18016# Must we lock files when doing compilation ?
18017need_locks=$lt_need_locks
18018
18019# Do we need the lib prefix for modules?
18020need_lib_prefix=$need_lib_prefix
18021
18022# Do we need a version for libraries?
18023need_version=$need_version
18024
18025# Whether dlopen is supported.
18026dlopen_support=$enable_dlopen
18027
18028# Whether dlopen of programs is supported.
18029dlopen_self=$enable_dlopen_self
18030
18031# Whether dlopen of statically linked programs is supported.
18032dlopen_self_static=$enable_dlopen_self_static
18033
18034# Compiler flag to prevent dynamic linking.
18035link_static_flag=$lt_lt_prog_compiler_static_RC
18036
18037# Compiler flag to turn off builtin functions.
18038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18039
18040# Compiler flag to allow reflexive dlopens.
18041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18042
18043# Compiler flag to generate shared objects directly from archives.
18044whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18045
18046# Compiler flag to generate thread-safe objects.
18047thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18048
18049# Library versioning type.
18050version_type=$version_type
18051
18052# Format of library name prefix.
18053libname_spec=$lt_libname_spec
18054
18055# List of archive names. First name is the real one, the rest are links.
18056# The last name is the one that the linker finds with -lNAME.
18057library_names_spec=$lt_library_names_spec
18058
18059# The coded name of the library, if different from the real name.
18060soname_spec=$lt_soname_spec
18061
18062# Commands used to build and install an old-style archive.
18063RANLIB=$lt_RANLIB
18064old_archive_cmds=$lt_old_archive_cmds_RC
18065old_postinstall_cmds=$lt_old_postinstall_cmds
18066old_postuninstall_cmds=$lt_old_postuninstall_cmds
18067
18068# Create an old-style archive from a shared archive.
18069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18070
18071# Create a temporary old-style archive to link instead of a shared archive.
18072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18073
18074# Commands used to build and install a shared archive.
18075archive_cmds=$lt_archive_cmds_RC
18076archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18077postinstall_cmds=$lt_postinstall_cmds
18078postuninstall_cmds=$lt_postuninstall_cmds
18079
18080# Commands used to build a loadable module (assumed same as above if empty)
18081module_cmds=$lt_module_cmds_RC
18082module_expsym_cmds=$lt_module_expsym_cmds_RC
18083
18084# Commands to strip libraries.
18085old_striplib=$lt_old_striplib
18086striplib=$lt_striplib
18087
18088# Dependencies to place before the objects being linked to create a
18089# shared library.
18090predep_objects=$lt_predep_objects_RC
18091
18092# Dependencies to place after the objects being linked to create a
18093# shared library.
18094postdep_objects=$lt_postdep_objects_RC
18095
18096# Dependencies to place before the objects being linked to create a
18097# shared library.
18098predeps=$lt_predeps_RC
18099
18100# Dependencies to place after the objects being linked to create a
18101# shared library.
18102postdeps=$lt_postdeps_RC
18103
18104# The library search path used internally by the compiler when linking
18105# a shared library.
18106compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18107
18108# Method to check whether dependent libraries are shared objects.
18109deplibs_check_method=$lt_deplibs_check_method
18110
18111# Command to use when deplibs_check_method == file_magic.
18112file_magic_cmd=$lt_file_magic_cmd
18113
18114# Flag that allows shared libraries with undefined symbols to be built.
18115allow_undefined_flag=$lt_allow_undefined_flag_RC
18116
18117# Flag that forces no undefined symbols.
18118no_undefined_flag=$lt_no_undefined_flag_RC
18119
18120# Commands used to finish a libtool library installation in a directory.
18121finish_cmds=$lt_finish_cmds
18122
18123# Same as above, but a single script fragment to be evaled but not shown.
18124finish_eval=$lt_finish_eval
18125
18126# Take the output of nm and produce a listing of raw symbols and C names.
18127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18128
18129# Transform the output of nm in a proper C declaration
18130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18131
18132# Transform the output of nm in a C name address pair
18133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18134
18135# This is the shared library runtime path variable.
18136runpath_var=$runpath_var
18137
18138# This is the shared library path variable.
18139shlibpath_var=$shlibpath_var
18140
18141# Is shlibpath searched before the hard-coded library search path?
18142shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18143
18144# How to hardcode a shared library path into an executable.
18145hardcode_action=$hardcode_action_RC
18146
18147# Whether we should hardcode library paths into libraries.
18148hardcode_into_libs=$hardcode_into_libs
18149
18150# Flag to hardcode \$libdir into a binary during linking.
18151# This must work even if \$libdir does not exist.
18152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18153
18154# If ld is used when linking, flag to hardcode \$libdir into
18155# a binary during linking. This must work even if \$libdir does
18156# not exist.
18157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18158
18159# Whether we need a single -rpath flag with a separated argument.
18160hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18161
18162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18163# resulting binary.
18164hardcode_direct=$hardcode_direct_RC
18165
18166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18167# resulting binary.
18168hardcode_minus_L=$hardcode_minus_L_RC
18169
18170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18171# the resulting binary.
18172hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18173
18174# Set to yes if building a shared library automatically hardcodes DIR into the library
18175# and all subsequent libraries and executables linked against it.
18176hardcode_automatic=$hardcode_automatic_RC
18177
18178# Variables whose values should be saved in libtool wrapper scripts and
18179# restored at relink time.
18180variables_saved_for_relink="$variables_saved_for_relink"
18181
18182# Whether libtool must link a program against all its dependency libraries.
18183link_all_deplibs=$link_all_deplibs_RC
18184
18185# Compile-time system search path for libraries
18186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18187
18188# Run-time system search path for libraries
18189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18190
18191# Fix the shell variable \$srcfile for the compiler.
18192fix_srcfile_path="$fix_srcfile_path_RC"
18193
18194# Set to yes if exported symbols are required.
18195always_export_symbols=$always_export_symbols_RC
18196
18197# The commands to list exported symbols.
18198export_symbols_cmds=$lt_export_symbols_cmds_RC
18199
18200# The commands to extract the exported symbol list from a shared archive.
18201extract_expsyms_cmds=$lt_extract_expsyms_cmds
18202
18203# Symbols that should not be listed in the preloaded symbols.
18204exclude_expsyms=$lt_exclude_expsyms_RC
18205
18206# Symbols that must always be exported.
18207include_expsyms=$lt_include_expsyms_RC
18208
18209# ### END LIBTOOL TAG CONFIG: $tagname
18210
18211__EOF__
18212
18213
18214else
18215 # If there is no Makefile yet, we rely on a make rule to execute
18216 # `config.status --recheck' to rerun these tests and create the
18217 # libtool script then.
18218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18219 if test -f "$ltmain_in"; then
18220 test -f Makefile && make "$ltmain"
18221 fi
18222fi
18223
18224
18225ac_ext=c
18226ac_cpp='$CPP $CPPFLAGS'
18227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18229ac_compiler_gnu=$ac_cv_c_compiler_gnu
18230
18231CC="$lt_save_CC"
18232
18233 ;;
18234
18235 *)
18236 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18237echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18238 { (exit 1); exit 1; }; }
18239 ;;
18240 esac
18241
18242 # Append the new tag name to the list of available tags.
18243 if test -n "$tagname" ; then
18244 available_tags="$available_tags $tagname"
18245 fi
18246 fi
18247 done
18248 IFS="$lt_save_ifs"
18249
18250 # Now substitute the updated list of available tags.
18251 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18252 mv "${ofile}T" "$ofile"
18253 chmod +x "$ofile"
18254 else
18255 rm -f "${ofile}T"
18256 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18257echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18258 { (exit 1); exit 1; }; }
18259 fi
18260fi
drh71eb93e2001-09-28 01:34:43 +000018261
drh71eb93e2001-09-28 01:34:43 +000018262
drh71eb93e2001-09-28 01:34:43 +000018263
18264# This can be used to rebuild libtool when needed
18265LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18266
18267# Always use our own libtool.
18268LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18269
18270# Prevent multiple expansion
18271
a.rottmann84e63352003-03-24 09:42:16 +000018272
a.rottmann9bc8b932004-02-29 15:18:31 +000018273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
drh71eb93e2001-09-28 01:34:43 +000018291# Find a good install program. We prefer a C program (faster),
18292# so one script is as good as another. But avoid the broken or
18293# incompatible versions:
18294# SysV /etc/install, /usr/sbin/install
18295# SunOS /usr/etc/install
18296# IRIX /sbin/install
18297# AIX /bin/install
18298# AmigaOS /C/install, which installs bootblocks on floppy discs
18299# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18300# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18301# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018302# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018303# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018304echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18305echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018306if test -z "$INSTALL"; then
18307if test "${ac_cv_path_install+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
a.rottmann84e63352003-03-24 09:42:16 +000018310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18311for as_dir in $PATH
18312do
18313 IFS=$as_save_IFS
18314 test -z "$as_dir" && as_dir=.
18315 # Account for people who put trailing slashes in PATH elements.
18316case $as_dir/ in
18317 ./ | .// | /cC/* | \
18318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018319 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018320 /usr/ucb/* ) ;;
18321 *)
18322 # OSF1 and SCO ODT 3.0 have their own names for install.
18323 # Don't use installbsd from OSF since it installs stuff as root
18324 # by default.
18325 for ac_prog in ginstall scoinst install; do
18326 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018327 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18328 if test $ac_prog = install &&
18329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18330 # AIX install. It has an incompatible calling convention.
18331 :
18332 elif test $ac_prog = install &&
18333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18334 # program-specific install script used by HP pwplus--don't use.
18335 :
18336 else
18337 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18338 break 3
18339 fi
18340 fi
drh71eb93e2001-09-28 01:34:43 +000018341 done
a.rottmann84e63352003-03-24 09:42:16 +000018342 done
18343 ;;
18344esac
18345done
18346
drh71eb93e2001-09-28 01:34:43 +000018347
18348fi
18349 if test "${ac_cv_path_install+set}" = set; then
18350 INSTALL=$ac_cv_path_install
18351 else
18352 # As a last resort, use the slow shell script. We don't cache a
18353 # path for INSTALL within a source directory, because that will
18354 # break other packages using the cache if that directory is
18355 # removed, or if the path is relative.
18356 INSTALL=$ac_install_sh
18357 fi
18358fi
a.rottmann84e63352003-03-24 09:42:16 +000018359echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018360echo "${ECHO_T}$INSTALL" >&6
18361
18362# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18363# It thinks the first close brace ends the variable substitution.
18364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18365
18366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18367
18368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18369
a.rottmann84e63352003-03-24 09:42:16 +000018370
drh75897232000-05-29 14:26:00 +000018371#########
18372# Set up an appropriate program prefix
18373#
18374if test "$program_prefix" = "NONE"; then
18375 program_prefix=""
18376fi
18377
a.rottmann84e63352003-03-24 09:42:16 +000018378
18379if test -f VERSION; then
18380 VERSION=`cat VERSION`
18381 echo "Version set to $VERSION"
18382fi
18383
18384
drh75897232000-05-29 14:26:00 +000018385#########
18386# Check to see if the --with-hints=FILE option is used. If there is none,
18387# then check for a files named "$host.hints" and ../$hosts.hints where
18388# $host is the hostname of the build system. If still no hints are
18389# found, try looking in $system.hints and ../$system.hints where
18390# $system is the result of uname -s.
18391#
drh71eb93e2001-09-28 01:34:43 +000018392
drh75897232000-05-29 14:26:00 +000018393# Check whether --with-hints or --without-hints was given.
18394if test "${with_hints+set}" = set; then
18395 withval="$with_hints"
18396 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018397fi;
drh75897232000-05-29 14:26:00 +000018398if test "$hints" = ""; then
18399 host=`hostname | sed 's/\..*//'`
18400 if test -r $host.hints; then
18401 hints=$host.hints
18402 else
18403 if test -r ../$host.hints; then
18404 hints=../$host.hints
18405 fi
18406 fi
18407fi
18408if test "$hints" = ""; then
18409 sys=`uname -s`
18410 if test -r $sys.hints; then
18411 hints=$sys.hints
18412 else
18413 if test -r ../$sys.hints; then
18414 hints=../$sys.hints
18415 fi
18416 fi
18417fi
18418if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018419 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018420echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018421 . $hints
18422fi
18423
18424#########
18425# Locate a compiler for the build machine. This compiler should
18426# generate command-line programs that run on the build machine.
18427#
18428default_build_cflags="-g"
18429if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018430 ac_ext=c
18431ac_cpp='$CPP $CPPFLAGS'
18432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434ac_compiler_gnu=$ac_cv_c_compiler_gnu
18435if test -n "$ac_tool_prefix"; then
18436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18437set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018438echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18440if test "${ac_cv_prog_CC+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018442else
18443 if test -n "$CC"; then
18444 ac_cv_prog_CC="$CC" # Let the user override the test.
18445else
a.rottmann84e63352003-03-24 09:42:16 +000018446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447for as_dir in $PATH
18448do
18449 IFS=$as_save_IFS
18450 test -z "$as_dir" && as_dir=.
18451 for ac_exec_ext in '' $ac_executable_extensions; do
18452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18455 break 2
18456 fi
18457done
drh71eb93e2001-09-28 01:34:43 +000018458done
18459
drh75897232000-05-29 14:26:00 +000018460fi
18461fi
drh71eb93e2001-09-28 01:34:43 +000018462CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018463if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018464 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018465echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018466else
a.rottmann84e63352003-03-24 09:42:16 +000018467 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018468echo "${ECHO_T}no" >&6
18469fi
18470
18471fi
18472if test -z "$ac_cv_prog_CC"; then
18473 ac_ct_CC=$CC
18474 # Extract the first word of "gcc", so it can be a program name with args.
18475set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018476echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 if test -n "$ac_ct_CC"; then
18482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18483else
a.rottmann84e63352003-03-24 09:42:16 +000018484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485for as_dir in $PATH
18486do
18487 IFS=$as_save_IFS
18488 test -z "$as_dir" && as_dir=.
18489 for ac_exec_ext in '' $ac_executable_extensions; do
18490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18491 ac_cv_prog_ac_ct_CC="gcc"
18492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18493 break 2
18494 fi
18495done
drh71eb93e2001-09-28 01:34:43 +000018496done
18497
18498fi
18499fi
18500ac_ct_CC=$ac_cv_prog_ac_ct_CC
18501if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018503echo "${ECHO_T}$ac_ct_CC" >&6
18504else
a.rottmann84e63352003-03-24 09:42:16 +000018505 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018506echo "${ECHO_T}no" >&6
18507fi
18508
18509 CC=$ac_ct_CC
18510else
18511 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018512fi
18513
18514if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018515 if test -n "$ac_tool_prefix"; then
18516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18517set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018518echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520if test "${ac_cv_prog_CC+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018522else
18523 if test -n "$CC"; then
18524 ac_cv_prog_CC="$CC" # Let the user override the test.
18525else
a.rottmann84e63352003-03-24 09:42:16 +000018526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18527for as_dir in $PATH
18528do
18529 IFS=$as_save_IFS
18530 test -z "$as_dir" && as_dir=.
18531 for ac_exec_ext in '' $ac_executable_extensions; do
18532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18533 ac_cv_prog_CC="${ac_tool_prefix}cc"
18534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18535 break 2
18536 fi
18537done
drh71eb93e2001-09-28 01:34:43 +000018538done
18539
18540fi
18541fi
18542CC=$ac_cv_prog_CC
18543if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018544 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018545echo "${ECHO_T}$CC" >&6
18546else
a.rottmann84e63352003-03-24 09:42:16 +000018547 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018548echo "${ECHO_T}no" >&6
18549fi
18550
18551fi
18552if test -z "$ac_cv_prog_CC"; then
18553 ac_ct_CC=$CC
18554 # Extract the first word of "cc", so it can be a program name with args.
18555set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018556echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560else
18561 if test -n "$ac_ct_CC"; then
18562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18563else
a.rottmann84e63352003-03-24 09:42:16 +000018564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18565for as_dir in $PATH
18566do
18567 IFS=$as_save_IFS
18568 test -z "$as_dir" && as_dir=.
18569 for ac_exec_ext in '' $ac_executable_extensions; do
18570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18571 ac_cv_prog_ac_ct_CC="cc"
18572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18573 break 2
18574 fi
18575done
drh71eb93e2001-09-28 01:34:43 +000018576done
18577
18578fi
18579fi
18580ac_ct_CC=$ac_cv_prog_ac_ct_CC
18581if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018583echo "${ECHO_T}$ac_ct_CC" >&6
18584else
a.rottmann84e63352003-03-24 09:42:16 +000018585 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018586echo "${ECHO_T}no" >&6
18587fi
18588
18589 CC=$ac_ct_CC
18590else
18591 CC="$ac_cv_prog_CC"
18592fi
18593
18594fi
18595if test -z "$CC"; then
18596 # Extract the first word of "cc", so it can be a program name with args.
18597set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018598echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18600if test "${ac_cv_prog_CC+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602else
18603 if test -n "$CC"; then
18604 ac_cv_prog_CC="$CC" # Let the user override the test.
18605else
drh75897232000-05-29 14:26:00 +000018606 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608for as_dir in $PATH
18609do
18610 IFS=$as_save_IFS
18611 test -z "$as_dir" && as_dir=.
18612 for ac_exec_ext in '' $ac_executable_extensions; do
18613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18615 ac_prog_rejected=yes
18616 continue
18617 fi
18618 ac_cv_prog_CC="cc"
18619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18620 break 2
18621 fi
18622done
drh71eb93e2001-09-28 01:34:43 +000018623done
18624
drh75897232000-05-29 14:26:00 +000018625if test $ac_prog_rejected = yes; then
18626 # We found a bogon in the path, so make sure we never use it.
18627 set dummy $ac_cv_prog_CC
18628 shift
drh71eb93e2001-09-28 01:34:43 +000018629 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018630 # We chose a different compiler from the bogus one.
18631 # However, it has the same basename, so the bogon will be chosen
18632 # first if we set CC to just the basename; use the full file name.
18633 shift
a.rottmann84e63352003-03-24 09:42:16 +000018634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018635 fi
18636fi
18637fi
18638fi
drh71eb93e2001-09-28 01:34:43 +000018639CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018640if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018641 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018642echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018643else
a.rottmann84e63352003-03-24 09:42:16 +000018644 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018645echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018646fi
18647
drh71eb93e2001-09-28 01:34:43 +000018648fi
18649if test -z "$CC"; then
18650 if test -n "$ac_tool_prefix"; then
18651 for ac_prog in cl
18652 do
18653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018655echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18657if test "${ac_cv_prog_CC+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018659else
18660 if test -n "$CC"; then
18661 ac_cv_prog_CC="$CC" # Let the user override the test.
18662else
a.rottmann84e63352003-03-24 09:42:16 +000018663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18673 fi
18674done
drh71eb93e2001-09-28 01:34:43 +000018675done
18676
drh75897232000-05-29 14:26:00 +000018677fi
18678fi
drh71eb93e2001-09-28 01:34:43 +000018679CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018680if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018681 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018682echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018683else
a.rottmann84e63352003-03-24 09:42:16 +000018684 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018685echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018686fi
18687
drh71eb93e2001-09-28 01:34:43 +000018688 test -n "$CC" && break
18689 done
18690fi
18691if test -z "$CC"; then
18692 ac_ct_CC=$CC
18693 for ac_prog in cl
18694do
18695 # Extract the first word of "$ac_prog", so it can be a program name with args.
18696set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018697echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701else
18702 if test -n "$ac_ct_CC"; then
18703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18704else
a.rottmann84e63352003-03-24 09:42:16 +000018705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706for as_dir in $PATH
18707do
18708 IFS=$as_save_IFS
18709 test -z "$as_dir" && as_dir=.
18710 for ac_exec_ext in '' $ac_executable_extensions; do
18711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712 ac_cv_prog_ac_ct_CC="$ac_prog"
18713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18714 break 2
18715 fi
18716done
drh71eb93e2001-09-28 01:34:43 +000018717done
drh75897232000-05-29 14:26:00 +000018718
drh71eb93e2001-09-28 01:34:43 +000018719fi
18720fi
18721ac_ct_CC=$ac_cv_prog_ac_ct_CC
18722if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018724echo "${ECHO_T}$ac_ct_CC" >&6
18725else
a.rottmann84e63352003-03-24 09:42:16 +000018726 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018727echo "${ECHO_T}no" >&6
18728fi
drh75897232000-05-29 14:26:00 +000018729
drh71eb93e2001-09-28 01:34:43 +000018730 test -n "$ac_ct_CC" && break
18731done
drh75897232000-05-29 14:26:00 +000018732
drh71eb93e2001-09-28 01:34:43 +000018733 CC=$ac_ct_CC
18734fi
18735
18736fi
18737
a.rottmann84e63352003-03-24 09:42:16 +000018738
18739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18740See \`config.log' for more details." >&5
18741echo "$as_me: error: no acceptable C compiler found in \$PATH
18742See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018743 { (exit 1); exit 1; }; }
18744
18745# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018746echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018747 "checking for C compiler version" >&5
18748ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018750 (eval $ac_compiler --version </dev/null >&5) 2>&5
18751 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018753 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018755 (eval $ac_compiler -v </dev/null >&5) 2>&5
18756 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018758 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018760 (eval $ac_compiler -V </dev/null >&5) 2>&5
18761 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018763 (exit $ac_status); }
18764
a.rottmann84e63352003-03-24 09:42:16 +000018765echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018766echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18767if test "${ac_cv_c_compiler_gnu+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769else
18770 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018776
drh71eb93e2001-09-28 01:34:43 +000018777int
18778main ()
18779{
18780#ifndef __GNUC__
18781 choke me
drh75897232000-05-29 14:26:00 +000018782#endif
drh75897232000-05-29 14:26:00 +000018783
drh71eb93e2001-09-28 01:34:43 +000018784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018790 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018791 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018796 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000018797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018805 (eval $ac_try) 2>&5
18806 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018808 (exit $ac_status); }; }; then
18809 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018810else
drh71eb93e2001-09-28 01:34:43 +000018811 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018812sed 's/^/| /' conftest.$ac_ext >&5
18813
drh71eb93e2001-09-28 01:34:43 +000018814ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018815fi
a.rottmann964dbb12004-02-26 19:47:42 +000018816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018817ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018818
drh71eb93e2001-09-28 01:34:43 +000018819fi
a.rottmann84e63352003-03-24 09:42:16 +000018820echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018821echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18822GCC=`test $ac_compiler_gnu = yes && echo yes`
18823ac_test_CFLAGS=${CFLAGS+set}
18824ac_save_CFLAGS=$CFLAGS
18825CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018826echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018827echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18828if test "${ac_cv_prog_cc_g+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018830else
drh71eb93e2001-09-28 01:34:43 +000018831 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018837
18838int
18839main ()
18840{
18841
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018848 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018849 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018854 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000018855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018863 (eval $ac_try) 2>&5
18864 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018866 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018867 ac_cv_prog_cc_g=yes
18868else
drh71eb93e2001-09-28 01:34:43 +000018869 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018870sed 's/^/| /' conftest.$ac_ext >&5
18871
drh71eb93e2001-09-28 01:34:43 +000018872ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018873fi
a.rottmann964dbb12004-02-26 19:47:42 +000018874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018875fi
a.rottmann84e63352003-03-24 09:42:16 +000018876echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018877echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018878if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018879 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018880elif test $ac_cv_prog_cc_g = yes; then
18881 if test "$GCC" = yes; then
18882 CFLAGS="-g -O2"
18883 else
18884 CFLAGS="-g"
18885 fi
18886else
18887 if test "$GCC" = yes; then
18888 CFLAGS="-O2"
18889 else
18890 CFLAGS=
18891 fi
18892fi
a.rottmann84e63352003-03-24 09:42:16 +000018893echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18894echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18895if test "${ac_cv_prog_cc_stdc+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18897else
18898 ac_cv_prog_cc_stdc=no
18899ac_save_CC=$CC
18900cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018901/* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
18906#include <stdarg.h>
18907#include <stdio.h>
18908#include <sys/types.h>
18909#include <sys/stat.h>
18910/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18911struct buf { int x; };
18912FILE * (*rcsopen) (struct buf *, struct stat *, int);
18913static char *e (p, i)
18914 char **p;
18915 int i;
18916{
18917 return p[i];
18918}
18919static char *f (char * (*g) (char **, int), char **p, ...)
18920{
18921 char *s;
18922 va_list v;
18923 va_start (v,p);
18924 s = g (p, va_arg (v,int));
18925 va_end (v);
18926 return s;
18927}
a.rottmann964dbb12004-02-26 19:47:42 +000018928
18929/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18930 function prototypes and stuff, but not '\xHH' hex character constants.
18931 These don't provoke an error unfortunately, instead are silently treated
18932 as 'x'. The following induces an error, until -std1 is added to get
18933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18934 array size at least. It's necessary to write '\x00'==0 to get something
18935 that's true only with -std1. */
18936int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18937
a.rottmann84e63352003-03-24 09:42:16 +000018938int test (int i, double x);
18939struct s1 {int (*f) (int a);};
18940struct s2 {int (*f) (double a);};
18941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18942int argc;
18943char **argv;
18944int
18945main ()
18946{
18947return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952# Don't try gcc -ansi; that turns off useful extensions and
18953# breaks some systems' header files.
18954# AIX -qlanglvl=ansi
18955# Ultrix and OSF/1 -std1
18956# HP-UX 10.20 and later -Ae
18957# HP-UX older versions -Aa -D_HPUX_SOURCE
18958# SVR4 -Xc -D__EXTENSIONS__
18959for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18960do
18961 CC="$ac_save_CC $ac_arg"
18962 rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018964 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000018965 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000018971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_prog_cc_stdc=$ac_arg
18984break
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989fi
a.rottmann964dbb12004-02-26 19:47:42 +000018990rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018991done
18992rm -f conftest.$ac_ext conftest.$ac_objext
18993CC=$ac_save_CC
18994
18995fi
18996
18997case "x$ac_cv_prog_cc_stdc" in
18998 x|xno)
18999 echo "$as_me:$LINENO: result: none needed" >&5
19000echo "${ECHO_T}none needed" >&6 ;;
19001 *)
19002 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19003echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19004 CC="$CC $ac_cv_prog_cc_stdc" ;;
19005esac
19006
drh71eb93e2001-09-28 01:34:43 +000019007# Some people use a C++ compiler to compile C. Since we use `exit',
19008# in C++ we need to declare it. In case someone uses the same compiler
19009# for both compiling C and C++ we need to have the C++ compiler decide
19010# the declaration of exit, since it's the most demanding environment.
19011cat >conftest.$ac_ext <<_ACEOF
19012#ifndef __cplusplus
19013 choke me
19014#endif
19015_ACEOF
19016rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019018 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019019 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019020 grep -v '^ *+' conftest.er1 >conftest.err
19021 rm -f conftest.er1
19022 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019024 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } &&
19031 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019033 (eval $ac_try) 2>&5
19034 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019036 (exit $ac_status); }; }; then
19037 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019038 '' \
drh71eb93e2001-09-28 01:34:43 +000019039 'extern "C" void std::exit (int) throw (); using std::exit;' \
19040 'extern "C" void std::exit (int); using std::exit;' \
19041 'extern "C" void exit (int) throw ();' \
19042 'extern "C" void exit (int);' \
19043 'void exit (int);'
19044do
19045 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019051$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019052#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019053int
19054main ()
19055{
19056exit (42);
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019063 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019064 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019069 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019078 (eval $ac_try) 2>&5
19079 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019081 (exit $ac_status); }; }; then
19082 :
19083else
19084 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019085sed 's/^/| /' conftest.$ac_ext >&5
19086
drh71eb93e2001-09-28 01:34:43 +000019087continue
19088fi
a.rottmann964dbb12004-02-26 19:47:42 +000019089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019090 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019096$ac_declaration
19097int
19098main ()
19099{
19100exit (42);
19101 ;
19102 return 0;
19103}
19104_ACEOF
19105rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019107 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019108 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019113 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019122 (eval $ac_try) 2>&5
19123 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019125 (exit $ac_status); }; }; then
19126 break
19127else
19128 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019129sed 's/^/| /' conftest.$ac_ext >&5
19130
drh71eb93e2001-09-28 01:34:43 +000019131fi
a.rottmann964dbb12004-02-26 19:47:42 +000019132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019133done
19134rm -f conftest*
19135if test -n "$ac_declaration"; then
19136 echo '#ifdef __cplusplus' >>confdefs.h
19137 echo $ac_declaration >>confdefs.h
19138 echo '#endif' >>confdefs.h
19139fi
19140
19141else
19142 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019143sed 's/^/| /' conftest.$ac_ext >&5
19144
drh71eb93e2001-09-28 01:34:43 +000019145fi
a.rottmann964dbb12004-02-26 19:47:42 +000019146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019147ac_ext=c
19148ac_cpp='$CPP $CPPFLAGS'
19149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019152
xdong28f79f72003-09-23 00:35:21 +000019153 if test "$cross_compiling" = "yes"; then
19154 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19155echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19156 { (exit 1); exit 1; }; }
19157 fi
drh75897232000-05-29 14:26:00 +000019158 BUILD_CC=$CC
19159 default_build_cflags=$CFLAGS
19160else
19161 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019162 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019163echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019164 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019165 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019166echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019167fi
a.rottmann84e63352003-03-24 09:42:16 +000019168echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019169echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019170if test "$config_BUILD_CFLAGS" != ""; then
19171 CFLAGS=$config_BUILD_CFLAGS
19172 BUILD_CFLAGS=$config_BUILD_CFLAGS
19173else
19174 BUILD_CFLAGS=$default_build_cflags
19175fi
a.rottmann84e63352003-03-24 09:42:16 +000019176echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019177echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019178if test "$config_BUILD_LIBS" != ""; then
19179 BUILD_LIBS=$config_BUILD_LIBS
19180fi
19181
a.rottmann84e63352003-03-24 09:42:16 +000019182
19183
19184
drh75897232000-05-29 14:26:00 +000019185##########
19186# Locate a compiler that converts C code into *.o files that run on
19187# the target machine.
19188#
a.rottmann84e63352003-03-24 09:42:16 +000019189echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019190echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019191if test "$config_TARGET_CC" != ""; then
19192 TARGET_CC=$config_TARGET_CC
19193else
19194 TARGET_CC=$BUILD_CC
19195fi
a.rottmann84e63352003-03-24 09:42:16 +000019196echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019197echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019198echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019199echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019200if test "$config_TARGET_CFLAGS" != ""; then
19201 TARGET_CFLAGS=$config_TARGET_CFLAGS
19202else
19203 TARGET_CFLAGS=$BUILD_CFLAGS
19204fi
a.rottmann84e63352003-03-24 09:42:16 +000019205echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019206echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019207echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019208echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019209if test "$config_TARGET_LINK" = ""; then
19210 TARGET_LINK=$TARGET_CC
19211else
19212 TARGET_LINK=$config_TARGET_LINK
19213fi
a.rottmann84e63352003-03-24 09:42:16 +000019214echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019215echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019216echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019217echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019218if test "$config_TARGET_TFLAGS" != ""; then
19219 TARGET_TFLAGS=$config_TARGET_TFLAGS
19220else
19221 TARGET_TFLAGS=$BUILD_CFLAGS
19222fi
19223if test "$config_TARGET_RANLIB" != ""; then
19224 TARGET_RANLIB=$config_TARGET_RANLIB
19225else
drh71eb93e2001-09-28 01:34:43 +000019226 if test -n "$ac_tool_prefix"; then
19227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019229echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19231if test "${ac_cv_prog_RANLIB+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019233else
19234 if test -n "$RANLIB"; then
19235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19236else
a.rottmann84e63352003-03-24 09:42:16 +000019237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19238for as_dir in $PATH
19239do
19240 IFS=$as_save_IFS
19241 test -z "$as_dir" && as_dir=.
19242 for ac_exec_ext in '' $ac_executable_extensions; do
19243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19246 break 2
19247 fi
19248done
drh71eb93e2001-09-28 01:34:43 +000019249done
19250
drh75897232000-05-29 14:26:00 +000019251fi
19252fi
drh71eb93e2001-09-28 01:34:43 +000019253RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019254if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019255 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019256echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019257else
a.rottmann84e63352003-03-24 09:42:16 +000019258 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019259echo "${ECHO_T}no" >&6
19260fi
19261
19262fi
19263if test -z "$ac_cv_prog_RANLIB"; then
19264 ac_ct_RANLIB=$RANLIB
19265 # Extract the first word of "ranlib", so it can be a program name with args.
19266set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019267echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 if test -n "$ac_ct_RANLIB"; then
19273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19274else
a.rottmann84e63352003-03-24 09:42:16 +000019275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276for as_dir in $PATH
19277do
19278 IFS=$as_save_IFS
19279 test -z "$as_dir" && as_dir=.
19280 for ac_exec_ext in '' $ac_executable_extensions; do
19281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282 ac_cv_prog_ac_ct_RANLIB="ranlib"
19283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19284 break 2
19285 fi
19286done
drh71eb93e2001-09-28 01:34:43 +000019287done
19288
19289 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19290fi
19291fi
19292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19293if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019294 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019295echo "${ECHO_T}$ac_ct_RANLIB" >&6
19296else
a.rottmann84e63352003-03-24 09:42:16 +000019297 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019298echo "${ECHO_T}no" >&6
19299fi
19300
19301 RANLIB=$ac_ct_RANLIB
19302else
19303 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019304fi
19305
19306 TARGET_RANLIB=$RANLIB
19307fi
19308if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019309 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019310else
19311 TARGET_AR='ar cr'
19312fi
a.rottmann84e63352003-03-24 09:42:16 +000019313echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019314echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019315
a.rottmann84e63352003-03-24 09:42:16 +000019316
19317
19318
19319
19320
19321
drh75897232000-05-29 14:26:00 +000019322# Set the $cross variable if we are cross-compiling. Make
19323# it 0 if we are not.
19324#
a.rottmann84e63352003-03-24 09:42:16 +000019325echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019326echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019327if test "$BUILD_CC" = "$TARGET_CC"; then
19328 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019329 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019330echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019331else
19332 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019333 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019334echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019335fi
19336
drh297ecf12001-04-05 15:57:13 +000019337##########
19338# Are we using UTF-8 or iso8859 encodings?
19339#
19340# Check whether --enable-utf8 or --disable-utf8 was given.
19341if test "${enable_utf8+set}" = set; then
19342 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +000019343
drh297ecf12001-04-05 15:57:13 +000019344else
19345 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +000019346fi;
a.rottmann84e63352003-03-24 09:42:16 +000019347echo "$as_me:$LINENO: checking character encoding" >&5
drh71eb93e2001-09-28 01:34:43 +000019348echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +000019349if test "$enable_utf8" = "no"; then
19350 ENCODING=ISO8859
a.rottmann84e63352003-03-24 09:42:16 +000019351 echo "$as_me:$LINENO: result: iso8859" >&5
drh71eb93e2001-09-28 01:34:43 +000019352echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +000019353else
19354 ENCODING=UTF8
a.rottmann84e63352003-03-24 09:42:16 +000019355 echo "$as_me:$LINENO: result: UTF-8" >&5
drh71eb93e2001-09-28 01:34:43 +000019356echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +000019357fi
19358
a.rottmann84e63352003-03-24 09:42:16 +000019359
paulb0208cc2003-04-13 18:26:49 +000019360##########
19361# Do we want to support in-ram databases for ATTACH DATABASE and sqlite_open
19362#
19363# Check whether --enable-incore-db or --disable-incore-db was given.
19364if test "${enable_incore_db+set}" = set; then
19365 enableval="$enable_incore_db"
19366
19367else
paul2dc96f92003-04-20 11:46:34 +000019368 enable_incore_db=yes
paulb0208cc2003-04-13 18:26:49 +000019369fi;
19370echo "$as_me:$LINENO: checking whether to support incore databases for attach and open" >&5
19371echo $ECHO_N "checking whether to support incore databases for attach and open... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +000019372if test "$enable_incore_db" = "no"; then
19373 INMEMORYDB=0
paulb0208cc2003-04-13 18:26:49 +000019374 echo "$as_me:$LINENO: result: no" >&5
19375echo "${ECHO_T}no" >&6
19376else
paul2dc96f92003-04-20 11:46:34 +000019377 INMEMORYDB=1
paulb0208cc2003-04-13 18:26:49 +000019378 echo "$as_me:$LINENO: result: yes" >&5
19379echo "${ECHO_T}yes" >&6
19380fi
19381
a.rottmann964dbb12004-02-26 19:47:42 +000019382
xdong28f79f72003-09-23 00:35:21 +000019383##########
19384# Do we want to support release
19385#
19386# Check whether --enable-releasemode or --disable-releasemode was given.
19387if test "${enable_releasemode+set}" = set; then
19388 enableval="$enable_releasemode"
19389
19390else
19391 enable_releasemode=no
19392fi;
19393echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19394echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19395if test "$enable_releasemode" = "no"; then
19396 ALLOWRELEASE=""
19397 echo "$as_me:$LINENO: result: no" >&5
19398echo "${ECHO_T}no" >&6
19399else
19400 ALLOWRELEASE="-release `cat VERSION`"
19401 echo "$as_me:$LINENO: result: yes" >&5
19402echo "${ECHO_T}yes" >&6
19403fi
paulb0208cc2003-04-13 18:26:49 +000019404
a.rottmann964dbb12004-02-26 19:47:42 +000019405
paulb0208cc2003-04-13 18:26:49 +000019406##########
19407# Do we want temporary databases in memory
19408#
19409# Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given.
19410if test "${enable_tempdb_in_ram+set}" = set; then
19411 enableval="$enable_tempdb_in_ram"
19412
19413else
paul2dc96f92003-04-20 11:46:34 +000019414 enable_tempdb_in_ram=no
paulb0208cc2003-04-13 18:26:49 +000019415fi;
19416echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19417echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +000019418case "$enable_tempdb_in_ram" in
paulb0208cc2003-04-13 18:26:49 +000019419 never )
paul2dc96f92003-04-20 11:46:34 +000019420 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019421 echo "$as_me:$LINENO: result: never" >&5
19422echo "${ECHO_T}never" >&6
19423 ;;
19424 no )
paul2dc96f92003-04-20 11:46:34 +000019425 INMEMORYDB=1
19426 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019427 echo "$as_me:$LINENO: result: no" >&5
19428echo "${ECHO_T}no" >&6
19429 ;;
19430 always )
paul2dc96f92003-04-20 11:46:34 +000019431 INMEMORYDB=1
19432 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019433 echo "$as_me:$LINENO: result: always" >&5
19434echo "${ECHO_T}always" >&6
19435 ;;
19436 * )
paul2dc96f92003-04-20 11:46:34 +000019437 INMEMORYDB=1
19438 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +000019439 echo "$as_me:$LINENO: result: yes" >&5
19440echo "${ECHO_T}yes" >&6
19441 ;;
19442esac
19443
19444
19445
paul2dc96f92003-04-20 11:46:34 +000019446
drh75897232000-05-29 14:26:00 +000019447###########
19448# Lots of things are different if we are compiling for Windows using
19449# the CYGWIN environment. So check for that special case and handle
19450# things accordingly.
19451#
a.rottmann84e63352003-03-24 09:42:16 +000019452echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019453echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019454if test "$config_BUILD_EXEEXT" = ".exe"; then
19455 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019456 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019457echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019458else
a.rottmann84e63352003-03-24 09:42:16 +000019459 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019460echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019461fi
19462if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019463
19464case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019465 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019466 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019467esac
drh75897232000-05-29 14:26:00 +000019468
drh75897232000-05-29 14:26:00 +000019469fi
19470if test "$CYGWIN" = "yes"; then
19471 BUILD_EXEEXT=.exe
19472else
dougcurrie6194a5f2003-12-19 20:09:51 +000019473 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019474fi
19475if test "$cross" = "0"; then
19476 TARGET_EXEEXT=$BUILD_EXEEXT
19477else
19478 TARGET_EXEEXT=$config_TARGET_EXEEXT
19479fi
19480if test "$TARGET_EXEEXT" = ".exe"; then
19481 OS_UNIX=0
19482 OS_WIN=1
19483 tclsubdir=win
19484else
19485 OS_UNIX=1
19486 OS_WIN=0
19487 tclsubdir=unix
19488fi
19489TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
19490
a.rottmann84e63352003-03-24 09:42:16 +000019491
19492
19493
19494
19495
drh75897232000-05-29 14:26:00 +000019496##########
19497# Extract generic linker options from the environment.
19498#
19499if test "$config_TARGET_LIBS" != ""; then
19500 TARGET_LIBS=$config_TARGET_LIBS
19501else
19502 TARGET_LIBS=""
19503fi
19504
a.rottmann84e63352003-03-24 09:42:16 +000019505
drh75897232000-05-29 14:26:00 +000019506##########
19507# Figure out what C libraries are required to compile Tcl programs.
19508#
19509if test "$config_TARGET_TCL_LIBS" != ""; then
19510 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
19511else
19512 if test "$with_tcl" != ""; then
19513 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
19514 fi
19515 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +000019516 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +000019517echo $ECHO_N "checking for sin... $ECHO_C" >&6
19518if test "${ac_cv_func_sin+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019520else
drh71eb93e2001-09-28 01:34:43 +000019521 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000019527/* Define sin to an innocuous variant, in case <limits.h> declares sin.
19528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19529#define sin innocuous_sin
19530
drh75897232000-05-29 14:26:00 +000019531/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000019532 which can conflict with char sin (); below.
19533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19534 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000019535
a.rottmann84e63352003-03-24 09:42:16 +000019536#ifdef __STDC__
19537# include <limits.h>
19538#else
19539# include <assert.h>
19540#endif
a.rottmann964dbb12004-02-26 19:47:42 +000019541
19542#undef sin
19543
drh75897232000-05-29 14:26:00 +000019544/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000019545#ifdef __cplusplus
19546extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000019547{
drh71eb93e2001-09-28 01:34:43 +000019548#endif
drh75897232000-05-29 14:26:00 +000019549/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000019550 builtin and then its argument prototype would still apply. */
19551char sin ();
drh75897232000-05-29 14:26:00 +000019552/* The GNU C library defines this for functions which it implements
19553 to always fail with ENOSYS. Some functions are actually named
19554 something starting with __ and the normal name is an alias. */
19555#if defined (__stub_sin) || defined (__stub___sin)
19556choke me
19557#else
a.rottmann84e63352003-03-24 09:42:16 +000019558char (*f) () = sin;
19559#endif
19560#ifdef __cplusplus
19561}
drh75897232000-05-29 14:26:00 +000019562#endif
19563
a.rottmann84e63352003-03-24 09:42:16 +000019564int
19565main ()
19566{
19567return f != sin;
drh71eb93e2001-09-28 01:34:43 +000019568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019574 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019575 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019580 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019589 (eval $ac_try) 2>&5
19590 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019592 (exit $ac_status); }; }; then
19593 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +000019594else
drh71eb93e2001-09-28 01:34:43 +000019595 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019596sed 's/^/| /' conftest.$ac_ext >&5
19597
drh71eb93e2001-09-28 01:34:43 +000019598ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +000019599fi
a.rottmann964dbb12004-02-26 19:47:42 +000019600rm -f conftest.err conftest.$ac_objext \
19601 conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000019602fi
a.rottmann84e63352003-03-24 09:42:16 +000019603echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +000019604echo "${ECHO_T}$ac_cv_func_sin" >&6
19605if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +000019606 LIBS=""
19607else
drh71eb93e2001-09-28 01:34:43 +000019608 LIBS="-lm"
drh75897232000-05-29 14:26:00 +000019609fi
19610
a.rottmann84e63352003-03-24 09:42:16 +000019611
19612echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +000019613echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19614if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019616else
drh71eb93e2001-09-28 01:34:43 +000019617 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +000019618LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019619cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019625
drh75897232000-05-29 14:26:00 +000019626/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000019627#ifdef __cplusplus
19628extern "C"
19629#endif
drh75897232000-05-29 14:26:00 +000019630/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000019631 builtin and then its argument prototype would still apply. */
19632char dlopen ();
19633int
19634main ()
19635{
19636dlopen ();
19637 ;
19638 return 0;
19639}
19640_ACEOF
19641rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019643 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019644 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019649 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019658 (eval $ac_try) 2>&5
19659 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019661 (exit $ac_status); }; }; then
19662 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +000019663else
drh71eb93e2001-09-28 01:34:43 +000019664 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019665sed 's/^/| /' conftest.$ac_ext >&5
19666
drh71eb93e2001-09-28 01:34:43 +000019667ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +000019668fi
a.rottmann964dbb12004-02-26 19:47:42 +000019669rm -f conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019671LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +000019672fi
a.rottmann84e63352003-03-24 09:42:16 +000019673echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +000019674echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19675if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +000019676 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019677#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +000019678_ACEOF
drh75897232000-05-29 14:26:00 +000019679
19680 LIBS="-ldl $LIBS"
19681
drh75897232000-05-29 14:26:00 +000019682fi
19683
19684 otherlibs=$LIBS
19685 if test "$extra" != ""; then
19686 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +000019687 else
drh75897232000-05-29 14:26:00 +000019688 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +000019689 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +000019690echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
19691if test "${ac_cv_search_Tcl_Init+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019693else
drh71eb93e2001-09-28 01:34:43 +000019694 ac_func_search_save_LIBS=$LIBS
19695ac_cv_search_Tcl_Init=no
19696cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019702
drh71eb93e2001-09-28 01:34:43 +000019703/* Override any gcc2 internal prototype to avoid an error. */
19704#ifdef __cplusplus
19705extern "C"
19706#endif
19707/* We use char because int might match the return type of a gcc2
19708 builtin and then its argument prototype would still apply. */
19709char Tcl_Init ();
19710int
19711main ()
19712{
19713Tcl_Init ();
19714 ;
19715 return 0;
19716}
19717_ACEOF
19718rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019720 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019721 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019726 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; } &&
19733 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019735 (eval $ac_try) 2>&5
19736 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019738 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000019739 ac_cv_search_Tcl_Init="none required"
19740else
drh71eb93e2001-09-28 01:34:43 +000019741 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019742sed 's/^/| /' conftest.$ac_ext >&5
19743
drh75897232000-05-29 14:26:00 +000019744fi
a.rottmann964dbb12004-02-26 19:47:42 +000019745rm -f conftest.err conftest.$ac_objext \
19746 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019747if test "$ac_cv_search_Tcl_Init" = no; then
dougcurrie6194a5f2003-12-19 20:09:51 +000019748 for ac_lib in tcl8.4 tcl8.3 tcl84 tcl83 tcl; do
drh71eb93e2001-09-28 01:34:43 +000019749 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
19750 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019756
drh71eb93e2001-09-28 01:34:43 +000019757/* Override any gcc2 internal prototype to avoid an error. */
19758#ifdef __cplusplus
19759extern "C"
19760#endif
19761/* We use char because int might match the return type of a gcc2
19762 builtin and then its argument prototype would still apply. */
19763char Tcl_Init ();
19764int
19765main ()
19766{
19767Tcl_Init ();
19768 ;
19769 return 0;
19770}
19771_ACEOF
19772rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019774 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019775 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019780 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019789 (eval $ac_try) 2>&5
19790 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019792 (exit $ac_status); }; }; then
19793 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +000019794break
19795else
drh71eb93e2001-09-28 01:34:43 +000019796 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019797sed 's/^/| /' conftest.$ac_ext >&5
19798
drh75897232000-05-29 14:26:00 +000019799fi
a.rottmann964dbb12004-02-26 19:47:42 +000019800rm -f conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019802 done
19803fi
19804LIBS=$ac_func_search_save_LIBS
19805fi
a.rottmann84e63352003-03-24 09:42:16 +000019806echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +000019807echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
19808if test "$ac_cv_search_Tcl_Init" != no; then
19809 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
19810
drh75897232000-05-29 14:26:00 +000019811fi
19812
drh75897232000-05-29 14:26:00 +000019813 fi
19814 TARGET_TCL_LIBS="$LIBS $otherlibs"
19815fi
19816
a.rottmann84e63352003-03-24 09:42:16 +000019817
drh75897232000-05-29 14:26:00 +000019818##########
19819# Figure out where to get the TCL header files.
19820#
a.rottmann84e63352003-03-24 09:42:16 +000019821echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +000019822echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019823found=no
19824if test "$config_TARGET_TCL_INC" != ""; then
19825 TARGET_TCL_INC=$config_TARGET_TCL_INC
19826 found=yes
19827else
19828 if test "$with_tcl" != ""; then
19829 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
19830 found=yes
19831 else
19832 TARGET_TCL_INC=""
19833 found=no
19834 fi
19835fi
19836if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019837 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000019838echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +000019839else
a.rottmann84e63352003-03-24 09:42:16 +000019840 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000019841echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000019842 if test "${ac_cv_header_tcl_h+set}" = set; then
19843 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +000019844echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
19845if test "${ac_cv_header_tcl_h+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019847fi
19848echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
19849echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +000019850else
a.rottmann84e63352003-03-24 09:42:16 +000019851 # Is the header compilable?
19852echo "$as_me:$LINENO: checking tcl.h usability" >&5
19853echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
19854cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860$ac_includes_default
drh75897232000-05-29 14:26:00 +000019861#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +000019862_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019863rm -f conftest.$ac_objext
19864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019865 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019866 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000019872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19885else
19886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889ac_header_compiler=no
19890fi
a.rottmann964dbb12004-02-26 19:47:42 +000019891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000019892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895# Is the header present?
19896echo "$as_me:$LINENO: checking tcl.h presence" >&5
19897echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
19898cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019899/* confdefs.h. */
19900_ACEOF
19901cat confdefs.h >>conftest.$ac_ext
19902cat >>conftest.$ac_ext <<_ACEOF
19903/* end confdefs.h. */
19904#include <tcl.h>
19905_ACEOF
19906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019909 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000019910 rm -f conftest.er1
19911 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000019916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000019917 else
19918 ac_cpp_err=
19919 fi
drh75897232000-05-29 14:26:00 +000019920else
drh71eb93e2001-09-28 01:34:43 +000019921 ac_cpp_err=yes
19922fi
19923if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000019924 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000019925else
19926 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019927sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000019930fi
drh71eb93e2001-09-28 01:34:43 +000019931rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000019932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000019936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000019938 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19939echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019940 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
19941echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000019943 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000019944 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000019945 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
19946echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019947 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
19948echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
19950echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
19952echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019953 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
19954echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019955 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
19956echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019957 (
19958 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000019959## ------------------------------------------ ##
19960## Report this to the AC_PACKAGE_NAME lists. ##
19961## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000019962_ASBOX
19963 ) |
19964 sed "s/^/$as_me: WARNING: /" >&2
19965 ;;
19966esac
19967echo "$as_me:$LINENO: checking for tcl.h" >&5
19968echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
19969if test "${ac_cv_header_tcl_h+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
19972 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000019973fi
a.rottmann84e63352003-03-24 09:42:16 +000019974echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +000019975echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019976
19977fi
drh71eb93e2001-09-28 01:34:43 +000019978if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +000019979 found=yes
drh75897232000-05-29 14:26:00 +000019980fi
19981
a.rottmann84e63352003-03-24 09:42:16 +000019982
drh75897232000-05-29 14:26:00 +000019983fi
19984if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +000019985 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +000019986 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000019987echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +000019988echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
19989if eval "test \"\${$as_ac_File+set}\" = set"; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019991else
19992 test "$cross_compiling" = yes &&
19993 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19994echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19995 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000019996if test -r "$dir/include/tcl.h"; then
19997 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000019998else
drh71eb93e2001-09-28 01:34:43 +000019999 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020000fi
20001fi
a.rottmann84e63352003-03-24 09:42:16 +000020002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020003echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20004if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020005 found=yes
drh75897232000-05-29 14:26:00 +000020006fi
20007
20008 if test "$found" = "yes"; then
20009 TARGET_TCL_INC="-I$dir/include"
20010 break
20011 fi
20012 done
20013fi
drh6d313162000-09-21 13:01:35 +000020014if test "$found" = "no"; then
20015 TARGET_TCL_INC="-DNO_TCL=1"
20016fi
drh75897232000-05-29 14:26:00 +000020017
a.rottmann84e63352003-03-24 09:42:16 +000020018
drh75897232000-05-29 14:26:00 +000020019##########
20020# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000020021# that use "readline()" library.
20022#
20023if test "$config_TARGET_READLINE_LIBS" != ""; then
20024 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
20025else
20026 CC=$TARGET_CC
20027 LIBS=""
paul38372372003-04-22 08:04:49 +000020028 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20029echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
20030if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020031 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020032else
drh71eb93e2001-09-28 01:34:43 +000020033 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000020034ac_cv_search_tgetent=no
20035cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020036/* confdefs.h. */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h. */
20041
20042/* Override any gcc2 internal prototype to avoid an error. */
20043#ifdef __cplusplus
20044extern "C"
20045#endif
20046/* We use char because int might match the return type of a gcc2
20047 builtin and then its argument prototype would still apply. */
20048char tgetent ();
20049int
20050main ()
20051{
20052tgetent ();
20053 ;
20054 return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext conftest$ac_exeext
20058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020059 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000020060 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000020064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000020066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20072 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000020073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_search_tgetent="none required"
20079else
20080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083fi
a.rottmann964dbb12004-02-26 19:47:42 +000020084rm -f conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020086if test "$ac_cv_search_tgetent" = no; then
20087 for ac_lib in readline ncurses curses termcap; do
20088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095
20096/* Override any gcc2 internal prototype to avoid an error. */
20097#ifdef __cplusplus
20098extern "C"
20099#endif
20100/* We use char because int might match the return type of a gcc2
20101 builtin and then its argument prototype would still apply. */
20102char tgetent ();
20103int
20104main ()
20105{
20106tgetent ();
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext conftest$ac_exeext
20112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020113 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000020114 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000020118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000020120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000020127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_cv_search_tgetent="-l$ac_lib"
20133break
20134else
20135 echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
20138fi
a.rottmann964dbb12004-02-26 19:47:42 +000020139rm -f conftest.err conftest.$ac_objext \
20140 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020141 done
20142fi
20143LIBS=$ac_func_search_save_LIBS
20144fi
20145echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20146echo "${ECHO_T}$ac_cv_search_tgetent" >&6
20147if test "$ac_cv_search_tgetent" != no; then
20148 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
20149
20150fi
20151
20152
20153echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20154echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20155if test "${ac_cv_lib_readline_readline+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 ac_check_lib_save_LIBS=$LIBS
20159LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020160cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020166
drh71eb93e2001-09-28 01:34:43 +000020167/* Override any gcc2 internal prototype to avoid an error. */
20168#ifdef __cplusplus
20169extern "C"
20170#endif
20171/* We use char because int might match the return type of a gcc2
20172 builtin and then its argument prototype would still apply. */
20173char readline ();
20174int
20175main ()
20176{
20177readline ();
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020184 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020185 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020190 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000020191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020199 (eval $ac_try) 2>&5
20200 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020202 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000020203 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020204else
drh71eb93e2001-09-28 01:34:43 +000020205 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020206sed 's/^/| /' conftest.$ac_ext >&5
20207
paul38372372003-04-22 08:04:49 +000020208ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020209fi
a.rottmann964dbb12004-02-26 19:47:42 +000020210rm -f conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020212LIBS=$ac_check_lib_save_LIBS
20213fi
20214echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20215echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20216if test $ac_cv_lib_readline_readline = yes; then
20217 cat >>confdefs.h <<_ACEOF
20218#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000020219_ACEOF
drh75897232000-05-29 14:26:00 +000020220
paul38372372003-04-22 08:04:49 +000020221 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020222
drh75897232000-05-29 14:26:00 +000020223fi
20224
drh75897232000-05-29 14:26:00 +000020225 TARGET_READLINE_LIBS="$LIBS"
20226fi
20227
a.rottmann84e63352003-03-24 09:42:16 +000020228
drh75897232000-05-29 14:26:00 +000020229##########
20230# Figure out where to get the READLINE header files.
20231#
a.rottmann84e63352003-03-24 09:42:16 +000020232echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020233echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020234found=no
20235if test "$config_TARGET_READLINE_INC" != ""; then
20236 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20237 found=yes
20238fi
20239if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020240 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020241echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020242else
a.rottmann84e63352003-03-24 09:42:16 +000020243 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020244echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020245 if test "${ac_cv_header_readline_h+set}" = set; then
20246 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020247echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20248if test "${ac_cv_header_readline_h+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020250fi
20251echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20252echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020253else
a.rottmann84e63352003-03-24 09:42:16 +000020254 # Is the header compilable?
20255echo "$as_me:$LINENO: checking readline.h usability" >&5
20256echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20257cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263$ac_includes_default
drh75897232000-05-29 14:26:00 +000020264#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020265_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020266rm -f conftest.$ac_objext
20267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020268 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020269 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000020275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_header_compiler=yes
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292ac_header_compiler=no
20293fi
a.rottmann964dbb12004-02-26 19:47:42 +000020294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20296echo "${ECHO_T}$ac_header_compiler" >&6
20297
20298# Is the header present?
20299echo "$as_me:$LINENO: checking readline.h presence" >&5
20300echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20301cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307#include <readline.h>
20308_ACEOF
20309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20311 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020312 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020313 rm -f conftest.er1
20314 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020316 (exit $ac_status); } >/dev/null; then
20317 if test -s conftest.err; then
20318 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020320 else
20321 ac_cpp_err=
20322 fi
drh75897232000-05-29 14:26:00 +000020323else
drh71eb93e2001-09-28 01:34:43 +000020324 ac_cpp_err=yes
20325fi
20326if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020327 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020328else
20329 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020333fi
drh71eb93e2001-09-28 01:34:43 +000020334rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20336echo "${ECHO_T}$ac_header_preproc" >&6
20337
20338# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20340 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020341 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20342echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020343 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20344echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20345 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020346 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020347 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020348 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20349echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020350 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20351echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20353echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20355echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020356 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20357echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020358 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20359echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020360 (
20361 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020362## ------------------------------------------ ##
20363## Report this to the AC_PACKAGE_NAME lists. ##
20364## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020365_ASBOX
20366 ) |
20367 sed "s/^/$as_me: WARNING: /" >&2
20368 ;;
20369esac
20370echo "$as_me:$LINENO: checking for readline.h" >&5
20371echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20372if test "${ac_cv_header_readline_h+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020376fi
a.rottmann84e63352003-03-24 09:42:16 +000020377echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020378echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020379
20380fi
drh71eb93e2001-09-28 01:34:43 +000020381if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020382 found=yes
drh75897232000-05-29 14:26:00 +000020383fi
20384
a.rottmann84e63352003-03-24 09:42:16 +000020385
drh75897232000-05-29 14:26:00 +000020386fi
20387if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020388 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020389 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020390echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020391echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20392if eval "test \"\${$as_ac_File+set}\" = set"; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020394else
20395 test "$cross_compiling" = yes &&
20396 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20397echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20398 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020399if test -r "$dir/include/readline.h"; then
20400 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020401else
drh71eb93e2001-09-28 01:34:43 +000020402 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020403fi
20404fi
a.rottmann84e63352003-03-24 09:42:16 +000020405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020406echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20407if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020408 found=yes
drh75897232000-05-29 14:26:00 +000020409fi
20410
20411 if test "$found" = "yes"; then
20412 TARGET_READLINE_INC="-I$dir/include"
20413 break
20414 fi
drh71eb93e2001-09-28 01:34:43 +000020415 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020416echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020417echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20418if eval "test \"\${$as_ac_File+set}\" = set"; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020420else
20421 test "$cross_compiling" = yes &&
20422 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20423echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20424 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020425if test -r "$dir/include/readline/readline.h"; then
20426 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020427else
drh71eb93e2001-09-28 01:34:43 +000020428 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020429fi
20430fi
a.rottmann84e63352003-03-24 09:42:16 +000020431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020432echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20433if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020434 found=yes
drh75897232000-05-29 14:26:00 +000020435fi
20436
20437 if test "$found" = "yes"; then
20438 TARGET_READLINE_INC="-I$dir/include/readline"
20439 break
20440 fi
20441 done
20442fi
20443if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020444 if test "$TARGET_READLINE_LIBS" = ""; then
20445 TARGET_HAVE_READLINE=0
20446 else
20447 TARGET_HAVE_READLINE=1
20448 fi
drh75897232000-05-29 14:26:00 +000020449else
20450 TARGET_HAVE_READLINE=0
20451fi
20452
a.rottmann84e63352003-03-24 09:42:16 +000020453
20454
drh75897232000-05-29 14:26:00 +000020455#########
drh2dfbbca2000-07-28 14:32:48 +000020456# Figure out whether or not we have a "usleep()" function.
20457#
a.rottmann84e63352003-03-24 09:42:16 +000020458echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020459echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20460if test "${ac_cv_func_usleep+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020462else
drh71eb93e2001-09-28 01:34:43 +000020463 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020469/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20471#define usleep innocuous_usleep
20472
drh2dfbbca2000-07-28 14:32:48 +000020473/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020474 which can conflict with char usleep (); below.
20475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20476 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020477
a.rottmann84e63352003-03-24 09:42:16 +000020478#ifdef __STDC__
20479# include <limits.h>
20480#else
20481# include <assert.h>
20482#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020483
20484#undef usleep
20485
drh2dfbbca2000-07-28 14:32:48 +000020486/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020487#ifdef __cplusplus
20488extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020489{
drh71eb93e2001-09-28 01:34:43 +000020490#endif
drh2dfbbca2000-07-28 14:32:48 +000020491/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020492 builtin and then its argument prototype would still apply. */
20493char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020494/* The GNU C library defines this for functions which it implements
20495 to always fail with ENOSYS. Some functions are actually named
20496 something starting with __ and the normal name is an alias. */
20497#if defined (__stub_usleep) || defined (__stub___usleep)
20498choke me
20499#else
a.rottmann84e63352003-03-24 09:42:16 +000020500char (*f) () = usleep;
20501#endif
20502#ifdef __cplusplus
20503}
drh2dfbbca2000-07-28 14:32:48 +000020504#endif
20505
a.rottmann84e63352003-03-24 09:42:16 +000020506int
20507main ()
20508{
20509return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020510 ;
20511 return 0;
20512}
20513_ACEOF
20514rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020516 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020517 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020522 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +000020523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020531 (eval $ac_try) 2>&5
20532 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020534 (exit $ac_status); }; }; then
20535 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020536else
drh71eb93e2001-09-28 01:34:43 +000020537 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020538sed 's/^/| /' conftest.$ac_ext >&5
20539
drh71eb93e2001-09-28 01:34:43 +000020540ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020541fi
a.rottmann964dbb12004-02-26 19:47:42 +000020542rm -f conftest.err conftest.$ac_objext \
20543 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020544fi
a.rottmann84e63352003-03-24 09:42:16 +000020545echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020546echo "${ECHO_T}$ac_cv_func_usleep" >&6
20547if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020548 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020549fi
20550
a.rottmann84e63352003-03-24 09:42:16 +000020551
drh2dfbbca2000-07-28 14:32:48 +000020552#########
drh75897232000-05-29 14:26:00 +000020553# Generate the output files.
20554#
a.rottmann84e63352003-03-24 09:42:16 +000020555 ac_config_files="$ac_config_files Makefile sqlite.pc"
drh71eb93e2001-09-28 01:34:43 +000020556cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020557# This file is a shell script that caches the results of configure
20558# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020559# scripts and configure runs, see configure's option --config-cache.
20560# It is not useful on other systems. If it contains results you don't
20561# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020562#
drh71eb93e2001-09-28 01:34:43 +000020563# config.status only pays attention to the cache file if you give it
20564# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020565#
a.rottmann84e63352003-03-24 09:42:16 +000020566# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020567# loading this file, other *unset* `ac_cv_foo' will be assigned the
20568# following values.
20569
20570_ACEOF
20571
drh75897232000-05-29 14:26:00 +000020572# The following way of writing the cache mishandles newlines in values,
20573# but we know of no workaround that is simple, portable, and efficient.
20574# So, don't put newlines in cache variables' values.
20575# Ultrix sh set writes to stderr and can't be redirected directly,
20576# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020577{
20578 (set) 2>&1 |
20579 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20580 *ac_space=\ *)
20581 # `set' does not quote correctly, so add quotes (double-quote
20582 # substitution turns \\\\ into \\, and sed turns \\ into \).
20583 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020584 "s/'/'\\\\''/g;
20585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020586 ;;
20587 *)
20588 # `set' quotes correctly as required by POSIX, so do not add quotes.
20589 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020590 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020591 ;;
20592 esac;
20593} |
20594 sed '
20595 t clear
20596 : clear
20597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20598 t end
20599 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20600 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020601if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020602 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020603 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20604 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020605 else
20606 echo "not updating unwritable cache $cache_file"
20607 fi
20608fi
20609rm -f confcache
20610
drh75897232000-05-29 14:26:00 +000020611test "x$prefix" = xNONE && prefix=$ac_default_prefix
20612# Let make expand exec_prefix.
20613test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20614
drh71eb93e2001-09-28 01:34:43 +000020615# VPATH may cause trouble with some makes, so we remove $(srcdir),
20616# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20617# trailing colons and then remove the whole line if VPATH becomes empty
20618# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020619if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020620 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020621s/:*\$(srcdir):*/:/;
20622s/:*\${srcdir}:*/:/;
20623s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020624s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020625s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020626s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020627}'
drh75897232000-05-29 14:26:00 +000020628fi
20629
drh75897232000-05-29 14:26:00 +000020630# Transform confdefs.h into DEFS.
20631# Protect against shell expansion while executing Makefile rules.
20632# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020633#
20634# If the first sed substitution is executed (which looks for macros that
20635# take arguments), then we branch to the quote section. Otherwise,
20636# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020637cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020638t clear
20639: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020640s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020641t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020642s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020643t quote
20644d
20645: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020646s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020647s,\[,\\&,g
20648s,\],\\&,g
20649s,\$,$$,g
20650p
a.rottmann84e63352003-03-24 09:42:16 +000020651_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020652# We use echo to avoid assuming a particular line-breaking character.
20653# The extra dot is to prevent the shell from consuming trailing
20654# line-breaks from the sub-command output. A line-break within
20655# single-quotes doesn't work because, if this script is created in a
20656# platform that uses two characters for line-breaks (e.g., DOS), tr
20657# would break.
20658ac_LF_and_DOT=`echo; echo .`
20659DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20660rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020661
a.rottmann84e63352003-03-24 09:42:16 +000020662
20663ac_libobjs=
20664ac_ltlibobjs=
20665for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20666 # 1. Remove the extension, and $U if already installed.
20667 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020669 # 2. Add them.
20670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20672done
20673LIBOBJS=$ac_libobjs
20674
20675LTLIBOBJS=$ac_ltlibobjs
20676
20677
20678
drh75897232000-05-29 14:26:00 +000020679: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020680ac_clean_files_save=$ac_clean_files
20681ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020682{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020683echo "$as_me: creating $CONFIG_STATUS" >&6;}
20684cat >$CONFIG_STATUS <<_ACEOF
20685#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020686# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020687# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020688# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020689# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020690
drh71eb93e2001-09-28 01:34:43 +000020691debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020692ac_cs_recheck=false
20693ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020694SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020695_ACEOF
drh75897232000-05-29 14:26:00 +000020696
drh71eb93e2001-09-28 01:34:43 +000020697cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020698## --------------------- ##
20699## M4sh Initialization. ##
20700## --------------------- ##
20701
drh71eb93e2001-09-28 01:34:43 +000020702# Be Bourne compatible
20703if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20704 emulate sh
20705 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020706 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20707 # is contrary to our usage. Disable this feature.
20708 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020709elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20710 set -o posix
drh75897232000-05-29 14:26:00 +000020711fi
a.rottmann964dbb12004-02-26 19:47:42 +000020712DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020713
a.rottmann84e63352003-03-24 09:42:16 +000020714# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020716 as_unset=unset
20717else
20718 as_unset=false
20719fi
20720
20721
20722# Work around bugs in pre-3.0 UWIN ksh.
20723$as_unset ENV MAIL MAILPATH
20724PS1='$ '
20725PS2='> '
20726PS4='+ '
20727
20728# NLS nuisances.
20729for as_var in \
20730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20732 LC_TELEPHONE LC_TIME
20733do
a.rottmann964dbb12004-02-26 19:47:42 +000020734 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020735 eval $as_var=C; export $as_var
20736 else
20737 $as_unset $as_var
20738 fi
20739done
20740
20741# Required to use basename.
20742if expr a : '\(a\)' >/dev/null 2>&1; then
20743 as_expr=expr
20744else
20745 as_expr=false
20746fi
20747
20748if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20749 as_basename=basename
20750else
20751 as_basename=false
20752fi
20753
20754
drh71eb93e2001-09-28 01:34:43 +000020755# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020756as_me=`$as_basename "$0" ||
20757$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20758 X"$0" : 'X\(//\)$' \| \
20759 X"$0" : 'X\(/\)$' \| \
20760 . : '\(.\)' 2>/dev/null ||
20761echo X/"$0" |
20762 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20763 /^X\/\(\/\/\)$/{ s//\1/; q; }
20764 /^X\/\(\/\).*/{ s//\1/; q; }
20765 s/.*/./; q'`
20766
20767
20768# PATH needs CR, and LINENO needs CR and PATH.
20769# Avoid depending upon Character Ranges.
20770as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20771as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20772as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20773as_cr_digits='0123456789'
20774as_cr_alnum=$as_cr_Letters$as_cr_digits
20775
20776# The user is always right.
20777if test "${PATH_SEPARATOR+set}" != set; then
20778 echo "#! /bin/sh" >conf$$.sh
20779 echo "exit 0" >>conf$$.sh
20780 chmod +x conf$$.sh
20781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20782 PATH_SEPARATOR=';'
20783 else
20784 PATH_SEPARATOR=:
20785 fi
20786 rm -f conf$$.sh
20787fi
20788
20789
20790 as_lineno_1=$LINENO
20791 as_lineno_2=$LINENO
20792 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20793 test "x$as_lineno_1" != "x$as_lineno_2" &&
20794 test "x$as_lineno_3" = "x$as_lineno_2" || {
20795 # Find who we are. Look in the path if we contain no path at all
20796 # relative or not.
20797 case $0 in
20798 *[\\/]* ) as_myself=$0 ;;
20799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20800for as_dir in $PATH
20801do
20802 IFS=$as_save_IFS
20803 test -z "$as_dir" && as_dir=.
20804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20805done
20806
20807 ;;
20808 esac
20809 # We did not find ourselves, most probably we were run as `sh COMMAND'
20810 # in which case we are not to be found in the path.
20811 if test "x$as_myself" = x; then
20812 as_myself=$0
20813 fi
20814 if test ! -f "$as_myself"; then
20815 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20816echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20817 { (exit 1); exit 1; }; }
20818 fi
20819 case $CONFIG_SHELL in
20820 '')
20821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20822for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20823do
20824 IFS=$as_save_IFS
20825 test -z "$as_dir" && as_dir=.
20826 for as_base in sh bash ksh sh5; do
20827 case $as_dir in
20828 /*)
20829 if ("$as_dir/$as_base" -c '
20830 as_lineno_1=$LINENO
20831 as_lineno_2=$LINENO
20832 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20833 test "x$as_lineno_1" != "x$as_lineno_2" &&
20834 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20835 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20836 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20837 CONFIG_SHELL=$as_dir/$as_base
20838 export CONFIG_SHELL
20839 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20840 fi;;
20841 esac
20842 done
20843done
20844;;
20845 esac
20846
20847 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20848 # uniformly replaced by the line number. The first 'sed' inserts a
20849 # line-number line before each line; the second 'sed' does the real
20850 # work. The second script uses 'N' to pair each line-number line
20851 # with the numbered line, and appends trailing '-' during
20852 # substitution so that $LINENO is not a special case at line end.
20853 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20854 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20855 sed '=' <$as_myself |
20856 sed '
20857 N
20858 s,$,-,
20859 : loop
20860 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20861 t loop
20862 s,-$,,
20863 s,^['$as_cr_digits']*\n,,
20864 ' >$as_me.lineno &&
20865 chmod +x $as_me.lineno ||
20866 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20867echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20868 { (exit 1); exit 1; }; }
20869
20870 # Don't try to exec as it changes $[0], causing all sort of problems
20871 # (the dirname of $[0] is not the place where we might find the
20872 # original and so on. Autoconf is especially sensible to this).
20873 . ./$as_me.lineno
20874 # Exit status is that of the last command.
20875 exit
20876}
20877
20878
20879case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20880 *c*,-n*) ECHO_N= ECHO_C='
20881' ECHO_T=' ' ;;
20882 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20883 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20884esac
drh71eb93e2001-09-28 01:34:43 +000020885
20886if expr a : '\(a\)' >/dev/null 2>&1; then
20887 as_expr=expr
20888else
20889 as_expr=false
20890fi
20891
20892rm -f conf$$ conf$$.exe conf$$.file
20893echo >conf$$.file
20894if ln -s conf$$.file conf$$ 2>/dev/null; then
20895 # We could just check for DJGPP; but this test a) works b) is more generic
20896 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20897 if test -f conf$$.exe; then
20898 # Don't use ln at all; we don't have any links
20899 as_ln_s='cp -p'
20900 else
20901 as_ln_s='ln -s'
20902 fi
20903elif ln conf$$.file conf$$ 2>/dev/null; then
20904 as_ln_s=ln
20905else
20906 as_ln_s='cp -p'
20907fi
20908rm -f conf$$ conf$$.exe conf$$.file
20909
a.rottmann84e63352003-03-24 09:42:16 +000020910if mkdir -p . 2>/dev/null; then
20911 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020912else
a.rottmann964dbb12004-02-26 19:47:42 +000020913 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020914 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020915fi
20916
a.rottmann84e63352003-03-24 09:42:16 +000020917as_executable_p="test -f"
20918
20919# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020920as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020921
20922# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020923as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020924
drh71eb93e2001-09-28 01:34:43 +000020925
20926# IFS
20927# We need space, tab and new line, in precisely that order.
20928as_nl='
20929'
20930IFS=" $as_nl"
20931
20932# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000020933$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000020934
20935exec 6>&1
20936
a.rottmann84e63352003-03-24 09:42:16 +000020937# Open the log real soon, to keep \$[0] and so on meaningful, and to
20938# report actual input values of CONFIG_FILES etc. instead of their
20939# values after options handling. Logging --version etc. is OK.
20940exec 5>>config.log
20941{
20942 echo
20943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20944## Running $as_me. ##
20945_ASBOX
20946} >&5
20947cat >&5 <<_CSEOF
20948
20949This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000020950generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020951
20952 CONFIG_FILES = $CONFIG_FILES
20953 CONFIG_HEADERS = $CONFIG_HEADERS
20954 CONFIG_LINKS = $CONFIG_LINKS
20955 CONFIG_COMMANDS = $CONFIG_COMMANDS
20956 $ $0 $@
20957
20958_CSEOF
20959echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20960echo >&5
drh71eb93e2001-09-28 01:34:43 +000020961_ACEOF
20962
20963# Files that config.status was made for.
20964if test -n "$ac_config_files"; then
20965 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20966fi
20967
20968if test -n "$ac_config_headers"; then
20969 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20970fi
20971
20972if test -n "$ac_config_links"; then
20973 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20974fi
20975
20976if test -n "$ac_config_commands"; then
20977 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20978fi
20979
a.rottmann84e63352003-03-24 09:42:16 +000020980cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020981
20982ac_cs_usage="\
20983\`$as_me' instantiates files from templates according to the
20984current configuration.
20985
20986Usage: $0 [OPTIONS] [FILE]...
20987
20988 -h, --help print this help, then exit
20989 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020990 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020991 -d, --debug don't remove temporary files
20992 --recheck update $as_me by reconfiguring in the same conditions
20993 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020994 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020995
20996Configuration files:
20997$config_files
20998
20999Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000021000_ACEOF
drh75897232000-05-29 14:26:00 +000021001
a.rottmann84e63352003-03-24 09:42:16 +000021002cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021003ac_cs_version="\\
21004config.status
a.rottmann964dbb12004-02-26 19:47:42 +000021005configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000021006 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021007
a.rottmann964dbb12004-02-26 19:47:42 +000021008Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021009This config.status script is free software; the Free Software Foundation
21010gives unlimited permission to copy, distribute and modify it."
21011srcdir=$srcdir
21012INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000021013_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021014
a.rottmann84e63352003-03-24 09:42:16 +000021015cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021016# If no file are specified by the user, then we need to provide default
21017# value. By we need to know if files were specified by the user.
21018ac_need_defaults=:
21019while test $# != 0
21020do
21021 case $1 in
21022 --*=*)
21023 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21024 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021025 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021026 ;;
a.rottmann84e63352003-03-24 09:42:16 +000021027 -*)
21028 ac_option=$1
21029 ac_optarg=$2
21030 ac_shift=shift
21031 ;;
drh71eb93e2001-09-28 01:34:43 +000021032 *) # This is not an option, so the user has probably given explicit
21033 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000021034 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000021035 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000021036 esac
21037
a.rottmann84e63352003-03-24 09:42:16 +000021038 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021039 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000021040_ACEOF
21041cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021043 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000021044 --version | --vers* | -V )
21045 echo "$ac_cs_version"; exit 0 ;;
21046 --he | --h)
21047 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000021048 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000021049Try \`$0 --help' for more information." >&5
21050echo "$as_me: error: ambiguous option: $1
21051Try \`$0 --help' for more information." >&2;}
21052 { (exit 1); exit 1; }; };;
21053 --help | --hel | -h )
21054 echo "$ac_cs_usage"; exit 0 ;;
21055 --debug | --d* | -d )
21056 debug=: ;;
21057 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021058 $ac_shift
21059 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021060 ac_need_defaults=false;;
21061 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000021062 $ac_shift
21063 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021064 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000021065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21067 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021068
drh71eb93e2001-09-28 01:34:43 +000021069 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000021070 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000021071Try \`$0 --help' for more information." >&5
21072echo "$as_me: error: unrecognized option: $1
21073Try \`$0 --help' for more information." >&2;}
21074 { (exit 1); exit 1; }; } ;;
21075
21076 *) ac_config_targets="$ac_config_targets $1" ;;
21077
21078 esac
21079 shift
21080done
21081
a.rottmann84e63352003-03-24 09:42:16 +000021082ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021083
a.rottmann84e63352003-03-24 09:42:16 +000021084if $ac_cs_silent; then
21085 exec 6>/dev/null
21086 ac_configure_extra_args="$ac_configure_extra_args --silent"
21087fi
drh71eb93e2001-09-28 01:34:43 +000021088
21089_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021090cat >>$CONFIG_STATUS <<_ACEOF
21091if \$ac_cs_recheck; then
21092 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21093 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21094fi
drh71eb93e2001-09-28 01:34:43 +000021095
a.rottmann84e63352003-03-24 09:42:16 +000021096_ACEOF
21097
21098
21099
21100
21101
21102cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021103for ac_config_target in $ac_config_targets
21104do
21105 case "$ac_config_target" in
21106 # Handling of arguments.
21107 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
a.rottmann84e63352003-03-24 09:42:16 +000021108 "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;;
21109 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021110echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21111 { (exit 1); exit 1; }; };;
21112 esac
21113done
21114
21115# If the user did not use the arguments to specify the items to instantiate,
21116# then the envvar interface is used. Set only those that are not.
21117# We use the long form for the default assignment because of an extremely
21118# bizarre bug on SunOS 4.1.3.
21119if $ac_need_defaults; then
21120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21121fi
21122
a.rottmann84e63352003-03-24 09:42:16 +000021123# Have a temporary directory for convenience. Make it in the build tree
21124# simply because there is no reason to put it here, and in addition,
21125# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000021126# Create a temporary directory, and hook for its removal unless debugging.
21127$debug ||
21128{
21129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21130 trap '{ (exit 1); exit 1; }' 1 2 13 15
21131}
21132
21133# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021134
drh71eb93e2001-09-28 01:34:43 +000021135{
a.rottmann84e63352003-03-24 09:42:16 +000021136 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021137 test -n "$tmp" && test -d "$tmp"
21138} ||
21139{
a.rottmann84e63352003-03-24 09:42:16 +000021140 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000021141 (umask 077 && mkdir $tmp)
21142} ||
21143{
a.rottmann84e63352003-03-24 09:42:16 +000021144 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021145 { (exit 1); exit 1; }
21146}
21147
a.rottmann84e63352003-03-24 09:42:16 +000021148_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021149
a.rottmann84e63352003-03-24 09:42:16 +000021150cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021151
21152#
21153# CONFIG_FILES section.
21154#
21155
21156# No need to generate the scripts if there are no CONFIG_FILES.
21157# This happens for instance when ./config.status config.h
21158if test -n "\$CONFIG_FILES"; then
21159 # Protect against being on the right side of a sed subst in config.status.
21160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21162s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021163s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21164s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21165s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21166s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21167s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21168s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000021169s,@exec_prefix@,$exec_prefix,;t t
21170s,@prefix@,$prefix,;t t
21171s,@program_transform_name@,$program_transform_name,;t t
21172s,@bindir@,$bindir,;t t
21173s,@sbindir@,$sbindir,;t t
21174s,@libexecdir@,$libexecdir,;t t
21175s,@datadir@,$datadir,;t t
21176s,@sysconfdir@,$sysconfdir,;t t
21177s,@sharedstatedir@,$sharedstatedir,;t t
21178s,@localstatedir@,$localstatedir,;t t
21179s,@libdir@,$libdir,;t t
21180s,@includedir@,$includedir,;t t
21181s,@oldincludedir@,$oldincludedir,;t t
21182s,@infodir@,$infodir,;t t
21183s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000021184s,@build_alias@,$build_alias,;t t
21185s,@host_alias@,$host_alias,;t t
21186s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021187s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000021188s,@ECHO_C@,$ECHO_C,;t t
21189s,@ECHO_N@,$ECHO_N,;t t
21190s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000021191s,@LIBS@,$LIBS,;t t
21192s,@build@,$build,;t t
21193s,@build_cpu@,$build_cpu,;t t
21194s,@build_vendor@,$build_vendor,;t t
21195s,@build_os@,$build_os,;t t
21196s,@host@,$host,;t t
21197s,@host_cpu@,$host_cpu,;t t
21198s,@host_vendor@,$host_vendor,;t t
21199s,@host_os@,$host_os,;t t
21200s,@CC@,$CC,;t t
21201s,@CFLAGS@,$CFLAGS,;t t
21202s,@LDFLAGS@,$LDFLAGS,;t t
21203s,@CPPFLAGS@,$CPPFLAGS,;t t
21204s,@ac_ct_CC@,$ac_ct_CC,;t t
21205s,@EXEEXT@,$EXEEXT,;t t
21206s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021207s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000021208s,@LN_S@,$LN_S,;t t
21209s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021210s,@AR@,$AR,;t t
21211s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021212s,@RANLIB@,$RANLIB,;t t
21213s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21214s,@STRIP@,$STRIP,;t t
21215s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21216s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021217s,@CXX@,$CXX,;t t
21218s,@CXXFLAGS@,$CXXFLAGS,;t t
21219s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21220s,@CXXCPP@,$CXXCPP,;t t
21221s,@F77@,$F77,;t t
21222s,@FFLAGS@,$FFLAGS,;t t
21223s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021224s,@LIBTOOL@,$LIBTOOL,;t t
21225s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21226s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21227s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21228s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021229s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +000021230s,@BUILD_CC@,$BUILD_CC,;t t
21231s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21232s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21233s,@TARGET_CC@,$TARGET_CC,;t t
21234s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21235s,@TARGET_LINK@,$TARGET_LINK,;t t
21236s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21237s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21238s,@TARGET_AR@,$TARGET_AR,;t t
21239s,@ENCODING@,$ENCODING,;t t
paulb0208cc2003-04-13 18:26:49 +000021240s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t
xdong28f79f72003-09-23 00:35:21 +000021241s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021242s,@INMEMORYDB@,$INMEMORYDB,;t t
21243s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021244s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21245s,@OS_UNIX@,$OS_UNIX,;t t
21246s,@OS_WIN@,$OS_WIN,;t t
21247s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
21248s,@TARGET_LIBS@,$TARGET_LIBS,;t t
21249s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
21250s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
21251s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21252s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21253s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021254s,@LIBOBJS@,$LIBOBJS,;t t
21255s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021256CEOF
21257
a.rottmann84e63352003-03-24 09:42:16 +000021258_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021259
a.rottmann84e63352003-03-24 09:42:16 +000021260 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021261 # Split the substitutions into bite-sized pieces for seds with
21262 # small command number limits, like on Digital OSF/1 and HP-UX.
21263 ac_max_sed_lines=48
21264 ac_sed_frag=1 # Number of current file.
21265 ac_beg=1 # First line for current file.
21266 ac_end=$ac_max_sed_lines # Line after last line for current file.
21267 ac_more_lines=:
21268 ac_sed_cmds=
21269 while $ac_more_lines; do
21270 if test $ac_beg -gt 1; then
21271 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21272 else
21273 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21274 fi
21275 if test ! -s $tmp/subs.frag; then
21276 ac_more_lines=false
21277 else
21278 # The purpose of the label and of the branching condition is to
21279 # speed up the sed processing (if there are no `@' at all, there
21280 # is no need to browse any of the substitutions).
21281 # These are the two extra sed commands mentioned above.
21282 (echo ':t
21283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21284 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021285 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021286 else
a.rottmann964dbb12004-02-26 19:47:42 +000021287 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021288 fi
21289 ac_sed_frag=`expr $ac_sed_frag + 1`
21290 ac_beg=$ac_end
21291 ac_end=`expr $ac_end + $ac_max_sed_lines`
21292 fi
21293 done
21294 if test -z "$ac_sed_cmds"; then
21295 ac_sed_cmds=cat
21296 fi
21297fi # test -n "$CONFIG_FILES"
21298
a.rottmann84e63352003-03-24 09:42:16 +000021299_ACEOF
21300cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021301for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21303 case $ac_file in
21304 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021305 cat >$tmp/stdin
21306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021310 * ) ac_file_in=$ac_file.in ;;
21311 esac
21312
21313 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021316 X"$ac_file" : 'X\(//\)[^/]' \| \
21317 X"$ac_file" : 'X\(//\)$' \| \
21318 X"$ac_file" : 'X\(/\)' \| \
21319 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021320echo X"$ac_file" |
21321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21323 /^X\(\/\/\)$/{ s//\1/; q; }
21324 /^X\(\/\).*/{ s//\1/; q; }
21325 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021326 { if $as_mkdir_p; then
21327 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021328 else
a.rottmann84e63352003-03-24 09:42:16 +000021329 as_dir="$ac_dir"
21330 as_dirs=
21331 while test ! -d "$as_dir"; do
21332 as_dirs="$as_dir $as_dirs"
21333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021335 X"$as_dir" : 'X\(//\)[^/]' \| \
21336 X"$as_dir" : 'X\(//\)$' \| \
21337 X"$as_dir" : 'X\(/\)' \| \
21338 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021339echo X"$as_dir" |
21340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21342 /^X\(\/\/\)$/{ s//\1/; q; }
21343 /^X\(\/\).*/{ s//\1/; q; }
21344 s/.*/./; q'`
21345 done
21346 test ! -n "$as_dirs" || mkdir $as_dirs
21347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21348echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21349 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021350
a.rottmann84e63352003-03-24 09:42:16 +000021351 ac_builddir=.
21352
21353if test "$ac_dir" != .; then
21354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21355 # A "../" for each directory in $ac_dir_suffix.
21356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21357else
21358 ac_dir_suffix= ac_top_builddir=
21359fi
21360
21361case $srcdir in
21362 .) # No --srcdir option. We are building in place.
21363 ac_srcdir=.
21364 if test -z "$ac_top_builddir"; then
21365 ac_top_srcdir=.
21366 else
21367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21368 fi ;;
21369 [\\/]* | ?:[\\/]* ) # Absolute path.
21370 ac_srcdir=$srcdir$ac_dir_suffix;
21371 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021372 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21375esac
a.rottmann964dbb12004-02-26 19:47:42 +000021376
21377# Do not use `cd foo && pwd` to compute absolute paths, because
21378# the directories may not exist.
21379case `pwd` in
21380.) ac_abs_builddir="$ac_dir";;
21381*)
21382 case "$ac_dir" in
21383 .) ac_abs_builddir=`pwd`;;
21384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21386 esac;;
21387esac
21388case $ac_abs_builddir in
21389.) ac_abs_top_builddir=${ac_top_builddir}.;;
21390*)
21391 case ${ac_top_builddir}. in
21392 .) ac_abs_top_builddir=$ac_abs_builddir;;
21393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21395 esac;;
21396esac
21397case $ac_abs_builddir in
21398.) ac_abs_srcdir=$ac_srcdir;;
21399*)
21400 case $ac_srcdir in
21401 .) ac_abs_srcdir=$ac_abs_builddir;;
21402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21404 esac;;
21405esac
21406case $ac_abs_builddir in
21407.) ac_abs_top_srcdir=$ac_top_srcdir;;
21408*)
21409 case $ac_top_srcdir in
21410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21413 esac;;
21414esac
a.rottmann84e63352003-03-24 09:42:16 +000021415
drh75897232000-05-29 14:26:00 +000021416
drh71eb93e2001-09-28 01:34:43 +000021417 case $INSTALL in
21418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021419 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021420 esac
21421
drh71eb93e2001-09-28 01:34:43 +000021422 # Let's still pretend it is `configure' which instantiates (i.e., don't
21423 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021424 # /* config.h. Generated by config.status. */
21425 if test x"$ac_file" = x-; then
21426 configure_input=
21427 else
21428 configure_input="$ac_file. "
21429 fi
21430 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021431 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021432
drh71eb93e2001-09-28 01:34:43 +000021433 # First look for the input files in the build tree, otherwise in the
21434 # src tree.
21435 ac_file_inputs=`IFS=:
21436 for f in $ac_file_in; do
21437 case $f in
21438 -) echo $tmp/stdin ;;
21439 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021440 # Absolute (can't be DOS-style, as IFS=:)
21441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021442echo "$as_me: error: cannot find input file: $f" >&2;}
21443 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021444 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021445 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021446 if test -f "$f"; then
21447 # Build tree
21448 echo "$f"
21449 elif test -f "$srcdir/$f"; then
21450 # Source tree
21451 echo "$srcdir/$f"
21452 else
21453 # /dev/null tree
21454 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021455echo "$as_me: error: cannot find input file: $f" >&2;}
21456 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021457 fi;;
drh71eb93e2001-09-28 01:34:43 +000021458 esac
21459 done` || { (exit 1); exit 1; }
a.rottmann964dbb12004-02-26 19:47:42 +000021460
21461 if test x"$ac_file" != x-; then
21462 { echo "$as_me:$LINENO: creating $ac_file" >&5
21463echo "$as_me: creating $ac_file" >&6;}
21464 rm -f "$ac_file"
21465 fi
a.rottmann84e63352003-03-24 09:42:16 +000021466_ACEOF
21467cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021468 sed "$ac_vpsub
21469$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021470_ACEOF
21471cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021472:t
21473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21474s,@configure_input@,$configure_input,;t t
21475s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021476s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021477s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021478s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21479s,@builddir@,$ac_builddir,;t t
21480s,@abs_builddir@,$ac_abs_builddir,;t t
21481s,@top_builddir@,$ac_top_builddir,;t t
21482s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021483s,@INSTALL@,$ac_INSTALL,;t t
21484" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21485 rm -f $tmp/stdin
21486 if test x"$ac_file" != x-; then
21487 mv $tmp/out $ac_file
21488 else
21489 cat $tmp/out
21490 rm -f $tmp/out
21491 fi
drh75897232000-05-29 14:26:00 +000021492
drh71eb93e2001-09-28 01:34:43 +000021493done
a.rottmann84e63352003-03-24 09:42:16 +000021494_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021495
a.rottmann84e63352003-03-24 09:42:16 +000021496cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021497
21498{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021499_ACEOF
drh75897232000-05-29 14:26:00 +000021500chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021501ac_clean_files=$ac_clean_files_save
21502
a.rottmann84e63352003-03-24 09:42:16 +000021503
drh71eb93e2001-09-28 01:34:43 +000021504# configure is writing to config.log, and then calls config.status.
21505# config.status does its own redirection, appending to config.log.
21506# Unfortunately, on DOS this fails, as config.log is still kept open
21507# by configure, so config.status won't be able to write to it; its
21508# output is simply discarded. So we exec the FD to /dev/null,
21509# effectively closing config.log, so it can be properly (re)opened and
21510# appended to by config.status. When coming back to configure, we
21511# need to make the FD available again.
21512if test "$no_create" != yes; then
21513 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021514 ac_config_status_args=
21515 test "$silent" = yes &&
21516 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021517 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021519 exec 5>>config.log
21520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21521 # would make configure fail if this is the last instruction.
21522 $ac_cs_success || { (exit 1); exit 1; }
21523fi
drh75897232000-05-29 14:26:00 +000021524