blob: 8812e605ae550b8550833f6fa3fa7edce41741a6 [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
drh4b2266a2004-11-27 15:52:16 +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 RELEASE BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL 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)
dougcurrie0f290bf2004-06-21 18:57:29 +00001028 --enable-threadsafe Support threadsafe operation
xdong28f79f72003-09-23 00:35:21 +00001029 --enable-releasemode Support libtool link to release mode
dougcurrie0f290bf2004-06-21 18:57:29 +00001030 --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always)
drh7b5717e2004-11-25 13:50:01 +00001031 --disable-tcl do not build TCL extension
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
drhb571b452004-12-10 02:20:27 +00001042 --with-tcl=DIR directory containing tcl configuration (tclConfig.sh)
drh71eb93e2001-09-28 01:34:43 +00001043
1044Some influential environment variables:
1045 CC C compiler command
1046 CFLAGS C compiler flags
1047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1048 nonstandard directory <lib dir>
1049 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050 headers in a nonstandard directory <include dir>
1051 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001052 CXX C++ compiler command
1053 CXXFLAGS C++ compiler flags
1054 CXXCPP C++ preprocessor
1055 F77 Fortran 77 compiler command
1056 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001057
1058Use these variables to override the choices made by `configure' or to help
1059it to find libraries and programs with nonstandard names/locations.
1060
a.rottmann84e63352003-03-24 09:42:16 +00001061_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001062fi
1063
1064if test "$ac_init_help" = "recursive"; then
1065 # If there are subdirs, report their specific --help.
1066 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068 test -d $ac_dir || continue
1069 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001070
a.rottmann84e63352003-03-24 09:42:16 +00001071if test "$ac_dir" != .; then
1072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073 # A "../" for each directory in $ac_dir_suffix.
1074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075else
1076 ac_dir_suffix= ac_top_builddir=
1077fi
drh71eb93e2001-09-28 01:34:43 +00001078
a.rottmann84e63352003-03-24 09:42:16 +00001079case $srcdir in
1080 .) # No --srcdir option. We are building in place.
1081 ac_srcdir=.
1082 if test -z "$ac_top_builddir"; then
1083 ac_top_srcdir=.
1084 else
1085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086 fi ;;
1087 [\\/]* | ?:[\\/]* ) # Absolute path.
1088 ac_srcdir=$srcdir$ac_dir_suffix;
1089 ac_top_srcdir=$srcdir ;;
1090 *) # Relative path.
1091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093esac
a.rottmann964dbb12004-02-26 19:47:42 +00001094
1095# Do not use `cd foo && pwd` to compute absolute paths, because
1096# the directories may not exist.
1097case `pwd` in
1098.) ac_abs_builddir="$ac_dir";;
1099*)
1100 case "$ac_dir" in
1101 .) ac_abs_builddir=`pwd`;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1103 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_top_builddir=${ac_top_builddir}.;;
1108*)
1109 case ${ac_top_builddir}. in
1110 .) ac_abs_top_builddir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_srcdir=$ac_srcdir;;
1117*)
1118 case $ac_srcdir in
1119 .) ac_abs_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1121 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_srcdir=$ac_top_srcdir;;
1126*)
1127 case $ac_top_srcdir in
1128 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1131 esac;;
1132esac
a.rottmann84e63352003-03-24 09:42:16 +00001133
1134 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001135 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001136 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001137 echo
a.rottmann84e63352003-03-24 09:42:16 +00001138 $SHELL $ac_srcdir/configure.gnu --help=recursive
1139 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001140 echo
a.rottmann84e63352003-03-24 09:42:16 +00001141 $SHELL $ac_srcdir/configure --help=recursive
1142 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001143 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001144 echo
1145 $ac_configure --help
1146 else
a.rottmann84e63352003-03-24 09:42:16 +00001147 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001148 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001149 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001150 done
1151fi
1152
1153test -n "$ac_init_help" && exit 0
1154if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001155 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001156
a.rottmann964dbb12004-02-26 19:47:42 +00001157Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001158This configure script is free software; the Free Software Foundation
1159gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001160_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001161 exit 0
1162fi
1163exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001164cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001165This file contains any messages produced by compilers while
1166running configure, to aid debugging if configure makes a mistake.
1167
1168It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001169generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001170
1171 $ $0 $@
1172
a.rottmann84e63352003-03-24 09:42:16 +00001173_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001174{
1175cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001176## --------- ##
1177## Platform. ##
1178## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001179
1180hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1181uname -m = `(uname -m) 2>/dev/null || echo unknown`
1182uname -r = `(uname -r) 2>/dev/null || echo unknown`
1183uname -s = `(uname -s) 2>/dev/null || echo unknown`
1184uname -v = `(uname -v) 2>/dev/null || echo unknown`
1185
1186/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1187/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1188
1189/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1190/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1191/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1192hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1193/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1194/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1195/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1196
drh71eb93e2001-09-28 01:34:43 +00001197_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001198
1199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1200for as_dir in $PATH
1201do
1202 IFS=$as_save_IFS
1203 test -z "$as_dir" && as_dir=.
1204 echo "PATH: $as_dir"
1205done
1206
drh71eb93e2001-09-28 01:34:43 +00001207} >&5
1208
a.rottmann84e63352003-03-24 09:42:16 +00001209cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001210
a.rottmann84e63352003-03-24 09:42:16 +00001211
1212## ----------- ##
1213## Core tests. ##
1214## ----------- ##
1215
1216_ACEOF
1217
drh71eb93e2001-09-28 01:34:43 +00001218
1219# Keep a trace of the command line.
1220# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001221# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001222# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001223# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001224ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001225ac_configure_args0=
1226ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001227ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001228ac_must_keep_next=false
1229for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001230do
a.rottmann84e63352003-03-24 09:42:16 +00001231 for ac_arg
1232 do
1233 case $ac_arg in
1234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 continue ;;
1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1240 esac
1241 case $ac_pass in
1242 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1243 2)
1244 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1245 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001246 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001247 else
a.rottmann964dbb12004-02-26 19:47:42 +00001248 case $ac_arg in
1249 *=* | --config-cache | -C | -disable-* | --disable-* \
1250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1252 | -with-* | --with-* | -without-* | --without-* | --x)
1253 case "$ac_configure_args0 " in
1254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1255 esac
1256 ;;
1257 -* ) ac_must_keep_next=true ;;
1258 esac
a.rottmann84e63352003-03-24 09:42:16 +00001259 fi
1260 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1261 # Get rid of the leading space.
1262 ac_sep=" "
1263 ;;
1264 esac
1265 done
drh71eb93e2001-09-28 01:34:43 +00001266done
a.rottmann84e63352003-03-24 09:42:16 +00001267$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1268$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001269
1270# When interrupted or exit'd, cleanup temporary files, and complete
1271# config.log. We remove comments because anyway the quotes in there
1272# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001273# WARNING: Be sure not to use single quotes in there, as some shells,
1274# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001275trap 'exit_status=$?
1276 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001277 {
1278 echo
1279
1280 cat <<\_ASBOX
1281## ---------------- ##
1282## Cache variables. ##
1283## ---------------- ##
1284_ASBOX
1285 echo
1286 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001287{
1288 (set) 2>&1 |
1289 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1290 *ac_space=\ *)
1291 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001292 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001294 ;;
1295 *)
1296 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001297 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001298 ;;
1299 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001300}
1301 echo
1302
1303 cat <<\_ASBOX
1304## ----------------- ##
1305## Output variables. ##
1306## ----------------- ##
1307_ASBOX
1308 echo
1309 for ac_var in $ac_subst_vars
1310 do
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1315
1316 if test -n "$ac_subst_files"; then
1317 cat <<\_ASBOX
1318## ------------- ##
1319## Output files. ##
1320## ------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_files
1324 do
1325 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001326 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001327 done | sort
1328 echo
1329 fi
1330
1331 if test -s confdefs.h; then
1332 cat <<\_ASBOX
1333## ----------- ##
1334## confdefs.h. ##
1335## ----------- ##
1336_ASBOX
1337 echo
1338 sed "/^$/d" confdefs.h | sort
1339 echo
1340 fi
1341 test "$ac_signal" != 0 &&
1342 echo "$as_me: caught signal $ac_signal"
1343 echo "$as_me: exit $exit_status"
1344 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001345 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001346 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001347 exit $exit_status
1348 ' 0
1349for ac_signal in 1 2 13 15; do
1350 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1351done
1352ac_signal=0
1353
1354# confdefs.h avoids OS command line length limits that DEFS can exceed.
1355rm -rf conftest* confdefs.h
1356# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1357echo >confdefs.h
1358
a.rottmann84e63352003-03-24 09:42:16 +00001359# Predefined preprocessor variables.
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_NAME "$PACKAGE_NAME"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_VERSION "$PACKAGE_VERSION"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_STRING "$PACKAGE_STRING"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1383_ACEOF
1384
1385
drh71eb93e2001-09-28 01:34:43 +00001386# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001387# Prefer explicitly selected file to automatically selected ones.
1388if test -z "$CONFIG_SITE"; then
1389 if test "x$prefix" != xNONE; then
1390 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1391 else
1392 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1393 fi
1394fi
1395for ac_site_file in $CONFIG_SITE; do
1396 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001397 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001398echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001399 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001400 . "$ac_site_file"
1401 fi
1402done
1403
1404if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001405 # Some versions of bash will fail to source /dev/null (special
1406 # files actually), so we avoid doing that.
1407 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001408 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001409echo "$as_me: loading cache $cache_file" >&6;}
1410 case $cache_file in
1411 [\\/]* | ?:[\\/]* ) . $cache_file;;
1412 *) . ./$cache_file;;
1413 esac
1414 fi
drh75897232000-05-29 14:26:00 +00001415else
a.rottmann84e63352003-03-24 09:42:16 +00001416 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001417echo "$as_me: creating cache $cache_file" >&6;}
1418 >$cache_file
1419fi
1420
1421# Check that the precious variables saved in the cache have kept the same
1422# value.
1423ac_cache_corrupted=false
1424for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001425 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1427 eval ac_new_set=\$ac_env_${ac_var}_set
1428 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1429 eval ac_new_val="\$ac_env_${ac_var}_value"
1430 case $ac_old_set,$ac_new_set in
1431 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001432 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001433echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1434 ac_cache_corrupted=: ;;
1435 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001436 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001437echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1439 ,);;
1440 *)
1441 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001442 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001443echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001444 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001445echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001446 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001447echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001448 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001449 fi;;
1450 esac
a.rottmann84e63352003-03-24 09:42:16 +00001451 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001470fi
1471
1472ac_ext=c
drh75897232000-05-29 14:26:00 +00001473ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001477
a.rottmann84e63352003-03-24 09:42:16 +00001478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
drh75897232000-05-29 14:26:00 +00001496
1497# The following RCS revision string applies to configure.in
drhb571b452004-12-10 02:20:27 +00001498# $Revision: 1.28 $
drh75897232000-05-29 14:26:00 +00001499
1500#########
drh71eb93e2001-09-28 01:34:43 +00001501# Programs needed
drh75897232000-05-29 14:26:00 +00001502#
drh71eb93e2001-09-28 01:34:43 +00001503# Check whether --enable-shared or --disable-shared was given.
1504if test "${enable_shared+set}" = set; then
1505 enableval="$enable_shared"
1506 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001507 case $enableval in
1508 yes) enable_shared=yes ;;
1509 no) enable_shared=no ;;
1510 *)
1511 enable_shared=no
1512 # Look at the argument we got. We use all the common list separators.
1513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1514 for pkg in $enableval; do
1515 IFS="$lt_save_ifs"
1516 if test "X$pkg" = "X$p"; then
1517 enable_shared=yes
1518 fi
1519 done
1520 IFS="$lt_save_ifs"
1521 ;;
1522 esac
drh71eb93e2001-09-28 01:34:43 +00001523else
1524 enable_shared=yes
1525fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001526
drh71eb93e2001-09-28 01:34:43 +00001527# Check whether --enable-static or --disable-static was given.
1528if test "${enable_static+set}" = set; then
1529 enableval="$enable_static"
1530 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001531 case $enableval in
1532 yes) enable_static=yes ;;
1533 no) enable_static=no ;;
1534 *)
1535 enable_static=no
1536 # Look at the argument we got. We use all the common list separators.
1537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1538 for pkg in $enableval; do
1539 IFS="$lt_save_ifs"
1540 if test "X$pkg" = "X$p"; then
1541 enable_static=yes
1542 fi
1543 done
1544 IFS="$lt_save_ifs"
1545 ;;
1546 esac
drh71eb93e2001-09-28 01:34:43 +00001547else
1548 enable_static=yes
1549fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001550
drh71eb93e2001-09-28 01:34:43 +00001551# Check whether --enable-fast-install or --disable-fast-install was given.
1552if test "${enable_fast_install+set}" = set; then
1553 enableval="$enable_fast_install"
1554 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001555 case $enableval in
1556 yes) enable_fast_install=yes ;;
1557 no) enable_fast_install=no ;;
1558 *)
1559 enable_fast_install=no
1560 # Look at the argument we got. We use all the common list separators.
1561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1562 for pkg in $enableval; do
1563 IFS="$lt_save_ifs"
1564 if test "X$pkg" = "X$p"; then
1565 enable_fast_install=yes
1566 fi
1567 done
1568 IFS="$lt_save_ifs"
1569 ;;
1570 esac
drh71eb93e2001-09-28 01:34:43 +00001571else
1572 enable_fast_install=yes
1573fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001574
drh71eb93e2001-09-28 01:34:43 +00001575ac_aux_dir=
1576for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577 if test -f $ac_dir/install-sh; then
1578 ac_aux_dir=$ac_dir
1579 ac_install_sh="$ac_aux_dir/install-sh -c"
1580 break
1581 elif test -f $ac_dir/install.sh; then
1582 ac_aux_dir=$ac_dir
1583 ac_install_sh="$ac_aux_dir/install.sh -c"
1584 break
1585 elif test -f $ac_dir/shtool; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/shtool install -c"
1588 break
1589 fi
1590done
1591if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001593echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594 { (exit 1); exit 1; }; }
1595fi
1596ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599
1600# Make sure we can run config.sub.
1601$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001603echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604 { (exit 1); exit 1; }; }
1605
a.rottmann84e63352003-03-24 09:42:16 +00001606echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001607echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608if test "${ac_cv_build+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_build_alias=$build_alias
1612test -z "$ac_cv_build_alias" &&
1613 ac_cv_build_alias=`$ac_config_guess`
1614test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001616echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617 { (exit 1); exit 1; }; }
1618ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001621 { (exit 1); exit 1; }; }
1622
1623fi
a.rottmann84e63352003-03-24 09:42:16 +00001624echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001625echo "${ECHO_T}$ac_cv_build" >&6
1626build=$ac_cv_build
1627build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
a.rottmann84e63352003-03-24 09:42:16 +00001631
1632echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001633echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_host_alias=$host_alias
1638test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001642echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
a.rottmann84e63352003-03-24 09:42:16 +00001646echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001647echo "${ECHO_T}$ac_cv_host" >&6
1648host=$ac_cv_host
1649host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
a.rottmann84e63352003-03-24 09:42:16 +00001653
drh71eb93e2001-09-28 01:34:43 +00001654ac_ext=c
1655ac_cpp='$CPP $CPPFLAGS'
1656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1658ac_compiler_gnu=$ac_cv_c_compiler_gnu
1659if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1661set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001662echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 if test -n "$CC"; then
1668 ac_cv_prog_CC="$CC" # Let the user override the test.
1669else
a.rottmann84e63352003-03-24 09:42:16 +00001670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681done
drh71eb93e2001-09-28 01:34:43 +00001682done
1683
1684fi
1685fi
1686CC=$ac_cv_prog_CC
1687if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001688 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001689echo "${ECHO_T}$CC" >&6
1690else
a.rottmann84e63352003-03-24 09:42:16 +00001691 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001692echo "${ECHO_T}no" >&6
1693fi
1694
1695fi
1696if test -z "$ac_cv_prog_CC"; then
1697 ac_ct_CC=$CC
1698 # Extract the first word of "gcc", so it can be a program name with args.
1699set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001700echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
a.rottmann84e63352003-03-24 09:42:16 +00001708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="gcc"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
drh71eb93e2001-09-28 01:34:43 +00001720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
a.rottmann84e63352003-03-24 09:42:16 +00001729 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001730echo "${ECHO_T}no" >&6
1731fi
1732
1733 CC=$ac_ct_CC
1734else
1735 CC="$ac_cv_prog_CC"
1736fi
1737
1738if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1741set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001742echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1749else
a.rottmann84e63352003-03-24 09:42:16 +00001750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="${ac_tool_prefix}cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1760 fi
1761done
drh71eb93e2001-09-28 01:34:43 +00001762done
1763
1764fi
1765fi
1766CC=$ac_cv_prog_CC
1767if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001768 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001769echo "${ECHO_T}$CC" >&6
1770else
a.rottmann84e63352003-03-24 09:42:16 +00001771 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001772echo "${ECHO_T}no" >&6
1773fi
1774
1775fi
1776if test -z "$ac_cv_prog_CC"; then
1777 ac_ct_CC=$CC
1778 # Extract the first word of "cc", so it can be a program name with args.
1779set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001780echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787else
a.rottmann84e63352003-03-24 09:42:16 +00001788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC="cc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
drh71eb93e2001-09-28 01:34:43 +00001800done
1801
1802fi
1803fi
1804ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001807echo "${ECHO_T}$ac_ct_CC" >&6
1808else
a.rottmann84e63352003-03-24 09:42:16 +00001809 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001810echo "${ECHO_T}no" >&6
1811fi
1812
1813 CC=$ac_ct_CC
1814else
1815 CC="$ac_cv_prog_CC"
1816fi
1817
1818fi
1819if test -z "$CC"; then
1820 # Extract the first word of "cc", so it can be a program name with args.
1821set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001822echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1839 ac_prog_rejected=yes
1840 continue
1841 fi
1842 ac_cv_prog_CC="cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
drh71eb93e2001-09-28 01:34:43 +00001847done
1848
1849if test $ac_prog_rejected = yes; then
1850 # We found a bogon in the path, so make sure we never use it.
1851 set dummy $ac_cv_prog_CC
1852 shift
1853 if test $# != 0; then
1854 # We chose a different compiler from the bogus one.
1855 # However, it has the same basename, so the bogon will be chosen
1856 # first if we set CC to just the basename; use the full file name.
1857 shift
a.rottmann84e63352003-03-24 09:42:16 +00001858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001859 fi
1860fi
1861fi
1862fi
1863CC=$ac_cv_prog_CC
1864if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001865 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001866echo "${ECHO_T}$CC" >&6
1867else
a.rottmann84e63352003-03-24 09:42:16 +00001868 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001869echo "${ECHO_T}no" >&6
1870fi
1871
1872fi
1873if test -z "$CC"; then
1874 if test -n "$ac_tool_prefix"; then
1875 for ac_prog in cl
1876 do
1877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001879echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1886else
a.rottmann84e63352003-03-24 09:42:16 +00001887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888for as_dir in $PATH
1889do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 break 2
1897 fi
1898done
drh71eb93e2001-09-28 01:34:43 +00001899done
1900
1901fi
1902fi
1903CC=$ac_cv_prog_CC
1904if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001905 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001906echo "${ECHO_T}$CC" >&6
1907else
a.rottmann84e63352003-03-24 09:42:16 +00001908 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001909echo "${ECHO_T}no" >&6
1910fi
1911
1912 test -n "$CC" && break
1913 done
1914fi
1915if test -z "$CC"; then
1916 ac_ct_CC=$CC
1917 for ac_prog in cl
1918do
1919 # Extract the first word of "$ac_prog", so it can be a program name with args.
1920set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001921echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925else
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928else
a.rottmann84e63352003-03-24 09:42:16 +00001929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930for as_dir in $PATH
1931do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1939 fi
1940done
drh71eb93e2001-09-28 01:34:43 +00001941done
1942
1943fi
1944fi
1945ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001948echo "${ECHO_T}$ac_ct_CC" >&6
1949else
a.rottmann84e63352003-03-24 09:42:16 +00001950 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001951echo "${ECHO_T}no" >&6
1952fi
1953
1954 test -n "$ac_ct_CC" && break
1955done
1956
1957 CC=$ac_ct_CC
1958fi
1959
1960fi
1961
a.rottmann84e63352003-03-24 09:42:16 +00001962
1963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: no acceptable C compiler found in \$PATH
1966See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001967 { (exit 1); exit 1; }; }
1968
1969# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001970echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001971 "checking for C compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001974 (eval $ac_compiler --version </dev/null >&5) 2>&5
1975 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001977 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001979 (eval $ac_compiler -v </dev/null >&5) 2>&5
1980 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001982 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001984 (eval $ac_compiler -V </dev/null >&5) 2>&5
1985 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001987 (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001990/* confdefs.h. */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001995
1996int
1997main ()
1998{
1999
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002005ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002009echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2010echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002013 (eval $ac_link_default) 2>&5
2014 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002016 (exit $ac_status); }; then
2017 # Find the output, starting from the most likely. This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002028 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002030 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002031 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002032 # This is the source file.
2033 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002034 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002035 # We found the default executable, but exeext='' is most
2036 # certainly right.
2037 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002038 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002039 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040 # FIXME: I believe we export ac_cv_exeext for Libtool,
2041 # but it would be cool to find out if it's true. Does anybody
2042 # maintain Libtool? --akim.
2043 export ac_cv_exeext
2044 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002045 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002046 break;;
drh71eb93e2001-09-28 01:34:43 +00002047 esac
2048done
2049else
2050 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C compiler cannot create executables
2056See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002057 { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002061echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run. If not, either
2065# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002066echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002067echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002073 (eval $ac_try) 2>&5
2074 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002076 (exit $ac_status); }; }; then
2077 cross_compiling=no
2078 else
2079 if test "$cross_compiling" = maybe; then
2080 cross_compiling=yes
2081 else
a.rottmann84e63352003-03-24 09:42:16 +00002082 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002085echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002088 { (exit 1); exit 1; }; }
2089 fi
2090 fi
2091fi
a.rottmann84e63352003-03-24 09:42:16 +00002092echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002093echo "${ECHO_T}yes" >&6
2094
a.rottmann84e63352003-03-24 09:42:16 +00002095rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run. If not, either
2098# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002101echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002102echo "${ECHO_T}$cross_compiling" >&6
2103
a.rottmann84e63352003-03-24 09:42:16 +00002104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002107 (eval $ac_link) 2>&5
2108 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002110 (exit $ac_status); }; then
2111 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002115for ac_file in conftest.exe conftest conftest.*; do
2116 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002117 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002120 export ac_cv_exeext
2121 break;;
drh71eb93e2001-09-28 01:34:43 +00002122 * ) break;;
2123 esac
2124done
2125else
a.rottmann84e63352003-03-24 09:42:16 +00002126 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002130 { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002142if test "${ac_cv_objext+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002146/* confdefs.h. */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002151
2152int
2153main ()
2154{
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002162 (eval $ac_compile) 2>&5
2163 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002165 (exit $ac_status); }; then
2166 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170 break;;
2171 esac
2172done
2173else
2174 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002181 { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
a.rottmann84e63352003-03-24 09:42:16 +00002186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002190echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2192if test "${ac_cv_c_compiler_gnu+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002196/* confdefs.h. */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206 choke me
2207#endif
2208
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002215 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002216 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002217 grep -v '^ *+' conftest.er1 >conftest.err
2218 rm -f conftest.er1
2219 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002221 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002222 { ac_try='test -z "$ac_c_werror_flag"
2223 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; } &&
2229 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002231 (eval $ac_try) 2>&5
2232 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002234 (exit $ac_status); }; }; then
2235 ac_compiler_gnu=yes
2236else
2237 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002238sed 's/^/| /' conftest.$ac_ext >&5
2239
drh71eb93e2001-09-28 01:34:43 +00002240ac_compiler_gnu=no
2241fi
a.rottmann964dbb12004-02-26 19:47:42 +00002242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002243ac_cv_c_compiler_gnu=$ac_compiler_gnu
2244
2245fi
a.rottmann84e63352003-03-24 09:42:16 +00002246echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002247echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248GCC=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CFLAGS=${CFLAGS+set}
2250ac_save_CFLAGS=$CFLAGS
2251CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002252echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002253echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cc_g+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002263
2264int
2265main ()
2266{
2267
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002274 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002275 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002280 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002290 (eval $ac_try) 2>&5
2291 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002293 (exit $ac_status); }; }; then
2294 ac_cv_prog_cc_g=yes
2295else
2296 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002297sed 's/^/| /' conftest.$ac_ext >&5
2298
drh71eb93e2001-09-28 01:34:43 +00002299ac_cv_prog_cc_g=no
2300fi
a.rottmann964dbb12004-02-26 19:47:42 +00002301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002302fi
a.rottmann84e63352003-03-24 09:42:16 +00002303echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2305if test "$ac_test_CFLAGS" = set; then
2306 CFLAGS=$ac_save_CFLAGS
2307elif test $ac_cv_prog_cc_g = yes; then
2308 if test "$GCC" = yes; then
2309 CFLAGS="-g -O2"
2310 else
2311 CFLAGS="-g"
2312 fi
2313else
2314 if test "$GCC" = yes; then
2315 CFLAGS="-O2"
2316 else
2317 CFLAGS=
2318 fi
2319fi
a.rottmann84e63352003-03-24 09:42:16 +00002320echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2321echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2322if test "${ac_cv_prog_cc_stdc+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325 ac_cv_prog_cc_stdc=no
2326ac_save_CC=$CC
2327cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002328/* confdefs.h. */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h. */
2333#include <stdarg.h>
2334#include <stdio.h>
2335#include <sys/types.h>
2336#include <sys/stat.h>
2337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2338struct buf { int x; };
2339FILE * (*rcsopen) (struct buf *, struct stat *, int);
2340static char *e (p, i)
2341 char **p;
2342 int i;
2343{
2344 return p[i];
2345}
2346static char *f (char * (*g) (char **, int), char **p, ...)
2347{
2348 char *s;
2349 va_list v;
2350 va_start (v,p);
2351 s = g (p, va_arg (v,int));
2352 va_end (v);
2353 return s;
2354}
a.rottmann964dbb12004-02-26 19:47:42 +00002355
2356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2357 function prototypes and stuff, but not '\xHH' hex character constants.
2358 These don't provoke an error unfortunately, instead are silently treated
2359 as 'x'. The following induces an error, until -std1 is added to get
2360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2361 array size at least. It's necessary to write '\x00'==0 to get something
2362 that's true only with -std1. */
2363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2364
a.rottmann84e63352003-03-24 09:42:16 +00002365int test (int i, double x);
2366struct s1 {int (*f) (int a);};
2367struct s2 {int (*f) (double a);};
2368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2369int argc;
2370char **argv;
2371int
2372main ()
2373{
2374return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379# Don't try gcc -ansi; that turns off useful extensions and
2380# breaks some systems' header files.
2381# AIX -qlanglvl=ansi
2382# Ultrix and OSF/1 -std1
2383# HP-UX 10.20 and later -Ae
2384# HP-UX older versions -Aa -D_HPUX_SOURCE
2385# SVR4 -Xc -D__EXTENSIONS__
2386for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2387do
2388 CC="$ac_save_CC $ac_arg"
2389 rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002391 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002392 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_stdc=$ac_arg
2412break
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
a.rottmann964dbb12004-02-26 19:47:42 +00002418rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002419done
2420rm -f conftest.$ac_ext conftest.$ac_objext
2421CC=$ac_save_CC
2422
2423fi
2424
2425case "x$ac_cv_prog_cc_stdc" in
2426 x|xno)
2427 echo "$as_me:$LINENO: result: none needed" >&5
2428echo "${ECHO_T}none needed" >&6 ;;
2429 *)
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432 CC="$CC $ac_cv_prog_cc_stdc" ;;
2433esac
2434
drh71eb93e2001-09-28 01:34:43 +00002435# Some people use a C++ compiler to compile C. Since we use `exit',
2436# in C++ we need to declare it. In case someone uses the same compiler
2437# for both compiling C and C++ we need to have the C++ compiler decide
2438# the declaration of exit, since it's the most demanding environment.
2439cat >conftest.$ac_ext <<_ACEOF
2440#ifndef __cplusplus
2441 choke me
2442#endif
2443_ACEOF
2444rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002446 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002447 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002452 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002462 (eval $ac_try) 2>&5
2463 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002465 (exit $ac_status); }; }; then
2466 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002467 '' \
drh71eb93e2001-09-28 01:34:43 +00002468 'extern "C" void std::exit (int) throw (); using std::exit;' \
2469 'extern "C" void std::exit (int); using std::exit;' \
2470 'extern "C" void exit (int) throw ();' \
2471 'extern "C" void exit (int);' \
2472 'void exit (int);'
2473do
2474 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002480$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002481#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002482int
2483main ()
2484{
2485exit (42);
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002492 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002493 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002498 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002508 (eval $ac_try) 2>&5
2509 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002511 (exit $ac_status); }; }; then
2512 :
2513else
2514 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002515sed 's/^/| /' conftest.$ac_ext >&5
2516
drh71eb93e2001-09-28 01:34:43 +00002517continue
2518fi
a.rottmann964dbb12004-02-26 19:47:42 +00002519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002520 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002526$ac_declaration
2527int
2528main ()
2529{
2530exit (42);
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002537 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002538 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002543 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002553 (eval $ac_try) 2>&5
2554 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002556 (exit $ac_status); }; }; then
2557 break
2558else
2559 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002560sed 's/^/| /' conftest.$ac_ext >&5
2561
drh71eb93e2001-09-28 01:34:43 +00002562fi
a.rottmann964dbb12004-02-26 19:47:42 +00002563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002564done
2565rm -f conftest*
2566if test -n "$ac_declaration"; then
2567 echo '#ifdef __cplusplus' >>confdefs.h
2568 echo $ac_declaration >>confdefs.h
2569 echo '#endif' >>confdefs.h
2570fi
2571
2572else
2573 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002574sed 's/^/| /' conftest.$ac_ext >&5
2575
drh71eb93e2001-09-28 01:34:43 +00002576fi
a.rottmann964dbb12004-02-26 19:47:42 +00002577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
a.rottmann9bc8b932004-02-29 15:18:31 +00002584echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2585echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2586if test "${lt_cv_path_SED+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 # Loop through the user's path and test for sed and gsed.
2590# Then use that list of sed's as ones to test for truncation.
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for lt_ac_prog in sed gsed; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2599 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2600 fi
2601 done
2602 done
2603done
2604lt_ac_max=0
2605lt_ac_count=0
2606# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2607# along with /bin/sed that truncates output.
2608for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2609 test ! -f $lt_ac_sed && break
2610 cat /dev/null > conftest.in
2611 lt_ac_count=0
2612 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2613 # Check for GNU sed and select it if it is found.
2614 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2615 lt_cv_path_SED=$lt_ac_sed
2616 break
2617 fi
2618 while true; do
2619 cat conftest.in conftest.in >conftest.tmp
2620 mv conftest.tmp conftest.in
2621 cp conftest.in conftest.nl
2622 echo >>conftest.nl
2623 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2624 cmp -s conftest.out conftest.nl || break
2625 # 10000 chars as input seems more than enough
2626 test $lt_ac_count -gt 10 && break
2627 lt_ac_count=`expr $lt_ac_count + 1`
2628 if test $lt_ac_count -gt $lt_ac_max; then
2629 lt_ac_max=$lt_ac_count
2630 lt_cv_path_SED=$lt_ac_sed
2631 fi
2632 done
2633done
2634SED=$lt_cv_path_SED
2635
a.rottmann84e63352003-03-24 09:42:16 +00002636fi
2637
a.rottmann9bc8b932004-02-29 15:18:31 +00002638echo "$as_me:$LINENO: result: $SED" >&5
2639echo "${ECHO_T}$SED" >&6
2640
2641echo "$as_me:$LINENO: checking for egrep" >&5
2642echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2643if test "${ac_cv_prog_egrep+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2647 then ac_cv_prog_egrep='grep -E'
2648 else ac_cv_prog_egrep='egrep'
2649 fi
2650fi
2651echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2652echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2653 EGREP=$ac_cv_prog_egrep
2654
2655
a.rottmann84e63352003-03-24 09:42:16 +00002656
drh71eb93e2001-09-28 01:34:43 +00002657# Check whether --with-gnu-ld or --without-gnu-ld was given.
2658if test "${with_gnu_ld+set}" = set; then
2659 withval="$with_gnu_ld"
2660 test "$withval" = no || with_gnu_ld=yes
2661else
2662 with_gnu_ld=no
2663fi;
2664ac_prog=ld
2665if test "$GCC" = yes; then
2666 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002667 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2668echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002669 case $host in
2670 *-*-mingw*)
2671 # gcc leaves a trailing carriage return which upsets mingw
2672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2673 *)
2674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2675 esac
2676 case $ac_prog in
2677 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002678 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002679 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002680 # Canonicalize the pathname of ld
2681 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002682 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002683 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002684 done
2685 test -z "$LD" && LD="$ac_prog"
2686 ;;
2687 "")
2688 # If it fails, then pretend we aren't using GCC.
2689 ac_prog=ld
2690 ;;
2691 *)
2692 # If it is relative, then search for the first ld in PATH.
2693 with_gnu_ld=unknown
2694 ;;
2695 esac
2696elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002697 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002698echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2699else
a.rottmann84e63352003-03-24 09:42:16 +00002700 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002701echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2702fi
2703if test "${lt_cv_path_LD+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002708 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002709 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002710 test -z "$ac_dir" && ac_dir=.
2711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2712 lt_cv_path_LD="$ac_dir/$ac_prog"
2713 # Check to see if the program is GNU ld. I'd rather use --version,
2714 # but apparently some GNU ld's only accept -v.
2715 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2717 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002718 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002719 ;;
2720 *)
drh71eb93e2001-09-28 01:34:43 +00002721 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002722 ;;
2723 esac
drh71eb93e2001-09-28 01:34:43 +00002724 fi
2725 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002726 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002727else
2728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2729fi
2730fi
2731
2732LD="$lt_cv_path_LD"
2733if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002734 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002735echo "${ECHO_T}$LD" >&6
2736else
a.rottmann84e63352003-03-24 09:42:16 +00002737 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002738echo "${ECHO_T}no" >&6
2739fi
a.rottmann84e63352003-03-24 09:42:16 +00002740test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002741echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2742 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002743echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002744echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2745if test "${lt_cv_prog_gnu_ld+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002749case `$LD -v 2>&1 </dev/null` in
2750*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002751 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002752 ;;
2753*)
drh71eb93e2001-09-28 01:34:43 +00002754 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002755 ;;
2756esac
drh71eb93e2001-09-28 01:34:43 +00002757fi
a.rottmann84e63352003-03-24 09:42:16 +00002758echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002759echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2760with_gnu_ld=$lt_cv_prog_gnu_ld
2761
a.rottmann84e63352003-03-24 09:42:16 +00002762
2763echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002764echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2765if test "${lt_cv_ld_reload_flag+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768 lt_cv_ld_reload_flag='-r'
2769fi
a.rottmann84e63352003-03-24 09:42:16 +00002770echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002771echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2772reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002773case $reload_flag in
2774"" | " "*) ;;
2775*) reload_flag=" $reload_flag" ;;
2776esac
2777reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002778
a.rottmann84e63352003-03-24 09:42:16 +00002779echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002780echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2781if test "${lt_cv_path_NM+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 if test -n "$NM"; then
2785 # Let the user override the test.
2786 lt_cv_path_NM="$NM"
2787else
a.rottmann9bc8b932004-02-29 15:18:31 +00002788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002789 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002790 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002791 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002792 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2793 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002794 # Check to see if the nm accepts a BSD-compat flag.
2795 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2796 # nm: unknown option "B" ignored
2797 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002798 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2799 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002800 lt_cv_path_NM="$tmp_nm -B"
2801 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002802 ;;
2803 *)
2804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2805 */dev/null*)
2806 lt_cv_path_NM="$tmp_nm -p"
2807 break
2808 ;;
2809 *)
2810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2811 continue # so that we can try to find one that supports BSD flags
2812 ;;
2813 esac
2814 esac
drh71eb93e2001-09-28 01:34:43 +00002815 fi
2816 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002817 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002818 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2819fi
2820fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002821echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2822echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002823NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002824
2825echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002826echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2827LN_S=$as_ln_s
2828if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002829 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002830echo "${ECHO_T}yes" >&6
2831else
a.rottmann84e63352003-03-24 09:42:16 +00002832 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002833echo "${ECHO_T}no, using $LN_S" >&6
2834fi
2835
a.rottmann84e63352003-03-24 09:42:16 +00002836echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2837echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002838if test "${lt_cv_deplibs_check_method+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 lt_cv_file_magic_cmd='$MAGIC_CMD'
2842lt_cv_file_magic_test_file=
2843lt_cv_deplibs_check_method='unknown'
2844# Need to set the preceding variable on all platforms that support
2845# interlibrary dependencies.
2846# 'none' -- dependencies not supported.
2847# `unknown' -- same as none, but documents that we really don't know.
2848# 'pass_all' -- all dependencies passed with no checks.
2849# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002850# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002851# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002852# If you have `file' or equivalent on your system and you're not sure
2853# whether `pass_all' will *always* work, you probably want this one.
2854
2855case $host_os in
2856aix4* | aix5*)
2857 lt_cv_deplibs_check_method=pass_all
2858 ;;
2859
2860beos*)
2861 lt_cv_deplibs_check_method=pass_all
2862 ;;
2863
2864bsdi4*)
2865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2866 lt_cv_file_magic_cmd='/usr/bin/file -L'
2867 lt_cv_file_magic_test_file=/shlib/libc.so
2868 ;;
2869
a.rottmann9bc8b932004-02-29 15:18:31 +00002870cygwin*)
2871 # win32_libid is a shell function defined in ltmain.sh
2872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2873 lt_cv_file_magic_cmd='win32_libid'
2874 ;;
2875
2876mingw* | pw32*)
2877 # Base MSYS/MinGW do not provide the 'file' command needed by
2878 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002879 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2880 lt_cv_file_magic_cmd='$OBJDUMP -f'
2881 ;;
2882
2883darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002884 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002885 ;;
2886
a.rottmann9bc8b932004-02-29 15:18:31 +00002887freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2889 case $host_cpu in
2890 i*86 )
2891 # Not sure whether the presence of OpenBSD here was a mistake.
2892 # Let's accept both of them until this is cleared up.
2893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2894 lt_cv_file_magic_cmd=/usr/bin/file
2895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2896 ;;
2897 esac
2898 else
2899 lt_cv_deplibs_check_method=pass_all
2900 fi
2901 ;;
2902
2903gnu*)
2904 lt_cv_deplibs_check_method=pass_all
2905 ;;
2906
a.rottmann9bc8b932004-02-29 15:18:31 +00002907hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002908 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002909 case "$host_cpu" in
2910 ia64*)
2911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2913 ;;
2914 hppa*64*)
2915 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]'
2916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2917 ;;
2918 *)
2919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2921 ;;
2922 esac
drh71eb93e2001-09-28 01:34:43 +00002923 ;;
2924
a.rottmann84e63352003-03-24 09:42:16 +00002925irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002926 case $LD in
2927 *-32|*"-32 ") libmagic=32-bit;;
2928 *-n32|*"-n32 ") libmagic=N32;;
2929 *-64|*"-64 ") libmagic=64-bit;;
2930 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002931 esac
drh71eb93e2001-09-28 01:34:43 +00002932 lt_cv_deplibs_check_method=pass_all
2933 ;;
2934
2935# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002936linux*)
2937 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002938 ;;
2939
a.rottmann9bc8b932004-02-29 15:18:31 +00002940netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002943 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002945 fi
2946 ;;
2947
2948newos6*)
2949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2950 lt_cv_file_magic_cmd=/usr/bin/file
2951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2952 ;;
2953
a.rottmann9bc8b932004-02-29 15:18:31 +00002954nto-qnx*)
2955 lt_cv_deplibs_check_method=unknown
2956 ;;
2957
a.rottmann84e63352003-03-24 09:42:16 +00002958openbsd*)
2959 lt_cv_file_magic_cmd=/usr/bin/file
2960 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2963 else
2964 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2965 fi
drh71eb93e2001-09-28 01:34:43 +00002966 ;;
2967
2968osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002969 lt_cv_deplibs_check_method=pass_all
2970 ;;
2971
2972sco3.2v5*)
2973 lt_cv_deplibs_check_method=pass_all
2974 ;;
2975
2976solaris*)
2977 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002978 ;;
2979
drh71eb93e2001-09-28 01:34:43 +00002980sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2981 case $host_vendor in
2982 motorola)
2983 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]'
2984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2985 ;;
2986 ncr)
2987 lt_cv_deplibs_check_method=pass_all
2988 ;;
2989 sequent)
2990 lt_cv_file_magic_cmd='/bin/file'
2991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2992 ;;
2993 sni)
2994 lt_cv_file_magic_cmd='/bin/file'
2995 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2996 lt_cv_file_magic_test_file=/lib/libc.so
2997 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002998 siemens)
2999 lt_cv_deplibs_check_method=pass_all
3000 ;;
drh71eb93e2001-09-28 01:34:43 +00003001 esac
3002 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003003
3004sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3005 lt_cv_deplibs_check_method=pass_all
3006 ;;
drh71eb93e2001-09-28 01:34:43 +00003007esac
3008
3009fi
a.rottmann84e63352003-03-24 09:42:16 +00003010echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003011echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3012file_magic_cmd=$lt_cv_file_magic_cmd
3013deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003014test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003015
drh71eb93e2001-09-28 01:34:43 +00003016
drh71eb93e2001-09-28 01:34:43 +00003017
drh71eb93e2001-09-28 01:34:43 +00003018
a.rottmann9bc8b932004-02-29 15:18:31 +00003019# If no C compiler was specified, use CC.
3020LTCC=${LTCC-"$CC"}
3021
3022# Allow CC to be a program name with arguments.
3023compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003024
drh71eb93e2001-09-28 01:34:43 +00003025
a.rottmann9bc8b932004-02-29 15:18:31 +00003026# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3027if test "${enable_libtool_lock+set}" = set; then
3028 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003029
a.rottmann9bc8b932004-02-29 15:18:31 +00003030fi;
3031test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003032
a.rottmann9bc8b932004-02-29 15:18:31 +00003033# Some flags need to be propagated to the compiler or linker for good
3034# libtool support.
3035case $host in
3036ia64-*-hpux*)
3037 # Find out which ABI we are using.
3038 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003040 (eval $ac_compile) 2>&5
3041 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003043 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003044 case `/usr/bin/file conftest.$ac_objext` in
3045 *ELF-32*)
3046 HPUX_IA64_MODE="32"
3047 ;;
3048 *ELF-64*)
3049 HPUX_IA64_MODE="64"
3050 ;;
3051 esac
3052 fi
3053 rm -rf conftest*
3054 ;;
3055*-*-irix6*)
3056 # Find out which ABI we are using.
drh7b5717e2004-11-25 13:50:01 +00003057 echo '#line 3057 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003060 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003062 (exit $ac_status); }; then
3063 if test "$lt_cv_prog_gnu_ld" = yes; then
3064 case `/usr/bin/file conftest.$ac_objext` in
3065 *32-bit*)
3066 LD="${LD-ld} -melf32bsmip"
3067 ;;
3068 *N32*)
3069 LD="${LD-ld} -melf32bmipn32"
3070 ;;
3071 *64-bit*)
3072 LD="${LD-ld} -melf64bmip"
3073 ;;
3074 esac
3075 else
3076 case `/usr/bin/file conftest.$ac_objext` in
3077 *32-bit*)
3078 LD="${LD-ld} -32"
3079 ;;
3080 *N32*)
3081 LD="${LD-ld} -n32"
3082 ;;
3083 *64-bit*)
3084 LD="${LD-ld} -64"
3085 ;;
3086 esac
3087 fi
3088 fi
3089 rm -rf conftest*
3090 ;;
drh71eb93e2001-09-28 01:34:43 +00003091
a.rottmann9bc8b932004-02-29 15:18:31 +00003092x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3093 # Find out which ABI we are using.
3094 echo 'int i;' > conftest.$ac_ext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 case "`/usr/bin/file conftest.o`" in
3101 *32-bit*)
3102 case $host in
3103 x86_64-*linux*)
3104 LD="${LD-ld} -m elf_i386"
3105 ;;
3106 ppc64-*linux*|powerpc64-*linux*)
3107 LD="${LD-ld} -m elf32ppclinux"
3108 ;;
3109 s390x-*linux*)
3110 LD="${LD-ld} -m elf_s390"
3111 ;;
3112 sparc64-*linux*)
3113 LD="${LD-ld} -m elf32_sparc"
3114 ;;
3115 esac
3116 ;;
3117 *64-bit*)
3118 case $host in
3119 x86_64-*linux*)
3120 LD="${LD-ld} -m elf_x86_64"
3121 ;;
3122 ppc*-*linux*|powerpc*-*linux*)
3123 LD="${LD-ld} -m elf64ppc"
3124 ;;
3125 s390*-*linux*)
3126 LD="${LD-ld} -m elf64_s390"
3127 ;;
3128 sparc*-*linux*)
3129 LD="${LD-ld} -m elf64_sparc"
3130 ;;
3131 esac
3132 ;;
3133 esac
3134 fi
3135 rm -rf conftest*
3136 ;;
drh71eb93e2001-09-28 01:34:43 +00003137
a.rottmann9bc8b932004-02-29 15:18:31 +00003138*-*-sco3.2v5*)
3139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3140 SAVE_CFLAGS="$CFLAGS"
3141 CFLAGS="$CFLAGS -belf"
3142 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3143echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3144if test "${lt_cv_cc_needs_belf+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147 ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003152
a.rottmann9bc8b932004-02-29 15:18:31 +00003153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003159
a.rottmann9bc8b932004-02-29 15:18:31 +00003160int
3161main ()
drh71eb93e2001-09-28 01:34:43 +00003162{
drh71eb93e2001-09-28 01:34:43 +00003163
a.rottmann9bc8b932004-02-29 15:18:31 +00003164 ;
3165 return 0;
drh71eb93e2001-09-28 01:34:43 +00003166}
a.rottmann9bc8b932004-02-29 15:18:31 +00003167_ACEOF
3168rm -f conftest.$ac_objext conftest$ac_exeext
3169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003177 { ac_try='test -z "$ac_c_werror_flag"
3178 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003181 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest$ac_exeext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003191else
a.rottmann9bc8b932004-02-29 15:18:31 +00003192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003196fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003197rm -f conftest.err conftest.$ac_objext \
3198 conftest$ac_exeext conftest.$ac_ext
3199 ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
drh71eb93e2001-09-28 01:34:43 +00003205fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003206echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3207echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3210 CFLAGS="$SAVE_CFLAGS"
3211 fi
3212 ;;
3213
3214esac
3215
3216need_locks="$enable_libtool_lock"
3217
drh71eb93e2001-09-28 01:34:43 +00003218
a.rottmann84e63352003-03-24 09:42:16 +00003219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3226# On Suns, sometimes $CPP names a directory.
3227if test -n "$CPP" && test -d "$CPP"; then
3228 CPP=
3229fi
3230if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
a.rottmann84e63352003-03-24 09:42:16 +00003234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236 do
3237 ac_preproc_ok=false
3238for ac_c_preproc_warn_flag in '' yes
3239do
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003257 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003258_ACEOF
3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003270 else
3271 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003272 fi
a.rottmann84e63352003-03-24 09:42:16 +00003273else
3274 ac_cpp_err=yes
3275fi
3276if test -z "$ac_cpp_err"; then
3277 :
3278else
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 # Broken: fails on valid input.
3283continue
3284fi
3285rm -f conftest.err conftest.$ac_ext
3286
3287 # OK, works on sane cases. Now check whether non-existent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
3295#include <ac_nonexistent.h>
3296_ACEOF
3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003308 else
3309 ac_cpp_err=
3310 fi
3311else
3312 ac_cpp_err=yes
3313fi
3314if test -z "$ac_cpp_err"; then
3315 # Broken: success on invalid input.
3316continue
3317else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 # Passes both tests.
3322ac_preproc_ok=:
3323break
3324fi
3325rm -f conftest.err conftest.$ac_ext
3326
3327done
3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329rm -f conftest.err conftest.$ac_ext
3330if $ac_preproc_ok; then
3331 break
3332fi
3333
3334 done
3335 ac_cv_prog_CPP=$CPP
3336
3337fi
3338 CPP=$ac_cv_prog_CPP
3339else
3340 ac_cv_prog_CPP=$CPP
3341fi
3342echo "$as_me:$LINENO: result: $CPP" >&5
3343echo "${ECHO_T}$CPP" >&6
3344ac_preproc_ok=false
3345for ac_c_preproc_warn_flag in '' yes
3346do
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h. */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003364 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003365_ACEOF
3366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003377 else
3378 ac_cpp_err=
3379 fi
3380else
3381 ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
3392rm -f conftest.err conftest.$ac_ext
3393
3394 # OK, works on sane cases. Now check whether non-existent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402#include <ac_nonexistent.h>
3403_ACEOF
3404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003415 else
3416 ac_cpp_err=
3417 fi
3418else
3419 ac_cpp_err=yes
3420fi
3421if test -z "$ac_cpp_err"; then
3422 # Broken: success on invalid input.
3423continue
3424else
3425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
3432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then
3438 :
3439else
3440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
3446
3447ac_ext=c
3448ac_cpp='$CPP $CPPFLAGS'
3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
a.rottmann84e63352003-03-24 09:42:16 +00003454echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3455echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3456if test "${ac_cv_header_stdc+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465#include <stdlib.h>
3466#include <stdarg.h>
3467#include <string.h>
3468#include <float.h>
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003480 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003481 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003487 { ac_try='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_cv_header_stdc=yes
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505ac_cv_header_stdc=no
3506fi
a.rottmann964dbb12004-02-26 19:47:42 +00003507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003508
3509if test $ac_cv_header_stdc = yes; then
3510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3511 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517#include <string.h>
3518
3519_ACEOF
3520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521 $EGREP "memchr" >/dev/null 2>&1; then
3522 :
3523else
3524 ac_cv_header_stdc=no
3525fi
3526rm -f conftest*
3527
3528fi
3529
3530if test $ac_cv_header_stdc = yes; then
3531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3532 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h. */
3538#include <stdlib.h>
3539
3540_ACEOF
3541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542 $EGREP "free" >/dev/null 2>&1; then
3543 :
3544else
3545 ac_cv_header_stdc=no
3546fi
3547rm -f conftest*
3548
3549fi
3550
3551if test $ac_cv_header_stdc = yes; then
3552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3553 if test "$cross_compiling" = yes; then
3554 :
3555else
3556 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562#include <ctype.h>
3563#if ((' ' & 0x0FF) == 0x020)
3564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3566#else
3567# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003568 (('a' <= (c) && (c) <= 'i') \
3569 || ('j' <= (c) && (c) <= 'r') \
3570 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3572#endif
3573
3574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3575int
3576main ()
3577{
3578 int i;
3579 for (i = 0; i < 256; i++)
3580 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003581 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003582 exit(2);
3583 exit (0);
3584}
3585_ACEOF
3586rm -f conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588 (eval $ac_link) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 :
3598else
3599 echo "$as_me: program exited with status $ac_status" >&5
3600echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603( exit $ac_status )
3604ac_cv_header_stdc=no
3605fi
a.rottmann964dbb12004-02-26 19:47:42 +00003606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003607fi
3608fi
3609fi
3610echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3611echo "${ECHO_T}$ac_cv_header_stdc" >&6
3612if test $ac_cv_header_stdc = yes; then
3613
3614cat >>confdefs.h <<\_ACEOF
3615#define STDC_HEADERS 1
3616_ACEOF
3617
3618fi
3619
3620# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003631 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003632do
3633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3634echo "$as_me:$LINENO: checking for $ac_header" >&5
3635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
3645$ac_includes_default
3646
3647#include <$ac_header>
3648_ACEOF
3649rm -f conftest.$ac_objext
3650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003651 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003652 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003658 { ac_try='test -z "$ac_c_werror_flag"
3659 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; } &&
3665 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 eval "$as_ac_Header=yes"
3672else
3673 echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676eval "$as_ac_Header=no"
3677fi
a.rottmann964dbb12004-02-26 19:47:42 +00003678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003679fi
3680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682if test `eval echo '${'$as_ac_Header'}'` = yes; then
3683 cat >>confdefs.h <<_ACEOF
3684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3685_ACEOF
3686
3687fi
3688
3689done
3690
3691
3692
3693for ac_header in dlfcn.h
3694do
3695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo "$as_me:$LINENO: checking for $ac_header" >&5
3698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701fi
3702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704else
3705 # Is the header compilable?
3706echo "$as_me:$LINENO: checking $ac_header usability" >&5
3707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3708cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714$ac_includes_default
3715#include <$ac_header>
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003719 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003720 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_header_compiler=yes
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744ac_header_compiler=no
3745fi
a.rottmann964dbb12004-02-26 19:47:42 +00003746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3748echo "${ECHO_T}$ac_header_compiler" >&6
3749
3750# Is the header present?
3751echo "$as_me:$LINENO: checking $ac_header presence" >&5
3752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3753cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
3759#include <$ac_header>
3760_ACEOF
3761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null; then
3769 if test -s conftest.err; then
3770 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003772 else
3773 ac_cpp_err=
3774 fi
3775else
3776 ac_cpp_err=yes
3777fi
3778if test -z "$ac_cpp_err"; then
3779 ac_header_preproc=yes
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 ac_header_preproc=no
3785fi
3786rm -f conftest.err conftest.$ac_ext
3787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3788echo "${ECHO_T}$ac_header_preproc" >&6
3789
3790# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3792 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3797 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003798 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003799 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003812 (
3813 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003814## ------------------------------------------ ##
3815## Report this to the AC_PACKAGE_NAME lists. ##
3816## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003817_ASBOX
3818 ) |
3819 sed "s/^/$as_me: WARNING: /" >&2
3820 ;;
drh71eb93e2001-09-28 01:34:43 +00003821esac
a.rottmann84e63352003-03-24 09:42:16 +00003822echo "$as_me:$LINENO: checking for $ac_header" >&5
3823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3824if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
a.rottmann964dbb12004-02-26 19:47:42 +00003827 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003828fi
3829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3831
3832fi
3833if test `eval echo '${'$as_ac_Header'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3836_ACEOF
3837
3838fi
3839
drh71eb93e2001-09-28 01:34:43 +00003840done
3841
a.rottmann9bc8b932004-02-29 15:18:31 +00003842ac_ext=cc
3843ac_cpp='$CXXCPP $CPPFLAGS'
3844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3847if test -n "$ac_tool_prefix"; then
3848 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3849 do
3850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852echo "$as_me:$LINENO: checking for $ac_word" >&5
3853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
a.rottmann9bc8b932004-02-29 15:18:31 +00003857 if test -n "$CXX"; then
3858 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871done
3872done
drh71eb93e2001-09-28 01:34:43 +00003873
drh71eb93e2001-09-28 01:34:43 +00003874fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003875fi
3876CXX=$ac_cv_prog_CXX
3877if test -n "$CXX"; then
3878 echo "$as_me:$LINENO: result: $CXX" >&5
3879echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003880else
a.rottmann84e63352003-03-24 09:42:16 +00003881 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003882echo "${ECHO_T}no" >&6
3883fi
3884
a.rottmann9bc8b932004-02-29 15:18:31 +00003885 test -n "$CXX" && break
3886 done
3887fi
3888if test -z "$CXX"; then
3889 ac_ct_CXX=$CXX
3890 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3891do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893set dummy $ac_prog; ac_word=$2
3894echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
a.rottmann9bc8b932004-02-29 15:18:31 +00003899 if test -n "$ac_ct_CXX"; then
3900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CXX="$ac_prog"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914done
drh71eb93e2001-09-28 01:34:43 +00003915
drh71eb93e2001-09-28 01:34:43 +00003916fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003917fi
3918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919if test -n "$ac_ct_CXX"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3921echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003922else
a.rottmann84e63352003-03-24 09:42:16 +00003923 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003924echo "${ECHO_T}no" >&6
3925fi
3926
a.rottmann9bc8b932004-02-29 15:18:31 +00003927 test -n "$ac_ct_CXX" && break
3928done
3929test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3930
3931 CXX=$ac_ct_CXX
3932fi
3933
3934
3935# Provide some information about the compiler.
3936echo "$as_me:$LINENO:" \
3937 "checking for C++ compiler version" >&5
3938ac_compiler=`set X $ac_compile; echo $2`
3939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3940 (eval $ac_compiler --version </dev/null >&5) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }
3944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3945 (eval $ac_compiler -v </dev/null >&5) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }
3949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3950 (eval $ac_compiler -V </dev/null >&5) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }
3954
3955echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3956echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3957if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
3970#ifndef __GNUC__
3971 choke me
3972#endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_compiler_gnu=yes
4001else
4002 echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005ac_compiler_gnu=no
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4012echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4013GXX=`test $ac_compiler_gnu = yes && echo yes`
4014ac_test_CXXFLAGS=${CXXFLAGS+set}
4015ac_save_CXXFLAGS=$CXXFLAGS
4016CXXFLAGS="-g"
4017echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4019if test "${ac_cv_prog_cxx_g+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext
4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004046 { ac_try='test -z "$ac_cxx_werror_flag"
4047 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_prog_cxx_g=yes
4060else
4061 echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064ac_cv_prog_cxx_g=no
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067fi
4068echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4069echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4070if test "$ac_test_CXXFLAGS" = set; then
4071 CXXFLAGS=$ac_save_CXXFLAGS
4072elif test $ac_cv_prog_cxx_g = yes; then
4073 if test "$GXX" = yes; then
4074 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004075 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004076 CXXFLAGS="-g"
4077 fi
4078else
4079 if test "$GXX" = yes; then
4080 CXXFLAGS="-O2"
4081 else
4082 CXXFLAGS=
4083 fi
4084fi
4085for ac_declaration in \
4086 '' \
4087 'extern "C" void std::exit (int) throw (); using std::exit;' \
4088 'extern "C" void std::exit (int); using std::exit;' \
4089 'extern "C" void exit (int) throw ();' \
4090 'extern "C" void exit (int);' \
4091 'void exit (int);'
4092do
4093 cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
4099$ac_declaration
4100#include <stdlib.h>
4101int
4102main ()
4103{
4104exit (42);
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004118 { ac_try='test -z "$ac_cxx_werror_flag"
4119 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 :
4132else
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136continue
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h. */
4145$ac_declaration
4146int
4147main ()
4148{
4149exit (42);
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004163 { ac_try='test -z "$ac_cxx_werror_flag"
4164 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 break
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181fi
4182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183done
4184rm -f conftest*
4185if test -n "$ac_declaration"; then
4186 echo '#ifdef __cplusplus' >>confdefs.h
4187 echo $ac_declaration >>confdefs.h
4188 echo '#endif' >>confdefs.h
4189fi
4190
4191ac_ext=cc
4192ac_cpp='$CXXCPP $CPPFLAGS'
4193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4196
4197ac_ext=cc
4198ac_cpp='$CXXCPP $CPPFLAGS'
4199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4202echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4203echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4204if test -z "$CXXCPP"; then
4205 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 # Double quotes because CXXCPP needs to be expanded
4209 for CXXCPP in "$CXX -E" "/lib/cpp"
4210 do
4211 ac_preproc_ok=false
4212for ac_cxx_preproc_warn_flag in '' yes
4213do
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226#ifdef __STDC__
4227# include <limits.h>
4228#else
4229# include <assert.h>
4230#endif
4231 Syntax error
4232_ACEOF
4233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev/null; then
4241 if test -s conftest.err; then
4242 ac_cpp_err=$ac_cxx_preproc_warn_flag
4243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4244 else
4245 ac_cpp_err=
4246 fi
4247else
4248 ac_cpp_err=yes
4249fi
4250if test -z "$ac_cpp_err"; then
4251 :
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 # Broken: fails on valid input.
4257continue
4258fi
4259rm -f conftest.err conftest.$ac_ext
4260
4261 # OK, works on sane cases. Now check whether non-existent headers
4262 # can be detected and how.
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269#include <ac_nonexistent.h>
4270_ACEOF
4271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null; then
4279 if test -s conftest.err; then
4280 ac_cpp_err=$ac_cxx_preproc_warn_flag
4281 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4282 else
4283 ac_cpp_err=
4284 fi
4285else
4286 ac_cpp_err=yes
4287fi
4288if test -z "$ac_cpp_err"; then
4289 # Broken: success on invalid input.
4290continue
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 # Passes both tests.
4296ac_preproc_ok=:
4297break
4298fi
4299rm -f conftest.err conftest.$ac_ext
4300
4301done
4302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303rm -f conftest.err conftest.$ac_ext
4304if $ac_preproc_ok; then
4305 break
4306fi
4307
4308 done
4309 ac_cv_prog_CXXCPP=$CXXCPP
4310
4311fi
4312 CXXCPP=$ac_cv_prog_CXXCPP
4313else
4314 ac_cv_prog_CXXCPP=$CXXCPP
4315fi
4316echo "$as_me:$LINENO: result: $CXXCPP" >&5
4317echo "${ECHO_T}$CXXCPP" >&6
4318ac_preproc_ok=false
4319for ac_cxx_preproc_warn_flag in '' yes
4320do
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333#ifdef __STDC__
4334# include <limits.h>
4335#else
4336# include <assert.h>
4337#endif
4338 Syntax error
4339_ACEOF
4340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null; then
4348 if test -s conftest.err; then
4349 ac_cpp_err=$ac_cxx_preproc_warn_flag
4350 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4351 else
4352 ac_cpp_err=
4353 fi
4354else
4355 ac_cpp_err=yes
4356fi
4357if test -z "$ac_cpp_err"; then
4358 :
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Broken: fails on valid input.
4364continue
4365fi
4366rm -f conftest.err conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether non-existent headers
4369 # can be detected and how.
4370 cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
4376#include <ac_nonexistent.h>
4377_ACEOF
4378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_cxx_preproc_warn_flag
4388 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4389 else
4390 ac_cpp_err=
4391 fi
4392else
4393 ac_cpp_err=yes
4394fi
4395if test -z "$ac_cpp_err"; then
4396 # Broken: success on invalid input.
4397continue
4398else
4399 echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 # Passes both tests.
4403ac_preproc_ok=:
4404break
4405fi
4406rm -f conftest.err conftest.$ac_ext
4407
4408done
4409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410rm -f conftest.err conftest.$ac_ext
4411if $ac_preproc_ok; then
4412 :
4413else
4414 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4415See \`config.log' for more details." >&5
4416echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4417See \`config.log' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4419fi
4420
4421ac_ext=cc
4422ac_cpp='$CXXCPP $CPPFLAGS'
4423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4426
4427
4428ac_ext=f
4429ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4430ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4432if test -n "$ac_tool_prefix"; then
4433 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4434 do
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_prog_F77+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -n "$F77"; then
4443 ac_cv_prog_F77="$F77" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457done
4458
4459fi
4460fi
4461F77=$ac_cv_prog_F77
4462if test -n "$F77"; then
4463 echo "$as_me:$LINENO: result: $F77" >&5
4464echo "${ECHO_T}$F77" >&6
4465else
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468fi
4469
4470 test -n "$F77" && break
4471 done
4472fi
4473if test -z "$F77"; then
4474 ac_ct_F77=$F77
4475 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4476do
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478set dummy $ac_prog; ac_word=$2
4479echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$ac_ct_F77"; then
4485 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_ac_ct_F77="$ac_prog"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500
4501fi
4502fi
4503ac_ct_F77=$ac_cv_prog_ac_ct_F77
4504if test -n "$ac_ct_F77"; then
4505 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4506echo "${ECHO_T}$ac_ct_F77" >&6
4507else
4508 echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6
4510fi
4511
4512 test -n "$ac_ct_F77" && break
4513done
4514
4515 F77=$ac_ct_F77
4516fi
4517
4518
4519# Provide some information about the compiler.
drh7b5717e2004-11-25 13:50:01 +00004520echo "$as_me:4520:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004521 "checking for Fortran 77 compiler version" >&5
4522ac_compiler=`set X $ac_compile; echo $2`
4523{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4524 (eval $ac_compiler --version </dev/null >&5) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }
4528{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4529 (eval $ac_compiler -v </dev/null >&5) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }
4533{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4534 (eval $ac_compiler -V </dev/null >&5) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }
4538rm -f a.out
4539
4540# If we don't use `.F' as extension, the preprocessor is not run on the
4541# input file. (Note that this only needs to work for GNU compilers.)
4542ac_save_ext=$ac_ext
4543ac_ext=F
4544echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4545echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4546if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 cat >conftest.$ac_ext <<_ACEOF
4550 program main
4551#ifndef __GNUC__
4552 choke me
4553#endif
4554
4555 end
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004566 { ac_try='test -z "$ac_f77_werror_flag"
4567 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_compiler_gnu=yes
4580else
4581 echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584ac_compiler_gnu=no
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4588
4589fi
4590echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4591echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4592ac_ext=$ac_save_ext
4593ac_test_FFLAGS=${FFLAGS+set}
4594ac_save_FFLAGS=$FFLAGS
4595FFLAGS=
4596echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4597echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4598if test "${ac_cv_prog_f77_g+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 FFLAGS=-g
4602cat >conftest.$ac_ext <<_ACEOF
4603 program main
4604
4605 end
4606_ACEOF
4607rm -f conftest.$ac_objext
4608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004616 { ac_try='test -z "$ac_f77_werror_flag"
4617 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_cv_prog_f77_g=yes
4630else
4631 echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634ac_cv_prog_f77_g=no
4635fi
4636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637
4638fi
4639echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4640echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4641if test "$ac_test_FFLAGS" = set; then
4642 FFLAGS=$ac_save_FFLAGS
4643elif test $ac_cv_prog_f77_g = yes; then
4644 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4645 FFLAGS="-g -O2"
4646 else
4647 FFLAGS="-g"
4648 fi
4649else
4650 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4651 FFLAGS="-O2"
4652 else
4653 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004654 fi
4655fi
4656
a.rottmann9bc8b932004-02-29 15:18:31 +00004657G77=`test $ac_compiler_gnu = yes && echo yes`
4658ac_ext=c
4659ac_cpp='$CPP $CPPFLAGS'
4660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663
4664
4665
4666# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4667
4668# find the maximum length of command line arguments
4669echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4670echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4671if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674 i=0
4675 testring="ABCD"
4676
4677 case $build_os in
4678 msdosdjgpp*)
4679 # On DJGPP, this test can blow up pretty badly due to problems in libc
4680 # (any single argument exceeding 2000 bytes causes a buffer overrun
4681 # during glob expansion). Even if it were fixed, the result of this
4682 # check would be larger than it should be.
4683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4684 ;;
4685
4686 gnu*)
4687 # Under GNU Hurd, this test is not required because there is
4688 # no limit to the length of command line arguments.
4689 # Libtool will interpret -1 as no limit whatsoever
4690 lt_cv_sys_max_cmd_len=-1;
4691 ;;
4692
4693 cygwin* | mingw*)
4694 # On Win9x/ME, this test blows up -- it succeeds, but takes
4695 # about 5 minutes as the teststring grows exponentially.
4696 # Worse, since 9x/ME are not pre-emptively multitasking,
4697 # you end up with a "frozen" computer, even though with patience
4698 # the test eventually succeeds (with a max line length of 256k).
4699 # Instead, let's just punt: use the minimum linelength reported by
4700 # all of the supported platforms: 8192 (on NT/2K/XP).
4701 lt_cv_sys_max_cmd_len=8192;
4702 ;;
4703
4704 amigaos*)
4705 # On AmigaOS with pdksh, this test takes hours, literally.
4706 # So we just punt and use a minimum line length of 8192.
4707 lt_cv_sys_max_cmd_len=8192;
4708 ;;
4709
4710 *)
4711 # If test is not a shell built-in, we'll probably end up computing a
4712 # maximum length that is only half of the actual maximum length, but
4713 # we can't tell.
4714 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4715 = "XX$testring") >/dev/null 2>&1 &&
4716 new_result=`expr "X$testring" : ".*" 2>&1` &&
4717 lt_cv_sys_max_cmd_len=$new_result &&
4718 test $i != 17 # 1/2 MB should be enough
4719 do
4720 i=`expr $i + 1`
4721 testring=$testring$testring
4722 done
4723 testring=
4724 # Add a significant safety factor because C++ compilers can tack on massive
4725 # amounts of additional arguments before passing them to the linker.
4726 # It appears as though 1/2 is a usable value.
4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4728 ;;
4729 esac
4730
4731fi
4732
4733if test -n $lt_cv_sys_max_cmd_len ; then
4734 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4735echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4736else
4737 echo "$as_me:$LINENO: result: none" >&5
4738echo "${ECHO_T}none" >&6
4739fi
4740
4741
4742
4743
4744# Check for command to grab the raw symbol name followed by C symbol from nm.
4745echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4746echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4747if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750
4751# These are sane defaults that work on at least a few old systems.
4752# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4753
4754# Character class describing NM global symbol codes.
4755symcode='[BCDEGRST]'
4756
4757# Regexp to match symbols that can be accessed directly from C.
4758sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4759
4760# Transform the above into a raw symbol and a C symbol.
4761symxfrm='\1 \2\3 \3'
4762
4763# Transform an extracted symbol line into a proper C declaration
4764lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4765
4766# Transform an extracted symbol line into symbol name and symbol address
4767lt_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'"
4768
4769# Define system-specific variables.
4770case $host_os in
4771aix*)
4772 symcode='[BCDT]'
4773 ;;
4774cygwin* | mingw* | pw32*)
4775 symcode='[ABCDGISTW]'
4776 ;;
4777hpux*) # Its linker distinguishes data from code symbols
4778 if test "$host_cpu" = ia64; then
4779 symcode='[ABCDEGRST]'
4780 fi
4781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4782 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'"
4783 ;;
4784irix* | nonstopux*)
4785 symcode='[BCDEGRST]'
4786 ;;
4787osf*)
4788 symcode='[BCDEGQRST]'
4789 ;;
4790solaris* | sysv5*)
4791 symcode='[BDRT]'
4792 ;;
4793sysv4)
4794 symcode='[DFNSTU]'
4795 ;;
4796esac
4797
4798# Handle CRLF in mingw tool chain
4799opt_cr=
4800case $build_os in
4801mingw*)
4802 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4803 ;;
4804esac
4805
4806# If we're using GNU nm, then use its standard symbol codes.
4807case `$NM -V 2>&1` in
4808*GNU* | *'with BFD'*)
4809 symcode='[ABCDGIRSTW]' ;;
4810esac
4811
4812# Try without a prefix undercore, then with it.
4813for ac_symprfx in "" "_"; do
4814
4815 # Write the raw and C identifiers.
4816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4817
4818 # Check to see that the pipe works correctly.
4819 pipe_works=no
4820
4821 rm -f conftest*
4822 cat > conftest.$ac_ext <<EOF
4823#ifdef __cplusplus
4824extern "C" {
4825#endif
4826char nm_test_var;
4827void nm_test_func(){}
4828#ifdef __cplusplus
4829}
4830#endif
4831int main(){nm_test_var='a';nm_test_func();return(0);}
4832EOF
4833
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 # Now try to grab the symbols.
4840 nlist=conftest.nm
4841 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4842 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && test -s "$nlist"; then
4846 # Try sorting and uniquifying the output.
4847 if sort "$nlist" | uniq > "$nlist"T; then
4848 mv -f "$nlist"T "$nlist"
4849 else
4850 rm -f "$nlist"T
4851 fi
4852
4853 # Make sure that we snagged all the symbols we need.
4854 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4855 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4856 cat <<EOF > conftest.$ac_ext
4857#ifdef __cplusplus
4858extern "C" {
4859#endif
4860
4861EOF
4862 # Now generate the symbol file.
4863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4864
4865 cat <<EOF >> conftest.$ac_ext
4866#if defined (__STDC__) && __STDC__
4867# define lt_ptr_t void *
4868#else
4869# define lt_ptr_t char *
4870# define const
4871#endif
4872
4873/* The mapping between symbol names and symbols. */
4874const struct {
4875 const char *name;
4876 lt_ptr_t address;
4877}
4878lt_preloaded_symbols[] =
4879{
4880EOF
4881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4882 cat <<\EOF >> conftest.$ac_ext
4883 {0, (lt_ptr_t) 0}
4884};
4885
4886#ifdef __cplusplus
4887}
4888#endif
4889EOF
4890 # Now try linking the two files.
4891 mv conftest.$ac_objext conftstm.$ac_objext
4892 lt_save_LIBS="$LIBS"
4893 lt_save_CFLAGS="$CFLAGS"
4894 LIBS="conftstm.$ac_objext"
4895 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4901 pipe_works=yes
4902 fi
4903 LIBS="$lt_save_LIBS"
4904 CFLAGS="$lt_save_CFLAGS"
4905 else
4906 echo "cannot find nm_test_func in $nlist" >&5
4907 fi
4908 else
4909 echo "cannot find nm_test_var in $nlist" >&5
4910 fi
4911 else
4912 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4913 fi
4914 else
4915 echo "$progname: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 fi
4918 rm -f conftest* conftst*
4919
4920 # Do not use the global_symbol_pipe unless it works.
4921 if test "$pipe_works" = yes; then
4922 break
4923 else
4924 lt_cv_sys_global_symbol_pipe=
4925 fi
4926done
4927
4928fi
4929
4930if test -z "$lt_cv_sys_global_symbol_pipe"; then
4931 lt_cv_sys_global_symbol_to_cdecl=
4932fi
4933if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4934 echo "$as_me:$LINENO: result: failed" >&5
4935echo "${ECHO_T}failed" >&6
4936else
4937 echo "$as_me:$LINENO: result: ok" >&5
4938echo "${ECHO_T}ok" >&6
4939fi
4940
4941echo "$as_me:$LINENO: checking for objdir" >&5
4942echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4943if test "${lt_cv_objdir+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 rm -f .libs 2>/dev/null
4947mkdir .libs 2>/dev/null
4948if test -d .libs; then
4949 lt_cv_objdir=.libs
4950else
4951 # MS-DOS does not allow filenames that begin with a dot.
4952 lt_cv_objdir=_libs
4953fi
4954rmdir .libs 2>/dev/null
4955fi
4956echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4957echo "${ECHO_T}$lt_cv_objdir" >&6
4958objdir=$lt_cv_objdir
4959
4960
4961
4962
4963
4964case $host_os in
4965aix3*)
4966 # AIX sometimes has problems with the GCC collect2 program. For some
4967 # reason, if we set the COLLECT_NAMES environment variable, the problems
4968 # vanish in a puff of smoke.
4969 if test "X${COLLECT_NAMES+set}" != Xset; then
4970 COLLECT_NAMES=
4971 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004972 fi
4973 ;;
4974esac
4975
a.rottmann9bc8b932004-02-29 15:18:31 +00004976# Sed substitution that helps us do robust quoting. It backslashifies
4977# metacharacters that are still active within double-quoted strings.
4978Xsed='sed -e s/^X//'
4979sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4980
4981# Same as above, but do not quote variable references.
4982double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4983
4984# Sed substitution to delay expansion of an escaped shell variable in a
4985# double_quote_subst'ed string.
4986delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4987
4988# Sed substitution to avoid accidental globbing in evaled expressions
4989no_glob_subst='s/\*/\\\*/g'
4990
4991# Constants:
4992rm="rm -f"
4993
4994# Global variables:
4995default_ofile=libtool
4996can_build_shared=yes
4997
4998# All known linkers require a `.a' archive for static linking (except M$VC,
4999# which needs '.lib').
5000libext=a
5001ltmain="$ac_aux_dir/ltmain.sh"
5002ofile="$default_ofile"
5003with_gnu_ld="$lt_cv_prog_gnu_ld"
5004
5005if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5007set dummy ${ac_tool_prefix}ar; ac_word=$2
5008echo "$as_me:$LINENO: checking for $ac_word" >&5
5009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010if test "${ac_cv_prog_AR+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 if test -n "$AR"; then
5014 ac_cv_prog_AR="$AR" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_AR="${ac_tool_prefix}ar"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027done
5028done
5029
5030fi
5031fi
5032AR=$ac_cv_prog_AR
5033if test -n "$AR"; then
5034 echo "$as_me:$LINENO: result: $AR" >&5
5035echo "${ECHO_T}$AR" >&6
5036else
5037 echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039fi
5040
5041fi
5042if test -z "$ac_cv_prog_AR"; then
5043 ac_ct_AR=$AR
5044 # Extract the first word of "ar", so it can be a program name with args.
5045set dummy ar; ac_word=$2
5046echo "$as_me:$LINENO: checking for $ac_word" >&5
5047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051 if test -n "$ac_ct_AR"; then
5052 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_AR="ar"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066done
5067
5068 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5069fi
5070fi
5071ac_ct_AR=$ac_cv_prog_ac_ct_AR
5072if test -n "$ac_ct_AR"; then
5073 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5074echo "${ECHO_T}$ac_ct_AR" >&6
5075else
5076 echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078fi
5079
5080 AR=$ac_ct_AR
5081else
5082 AR="$ac_cv_prog_AR"
5083fi
5084
a.rottmann84e63352003-03-24 09:42:16 +00005085if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5088echo "$as_me:$LINENO: checking for $ac_word" >&5
5089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090if test "${ac_cv_prog_RANLIB+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 if test -n "$RANLIB"; then
5094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108done
5109
5110fi
5111fi
5112RANLIB=$ac_cv_prog_RANLIB
5113if test -n "$RANLIB"; then
5114 echo "$as_me:$LINENO: result: $RANLIB" >&5
5115echo "${ECHO_T}$RANLIB" >&6
5116else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121fi
5122if test -z "$ac_cv_prog_RANLIB"; then
5123 ac_ct_RANLIB=$RANLIB
5124 # Extract the first word of "ranlib", so it can be a program name with args.
5125set dummy ranlib; ac_word=$2
5126echo "$as_me:$LINENO: checking for $ac_word" >&5
5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 if test -n "$ac_ct_RANLIB"; then
5132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_RANLIB="ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146done
5147
5148 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5149fi
5150fi
5151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152if test -n "$ac_ct_RANLIB"; then
5153 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5154echo "${ECHO_T}$ac_ct_RANLIB" >&6
5155else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159
5160 RANLIB=$ac_ct_RANLIB
5161else
5162 RANLIB="$ac_cv_prog_RANLIB"
5163fi
5164
5165if test -n "$ac_tool_prefix"; then
5166 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5167set dummy ${ac_tool_prefix}strip; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_prog_STRIP+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 if test -n "$STRIP"; then
5174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5175else
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187done
5188done
5189
5190fi
5191fi
5192STRIP=$ac_cv_prog_STRIP
5193if test -n "$STRIP"; then
5194 echo "$as_me:$LINENO: result: $STRIP" >&5
5195echo "${ECHO_T}$STRIP" >&6
5196else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199fi
5200
5201fi
5202if test -z "$ac_cv_prog_STRIP"; then
5203 ac_ct_STRIP=$STRIP
5204 # Extract the first word of "strip", so it can be a program name with args.
5205set dummy strip; ac_word=$2
5206echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 if test -n "$ac_ct_STRIP"; then
5212 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_STRIP="strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226done
5227
5228 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5229fi
5230fi
5231ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5232if test -n "$ac_ct_STRIP"; then
5233 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5234echo "${ECHO_T}$ac_ct_STRIP" >&6
5235else
5236 echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6
5238fi
5239
5240 STRIP=$ac_ct_STRIP
5241else
5242 STRIP="$ac_cv_prog_STRIP"
5243fi
5244
5245
a.rottmann84e63352003-03-24 09:42:16 +00005246old_CC="$CC"
5247old_CFLAGS="$CFLAGS"
5248
5249# Set sane defaults for various variables
5250test -z "$AR" && AR=ar
5251test -z "$AR_FLAGS" && AR_FLAGS=cru
5252test -z "$AS" && AS=as
5253test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005254test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005255test -z "$DLLTOOL" && DLLTOOL=dlltool
5256test -z "$LD" && LD=ld
5257test -z "$LN_S" && LN_S="ln -s"
5258test -z "$MAGIC_CMD" && MAGIC_CMD=file
5259test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005260test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005261test -z "$OBJDUMP" && OBJDUMP=objdump
5262test -z "$RANLIB" && RANLIB=:
5263test -z "$STRIP" && STRIP=:
5264test -z "$ac_objext" && ac_objext=o
5265
a.rottmann84e63352003-03-24 09:42:16 +00005266# Determine commands to create old-style static archives.
5267old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5268old_postinstall_cmds='chmod 644 $oldlib'
5269old_postuninstall_cmds=
5270
5271if test -n "$RANLIB"; then
5272 case $host_os in
5273 openbsd*)
5274 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5275 ;;
5276 *)
5277 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5278 ;;
5279 esac
5280 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5281fi
5282
a.rottmann9bc8b932004-02-29 15:18:31 +00005283# Only perform the check for file, if the check method requires it
5284case $deplibs_check_method in
5285file_magic*)
5286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5287 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5288echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5289if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005291else
a.rottmann9bc8b932004-02-29 15:18:31 +00005292 case $MAGIC_CMD in
5293[\\/*] | ?:[\\/]*)
5294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5295 ;;
5296*)
5297 lt_save_MAGIC_CMD="$MAGIC_CMD"
5298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5300 for ac_dir in $ac_dummy; do
5301 IFS="$lt_save_ifs"
5302 test -z "$ac_dir" && ac_dir=.
5303 if test -f $ac_dir/${ac_tool_prefix}file; then
5304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5305 if test -n "$file_magic_test_file"; then
5306 case $deplibs_check_method in
5307 "file_magic "*)
5308 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5311 $EGREP "$file_magic_regex" > /dev/null; then
5312 :
5313 else
5314 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005315
a.rottmann9bc8b932004-02-29 15:18:31 +00005316*** Warning: the command libtool uses to detect shared libraries,
5317*** $file_magic_cmd, produces output that libtool cannot recognize.
5318*** The result is that libtool may fail to recognize shared libraries
5319*** as such. This will affect the creation of libtool libraries that
5320*** depend on shared libraries, but programs linked with such libtool
5321*** libraries will work regardless of this problem. Nevertheless, you
5322*** may want to report the problem to your system manager and/or to
5323*** bug-libtool@gnu.org
5324
5325EOF
5326 fi ;;
5327 esac
5328 fi
5329 break
5330 fi
5331 done
5332 IFS="$lt_save_ifs"
5333 MAGIC_CMD="$lt_save_MAGIC_CMD"
5334 ;;
5335esac
5336fi
5337
5338MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5339if test -n "$MAGIC_CMD"; then
5340 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5341echo "${ECHO_T}$MAGIC_CMD" >&6
5342else
5343 echo "$as_me:$LINENO: result: no" >&5
5344echo "${ECHO_T}no" >&6
5345fi
5346
5347if test -z "$lt_cv_path_MAGIC_CMD"; then
5348 if test -n "$ac_tool_prefix"; then
5349 echo "$as_me:$LINENO: checking for file" >&5
5350echo $ECHO_N "checking for file... $ECHO_C" >&6
5351if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354 case $MAGIC_CMD in
5355[\\/*] | ?:[\\/]*)
5356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5357 ;;
5358*)
5359 lt_save_MAGIC_CMD="$MAGIC_CMD"
5360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5362 for ac_dir in $ac_dummy; do
5363 IFS="$lt_save_ifs"
5364 test -z "$ac_dir" && ac_dir=.
5365 if test -f $ac_dir/file; then
5366 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5367 if test -n "$file_magic_test_file"; then
5368 case $deplibs_check_method in
5369 "file_magic "*)
5370 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5373 $EGREP "$file_magic_regex" > /dev/null; then
5374 :
5375 else
5376 cat <<EOF 1>&2
5377
5378*** Warning: the command libtool uses to detect shared libraries,
5379*** $file_magic_cmd, produces output that libtool cannot recognize.
5380*** The result is that libtool may fail to recognize shared libraries
5381*** as such. This will affect the creation of libtool libraries that
5382*** depend on shared libraries, but programs linked with such libtool
5383*** libraries will work regardless of this problem. Nevertheless, you
5384*** may want to report the problem to your system manager and/or to
5385*** bug-libtool@gnu.org
5386
5387EOF
5388 fi ;;
5389 esac
5390 fi
5391 break
5392 fi
5393 done
5394 IFS="$lt_save_ifs"
5395 MAGIC_CMD="$lt_save_MAGIC_CMD"
5396 ;;
5397esac
5398fi
5399
5400MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5401if test -n "$MAGIC_CMD"; then
5402 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5403echo "${ECHO_T}$MAGIC_CMD" >&6
5404else
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407fi
5408
5409 else
5410 MAGIC_CMD=:
5411 fi
5412fi
5413
5414 fi
5415 ;;
5416esac
5417
5418enable_dlopen=no
5419enable_win32_dll=no
5420
5421# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5422if test "${enable_libtool_lock+set}" = set; then
5423 enableval="$enable_libtool_lock"
5424
5425fi;
5426test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005427
5428
drh71eb93e2001-09-28 01:34:43 +00005429# Check whether --with-pic or --without-pic was given.
5430if test "${with_pic+set}" = set; then
5431 withval="$with_pic"
5432 pic_mode="$withval"
5433else
5434 pic_mode=default
5435fi;
5436test -z "$pic_mode" && pic_mode=default
5437
a.rottmann9bc8b932004-02-29 15:18:31 +00005438# Use C for the default configuration in the libtool script
5439tagname=
5440lt_save_CC="$CC"
5441ac_ext=c
5442ac_cpp='$CPP $CPPFLAGS'
5443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
5447
5448# Source file extension for C test sources.
5449ac_ext=c
5450
5451# Object file extension for compiled C test sources.
5452objext=o
5453objext=$objext
5454
5455# Code to be used in simple compile tests
5456lt_simple_compile_test_code="int some_variable = 0;\n"
5457
5458# Code to be used in simple link tests
5459lt_simple_link_test_code='int main(){return(0);}\n'
5460
5461
5462# If no C compiler was specified, use CC.
5463LTCC=${LTCC-"$CC"}
5464
5465# Allow CC to be a program name with arguments.
5466compiler=$CC
5467
5468
5469#
5470# Check for any special shared library compilation flags.
5471#
5472lt_prog_cc_shlib=
5473if test "$GCC" = no; then
5474 case $host_os in
5475 sco3.2v5*)
5476 lt_prog_cc_shlib='-belf'
5477 ;;
5478 esac
5479fi
5480if test -n "$lt_prog_cc_shlib"; then
5481 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5482echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5483 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5484 else
5485 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5486echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5487 lt_cv_prog_cc_can_build_shared=no
5488 fi
5489fi
5490
5491
5492#
5493# Check to make sure the static flag actually works.
5494#
5495echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5496echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5497if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
a.rottmann9bc8b932004-02-29 15:18:31 +00005500 lt_prog_compiler_static_works=no
5501 save_LDFLAGS="$LDFLAGS"
5502 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5503 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5505 # The compiler can only warn and ignore the option if not recognized
5506 # So say no if there are warnings
5507 if test -s conftest.err; then
5508 # Append any errors to the config.log.
5509 cat conftest.err 1>&5
5510 else
5511 lt_prog_compiler_static_works=yes
5512 fi
5513 fi
5514 $rm conftest*
5515 LDFLAGS="$save_LDFLAGS"
5516
5517fi
5518echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5519echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5520
5521if test x"$lt_prog_compiler_static_works" = xyes; then
5522 :
5523else
5524 lt_prog_compiler_static=
5525fi
5526
5527
5528
5529
5530lt_prog_compiler_no_builtin_flag=
5531
5532if test "$GCC" = yes; then
5533 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5534
5535
5536echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5537echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5538if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 lt_cv_prog_compiler_rtti_exceptions=no
5542 ac_outfile=conftest.$ac_objext
5543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5544 lt_compiler_flag="-fno-rtti -fno-exceptions"
5545 # Insert the option either (1) after the last *FLAGS variable, or
5546 # (2) before a word containing "conftest.", or (3) at the end.
5547 # Note that $ac_compile itself does not contain backslashes and begins
5548 # with a dollar sign (not a hyphen), so the echo should work correctly.
5549 # The option is referenced via a variable to avoid confusing sed.
5550 lt_compile=`echo "$ac_compile" | $SED \
5551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5553 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +00005554 (eval echo "\"\$as_me:5554: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005555 (eval "$lt_compile" 2>conftest.err)
5556 ac_status=$?
5557 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +00005558 echo "$as_me:5558: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005559 if (exit $ac_status) && test -s "$ac_outfile"; then
5560 # The compiler can only warn and ignore the option if not recognized
5561 # So say no if there are warnings
5562 if test ! -s conftest.err; then
5563 lt_cv_prog_compiler_rtti_exceptions=yes
5564 fi
5565 fi
5566 $rm conftest*
5567
5568fi
5569echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5570echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5571
5572if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5573 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5574else
5575 :
5576fi
5577
5578fi
5579
5580lt_prog_compiler_wl=
5581lt_prog_compiler_pic=
5582lt_prog_compiler_static=
5583
5584echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5585echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005586
drh71eb93e2001-09-28 01:34:43 +00005587 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005588 lt_prog_compiler_wl='-Wl,'
5589 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005590
5591 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005592 aix*)
5593 # All AIX code is PIC.
5594 if test "$host_cpu" = ia64; then
5595 # AIX 5 now supports IA64 processor
5596 lt_prog_compiler_static='-Bstatic'
5597 fi
drh71eb93e2001-09-28 01:34:43 +00005598 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005599
drh71eb93e2001-09-28 01:34:43 +00005600 amigaos*)
5601 # FIXME: we need at least 68020 code to build shared libraries, but
5602 # adding the `-m68020' flag to GCC prevents building anything better,
5603 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005605 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005606
5607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005608 # PIC is the default for these OSes.
5609 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005610
5611 mingw* | pw32* | os2*)
5612 # This hack is so that the source file can tell whether it is being
5613 # built for inclusion in a dll (and should export symbols for example).
5614 lt_prog_compiler_pic='-DDLL_EXPORT'
5615 ;;
5616
drh71eb93e2001-09-28 01:34:43 +00005617 darwin* | rhapsody*)
5618 # PIC is the default on this platform
5619 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005620 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005621 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005622
5623 msdosdjgpp*)
5624 # Just because we use GCC doesn't mean we suddenly get shared libraries
5625 # on systems that don't support them.
5626 lt_prog_compiler_can_build_shared=no
5627 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005628 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005629
drh71eb93e2001-09-28 01:34:43 +00005630 sysv4*MP*)
5631 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005632 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005633 fi
5634 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005635
5636 hpux*)
5637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5638 # not for PA HP-UX.
5639 case "$host_cpu" in
5640 hppa*64*|ia64*)
5641 # +Z the default
5642 ;;
5643 *)
5644 lt_prog_compiler_pic='-fPIC'
5645 ;;
5646 esac
5647 ;;
5648
drh71eb93e2001-09-28 01:34:43 +00005649 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005650 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005651 ;;
5652 esac
5653 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005654 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005655 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005656 aix*)
5657 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005658 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005659 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005660 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005661 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005663 fi
5664 ;;
5665
a.rottmann9bc8b932004-02-29 15:18:31 +00005666 mingw* | pw32* | os2*)
5667 # This hack is so that the source file can tell whether it is being
5668 # built for inclusion in a dll (and should export symbols for example).
5669 lt_prog_compiler_pic='-DDLL_EXPORT'
5670 ;;
5671
a.rottmann84e63352003-03-24 09:42:16 +00005672 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005673 lt_prog_compiler_wl='-Wl,'
5674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5675 # not for PA HP-UX.
5676 case "$host_cpu" in
5677 hppa*64*|ia64*)
5678 # +Z the default
5679 ;;
5680 *)
5681 lt_prog_compiler_pic='+Z'
5682 ;;
5683 esac
5684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5685 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005686 ;;
5687
5688 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005689 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005690 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005691 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005692 ;;
5693
5694 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005695 lt_prog_compiler_pic='-KPIC'
5696 lt_prog_compiler_static='-Bstatic'
5697 ;;
5698
5699 linux*)
5700 case $CC in
5701 icc* | ecc*)
5702 lt_prog_compiler_wl='-Wl,'
5703 lt_prog_compiler_pic='-KPIC'
5704 lt_prog_compiler_static='-static'
5705 ;;
5706 ccc*)
5707 lt_prog_compiler_wl='-Wl,'
5708 # All Alpha code is PIC.
5709 lt_prog_compiler_static='-non_shared'
5710 ;;
5711 esac
drh71eb93e2001-09-28 01:34:43 +00005712 ;;
5713
5714 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005715 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005716 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005717 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005718 ;;
5719
5720 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005721 lt_prog_compiler_pic='-Kpic'
5722 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005723 ;;
5724
5725 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005726 lt_prog_compiler_wl='-Wl,'
5727 lt_prog_compiler_pic='-KPIC'
5728 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005729 ;;
5730
5731 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005732 lt_prog_compiler_wl='-Qoption ld '
5733 lt_prog_compiler_pic='-PIC'
5734 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005735 ;;
5736
5737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005738 lt_prog_compiler_wl='-Wl,'
5739 lt_prog_compiler_pic='-KPIC'
5740 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005741 ;;
5742
5743 sysv4*MP*)
5744 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005745 lt_prog_compiler_pic='-Kconform_pic'
5746 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005747 fi
5748 ;;
5749
a.rottmann9bc8b932004-02-29 15:18:31 +00005750 uts4*)
5751 lt_prog_compiler_pic='-pic'
5752 lt_prog_compiler_static='-Bstatic'
5753 ;;
5754
drh71eb93e2001-09-28 01:34:43 +00005755 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005756 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005757 ;;
5758 esac
5759 fi
5760
a.rottmann9bc8b932004-02-29 15:18:31 +00005761echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5762echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005763
a.rottmann9bc8b932004-02-29 15:18:31 +00005764#
5765# Check to make sure the PIC flag actually works.
5766#
5767if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005768
a.rottmann9bc8b932004-02-29 15:18:31 +00005769echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5770echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5771if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
a.rottmann9bc8b932004-02-29 15:18:31 +00005774 lt_prog_compiler_pic_works=no
5775 ac_outfile=conftest.$ac_objext
5776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5777 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5778 # Insert the option either (1) after the last *FLAGS variable, or
5779 # (2) before a word containing "conftest.", or (3) at the end.
5780 # Note that $ac_compile itself does not contain backslashes and begins
5781 # with a dollar sign (not a hyphen), so the echo should work correctly.
5782 # The option is referenced via a variable to avoid confusing sed.
5783 lt_compile=`echo "$ac_compile" | $SED \
5784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5786 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +00005787 (eval echo "\"\$as_me:5787: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005788 (eval "$lt_compile" 2>conftest.err)
5789 ac_status=$?
5790 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +00005791 echo "$as_me:5791: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005792 if (exit $ac_status) && test -s "$ac_outfile"; then
5793 # The compiler can only warn and ignore the option if not recognized
5794 # So say no if there are warnings
5795 if test ! -s conftest.err; then
5796 lt_prog_compiler_pic_works=yes
5797 fi
5798 fi
5799 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005800
a.rottmann9bc8b932004-02-29 15:18:31 +00005801fi
5802echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5803echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005804
a.rottmann9bc8b932004-02-29 15:18:31 +00005805if test x"$lt_prog_compiler_pic_works" = xyes; then
5806 case $lt_prog_compiler_pic in
5807 "" | " "*) ;;
5808 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5809 esac
drh71eb93e2001-09-28 01:34:43 +00005810else
a.rottmann9bc8b932004-02-29 15:18:31 +00005811 lt_prog_compiler_pic=
5812 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005813fi
5814
a.rottmann84e63352003-03-24 09:42:16 +00005815fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005816case "$host_os" in
5817 # For platforms which do not support PIC, -DPIC is meaningless:
5818 *djgpp*)
5819 lt_prog_compiler_pic=
5820 ;;
5821 *)
5822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5823 ;;
5824esac
a.rottmann84e63352003-03-24 09:42:16 +00005825
a.rottmann84e63352003-03-24 09:42:16 +00005826echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005827echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005828if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
a.rottmann9bc8b932004-02-29 15:18:31 +00005831 lt_cv_prog_compiler_c_o=no
5832 $rm -r conftest 2>/dev/null
5833 mkdir conftest
5834 cd conftest
5835 mkdir out
5836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005837
a.rottmann9bc8b932004-02-29 15:18:31 +00005838 lt_compiler_flag="-o out/conftest2.$ac_objext"
5839 # Insert the option either (1) after the last *FLAGS variable, or
5840 # (2) before a word containing "conftest.", or (3) at the end.
5841 # Note that $ac_compile itself does not contain backslashes and begins
5842 # with a dollar sign (not a hyphen), so the echo should work correctly.
5843 lt_compile=`echo "$ac_compile" | $SED \
5844 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5846 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +00005847 (eval echo "\"\$as_me:5847: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005848 (eval "$lt_compile" 2>out/conftest.err)
5849 ac_status=$?
5850 cat out/conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +00005851 echo "$as_me:5851: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5853 then
5854 # The compiler can only warn and ignore the option if not recognized
5855 # So say no if there are warnings
5856 if test ! -s out/conftest.err; then
5857 lt_cv_prog_compiler_c_o=yes
5858 fi
5859 fi
5860 chmod u+w .
5861 $rm conftest*
5862 # SGI C++ compiler will create directory out/ii_files/ for
5863 # template instantiation
5864 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5865 $rm out/* && rmdir out
5866 cd ..
5867 rmdir conftest
5868 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005869
5870fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005871echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5872echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005873
a.rottmann84e63352003-03-24 09:42:16 +00005874
drh71eb93e2001-09-28 01:34:43 +00005875hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005876if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005877 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005878 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005879echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5880 hard_links=yes
5881 $rm conftest*
5882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5883 touch conftest.a
5884 ln conftest.a conftest.b 2>&5 || hard_links=no
5885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005886 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005887echo "${ECHO_T}$hard_links" >&6
5888 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005889 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005890echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5891 need_locks=warn
5892 fi
5893else
5894 need_locks=no
5895fi
5896
a.rottmann9bc8b932004-02-29 15:18:31 +00005897echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5898echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5899
5900 runpath_var=
5901 allow_undefined_flag=
5902 enable_shared_with_static_runtimes=no
5903 archive_cmds=
5904 archive_expsym_cmds=
5905 old_archive_From_new_cmds=
5906 old_archive_from_expsyms_cmds=
5907 export_dynamic_flag_spec=
5908 whole_archive_flag_spec=
5909 thread_safe_flag_spec=
5910 hardcode_libdir_flag_spec=
5911 hardcode_libdir_flag_spec_ld=
5912 hardcode_libdir_separator=
5913 hardcode_direct=no
5914 hardcode_minus_L=no
5915 hardcode_shlibpath_var=unsupported
5916 link_all_deplibs=unknown
5917 hardcode_automatic=no
5918 module_cmds=
5919 module_expsym_cmds=
5920 always_export_symbols=no
5921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5922 # include_expsyms should be a list of space-separated symbols to be *always*
5923 # included in the symbol list
5924 include_expsyms=
5925 # exclude_expsyms can be an extended regexp of symbols to exclude
5926 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5927 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5928 # as well as any symbol that contains `d'.
5929 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5931 # platforms (ab)use it in PIC code, but their linkers get confused if
5932 # the symbol is explicitly referenced. Since portable code cannot
5933 # rely on this symbol name, it's probably fine to never include it in
5934 # preloaded symbol tables.
5935 extract_expsyms_cmds=
5936
5937 case $host_os in
5938 cygwin* | mingw* | pw32*)
5939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5940 # When not using gcc, we currently assume that we are using
5941 # Microsoft Visual C++.
5942 if test "$GCC" != yes; then
5943 with_gnu_ld=no
5944 fi
5945 ;;
5946 openbsd*)
5947 with_gnu_ld=no
5948 ;;
5949 esac
5950
5951 ld_shlibs=yes
5952 if test "$with_gnu_ld" = yes; then
5953 # If archive_cmds runs LD, not CC, wlarc should be empty
5954 wlarc='${wl}'
5955
5956 # See if GNU ld supports shared libraries.
5957 case $host_os in
5958 aix3* | aix4* | aix5*)
5959 # On AIX/PPC, the GNU linker is very broken
5960 if test "$host_cpu" != ia64; then
5961 ld_shlibs=no
5962 cat <<EOF 1>&2
5963
5964*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5965*** to be unable to reliably create shared libraries on AIX.
5966*** Therefore, libtool is disabling shared libraries support. If you
5967*** really care for shared libraries, you may want to modify your PATH
5968*** so that a non-GNU linker is found, and then restart.
5969
5970EOF
5971 fi
5972 ;;
5973
5974 amigaos*)
5975 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)'
5976 hardcode_libdir_flag_spec='-L$libdir'
5977 hardcode_minus_L=yes
5978
5979 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5980 # that the semantics of dynamic libraries on AmigaOS, at least up
5981 # to version 4, is to share data among multiple programs linked
5982 # with the same dynamic library. Since this doesn't match the
5983 # behavior of shared libraries on other platforms, we can't use
5984 # them.
5985 ld_shlibs=no
5986 ;;
5987
5988 beos*)
5989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5990 allow_undefined_flag=unsupported
5991 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5992 # support --undefined. This deserves some investigation. FIXME
5993 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5994 else
5995 ld_shlibs=no
5996 fi
5997 ;;
5998
5999 cygwin* | mingw* | pw32*)
6000 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6001 # as there is no search path for DLLs.
6002 hardcode_libdir_flag_spec='-L$libdir'
6003 allow_undefined_flag=unsupported
6004 always_export_symbols=no
6005 enable_shared_with_static_runtimes=yes
6006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6007
6008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6010 # If the export-symbols file already is a .def file (1st line
6011 # is EXPORTS), use it as is; otherwise, prepend...
6012 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6013 cp $export_symbols $output_objdir/$soname.def;
6014 else
6015 echo EXPORTS > $output_objdir/$soname.def;
6016 cat $export_symbols >> $output_objdir/$soname.def;
6017 fi~
6018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6019 else
6020 ld_shlibs=no
6021 fi
6022 ;;
6023
6024 netbsd* | knetbsd*-gnu)
6025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6026 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6027 wlarc=
6028 else
6029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6031 fi
6032 ;;
6033
6034 solaris* | sysv5*)
6035 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6036 ld_shlibs=no
6037 cat <<EOF 1>&2
6038
6039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6040*** create shared libraries on Solaris systems. Therefore, libtool
6041*** is disabling shared libraries support. We urge you to upgrade GNU
6042*** binutils to release 2.9.1 or newer. Another option is to modify
6043*** your PATH or compiler configuration so that the native linker is
6044*** used, and then restart.
6045
6046EOF
6047 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6050 else
6051 ld_shlibs=no
6052 fi
6053 ;;
6054
6055 sunos4*)
6056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6057 wlarc=
6058 hardcode_direct=yes
6059 hardcode_shlibpath_var=no
6060 ;;
6061
6062 linux*)
6063 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6064 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6065 archive_cmds="$tmp_archive_cmds"
6066 supports_anon_versioning=no
6067 case `$LD -v 2>/dev/null` in
6068 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6071 *\ 2.11.*) ;; # other 2.11 versions
6072 *) supports_anon_versioning=yes ;;
6073 esac
6074 if test $supports_anon_versioning = yes; then
6075 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6076cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6077$echo "local: *; };" >> $output_objdir/$libname.ver~
6078 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6079 else
6080 archive_expsym_cmds="$tmp_archive_cmds"
6081 fi
6082 else
6083 ld_shlibs=no
6084 fi
6085 ;;
6086
6087 *)
6088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6091 else
6092 ld_shlibs=no
6093 fi
6094 ;;
6095 esac
6096
6097 if test "$ld_shlibs" = yes; then
6098 runpath_var=LD_RUN_PATH
6099 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6100 export_dynamic_flag_spec='${wl}--export-dynamic'
6101 # ancient GNU ld didn't support --whole-archive et. al.
6102 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6103 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6104 else
6105 whole_archive_flag_spec=
6106 fi
6107 fi
6108 else
6109 # PORTME fill in a description of your system's linker (not GNU ld)
6110 case $host_os in
6111 aix3*)
6112 allow_undefined_flag=unsupported
6113 always_export_symbols=yes
6114 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'
6115 # Note: this linker hardcodes the directories in LIBPATH if there
6116 # are no directories specified by -L.
6117 hardcode_minus_L=yes
6118 if test "$GCC" = yes && test -z "$link_static_flag"; then
6119 # Neither direct hardcoding nor static linking is supported with a
6120 # broken collect2.
6121 hardcode_direct=unsupported
6122 fi
6123 ;;
6124
6125 aix4* | aix5*)
6126 if test "$host_cpu" = ia64; then
6127 # On IA64, the linker does run time linking by default, so we don't
6128 # have to do anything special.
6129 aix_use_runtimelinking=no
6130 exp_sym_flag='-Bexport'
6131 no_entry_flag=""
6132 else
6133 # If we're using GNU nm, then we don't want the "-C" option.
6134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6136 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'
6137 else
6138 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'
6139 fi
6140 aix_use_runtimelinking=no
6141
6142 # Test if we are trying to use run time linking or normal
6143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6144 # need to do runtime linking.
6145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6146 for ld_flag in $LDFLAGS; do
6147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6148 aix_use_runtimelinking=yes
6149 break
6150 fi
6151 done
6152 esac
6153
6154 exp_sym_flag='-bexport'
6155 no_entry_flag='-bnoentry'
6156 fi
6157
6158 # When large executables or shared objects are built, AIX ld can
6159 # have problems creating the table of contents. If linking a library
6160 # or program results in "error TOC overflow" add -mminimal-toc to
6161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6163
6164 archive_cmds=''
6165 hardcode_direct=yes
6166 hardcode_libdir_separator=':'
6167 link_all_deplibs=yes
6168
6169 if test "$GCC" = yes; then
6170 case $host_os in aix4.012|aix4.012.*)
6171 # We only want to do this on AIX 4.2 and lower, the check
6172 # below for broken collect2 doesn't work under 4.3+
6173 collect2name=`${CC} -print-prog-name=collect2`
6174 if test -f "$collect2name" && \
6175 strings "$collect2name" | grep resolve_lib_name >/dev/null
6176 then
6177 # We have reworked collect2
6178 hardcode_direct=yes
6179 else
6180 # We have old collect2
6181 hardcode_direct=unsupported
6182 # It fails to find uninstalled libraries when the uninstalled
6183 # path is not listed in the libpath. Setting hardcode_minus_L
6184 # to unsupported forces relinking
6185 hardcode_minus_L=yes
6186 hardcode_libdir_flag_spec='-L$libdir'
6187 hardcode_libdir_separator=
6188 fi
6189 esac
6190 shared_flag='-shared'
6191 else
6192 # not using gcc
6193 if test "$host_cpu" = ia64; then
6194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6195 # chokes on -Wl,-G. The following line is correct:
6196 shared_flag='-G'
6197 else
6198 if test "$aix_use_runtimelinking" = yes; then
6199 shared_flag='${wl}-G'
6200 else
6201 shared_flag='${wl}-bM:SRE'
6202 fi
6203 fi
6204 fi
6205
6206 # It seems that -bexpall does not export symbols beginning with
6207 # underscore (_), so it is better to generate a list of symbols to export.
6208 always_export_symbols=yes
6209 if test "$aix_use_runtimelinking" = yes; then
6210 # Warning - without using the other runtime loading flags (-brtl),
6211 # -berok will link without error, but may produce a broken library.
6212 allow_undefined_flag='-berok'
6213 # Determine the default libpath from the value encoded in an empty executable.
6214 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006220
a.rottmann84e63352003-03-24 09:42:16 +00006221int
6222main ()
6223{
a.rottmann9bc8b932004-02-29 15:18:31 +00006224
a.rottmann84e63352003-03-24 09:42:16 +00006225 ;
6226 return 0;
6227}
6228_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006229rm -f conftest.$ac_objext conftest$ac_exeext
6230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006232 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006245 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006251
a.rottmann9bc8b932004-02-29 15:18:31 +00006252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6253}'`
6254# Check for a 64-bit object if we didn't find anything.
6255if 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; }
6256}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006257else
6258 echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006262rm -f conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006265
a.rottmann9bc8b932004-02-29 15:18:31 +00006266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6267 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"
6268 else
6269 if test "$host_cpu" = ia64; then
6270 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6271 allow_undefined_flag="-z nodefs"
6272 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"
6273 else
6274 # Determine the default libpath from the value encoded in an empty executable.
6275 cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006281
a.rottmann9bc8b932004-02-29 15:18:31 +00006282int
6283main ()
6284{
a.rottmann84e63352003-03-24 09:42:16 +00006285
a.rottmann9bc8b932004-02-29 15:18:31 +00006286 ;
6287 return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext conftest$ac_exeext
6291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest$ac_exeext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006312
a.rottmann9bc8b932004-02-29 15:18:31 +00006313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6314}'`
6315# Check for a 64-bit object if we didn't find anything.
6316if 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; }
6317}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006318else
a.rottmann9bc8b932004-02-29 15:18:31 +00006319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006321
a.rottmann9bc8b932004-02-29 15:18:31 +00006322fi
6323rm -f conftest.err conftest.$ac_objext \
6324 conftest$ac_exeext conftest.$ac_ext
6325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006326
a.rottmann9bc8b932004-02-29 15:18:31 +00006327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6328 # Warning - without using the other run time loading flags,
6329 # -berok will link without error, but may produce a broken library.
6330 no_undefined_flag=' ${wl}-bernotok'
6331 allow_undefined_flag=' ${wl}-berok'
6332 # -bexpall does not export symbols beginning with underscore (_)
6333 always_export_symbols=yes
6334 # Exported symbols can be pulled into shared objects from archives
6335 whole_archive_flag_spec=' '
6336 archive_cmds_need_lc=yes
6337 # This is similar to how AIX traditionally builds it's shared libraries.
6338 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 +00006339 fi
6340 fi
a.rottmann84e63352003-03-24 09:42:16 +00006341 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006342
6343 amigaos*)
6344 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)'
6345 hardcode_libdir_flag_spec='-L$libdir'
6346 hardcode_minus_L=yes
6347 # see comment about different semantics on the GNU ld section
6348 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006349 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006350
a.rottmann9bc8b932004-02-29 15:18:31 +00006351 bsdi4*)
6352 export_dynamic_flag_spec=-rdynamic
6353 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006354
a.rottmann9bc8b932004-02-29 15:18:31 +00006355 cygwin* | mingw* | pw32*)
6356 # When not using gcc, we currently assume that we are using
6357 # Microsoft Visual C++.
6358 # hardcode_libdir_flag_spec is actually meaningless, as there is
6359 # no search path for DLLs.
6360 hardcode_libdir_flag_spec=' '
6361 allow_undefined_flag=unsupported
6362 # Tell ltmain to make .lib files, not .a files.
6363 libext=lib
6364 # Tell ltmain to make .dll files, not .so files.
6365 shrext=".dll"
6366 # FIXME: Setting linknames here is a bad hack.
6367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6368 # The linker will automatically build a .lib file if we build a DLL.
6369 old_archive_From_new_cmds='true'
6370 # FIXME: Should let the user specify the lib program.
6371 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6372 fix_srcfile_path='`cygpath -w "$srcfile"`'
6373 enable_shared_with_static_runtimes=yes
6374 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006375
a.rottmann9bc8b932004-02-29 15:18:31 +00006376 darwin* | rhapsody*)
6377 if test "$GXX" = yes ; then
6378 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006379 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006380 rhapsody* | darwin1.[012])
6381 allow_undefined_flag='-undefined suppress'
6382 ;;
6383 *) # Darwin 1.3 on
6384 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6385 allow_undefined_flag='-flat_namespace -undefined suppress'
6386 else
6387 case ${MACOSX_DEPLOYMENT_TARGET} in
6388 10.[012])
6389 allow_undefined_flag='-flat_namespace -undefined suppress'
6390 ;;
6391 10.*)
6392 allow_undefined_flag='-undefined dynamic_lookup'
6393 ;;
6394 esac
6395 fi
a.rottmann84e63352003-03-24 09:42:16 +00006396 ;;
6397 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006398 lt_int_apple_cc_single_mod=no
6399 output_verbose_link_cmd='echo'
6400 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6401 lt_int_apple_cc_single_mod=yes
6402 fi
6403 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6404 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6405 else
6406 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'
6407 fi
6408 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6410 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6411 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}'
6412 else
6413 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}'
6414 fi
6415 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}'
6416 hardcode_direct=no
6417 hardcode_automatic=yes
6418 hardcode_shlibpath_var=unsupported
6419 whole_archive_flag_spec='-all_load $convenience'
6420 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006421 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006422 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006423 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006424 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006425
a.rottmann9bc8b932004-02-29 15:18:31 +00006426 dgux*)
6427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6428 hardcode_libdir_flag_spec='-L$libdir'
6429 hardcode_shlibpath_var=no
6430 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006431
a.rottmann9bc8b932004-02-29 15:18:31 +00006432 freebsd1*)
6433 ld_shlibs=no
6434 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006435
a.rottmann9bc8b932004-02-29 15:18:31 +00006436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6437 # support. Future versions do this automatically, but an explicit c++rt0.o
6438 # does not break anything, and helps significantly (at the cost of a little
6439 # extra space).
6440 freebsd2.2*)
6441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6442 hardcode_libdir_flag_spec='-R$libdir'
6443 hardcode_direct=yes
6444 hardcode_shlibpath_var=no
6445 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006446
a.rottmann9bc8b932004-02-29 15:18:31 +00006447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6448 freebsd2*)
6449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6450 hardcode_direct=yes
6451 hardcode_minus_L=yes
6452 hardcode_shlibpath_var=no
6453 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006454
a.rottmann9bc8b932004-02-29 15:18:31 +00006455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6456 freebsd* | kfreebsd*-gnu)
6457 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6458 hardcode_libdir_flag_spec='-R$libdir'
6459 hardcode_direct=yes
6460 hardcode_shlibpath_var=no
6461 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006462
a.rottmann9bc8b932004-02-29 15:18:31 +00006463 hpux9*)
6464 if test "$GCC" = yes; then
6465 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'
6466 else
6467 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'
6468 fi
6469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6470 hardcode_libdir_separator=:
6471 hardcode_direct=yes
6472
6473 # hardcode_minus_L: Not really in the search PATH,
6474 # but as the default location of the library.
6475 hardcode_minus_L=yes
6476 export_dynamic_flag_spec='${wl}-E'
6477 ;;
6478
6479 hpux10* | hpux11*)
6480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6481 case "$host_cpu" in
6482 hppa*64*|ia64*)
6483 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6484 ;;
6485 *)
6486 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6487 ;;
6488 esac
6489 else
6490 case "$host_cpu" in
6491 hppa*64*|ia64*)
6492 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6493 ;;
6494 *)
6495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6496 ;;
6497 esac
6498 fi
6499 if test "$with_gnu_ld" = no; then
6500 case "$host_cpu" in
6501 hppa*64*)
6502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6503 hardcode_libdir_flag_spec_ld='+b $libdir'
6504 hardcode_libdir_separator=:
6505 hardcode_direct=no
6506 hardcode_shlibpath_var=no
6507 ;;
6508 ia64*)
6509 hardcode_libdir_flag_spec='-L$libdir'
6510 hardcode_direct=no
6511 hardcode_shlibpath_var=no
6512
6513 # hardcode_minus_L: Not really in the search PATH,
6514 # but as the default location of the library.
6515 hardcode_minus_L=yes
6516 ;;
6517 *)
6518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6519 hardcode_libdir_separator=:
6520 hardcode_direct=yes
6521 export_dynamic_flag_spec='${wl}-E'
6522
6523 # hardcode_minus_L: Not really in the search PATH,
6524 # but as the default location of the library.
6525 hardcode_minus_L=yes
6526 ;;
6527 esac
6528 fi
6529 ;;
6530
6531 irix5* | irix6* | nonstopux*)
6532 if test "$GCC" = yes; then
6533 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'
6534 else
6535 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'
6536 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6537 fi
6538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6539 hardcode_libdir_separator=:
6540 link_all_deplibs=yes
6541 ;;
6542
6543 netbsd* | knetbsd*-gnu)
6544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6546 else
6547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6548 fi
6549 hardcode_libdir_flag_spec='-R$libdir'
6550 hardcode_direct=yes
6551 hardcode_shlibpath_var=no
6552 ;;
6553
6554 newsos6)
6555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6556 hardcode_direct=yes
6557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6558 hardcode_libdir_separator=:
6559 hardcode_shlibpath_var=no
6560 ;;
6561
6562 openbsd*)
6563 hardcode_direct=yes
6564 hardcode_shlibpath_var=no
6565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6568 export_dynamic_flag_spec='${wl}-E'
6569 else
6570 case $host_os in
6571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6573 hardcode_libdir_flag_spec='-R$libdir'
6574 ;;
6575 *)
6576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6578 ;;
6579 esac
6580 fi
6581 ;;
6582
6583 os2*)
6584 hardcode_libdir_flag_spec='-L$libdir'
6585 hardcode_minus_L=yes
6586 allow_undefined_flag=unsupported
6587 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'
6588 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6589 ;;
6590
6591 osf3*)
6592 if test "$GCC" = yes; then
6593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6594 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'
6595 else
6596 allow_undefined_flag=' -expect_unresolved \*'
6597 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'
6598 fi
6599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6600 hardcode_libdir_separator=:
6601 ;;
6602
6603 osf4* | osf5*) # as osf3* with the addition of -msym flag
6604 if test "$GCC" = yes; then
6605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6606 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'
6607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6608 else
6609 allow_undefined_flag=' -expect_unresolved \*'
6610 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'
6611 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6612 $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'
6613
6614 # Both c and cxx compiler support -rpath directly
6615 hardcode_libdir_flag_spec='-rpath $libdir'
6616 fi
6617 hardcode_libdir_separator=:
6618 ;;
6619
6620 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6622 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006623 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006624 runpath_var=LD_RUN_PATH
6625 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006626 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006627
a.rottmann9bc8b932004-02-29 15:18:31 +00006628 solaris*)
6629 no_undefined_flag=' -z text'
6630 if test "$GCC" = yes; then
6631 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6632 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6633 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6634 else
6635 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6636 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6638 fi
6639 hardcode_libdir_flag_spec='-R$libdir'
6640 hardcode_shlibpath_var=no
6641 case $host_os in
6642 solaris2.[0-5] | solaris2.[0-5].*) ;;
6643 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6645 esac
6646 link_all_deplibs=yes
6647 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006648
a.rottmann9bc8b932004-02-29 15:18:31 +00006649 sunos4*)
6650 if test "x$host_vendor" = xsequent; then
6651 # Use $CC to link under sequent, because it throws in some extra .o
6652 # files that make .init and .fini sections work.
6653 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6654 else
6655 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6656 fi
6657 hardcode_libdir_flag_spec='-L$libdir'
6658 hardcode_direct=yes
6659 hardcode_minus_L=yes
6660 hardcode_shlibpath_var=no
6661 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006662
a.rottmann9bc8b932004-02-29 15:18:31 +00006663 sysv4)
6664 case $host_vendor in
6665 sni)
6666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6667 hardcode_direct=yes # is this really true???
6668 ;;
6669 siemens)
6670 ## LD is ld it makes a PLAMLIB
6671 ## CC just makes a GrossModule.
6672 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6673 reload_cmds='$CC -r -o $output$reload_objs'
6674 hardcode_direct=no
6675 ;;
6676 motorola)
6677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6678 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6679 ;;
6680 esac
6681 runpath_var='LD_RUN_PATH'
6682 hardcode_shlibpath_var=no
6683 ;;
6684
6685 sysv4.3*)
6686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6687 hardcode_shlibpath_var=no
6688 export_dynamic_flag_spec='-Bexport'
6689 ;;
6690
6691 sysv4*MP*)
6692 if test -d /usr/nec; then
6693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694 hardcode_shlibpath_var=no
6695 runpath_var=LD_RUN_PATH
6696 hardcode_runpath_var=yes
6697 ld_shlibs=yes
6698 fi
6699 ;;
6700
6701 sysv4.2uw2*)
6702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6703 hardcode_direct=yes
6704 hardcode_minus_L=no
6705 hardcode_shlibpath_var=no
6706 hardcode_runpath_var=yes
6707 runpath_var=LD_RUN_PATH
6708 ;;
6709
6710 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6711 no_undefined_flag='${wl}-z ${wl}text'
6712 if test "$GCC" = yes; then
6713 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6714 else
6715 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6716 fi
6717 runpath_var='LD_RUN_PATH'
6718 hardcode_shlibpath_var=no
6719 ;;
6720
6721 sysv5*)
6722 no_undefined_flag=' -z text'
6723 # $CC -shared without GNU ld will not create a library from C++
6724 # object files and a static libstdc++, better avoid it by now
6725 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6726 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6727 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6728 hardcode_libdir_flag_spec=
6729 hardcode_shlibpath_var=no
6730 runpath_var='LD_RUN_PATH'
6731 ;;
6732
6733 uts4*)
6734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6735 hardcode_libdir_flag_spec='-L$libdir'
6736 hardcode_shlibpath_var=no
6737 ;;
6738
6739 *)
6740 ld_shlibs=no
6741 ;;
6742 esac
6743 fi
6744
a.rottmann84e63352003-03-24 09:42:16 +00006745echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6746echo "${ECHO_T}$ld_shlibs" >&6
6747test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006748
a.rottmann9bc8b932004-02-29 15:18:31 +00006749variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6750if test "$GCC" = yes; then
6751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6752fi
drh71eb93e2001-09-28 01:34:43 +00006753
a.rottmann9bc8b932004-02-29 15:18:31 +00006754#
6755# Do we need to explicitly link libc?
6756#
6757case "x$archive_cmds_need_lc" in
6758x|xyes)
6759 # Assume -lc should be added
6760 archive_cmds_need_lc=yes
6761
6762 if test "$enable_shared" = yes && test "$GCC" = yes; then
6763 case $archive_cmds in
6764 *'~'*)
6765 # FIXME: we may have to deal with multi-command sequences.
6766 ;;
6767 '$CC '*)
6768 # Test whether the compiler implicitly links with -lc since on some
6769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6770 # to ld, don't add -lc before -lgcc.
6771 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6772echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6773 $rm conftest*
6774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6775
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } 2>conftest.err; then
6781 soname=conftest
6782 lib=conftest
6783 libobjs=conftest.$ac_objext
6784 deplibs=
6785 wl=$lt_prog_compiler_wl
6786 compiler_flags=-v
6787 linker_flags=-v
6788 verstring=
6789 output_objdir=.
6790 libname=conftest
6791 lt_save_allow_undefined_flag=$allow_undefined_flag
6792 allow_undefined_flag=
6793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6794 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }
6798 then
6799 archive_cmds_need_lc=no
6800 else
6801 archive_cmds_need_lc=yes
6802 fi
6803 allow_undefined_flag=$lt_save_allow_undefined_flag
6804 else
6805 cat conftest.err 1>&5
6806 fi
6807 $rm conftest*
6808 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6809echo "${ECHO_T}$archive_cmds_need_lc" >&6
6810 ;;
6811 esac
drh71eb93e2001-09-28 01:34:43 +00006812 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 ;;
6814esac
drh71eb93e2001-09-28 01:34:43 +00006815
a.rottmann84e63352003-03-24 09:42:16 +00006816echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6818library_names_spec=
6819libname_spec='lib$name'
6820soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006821shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006822postinstall_cmds=
6823postuninstall_cmds=
6824finish_cmds=
6825finish_eval=
6826shlibpath_var=
6827shlibpath_overrides_runpath=unknown
6828version_type=none
6829dynamic_linker="$host_os ld.so"
6830sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006831if test "$GCC" = yes; then
6832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6834 # if the path contains ";" then we assume it to be the separator
6835 # otherwise default to the standard path separator (i.e. ":") - it is
6836 # assumed that no part of a normal pathname contains ";" but that should
6837 # okay in the real world where ";" in dirpaths is itself problematic.
6838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6839 else
6840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6841 fi
6842else
6843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6844fi
6845need_lib_prefix=unknown
6846hardcode_into_libs=no
6847
6848# when you set need_version to no, make sure it does not cause -set_version
6849# flags to be left without arguments
6850need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006851
6852case $host_os in
6853aix3*)
6854 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006856 shlibpath_var=LIBPATH
6857
a.rottmann9bc8b932004-02-29 15:18:31 +00006858 # AIX 3 has no versioning support, so we append a major version to the name.
6859 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006860 ;;
6861
6862aix4* | aix5*)
6863 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006864 need_lib_prefix=no
6865 need_version=no
6866 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006867 if test "$host_cpu" = ia64; then
6868 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006870 shlibpath_var=LD_LIBRARY_PATH
6871 else
6872 # With GCC up to 2.95.x, collect2 would create an import file
6873 # for dependence libraries. The import file would start with
6874 # the line `#! .'. This would cause the generated library to
6875 # depend on `.', always an invalid library. This was fixed in
6876 # development snapshots of GCC prior to 3.0.
6877 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006878 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6880 echo ' yes '
6881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6882 :
6883 else
6884 can_build_shared=no
6885 fi
6886 ;;
drh71eb93e2001-09-28 01:34:43 +00006887 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6889 # soname into executable. Probably we can add versioning support to
6890 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006891 if test "$aix_use_runtimelinking" = yes; then
6892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6893 # instead of lib<name>.a to let people know that these are not
6894 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006896 else
6897 # We preserve .a as extension for shared libraries through AIX4.2
6898 # and later when we are not doing run time linking.
6899 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006900 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006901 fi
6902 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006903 fi
6904 ;;
6905
6906amigaos*)
6907 library_names_spec='$libname.ixlibrary $libname.a'
6908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006909 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 +00006910 ;;
6911
6912beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006913 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006914 dynamic_linker="$host_os ld.so"
6915 shlibpath_var=LIBRARY_PATH
6916 ;;
6917
6918bsdi4*)
6919 version_type=linux
6920 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6922 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6924 shlibpath_var=LD_LIBRARY_PATH
6925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6927 # the default ld.so.conf also contains /usr/contrib/lib and
6928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6929 # libtool to hard-code these into programs
6930 ;;
6931
6932cygwin* | mingw* | pw32*)
6933 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006935 need_version=no
6936 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006937
drh71eb93e2001-09-28 01:34:43 +00006938 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006939 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006940 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6942 postinstall_cmds='base_file=`basename \${file}`~
6943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006944 dldir=$destdir/`dirname \$dlpath`~
6945 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006946 $install_prog $dir/$dlname \$dldir/$dlname'
6947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006948 dlpath=$dir/\$dldll~
6949 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 shlibpath_overrides_runpath=yes
6951
6952 case $host_os in
6953 cygwin*)
6954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6957 ;;
6958 mingw*)
6959 # MinGW DLLs use traditional 'lib' prefix
6960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6963 # It is most probably a Windows format PATH printed by
6964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6965 # path with ; separators, and with drive letters. We can handle the
6966 # drive letters (cygwin fileutils understands them), so leave them,
6967 # especially as we might pass files found there to a mingw objdump,
6968 # which wouldn't understand a cygwinified path. Ahh.
6969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6970 else
6971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6972 fi
6973 ;;
6974 pw32*)
6975 # pw32 DLLs use 'pw' prefix rather than 'lib'
6976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6977 ;;
6978 esac
drh71eb93e2001-09-28 01:34:43 +00006979 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006980
drh71eb93e2001-09-28 01:34:43 +00006981 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006983 ;;
6984 esac
6985 dynamic_linker='Win32 ld.exe'
6986 # FIXME: first we should search . and the directory the executable is in
6987 shlibpath_var=PATH
6988 ;;
6989
6990darwin* | rhapsody*)
6991 dynamic_linker="$host_os dyld"
6992 version_type=darwin
6993 need_lib_prefix=no
6994 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6996 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00006997 shlibpath_overrides_runpath=yes
6998 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00006999 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7001 if test "$GCC" = yes; then
7002 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"`
7003 else
7004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7005 fi
7006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7007 ;;
7008
7009dgux*)
7010 version_type=linux
7011 need_lib_prefix=no
7012 need_version=no
7013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7014 soname_spec='${libname}${release}${shared_ext}$major'
7015 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007016 ;;
7017
a.rottmann84e63352003-03-24 09:42:16 +00007018freebsd1*)
7019 dynamic_linker=no
7020 ;;
7021
a.rottmann9bc8b932004-02-29 15:18:31 +00007022kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007023 version_type=linux
7024 need_lib_prefix=no
7025 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007028 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007029 shlibpath_overrides_runpath=no
7030 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007031 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007032 ;;
7033
7034freebsd*)
7035 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7036 version_type=freebsd-$objformat
7037 case $version_type in
7038 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007040 need_version=no
7041 need_lib_prefix=no
7042 ;;
7043 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007045 need_version=yes
7046 ;;
7047 esac
7048 shlibpath_var=LD_LIBRARY_PATH
7049 case $host_os in
7050 freebsd2*)
7051 shlibpath_overrides_runpath=yes
7052 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007053 freebsd3.01* | freebsdelf3.01*)
7054 shlibpath_overrides_runpath=yes
7055 hardcode_into_libs=yes
7056 ;;
7057 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007058 shlibpath_overrides_runpath=no
7059 hardcode_into_libs=yes
7060 ;;
7061 esac
7062 ;;
7063
7064gnu*)
7065 version_type=linux
7066 need_lib_prefix=no
7067 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007070 shlibpath_var=LD_LIBRARY_PATH
7071 hardcode_into_libs=yes
7072 ;;
7073
7074hpux9* | hpux10* | hpux11*)
7075 # Give a soname corresponding to the major version so that dld.sl refuses to
7076 # link against other versions.
7077 version_type=sunos
7078 need_lib_prefix=no
7079 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007080 case "$host_cpu" in
7081 ia64*)
7082 shrext='.so'
7083 hardcode_into_libs=yes
7084 dynamic_linker="$host_os dld.so"
7085 shlibpath_var=LD_LIBRARY_PATH
7086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 soname_spec='${libname}${release}${shared_ext}$major'
7089 if test "X$HPUX_IA64_MODE" = X32; then
7090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7091 else
7092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7093 fi
7094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7095 ;;
7096 hppa*64*)
7097 shrext='.sl'
7098 hardcode_into_libs=yes
7099 dynamic_linker="$host_os dld.sl"
7100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7106 ;;
7107 *)
7108 shrext='.sl'
7109 dynamic_linker="$host_os dld.sl"
7110 shlibpath_var=SHLIB_PATH
7111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113 soname_spec='${libname}${release}${shared_ext}$major'
7114 ;;
7115 esac
drh71eb93e2001-09-28 01:34:43 +00007116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7117 postinstall_cmds='chmod 555 $lib'
7118 ;;
7119
a.rottmann84e63352003-03-24 09:42:16 +00007120irix5* | irix6* | nonstopux*)
7121 case $host_os in
7122 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 *)
7124 if test "$lt_cv_prog_gnu_ld" = yes; then
7125 version_type=linux
7126 else
7127 version_type=irix
7128 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007129 esac
drh71eb93e2001-09-28 01:34:43 +00007130 need_lib_prefix=no
7131 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007132 soname_spec='${libname}${release}${shared_ext}$major'
7133 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 +00007134 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007135 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007136 libsuff= shlibsuff=
7137 ;;
7138 *)
7139 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7141 libsuff= shlibsuff= libmagic=32-bit;;
7142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7143 libsuff=32 shlibsuff=N32 libmagic=N32;;
7144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007146 *) libsuff= shlibsuff= libmagic=never-match;;
7147 esac
7148 ;;
7149 esac
7150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7151 shlibpath_overrides_runpath=no
7152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007154 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007155 ;;
7156
7157# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007158linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007159 dynamic_linker=no
7160 ;;
7161
7162# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007163linux*)
drh71eb93e2001-09-28 01:34:43 +00007164 version_type=linux
7165 need_lib_prefix=no
7166 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7170 shlibpath_var=LD_LIBRARY_PATH
7171 shlibpath_overrides_runpath=no
7172 # This implies no fast_install, which is unacceptable.
7173 # Some rework will be needed to allow for fast_install
7174 # before this can be enabled.
7175 hardcode_into_libs=yes
7176
a.rottmann9bc8b932004-02-29 15:18:31 +00007177 # Append ld.so.conf contents to the search path
7178 if test -f /etc/ld.so.conf; then
7179 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7180 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7181 fi
7182
drh71eb93e2001-09-28 01:34:43 +00007183 # We used to test for /lib/ld.so.1 and disable shared libraries on
7184 # powerpc, because MkLinux only supported shared libraries with the
7185 # GNU dynamic linker. Since this was broken with cross compilers,
7186 # most powerpc-linux boxes support dynamic linking these days and
7187 # people can always --disable-shared, the test was removed, and we
7188 # assume the GNU/Linux dynamic linker is in use.
7189 dynamic_linker='GNU/Linux ld.so'
7190 ;;
7191
a.rottmann9bc8b932004-02-29 15:18:31 +00007192knetbsd*-gnu)
7193 version_type=linux
7194 need_lib_prefix=no
7195 need_version=no
7196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7197 soname_spec='${libname}${release}${shared_ext}$major'
7198 shlibpath_var=LD_LIBRARY_PATH
7199 shlibpath_overrides_runpath=no
7200 hardcode_into_libs=yes
7201 dynamic_linker='GNU ld.so'
7202 ;;
7203
drh71eb93e2001-09-28 01:34:43 +00007204netbsd*)
7205 version_type=sunos
7206 need_lib_prefix=no
7207 need_version=no
7208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7211 dynamic_linker='NetBSD (a.out) ld.so'
7212 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7214 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007215 dynamic_linker='NetBSD ld.elf_so'
7216 fi
7217 shlibpath_var=LD_LIBRARY_PATH
7218 shlibpath_overrides_runpath=yes
7219 hardcode_into_libs=yes
7220 ;;
7221
7222newsos6)
7223 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225 shlibpath_var=LD_LIBRARY_PATH
7226 shlibpath_overrides_runpath=yes
7227 ;;
7228
7229nto-qnx*)
7230 version_type=linux
7231 need_lib_prefix=no
7232 need_version=no
7233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7234 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007235 shlibpath_var=LD_LIBRARY_PATH
7236 shlibpath_overrides_runpath=yes
7237 ;;
7238
drh71eb93e2001-09-28 01:34:43 +00007239openbsd*)
7240 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007241 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 need_version=yes
7243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7245 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007246 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 +00007247 case $host_os in
7248 openbsd2.[89] | openbsd2.[89].*)
7249 shlibpath_overrides_runpath=no
7250 ;;
7251 *)
7252 shlibpath_overrides_runpath=yes
7253 ;;
7254 esac
a.rottmann84e63352003-03-24 09:42:16 +00007255 else
7256 shlibpath_overrides_runpath=yes
7257 fi
drh71eb93e2001-09-28 01:34:43 +00007258 ;;
7259
7260os2*)
7261 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007263 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007265 dynamic_linker='OS/2 ld.exe'
7266 shlibpath_var=LIBPATH
7267 ;;
7268
7269osf3* | osf4* | osf5*)
7270 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007271 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 need_version=no
7273 soname_spec='${libname}${release}${shared_ext}$major'
7274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007275 shlibpath_var=LD_LIBRARY_PATH
7276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7278 ;;
7279
7280sco3.2v5*)
7281 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007282 soname_spec='${libname}${release}${shared_ext}$major'
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007284 shlibpath_var=LD_LIBRARY_PATH
7285 ;;
7286
7287solaris*)
7288 version_type=linux
7289 need_lib_prefix=no
7290 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007293 shlibpath_var=LD_LIBRARY_PATH
7294 shlibpath_overrides_runpath=yes
7295 hardcode_into_libs=yes
7296 # ldd complains unless libraries are executable
7297 postinstall_cmds='chmod +x $lib'
7298 ;;
7299
7300sunos4*)
7301 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304 shlibpath_var=LD_LIBRARY_PATH
7305 shlibpath_overrides_runpath=yes
7306 if test "$with_gnu_ld" = yes; then
7307 need_lib_prefix=no
7308 fi
7309 need_version=yes
7310 ;;
7311
7312sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007316 shlibpath_var=LD_LIBRARY_PATH
7317 case $host_vendor in
7318 sni)
7319 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007320 need_lib_prefix=no
7321 export_dynamic_flag_spec='${wl}-Blargedynsym'
7322 runpath_var=LD_RUN_PATH
7323 ;;
7324 siemens)
7325 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007326 ;;
7327 motorola)
7328 need_lib_prefix=no
7329 need_version=no
7330 shlibpath_overrides_runpath=no
7331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7332 ;;
7333 esac
7334 ;;
7335
7336sysv4*MP*)
7337 if test -d /usr/nec ;then
7338 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7340 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007341 shlibpath_var=LD_LIBRARY_PATH
7342 fi
7343 ;;
7344
a.rottmann9bc8b932004-02-29 15:18:31 +00007345uts4*)
7346 version_type=linux
7347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348 soname_spec='${libname}${release}${shared_ext}$major'
7349 shlibpath_var=LD_LIBRARY_PATH
7350 ;;
7351
drh71eb93e2001-09-28 01:34:43 +00007352*)
7353 dynamic_linker=no
7354 ;;
7355esac
a.rottmann84e63352003-03-24 09:42:16 +00007356echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007357echo "${ECHO_T}$dynamic_linker" >&6
7358test "$dynamic_linker" = no && can_build_shared=no
7359
a.rottmann9bc8b932004-02-29 15:18:31 +00007360echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7361echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7362hardcode_action=
7363if test -n "$hardcode_libdir_flag_spec" || \
7364 test -n "$runpath_var " || \
7365 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007366
a.rottmann9bc8b932004-02-29 15:18:31 +00007367 # We can hardcode non-existant directories.
7368 if test "$hardcode_direct" != no &&
7369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7370 # have to relink, otherwise we might link with an installed library
7371 # when we should be linking with a yet-to-be-installed one
7372 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7373 test "$hardcode_minus_L" != no; then
7374 # Linking always hardcodes the temporary library directory.
7375 hardcode_action=relink
7376 else
7377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7378 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007379 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007380else
7381 # We cannot hardcode anything, or else we can only hardcode existing
7382 # directories.
7383 hardcode_action=unsupported
7384fi
7385echo "$as_me:$LINENO: result: $hardcode_action" >&5
7386echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007387
7388if test "$hardcode_action" = relink; then
7389 # Fast installation is not supported
7390 enable_fast_install=no
7391elif test "$shlibpath_overrides_runpath" = yes ||
7392 test "$enable_shared" = no; then
7393 # Fast installation is not necessary
7394 enable_fast_install=needless
7395fi
7396
a.rottmann9bc8b932004-02-29 15:18:31 +00007397striplib=
7398old_striplib=
7399echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7400echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7401if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7402 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7403 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7404 echo "$as_me:$LINENO: result: yes" >&5
7405echo "${ECHO_T}yes" >&6
7406else
7407# FIXME - insert some real tests, host_os isn't really good enough
7408 case $host_os in
7409 darwin*)
7410 if test -n "$STRIP" ; then
7411 striplib="$STRIP -x"
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417fi
7418 ;;
7419 *)
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
7422 ;;
7423 esac
a.rottmann84e63352003-03-24 09:42:16 +00007424fi
7425
drh71eb93e2001-09-28 01:34:43 +00007426if test "x$enable_dlopen" != xyes; then
7427 enable_dlopen=unknown
7428 enable_dlopen_self=unknown
7429 enable_dlopen_self_static=unknown
7430else
7431 lt_cv_dlopen=no
7432 lt_cv_dlopen_libs=
7433
7434 case $host_os in
7435 beos*)
7436 lt_cv_dlopen="load_add_on"
7437 lt_cv_dlopen_libs=
7438 lt_cv_dlopen_self=yes
7439 ;;
7440
a.rottmann9bc8b932004-02-29 15:18:31 +00007441 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007442 lt_cv_dlopen="LoadLibrary"
7443 lt_cv_dlopen_libs=
7444 ;;
7445
a.rottmann9bc8b932004-02-29 15:18:31 +00007446 cygwin*)
7447 lt_cv_dlopen="dlopen"
7448 lt_cv_dlopen_libs=
7449 ;;
7450
7451 darwin*)
7452 # if libdl is installed we need to link against it
7453 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7454echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7455if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 ac_check_lib_save_LIBS=$LIBS
7459LIBS="-ldl $LIBS"
7460cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h. */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h. */
7466
7467/* Override any gcc2 internal prototype to avoid an error. */
7468#ifdef __cplusplus
7469extern "C"
7470#endif
7471/* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7473char dlopen ();
7474int
7475main ()
7476{
7477dlopen ();
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_lib_dl_dlopen=yes
7505else
7506 echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509ac_cv_lib_dl_dlopen=no
7510fi
7511rm -f conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513LIBS=$ac_check_lib_save_LIBS
7514fi
7515echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7516echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7517if test $ac_cv_lib_dl_dlopen = yes; then
7518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7519else
7520
7521 lt_cv_dlopen="dyld"
7522 lt_cv_dlopen_libs=
7523 lt_cv_dlopen_self=yes
7524
7525fi
7526
7527 ;;
7528
drh71eb93e2001-09-28 01:34:43 +00007529 *)
a.rottmann84e63352003-03-24 09:42:16 +00007530 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007531echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7532if test "${ac_cv_func_shl_load+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007541/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7543#define shl_load innocuous_shl_load
7544
drh71eb93e2001-09-28 01:34:43 +00007545/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007546 which can conflict with char shl_load (); below.
7547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7548 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007549
a.rottmann84e63352003-03-24 09:42:16 +00007550#ifdef __STDC__
7551# include <limits.h>
7552#else
7553# include <assert.h>
7554#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007555
7556#undef shl_load
7557
drh71eb93e2001-09-28 01:34:43 +00007558/* Override any gcc2 internal prototype to avoid an error. */
7559#ifdef __cplusplus
7560extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007561{
drh71eb93e2001-09-28 01:34:43 +00007562#endif
7563/* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7565char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007566/* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569#if defined (__stub_shl_load) || defined (__stub___shl_load)
7570choke me
7571#else
a.rottmann84e63352003-03-24 09:42:16 +00007572char (*f) () = shl_load;
7573#endif
7574#ifdef __cplusplus
7575}
drh71eb93e2001-09-28 01:34:43 +00007576#endif
7577
a.rottmann84e63352003-03-24 09:42:16 +00007578int
7579main ()
7580{
7581return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007582 ;
7583 return 0;
7584}
7585_ACEOF
7586rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007588 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007589 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007594 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007595 { ac_try='test -z "$ac_c_werror_flag"
7596 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; } &&
7602 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007604 (eval $ac_try) 2>&5
7605 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007607 (exit $ac_status); }; }; then
7608 ac_cv_func_shl_load=yes
7609else
7610 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007611sed 's/^/| /' conftest.$ac_ext >&5
7612
drh71eb93e2001-09-28 01:34:43 +00007613ac_cv_func_shl_load=no
7614fi
a.rottmann964dbb12004-02-26 19:47:42 +00007615rm -f conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007617fi
a.rottmann84e63352003-03-24 09:42:16 +00007618echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007619echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7620if test $ac_cv_func_shl_load = yes; then
7621 lt_cv_dlopen="shl_load"
7622else
a.rottmann84e63352003-03-24 09:42:16 +00007623 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007624echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7625if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 ac_check_lib_save_LIBS=$LIBS
7629LIBS="-ldld $LIBS"
7630cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007631/* confdefs.h. */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007636
7637/* Override any gcc2 internal prototype to avoid an error. */
7638#ifdef __cplusplus
7639extern "C"
7640#endif
7641/* We use char because int might match the return type of a gcc2
7642 builtin and then its argument prototype would still apply. */
7643char shl_load ();
7644int
7645main ()
7646{
7647shl_load ();
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007654 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007655 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007660 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007670 (eval $ac_try) 2>&5
7671 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007673 (exit $ac_status); }; }; then
7674 ac_cv_lib_dld_shl_load=yes
7675else
7676 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007677sed 's/^/| /' conftest.$ac_ext >&5
7678
drh71eb93e2001-09-28 01:34:43 +00007679ac_cv_lib_dld_shl_load=no
7680fi
a.rottmann964dbb12004-02-26 19:47:42 +00007681rm -f conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007683LIBS=$ac_check_lib_save_LIBS
7684fi
a.rottmann84e63352003-03-24 09:42:16 +00007685echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007686echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7687if test $ac_cv_lib_dld_shl_load = yes; then
7688 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7689else
a.rottmann84e63352003-03-24 09:42:16 +00007690 echo "$as_me:$LINENO: checking for dlopen" >&5
7691echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7692if test "${ac_cv_func_dlopen+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007696/* confdefs.h. */
7697_ACEOF
7698cat confdefs.h >>conftest.$ac_ext
7699cat >>conftest.$ac_ext <<_ACEOF
7700/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007701/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7703#define dlopen innocuous_dlopen
7704
a.rottmann84e63352003-03-24 09:42:16 +00007705/* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char dlopen (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007709
a.rottmann84e63352003-03-24 09:42:16 +00007710#ifdef __STDC__
7711# include <limits.h>
7712#else
7713# include <assert.h>
7714#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007715
7716#undef dlopen
7717
a.rottmann84e63352003-03-24 09:42:16 +00007718/* Override any gcc2 internal prototype to avoid an error. */
7719#ifdef __cplusplus
7720extern "C"
7721{
7722#endif
7723/* We use char because int might match the return type of a gcc2
7724 builtin and then its argument prototype would still apply. */
7725char dlopen ();
7726/* The GNU C library defines this for functions which it implements
7727 to always fail with ENOSYS. Some functions are actually named
7728 something starting with __ and the normal name is an alias. */
7729#if defined (__stub_dlopen) || defined (__stub___dlopen)
7730choke me
7731#else
7732char (*f) () = dlopen;
7733#endif
7734#ifdef __cplusplus
7735}
7736#endif
7737
7738int
7739main ()
7740{
7741return f != dlopen;
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007748 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007749 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_func_dlopen=yes
7769else
7770 echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
7773ac_cv_func_dlopen=no
7774fi
a.rottmann964dbb12004-02-26 19:47:42 +00007775rm -f conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007777fi
7778echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7779echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7780if test $ac_cv_func_dlopen = yes; then
7781 lt_cv_dlopen="dlopen"
7782else
7783 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007784echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7785if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 ac_check_lib_save_LIBS=$LIBS
7789LIBS="-ldl $LIBS"
7790cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007796
7797/* Override any gcc2 internal prototype to avoid an error. */
7798#ifdef __cplusplus
7799extern "C"
7800#endif
7801/* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803char dlopen ();
7804int
7805main ()
7806{
7807dlopen ();
7808 ;
7809 return 0;
7810}
7811_ACEOF
7812rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007814 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007815 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007820 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007830 (eval $ac_try) 2>&5
7831 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007833 (exit $ac_status); }; }; then
7834 ac_cv_lib_dl_dlopen=yes
7835else
7836 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007837sed 's/^/| /' conftest.$ac_ext >&5
7838
drh71eb93e2001-09-28 01:34:43 +00007839ac_cv_lib_dl_dlopen=no
7840fi
a.rottmann964dbb12004-02-26 19:47:42 +00007841rm -f conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007843LIBS=$ac_check_lib_save_LIBS
7844fi
a.rottmann84e63352003-03-24 09:42:16 +00007845echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007846echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7847if test $ac_cv_lib_dl_dlopen = yes; then
7848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7849else
a.rottmann84e63352003-03-24 09:42:16 +00007850 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007851echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7852if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 ac_check_lib_save_LIBS=$LIBS
7856LIBS="-lsvld $LIBS"
7857cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007858/* confdefs.h. */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007863
7864/* Override any gcc2 internal prototype to avoid an error. */
7865#ifdef __cplusplus
7866extern "C"
7867#endif
7868/* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870char dlopen ();
7871int
7872main ()
7873{
7874dlopen ();
7875 ;
7876 return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007881 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007882 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007887 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007897 (eval $ac_try) 2>&5
7898 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007900 (exit $ac_status); }; }; then
7901 ac_cv_lib_svld_dlopen=yes
7902else
7903 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007904sed 's/^/| /' conftest.$ac_ext >&5
7905
drh71eb93e2001-09-28 01:34:43 +00007906ac_cv_lib_svld_dlopen=no
7907fi
a.rottmann964dbb12004-02-26 19:47:42 +00007908rm -f conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007910LIBS=$ac_check_lib_save_LIBS
7911fi
a.rottmann84e63352003-03-24 09:42:16 +00007912echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007913echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7914if test $ac_cv_lib_svld_dlopen = yes; then
7915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007916else
7917 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7918echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7919if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922 ac_check_lib_save_LIBS=$LIBS
7923LIBS="-ldld $LIBS"
7924cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007925/* confdefs.h. */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h. */
7930
7931/* Override any gcc2 internal prototype to avoid an error. */
7932#ifdef __cplusplus
7933extern "C"
7934#endif
7935/* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937char dld_link ();
7938int
7939main ()
7940{
7941dld_link ();
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007948 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007949 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_dld_dld_link=yes
7969else
7970 echo "$as_me: failed program was:" >&5
7971sed 's/^/| /' conftest.$ac_ext >&5
7972
7973ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007974fi
a.rottmann964dbb12004-02-26 19:47:42 +00007975rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007977LIBS=$ac_check_lib_save_LIBS
7978fi
7979echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7980echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7981if test $ac_cv_lib_dld_dld_link = yes; then
7982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7983fi
7984
drh71eb93e2001-09-28 01:34:43 +00007985
7986fi
7987
drh71eb93e2001-09-28 01:34:43 +00007988
7989fi
7990
a.rottmann84e63352003-03-24 09:42:16 +00007991
7992fi
7993
7994
7995fi
7996
7997
drh71eb93e2001-09-28 01:34:43 +00007998fi
7999
8000 ;;
8001 esac
8002
8003 if test "x$lt_cv_dlopen" != xno; then
8004 enable_dlopen=yes
8005 else
8006 enable_dlopen=no
8007 fi
8008
8009 case $lt_cv_dlopen in
8010 dlopen)
8011 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008013
8014 save_LDFLAGS="$LDFLAGS"
8015 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8016
8017 save_LIBS="$LIBS"
8018 LIBS="$lt_cv_dlopen_libs $LIBS"
8019
a.rottmann84e63352003-03-24 09:42:16 +00008020 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008021echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8022if test "${lt_cv_dlopen_self+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025 if test "$cross_compiling" = yes; then :
8026 lt_cv_dlopen_self=cross
8027else
a.rottmann9bc8b932004-02-29 15:18:31 +00008028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008029 lt_status=$lt_dlunknown
8030 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +00008031#line 8031 "configure"
drh71eb93e2001-09-28 01:34:43 +00008032#include "confdefs.h"
8033
8034#if HAVE_DLFCN_H
8035#include <dlfcn.h>
8036#endif
8037
8038#include <stdio.h>
8039
8040#ifdef RTLD_GLOBAL
8041# define LT_DLGLOBAL RTLD_GLOBAL
8042#else
8043# ifdef DL_GLOBAL
8044# define LT_DLGLOBAL DL_GLOBAL
8045# else
8046# define LT_DLGLOBAL 0
8047# endif
8048#endif
8049
8050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8051 find out it does not work in some platform. */
8052#ifndef LT_DLLAZY_OR_NOW
8053# ifdef RTLD_LAZY
8054# define LT_DLLAZY_OR_NOW RTLD_LAZY
8055# else
8056# ifdef DL_LAZY
8057# define LT_DLLAZY_OR_NOW DL_LAZY
8058# else
8059# ifdef RTLD_NOW
8060# define LT_DLLAZY_OR_NOW RTLD_NOW
8061# else
8062# ifdef DL_NOW
8063# define LT_DLLAZY_OR_NOW DL_NOW
8064# else
8065# define LT_DLLAZY_OR_NOW 0
8066# endif
8067# endif
8068# endif
8069# endif
8070#endif
8071
8072#ifdef __cplusplus
8073extern "C" void exit (int);
8074#endif
8075
8076void fnord() { int i=42;}
8077int main ()
8078{
8079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8080 int status = $lt_dlunknown;
8081
8082 if (self)
8083 {
8084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8085 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8086 /* dlclose (self); */
8087 }
8088
8089 exit (status);
8090}
8091EOF
a.rottmann84e63352003-03-24 09:42:16 +00008092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008093 (eval $ac_link) 2>&5
8094 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008096 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8097 (./conftest; exit; ) 2>/dev/null
8098 lt_status=$?
8099 case x$lt_status in
8100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8102 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8103 esac
8104 else :
8105 # compilation failed
8106 lt_cv_dlopen_self=no
8107 fi
8108fi
8109rm -fr conftest*
8110
a.rottmann84e63352003-03-24 09:42:16 +00008111
drh71eb93e2001-09-28 01:34:43 +00008112fi
a.rottmann84e63352003-03-24 09:42:16 +00008113echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008114echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8115
8116 if test "x$lt_cv_dlopen_self" = xyes; then
8117 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008118 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008119echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8120if test "${lt_cv_dlopen_self_static+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123 if test "$cross_compiling" = yes; then :
8124 lt_cv_dlopen_self_static=cross
8125else
a.rottmann9bc8b932004-02-29 15:18:31 +00008126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008127 lt_status=$lt_dlunknown
8128 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +00008129#line 8129 "configure"
drh71eb93e2001-09-28 01:34:43 +00008130#include "confdefs.h"
8131
8132#if HAVE_DLFCN_H
8133#include <dlfcn.h>
8134#endif
8135
8136#include <stdio.h>
8137
8138#ifdef RTLD_GLOBAL
8139# define LT_DLGLOBAL RTLD_GLOBAL
8140#else
8141# ifdef DL_GLOBAL
8142# define LT_DLGLOBAL DL_GLOBAL
8143# else
8144# define LT_DLGLOBAL 0
8145# endif
8146#endif
8147
8148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8149 find out it does not work in some platform. */
8150#ifndef LT_DLLAZY_OR_NOW
8151# ifdef RTLD_LAZY
8152# define LT_DLLAZY_OR_NOW RTLD_LAZY
8153# else
8154# ifdef DL_LAZY
8155# define LT_DLLAZY_OR_NOW DL_LAZY
8156# else
8157# ifdef RTLD_NOW
8158# define LT_DLLAZY_OR_NOW RTLD_NOW
8159# else
8160# ifdef DL_NOW
8161# define LT_DLLAZY_OR_NOW DL_NOW
8162# else
8163# define LT_DLLAZY_OR_NOW 0
8164# endif
8165# endif
8166# endif
8167# endif
8168#endif
8169
8170#ifdef __cplusplus
8171extern "C" void exit (int);
8172#endif
8173
8174void fnord() { int i=42;}
8175int main ()
8176{
8177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8178 int status = $lt_dlunknown;
8179
8180 if (self)
8181 {
8182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8184 /* dlclose (self); */
8185 }
8186
8187 exit (status);
8188}
8189EOF
a.rottmann84e63352003-03-24 09:42:16 +00008190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008191 (eval $ac_link) 2>&5
8192 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8195 (./conftest; exit; ) 2>/dev/null
8196 lt_status=$?
8197 case x$lt_status in
8198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8200 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8201 esac
8202 else :
8203 # compilation failed
8204 lt_cv_dlopen_self_static=no
8205 fi
8206fi
8207rm -fr conftest*
8208
a.rottmann84e63352003-03-24 09:42:16 +00008209
drh71eb93e2001-09-28 01:34:43 +00008210fi
a.rottmann84e63352003-03-24 09:42:16 +00008211echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008212echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8213 fi
8214
8215 CPPFLAGS="$save_CPPFLAGS"
8216 LDFLAGS="$save_LDFLAGS"
8217 LIBS="$save_LIBS"
8218 ;;
8219 esac
8220
8221 case $lt_cv_dlopen_self in
8222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8223 *) enable_dlopen_self=unknown ;;
8224 esac
8225
8226 case $lt_cv_dlopen_self_static in
8227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8228 *) enable_dlopen_self_static=unknown ;;
8229 esac
8230fi
8231
drh71eb93e2001-09-28 01:34:43 +00008232
a.rottmann9bc8b932004-02-29 15:18:31 +00008233# Report which librarie types wil actually be built
8234echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8235echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8236echo "$as_me:$LINENO: result: $can_build_shared" >&5
8237echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008238
a.rottmann9bc8b932004-02-29 15:18:31 +00008239echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8240echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8241test "$can_build_shared" = "no" && enable_shared=no
8242
8243# On AIX, shared libraries and static libraries use the same namespace, and
8244# are all built from PIC.
8245case "$host_os" in
8246aix3*)
8247 test "$enable_shared" = yes && enable_static=no
8248 if test -n "$RANLIB"; then
8249 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8250 postinstall_cmds='$RANLIB $lib'
8251 fi
8252 ;;
8253
8254aix4*)
8255 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8256 test "$enable_shared" = yes && enable_static=no
8257 fi
8258 ;;
8259 darwin* | rhapsody*)
8260 if test "$GCC" = yes; then
8261 archive_cmds_need_lc=no
8262 case "$host_os" in
8263 rhapsody* | darwin1.[012])
8264 allow_undefined_flag='-undefined suppress'
8265 ;;
8266 *) # Darwin 1.3 on
8267 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8268 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008269 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008270 case ${MACOSX_DEPLOYMENT_TARGET} in
8271 10.[012])
8272 allow_undefined_flag='-flat_namespace -undefined suppress'
8273 ;;
8274 10.*)
8275 allow_undefined_flag='-undefined dynamic_lookup'
8276 ;;
8277 esac
a.rottmann84e63352003-03-24 09:42:16 +00008278 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008279 ;;
8280 esac
8281 output_verbose_link_cmd='echo'
8282 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8283 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8284 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8285 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}'
8286 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}'
8287 hardcode_direct=no
8288 hardcode_automatic=yes
8289 hardcode_shlibpath_var=unsupported
8290 whole_archive_flag_spec='-all_load $convenience'
8291 link_all_deplibs=yes
8292 else
8293 ld_shlibs=no
8294 fi
a.rottmann84e63352003-03-24 09:42:16 +00008295 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008296esac
8297echo "$as_me:$LINENO: result: $enable_shared" >&5
8298echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008299
a.rottmann9bc8b932004-02-29 15:18:31 +00008300echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8301echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8302# Make sure either enable_shared or enable_static is yes.
8303test "$enable_shared" = yes || enable_static=yes
8304echo "$as_me:$LINENO: result: $enable_static" >&5
8305echo "${ECHO_T}$enable_static" >&6
8306
8307# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008308# libtool distribution, otherwise you forgot to ship ltmain.sh
8309# with your package, and you will get complaints that there are
8310# no rules to generate ltmain.sh.
8311if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008312 # See if we are running on zsh, and set the options which allow our commands through
8313 # without removal of \ escapes.
8314 if test -n "${ZSH_VERSION+set}" ; then
8315 setopt NO_GLOB_SUBST
8316 fi
drh71eb93e2001-09-28 01:34:43 +00008317 # Now quote all the things that may contain metacharacters while being
8318 # careful not to overquote the AC_SUBSTed values. We take copies of the
8319 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008320 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8321 SED SHELL STRIP \
8322 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8323 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8324 deplibs_check_method reload_flag reload_cmds need_locks \
8325 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8326 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008327 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008328 old_postinstall_cmds old_postuninstall_cmds \
8329 compiler \
8330 CC \
8331 LD \
8332 lt_prog_compiler_wl \
8333 lt_prog_compiler_pic \
8334 lt_prog_compiler_static \
8335 lt_prog_compiler_no_builtin_flag \
8336 export_dynamic_flag_spec \
8337 thread_safe_flag_spec \
8338 whole_archive_flag_spec \
8339 enable_shared_with_static_runtimes \
8340 old_archive_cmds \
8341 old_archive_from_new_cmds \
8342 predep_objects \
8343 postdep_objects \
8344 predeps \
8345 postdeps \
8346 compiler_lib_search_path \
8347 archive_cmds \
8348 archive_expsym_cmds \
8349 postinstall_cmds \
8350 postuninstall_cmds \
8351 old_archive_from_expsyms_cmds \
8352 allow_undefined_flag \
8353 no_undefined_flag \
8354 export_symbols_cmds \
8355 hardcode_libdir_flag_spec \
8356 hardcode_libdir_flag_spec_ld \
8357 hardcode_libdir_separator \
8358 hardcode_automatic \
8359 module_cmds \
8360 module_expsym_cmds \
8361 lt_cv_prog_compiler_c_o \
8362 exclude_expsyms \
8363 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008364
8365 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008366 old_archive_cmds | \
8367 old_archive_from_new_cmds | \
8368 archive_cmds | \
8369 archive_expsym_cmds | \
8370 module_cmds | \
8371 module_expsym_cmds | \
8372 old_archive_from_expsyms_cmds | \
8373 export_symbols_cmds | \
8374 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008375 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008376 old_postinstall_cmds | old_postuninstall_cmds | \
8377 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008378 # Double-quote double-evaled strings.
8379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8380 ;;
8381 *)
8382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8383 ;;
8384 esac
8385 done
8386
a.rottmann9bc8b932004-02-29 15:18:31 +00008387 case $lt_echo in
8388 *'\$0 --fallback-echo"')
8389 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8390 ;;
8391 esac
8392
8393cfgfile="${ofile}T"
8394 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8395 $rm -f "$cfgfile"
8396 { echo "$as_me:$LINENO: creating $ofile" >&5
8397echo "$as_me: creating $ofile" >&6;}
8398
8399 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008400#! $SHELL
8401
a.rottmann9bc8b932004-02-29 15:18:31 +00008402# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008403# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8404# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8405#
a.rottmann9bc8b932004-02-29 15:18:31 +00008406# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8407# Free Software Foundation, Inc.
8408#
8409# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008410# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8411#
8412# This program is free software; you can redistribute it and/or modify
8413# it under the terms of the GNU General Public License as published by
8414# the Free Software Foundation; either version 2 of the License, or
8415# (at your option) any later version.
8416#
8417# This program is distributed in the hope that it will be useful, but
8418# WITHOUT ANY WARRANTY; without even the implied warranty of
8419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8420# General Public License for more details.
8421#
8422# You should have received a copy of the GNU General Public License
8423# along with this program; if not, write to the Free Software
8424# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8425#
8426# As a special exception to the GNU General Public License, if you
8427# distribute this file as part of a program that contains a
8428# configuration script generated by Autoconf, you may include it under
8429# the same distribution terms that you use for the rest of that program.
8430
a.rottmann9bc8b932004-02-29 15:18:31 +00008431# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008432SED=$lt_SED
8433
drh71eb93e2001-09-28 01:34:43 +00008434# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008435Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008436
8437# The HP-UX ksh and POSIX shell print the target directory to stdout
8438# if CDPATH is set.
8439if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8440
a.rottmann9bc8b932004-02-29 15:18:31 +00008441# The names of the tagged configurations supported by this script.
8442available_tags=
8443
drh71eb93e2001-09-28 01:34:43 +00008444# ### BEGIN LIBTOOL CONFIG
8445
8446# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8447
8448# Shell to use when invoking shell scripts.
8449SHELL=$lt_SHELL
8450
8451# Whether or not to build shared libraries.
8452build_libtool_libs=$enable_shared
8453
8454# Whether or not to build static libraries.
8455build_old_libs=$enable_static
8456
8457# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008458build_libtool_need_lc=$archive_cmds_need_lc
8459
8460# Whether or not to disallow shared libs when runtime libs are static
8461allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008462
8463# Whether or not to optimize for fast installation.
8464fast_install=$enable_fast_install
8465
8466# The host system.
8467host_alias=$host_alias
8468host=$host
8469
8470# An echo program that does not interpret backslashes.
8471echo=$lt_echo
8472
8473# The archiver.
8474AR=$lt_AR
8475AR_FLAGS=$lt_AR_FLAGS
8476
a.rottmann9bc8b932004-02-29 15:18:31 +00008477# A C compiler.
8478LTCC=$lt_LTCC
8479
8480# A language-specific compiler.
8481CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008482
8483# Is the compiler the GNU C compiler?
8484with_gcc=$GCC
8485
a.rottmann9bc8b932004-02-29 15:18:31 +00008486# An ERE matcher.
8487EGREP=$lt_EGREP
8488
drh71eb93e2001-09-28 01:34:43 +00008489# The linker used to build libraries.
8490LD=$lt_LD
8491
8492# Whether we need hard or soft links.
8493LN_S=$lt_LN_S
8494
8495# A BSD-compatible nm program.
8496NM=$lt_NM
8497
8498# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008499STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008500
8501# Used to examine libraries when file_magic_cmd begins "file"
8502MAGIC_CMD=$MAGIC_CMD
8503
8504# Used on cygwin: DLL creation program.
8505DLLTOOL="$DLLTOOL"
8506
8507# Used on cygwin: object dumper.
8508OBJDUMP="$OBJDUMP"
8509
8510# Used on cygwin: assembler.
8511AS="$AS"
8512
8513# The name of the directory that contains temporary libtool files.
8514objdir=$objdir
8515
8516# How to create reloadable object files.
8517reload_flag=$lt_reload_flag
8518reload_cmds=$lt_reload_cmds
8519
8520# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008521wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008522
8523# Object file suffix (normally "o").
8524objext="$ac_objext"
8525
8526# Old archive suffix (normally "a").
8527libext="$libext"
8528
a.rottmann9bc8b932004-02-29 15:18:31 +00008529# Shared library suffix (normally ".so").
8530shrext='$shrext'
8531
drh71eb93e2001-09-28 01:34:43 +00008532# Executable file suffix (normally "").
8533exeext="$exeext"
8534
8535# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008536pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008537pic_mode=$pic_mode
8538
a.rottmann9bc8b932004-02-29 15:18:31 +00008539# What is the maximum length of a command?
8540max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008541
a.rottmann9bc8b932004-02-29 15:18:31 +00008542# Does compiler simultaneously support -c and -o options?
8543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008544
8545# Must we lock files when doing compilation ?
8546need_locks=$lt_need_locks
8547
8548# Do we need the lib prefix for modules?
8549need_lib_prefix=$need_lib_prefix
8550
8551# Do we need a version for libraries?
8552need_version=$need_version
8553
8554# Whether dlopen is supported.
8555dlopen_support=$enable_dlopen
8556
8557# Whether dlopen of programs is supported.
8558dlopen_self=$enable_dlopen_self
8559
8560# Whether dlopen of statically linked programs is supported.
8561dlopen_self_static=$enable_dlopen_self_static
8562
8563# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008564link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008565
8566# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008567no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008568
8569# Compiler flag to allow reflexive dlopens.
8570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8571
8572# Compiler flag to generate shared objects directly from archives.
8573whole_archive_flag_spec=$lt_whole_archive_flag_spec
8574
8575# Compiler flag to generate thread-safe objects.
8576thread_safe_flag_spec=$lt_thread_safe_flag_spec
8577
8578# Library versioning type.
8579version_type=$version_type
8580
8581# Format of library name prefix.
8582libname_spec=$lt_libname_spec
8583
8584# List of archive names. First name is the real one, the rest are links.
8585# The last name is the one that the linker finds with -lNAME.
8586library_names_spec=$lt_library_names_spec
8587
8588# The coded name of the library, if different from the real name.
8589soname_spec=$lt_soname_spec
8590
8591# Commands used to build and install an old-style archive.
8592RANLIB=$lt_RANLIB
8593old_archive_cmds=$lt_old_archive_cmds
8594old_postinstall_cmds=$lt_old_postinstall_cmds
8595old_postuninstall_cmds=$lt_old_postuninstall_cmds
8596
8597# Create an old-style archive from a shared archive.
8598old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8599
8600# Create a temporary old-style archive to link instead of a shared archive.
8601old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8602
8603# Commands used to build and install a shared archive.
8604archive_cmds=$lt_archive_cmds
8605archive_expsym_cmds=$lt_archive_expsym_cmds
8606postinstall_cmds=$lt_postinstall_cmds
8607postuninstall_cmds=$lt_postuninstall_cmds
8608
a.rottmann9bc8b932004-02-29 15:18:31 +00008609# Commands used to build a loadable module (assumed same as above if empty)
8610module_cmds=$lt_module_cmds
8611module_expsym_cmds=$lt_module_expsym_cmds
8612
drh71eb93e2001-09-28 01:34:43 +00008613# Commands to strip libraries.
8614old_striplib=$lt_old_striplib
8615striplib=$lt_striplib
8616
a.rottmann9bc8b932004-02-29 15:18:31 +00008617# Dependencies to place before the objects being linked to create a
8618# shared library.
8619predep_objects=$lt_predep_objects
8620
8621# Dependencies to place after the objects being linked to create a
8622# shared library.
8623postdep_objects=$lt_postdep_objects
8624
8625# Dependencies to place before the objects being linked to create a
8626# shared library.
8627predeps=$lt_predeps
8628
8629# Dependencies to place after the objects being linked to create a
8630# shared library.
8631postdeps=$lt_postdeps
8632
8633# The library search path used internally by the compiler when linking
8634# a shared library.
8635compiler_lib_search_path=$lt_compiler_lib_search_path
8636
drh71eb93e2001-09-28 01:34:43 +00008637# Method to check whether dependent libraries are shared objects.
8638deplibs_check_method=$lt_deplibs_check_method
8639
8640# Command to use when deplibs_check_method == file_magic.
8641file_magic_cmd=$lt_file_magic_cmd
8642
8643# Flag that allows shared libraries with undefined symbols to be built.
8644allow_undefined_flag=$lt_allow_undefined_flag
8645
8646# Flag that forces no undefined symbols.
8647no_undefined_flag=$lt_no_undefined_flag
8648
8649# Commands used to finish a libtool library installation in a directory.
8650finish_cmds=$lt_finish_cmds
8651
8652# Same as above, but a single script fragment to be evaled but not shown.
8653finish_eval=$lt_finish_eval
8654
8655# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008657
8658# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008660
8661# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008663
8664# This is the shared library runtime path variable.
8665runpath_var=$runpath_var
8666
8667# This is the shared library path variable.
8668shlibpath_var=$shlibpath_var
8669
8670# Is shlibpath searched before the hard-coded library search path?
8671shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8672
8673# How to hardcode a shared library path into an executable.
8674hardcode_action=$hardcode_action
8675
8676# Whether we should hardcode library paths into libraries.
8677hardcode_into_libs=$hardcode_into_libs
8678
8679# Flag to hardcode \$libdir into a binary during linking.
8680# This must work even if \$libdir does not exist.
8681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8682
a.rottmann9bc8b932004-02-29 15:18:31 +00008683# If ld is used when linking, flag to hardcode \$libdir into
8684# a binary during linking. This must work even if \$libdir does
8685# not exist.
8686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8687
drh71eb93e2001-09-28 01:34:43 +00008688# Whether we need a single -rpath flag with a separated argument.
8689hardcode_libdir_separator=$lt_hardcode_libdir_separator
8690
a.rottmann9bc8b932004-02-29 15:18:31 +00008691# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008692# resulting binary.
8693hardcode_direct=$hardcode_direct
8694
8695# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8696# resulting binary.
8697hardcode_minus_L=$hardcode_minus_L
8698
8699# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8700# the resulting binary.
8701hardcode_shlibpath_var=$hardcode_shlibpath_var
8702
a.rottmann9bc8b932004-02-29 15:18:31 +00008703# Set to yes if building a shared library automatically hardcodes DIR into the library
8704# and all subsequent libraries and executables linked against it.
8705hardcode_automatic=$hardcode_automatic
8706
drh71eb93e2001-09-28 01:34:43 +00008707# Variables whose values should be saved in libtool wrapper scripts and
8708# restored at relink time.
8709variables_saved_for_relink="$variables_saved_for_relink"
8710
8711# Whether libtool must link a program against all its dependency libraries.
8712link_all_deplibs=$link_all_deplibs
8713
8714# Compile-time system search path for libraries
8715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8716
8717# Run-time system search path for libraries
8718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8719
8720# Fix the shell variable \$srcfile for the compiler.
8721fix_srcfile_path="$fix_srcfile_path"
8722
8723# Set to yes if exported symbols are required.
8724always_export_symbols=$always_export_symbols
8725
8726# The commands to list exported symbols.
8727export_symbols_cmds=$lt_export_symbols_cmds
8728
8729# The commands to extract the exported symbol list from a shared archive.
8730extract_expsyms_cmds=$lt_extract_expsyms_cmds
8731
8732# Symbols that should not be listed in the preloaded symbols.
8733exclude_expsyms=$lt_exclude_expsyms
8734
8735# Symbols that must always be exported.
8736include_expsyms=$lt_include_expsyms
8737
8738# ### END LIBTOOL CONFIG
8739
8740__EOF__
8741
a.rottmann9bc8b932004-02-29 15:18:31 +00008742
drh71eb93e2001-09-28 01:34:43 +00008743 case $host_os in
8744 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008745 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008746
8747# AIX sometimes has problems with the GCC collect2 program. For some
8748# reason, if we set the COLLECT_NAMES environment variable, the problems
8749# vanish in a puff of smoke.
8750if test "X${COLLECT_NAMES+set}" != Xset; then
8751 COLLECT_NAMES=
8752 export COLLECT_NAMES
8753fi
8754EOF
8755 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008756 esac
drh71eb93e2001-09-28 01:34:43 +00008757
drh71eb93e2001-09-28 01:34:43 +00008758 # We use sed instead of cat because bash on DJGPP gets confused if
8759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8760 # text mode, it properly converts lines to CR/LF. This bash problem
8761 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008762 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008763
a.rottmann9bc8b932004-02-29 15:18:31 +00008764 mv -f "$cfgfile" "$ofile" || \
8765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008766 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008767
8768else
8769 # If there is no Makefile yet, we rely on a make rule to execute
8770 # `config.status --recheck' to rerun these tests and create the
8771 # libtool script then.
8772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8773 if test -f "$ltmain_in"; then
8774 test -f Makefile && make "$ltmain"
8775 fi
drh71eb93e2001-09-28 01:34:43 +00008776fi
8777
drh71eb93e2001-09-28 01:34:43 +00008778
a.rottmann9bc8b932004-02-29 15:18:31 +00008779ac_ext=c
8780ac_cpp='$CPP $CPPFLAGS'
8781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
8785CC="$lt_save_CC"
8786
8787
8788# Check whether --with-tags or --without-tags was given.
8789if test "${with_tags+set}" = set; then
8790 withval="$with_tags"
8791 tagnames="$withval"
8792fi;
8793
8794if test -f "$ltmain" && test -n "$tagnames"; then
8795 if test ! -f "${ofile}"; then
8796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8797echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8798 fi
8799
8800 if test -z "$LTCC"; then
8801 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8802 if test -z "$LTCC"; then
8803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8804echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8805 else
8806 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8807echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8808 fi
8809 fi
8810
8811 # Extract list of available tagged configurations in $ofile.
8812 # Note that this assumes the entire list is on one line.
8813 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8814
8815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8816 for tagname in $tagnames; do
8817 IFS="$lt_save_ifs"
8818 # Check whether tagname contains only valid characters
8819 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8820 "") ;;
8821 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8822echo "$as_me: error: invalid tag name: $tagname" >&2;}
8823 { (exit 1); exit 1; }; }
8824 ;;
8825 esac
8826
8827 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8828 then
8829 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8830echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8831 { (exit 1); exit 1; }; }
8832 fi
8833
8834 # Update the list of available tags.
8835 if test -n "$tagname"; then
8836 echo appending configuration tag \"$tagname\" to $ofile
8837
8838 case $tagname in
8839 CXX)
8840 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8841 ac_ext=cc
8842ac_cpp='$CXXCPP $CPPFLAGS'
8843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8846
8847
8848
8849
8850archive_cmds_need_lc_CXX=no
8851allow_undefined_flag_CXX=
8852always_export_symbols_CXX=no
8853archive_expsym_cmds_CXX=
8854export_dynamic_flag_spec_CXX=
8855hardcode_direct_CXX=no
8856hardcode_libdir_flag_spec_CXX=
8857hardcode_libdir_flag_spec_ld_CXX=
8858hardcode_libdir_separator_CXX=
8859hardcode_minus_L_CXX=no
8860hardcode_automatic_CXX=no
8861module_cmds_CXX=
8862module_expsym_cmds_CXX=
8863link_all_deplibs_CXX=unknown
8864old_archive_cmds_CXX=$old_archive_cmds
8865no_undefined_flag_CXX=
8866whole_archive_flag_spec_CXX=
8867enable_shared_with_static_runtimes_CXX=no
8868
8869# Dependencies to place before and after the object being linked:
8870predep_objects_CXX=
8871postdep_objects_CXX=
8872predeps_CXX=
8873postdeps_CXX=
8874compiler_lib_search_path_CXX=
8875
8876# Source file extension for C++ test sources.
8877ac_ext=cc
8878
8879# Object file extension for compiled C++ test sources.
8880objext=o
8881objext_CXX=$objext
8882
8883# Code to be used in simple compile tests
8884lt_simple_compile_test_code="int some_variable = 0;\n"
8885
8886# Code to be used in simple link tests
8887lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8888
8889# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8890
8891# If no C compiler was specified, use CC.
8892LTCC=${LTCC-"$CC"}
8893
8894# Allow CC to be a program name with arguments.
8895compiler=$CC
8896
8897
8898# Allow CC to be a program name with arguments.
8899lt_save_CC=$CC
8900lt_save_LD=$LD
8901lt_save_GCC=$GCC
8902GCC=$GXX
8903lt_save_with_gnu_ld=$with_gnu_ld
8904lt_save_path_LD=$lt_cv_path_LD
8905if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8906 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8907else
8908 unset lt_cv_prog_gnu_ld
8909fi
8910if test -n "${lt_cv_path_LDCXX+set}"; then
8911 lt_cv_path_LD=$lt_cv_path_LDCXX
8912else
8913 unset lt_cv_path_LD
8914fi
8915test -z "${LDCXX+set}" || LD=$LDCXX
8916CC=${CXX-"c++"}
8917compiler=$CC
8918compiler_CXX=$CC
8919cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8920
8921# We don't want -fno-exception wen compiling C++ code, so set the
8922# no_builtin_flag separately
8923if test "$GXX" = yes; then
8924 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8925else
8926 lt_prog_compiler_no_builtin_flag_CXX=
8927fi
8928
8929if test "$GXX" = yes; then
8930 # Set up default GNU C++ configuration
8931
8932
8933# Check whether --with-gnu-ld or --without-gnu-ld was given.
8934if test "${with_gnu_ld+set}" = set; then
8935 withval="$with_gnu_ld"
8936 test "$withval" = no || with_gnu_ld=yes
8937else
8938 with_gnu_ld=no
8939fi;
8940ac_prog=ld
8941if test "$GCC" = yes; then
8942 # Check if gcc -print-prog-name=ld gives a path.
8943 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8944echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8945 case $host in
8946 *-*-mingw*)
8947 # gcc leaves a trailing carriage return which upsets mingw
8948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8949 *)
8950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8951 esac
8952 case $ac_prog in
8953 # Accept absolute paths.
8954 [\\/]* | ?:[\\/]*)
8955 re_direlt='/[^/][^/]*/\.\./'
8956 # Canonicalize the pathname of ld
8957 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8958 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8959 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8960 done
8961 test -z "$LD" && LD="$ac_prog"
8962 ;;
8963 "")
8964 # If it fails, then pretend we aren't using GCC.
8965 ac_prog=ld
8966 ;;
8967 *)
8968 # If it is relative, then search for the first ld in PATH.
8969 with_gnu_ld=unknown
8970 ;;
8971 esac
8972elif test "$with_gnu_ld" = yes; then
8973 echo "$as_me:$LINENO: checking for GNU ld" >&5
8974echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8975else
8976 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8977echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8978fi
8979if test "${lt_cv_path_LD+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982 if test -z "$LD"; then
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 for ac_dir in $PATH; do
8985 IFS="$lt_save_ifs"
8986 test -z "$ac_dir" && ac_dir=.
8987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8988 lt_cv_path_LD="$ac_dir/$ac_prog"
8989 # Check to see if the program is GNU ld. I'd rather use --version,
8990 # but apparently some GNU ld's only accept -v.
8991 # Break only if it was the GNU/non-GNU ld that we prefer.
8992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8993 *GNU* | *'with BFD'*)
8994 test "$with_gnu_ld" != no && break
8995 ;;
8996 *)
8997 test "$with_gnu_ld" != yes && break
8998 ;;
8999 esac
9000 fi
9001 done
9002 IFS="$lt_save_ifs"
9003else
9004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9005fi
9006fi
9007
9008LD="$lt_cv_path_LD"
9009if test -n "$LD"; then
9010 echo "$as_me:$LINENO: result: $LD" >&5
9011echo "${ECHO_T}$LD" >&6
9012else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015fi
9016test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9017echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9018 { (exit 1); exit 1; }; }
9019echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9020echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9021if test "${lt_cv_prog_gnu_ld+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9025case `$LD -v 2>&1 </dev/null` in
9026*GNU* | *'with BFD'*)
9027 lt_cv_prog_gnu_ld=yes
9028 ;;
9029*)
9030 lt_cv_prog_gnu_ld=no
9031 ;;
9032esac
9033fi
9034echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9035echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9036with_gnu_ld=$lt_cv_prog_gnu_ld
9037
9038
9039
9040 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9041 # archiving commands below assume that GNU ld is being used.
9042 if test "$with_gnu_ld" = yes; then
9043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 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'
9045
9046 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9048
9049 # If archive_cmds runs LD, not CC, wlarc should be empty
9050 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9051 # investigate it a little bit more. (MM)
9052 wlarc='${wl}'
9053
9054 # ancient GNU ld didn't support --whole-archive et. al.
9055 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9056 grep 'no-whole-archive' > /dev/null; then
9057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9058 else
9059 whole_archive_flag_spec_CXX=
9060 fi
9061 else
9062 with_gnu_ld=no
9063 wlarc=
9064
9065 # A generic and very simple default shared library creation
9066 # command for GNU C++ for the case where it uses the native
9067 # linker, instead of GNU ld. If possible, this setting should
9068 # overridden to take advantage of the native linker features on
9069 # the platform it is being used on.
9070 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9071 fi
9072
9073 # Commands to make compiler produce verbose output that lists
9074 # what "hidden" libraries, object files and flags are used when
9075 # linking a shared library.
9076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9077
9078else
9079 GXX=no
9080 with_gnu_ld=no
9081 wlarc=
9082fi
9083
9084# PORTME: fill in a description of your system's C++ link characteristics
9085echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9086echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9087ld_shlibs_CXX=yes
9088case $host_os in
9089 aix3*)
9090 # FIXME: insert proper C++ library support
9091 ld_shlibs_CXX=no
9092 ;;
9093 aix4* | aix5*)
9094 if test "$host_cpu" = ia64; then
9095 # On IA64, the linker does run time linking by default, so we don't
9096 # have to do anything special.
9097 aix_use_runtimelinking=no
9098 exp_sym_flag='-Bexport'
9099 no_entry_flag=""
9100 else
9101 aix_use_runtimelinking=no
9102
9103 # Test if we are trying to use run time linking or normal
9104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9105 # need to do runtime linking.
9106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9107 for ld_flag in $LDFLAGS; do
9108 case $ld_flag in
9109 *-brtl*)
9110 aix_use_runtimelinking=yes
9111 break
9112 ;;
9113 esac
9114 done
9115 esac
9116
9117 exp_sym_flag='-bexport'
9118 no_entry_flag='-bnoentry'
9119 fi
9120
9121 # When large executables or shared objects are built, AIX ld can
9122 # have problems creating the table of contents. If linking a library
9123 # or program results in "error TOC overflow" add -mminimal-toc to
9124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9126
9127 archive_cmds_CXX=''
9128 hardcode_direct_CXX=yes
9129 hardcode_libdir_separator_CXX=':'
9130 link_all_deplibs_CXX=yes
9131
9132 if test "$GXX" = yes; then
9133 case $host_os in aix4.012|aix4.012.*)
9134 # We only want to do this on AIX 4.2 and lower, the check
9135 # below for broken collect2 doesn't work under 4.3+
9136 collect2name=`${CC} -print-prog-name=collect2`
9137 if test -f "$collect2name" && \
9138 strings "$collect2name" | grep resolve_lib_name >/dev/null
9139 then
9140 # We have reworked collect2
9141 hardcode_direct_CXX=yes
9142 else
9143 # We have old collect2
9144 hardcode_direct_CXX=unsupported
9145 # It fails to find uninstalled libraries when the uninstalled
9146 # path is not listed in the libpath. Setting hardcode_minus_L
9147 # to unsupported forces relinking
9148 hardcode_minus_L_CXX=yes
9149 hardcode_libdir_flag_spec_CXX='-L$libdir'
9150 hardcode_libdir_separator_CXX=
9151 fi
9152 esac
9153 shared_flag='-shared'
9154 else
9155 # not using gcc
9156 if test "$host_cpu" = ia64; then
9157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9158 # chokes on -Wl,-G. The following line is correct:
9159 shared_flag='-G'
9160 else
9161 if test "$aix_use_runtimelinking" = yes; then
9162 shared_flag='${wl}-G'
9163 else
9164 shared_flag='${wl}-bM:SRE'
9165 fi
9166 fi
9167 fi
9168
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols_CXX=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag_CXX='-berok'
9176 # Determine the default libpath from the value encoded in an empty executable.
9177 cat >conftest.$ac_ext <<_ACEOF
9178/* confdefs.h. */
9179_ACEOF
9180cat confdefs.h >>conftest.$ac_ext
9181cat >>conftest.$ac_ext <<_ACEOF
9182/* end confdefs.h. */
9183
9184int
9185main ()
9186{
9187
9188 ;
9189 return 0;
9190}
9191_ACEOF
9192rm -f conftest.$ac_objext conftest$ac_exeext
9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009201 { ac_try='test -z "$ac_cxx_werror_flag"
9202 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214
9215aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9216}'`
9217# Check for a 64-bit object if we didn't find anything.
9218if 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; }
9219}'`; fi
9220else
9221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224fi
9225rm -f conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9228
9229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9230
9231 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"
9232 else
9233 if test "$host_cpu" = ia64; then
9234 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9235 allow_undefined_flag_CXX="-z nodefs"
9236 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"
9237 else
9238 # Determine the default libpath from the value encoded in an empty executable.
9239 cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h. */
9245
9246int
9247main ()
9248{
9249
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009263 { ac_try='test -z "$ac_cxx_werror_flag"
9264 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest$ac_exeext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276
9277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9278}'`
9279# Check for a 64-bit object if we didn't find anything.
9280if 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; }
9281}'`; fi
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286fi
9287rm -f conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9289if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9290
9291 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9292 # Warning - without using the other run time loading flags,
9293 # -berok will link without error, but may produce a broken library.
9294 no_undefined_flag_CXX=' ${wl}-bernotok'
9295 allow_undefined_flag_CXX=' ${wl}-berok'
9296 # -bexpall does not export symbols beginning with underscore (_)
9297 always_export_symbols_CXX=yes
9298 # Exported symbols can be pulled into shared objects from archives
9299 whole_archive_flag_spec_CXX=' '
9300 archive_cmds_need_lc_CXX=yes
9301 # This is similar to how AIX traditionally builds it's shared libraries.
9302 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'
9303 fi
9304 fi
9305 ;;
9306 chorus*)
9307 case $cc_basename in
9308 *)
9309 # FIXME: insert proper C++ library support
9310 ld_shlibs_CXX=no
9311 ;;
9312 esac
9313 ;;
9314
9315 cygwin* | mingw* | pw32*)
9316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9317 # as there is no search path for DLLs.
9318 hardcode_libdir_flag_spec_CXX='-L$libdir'
9319 allow_undefined_flag_CXX=unsupported
9320 always_export_symbols_CXX=no
9321 enable_shared_with_static_runtimes_CXX=yes
9322
9323 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9324 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'
9325 # If the export-symbols file already is a .def file (1st line
9326 # is EXPORTS), use it as is; otherwise, prepend...
9327 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9328 cp $export_symbols $output_objdir/$soname.def;
9329 else
9330 echo EXPORTS > $output_objdir/$soname.def;
9331 cat $export_symbols >> $output_objdir/$soname.def;
9332 fi~
9333 $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'
9334 else
9335 ld_shlibs_CXX=no
9336 fi
9337 ;;
9338
9339 darwin* | rhapsody*)
9340 if test "$GXX" = yes; then
9341 archive_cmds_need_lc_CXX=no
9342 case "$host_os" in
9343 rhapsody* | darwin1.[012])
9344 allow_undefined_flag_CXX='-undefined suppress'
9345 ;;
9346 *) # Darwin 1.3 on
9347 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9348 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9349 else
9350 case ${MACOSX_DEPLOYMENT_TARGET} in
9351 10.[012])
9352 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9353 ;;
9354 10.*)
9355 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9356 ;;
9357 esac
9358 fi
9359 ;;
9360 esac
9361 lt_int_apple_cc_single_mod=no
9362 output_verbose_link_cmd='echo'
9363 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9364 lt_int_apple_cc_single_mod=yes
9365 fi
9366 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9367 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9368 else
9369 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'
9370 fi
9371 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9372
9373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9374 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9375 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}'
9376 else
9377 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}'
9378 fi
9379 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}'
9380 hardcode_direct_CXX=no
9381 hardcode_automatic_CXX=yes
9382 hardcode_shlibpath_var_CXX=unsupported
9383 whole_archive_flag_spec_CXX='-all_load $convenience'
9384 link_all_deplibs_CXX=yes
9385 else
9386 ld_shlibs_CXX=no
9387 fi
9388 ;;
9389
9390 dgux*)
9391 case $cc_basename in
9392 ec++)
9393 # FIXME: insert proper C++ library support
9394 ld_shlibs_CXX=no
9395 ;;
9396 ghcx)
9397 # Green Hills C++ Compiler
9398 # FIXME: insert proper C++ library support
9399 ld_shlibs_CXX=no
9400 ;;
9401 *)
9402 # FIXME: insert proper C++ library support
9403 ld_shlibs_CXX=no
9404 ;;
9405 esac
9406 ;;
9407 freebsd12*)
9408 # C++ shared libraries reported to be fairly broken before switch to ELF
9409 ld_shlibs_CXX=no
9410 ;;
9411 freebsd-elf*)
9412 archive_cmds_need_lc_CXX=no
9413 ;;
9414 freebsd* | kfreebsd*-gnu)
9415 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9416 # conventions
9417 ld_shlibs_CXX=yes
9418 ;;
9419 gnu*)
9420 ;;
9421 hpux9*)
9422 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_separator_CXX=:
9424 export_dynamic_flag_spec_CXX='${wl}-E'
9425 hardcode_direct_CXX=yes
9426 hardcode_minus_L_CXX=yes # Not in the search PATH,
9427 # but as the default
9428 # location of the library.
9429
9430 case $cc_basename in
9431 CC)
9432 # FIXME: insert proper C++ library support
9433 ld_shlibs_CXX=no
9434 ;;
9435 aCC)
9436 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'
9437 # Commands to make compiler produce verbose output that lists
9438 # what "hidden" libraries, object files and flags are used when
9439 # linking a shared library.
9440 #
9441 # There doesn't appear to be a way to prevent this compiler from
9442 # explicitly linking system object files so we need to strip them
9443 # from the output so that they don't get included in the library
9444 # dependencies.
9445 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'
9446 ;;
9447 *)
9448 if test "$GXX" = yes; then
9449 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'
9450 else
9451 # FIXME: insert proper C++ library support
9452 ld_shlibs_CXX=no
9453 fi
9454 ;;
9455 esac
9456 ;;
9457 hpux10*|hpux11*)
9458 if test $with_gnu_ld = no; then
9459 case "$host_cpu" in
9460 hppa*64*)
9461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9462 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9463 hardcode_libdir_separator_CXX=:
9464 ;;
9465 ia64*)
9466 hardcode_libdir_flag_spec_CXX='-L$libdir'
9467 ;;
9468 *)
9469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9470 hardcode_libdir_separator_CXX=:
9471 export_dynamic_flag_spec_CXX='${wl}-E'
9472 ;;
9473 esac
9474 fi
9475 case "$host_cpu" in
9476 hppa*64*)
9477 hardcode_direct_CXX=no
9478 hardcode_shlibpath_var_CXX=no
9479 ;;
9480 ia64*)
9481 hardcode_direct_CXX=no
9482 hardcode_shlibpath_var_CXX=no
9483 hardcode_minus_L_CXX=yes # Not in the search PATH,
9484 # but as the default
9485 # location of the library.
9486 ;;
9487 *)
9488 hardcode_direct_CXX=yes
9489 hardcode_minus_L_CXX=yes # Not in the search PATH,
9490 # but as the default
9491 # location of the library.
9492 ;;
9493 esac
9494
9495 case $cc_basename in
9496 CC)
9497 # FIXME: insert proper C++ library support
9498 ld_shlibs_CXX=no
9499 ;;
9500 aCC)
9501 case "$host_cpu" in
9502 hppa*64*|ia64*)
9503 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9504 ;;
9505 *)
9506 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9507 ;;
9508 esac
9509 # Commands to make compiler produce verbose output that lists
9510 # what "hidden" libraries, object files and flags are used when
9511 # linking a shared library.
9512 #
9513 # There doesn't appear to be a way to prevent this compiler from
9514 # explicitly linking system object files so we need to strip them
9515 # from the output so that they don't get included in the library
9516 # dependencies.
9517 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'
9518 ;;
9519 *)
9520 if test "$GXX" = yes; then
9521 if test $with_gnu_ld = no; then
9522 case "$host_cpu" in
9523 ia64*|hppa*64*)
9524 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9525 ;;
9526 *)
9527 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'
9528 ;;
9529 esac
9530 fi
9531 else
9532 # FIXME: insert proper C++ library support
9533 ld_shlibs_CXX=no
9534 fi
9535 ;;
9536 esac
9537 ;;
9538 irix5* | irix6*)
9539 case $cc_basename in
9540 CC)
9541 # SGI C++
9542 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'
9543
9544 # Archives containing C++ object files must be created using
9545 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9546 # necessary to make sure instantiated templates are included
9547 # in the archive.
9548 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9549 ;;
9550 *)
9551 if test "$GXX" = yes; then
9552 if test "$with_gnu_ld" = no; then
9553 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'
9554 else
9555 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'
9556 fi
9557 fi
9558 link_all_deplibs_CXX=yes
9559 ;;
9560 esac
9561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9562 hardcode_libdir_separator_CXX=:
9563 ;;
9564 linux*)
9565 case $cc_basename in
9566 KCC)
9567 # Kuck and Associates, Inc. (KAI) C++ Compiler
9568
9569 # KCC will only create a shared library if the output file
9570 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9571 # to its proper name (with version) after linking.
9572 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'
9573 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'
9574 # Commands to make compiler produce verbose output that lists
9575 # what "hidden" libraries, object files and flags are used when
9576 # linking a shared library.
9577 #
9578 # There doesn't appear to be a way to prevent this compiler from
9579 # explicitly linking system object files so we need to strip them
9580 # from the output so that they don't get included in the library
9581 # dependencies.
9582 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'
9583
9584 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9586
9587 # Archives containing C++ object files must be created using
9588 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9589 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9590 ;;
9591 icpc)
9592 # Intel C++
9593 with_gnu_ld=yes
9594 archive_cmds_need_lc_CXX=no
9595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 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'
9597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9598 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9599 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9600 ;;
9601 cxx)
9602 # Compaq C++
9603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 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'
9605
9606 runpath_var=LD_RUN_PATH
9607 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9608 hardcode_libdir_separator_CXX=:
9609
9610 # Commands to make compiler produce verbose output that lists
9611 # what "hidden" libraries, object files and flags are used when
9612 # linking a shared library.
9613 #
9614 # There doesn't appear to be a way to prevent this compiler from
9615 # explicitly linking system object files so we need to strip them
9616 # from the output so that they don't get included in the library
9617 # dependencies.
9618 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'
9619 ;;
9620 esac
9621 ;;
9622 lynxos*)
9623 # FIXME: insert proper C++ library support
9624 ld_shlibs_CXX=no
9625 ;;
9626 m88k*)
9627 # FIXME: insert proper C++ library support
9628 ld_shlibs_CXX=no
9629 ;;
9630 mvs*)
9631 case $cc_basename in
9632 cxx)
9633 # FIXME: insert proper C++ library support
9634 ld_shlibs_CXX=no
9635 ;;
9636 *)
9637 # FIXME: insert proper C++ library support
9638 ld_shlibs_CXX=no
9639 ;;
9640 esac
9641 ;;
9642 netbsd* | knetbsd*-gnu)
9643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9644 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9645 wlarc=
9646 hardcode_libdir_flag_spec_CXX='-R$libdir'
9647 hardcode_direct_CXX=yes
9648 hardcode_shlibpath_var_CXX=no
9649 fi
9650 # Workaround some broken pre-1.5 toolchains
9651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9652 ;;
9653 osf3*)
9654 case $cc_basename in
9655 KCC)
9656 # Kuck and Associates, Inc. (KAI) C++ Compiler
9657
9658 # KCC will only create a shared library if the output file
9659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9660 # to its proper name (with version) after linking.
9661 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'
9662
9663 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9664 hardcode_libdir_separator_CXX=:
9665
9666 # Archives containing C++ object files must be created using
9667 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9668 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9669
9670 ;;
9671 RCC)
9672 # Rational C++ 2.4.1
9673 # FIXME: insert proper C++ library support
9674 ld_shlibs_CXX=no
9675 ;;
9676 cxx)
9677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9678 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'
9679
9680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681 hardcode_libdir_separator_CXX=:
9682
9683 # Commands to make compiler produce verbose output that lists
9684 # what "hidden" libraries, object files and flags are used when
9685 # linking a shared library.
9686 #
9687 # There doesn't appear to be a way to prevent this compiler from
9688 # explicitly linking system object files so we need to strip them
9689 # from the output so that they don't get included in the library
9690 # dependencies.
9691 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'
9692 ;;
9693 *)
9694 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9695 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9696 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'
9697
9698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9699 hardcode_libdir_separator_CXX=:
9700
9701 # Commands to make compiler produce verbose output that lists
9702 # what "hidden" libraries, object files and flags are used when
9703 # linking a shared library.
9704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9705
9706 else
9707 # FIXME: insert proper C++ library support
9708 ld_shlibs_CXX=no
9709 fi
9710 ;;
9711 esac
9712 ;;
9713 osf4* | osf5*)
9714 case $cc_basename in
9715 KCC)
9716 # Kuck and Associates, Inc. (KAI) C++ Compiler
9717
9718 # KCC will only create a shared library if the output file
9719 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9720 # to its proper name (with version) after linking.
9721 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'
9722
9723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9724 hardcode_libdir_separator_CXX=:
9725
9726 # Archives containing C++ object files must be created using
9727 # the KAI C++ compiler.
9728 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9729 ;;
9730 RCC)
9731 # Rational C++ 2.4.1
9732 # FIXME: insert proper C++ library support
9733 ld_shlibs_CXX=no
9734 ;;
9735 cxx)
9736 allow_undefined_flag_CXX=' -expect_unresolved \*'
9737 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'
9738 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9739 echo "-hidden">> $lib.exp~
9740 $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~
9741 $rm $lib.exp'
9742
9743 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9744 hardcode_libdir_separator_CXX=:
9745
9746 # Commands to make compiler produce verbose output that lists
9747 # what "hidden" libraries, object files and flags are used when
9748 # linking a shared library.
9749 #
9750 # There doesn't appear to be a way to prevent this compiler from
9751 # explicitly linking system object files so we need to strip them
9752 # from the output so that they don't get included in the library
9753 # dependencies.
9754 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'
9755 ;;
9756 *)
9757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9759 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'
9760
9761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9762 hardcode_libdir_separator_CXX=:
9763
9764 # Commands to make compiler produce verbose output that lists
9765 # what "hidden" libraries, object files and flags are used when
9766 # linking a shared library.
9767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9768
9769 else
9770 # FIXME: insert proper C++ library support
9771 ld_shlibs_CXX=no
9772 fi
9773 ;;
9774 esac
9775 ;;
9776 psos*)
9777 # FIXME: insert proper C++ library support
9778 ld_shlibs_CXX=no
9779 ;;
9780 sco*)
9781 archive_cmds_need_lc_CXX=no
9782 case $cc_basename in
9783 CC)
9784 # FIXME: insert proper C++ library support
9785 ld_shlibs_CXX=no
9786 ;;
9787 *)
9788 # FIXME: insert proper C++ library support
9789 ld_shlibs_CXX=no
9790 ;;
9791 esac
9792 ;;
9793 sunos4*)
9794 case $cc_basename in
9795 CC)
9796 # Sun C++ 4.x
9797 # FIXME: insert proper C++ library support
9798 ld_shlibs_CXX=no
9799 ;;
9800 lcc)
9801 # Lucid
9802 # FIXME: insert proper C++ library support
9803 ld_shlibs_CXX=no
9804 ;;
9805 *)
9806 # FIXME: insert proper C++ library support
9807 ld_shlibs_CXX=no
9808 ;;
9809 esac
9810 ;;
9811 solaris*)
9812 case $cc_basename in
9813 CC)
9814 # Sun C++ 4.2, 5.x and Centerline C++
9815 no_undefined_flag_CXX=' -zdefs'
9816 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9817 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9818 $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'
9819
9820 hardcode_libdir_flag_spec_CXX='-R$libdir'
9821 hardcode_shlibpath_var_CXX=no
9822 case $host_os in
9823 solaris2.0-5 | solaris2.0-5.*) ;;
9824 *)
9825 # The C++ compiler is used as linker so we must use $wl
9826 # flag to pass the commands to the underlying system
9827 # linker.
9828 # Supported since Solaris 2.6 (maybe 2.5.1?)
9829 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9830 ;;
9831 esac
9832 link_all_deplibs_CXX=yes
9833
9834 # Commands to make compiler produce verbose output that lists
9835 # what "hidden" libraries, object files and flags are used when
9836 # linking a shared library.
9837 #
9838 # There doesn't appear to be a way to prevent this compiler from
9839 # explicitly linking system object files so we need to strip them
9840 # from the output so that they don't get included in the library
9841 # dependencies.
9842 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'
9843
9844 # Archives containing C++ object files must be created using
9845 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9846 # necessary to make sure instantiated templates are included
9847 # in the archive.
9848 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9849 ;;
9850 gcx)
9851 # Green Hills C++ Compiler
9852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9853
9854 # The C++ compiler must be used to create the archive.
9855 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9856 ;;
9857 *)
9858 # GNU C++ compiler with Solaris linker
9859 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9860 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9861 if $CC --version | grep -v '^2\.7' > /dev/null; then
9862 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9863 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9864 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9865
9866 # Commands to make compiler produce verbose output that lists
9867 # what "hidden" libraries, object files and flags are used when
9868 # linking a shared library.
9869 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9870 else
9871 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9872 # platform.
9873 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9874 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9875 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9876
9877 # Commands to make compiler produce verbose output that lists
9878 # what "hidden" libraries, object files and flags are used when
9879 # linking a shared library.
9880 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9881 fi
9882
9883 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9884 fi
9885 ;;
9886 esac
9887 ;;
9888 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9889 archive_cmds_need_lc_CXX=no
9890 ;;
9891 tandem*)
9892 case $cc_basename in
9893 NCC)
9894 # NonStop-UX NCC 3.20
9895 # FIXME: insert proper C++ library support
9896 ld_shlibs_CXX=no
9897 ;;
9898 *)
9899 # FIXME: insert proper C++ library support
9900 ld_shlibs_CXX=no
9901 ;;
9902 esac
9903 ;;
9904 vxworks*)
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 ;;
9908 *)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912esac
9913echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9914echo "${ECHO_T}$ld_shlibs_CXX" >&6
9915test "$ld_shlibs_CXX" = no && can_build_shared=no
9916
9917GCC_CXX="$GXX"
9918LD_CXX="$LD"
9919
9920
9921cat > conftest.$ac_ext <<EOF
9922class Foo
9923{
9924public:
9925 Foo (void) { a = 0; }
9926private:
9927 int a;
9928};
9929EOF
9930
9931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; then
9936 # Parse the compiler output and extract the necessary
9937 # objects, libraries and library flags.
9938
9939 # Sentinel used to keep track of whether or not we are before
9940 # the conftest object file.
9941 pre_test_object_deps_done=no
9942
9943 # The `*' in the case matches for architectures that use `case' in
9944 # $output_verbose_cmd can trigger glob expansion during the loop
9945 # eval without this substitution.
9946 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9947
9948 for p in `eval $output_verbose_link_cmd`; do
9949 case $p in
9950
9951 -L* | -R* | -l*)
9952 # Some compilers place space between "-{L,R}" and the path.
9953 # Remove the space.
9954 if test $p = "-L" \
9955 || test $p = "-R"; then
9956 prev=$p
9957 continue
9958 else
9959 prev=
9960 fi
9961
9962 if test "$pre_test_object_deps_done" = no; then
9963 case $p in
9964 -L* | -R*)
9965 # Internal compiler library paths should come after those
9966 # provided the user. The postdeps already come after the
9967 # user supplied libs so there is no need to process them.
9968 if test -z "$compiler_lib_search_path_CXX"; then
9969 compiler_lib_search_path_CXX="${prev}${p}"
9970 else
9971 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9972 fi
9973 ;;
9974 # The "-l" case would never come before the object being
9975 # linked, so don't bother handling this case.
9976 esac
9977 else
9978 if test -z "$postdeps_CXX"; then
9979 postdeps_CXX="${prev}${p}"
9980 else
9981 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9982 fi
9983 fi
9984 ;;
9985
9986 *.$objext)
9987 # This assumes that the test object file only shows up
9988 # once in the compiler output.
9989 if test "$p" = "conftest.$objext"; then
9990 pre_test_object_deps_done=yes
9991 continue
9992 fi
9993
9994 if test "$pre_test_object_deps_done" = no; then
9995 if test -z "$predep_objects_CXX"; then
9996 predep_objects_CXX="$p"
9997 else
9998 predep_objects_CXX="$predep_objects_CXX $p"
9999 fi
10000 else
10001 if test -z "$postdep_objects_CXX"; then
10002 postdep_objects_CXX="$p"
10003 else
10004 postdep_objects_CXX="$postdep_objects_CXX $p"
10005 fi
10006 fi
10007 ;;
10008
10009 *) ;; # Ignore the rest.
10010
10011 esac
10012 done
10013
10014 # Clean up.
10015 rm -f a.out a.exe
10016else
10017 echo "libtool.m4: error: problem compiling CXX test program"
10018fi
10019
10020$rm -f confest.$objext
10021
10022case " $postdeps_CXX " in
10023*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10024esac
10025
10026lt_prog_compiler_wl_CXX=
10027lt_prog_compiler_pic_CXX=
10028lt_prog_compiler_static_CXX=
10029
10030echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10031echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10032
10033 # C++ specific cases for pic, static, wl, etc.
10034 if test "$GXX" = yes; then
10035 lt_prog_compiler_wl_CXX='-Wl,'
10036 lt_prog_compiler_static_CXX='-static'
10037
10038 case $host_os in
10039 aix*)
10040 # All AIX code is PIC.
10041 if test "$host_cpu" = ia64; then
10042 # AIX 5 now supports IA64 processor
10043 lt_prog_compiler_static_CXX='-Bstatic'
10044 fi
10045 ;;
10046 amigaos*)
10047 # FIXME: we need at least 68020 code to build shared libraries, but
10048 # adding the `-m68020' flag to GCC prevents building anything better,
10049 # like `-m68040'.
10050 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10051 ;;
10052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10053 # PIC is the default for these OSes.
10054 ;;
10055 mingw* | os2* | pw32*)
10056 # This hack is so that the source file can tell whether it is being
10057 # built for inclusion in a dll (and should export symbols for example).
10058 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10059 ;;
10060 darwin* | rhapsody*)
10061 # PIC is the default on this platform
10062 # Common symbols not allowed in MH_DYLIB files
10063 lt_prog_compiler_pic_CXX='-fno-common'
10064 ;;
10065 *djgpp*)
10066 # DJGPP does not support shared libraries at all
10067 lt_prog_compiler_pic_CXX=
10068 ;;
10069 sysv4*MP*)
10070 if test -d /usr/nec; then
10071 lt_prog_compiler_pic_CXX=-Kconform_pic
10072 fi
10073 ;;
10074 hpux*)
10075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10076 # not for PA HP-UX.
10077 case "$host_cpu" in
10078 hppa*64*|ia64*)
10079 ;;
10080 *)
10081 lt_prog_compiler_pic_CXX='-fPIC'
10082 ;;
10083 esac
10084 ;;
10085 *)
10086 lt_prog_compiler_pic_CXX='-fPIC'
10087 ;;
10088 esac
10089 else
10090 case $host_os in
10091 aix4* | aix5*)
10092 # All AIX code is PIC.
10093 if test "$host_cpu" = ia64; then
10094 # AIX 5 now supports IA64 processor
10095 lt_prog_compiler_static_CXX='-Bstatic'
10096 else
10097 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10098 fi
10099 ;;
10100 chorus*)
10101 case $cc_basename in
10102 cxch68)
10103 # Green Hills C++ Compiler
10104 # _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"
10105 ;;
10106 esac
10107 ;;
10108 dgux*)
10109 case $cc_basename in
10110 ec++)
10111 lt_prog_compiler_pic_CXX='-KPIC'
10112 ;;
10113 ghcx)
10114 # Green Hills C++ Compiler
10115 lt_prog_compiler_pic_CXX='-pic'
10116 ;;
10117 *)
10118 ;;
10119 esac
10120 ;;
10121 freebsd* | kfreebsd*-gnu)
10122 # FreeBSD uses GNU C++
10123 ;;
10124 hpux9* | hpux10* | hpux11*)
10125 case $cc_basename in
10126 CC)
10127 lt_prog_compiler_wl_CXX='-Wl,'
10128 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10129 if test "$host_cpu" != ia64; then
10130 lt_prog_compiler_pic_CXX='+Z'
10131 fi
10132 ;;
10133 aCC)
10134 lt_prog_compiler_wl_CXX='-Wl,'
10135 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10136 case "$host_cpu" in
10137 hppa*64*|ia64*)
10138 # +Z the default
10139 ;;
10140 *)
10141 lt_prog_compiler_pic_CXX='+Z'
10142 ;;
10143 esac
10144 ;;
10145 *)
10146 ;;
10147 esac
10148 ;;
10149 irix5* | irix6* | nonstopux*)
10150 case $cc_basename in
10151 CC)
10152 lt_prog_compiler_wl_CXX='-Wl,'
10153 lt_prog_compiler_static_CXX='-non_shared'
10154 # CC pic flag -KPIC is the default.
10155 ;;
10156 *)
10157 ;;
10158 esac
10159 ;;
10160 linux*)
10161 case $cc_basename in
10162 KCC)
10163 # KAI C++ Compiler
10164 lt_prog_compiler_wl_CXX='--backend -Wl,'
10165 lt_prog_compiler_pic_CXX='-fPIC'
10166 ;;
10167 icpc)
10168 # Intel C++
10169 lt_prog_compiler_wl_CXX='-Wl,'
10170 lt_prog_compiler_pic_CXX='-KPIC'
10171 lt_prog_compiler_static_CXX='-static'
10172 ;;
10173 cxx)
10174 # Compaq C++
10175 # Make sure the PIC flag is empty. It appears that all Alpha
10176 # Linux and Compaq Tru64 Unix objects are PIC.
10177 lt_prog_compiler_pic_CXX=
10178 lt_prog_compiler_static_CXX='-non_shared'
10179 ;;
10180 *)
10181 ;;
10182 esac
10183 ;;
10184 lynxos*)
10185 ;;
10186 m88k*)
10187 ;;
10188 mvs*)
10189 case $cc_basename in
10190 cxx)
10191 lt_prog_compiler_pic_CXX='-W c,exportall'
10192 ;;
10193 *)
10194 ;;
10195 esac
10196 ;;
10197 netbsd* | knetbsd*-gnu)
10198 ;;
10199 osf3* | osf4* | osf5*)
10200 case $cc_basename in
10201 KCC)
10202 lt_prog_compiler_wl_CXX='--backend -Wl,'
10203 ;;
10204 RCC)
10205 # Rational C++ 2.4.1
10206 lt_prog_compiler_pic_CXX='-pic'
10207 ;;
10208 cxx)
10209 # Digital/Compaq C++
10210 lt_prog_compiler_wl_CXX='-Wl,'
10211 # Make sure the PIC flag is empty. It appears that all Alpha
10212 # Linux and Compaq Tru64 Unix objects are PIC.
10213 lt_prog_compiler_pic_CXX=
10214 lt_prog_compiler_static_CXX='-non_shared'
10215 ;;
10216 *)
10217 ;;
10218 esac
10219 ;;
10220 psos*)
10221 ;;
10222 sco*)
10223 case $cc_basename in
10224 CC)
10225 lt_prog_compiler_pic_CXX='-fPIC'
10226 ;;
10227 *)
10228 ;;
10229 esac
10230 ;;
10231 solaris*)
10232 case $cc_basename in
10233 CC)
10234 # Sun C++ 4.2, 5.x and Centerline C++
10235 lt_prog_compiler_pic_CXX='-KPIC'
10236 lt_prog_compiler_static_CXX='-Bstatic'
10237 lt_prog_compiler_wl_CXX='-Qoption ld '
10238 ;;
10239 gcx)
10240 # Green Hills C++ Compiler
10241 lt_prog_compiler_pic_CXX='-PIC'
10242 ;;
10243 *)
10244 ;;
10245 esac
10246 ;;
10247 sunos4*)
10248 case $cc_basename in
10249 CC)
10250 # Sun C++ 4.x
10251 lt_prog_compiler_pic_CXX='-pic'
10252 lt_prog_compiler_static_CXX='-Bstatic'
10253 ;;
10254 lcc)
10255 # Lucid
10256 lt_prog_compiler_pic_CXX='-pic'
10257 ;;
10258 *)
10259 ;;
10260 esac
10261 ;;
10262 tandem*)
10263 case $cc_basename in
10264 NCC)
10265 # NonStop-UX NCC 3.20
10266 lt_prog_compiler_pic_CXX='-KPIC'
10267 ;;
10268 *)
10269 ;;
10270 esac
10271 ;;
10272 unixware*)
10273 ;;
10274 vxworks*)
10275 ;;
10276 *)
10277 lt_prog_compiler_can_build_shared_CXX=no
10278 ;;
10279 esac
10280 fi
10281
10282echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10283echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10284
10285#
10286# Check to make sure the PIC flag actually works.
10287#
10288if test -n "$lt_prog_compiler_pic_CXX"; then
10289
10290echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10291echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10292if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 lt_prog_compiler_pic_works_CXX=no
10296 ac_outfile=conftest.$ac_objext
10297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10298 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10299 # Insert the option either (1) after the last *FLAGS variable, or
10300 # (2) before a word containing "conftest.", or (3) at the end.
10301 # Note that $ac_compile itself does not contain backslashes and begins
10302 # with a dollar sign (not a hyphen), so the echo should work correctly.
10303 # The option is referenced via a variable to avoid confusing sed.
10304 lt_compile=`echo "$ac_compile" | $SED \
10305 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10307 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000010308 (eval echo "\"\$as_me:10308: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010309 (eval "$lt_compile" 2>conftest.err)
10310 ac_status=$?
10311 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000010312 echo "$as_me:10312: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010313 if (exit $ac_status) && test -s "$ac_outfile"; then
10314 # The compiler can only warn and ignore the option if not recognized
10315 # So say no if there are warnings
10316 if test ! -s conftest.err; then
10317 lt_prog_compiler_pic_works_CXX=yes
10318 fi
10319 fi
10320 $rm conftest*
10321
10322fi
10323echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10324echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10325
10326if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10327 case $lt_prog_compiler_pic_CXX in
10328 "" | " "*) ;;
10329 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10330 esac
10331else
10332 lt_prog_compiler_pic_CXX=
10333 lt_prog_compiler_can_build_shared_CXX=no
10334fi
10335
10336fi
10337case "$host_os" in
10338 # For platforms which do not support PIC, -DPIC is meaningless:
10339 *djgpp*)
10340 lt_prog_compiler_pic_CXX=
10341 ;;
10342 *)
10343 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10344 ;;
10345esac
10346
10347echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10348echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10349if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 lt_cv_prog_compiler_c_o_CXX=no
10353 $rm -r conftest 2>/dev/null
10354 mkdir conftest
10355 cd conftest
10356 mkdir out
10357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10358
10359 lt_compiler_flag="-o out/conftest2.$ac_objext"
10360 # Insert the option either (1) after the last *FLAGS variable, or
10361 # (2) before a word containing "conftest.", or (3) at the end.
10362 # Note that $ac_compile itself does not contain backslashes and begins
10363 # with a dollar sign (not a hyphen), so the echo should work correctly.
10364 lt_compile=`echo "$ac_compile" | $SED \
10365 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10367 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000010368 (eval echo "\"\$as_me:10368: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010369 (eval "$lt_compile" 2>out/conftest.err)
10370 ac_status=$?
10371 cat out/conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000010372 echo "$as_me:10372: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10374 then
10375 # The compiler can only warn and ignore the option if not recognized
10376 # So say no if there are warnings
10377 if test ! -s out/conftest.err; then
10378 lt_cv_prog_compiler_c_o_CXX=yes
10379 fi
10380 fi
10381 chmod u+w .
10382 $rm conftest*
10383 # SGI C++ compiler will create directory out/ii_files/ for
10384 # template instantiation
10385 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10386 $rm out/* && rmdir out
10387 cd ..
10388 rmdir conftest
10389 $rm conftest*
10390
10391fi
10392echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10393echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10394
10395
10396hard_links="nottested"
10397if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10398 # do not overwrite the value of need_locks provided by the user
10399 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10400echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10401 hard_links=yes
10402 $rm conftest*
10403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10404 touch conftest.a
10405 ln conftest.a conftest.b 2>&5 || hard_links=no
10406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10407 echo "$as_me:$LINENO: result: $hard_links" >&5
10408echo "${ECHO_T}$hard_links" >&6
10409 if test "$hard_links" = no; then
10410 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10411echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10412 need_locks=warn
10413 fi
10414else
10415 need_locks=no
10416fi
10417
10418echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10419echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10420
10421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10422 case $host_os in
10423 aix4* | aix5*)
10424 # If we're using GNU nm, then we don't want the "-C" option.
10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10426 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10427 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'
10428 else
10429 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'
10430 fi
10431 ;;
10432 pw32*)
10433 export_symbols_cmds_CXX="$ltdll_cmds"
10434 ;;
10435 cygwin* | mingw*)
10436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10437 ;;
10438 *)
10439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10440 ;;
10441 esac
10442
10443echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10444echo "${ECHO_T}$ld_shlibs_CXX" >&6
10445test "$ld_shlibs_CXX" = no && can_build_shared=no
10446
10447variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10448if test "$GCC" = yes; then
10449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10450fi
10451
10452#
10453# Do we need to explicitly link libc?
10454#
10455case "x$archive_cmds_need_lc_CXX" in
10456x|xyes)
10457 # Assume -lc should be added
10458 archive_cmds_need_lc_CXX=yes
10459
10460 if test "$enable_shared" = yes && test "$GCC" = yes; then
10461 case $archive_cmds_CXX in
10462 *'~'*)
10463 # FIXME: we may have to deal with multi-command sequences.
10464 ;;
10465 '$CC '*)
10466 # Test whether the compiler implicitly links with -lc since on some
10467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10468 # to ld, don't add -lc before -lgcc.
10469 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10470echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10471 $rm conftest*
10472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10473
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } 2>conftest.err; then
10479 soname=conftest
10480 lib=conftest
10481 libobjs=conftest.$ac_objext
10482 deplibs=
10483 wl=$lt_prog_compiler_wl_CXX
10484 compiler_flags=-v
10485 linker_flags=-v
10486 verstring=
10487 output_objdir=.
10488 libname=conftest
10489 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10490 allow_undefined_flag_CXX=
10491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10492 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }
10496 then
10497 archive_cmds_need_lc_CXX=no
10498 else
10499 archive_cmds_need_lc_CXX=yes
10500 fi
10501 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10502 else
10503 cat conftest.err 1>&5
10504 fi
10505 $rm conftest*
10506 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10507echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10508 ;;
10509 esac
10510 fi
10511 ;;
10512esac
10513
10514echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10515echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10516library_names_spec=
10517libname_spec='lib$name'
10518soname_spec=
10519shrext=".so"
10520postinstall_cmds=
10521postuninstall_cmds=
10522finish_cmds=
10523finish_eval=
10524shlibpath_var=
10525shlibpath_overrides_runpath=unknown
10526version_type=none
10527dynamic_linker="$host_os ld.so"
10528sys_lib_dlsearch_path_spec="/lib /usr/lib"
10529if test "$GCC" = yes; then
10530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10532 # if the path contains ";" then we assume it to be the separator
10533 # otherwise default to the standard path separator (i.e. ":") - it is
10534 # assumed that no part of a normal pathname contains ";" but that should
10535 # okay in the real world where ";" in dirpaths is itself problematic.
10536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10537 else
10538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10539 fi
10540else
10541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10542fi
10543need_lib_prefix=unknown
10544hardcode_into_libs=no
10545
10546# when you set need_version to no, make sure it does not cause -set_version
10547# flags to be left without arguments
10548need_version=unknown
10549
10550case $host_os in
10551aix3*)
10552 version_type=linux
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10554 shlibpath_var=LIBPATH
10555
10556 # AIX 3 has no versioning support, so we append a major version to the name.
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 ;;
10559
10560aix4* | aix5*)
10561 version_type=linux
10562 need_lib_prefix=no
10563 need_version=no
10564 hardcode_into_libs=yes
10565 if test "$host_cpu" = ia64; then
10566 # AIX 5 supports IA64
10567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 else
10570 # With GCC up to 2.95.x, collect2 would create an import file
10571 # for dependence libraries. The import file would start with
10572 # the line `#! .'. This would cause the generated library to
10573 # depend on `.', always an invalid library. This was fixed in
10574 # development snapshots of GCC prior to 3.0.
10575 case $host_os in
10576 aix4 | aix4.[01] | aix4.[01].*)
10577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10578 echo ' yes '
10579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10580 :
10581 else
10582 can_build_shared=no
10583 fi
10584 ;;
10585 esac
10586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10587 # soname into executable. Probably we can add versioning support to
10588 # collect2, so additional links can be useful in future.
10589 if test "$aix_use_runtimelinking" = yes; then
10590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10591 # instead of lib<name>.a to let people know that these are not
10592 # typical AIX shared libraries.
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 else
10595 # We preserve .a as extension for shared libraries through AIX4.2
10596 # and later when we are not doing run time linking.
10597 library_names_spec='${libname}${release}.a $libname.a'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 fi
10600 shlibpath_var=LIBPATH
10601 fi
10602 ;;
10603
10604amigaos*)
10605 library_names_spec='$libname.ixlibrary $libname.a'
10606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10607 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'
10608 ;;
10609
10610beos*)
10611 library_names_spec='${libname}${shared_ext}'
10612 dynamic_linker="$host_os ld.so"
10613 shlibpath_var=LIBRARY_PATH
10614 ;;
10615
10616bsdi4*)
10617 version_type=linux
10618 need_version=no
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10625 # the default ld.so.conf also contains /usr/contrib/lib and
10626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10627 # libtool to hard-code these into programs
10628 ;;
10629
10630cygwin* | mingw* | pw32*)
10631 version_type=windows
10632 shrext=".dll"
10633 need_version=no
10634 need_lib_prefix=no
10635
10636 case $GCC,$host_os in
10637 yes,cygwin* | yes,mingw* | yes,pw32*)
10638 library_names_spec='$libname.dll.a'
10639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10640 postinstall_cmds='base_file=`basename \${file}`~
10641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10642 dldir=$destdir/`dirname \$dlpath`~
10643 test -d \$dldir || mkdir -p \$dldir~
10644 $install_prog $dir/$dlname \$dldir/$dlname'
10645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10646 dlpath=$dir/\$dldll~
10647 $rm \$dlpath'
10648 shlibpath_overrides_runpath=yes
10649
10650 case $host_os in
10651 cygwin*)
10652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10655 ;;
10656 mingw*)
10657 # MinGW DLLs use traditional 'lib' prefix
10658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10661 # It is most probably a Windows format PATH printed by
10662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10663 # path with ; separators, and with drive letters. We can handle the
10664 # drive letters (cygwin fileutils understands them), so leave them,
10665 # especially as we might pass files found there to a mingw objdump,
10666 # which wouldn't understand a cygwinified path. Ahh.
10667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10668 else
10669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10670 fi
10671 ;;
10672 pw32*)
10673 # pw32 DLLs use 'pw' prefix rather than 'lib'
10674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10675 ;;
10676 esac
10677 ;;
10678
10679 *)
10680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10681 ;;
10682 esac
10683 dynamic_linker='Win32 ld.exe'
10684 # FIXME: first we should search . and the directory the executable is in
10685 shlibpath_var=PATH
10686 ;;
10687
10688darwin* | rhapsody*)
10689 dynamic_linker="$host_os dyld"
10690 version_type=darwin
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10694 soname_spec='${libname}${release}${major}$shared_ext'
10695 shlibpath_overrides_runpath=yes
10696 shlibpath_var=DYLD_LIBRARY_PATH
10697 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10699 if test "$GCC" = yes; then
10700 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"`
10701 else
10702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10703 fi
10704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10705 ;;
10706
10707dgux*)
10708 version_type=linux
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 ;;
10715
10716freebsd1*)
10717 dynamic_linker=no
10718 ;;
10719
10720kfreebsd*-gnu)
10721 version_type=linux
10722 need_lib_prefix=no
10723 need_version=no
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=no
10728 hardcode_into_libs=yes
10729 dynamic_linker='GNU ld.so'
10730 ;;
10731
10732freebsd*)
10733 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10734 version_type=freebsd-$objformat
10735 case $version_type in
10736 freebsd-elf*)
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10738 need_version=no
10739 need_lib_prefix=no
10740 ;;
10741 freebsd-*)
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10743 need_version=yes
10744 ;;
10745 esac
10746 shlibpath_var=LD_LIBRARY_PATH
10747 case $host_os in
10748 freebsd2*)
10749 shlibpath_overrides_runpath=yes
10750 ;;
10751 freebsd3.01* | freebsdelf3.01*)
10752 shlibpath_overrides_runpath=yes
10753 hardcode_into_libs=yes
10754 ;;
10755 *) # from 3.2 on
10756 shlibpath_overrides_runpath=no
10757 hardcode_into_libs=yes
10758 ;;
10759 esac
10760 ;;
10761
10762gnu*)
10763 version_type=linux
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 hardcode_into_libs=yes
10770 ;;
10771
10772hpux9* | hpux10* | hpux11*)
10773 # Give a soname corresponding to the major version so that dld.sl refuses to
10774 # link against other versions.
10775 version_type=sunos
10776 need_lib_prefix=no
10777 need_version=no
10778 case "$host_cpu" in
10779 ia64*)
10780 shrext='.so'
10781 hardcode_into_libs=yes
10782 dynamic_linker="$host_os dld.so"
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 if test "X$HPUX_IA64_MODE" = X32; then
10788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10789 else
10790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10791 fi
10792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10793 ;;
10794 hppa*64*)
10795 shrext='.sl'
10796 hardcode_into_libs=yes
10797 dynamic_linker="$host_os dld.sl"
10798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10804 ;;
10805 *)
10806 shrext='.sl'
10807 dynamic_linker="$host_os dld.sl"
10808 shlibpath_var=SHLIB_PATH
10809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 ;;
10813 esac
10814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10815 postinstall_cmds='chmod 555 $lib'
10816 ;;
10817
10818irix5* | irix6* | nonstopux*)
10819 case $host_os in
10820 nonstopux*) version_type=nonstopux ;;
10821 *)
10822 if test "$lt_cv_prog_gnu_ld" = yes; then
10823 version_type=linux
10824 else
10825 version_type=irix
10826 fi ;;
10827 esac
10828 need_lib_prefix=no
10829 need_version=no
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10832 case $host_os in
10833 irix5* | nonstopux*)
10834 libsuff= shlibsuff=
10835 ;;
10836 *)
10837 case $LD in # libtool.m4 will add one of these switches to LD
10838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10839 libsuff= shlibsuff= libmagic=32-bit;;
10840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10841 libsuff=32 shlibsuff=N32 libmagic=N32;;
10842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10844 *) libsuff= shlibsuff= libmagic=never-match;;
10845 esac
10846 ;;
10847 esac
10848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10849 shlibpath_overrides_runpath=no
10850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10852 hardcode_into_libs=yes
10853 ;;
10854
10855# No shared lib support for Linux oldld, aout, or coff.
10856linux*oldld* | linux*aout* | linux*coff*)
10857 dynamic_linker=no
10858 ;;
10859
10860# This must be Linux ELF.
10861linux*)
10862 version_type=linux
10863 need_lib_prefix=no
10864 need_version=no
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=no
10870 # This implies no fast_install, which is unacceptable.
10871 # Some rework will be needed to allow for fast_install
10872 # before this can be enabled.
10873 hardcode_into_libs=yes
10874
10875 # Append ld.so.conf contents to the search path
10876 if test -f /etc/ld.so.conf; then
10877 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10878 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10879 fi
10880
10881 # We used to test for /lib/ld.so.1 and disable shared libraries on
10882 # powerpc, because MkLinux only supported shared libraries with the
10883 # GNU dynamic linker. Since this was broken with cross compilers,
10884 # most powerpc-linux boxes support dynamic linking these days and
10885 # people can always --disable-shared, the test was removed, and we
10886 # assume the GNU/Linux dynamic linker is in use.
10887 dynamic_linker='GNU/Linux ld.so'
10888 ;;
10889
10890knetbsd*-gnu)
10891 version_type=linux
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10899 dynamic_linker='GNU ld.so'
10900 ;;
10901
10902netbsd*)
10903 version_type=sunos
10904 need_lib_prefix=no
10905 need_version=no
10906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10909 dynamic_linker='NetBSD (a.out) ld.so'
10910 else
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 dynamic_linker='NetBSD ld.elf_so'
10914 fi
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10917 hardcode_into_libs=yes
10918 ;;
10919
10920newsos6)
10921 version_type=linux
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925 ;;
10926
10927nto-qnx*)
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10935 ;;
10936
10937openbsd*)
10938 version_type=sunos
10939 need_lib_prefix=no
10940 need_version=yes
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10945 case $host_os in
10946 openbsd2.[89] | openbsd2.[89].*)
10947 shlibpath_overrides_runpath=no
10948 ;;
10949 *)
10950 shlibpath_overrides_runpath=yes
10951 ;;
10952 esac
10953 else
10954 shlibpath_overrides_runpath=yes
10955 fi
10956 ;;
10957
10958os2*)
10959 libname_spec='$name'
10960 shrext=".dll"
10961 need_lib_prefix=no
10962 library_names_spec='$libname${shared_ext} $libname.a'
10963 dynamic_linker='OS/2 ld.exe'
10964 shlibpath_var=LIBPATH
10965 ;;
10966
10967osf3* | osf4* | osf5*)
10968 version_type=osf
10969 need_lib_prefix=no
10970 need_version=no
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10976 ;;
10977
10978sco3.2v5*)
10979 version_type=osf
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 ;;
10984
10985solaris*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 hardcode_into_libs=yes
10994 # ldd complains unless libraries are executable
10995 postinstall_cmds='chmod +x $lib'
10996 ;;
10997
10998sunos4*)
10999 version_type=sunos
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=yes
11004 if test "$with_gnu_ld" = yes; then
11005 need_lib_prefix=no
11006 fi
11007 need_version=yes
11008 ;;
11009
11010sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11011 version_type=linux
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 case $host_vendor in
11016 sni)
11017 shlibpath_overrides_runpath=no
11018 need_lib_prefix=no
11019 export_dynamic_flag_spec='${wl}-Blargedynsym'
11020 runpath_var=LD_RUN_PATH
11021 ;;
11022 siemens)
11023 need_lib_prefix=no
11024 ;;
11025 motorola)
11026 need_lib_prefix=no
11027 need_version=no
11028 shlibpath_overrides_runpath=no
11029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11030 ;;
11031 esac
11032 ;;
11033
11034sysv4*MP*)
11035 if test -d /usr/nec ;then
11036 version_type=linux
11037 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11038 soname_spec='$libname${shared_ext}.$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 fi
11041 ;;
11042
11043uts4*)
11044 version_type=linux
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 ;;
11049
11050*)
11051 dynamic_linker=no
11052 ;;
11053esac
11054echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11055echo "${ECHO_T}$dynamic_linker" >&6
11056test "$dynamic_linker" = no && can_build_shared=no
11057
11058echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11059echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11060hardcode_action_CXX=
11061if test -n "$hardcode_libdir_flag_spec_CXX" || \
11062 test -n "$runpath_var CXX" || \
11063 test "X$hardcode_automatic_CXX"="Xyes" ; then
11064
11065 # We can hardcode non-existant directories.
11066 if test "$hardcode_direct_CXX" != no &&
11067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11068 # have to relink, otherwise we might link with an installed library
11069 # when we should be linking with a yet-to-be-installed one
11070 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11071 test "$hardcode_minus_L_CXX" != no; then
11072 # Linking always hardcodes the temporary library directory.
11073 hardcode_action_CXX=relink
11074 else
11075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11076 hardcode_action_CXX=immediate
11077 fi
11078else
11079 # We cannot hardcode anything, or else we can only hardcode existing
11080 # directories.
11081 hardcode_action_CXX=unsupported
11082fi
11083echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11084echo "${ECHO_T}$hardcode_action_CXX" >&6
11085
11086if test "$hardcode_action_CXX" = relink; then
11087 # Fast installation is not supported
11088 enable_fast_install=no
11089elif test "$shlibpath_overrides_runpath" = yes ||
11090 test "$enable_shared" = no; then
11091 # Fast installation is not necessary
11092 enable_fast_install=needless
11093fi
11094
11095striplib=
11096old_striplib=
11097echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11098echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11099if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11100 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11101 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11102 echo "$as_me:$LINENO: result: yes" >&5
11103echo "${ECHO_T}yes" >&6
11104else
11105# FIXME - insert some real tests, host_os isn't really good enough
11106 case $host_os in
11107 darwin*)
11108 if test -n "$STRIP" ; then
11109 striplib="$STRIP -x"
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115fi
11116 ;;
11117 *)
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120 ;;
11121 esac
11122fi
11123
11124if test "x$enable_dlopen" != xyes; then
11125 enable_dlopen=unknown
11126 enable_dlopen_self=unknown
11127 enable_dlopen_self_static=unknown
11128else
11129 lt_cv_dlopen=no
11130 lt_cv_dlopen_libs=
11131
11132 case $host_os in
11133 beos*)
11134 lt_cv_dlopen="load_add_on"
11135 lt_cv_dlopen_libs=
11136 lt_cv_dlopen_self=yes
11137 ;;
11138
11139 mingw* | pw32*)
11140 lt_cv_dlopen="LoadLibrary"
11141 lt_cv_dlopen_libs=
11142 ;;
11143
11144 cygwin*)
11145 lt_cv_dlopen="dlopen"
11146 lt_cv_dlopen_libs=
11147 ;;
11148
11149 darwin*)
11150 # if libdl is installed we need to link against it
11151 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11152echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11153if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155else
11156 ac_check_lib_save_LIBS=$LIBS
11157LIBS="-ldl $LIBS"
11158cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
11164
11165/* Override any gcc2 internal prototype to avoid an error. */
11166#ifdef __cplusplus
11167extern "C"
11168#endif
11169/* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11171char dlopen ();
11172int
11173main ()
11174{
11175dlopen ();
11176 ;
11177 return 0;
11178}
11179_ACEOF
11180rm -f conftest.$ac_objext conftest$ac_exeext
11181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011189 { ac_try='test -z "$ac_cxx_werror_flag"
11190 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 ac_cv_lib_dl_dlopen=yes
11203else
11204 echo "$as_me: failed program was:" >&5
11205sed 's/^/| /' conftest.$ac_ext >&5
11206
11207ac_cv_lib_dl_dlopen=no
11208fi
11209rm -f conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11214echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11215if test $ac_cv_lib_dl_dlopen = yes; then
11216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11217else
11218
11219 lt_cv_dlopen="dyld"
11220 lt_cv_dlopen_libs=
11221 lt_cv_dlopen_self=yes
11222
11223fi
11224
11225 ;;
11226
11227 *)
11228 echo "$as_me:$LINENO: checking for shl_load" >&5
11229echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11230if test "${ac_cv_func_shl_load+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233 cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
11239/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11241#define shl_load innocuous_shl_load
11242
11243/* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char shl_load (); below.
11245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11246 <limits.h> exists even on freestanding compilers. */
11247
11248#ifdef __STDC__
11249# include <limits.h>
11250#else
11251# include <assert.h>
11252#endif
11253
11254#undef shl_load
11255
11256/* Override any gcc2 internal prototype to avoid an error. */
11257#ifdef __cplusplus
11258extern "C"
11259{
11260#endif
11261/* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263char shl_load ();
11264/* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
11267#if defined (__stub_shl_load) || defined (__stub___shl_load)
11268choke me
11269#else
11270char (*f) () = shl_load;
11271#endif
11272#ifdef __cplusplus
11273}
11274#endif
11275
11276int
11277main ()
11278{
11279return f != shl_load;
11280 ;
11281 return 0;
11282}
11283_ACEOF
11284rm -f conftest.$ac_objext conftest$ac_exeext
11285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011293 { ac_try='test -z "$ac_cxx_werror_flag"
11294 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest$ac_exeext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_func_shl_load=yes
11307else
11308 echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311ac_cv_func_shl_load=no
11312fi
11313rm -f conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315fi
11316echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11317echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11318if test $ac_cv_func_shl_load = yes; then
11319 lt_cv_dlopen="shl_load"
11320else
11321 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11322echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11323if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 ac_check_lib_save_LIBS=$LIBS
11327LIBS="-ldld $LIBS"
11328cat >conftest.$ac_ext <<_ACEOF
11329/* confdefs.h. */
11330_ACEOF
11331cat confdefs.h >>conftest.$ac_ext
11332cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */
11334
11335/* Override any gcc2 internal prototype to avoid an error. */
11336#ifdef __cplusplus
11337extern "C"
11338#endif
11339/* We use char because int might match the return type of a gcc2
11340 builtin and then its argument prototype would still apply. */
11341char shl_load ();
11342int
11343main ()
11344{
11345shl_load ();
11346 ;
11347 return 0;
11348}
11349_ACEOF
11350rm -f conftest.$ac_objext conftest$ac_exeext
11351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011359 { ac_try='test -z "$ac_cxx_werror_flag"
11360 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_cv_lib_dld_shl_load=yes
11373else
11374 echo "$as_me: failed program was:" >&5
11375sed 's/^/| /' conftest.$ac_ext >&5
11376
11377ac_cv_lib_dld_shl_load=no
11378fi
11379rm -f conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381LIBS=$ac_check_lib_save_LIBS
11382fi
11383echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11384echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11385if test $ac_cv_lib_dld_shl_load = yes; then
11386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11387else
11388 echo "$as_me:$LINENO: checking for dlopen" >&5
11389echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11390if test "${ac_cv_func_dlopen+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 cat >conftest.$ac_ext <<_ACEOF
11394/* confdefs.h. */
11395_ACEOF
11396cat confdefs.h >>conftest.$ac_ext
11397cat >>conftest.$ac_ext <<_ACEOF
11398/* end confdefs.h. */
11399/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11401#define dlopen innocuous_dlopen
11402
11403/* System header to define __stub macros and hopefully few prototypes,
11404 which can conflict with char dlopen (); below.
11405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11406 <limits.h> exists even on freestanding compilers. */
11407
11408#ifdef __STDC__
11409# include <limits.h>
11410#else
11411# include <assert.h>
11412#endif
11413
11414#undef dlopen
11415
11416/* Override any gcc2 internal prototype to avoid an error. */
11417#ifdef __cplusplus
11418extern "C"
11419{
11420#endif
11421/* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423char dlopen ();
11424/* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427#if defined (__stub_dlopen) || defined (__stub___dlopen)
11428choke me
11429#else
11430char (*f) () = dlopen;
11431#endif
11432#ifdef __cplusplus
11433}
11434#endif
11435
11436int
11437main ()
11438{
11439return f != dlopen;
11440 ;
11441 return 0;
11442}
11443_ACEOF
11444rm -f conftest.$ac_objext conftest$ac_exeext
11445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11446 (eval $ac_link) 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011453 { ac_try='test -z "$ac_cxx_werror_flag"
11454 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_func_dlopen=yes
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471ac_cv_func_dlopen=no
11472fi
11473rm -f conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475fi
11476echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11477echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11478if test $ac_cv_func_dlopen = yes; then
11479 lt_cv_dlopen="dlopen"
11480else
11481 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11482echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11483if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485else
11486 ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldl $LIBS"
11488cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494
11495/* Override any gcc2 internal prototype to avoid an error. */
11496#ifdef __cplusplus
11497extern "C"
11498#endif
11499/* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11501char dlopen ();
11502int
11503main ()
11504{
11505dlopen ();
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext conftest$ac_exeext
11511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512 (eval $ac_link) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011519 { ac_try='test -z "$ac_cxx_werror_flag"
11520 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_cv_lib_dl_dlopen=yes
11533else
11534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
11536
11537ac_cv_lib_dl_dlopen=no
11538fi
11539rm -f conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541LIBS=$ac_check_lib_save_LIBS
11542fi
11543echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11544echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11545if test $ac_cv_lib_dl_dlopen = yes; then
11546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11547else
11548 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11549echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11550if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 ac_check_lib_save_LIBS=$LIBS
11554LIBS="-lsvld $LIBS"
11555cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561
11562/* Override any gcc2 internal prototype to avoid an error. */
11563#ifdef __cplusplus
11564extern "C"
11565#endif
11566/* We use char because int might match the return type of a gcc2
11567 builtin and then its argument prototype would still apply. */
11568char dlopen ();
11569int
11570main ()
11571{
11572dlopen ();
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577rm -f conftest.$ac_objext conftest$ac_exeext
11578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11579 (eval $ac_link) 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011586 { ac_try='test -z "$ac_cxx_werror_flag"
11587 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_lib_svld_dlopen=yes
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604ac_cv_lib_svld_dlopen=no
11605fi
11606rm -f conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11611echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11612if test $ac_cv_lib_svld_dlopen = yes; then
11613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11614else
11615 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11616echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11617if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldld $LIBS"
11622cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628
11629/* Override any gcc2 internal prototype to avoid an error. */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633/* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635char dld_link ();
11636int
11637main ()
11638{
11639dld_link ();
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext conftest$ac_exeext
11645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646 (eval $ac_link) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011653 { ac_try='test -z "$ac_cxx_werror_flag"
11654 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_lib_dld_dld_link=yes
11667else
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671ac_cv_lib_dld_dld_link=no
11672fi
11673rm -f conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675LIBS=$ac_check_lib_save_LIBS
11676fi
11677echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11678echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11679if test $ac_cv_lib_dld_dld_link = yes; then
11680 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692
11693fi
11694
11695
11696fi
11697
11698 ;;
11699 esac
11700
11701 if test "x$lt_cv_dlopen" != xno; then
11702 enable_dlopen=yes
11703 else
11704 enable_dlopen=no
11705 fi
11706
11707 case $lt_cv_dlopen in
11708 dlopen)
11709 save_CPPFLAGS="$CPPFLAGS"
11710 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711
11712 save_LDFLAGS="$LDFLAGS"
11713 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11714
11715 save_LIBS="$LIBS"
11716 LIBS="$lt_cv_dlopen_libs $LIBS"
11717
11718 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11719echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11720if test "${lt_cv_dlopen_self+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 if test "$cross_compiling" = yes; then :
11724 lt_cv_dlopen_self=cross
11725else
11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727 lt_status=$lt_dlunknown
11728 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +000011729#line 11729 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011730#include "confdefs.h"
11731
11732#if HAVE_DLFCN_H
11733#include <dlfcn.h>
11734#endif
11735
11736#include <stdio.h>
11737
11738#ifdef RTLD_GLOBAL
11739# define LT_DLGLOBAL RTLD_GLOBAL
11740#else
11741# ifdef DL_GLOBAL
11742# define LT_DLGLOBAL DL_GLOBAL
11743# else
11744# define LT_DLGLOBAL 0
11745# endif
11746#endif
11747
11748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749 find out it does not work in some platform. */
11750#ifndef LT_DLLAZY_OR_NOW
11751# ifdef RTLD_LAZY
11752# define LT_DLLAZY_OR_NOW RTLD_LAZY
11753# else
11754# ifdef DL_LAZY
11755# define LT_DLLAZY_OR_NOW DL_LAZY
11756# else
11757# ifdef RTLD_NOW
11758# define LT_DLLAZY_OR_NOW RTLD_NOW
11759# else
11760# ifdef DL_NOW
11761# define LT_DLLAZY_OR_NOW DL_NOW
11762# else
11763# define LT_DLLAZY_OR_NOW 0
11764# endif
11765# endif
11766# endif
11767# endif
11768#endif
11769
11770#ifdef __cplusplus
11771extern "C" void exit (int);
11772#endif
11773
11774void fnord() { int i=42;}
11775int main ()
11776{
11777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778 int status = $lt_dlunknown;
11779
11780 if (self)
11781 {
11782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11784 /* dlclose (self); */
11785 }
11786
11787 exit (status);
11788}
11789EOF
11790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791 (eval $ac_link) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11795 (./conftest; exit; ) 2>/dev/null
11796 lt_status=$?
11797 case x$lt_status in
11798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11800 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11801 esac
11802 else :
11803 # compilation failed
11804 lt_cv_dlopen_self=no
11805 fi
11806fi
11807rm -fr conftest*
11808
11809
11810fi
11811echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11812echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11813
11814 if test "x$lt_cv_dlopen_self" = xyes; then
11815 LDFLAGS="$LDFLAGS $link_static_flag"
11816 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11817echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11818if test "${lt_cv_dlopen_self_static+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 if test "$cross_compiling" = yes; then :
11822 lt_cv_dlopen_self_static=cross
11823else
11824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11825 lt_status=$lt_dlunknown
11826 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +000011827#line 11827 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011828#include "confdefs.h"
11829
11830#if HAVE_DLFCN_H
11831#include <dlfcn.h>
11832#endif
11833
11834#include <stdio.h>
11835
11836#ifdef RTLD_GLOBAL
11837# define LT_DLGLOBAL RTLD_GLOBAL
11838#else
11839# ifdef DL_GLOBAL
11840# define LT_DLGLOBAL DL_GLOBAL
11841# else
11842# define LT_DLGLOBAL 0
11843# endif
11844#endif
11845
11846/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11847 find out it does not work in some platform. */
11848#ifndef LT_DLLAZY_OR_NOW
11849# ifdef RTLD_LAZY
11850# define LT_DLLAZY_OR_NOW RTLD_LAZY
11851# else
11852# ifdef DL_LAZY
11853# define LT_DLLAZY_OR_NOW DL_LAZY
11854# else
11855# ifdef RTLD_NOW
11856# define LT_DLLAZY_OR_NOW RTLD_NOW
11857# else
11858# ifdef DL_NOW
11859# define LT_DLLAZY_OR_NOW DL_NOW
11860# else
11861# define LT_DLLAZY_OR_NOW 0
11862# endif
11863# endif
11864# endif
11865# endif
11866#endif
11867
11868#ifdef __cplusplus
11869extern "C" void exit (int);
11870#endif
11871
11872void fnord() { int i=42;}
11873int main ()
11874{
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11877
11878 if (self)
11879 {
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11881 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11882 /* dlclose (self); */
11883 }
11884
11885 exit (status);
11886}
11887EOF
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11893 (./conftest; exit; ) 2>/dev/null
11894 lt_status=$?
11895 case x$lt_status in
11896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11898 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11899 esac
11900 else :
11901 # compilation failed
11902 lt_cv_dlopen_self_static=no
11903 fi
11904fi
11905rm -fr conftest*
11906
11907
11908fi
11909echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11910echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11911 fi
11912
11913 CPPFLAGS="$save_CPPFLAGS"
11914 LDFLAGS="$save_LDFLAGS"
11915 LIBS="$save_LIBS"
11916 ;;
11917 esac
11918
11919 case $lt_cv_dlopen_self in
11920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11921 *) enable_dlopen_self=unknown ;;
11922 esac
11923
11924 case $lt_cv_dlopen_self_static in
11925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11926 *) enable_dlopen_self_static=unknown ;;
11927 esac
11928fi
11929
11930
11931# The else clause should only fire when bootstrapping the
11932# libtool distribution, otherwise you forgot to ship ltmain.sh
11933# with your package, and you will get complaints that there are
11934# no rules to generate ltmain.sh.
11935if test -f "$ltmain"; then
11936 # See if we are running on zsh, and set the options which allow our commands through
11937 # without removal of \ escapes.
11938 if test -n "${ZSH_VERSION+set}" ; then
11939 setopt NO_GLOB_SUBST
11940 fi
11941 # Now quote all the things that may contain metacharacters while being
11942 # careful not to overquote the AC_SUBSTed values. We take copies of the
11943 # variables and quote the copies for generation of the libtool script.
11944 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11945 SED SHELL STRIP \
11946 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11947 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11948 deplibs_check_method reload_flag reload_cmds need_locks \
11949 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11950 lt_cv_sys_global_symbol_to_c_name_address \
11951 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11952 old_postinstall_cmds old_postuninstall_cmds \
11953 compiler_CXX \
11954 CC_CXX \
11955 LD_CXX \
11956 lt_prog_compiler_wl_CXX \
11957 lt_prog_compiler_pic_CXX \
11958 lt_prog_compiler_static_CXX \
11959 lt_prog_compiler_no_builtin_flag_CXX \
11960 export_dynamic_flag_spec_CXX \
11961 thread_safe_flag_spec_CXX \
11962 whole_archive_flag_spec_CXX \
11963 enable_shared_with_static_runtimes_CXX \
11964 old_archive_cmds_CXX \
11965 old_archive_from_new_cmds_CXX \
11966 predep_objects_CXX \
11967 postdep_objects_CXX \
11968 predeps_CXX \
11969 postdeps_CXX \
11970 compiler_lib_search_path_CXX \
11971 archive_cmds_CXX \
11972 archive_expsym_cmds_CXX \
11973 postinstall_cmds_CXX \
11974 postuninstall_cmds_CXX \
11975 old_archive_from_expsyms_cmds_CXX \
11976 allow_undefined_flag_CXX \
11977 no_undefined_flag_CXX \
11978 export_symbols_cmds_CXX \
11979 hardcode_libdir_flag_spec_CXX \
11980 hardcode_libdir_flag_spec_ld_CXX \
11981 hardcode_libdir_separator_CXX \
11982 hardcode_automatic_CXX \
11983 module_cmds_CXX \
11984 module_expsym_cmds_CXX \
11985 lt_cv_prog_compiler_c_o_CXX \
11986 exclude_expsyms_CXX \
11987 include_expsyms_CXX; do
11988
11989 case $var in
11990 old_archive_cmds_CXX | \
11991 old_archive_from_new_cmds_CXX | \
11992 archive_cmds_CXX | \
11993 archive_expsym_cmds_CXX | \
11994 module_cmds_CXX | \
11995 module_expsym_cmds_CXX | \
11996 old_archive_from_expsyms_cmds_CXX | \
11997 export_symbols_cmds_CXX | \
11998 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11999 postinstall_cmds | postuninstall_cmds | \
12000 old_postinstall_cmds | old_postuninstall_cmds | \
12001 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12002 # Double-quote double-evaled strings.
12003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12004 ;;
12005 *)
12006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12007 ;;
12008 esac
12009 done
12010
12011 case $lt_echo in
12012 *'\$0 --fallback-echo"')
12013 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12014 ;;
12015 esac
12016
12017cfgfile="$ofile"
12018
12019 cat <<__EOF__ >> "$cfgfile"
12020# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12021
12022# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12023
12024# Shell to use when invoking shell scripts.
12025SHELL=$lt_SHELL
12026
12027# Whether or not to build shared libraries.
12028build_libtool_libs=$enable_shared
12029
12030# Whether or not to build static libraries.
12031build_old_libs=$enable_static
12032
12033# Whether or not to add -lc for building shared libraries.
12034build_libtool_need_lc=$archive_cmds_need_lc_CXX
12035
12036# Whether or not to disallow shared libs when runtime libs are static
12037allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12038
12039# Whether or not to optimize for fast installation.
12040fast_install=$enable_fast_install
12041
12042# The host system.
12043host_alias=$host_alias
12044host=$host
12045
12046# An echo program that does not interpret backslashes.
12047echo=$lt_echo
12048
12049# The archiver.
12050AR=$lt_AR
12051AR_FLAGS=$lt_AR_FLAGS
12052
12053# A C compiler.
12054LTCC=$lt_LTCC
12055
12056# A language-specific compiler.
12057CC=$lt_compiler_CXX
12058
12059# Is the compiler the GNU C compiler?
12060with_gcc=$GCC_CXX
12061
12062# An ERE matcher.
12063EGREP=$lt_EGREP
12064
12065# The linker used to build libraries.
12066LD=$lt_LD_CXX
12067
12068# Whether we need hard or soft links.
12069LN_S=$lt_LN_S
12070
12071# A BSD-compatible nm program.
12072NM=$lt_NM
12073
12074# A symbol stripping program
12075STRIP=$lt_STRIP
12076
12077# Used to examine libraries when file_magic_cmd begins "file"
12078MAGIC_CMD=$MAGIC_CMD
12079
12080# Used on cygwin: DLL creation program.
12081DLLTOOL="$DLLTOOL"
12082
12083# Used on cygwin: object dumper.
12084OBJDUMP="$OBJDUMP"
12085
12086# Used on cygwin: assembler.
12087AS="$AS"
12088
12089# The name of the directory that contains temporary libtool files.
12090objdir=$objdir
12091
12092# How to create reloadable object files.
12093reload_flag=$lt_reload_flag
12094reload_cmds=$lt_reload_cmds
12095
12096# How to pass a linker flag through the compiler.
12097wl=$lt_lt_prog_compiler_wl_CXX
12098
12099# Object file suffix (normally "o").
12100objext="$ac_objext"
12101
12102# Old archive suffix (normally "a").
12103libext="$libext"
12104
12105# Shared library suffix (normally ".so").
12106shrext='$shrext'
12107
12108# Executable file suffix (normally "").
12109exeext="$exeext"
12110
12111# Additional compiler flags for building library objects.
12112pic_flag=$lt_lt_prog_compiler_pic_CXX
12113pic_mode=$pic_mode
12114
12115# What is the maximum length of a command?
12116max_cmd_len=$lt_cv_sys_max_cmd_len
12117
12118# Does compiler simultaneously support -c and -o options?
12119compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12120
12121# Must we lock files when doing compilation ?
12122need_locks=$lt_need_locks
12123
12124# Do we need the lib prefix for modules?
12125need_lib_prefix=$need_lib_prefix
12126
12127# Do we need a version for libraries?
12128need_version=$need_version
12129
12130# Whether dlopen is supported.
12131dlopen_support=$enable_dlopen
12132
12133# Whether dlopen of programs is supported.
12134dlopen_self=$enable_dlopen_self
12135
12136# Whether dlopen of statically linked programs is supported.
12137dlopen_self_static=$enable_dlopen_self_static
12138
12139# Compiler flag to prevent dynamic linking.
12140link_static_flag=$lt_lt_prog_compiler_static_CXX
12141
12142# Compiler flag to turn off builtin functions.
12143no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12144
12145# Compiler flag to allow reflexive dlopens.
12146export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12147
12148# Compiler flag to generate shared objects directly from archives.
12149whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12150
12151# Compiler flag to generate thread-safe objects.
12152thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12153
12154# Library versioning type.
12155version_type=$version_type
12156
12157# Format of library name prefix.
12158libname_spec=$lt_libname_spec
12159
12160# List of archive names. First name is the real one, the rest are links.
12161# The last name is the one that the linker finds with -lNAME.
12162library_names_spec=$lt_library_names_spec
12163
12164# The coded name of the library, if different from the real name.
12165soname_spec=$lt_soname_spec
12166
12167# Commands used to build and install an old-style archive.
12168RANLIB=$lt_RANLIB
12169old_archive_cmds=$lt_old_archive_cmds_CXX
12170old_postinstall_cmds=$lt_old_postinstall_cmds
12171old_postuninstall_cmds=$lt_old_postuninstall_cmds
12172
12173# Create an old-style archive from a shared archive.
12174old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12175
12176# Create a temporary old-style archive to link instead of a shared archive.
12177old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12178
12179# Commands used to build and install a shared archive.
12180archive_cmds=$lt_archive_cmds_CXX
12181archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12182postinstall_cmds=$lt_postinstall_cmds
12183postuninstall_cmds=$lt_postuninstall_cmds
12184
12185# Commands used to build a loadable module (assumed same as above if empty)
12186module_cmds=$lt_module_cmds_CXX
12187module_expsym_cmds=$lt_module_expsym_cmds_CXX
12188
12189# Commands to strip libraries.
12190old_striplib=$lt_old_striplib
12191striplib=$lt_striplib
12192
12193# Dependencies to place before the objects being linked to create a
12194# shared library.
12195predep_objects=$lt_predep_objects_CXX
12196
12197# Dependencies to place after the objects being linked to create a
12198# shared library.
12199postdep_objects=$lt_postdep_objects_CXX
12200
12201# Dependencies to place before the objects being linked to create a
12202# shared library.
12203predeps=$lt_predeps_CXX
12204
12205# Dependencies to place after the objects being linked to create a
12206# shared library.
12207postdeps=$lt_postdeps_CXX
12208
12209# The library search path used internally by the compiler when linking
12210# a shared library.
12211compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12212
12213# Method to check whether dependent libraries are shared objects.
12214deplibs_check_method=$lt_deplibs_check_method
12215
12216# Command to use when deplibs_check_method == file_magic.
12217file_magic_cmd=$lt_file_magic_cmd
12218
12219# Flag that allows shared libraries with undefined symbols to be built.
12220allow_undefined_flag=$lt_allow_undefined_flag_CXX
12221
12222# Flag that forces no undefined symbols.
12223no_undefined_flag=$lt_no_undefined_flag_CXX
12224
12225# Commands used to finish a libtool library installation in a directory.
12226finish_cmds=$lt_finish_cmds
12227
12228# Same as above, but a single script fragment to be evaled but not shown.
12229finish_eval=$lt_finish_eval
12230
12231# Take the output of nm and produce a listing of raw symbols and C names.
12232global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12233
12234# Transform the output of nm in a proper C declaration
12235global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12236
12237# Transform the output of nm in a C name address pair
12238global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12239
12240# This is the shared library runtime path variable.
12241runpath_var=$runpath_var
12242
12243# This is the shared library path variable.
12244shlibpath_var=$shlibpath_var
12245
12246# Is shlibpath searched before the hard-coded library search path?
12247shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12248
12249# How to hardcode a shared library path into an executable.
12250hardcode_action=$hardcode_action_CXX
12251
12252# Whether we should hardcode library paths into libraries.
12253hardcode_into_libs=$hardcode_into_libs
12254
12255# Flag to hardcode \$libdir into a binary during linking.
12256# This must work even if \$libdir does not exist.
12257hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12258
12259# If ld is used when linking, flag to hardcode \$libdir into
12260# a binary during linking. This must work even if \$libdir does
12261# not exist.
12262hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12263
12264# Whether we need a single -rpath flag with a separated argument.
12265hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12266
12267# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12268# resulting binary.
12269hardcode_direct=$hardcode_direct_CXX
12270
12271# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12272# resulting binary.
12273hardcode_minus_L=$hardcode_minus_L_CXX
12274
12275# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12276# the resulting binary.
12277hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12278
12279# Set to yes if building a shared library automatically hardcodes DIR into the library
12280# and all subsequent libraries and executables linked against it.
12281hardcode_automatic=$hardcode_automatic_CXX
12282
12283# Variables whose values should be saved in libtool wrapper scripts and
12284# restored at relink time.
12285variables_saved_for_relink="$variables_saved_for_relink"
12286
12287# Whether libtool must link a program against all its dependency libraries.
12288link_all_deplibs=$link_all_deplibs_CXX
12289
12290# Compile-time system search path for libraries
12291sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12292
12293# Run-time system search path for libraries
12294sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12295
12296# Fix the shell variable \$srcfile for the compiler.
12297fix_srcfile_path="$fix_srcfile_path_CXX"
12298
12299# Set to yes if exported symbols are required.
12300always_export_symbols=$always_export_symbols_CXX
12301
12302# The commands to list exported symbols.
12303export_symbols_cmds=$lt_export_symbols_cmds_CXX
12304
12305# The commands to extract the exported symbol list from a shared archive.
12306extract_expsyms_cmds=$lt_extract_expsyms_cmds
12307
12308# Symbols that should not be listed in the preloaded symbols.
12309exclude_expsyms=$lt_exclude_expsyms_CXX
12310
12311# Symbols that must always be exported.
12312include_expsyms=$lt_include_expsyms_CXX
12313
12314# ### END LIBTOOL TAG CONFIG: $tagname
12315
12316__EOF__
12317
12318
12319else
12320 # If there is no Makefile yet, we rely on a make rule to execute
12321 # `config.status --recheck' to rerun these tests and create the
12322 # libtool script then.
12323 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12324 if test -f "$ltmain_in"; then
12325 test -f Makefile && make "$ltmain"
12326 fi
12327fi
12328
12329
12330ac_ext=c
12331ac_cpp='$CPP $CPPFLAGS'
12332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335
12336CC=$lt_save_CC
12337LDCXX=$LD
12338LD=$lt_save_LD
12339GCC=$lt_save_GCC
12340with_gnu_ldcxx=$with_gnu_ld
12341with_gnu_ld=$lt_save_with_gnu_ld
12342lt_cv_path_LDCXX=$lt_cv_path_LD
12343lt_cv_path_LD=$lt_save_path_LD
12344lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12345lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12346
12347 else
12348 tagname=""
12349 fi
12350 ;;
12351
12352 F77)
12353 if test -n "$F77" && test "X$F77" != "Xno"; then
12354
12355ac_ext=f
12356ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12357ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12359
12360
12361archive_cmds_need_lc_F77=no
12362allow_undefined_flag_F77=
12363always_export_symbols_F77=no
12364archive_expsym_cmds_F77=
12365export_dynamic_flag_spec_F77=
12366hardcode_direct_F77=no
12367hardcode_libdir_flag_spec_F77=
12368hardcode_libdir_flag_spec_ld_F77=
12369hardcode_libdir_separator_F77=
12370hardcode_minus_L_F77=no
12371hardcode_automatic_F77=no
12372module_cmds_F77=
12373module_expsym_cmds_F77=
12374link_all_deplibs_F77=unknown
12375old_archive_cmds_F77=$old_archive_cmds
12376no_undefined_flag_F77=
12377whole_archive_flag_spec_F77=
12378enable_shared_with_static_runtimes_F77=no
12379
12380# Source file extension for f77 test sources.
12381ac_ext=f
12382
12383# Object file extension for compiled f77 test sources.
12384objext=o
12385objext_F77=$objext
12386
12387# Code to be used in simple compile tests
12388lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12389
12390# Code to be used in simple link tests
12391lt_simple_link_test_code=" program t\n end\n"
12392
12393# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12394
12395# If no C compiler was specified, use CC.
12396LTCC=${LTCC-"$CC"}
12397
12398# Allow CC to be a program name with arguments.
12399compiler=$CC
12400
12401
12402# Allow CC to be a program name with arguments.
12403lt_save_CC="$CC"
12404CC=${F77-"f77"}
12405compiler=$CC
12406compiler_F77=$CC
12407cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12408
12409echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12410echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12411echo "$as_me:$LINENO: result: $can_build_shared" >&5
12412echo "${ECHO_T}$can_build_shared" >&6
12413
12414echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12415echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12416test "$can_build_shared" = "no" && enable_shared=no
12417
12418# On AIX, shared libraries and static libraries use the same namespace, and
12419# are all built from PIC.
12420case "$host_os" in
12421aix3*)
12422 test "$enable_shared" = yes && enable_static=no
12423 if test -n "$RANLIB"; then
12424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12425 postinstall_cmds='$RANLIB $lib'
12426 fi
12427 ;;
12428aix4*)
12429 test "$enable_shared" = yes && enable_static=no
12430 ;;
12431esac
12432echo "$as_me:$LINENO: result: $enable_shared" >&5
12433echo "${ECHO_T}$enable_shared" >&6
12434
12435echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12436echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12437# Make sure either enable_shared or enable_static is yes.
12438test "$enable_shared" = yes || enable_static=yes
12439echo "$as_me:$LINENO: result: $enable_static" >&5
12440echo "${ECHO_T}$enable_static" >&6
12441
12442test "$ld_shlibs_F77" = no && can_build_shared=no
12443
12444GCC_F77="$G77"
12445LD_F77="$LD"
12446
12447lt_prog_compiler_wl_F77=
12448lt_prog_compiler_pic_F77=
12449lt_prog_compiler_static_F77=
12450
12451echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12452echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12453
12454 if test "$GCC" = yes; then
12455 lt_prog_compiler_wl_F77='-Wl,'
12456 lt_prog_compiler_static_F77='-static'
12457
12458 case $host_os in
12459 aix*)
12460 # All AIX code is PIC.
12461 if test "$host_cpu" = ia64; then
12462 # AIX 5 now supports IA64 processor
12463 lt_prog_compiler_static_F77='-Bstatic'
12464 fi
12465 ;;
12466
12467 amigaos*)
12468 # FIXME: we need at least 68020 code to build shared libraries, but
12469 # adding the `-m68020' flag to GCC prevents building anything better,
12470 # like `-m68040'.
12471 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12472 ;;
12473
12474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12475 # PIC is the default for these OSes.
12476 ;;
12477
12478 mingw* | pw32* | os2*)
12479 # This hack is so that the source file can tell whether it is being
12480 # built for inclusion in a dll (and should export symbols for example).
12481 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12482 ;;
12483
12484 darwin* | rhapsody*)
12485 # PIC is the default on this platform
12486 # Common symbols not allowed in MH_DYLIB files
12487 lt_prog_compiler_pic_F77='-fno-common'
12488 ;;
12489
12490 msdosdjgpp*)
12491 # Just because we use GCC doesn't mean we suddenly get shared libraries
12492 # on systems that don't support them.
12493 lt_prog_compiler_can_build_shared_F77=no
12494 enable_shared=no
12495 ;;
12496
12497 sysv4*MP*)
12498 if test -d /usr/nec; then
12499 lt_prog_compiler_pic_F77=-Kconform_pic
12500 fi
12501 ;;
12502
12503 hpux*)
12504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12505 # not for PA HP-UX.
12506 case "$host_cpu" in
12507 hppa*64*|ia64*)
12508 # +Z the default
12509 ;;
12510 *)
12511 lt_prog_compiler_pic_F77='-fPIC'
12512 ;;
12513 esac
12514 ;;
12515
12516 *)
12517 lt_prog_compiler_pic_F77='-fPIC'
12518 ;;
12519 esac
12520 else
12521 # PORTME Check for flag to pass linker flags through the system compiler.
12522 case $host_os in
12523 aix*)
12524 lt_prog_compiler_wl_F77='-Wl,'
12525 if test "$host_cpu" = ia64; then
12526 # AIX 5 now supports IA64 processor
12527 lt_prog_compiler_static_F77='-Bstatic'
12528 else
12529 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12530 fi
12531 ;;
12532
12533 mingw* | pw32* | os2*)
12534 # This hack is so that the source file can tell whether it is being
12535 # built for inclusion in a dll (and should export symbols for example).
12536 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12537 ;;
12538
12539 hpux9* | hpux10* | hpux11*)
12540 lt_prog_compiler_wl_F77='-Wl,'
12541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12542 # not for PA HP-UX.
12543 case "$host_cpu" in
12544 hppa*64*|ia64*)
12545 # +Z the default
12546 ;;
12547 *)
12548 lt_prog_compiler_pic_F77='+Z'
12549 ;;
12550 esac
12551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12552 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12553 ;;
12554
12555 irix5* | irix6* | nonstopux*)
12556 lt_prog_compiler_wl_F77='-Wl,'
12557 # PIC (with -KPIC) is the default.
12558 lt_prog_compiler_static_F77='-non_shared'
12559 ;;
12560
12561 newsos6)
12562 lt_prog_compiler_pic_F77='-KPIC'
12563 lt_prog_compiler_static_F77='-Bstatic'
12564 ;;
12565
12566 linux*)
12567 case $CC in
12568 icc* | ecc*)
12569 lt_prog_compiler_wl_F77='-Wl,'
12570 lt_prog_compiler_pic_F77='-KPIC'
12571 lt_prog_compiler_static_F77='-static'
12572 ;;
12573 ccc*)
12574 lt_prog_compiler_wl_F77='-Wl,'
12575 # All Alpha code is PIC.
12576 lt_prog_compiler_static_F77='-non_shared'
12577 ;;
12578 esac
12579 ;;
12580
12581 osf3* | osf4* | osf5*)
12582 lt_prog_compiler_wl_F77='-Wl,'
12583 # All OSF/1 code is PIC.
12584 lt_prog_compiler_static_F77='-non_shared'
12585 ;;
12586
12587 sco3.2v5*)
12588 lt_prog_compiler_pic_F77='-Kpic'
12589 lt_prog_compiler_static_F77='-dn'
12590 ;;
12591
12592 solaris*)
12593 lt_prog_compiler_wl_F77='-Wl,'
12594 lt_prog_compiler_pic_F77='-KPIC'
12595 lt_prog_compiler_static_F77='-Bstatic'
12596 ;;
12597
12598 sunos4*)
12599 lt_prog_compiler_wl_F77='-Qoption ld '
12600 lt_prog_compiler_pic_F77='-PIC'
12601 lt_prog_compiler_static_F77='-Bstatic'
12602 ;;
12603
12604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 lt_prog_compiler_pic_F77='-KPIC'
12607 lt_prog_compiler_static_F77='-Bstatic'
12608 ;;
12609
12610 sysv4*MP*)
12611 if test -d /usr/nec ;then
12612 lt_prog_compiler_pic_F77='-Kconform_pic'
12613 lt_prog_compiler_static_F77='-Bstatic'
12614 fi
12615 ;;
12616
12617 uts4*)
12618 lt_prog_compiler_pic_F77='-pic'
12619 lt_prog_compiler_static_F77='-Bstatic'
12620 ;;
12621
12622 *)
12623 lt_prog_compiler_can_build_shared_F77=no
12624 ;;
12625 esac
12626 fi
12627
12628echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12629echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12630
12631#
12632# Check to make sure the PIC flag actually works.
12633#
12634if test -n "$lt_prog_compiler_pic_F77"; then
12635
12636echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12637echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12638if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 lt_prog_compiler_pic_works_F77=no
12642 ac_outfile=conftest.$ac_objext
12643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12644 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12645 # Insert the option either (1) after the last *FLAGS variable, or
12646 # (2) before a word containing "conftest.", or (3) at the end.
12647 # Note that $ac_compile itself does not contain backslashes and begins
12648 # with a dollar sign (not a hyphen), so the echo should work correctly.
12649 # The option is referenced via a variable to avoid confusing sed.
12650 lt_compile=`echo "$ac_compile" | $SED \
12651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12653 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000012654 (eval echo "\"\$as_me:12654: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012655 (eval "$lt_compile" 2>conftest.err)
12656 ac_status=$?
12657 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000012658 echo "$as_me:12658: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012659 if (exit $ac_status) && test -s "$ac_outfile"; then
12660 # The compiler can only warn and ignore the option if not recognized
12661 # So say no if there are warnings
12662 if test ! -s conftest.err; then
12663 lt_prog_compiler_pic_works_F77=yes
12664 fi
12665 fi
12666 $rm conftest*
12667
12668fi
12669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12670echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12671
12672if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12673 case $lt_prog_compiler_pic_F77 in
12674 "" | " "*) ;;
12675 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12676 esac
12677else
12678 lt_prog_compiler_pic_F77=
12679 lt_prog_compiler_can_build_shared_F77=no
12680fi
12681
12682fi
12683case "$host_os" in
12684 # For platforms which do not support PIC, -DPIC is meaningless:
12685 *djgpp*)
12686 lt_prog_compiler_pic_F77=
12687 ;;
12688 *)
12689 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12690 ;;
12691esac
12692
12693echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12695if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698 lt_cv_prog_compiler_c_o_F77=no
12699 $rm -r conftest 2>/dev/null
12700 mkdir conftest
12701 cd conftest
12702 mkdir out
12703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12704
12705 lt_compiler_flag="-o out/conftest2.$ac_objext"
12706 # Insert the option either (1) after the last *FLAGS variable, or
12707 # (2) before a word containing "conftest.", or (3) at the end.
12708 # Note that $ac_compile itself does not contain backslashes and begins
12709 # with a dollar sign (not a hyphen), so the echo should work correctly.
12710 lt_compile=`echo "$ac_compile" | $SED \
12711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12713 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000012714 (eval echo "\"\$as_me:12714: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012715 (eval "$lt_compile" 2>out/conftest.err)
12716 ac_status=$?
12717 cat out/conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000012718 echo "$as_me:12718: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12720 then
12721 # The compiler can only warn and ignore the option if not recognized
12722 # So say no if there are warnings
12723 if test ! -s out/conftest.err; then
12724 lt_cv_prog_compiler_c_o_F77=yes
12725 fi
12726 fi
12727 chmod u+w .
12728 $rm conftest*
12729 # SGI C++ compiler will create directory out/ii_files/ for
12730 # template instantiation
12731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12732 $rm out/* && rmdir out
12733 cd ..
12734 rmdir conftest
12735 $rm conftest*
12736
12737fi
12738echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12739echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12740
12741
12742hard_links="nottested"
12743if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12744 # do not overwrite the value of need_locks provided by the user
12745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12747 hard_links=yes
12748 $rm conftest*
12749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750 touch conftest.a
12751 ln conftest.a conftest.b 2>&5 || hard_links=no
12752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12753 echo "$as_me:$LINENO: result: $hard_links" >&5
12754echo "${ECHO_T}$hard_links" >&6
12755 if test "$hard_links" = no; then
12756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12758 need_locks=warn
12759 fi
12760else
12761 need_locks=no
12762fi
12763
12764echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12766
12767 runpath_var=
12768 allow_undefined_flag_F77=
12769 enable_shared_with_static_runtimes_F77=no
12770 archive_cmds_F77=
12771 archive_expsym_cmds_F77=
12772 old_archive_From_new_cmds_F77=
12773 old_archive_from_expsyms_cmds_F77=
12774 export_dynamic_flag_spec_F77=
12775 whole_archive_flag_spec_F77=
12776 thread_safe_flag_spec_F77=
12777 hardcode_libdir_flag_spec_F77=
12778 hardcode_libdir_flag_spec_ld_F77=
12779 hardcode_libdir_separator_F77=
12780 hardcode_direct_F77=no
12781 hardcode_minus_L_F77=no
12782 hardcode_shlibpath_var_F77=unsupported
12783 link_all_deplibs_F77=unknown
12784 hardcode_automatic_F77=no
12785 module_cmds_F77=
12786 module_expsym_cmds_F77=
12787 always_export_symbols_F77=no
12788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12789 # include_expsyms should be a list of space-separated symbols to be *always*
12790 # included in the symbol list
12791 include_expsyms_F77=
12792 # exclude_expsyms can be an extended regexp of symbols to exclude
12793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12795 # as well as any symbol that contains `d'.
12796 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12798 # platforms (ab)use it in PIC code, but their linkers get confused if
12799 # the symbol is explicitly referenced. Since portable code cannot
12800 # rely on this symbol name, it's probably fine to never include it in
12801 # preloaded symbol tables.
12802 extract_expsyms_cmds=
12803
12804 case $host_os in
12805 cygwin* | mingw* | pw32*)
12806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12807 # When not using gcc, we currently assume that we are using
12808 # Microsoft Visual C++.
12809 if test "$GCC" != yes; then
12810 with_gnu_ld=no
12811 fi
12812 ;;
12813 openbsd*)
12814 with_gnu_ld=no
12815 ;;
12816 esac
12817
12818 ld_shlibs_F77=yes
12819 if test "$with_gnu_ld" = yes; then
12820 # If archive_cmds runs LD, not CC, wlarc should be empty
12821 wlarc='${wl}'
12822
12823 # See if GNU ld supports shared libraries.
12824 case $host_os in
12825 aix3* | aix4* | aix5*)
12826 # On AIX/PPC, the GNU linker is very broken
12827 if test "$host_cpu" != ia64; then
12828 ld_shlibs_F77=no
12829 cat <<EOF 1>&2
12830
12831*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12832*** to be unable to reliably create shared libraries on AIX.
12833*** Therefore, libtool is disabling shared libraries support. If you
12834*** really care for shared libraries, you may want to modify your PATH
12835*** so that a non-GNU linker is found, and then restart.
12836
12837EOF
12838 fi
12839 ;;
12840
12841 amigaos*)
12842 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)'
12843 hardcode_libdir_flag_spec_F77='-L$libdir'
12844 hardcode_minus_L_F77=yes
12845
12846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12847 # that the semantics of dynamic libraries on AmigaOS, at least up
12848 # to version 4, is to share data among multiple programs linked
12849 # with the same dynamic library. Since this doesn't match the
12850 # behavior of shared libraries on other platforms, we can't use
12851 # them.
12852 ld_shlibs_F77=no
12853 ;;
12854
12855 beos*)
12856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12857 allow_undefined_flag_F77=unsupported
12858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12859 # support --undefined. This deserves some investigation. FIXME
12860 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12861 else
12862 ld_shlibs_F77=no
12863 fi
12864 ;;
12865
12866 cygwin* | mingw* | pw32*)
12867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12868 # as there is no search path for DLLs.
12869 hardcode_libdir_flag_spec_F77='-L$libdir'
12870 allow_undefined_flag_F77=unsupported
12871 always_export_symbols_F77=no
12872 enable_shared_with_static_runtimes_F77=yes
12873 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12874
12875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12877 # If the export-symbols file already is a .def file (1st line
12878 # is EXPORTS), use it as is; otherwise, prepend...
12879 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12880 cp $export_symbols $output_objdir/$soname.def;
12881 else
12882 echo EXPORTS > $output_objdir/$soname.def;
12883 cat $export_symbols >> $output_objdir/$soname.def;
12884 fi~
12885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12886 else
12887 ld_shlibs=no
12888 fi
12889 ;;
12890
12891 netbsd* | knetbsd*-gnu)
12892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12893 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12894 wlarc=
12895 else
12896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12897 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12898 fi
12899 ;;
12900
12901 solaris* | sysv5*)
12902 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12903 ld_shlibs_F77=no
12904 cat <<EOF 1>&2
12905
12906*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12907*** create shared libraries on Solaris systems. Therefore, libtool
12908*** is disabling shared libraries support. We urge you to upgrade GNU
12909*** binutils to release 2.9.1 or newer. Another option is to modify
12910*** your PATH or compiler configuration so that the native linker is
12911*** used, and then restart.
12912
12913EOF
12914 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12917 else
12918 ld_shlibs_F77=no
12919 fi
12920 ;;
12921
12922 sunos4*)
12923 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12924 wlarc=
12925 hardcode_direct_F77=yes
12926 hardcode_shlibpath_var_F77=no
12927 ;;
12928
12929 linux*)
12930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12931 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 archive_cmds_F77="$tmp_archive_cmds"
12933 supports_anon_versioning=no
12934 case `$LD -v 2>/dev/null` in
12935 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12938 *\ 2.11.*) ;; # other 2.11 versions
12939 *) supports_anon_versioning=yes ;;
12940 esac
12941 if test $supports_anon_versioning = yes; then
12942 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12943cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12944$echo "local: *; };" >> $output_objdir/$libname.ver~
12945 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12946 else
12947 archive_expsym_cmds_F77="$tmp_archive_cmds"
12948 fi
12949 else
12950 ld_shlibs_F77=no
12951 fi
12952 ;;
12953
12954 *)
12955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12956 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12958 else
12959 ld_shlibs_F77=no
12960 fi
12961 ;;
12962 esac
12963
12964 if test "$ld_shlibs_F77" = yes; then
12965 runpath_var=LD_RUN_PATH
12966 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12967 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12968 # ancient GNU ld didn't support --whole-archive et. al.
12969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12970 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12971 else
12972 whole_archive_flag_spec_F77=
12973 fi
12974 fi
12975 else
12976 # PORTME fill in a description of your system's linker (not GNU ld)
12977 case $host_os in
12978 aix3*)
12979 allow_undefined_flag_F77=unsupported
12980 always_export_symbols_F77=yes
12981 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'
12982 # Note: this linker hardcodes the directories in LIBPATH if there
12983 # are no directories specified by -L.
12984 hardcode_minus_L_F77=yes
12985 if test "$GCC" = yes && test -z "$link_static_flag"; then
12986 # Neither direct hardcoding nor static linking is supported with a
12987 # broken collect2.
12988 hardcode_direct_F77=unsupported
12989 fi
12990 ;;
12991
12992 aix4* | aix5*)
12993 if test "$host_cpu" = ia64; then
12994 # On IA64, the linker does run time linking by default, so we don't
12995 # have to do anything special.
12996 aix_use_runtimelinking=no
12997 exp_sym_flag='-Bexport'
12998 no_entry_flag=""
12999 else
13000 # If we're using GNU nm, then we don't want the "-C" option.
13001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13003 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'
13004 else
13005 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'
13006 fi
13007 aix_use_runtimelinking=no
13008
13009 # Test if we are trying to use run time linking or normal
13010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13011 # need to do runtime linking.
13012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13013 for ld_flag in $LDFLAGS; do
13014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13015 aix_use_runtimelinking=yes
13016 break
13017 fi
13018 done
13019 esac
13020
13021 exp_sym_flag='-bexport'
13022 no_entry_flag='-bnoentry'
13023 fi
13024
13025 # When large executables or shared objects are built, AIX ld can
13026 # have problems creating the table of contents. If linking a library
13027 # or program results in "error TOC overflow" add -mminimal-toc to
13028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13030
13031 archive_cmds_F77=''
13032 hardcode_direct_F77=yes
13033 hardcode_libdir_separator_F77=':'
13034 link_all_deplibs_F77=yes
13035
13036 if test "$GCC" = yes; then
13037 case $host_os in aix4.012|aix4.012.*)
13038 # We only want to do this on AIX 4.2 and lower, the check
13039 # below for broken collect2 doesn't work under 4.3+
13040 collect2name=`${CC} -print-prog-name=collect2`
13041 if test -f "$collect2name" && \
13042 strings "$collect2name" | grep resolve_lib_name >/dev/null
13043 then
13044 # We have reworked collect2
13045 hardcode_direct_F77=yes
13046 else
13047 # We have old collect2
13048 hardcode_direct_F77=unsupported
13049 # It fails to find uninstalled libraries when the uninstalled
13050 # path is not listed in the libpath. Setting hardcode_minus_L
13051 # to unsupported forces relinking
13052 hardcode_minus_L_F77=yes
13053 hardcode_libdir_flag_spec_F77='-L$libdir'
13054 hardcode_libdir_separator_F77=
13055 fi
13056 esac
13057 shared_flag='-shared'
13058 else
13059 # not using gcc
13060 if test "$host_cpu" = ia64; then
13061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062 # chokes on -Wl,-G. The following line is correct:
13063 shared_flag='-G'
13064 else
13065 if test "$aix_use_runtimelinking" = yes; then
13066 shared_flag='${wl}-G'
13067 else
13068 shared_flag='${wl}-bM:SRE'
13069 fi
13070 fi
13071 fi
13072
13073 # It seems that -bexpall does not export symbols beginning with
13074 # underscore (_), so it is better to generate a list of symbols to export.
13075 always_export_symbols_F77=yes
13076 if test "$aix_use_runtimelinking" = yes; then
13077 # Warning - without using the other runtime loading flags (-brtl),
13078 # -berok will link without error, but may produce a broken library.
13079 allow_undefined_flag_F77='-berok'
13080 # Determine the default libpath from the value encoded in an empty executable.
13081 cat >conftest.$ac_ext <<_ACEOF
13082 program main
13083
13084 end
13085_ACEOF
13086rm -f conftest.$ac_objext conftest$ac_exeext
13087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088 (eval $ac_link) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013095 { ac_try='test -z "$ac_f77_werror_flag"
13096 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108
13109aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13110}'`
13111# Check for a 64-bit object if we didn't find anything.
13112if 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; }
13113}'`; fi
13114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118fi
13119rm -f conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13122
13123 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13124 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"
13125 else
13126 if test "$host_cpu" = ia64; then
13127 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13128 allow_undefined_flag_F77="-z nodefs"
13129 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"
13130 else
13131 # Determine the default libpath from the value encoded in an empty executable.
13132 cat >conftest.$ac_ext <<_ACEOF
13133 program main
13134
13135 end
13136_ACEOF
13137rm -f conftest.$ac_objext conftest$ac_exeext
13138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013146 { ac_try='test -z "$ac_f77_werror_flag"
13147 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159
13160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13161}'`
13162# Check for a 64-bit object if we didn't find anything.
13163if 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; }
13164}'`; fi
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169fi
13170rm -f conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13173
13174 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13175 # Warning - without using the other run time loading flags,
13176 # -berok will link without error, but may produce a broken library.
13177 no_undefined_flag_F77=' ${wl}-bernotok'
13178 allow_undefined_flag_F77=' ${wl}-berok'
13179 # -bexpall does not export symbols beginning with underscore (_)
13180 always_export_symbols_F77=yes
13181 # Exported symbols can be pulled into shared objects from archives
13182 whole_archive_flag_spec_F77=' '
13183 archive_cmds_need_lc_F77=yes
13184 # This is similar to how AIX traditionally builds it's shared libraries.
13185 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'
13186 fi
13187 fi
13188 ;;
13189
13190 amigaos*)
13191 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)'
13192 hardcode_libdir_flag_spec_F77='-L$libdir'
13193 hardcode_minus_L_F77=yes
13194 # see comment about different semantics on the GNU ld section
13195 ld_shlibs_F77=no
13196 ;;
13197
13198 bsdi4*)
13199 export_dynamic_flag_spec_F77=-rdynamic
13200 ;;
13201
13202 cygwin* | mingw* | pw32*)
13203 # When not using gcc, we currently assume that we are using
13204 # Microsoft Visual C++.
13205 # hardcode_libdir_flag_spec is actually meaningless, as there is
13206 # no search path for DLLs.
13207 hardcode_libdir_flag_spec_F77=' '
13208 allow_undefined_flag_F77=unsupported
13209 # Tell ltmain to make .lib files, not .a files.
13210 libext=lib
13211 # Tell ltmain to make .dll files, not .so files.
13212 shrext=".dll"
13213 # FIXME: Setting linknames here is a bad hack.
13214 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13215 # The linker will automatically build a .lib file if we build a DLL.
13216 old_archive_From_new_cmds_F77='true'
13217 # FIXME: Should let the user specify the lib program.
13218 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13219 fix_srcfile_path='`cygpath -w "$srcfile"`'
13220 enable_shared_with_static_runtimes_F77=yes
13221 ;;
13222
13223 darwin* | rhapsody*)
13224 if test "$GXX" = yes ; then
13225 archive_cmds_need_lc_F77=no
13226 case "$host_os" in
13227 rhapsody* | darwin1.[012])
13228 allow_undefined_flag_F77='-undefined suppress'
13229 ;;
13230 *) # Darwin 1.3 on
13231 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13232 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13233 else
13234 case ${MACOSX_DEPLOYMENT_TARGET} in
13235 10.[012])
13236 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13237 ;;
13238 10.*)
13239 allow_undefined_flag_F77='-undefined dynamic_lookup'
13240 ;;
13241 esac
13242 fi
13243 ;;
13244 esac
13245 lt_int_apple_cc_single_mod=no
13246 output_verbose_link_cmd='echo'
13247 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13248 lt_int_apple_cc_single_mod=yes
13249 fi
13250 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13251 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13252 else
13253 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'
13254 fi
13255 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13257 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13258 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}'
13259 else
13260 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}'
13261 fi
13262 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}'
13263 hardcode_direct_F77=no
13264 hardcode_automatic_F77=yes
13265 hardcode_shlibpath_var_F77=unsupported
13266 whole_archive_flag_spec_F77='-all_load $convenience'
13267 link_all_deplibs_F77=yes
13268 else
13269 ld_shlibs_F77=no
13270 fi
13271 ;;
13272
13273 dgux*)
13274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13275 hardcode_libdir_flag_spec_F77='-L$libdir'
13276 hardcode_shlibpath_var_F77=no
13277 ;;
13278
13279 freebsd1*)
13280 ld_shlibs_F77=no
13281 ;;
13282
13283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13284 # support. Future versions do this automatically, but an explicit c++rt0.o
13285 # does not break anything, and helps significantly (at the cost of a little
13286 # extra space).
13287 freebsd2.2*)
13288 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13289 hardcode_libdir_flag_spec_F77='-R$libdir'
13290 hardcode_direct_F77=yes
13291 hardcode_shlibpath_var_F77=no
13292 ;;
13293
13294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13295 freebsd2*)
13296 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13297 hardcode_direct_F77=yes
13298 hardcode_minus_L_F77=yes
13299 hardcode_shlibpath_var_F77=no
13300 ;;
13301
13302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13303 freebsd* | kfreebsd*-gnu)
13304 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13305 hardcode_libdir_flag_spec_F77='-R$libdir'
13306 hardcode_direct_F77=yes
13307 hardcode_shlibpath_var_F77=no
13308 ;;
13309
13310 hpux9*)
13311 if test "$GCC" = yes; then
13312 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'
13313 else
13314 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'
13315 fi
13316 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13317 hardcode_libdir_separator_F77=:
13318 hardcode_direct_F77=yes
13319
13320 # hardcode_minus_L: Not really in the search PATH,
13321 # but as the default location of the library.
13322 hardcode_minus_L_F77=yes
13323 export_dynamic_flag_spec_F77='${wl}-E'
13324 ;;
13325
13326 hpux10* | hpux11*)
13327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13328 case "$host_cpu" in
13329 hppa*64*|ia64*)
13330 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 ;;
13332 *)
13333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13334 ;;
13335 esac
13336 else
13337 case "$host_cpu" in
13338 hppa*64*|ia64*)
13339 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13340 ;;
13341 *)
13342 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13343 ;;
13344 esac
13345 fi
13346 if test "$with_gnu_ld" = no; then
13347 case "$host_cpu" in
13348 hppa*64*)
13349 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13350 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13351 hardcode_libdir_separator_F77=:
13352 hardcode_direct_F77=no
13353 hardcode_shlibpath_var_F77=no
13354 ;;
13355 ia64*)
13356 hardcode_libdir_flag_spec_F77='-L$libdir'
13357 hardcode_direct_F77=no
13358 hardcode_shlibpath_var_F77=no
13359
13360 # hardcode_minus_L: Not really in the search PATH,
13361 # but as the default location of the library.
13362 hardcode_minus_L_F77=yes
13363 ;;
13364 *)
13365 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13366 hardcode_libdir_separator_F77=:
13367 hardcode_direct_F77=yes
13368 export_dynamic_flag_spec_F77='${wl}-E'
13369
13370 # hardcode_minus_L: Not really in the search PATH,
13371 # but as the default location of the library.
13372 hardcode_minus_L_F77=yes
13373 ;;
13374 esac
13375 fi
13376 ;;
13377
13378 irix5* | irix6* | nonstopux*)
13379 if test "$GCC" = yes; then
13380 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'
13381 else
13382 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'
13383 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13384 fi
13385 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13386 hardcode_libdir_separator_F77=:
13387 link_all_deplibs_F77=yes
13388 ;;
13389
13390 netbsd* | knetbsd*-gnu)
13391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13392 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13393 else
13394 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13395 fi
13396 hardcode_libdir_flag_spec_F77='-R$libdir'
13397 hardcode_direct_F77=yes
13398 hardcode_shlibpath_var_F77=no
13399 ;;
13400
13401 newsos6)
13402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13403 hardcode_direct_F77=yes
13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405 hardcode_libdir_separator_F77=:
13406 hardcode_shlibpath_var_F77=no
13407 ;;
13408
13409 openbsd*)
13410 hardcode_direct_F77=yes
13411 hardcode_shlibpath_var_F77=no
13412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13413 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13414 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13415 export_dynamic_flag_spec_F77='${wl}-E'
13416 else
13417 case $host_os in
13418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13419 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_libdir_flag_spec_F77='-R$libdir'
13421 ;;
13422 *)
13423 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13424 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13425 ;;
13426 esac
13427 fi
13428 ;;
13429
13430 os2*)
13431 hardcode_libdir_flag_spec_F77='-L$libdir'
13432 hardcode_minus_L_F77=yes
13433 allow_undefined_flag_F77=unsupported
13434 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'
13435 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13436 ;;
13437
13438 osf3*)
13439 if test "$GCC" = yes; then
13440 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13441 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'
13442 else
13443 allow_undefined_flag_F77=' -expect_unresolved \*'
13444 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'
13445 fi
13446 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13447 hardcode_libdir_separator_F77=:
13448 ;;
13449
13450 osf4* | osf5*) # as osf3* with the addition of -msym flag
13451 if test "$GCC" = yes; then
13452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453 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'
13454 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13455 else
13456 allow_undefined_flag_F77=' -expect_unresolved \*'
13457 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'
13458 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~
13459 $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'
13460
13461 # Both c and cxx compiler support -rpath directly
13462 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13463 fi
13464 hardcode_libdir_separator_F77=:
13465 ;;
13466
13467 sco3.2v5*)
13468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_shlibpath_var_F77=no
13470 export_dynamic_flag_spec_F77='${wl}-Bexport'
13471 runpath_var=LD_RUN_PATH
13472 hardcode_runpath_var=yes
13473 ;;
13474
13475 solaris*)
13476 no_undefined_flag_F77=' -z text'
13477 if test "$GCC" = yes; then
13478 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13481 else
13482 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13485 fi
13486 hardcode_libdir_flag_spec_F77='-R$libdir'
13487 hardcode_shlibpath_var_F77=no
13488 case $host_os in
13489 solaris2.[0-5] | solaris2.[0-5].*) ;;
13490 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13491 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13492 esac
13493 link_all_deplibs_F77=yes
13494 ;;
13495
13496 sunos4*)
13497 if test "x$host_vendor" = xsequent; then
13498 # Use $CC to link under sequent, because it throws in some extra .o
13499 # files that make .init and .fini sections work.
13500 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13501 else
13502 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13503 fi
13504 hardcode_libdir_flag_spec_F77='-L$libdir'
13505 hardcode_direct_F77=yes
13506 hardcode_minus_L_F77=yes
13507 hardcode_shlibpath_var_F77=no
13508 ;;
13509
13510 sysv4)
13511 case $host_vendor in
13512 sni)
13513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_F77=yes # is this really true???
13515 ;;
13516 siemens)
13517 ## LD is ld it makes a PLAMLIB
13518 ## CC just makes a GrossModule.
13519 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13520 reload_cmds_F77='$CC -r -o $output$reload_objs'
13521 hardcode_direct_F77=no
13522 ;;
13523 motorola)
13524 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13526 ;;
13527 esac
13528 runpath_var='LD_RUN_PATH'
13529 hardcode_shlibpath_var_F77=no
13530 ;;
13531
13532 sysv4.3*)
13533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13534 hardcode_shlibpath_var_F77=no
13535 export_dynamic_flag_spec_F77='-Bexport'
13536 ;;
13537
13538 sysv4*MP*)
13539 if test -d /usr/nec; then
13540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 hardcode_shlibpath_var_F77=no
13542 runpath_var=LD_RUN_PATH
13543 hardcode_runpath_var=yes
13544 ld_shlibs_F77=yes
13545 fi
13546 ;;
13547
13548 sysv4.2uw2*)
13549 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13550 hardcode_direct_F77=yes
13551 hardcode_minus_L_F77=no
13552 hardcode_shlibpath_var_F77=no
13553 hardcode_runpath_var=yes
13554 runpath_var=LD_RUN_PATH
13555 ;;
13556
13557 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13558 no_undefined_flag_F77='${wl}-z ${wl}text'
13559 if test "$GCC" = yes; then
13560 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 else
13562 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 fi
13564 runpath_var='LD_RUN_PATH'
13565 hardcode_shlibpath_var_F77=no
13566 ;;
13567
13568 sysv5*)
13569 no_undefined_flag_F77=' -z text'
13570 # $CC -shared without GNU ld will not create a library from C++
13571 # object files and a static libstdc++, better avoid it by now
13572 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13573 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13575 hardcode_libdir_flag_spec_F77=
13576 hardcode_shlibpath_var_F77=no
13577 runpath_var='LD_RUN_PATH'
13578 ;;
13579
13580 uts4*)
13581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_F77='-L$libdir'
13583 hardcode_shlibpath_var_F77=no
13584 ;;
13585
13586 *)
13587 ld_shlibs_F77=no
13588 ;;
13589 esac
13590 fi
13591
13592echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13593echo "${ECHO_T}$ld_shlibs_F77" >&6
13594test "$ld_shlibs_F77" = no && can_build_shared=no
13595
13596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13597if test "$GCC" = yes; then
13598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13599fi
13600
13601#
13602# Do we need to explicitly link libc?
13603#
13604case "x$archive_cmds_need_lc_F77" in
13605x|xyes)
13606 # Assume -lc should be added
13607 archive_cmds_need_lc_F77=yes
13608
13609 if test "$enable_shared" = yes && test "$GCC" = yes; then
13610 case $archive_cmds_F77 in
13611 *'~'*)
13612 # FIXME: we may have to deal with multi-command sequences.
13613 ;;
13614 '$CC '*)
13615 # Test whether the compiler implicitly links with -lc since on some
13616 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13617 # to ld, don't add -lc before -lgcc.
13618 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13619echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13620 $rm conftest*
13621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13622
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } 2>conftest.err; then
13628 soname=conftest
13629 lib=conftest
13630 libobjs=conftest.$ac_objext
13631 deplibs=
13632 wl=$lt_prog_compiler_wl_F77
13633 compiler_flags=-v
13634 linker_flags=-v
13635 verstring=
13636 output_objdir=.
13637 libname=conftest
13638 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13639 allow_undefined_flag_F77=
13640 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13641 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }
13645 then
13646 archive_cmds_need_lc_F77=no
13647 else
13648 archive_cmds_need_lc_F77=yes
13649 fi
13650 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13651 else
13652 cat conftest.err 1>&5
13653 fi
13654 $rm conftest*
13655 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13656echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13657 ;;
13658 esac
13659 fi
13660 ;;
13661esac
13662
13663echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13664echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13665library_names_spec=
13666libname_spec='lib$name'
13667soname_spec=
13668shrext=".so"
13669postinstall_cmds=
13670postuninstall_cmds=
13671finish_cmds=
13672finish_eval=
13673shlibpath_var=
13674shlibpath_overrides_runpath=unknown
13675version_type=none
13676dynamic_linker="$host_os ld.so"
13677sys_lib_dlsearch_path_spec="/lib /usr/lib"
13678if test "$GCC" = yes; then
13679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13680 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13681 # if the path contains ";" then we assume it to be the separator
13682 # otherwise default to the standard path separator (i.e. ":") - it is
13683 # assumed that no part of a normal pathname contains ";" but that should
13684 # okay in the real world where ";" in dirpaths is itself problematic.
13685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13686 else
13687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13688 fi
13689else
13690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13691fi
13692need_lib_prefix=unknown
13693hardcode_into_libs=no
13694
13695# when you set need_version to no, make sure it does not cause -set_version
13696# flags to be left without arguments
13697need_version=unknown
13698
13699case $host_os in
13700aix3*)
13701 version_type=linux
13702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13703 shlibpath_var=LIBPATH
13704
13705 # AIX 3 has no versioning support, so we append a major version to the name.
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 ;;
13708
13709aix4* | aix5*)
13710 version_type=linux
13711 need_lib_prefix=no
13712 need_version=no
13713 hardcode_into_libs=yes
13714 if test "$host_cpu" = ia64; then
13715 # AIX 5 supports IA64
13716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 else
13719 # With GCC up to 2.95.x, collect2 would create an import file
13720 # for dependence libraries. The import file would start with
13721 # the line `#! .'. This would cause the generated library to
13722 # depend on `.', always an invalid library. This was fixed in
13723 # development snapshots of GCC prior to 3.0.
13724 case $host_os in
13725 aix4 | aix4.[01] | aix4.[01].*)
13726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13727 echo ' yes '
13728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13729 :
13730 else
13731 can_build_shared=no
13732 fi
13733 ;;
13734 esac
13735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13736 # soname into executable. Probably we can add versioning support to
13737 # collect2, so additional links can be useful in future.
13738 if test "$aix_use_runtimelinking" = yes; then
13739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13740 # instead of lib<name>.a to let people know that these are not
13741 # typical AIX shared libraries.
13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743 else
13744 # We preserve .a as extension for shared libraries through AIX4.2
13745 # and later when we are not doing run time linking.
13746 library_names_spec='${libname}${release}.a $libname.a'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 fi
13749 shlibpath_var=LIBPATH
13750 fi
13751 ;;
13752
13753amigaos*)
13754 library_names_spec='$libname.ixlibrary $libname.a'
13755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13756 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'
13757 ;;
13758
13759beos*)
13760 library_names_spec='${libname}${shared_ext}'
13761 dynamic_linker="$host_os ld.so"
13762 shlibpath_var=LIBRARY_PATH
13763 ;;
13764
13765bsdi4*)
13766 version_type=linux
13767 need_version=no
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13771 shlibpath_var=LD_LIBRARY_PATH
13772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13774 # the default ld.so.conf also contains /usr/contrib/lib and
13775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13776 # libtool to hard-code these into programs
13777 ;;
13778
13779cygwin* | mingw* | pw32*)
13780 version_type=windows
13781 shrext=".dll"
13782 need_version=no
13783 need_lib_prefix=no
13784
13785 case $GCC,$host_os in
13786 yes,cygwin* | yes,mingw* | yes,pw32*)
13787 library_names_spec='$libname.dll.a'
13788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13789 postinstall_cmds='base_file=`basename \${file}`~
13790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13791 dldir=$destdir/`dirname \$dlpath`~
13792 test -d \$dldir || mkdir -p \$dldir~
13793 $install_prog $dir/$dlname \$dldir/$dlname'
13794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13795 dlpath=$dir/\$dldll~
13796 $rm \$dlpath'
13797 shlibpath_overrides_runpath=yes
13798
13799 case $host_os in
13800 cygwin*)
13801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13803 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13804 ;;
13805 mingw*)
13806 # MinGW DLLs use traditional 'lib' prefix
13807 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13809 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13810 # It is most probably a Windows format PATH printed by
13811 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13812 # path with ; separators, and with drive letters. We can handle the
13813 # drive letters (cygwin fileutils understands them), so leave them,
13814 # especially as we might pass files found there to a mingw objdump,
13815 # which wouldn't understand a cygwinified path. Ahh.
13816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13817 else
13818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13819 fi
13820 ;;
13821 pw32*)
13822 # pw32 DLLs use 'pw' prefix rather than 'lib'
13823 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13824 ;;
13825 esac
13826 ;;
13827
13828 *)
13829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13830 ;;
13831 esac
13832 dynamic_linker='Win32 ld.exe'
13833 # FIXME: first we should search . and the directory the executable is in
13834 shlibpath_var=PATH
13835 ;;
13836
13837darwin* | rhapsody*)
13838 dynamic_linker="$host_os dyld"
13839 version_type=darwin
13840 need_lib_prefix=no
13841 need_version=no
13842 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13843 soname_spec='${libname}${release}${major}$shared_ext'
13844 shlibpath_overrides_runpath=yes
13845 shlibpath_var=DYLD_LIBRARY_PATH
13846 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13847 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13848 if test "$GCC" = yes; then
13849 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"`
13850 else
13851 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13852 fi
13853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13854 ;;
13855
13856dgux*)
13857 version_type=linux
13858 need_lib_prefix=no
13859 need_version=no
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13861 soname_spec='${libname}${release}${shared_ext}$major'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 ;;
13864
13865freebsd1*)
13866 dynamic_linker=no
13867 ;;
13868
13869kfreebsd*-gnu)
13870 version_type=linux
13871 need_lib_prefix=no
13872 need_version=no
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 shlibpath_overrides_runpath=no
13877 hardcode_into_libs=yes
13878 dynamic_linker='GNU ld.so'
13879 ;;
13880
13881freebsd*)
13882 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13883 version_type=freebsd-$objformat
13884 case $version_type in
13885 freebsd-elf*)
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13887 need_version=no
13888 need_lib_prefix=no
13889 ;;
13890 freebsd-*)
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13892 need_version=yes
13893 ;;
13894 esac
13895 shlibpath_var=LD_LIBRARY_PATH
13896 case $host_os in
13897 freebsd2*)
13898 shlibpath_overrides_runpath=yes
13899 ;;
13900 freebsd3.01* | freebsdelf3.01*)
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 ;;
13904 *) # from 3.2 on
13905 shlibpath_overrides_runpath=no
13906 hardcode_into_libs=yes
13907 ;;
13908 esac
13909 ;;
13910
13911gnu*)
13912 version_type=linux
13913 need_lib_prefix=no
13914 need_version=no
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 hardcode_into_libs=yes
13919 ;;
13920
13921hpux9* | hpux10* | hpux11*)
13922 # Give a soname corresponding to the major version so that dld.sl refuses to
13923 # link against other versions.
13924 version_type=sunos
13925 need_lib_prefix=no
13926 need_version=no
13927 case "$host_cpu" in
13928 ia64*)
13929 shrext='.so'
13930 hardcode_into_libs=yes
13931 dynamic_linker="$host_os dld.so"
13932 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 if test "X$HPUX_IA64_MODE" = X32; then
13937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13938 else
13939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13940 fi
13941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13942 ;;
13943 hppa*64*)
13944 shrext='.sl'
13945 hardcode_into_libs=yes
13946 dynamic_linker="$host_os dld.sl"
13947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953 ;;
13954 *)
13955 shrext='.sl'
13956 dynamic_linker="$host_os dld.sl"
13957 shlibpath_var=SHLIB_PATH
13958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 ;;
13962 esac
13963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13964 postinstall_cmds='chmod 555 $lib'
13965 ;;
13966
13967irix5* | irix6* | nonstopux*)
13968 case $host_os in
13969 nonstopux*) version_type=nonstopux ;;
13970 *)
13971 if test "$lt_cv_prog_gnu_ld" = yes; then
13972 version_type=linux
13973 else
13974 version_type=irix
13975 fi ;;
13976 esac
13977 need_lib_prefix=no
13978 need_version=no
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13981 case $host_os in
13982 irix5* | nonstopux*)
13983 libsuff= shlibsuff=
13984 ;;
13985 *)
13986 case $LD in # libtool.m4 will add one of these switches to LD
13987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13988 libsuff= shlibsuff= libmagic=32-bit;;
13989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13990 libsuff=32 shlibsuff=N32 libmagic=N32;;
13991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13993 *) libsuff= shlibsuff= libmagic=never-match;;
13994 esac
13995 ;;
13996 esac
13997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13998 shlibpath_overrides_runpath=no
13999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14001 hardcode_into_libs=yes
14002 ;;
14003
14004# No shared lib support for Linux oldld, aout, or coff.
14005linux*oldld* | linux*aout* | linux*coff*)
14006 dynamic_linker=no
14007 ;;
14008
14009# This must be Linux ELF.
14010linux*)
14011 version_type=linux
14012 need_lib_prefix=no
14013 need_version=no
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=no
14019 # This implies no fast_install, which is unacceptable.
14020 # Some rework will be needed to allow for fast_install
14021 # before this can be enabled.
14022 hardcode_into_libs=yes
14023
14024 # Append ld.so.conf contents to the search path
14025 if test -f /etc/ld.so.conf; then
14026 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14027 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14028 fi
14029
14030 # We used to test for /lib/ld.so.1 and disable shared libraries on
14031 # powerpc, because MkLinux only supported shared libraries with the
14032 # GNU dynamic linker. Since this was broken with cross compilers,
14033 # most powerpc-linux boxes support dynamic linking these days and
14034 # people can always --disable-shared, the test was removed, and we
14035 # assume the GNU/Linux dynamic linker is in use.
14036 dynamic_linker='GNU/Linux ld.so'
14037 ;;
14038
14039knetbsd*-gnu)
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=no
14047 hardcode_into_libs=yes
14048 dynamic_linker='GNU ld.so'
14049 ;;
14050
14051netbsd*)
14052 version_type=sunos
14053 need_lib_prefix=no
14054 need_version=no
14055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058 dynamic_linker='NetBSD (a.out) ld.so'
14059 else
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='NetBSD ld.elf_so'
14063 fi
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 ;;
14068
14069newsos6)
14070 version_type=linux
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14074 ;;
14075
14076nto-qnx*)
14077 version_type=linux
14078 need_lib_prefix=no
14079 need_version=no
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14084 ;;
14085
14086openbsd*)
14087 version_type=sunos
14088 need_lib_prefix=no
14089 need_version=yes
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 case $host_os in
14095 openbsd2.[89] | openbsd2.[89].*)
14096 shlibpath_overrides_runpath=no
14097 ;;
14098 *)
14099 shlibpath_overrides_runpath=yes
14100 ;;
14101 esac
14102 else
14103 shlibpath_overrides_runpath=yes
14104 fi
14105 ;;
14106
14107os2*)
14108 libname_spec='$name'
14109 shrext=".dll"
14110 need_lib_prefix=no
14111 library_names_spec='$libname${shared_ext} $libname.a'
14112 dynamic_linker='OS/2 ld.exe'
14113 shlibpath_var=LIBPATH
14114 ;;
14115
14116osf3* | osf4* | osf5*)
14117 version_type=osf
14118 need_lib_prefix=no
14119 need_version=no
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14125 ;;
14126
14127sco3.2v5*)
14128 version_type=osf
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 ;;
14133
14134solaris*)
14135 version_type=linux
14136 need_lib_prefix=no
14137 need_version=no
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 shlibpath_overrides_runpath=yes
14142 hardcode_into_libs=yes
14143 # ldd complains unless libraries are executable
14144 postinstall_cmds='chmod +x $lib'
14145 ;;
14146
14147sunos4*)
14148 version_type=sunos
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=yes
14153 if test "$with_gnu_ld" = yes; then
14154 need_lib_prefix=no
14155 fi
14156 need_version=yes
14157 ;;
14158
14159sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14160 version_type=linux
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 case $host_vendor in
14165 sni)
14166 shlibpath_overrides_runpath=no
14167 need_lib_prefix=no
14168 export_dynamic_flag_spec='${wl}-Blargedynsym'
14169 runpath_var=LD_RUN_PATH
14170 ;;
14171 siemens)
14172 need_lib_prefix=no
14173 ;;
14174 motorola)
14175 need_lib_prefix=no
14176 need_version=no
14177 shlibpath_overrides_runpath=no
14178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14179 ;;
14180 esac
14181 ;;
14182
14183sysv4*MP*)
14184 if test -d /usr/nec ;then
14185 version_type=linux
14186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187 soname_spec='$libname${shared_ext}.$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 fi
14190 ;;
14191
14192uts4*)
14193 version_type=linux
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 ;;
14198
14199*)
14200 dynamic_linker=no
14201 ;;
14202esac
14203echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14204echo "${ECHO_T}$dynamic_linker" >&6
14205test "$dynamic_linker" = no && can_build_shared=no
14206
14207echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14208echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14209hardcode_action_F77=
14210if test -n "$hardcode_libdir_flag_spec_F77" || \
14211 test -n "$runpath_var F77" || \
14212 test "X$hardcode_automatic_F77"="Xyes" ; then
14213
14214 # We can hardcode non-existant directories.
14215 if test "$hardcode_direct_F77" != no &&
14216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14217 # have to relink, otherwise we might link with an installed library
14218 # when we should be linking with a yet-to-be-installed one
14219 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14220 test "$hardcode_minus_L_F77" != no; then
14221 # Linking always hardcodes the temporary library directory.
14222 hardcode_action_F77=relink
14223 else
14224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14225 hardcode_action_F77=immediate
14226 fi
14227else
14228 # We cannot hardcode anything, or else we can only hardcode existing
14229 # directories.
14230 hardcode_action_F77=unsupported
14231fi
14232echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14233echo "${ECHO_T}$hardcode_action_F77" >&6
14234
14235if test "$hardcode_action_F77" = relink; then
14236 # Fast installation is not supported
14237 enable_fast_install=no
14238elif test "$shlibpath_overrides_runpath" = yes ||
14239 test "$enable_shared" = no; then
14240 # Fast installation is not necessary
14241 enable_fast_install=needless
14242fi
14243
14244striplib=
14245old_striplib=
14246echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14247echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14248if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14249 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14250 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14251 echo "$as_me:$LINENO: result: yes" >&5
14252echo "${ECHO_T}yes" >&6
14253else
14254# FIXME - insert some real tests, host_os isn't really good enough
14255 case $host_os in
14256 darwin*)
14257 if test -n "$STRIP" ; then
14258 striplib="$STRIP -x"
14259 echo "$as_me:$LINENO: result: yes" >&5
14260echo "${ECHO_T}yes" >&6
14261 else
14262 echo "$as_me:$LINENO: result: no" >&5
14263echo "${ECHO_T}no" >&6
14264fi
14265 ;;
14266 *)
14267 echo "$as_me:$LINENO: result: no" >&5
14268echo "${ECHO_T}no" >&6
14269 ;;
14270 esac
14271fi
14272
14273
14274
14275# The else clause should only fire when bootstrapping the
14276# libtool distribution, otherwise you forgot to ship ltmain.sh
14277# with your package, and you will get complaints that there are
14278# no rules to generate ltmain.sh.
14279if test -f "$ltmain"; then
14280 # See if we are running on zsh, and set the options which allow our commands through
14281 # without removal of \ escapes.
14282 if test -n "${ZSH_VERSION+set}" ; then
14283 setopt NO_GLOB_SUBST
14284 fi
14285 # Now quote all the things that may contain metacharacters while being
14286 # careful not to overquote the AC_SUBSTed values. We take copies of the
14287 # variables and quote the copies for generation of the libtool script.
14288 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14289 SED SHELL STRIP \
14290 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14291 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14292 deplibs_check_method reload_flag reload_cmds need_locks \
14293 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14294 lt_cv_sys_global_symbol_to_c_name_address \
14295 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14296 old_postinstall_cmds old_postuninstall_cmds \
14297 compiler_F77 \
14298 CC_F77 \
14299 LD_F77 \
14300 lt_prog_compiler_wl_F77 \
14301 lt_prog_compiler_pic_F77 \
14302 lt_prog_compiler_static_F77 \
14303 lt_prog_compiler_no_builtin_flag_F77 \
14304 export_dynamic_flag_spec_F77 \
14305 thread_safe_flag_spec_F77 \
14306 whole_archive_flag_spec_F77 \
14307 enable_shared_with_static_runtimes_F77 \
14308 old_archive_cmds_F77 \
14309 old_archive_from_new_cmds_F77 \
14310 predep_objects_F77 \
14311 postdep_objects_F77 \
14312 predeps_F77 \
14313 postdeps_F77 \
14314 compiler_lib_search_path_F77 \
14315 archive_cmds_F77 \
14316 archive_expsym_cmds_F77 \
14317 postinstall_cmds_F77 \
14318 postuninstall_cmds_F77 \
14319 old_archive_from_expsyms_cmds_F77 \
14320 allow_undefined_flag_F77 \
14321 no_undefined_flag_F77 \
14322 export_symbols_cmds_F77 \
14323 hardcode_libdir_flag_spec_F77 \
14324 hardcode_libdir_flag_spec_ld_F77 \
14325 hardcode_libdir_separator_F77 \
14326 hardcode_automatic_F77 \
14327 module_cmds_F77 \
14328 module_expsym_cmds_F77 \
14329 lt_cv_prog_compiler_c_o_F77 \
14330 exclude_expsyms_F77 \
14331 include_expsyms_F77; do
14332
14333 case $var in
14334 old_archive_cmds_F77 | \
14335 old_archive_from_new_cmds_F77 | \
14336 archive_cmds_F77 | \
14337 archive_expsym_cmds_F77 | \
14338 module_cmds_F77 | \
14339 module_expsym_cmds_F77 | \
14340 old_archive_from_expsyms_cmds_F77 | \
14341 export_symbols_cmds_F77 | \
14342 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14343 postinstall_cmds | postuninstall_cmds | \
14344 old_postinstall_cmds | old_postuninstall_cmds | \
14345 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14346 # Double-quote double-evaled strings.
14347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14348 ;;
14349 *)
14350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14351 ;;
14352 esac
14353 done
14354
14355 case $lt_echo in
14356 *'\$0 --fallback-echo"')
14357 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14358 ;;
14359 esac
14360
14361cfgfile="$ofile"
14362
14363 cat <<__EOF__ >> "$cfgfile"
14364# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14365
14366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14367
14368# Shell to use when invoking shell scripts.
14369SHELL=$lt_SHELL
14370
14371# Whether or not to build shared libraries.
14372build_libtool_libs=$enable_shared
14373
14374# Whether or not to build static libraries.
14375build_old_libs=$enable_static
14376
14377# Whether or not to add -lc for building shared libraries.
14378build_libtool_need_lc=$archive_cmds_need_lc_F77
14379
14380# Whether or not to disallow shared libs when runtime libs are static
14381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14382
14383# Whether or not to optimize for fast installation.
14384fast_install=$enable_fast_install
14385
14386# The host system.
14387host_alias=$host_alias
14388host=$host
14389
14390# An echo program that does not interpret backslashes.
14391echo=$lt_echo
14392
14393# The archiver.
14394AR=$lt_AR
14395AR_FLAGS=$lt_AR_FLAGS
14396
14397# A C compiler.
14398LTCC=$lt_LTCC
14399
14400# A language-specific compiler.
14401CC=$lt_compiler_F77
14402
14403# Is the compiler the GNU C compiler?
14404with_gcc=$GCC_F77
14405
14406# An ERE matcher.
14407EGREP=$lt_EGREP
14408
14409# The linker used to build libraries.
14410LD=$lt_LD_F77
14411
14412# Whether we need hard or soft links.
14413LN_S=$lt_LN_S
14414
14415# A BSD-compatible nm program.
14416NM=$lt_NM
14417
14418# A symbol stripping program
14419STRIP=$lt_STRIP
14420
14421# Used to examine libraries when file_magic_cmd begins "file"
14422MAGIC_CMD=$MAGIC_CMD
14423
14424# Used on cygwin: DLL creation program.
14425DLLTOOL="$DLLTOOL"
14426
14427# Used on cygwin: object dumper.
14428OBJDUMP="$OBJDUMP"
14429
14430# Used on cygwin: assembler.
14431AS="$AS"
14432
14433# The name of the directory that contains temporary libtool files.
14434objdir=$objdir
14435
14436# How to create reloadable object files.
14437reload_flag=$lt_reload_flag
14438reload_cmds=$lt_reload_cmds
14439
14440# How to pass a linker flag through the compiler.
14441wl=$lt_lt_prog_compiler_wl_F77
14442
14443# Object file suffix (normally "o").
14444objext="$ac_objext"
14445
14446# Old archive suffix (normally "a").
14447libext="$libext"
14448
14449# Shared library suffix (normally ".so").
14450shrext='$shrext'
14451
14452# Executable file suffix (normally "").
14453exeext="$exeext"
14454
14455# Additional compiler flags for building library objects.
14456pic_flag=$lt_lt_prog_compiler_pic_F77
14457pic_mode=$pic_mode
14458
14459# What is the maximum length of a command?
14460max_cmd_len=$lt_cv_sys_max_cmd_len
14461
14462# Does compiler simultaneously support -c and -o options?
14463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14464
14465# Must we lock files when doing compilation ?
14466need_locks=$lt_need_locks
14467
14468# Do we need the lib prefix for modules?
14469need_lib_prefix=$need_lib_prefix
14470
14471# Do we need a version for libraries?
14472need_version=$need_version
14473
14474# Whether dlopen is supported.
14475dlopen_support=$enable_dlopen
14476
14477# Whether dlopen of programs is supported.
14478dlopen_self=$enable_dlopen_self
14479
14480# Whether dlopen of statically linked programs is supported.
14481dlopen_self_static=$enable_dlopen_self_static
14482
14483# Compiler flag to prevent dynamic linking.
14484link_static_flag=$lt_lt_prog_compiler_static_F77
14485
14486# Compiler flag to turn off builtin functions.
14487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14488
14489# Compiler flag to allow reflexive dlopens.
14490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14491
14492# Compiler flag to generate shared objects directly from archives.
14493whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14494
14495# Compiler flag to generate thread-safe objects.
14496thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14497
14498# Library versioning type.
14499version_type=$version_type
14500
14501# Format of library name prefix.
14502libname_spec=$lt_libname_spec
14503
14504# List of archive names. First name is the real one, the rest are links.
14505# The last name is the one that the linker finds with -lNAME.
14506library_names_spec=$lt_library_names_spec
14507
14508# The coded name of the library, if different from the real name.
14509soname_spec=$lt_soname_spec
14510
14511# Commands used to build and install an old-style archive.
14512RANLIB=$lt_RANLIB
14513old_archive_cmds=$lt_old_archive_cmds_F77
14514old_postinstall_cmds=$lt_old_postinstall_cmds
14515old_postuninstall_cmds=$lt_old_postuninstall_cmds
14516
14517# Create an old-style archive from a shared archive.
14518old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14519
14520# Create a temporary old-style archive to link instead of a shared archive.
14521old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14522
14523# Commands used to build and install a shared archive.
14524archive_cmds=$lt_archive_cmds_F77
14525archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14526postinstall_cmds=$lt_postinstall_cmds
14527postuninstall_cmds=$lt_postuninstall_cmds
14528
14529# Commands used to build a loadable module (assumed same as above if empty)
14530module_cmds=$lt_module_cmds_F77
14531module_expsym_cmds=$lt_module_expsym_cmds_F77
14532
14533# Commands to strip libraries.
14534old_striplib=$lt_old_striplib
14535striplib=$lt_striplib
14536
14537# Dependencies to place before the objects being linked to create a
14538# shared library.
14539predep_objects=$lt_predep_objects_F77
14540
14541# Dependencies to place after the objects being linked to create a
14542# shared library.
14543postdep_objects=$lt_postdep_objects_F77
14544
14545# Dependencies to place before the objects being linked to create a
14546# shared library.
14547predeps=$lt_predeps_F77
14548
14549# Dependencies to place after the objects being linked to create a
14550# shared library.
14551postdeps=$lt_postdeps_F77
14552
14553# The library search path used internally by the compiler when linking
14554# a shared library.
14555compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14556
14557# Method to check whether dependent libraries are shared objects.
14558deplibs_check_method=$lt_deplibs_check_method
14559
14560# Command to use when deplibs_check_method == file_magic.
14561file_magic_cmd=$lt_file_magic_cmd
14562
14563# Flag that allows shared libraries with undefined symbols to be built.
14564allow_undefined_flag=$lt_allow_undefined_flag_F77
14565
14566# Flag that forces no undefined symbols.
14567no_undefined_flag=$lt_no_undefined_flag_F77
14568
14569# Commands used to finish a libtool library installation in a directory.
14570finish_cmds=$lt_finish_cmds
14571
14572# Same as above, but a single script fragment to be evaled but not shown.
14573finish_eval=$lt_finish_eval
14574
14575# Take the output of nm and produce a listing of raw symbols and C names.
14576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14577
14578# Transform the output of nm in a proper C declaration
14579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14580
14581# Transform the output of nm in a C name address pair
14582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14583
14584# This is the shared library runtime path variable.
14585runpath_var=$runpath_var
14586
14587# This is the shared library path variable.
14588shlibpath_var=$shlibpath_var
14589
14590# Is shlibpath searched before the hard-coded library search path?
14591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14592
14593# How to hardcode a shared library path into an executable.
14594hardcode_action=$hardcode_action_F77
14595
14596# Whether we should hardcode library paths into libraries.
14597hardcode_into_libs=$hardcode_into_libs
14598
14599# Flag to hardcode \$libdir into a binary during linking.
14600# This must work even if \$libdir does not exist.
14601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14602
14603# If ld is used when linking, flag to hardcode \$libdir into
14604# a binary during linking. This must work even if \$libdir does
14605# not exist.
14606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14607
14608# Whether we need a single -rpath flag with a separated argument.
14609hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14610
14611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14612# resulting binary.
14613hardcode_direct=$hardcode_direct_F77
14614
14615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14616# resulting binary.
14617hardcode_minus_L=$hardcode_minus_L_F77
14618
14619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14620# the resulting binary.
14621hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14622
14623# Set to yes if building a shared library automatically hardcodes DIR into the library
14624# and all subsequent libraries and executables linked against it.
14625hardcode_automatic=$hardcode_automatic_F77
14626
14627# Variables whose values should be saved in libtool wrapper scripts and
14628# restored at relink time.
14629variables_saved_for_relink="$variables_saved_for_relink"
14630
14631# Whether libtool must link a program against all its dependency libraries.
14632link_all_deplibs=$link_all_deplibs_F77
14633
14634# Compile-time system search path for libraries
14635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14636
14637# Run-time system search path for libraries
14638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14639
14640# Fix the shell variable \$srcfile for the compiler.
14641fix_srcfile_path="$fix_srcfile_path_F77"
14642
14643# Set to yes if exported symbols are required.
14644always_export_symbols=$always_export_symbols_F77
14645
14646# The commands to list exported symbols.
14647export_symbols_cmds=$lt_export_symbols_cmds_F77
14648
14649# The commands to extract the exported symbol list from a shared archive.
14650extract_expsyms_cmds=$lt_extract_expsyms_cmds
14651
14652# Symbols that should not be listed in the preloaded symbols.
14653exclude_expsyms=$lt_exclude_expsyms_F77
14654
14655# Symbols that must always be exported.
14656include_expsyms=$lt_include_expsyms_F77
14657
14658# ### END LIBTOOL TAG CONFIG: $tagname
14659
14660__EOF__
14661
14662
14663else
14664 # If there is no Makefile yet, we rely on a make rule to execute
14665 # `config.status --recheck' to rerun these tests and create the
14666 # libtool script then.
14667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14668 if test -f "$ltmain_in"; then
14669 test -f Makefile && make "$ltmain"
14670 fi
14671fi
14672
14673
14674ac_ext=c
14675ac_cpp='$CPP $CPPFLAGS'
14676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678ac_compiler_gnu=$ac_cv_c_compiler_gnu
14679
14680CC="$lt_save_CC"
14681
14682 else
14683 tagname=""
14684 fi
14685 ;;
14686
14687 GCJ)
14688 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14689
14690
14691
14692# Source file extension for Java test sources.
14693ac_ext=java
14694
14695# Object file extension for compiled Java test sources.
14696objext=o
14697objext_GCJ=$objext
14698
14699# Code to be used in simple compile tests
14700lt_simple_compile_test_code="class foo {}\n"
14701
14702# Code to be used in simple link tests
14703lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14704
14705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14706
14707# If no C compiler was specified, use CC.
14708LTCC=${LTCC-"$CC"}
14709
14710# Allow CC to be a program name with arguments.
14711compiler=$CC
14712
14713
14714# Allow CC to be a program name with arguments.
14715lt_save_CC="$CC"
14716CC=${GCJ-"gcj"}
14717compiler=$CC
14718compiler_GCJ=$CC
14719
14720# GCJ did not exist at the time GCC didn't implicitly link libc in.
14721archive_cmds_need_lc_GCJ=no
14722
14723
14724lt_prog_compiler_no_builtin_flag_GCJ=
14725
14726if test "$GCC" = yes; then
14727 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14728
14729
14730echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14731echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14732if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734else
14735 lt_cv_prog_compiler_rtti_exceptions=no
14736 ac_outfile=conftest.$ac_objext
14737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14738 lt_compiler_flag="-fno-rtti -fno-exceptions"
14739 # Insert the option either (1) after the last *FLAGS variable, or
14740 # (2) before a word containing "conftest.", or (3) at the end.
14741 # Note that $ac_compile itself does not contain backslashes and begins
14742 # with a dollar sign (not a hyphen), so the echo should work correctly.
14743 # The option is referenced via a variable to avoid confusing sed.
14744 lt_compile=`echo "$ac_compile" | $SED \
14745 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000014748 (eval echo "\"\$as_me:14748: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014749 (eval "$lt_compile" 2>conftest.err)
14750 ac_status=$?
14751 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000014752 echo "$as_me:14752: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014753 if (exit $ac_status) && test -s "$ac_outfile"; then
14754 # The compiler can only warn and ignore the option if not recognized
14755 # So say no if there are warnings
14756 if test ! -s conftest.err; then
14757 lt_cv_prog_compiler_rtti_exceptions=yes
14758 fi
14759 fi
14760 $rm conftest*
14761
14762fi
14763echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14764echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14765
14766if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14767 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14768else
14769 :
14770fi
14771
14772fi
14773
14774lt_prog_compiler_wl_GCJ=
14775lt_prog_compiler_pic_GCJ=
14776lt_prog_compiler_static_GCJ=
14777
14778echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14779echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14780
14781 if test "$GCC" = yes; then
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 lt_prog_compiler_static_GCJ='-static'
14784
14785 case $host_os in
14786 aix*)
14787 # All AIX code is PIC.
14788 if test "$host_cpu" = ia64; then
14789 # AIX 5 now supports IA64 processor
14790 lt_prog_compiler_static_GCJ='-Bstatic'
14791 fi
14792 ;;
14793
14794 amigaos*)
14795 # FIXME: we need at least 68020 code to build shared libraries, but
14796 # adding the `-m68020' flag to GCC prevents building anything better,
14797 # like `-m68040'.
14798 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14799 ;;
14800
14801 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14802 # PIC is the default for these OSes.
14803 ;;
14804
14805 mingw* | pw32* | os2*)
14806 # This hack is so that the source file can tell whether it is being
14807 # built for inclusion in a dll (and should export symbols for example).
14808 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14809 ;;
14810
14811 darwin* | rhapsody*)
14812 # PIC is the default on this platform
14813 # Common symbols not allowed in MH_DYLIB files
14814 lt_prog_compiler_pic_GCJ='-fno-common'
14815 ;;
14816
14817 msdosdjgpp*)
14818 # Just because we use GCC doesn't mean we suddenly get shared libraries
14819 # on systems that don't support them.
14820 lt_prog_compiler_can_build_shared_GCJ=no
14821 enable_shared=no
14822 ;;
14823
14824 sysv4*MP*)
14825 if test -d /usr/nec; then
14826 lt_prog_compiler_pic_GCJ=-Kconform_pic
14827 fi
14828 ;;
14829
14830 hpux*)
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='-fPIC'
14839 ;;
14840 esac
14841 ;;
14842
14843 *)
14844 lt_prog_compiler_pic_GCJ='-fPIC'
14845 ;;
14846 esac
14847 else
14848 # PORTME Check for flag to pass linker flags through the system compiler.
14849 case $host_os in
14850 aix*)
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 if test "$host_cpu" = ia64; then
14853 # AIX 5 now supports IA64 processor
14854 lt_prog_compiler_static_GCJ='-Bstatic'
14855 else
14856 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14857 fi
14858 ;;
14859
14860 mingw* | pw32* | os2*)
14861 # This hack is so that the source file can tell whether it is being
14862 # built for inclusion in a dll (and should export symbols for example).
14863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14864 ;;
14865
14866 hpux9* | hpux10* | hpux11*)
14867 lt_prog_compiler_wl_GCJ='-Wl,'
14868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14869 # not for PA HP-UX.
14870 case "$host_cpu" in
14871 hppa*64*|ia64*)
14872 # +Z the default
14873 ;;
14874 *)
14875 lt_prog_compiler_pic_GCJ='+Z'
14876 ;;
14877 esac
14878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14879 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14880 ;;
14881
14882 irix5* | irix6* | nonstopux*)
14883 lt_prog_compiler_wl_GCJ='-Wl,'
14884 # PIC (with -KPIC) is the default.
14885 lt_prog_compiler_static_GCJ='-non_shared'
14886 ;;
14887
14888 newsos6)
14889 lt_prog_compiler_pic_GCJ='-KPIC'
14890 lt_prog_compiler_static_GCJ='-Bstatic'
14891 ;;
14892
14893 linux*)
14894 case $CC in
14895 icc* | ecc*)
14896 lt_prog_compiler_wl_GCJ='-Wl,'
14897 lt_prog_compiler_pic_GCJ='-KPIC'
14898 lt_prog_compiler_static_GCJ='-static'
14899 ;;
14900 ccc*)
14901 lt_prog_compiler_wl_GCJ='-Wl,'
14902 # All Alpha code is PIC.
14903 lt_prog_compiler_static_GCJ='-non_shared'
14904 ;;
14905 esac
14906 ;;
14907
14908 osf3* | osf4* | osf5*)
14909 lt_prog_compiler_wl_GCJ='-Wl,'
14910 # All OSF/1 code is PIC.
14911 lt_prog_compiler_static_GCJ='-non_shared'
14912 ;;
14913
14914 sco3.2v5*)
14915 lt_prog_compiler_pic_GCJ='-Kpic'
14916 lt_prog_compiler_static_GCJ='-dn'
14917 ;;
14918
14919 solaris*)
14920 lt_prog_compiler_wl_GCJ='-Wl,'
14921 lt_prog_compiler_pic_GCJ='-KPIC'
14922 lt_prog_compiler_static_GCJ='-Bstatic'
14923 ;;
14924
14925 sunos4*)
14926 lt_prog_compiler_wl_GCJ='-Qoption ld '
14927 lt_prog_compiler_pic_GCJ='-PIC'
14928 lt_prog_compiler_static_GCJ='-Bstatic'
14929 ;;
14930
14931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14932 lt_prog_compiler_wl_GCJ='-Wl,'
14933 lt_prog_compiler_pic_GCJ='-KPIC'
14934 lt_prog_compiler_static_GCJ='-Bstatic'
14935 ;;
14936
14937 sysv4*MP*)
14938 if test -d /usr/nec ;then
14939 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14940 lt_prog_compiler_static_GCJ='-Bstatic'
14941 fi
14942 ;;
14943
14944 uts4*)
14945 lt_prog_compiler_pic_GCJ='-pic'
14946 lt_prog_compiler_static_GCJ='-Bstatic'
14947 ;;
14948
14949 *)
14950 lt_prog_compiler_can_build_shared_GCJ=no
14951 ;;
14952 esac
14953 fi
14954
14955echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14956echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14957
14958#
14959# Check to make sure the PIC flag actually works.
14960#
14961if test -n "$lt_prog_compiler_pic_GCJ"; then
14962
14963echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14964echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14965if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968 lt_prog_compiler_pic_works_GCJ=no
14969 ac_outfile=conftest.$ac_objext
14970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14971 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 # The option is referenced via a variable to avoid confusing sed.
14977 lt_compile=`echo "$ac_compile" | $SED \
14978 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000014981 (eval echo "\"\$as_me:14981: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014982 (eval "$lt_compile" 2>conftest.err)
14983 ac_status=$?
14984 cat conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000014985 echo "$as_me:14985: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014986 if (exit $ac_status) && test -s "$ac_outfile"; then
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test ! -s conftest.err; then
14990 lt_prog_compiler_pic_works_GCJ=yes
14991 fi
14992 fi
14993 $rm conftest*
14994
14995fi
14996echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14997echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14998
14999if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15000 case $lt_prog_compiler_pic_GCJ in
15001 "" | " "*) ;;
15002 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15003 esac
15004else
15005 lt_prog_compiler_pic_GCJ=
15006 lt_prog_compiler_can_build_shared_GCJ=no
15007fi
15008
15009fi
15010case "$host_os" in
15011 # For platforms which do not support PIC, -DPIC is meaningless:
15012 *djgpp*)
15013 lt_prog_compiler_pic_GCJ=
15014 ;;
15015 *)
15016 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15017 ;;
15018esac
15019
15020echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15021echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15022if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
15025 lt_cv_prog_compiler_c_o_GCJ=no
15026 $rm -r conftest 2>/dev/null
15027 mkdir conftest
15028 cd conftest
15029 mkdir out
15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031
15032 lt_compiler_flag="-o out/conftest2.$ac_objext"
15033 # Insert the option either (1) after the last *FLAGS variable, or
15034 # (2) before a word containing "conftest.", or (3) at the end.
15035 # Note that $ac_compile itself does not contain backslashes and begins
15036 # with a dollar sign (not a hyphen), so the echo should work correctly.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
drh7b5717e2004-11-25 13:50:01 +000015041 (eval echo "\"\$as_me:15041: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015042 (eval "$lt_compile" 2>out/conftest.err)
15043 ac_status=$?
15044 cat out/conftest.err >&5
drh7b5717e2004-11-25 13:50:01 +000015045 echo "$as_me:15045: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15047 then
15048 # The compiler can only warn and ignore the option if not recognized
15049 # So say no if there are warnings
15050 if test ! -s out/conftest.err; then
15051 lt_cv_prog_compiler_c_o_GCJ=yes
15052 fi
15053 fi
15054 chmod u+w .
15055 $rm conftest*
15056 # SGI C++ compiler will create directory out/ii_files/ for
15057 # template instantiation
15058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15059 $rm out/* && rmdir out
15060 cd ..
15061 rmdir conftest
15062 $rm conftest*
15063
15064fi
15065echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15066echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15067
15068
15069hard_links="nottested"
15070if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15071 # do not overwrite the value of need_locks provided by the user
15072 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15073echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15074 hard_links=yes
15075 $rm conftest*
15076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15077 touch conftest.a
15078 ln conftest.a conftest.b 2>&5 || hard_links=no
15079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15080 echo "$as_me:$LINENO: result: $hard_links" >&5
15081echo "${ECHO_T}$hard_links" >&6
15082 if test "$hard_links" = no; then
15083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15084echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15085 need_locks=warn
15086 fi
15087else
15088 need_locks=no
15089fi
15090
15091echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15093
15094 runpath_var=
15095 allow_undefined_flag_GCJ=
15096 enable_shared_with_static_runtimes_GCJ=no
15097 archive_cmds_GCJ=
15098 archive_expsym_cmds_GCJ=
15099 old_archive_From_new_cmds_GCJ=
15100 old_archive_from_expsyms_cmds_GCJ=
15101 export_dynamic_flag_spec_GCJ=
15102 whole_archive_flag_spec_GCJ=
15103 thread_safe_flag_spec_GCJ=
15104 hardcode_libdir_flag_spec_GCJ=
15105 hardcode_libdir_flag_spec_ld_GCJ=
15106 hardcode_libdir_separator_GCJ=
15107 hardcode_direct_GCJ=no
15108 hardcode_minus_L_GCJ=no
15109 hardcode_shlibpath_var_GCJ=unsupported
15110 link_all_deplibs_GCJ=unknown
15111 hardcode_automatic_GCJ=no
15112 module_cmds_GCJ=
15113 module_expsym_cmds_GCJ=
15114 always_export_symbols_GCJ=no
15115 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15116 # include_expsyms should be a list of space-separated symbols to be *always*
15117 # included in the symbol list
15118 include_expsyms_GCJ=
15119 # exclude_expsyms can be an extended regexp of symbols to exclude
15120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15122 # as well as any symbol that contains `d'.
15123 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15125 # platforms (ab)use it in PIC code, but their linkers get confused if
15126 # the symbol is explicitly referenced. Since portable code cannot
15127 # rely on this symbol name, it's probably fine to never include it in
15128 # preloaded symbol tables.
15129 extract_expsyms_cmds=
15130
15131 case $host_os in
15132 cygwin* | mingw* | pw32*)
15133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15134 # When not using gcc, we currently assume that we are using
15135 # Microsoft Visual C++.
15136 if test "$GCC" != yes; then
15137 with_gnu_ld=no
15138 fi
15139 ;;
15140 openbsd*)
15141 with_gnu_ld=no
15142 ;;
15143 esac
15144
15145 ld_shlibs_GCJ=yes
15146 if test "$with_gnu_ld" = yes; then
15147 # If archive_cmds runs LD, not CC, wlarc should be empty
15148 wlarc='${wl}'
15149
15150 # See if GNU ld supports shared libraries.
15151 case $host_os in
15152 aix3* | aix4* | aix5*)
15153 # On AIX/PPC, the GNU linker is very broken
15154 if test "$host_cpu" != ia64; then
15155 ld_shlibs_GCJ=no
15156 cat <<EOF 1>&2
15157
15158*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15159*** to be unable to reliably create shared libraries on AIX.
15160*** Therefore, libtool is disabling shared libraries support. If you
15161*** really care for shared libraries, you may want to modify your PATH
15162*** so that a non-GNU linker is found, and then restart.
15163
15164EOF
15165 fi
15166 ;;
15167
15168 amigaos*)
15169 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)'
15170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15171 hardcode_minus_L_GCJ=yes
15172
15173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15174 # that the semantics of dynamic libraries on AmigaOS, at least up
15175 # to version 4, is to share data among multiple programs linked
15176 # with the same dynamic library. Since this doesn't match the
15177 # behavior of shared libraries on other platforms, we can't use
15178 # them.
15179 ld_shlibs_GCJ=no
15180 ;;
15181
15182 beos*)
15183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184 allow_undefined_flag_GCJ=unsupported
15185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15186 # support --undefined. This deserves some investigation. FIXME
15187 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188 else
15189 ld_shlibs_GCJ=no
15190 fi
15191 ;;
15192
15193 cygwin* | mingw* | pw32*)
15194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15195 # as there is no search path for DLLs.
15196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15197 allow_undefined_flag_GCJ=unsupported
15198 always_export_symbols_GCJ=no
15199 enable_shared_with_static_runtimes_GCJ=yes
15200 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15201
15202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15204 # If the export-symbols file already is a .def file (1st line
15205 # is EXPORTS), use it as is; otherwise, prepend...
15206 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15207 cp $export_symbols $output_objdir/$soname.def;
15208 else
15209 echo EXPORTS > $output_objdir/$soname.def;
15210 cat $export_symbols >> $output_objdir/$soname.def;
15211 fi~
15212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15213 else
15214 ld_shlibs=no
15215 fi
15216 ;;
15217
15218 netbsd* | knetbsd*-gnu)
15219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15220 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15221 wlarc=
15222 else
15223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15225 fi
15226 ;;
15227
15228 solaris* | sysv5*)
15229 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15230 ld_shlibs_GCJ=no
15231 cat <<EOF 1>&2
15232
15233*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15234*** create shared libraries on Solaris systems. Therefore, libtool
15235*** is disabling shared libraries support. We urge you to upgrade GNU
15236*** binutils to release 2.9.1 or newer. Another option is to modify
15237*** your PATH or compiler configuration so that the native linker is
15238*** used, and then restart.
15239
15240EOF
15241 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15242 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15243 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15244 else
15245 ld_shlibs_GCJ=no
15246 fi
15247 ;;
15248
15249 sunos4*)
15250 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15251 wlarc=
15252 hardcode_direct_GCJ=yes
15253 hardcode_shlibpath_var_GCJ=no
15254 ;;
15255
15256 linux*)
15257 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15258 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15259 archive_cmds_GCJ="$tmp_archive_cmds"
15260 supports_anon_versioning=no
15261 case `$LD -v 2>/dev/null` in
15262 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15265 *\ 2.11.*) ;; # other 2.11 versions
15266 *) supports_anon_versioning=yes ;;
15267 esac
15268 if test $supports_anon_versioning = yes; then
15269 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15270cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15271$echo "local: *; };" >> $output_objdir/$libname.ver~
15272 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15273 else
15274 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15275 fi
15276 else
15277 ld_shlibs_GCJ=no
15278 fi
15279 ;;
15280
15281 *)
15282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15285 else
15286 ld_shlibs_GCJ=no
15287 fi
15288 ;;
15289 esac
15290
15291 if test "$ld_shlibs_GCJ" = yes; then
15292 runpath_var=LD_RUN_PATH
15293 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15294 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15295 # ancient GNU ld didn't support --whole-archive et. al.
15296 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15297 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15298 else
15299 whole_archive_flag_spec_GCJ=
15300 fi
15301 fi
15302 else
15303 # PORTME fill in a description of your system's linker (not GNU ld)
15304 case $host_os in
15305 aix3*)
15306 allow_undefined_flag_GCJ=unsupported
15307 always_export_symbols_GCJ=yes
15308 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'
15309 # Note: this linker hardcodes the directories in LIBPATH if there
15310 # are no directories specified by -L.
15311 hardcode_minus_L_GCJ=yes
15312 if test "$GCC" = yes && test -z "$link_static_flag"; then
15313 # Neither direct hardcoding nor static linking is supported with a
15314 # broken collect2.
15315 hardcode_direct_GCJ=unsupported
15316 fi
15317 ;;
15318
15319 aix4* | aix5*)
15320 if test "$host_cpu" = ia64; then
15321 # On IA64, the linker does run time linking by default, so we don't
15322 # have to do anything special.
15323 aix_use_runtimelinking=no
15324 exp_sym_flag='-Bexport'
15325 no_entry_flag=""
15326 else
15327 # If we're using GNU nm, then we don't want the "-C" option.
15328 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15329 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15330 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'
15331 else
15332 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'
15333 fi
15334 aix_use_runtimelinking=no
15335
15336 # Test if we are trying to use run time linking or normal
15337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15338 # need to do runtime linking.
15339 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15340 for ld_flag in $LDFLAGS; do
15341 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15342 aix_use_runtimelinking=yes
15343 break
15344 fi
15345 done
15346 esac
15347
15348 exp_sym_flag='-bexport'
15349 no_entry_flag='-bnoentry'
15350 fi
15351
15352 # When large executables or shared objects are built, AIX ld can
15353 # have problems creating the table of contents. If linking a library
15354 # or program results in "error TOC overflow" add -mminimal-toc to
15355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15357
15358 archive_cmds_GCJ=''
15359 hardcode_direct_GCJ=yes
15360 hardcode_libdir_separator_GCJ=':'
15361 link_all_deplibs_GCJ=yes
15362
15363 if test "$GCC" = yes; then
15364 case $host_os in aix4.012|aix4.012.*)
15365 # We only want to do this on AIX 4.2 and lower, the check
15366 # below for broken collect2 doesn't work under 4.3+
15367 collect2name=`${CC} -print-prog-name=collect2`
15368 if test -f "$collect2name" && \
15369 strings "$collect2name" | grep resolve_lib_name >/dev/null
15370 then
15371 # We have reworked collect2
15372 hardcode_direct_GCJ=yes
15373 else
15374 # We have old collect2
15375 hardcode_direct_GCJ=unsupported
15376 # It fails to find uninstalled libraries when the uninstalled
15377 # path is not listed in the libpath. Setting hardcode_minus_L
15378 # to unsupported forces relinking
15379 hardcode_minus_L_GCJ=yes
15380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15381 hardcode_libdir_separator_GCJ=
15382 fi
15383 esac
15384 shared_flag='-shared'
15385 else
15386 # not using gcc
15387 if test "$host_cpu" = ia64; then
15388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15389 # chokes on -Wl,-G. The following line is correct:
15390 shared_flag='-G'
15391 else
15392 if test "$aix_use_runtimelinking" = yes; then
15393 shared_flag='${wl}-G'
15394 else
15395 shared_flag='${wl}-bM:SRE'
15396 fi
15397 fi
15398 fi
15399
15400 # It seems that -bexpall does not export symbols beginning with
15401 # underscore (_), so it is better to generate a list of symbols to export.
15402 always_export_symbols_GCJ=yes
15403 if test "$aix_use_runtimelinking" = yes; then
15404 # Warning - without using the other runtime loading flags (-brtl),
15405 # -berok will link without error, but may produce a broken library.
15406 allow_undefined_flag_GCJ='-berok'
15407 # Determine the default libpath from the value encoded in an empty executable.
15408 cat >conftest.$ac_ext <<_ACEOF
15409/* confdefs.h. */
15410_ACEOF
15411cat confdefs.h >>conftest.$ac_ext
15412cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h. */
15414
15415int
15416main ()
15417{
15418
15419 ;
15420 return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext conftest$ac_exeext
15424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445
15446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15447}'`
15448# Check for a 64-bit object if we didn't find anything.
15449if 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; }
15450}'`; fi
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455fi
15456rm -f conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459
15460 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 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"
15462 else
15463 if test "$host_cpu" = ia64; then
15464 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15465 allow_undefined_flag_GCJ="-z nodefs"
15466 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"
15467 else
15468 # Determine the default libpath from the value encoded in an empty executable.
15469 cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
15475
15476int
15477main ()
15478{
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext conftest$ac_exeext
15485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15486 (eval $ac_link) 2>conftest.er1
15487 ac_status=$?
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest$ac_exeext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506
15507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15508}'`
15509# Check for a 64-bit object if we didn't find anything.
15510if 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; }
15511}'`; fi
15512else
15513 echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
15515
15516fi
15517rm -f conftest.err conftest.$ac_objext \
15518 conftest$ac_exeext conftest.$ac_ext
15519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15520
15521 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15522 # Warning - without using the other run time loading flags,
15523 # -berok will link without error, but may produce a broken library.
15524 no_undefined_flag_GCJ=' ${wl}-bernotok'
15525 allow_undefined_flag_GCJ=' ${wl}-berok'
15526 # -bexpall does not export symbols beginning with underscore (_)
15527 always_export_symbols_GCJ=yes
15528 # Exported symbols can be pulled into shared objects from archives
15529 whole_archive_flag_spec_GCJ=' '
15530 archive_cmds_need_lc_GCJ=yes
15531 # This is similar to how AIX traditionally builds it's shared libraries.
15532 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'
15533 fi
15534 fi
15535 ;;
15536
15537 amigaos*)
15538 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)'
15539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15540 hardcode_minus_L_GCJ=yes
15541 # see comment about different semantics on the GNU ld section
15542 ld_shlibs_GCJ=no
15543 ;;
15544
15545 bsdi4*)
15546 export_dynamic_flag_spec_GCJ=-rdynamic
15547 ;;
15548
15549 cygwin* | mingw* | pw32*)
15550 # When not using gcc, we currently assume that we are using
15551 # Microsoft Visual C++.
15552 # hardcode_libdir_flag_spec is actually meaningless, as there is
15553 # no search path for DLLs.
15554 hardcode_libdir_flag_spec_GCJ=' '
15555 allow_undefined_flag_GCJ=unsupported
15556 # Tell ltmain to make .lib files, not .a files.
15557 libext=lib
15558 # Tell ltmain to make .dll files, not .so files.
15559 shrext=".dll"
15560 # FIXME: Setting linknames here is a bad hack.
15561 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15562 # The linker will automatically build a .lib file if we build a DLL.
15563 old_archive_From_new_cmds_GCJ='true'
15564 # FIXME: Should let the user specify the lib program.
15565 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15566 fix_srcfile_path='`cygpath -w "$srcfile"`'
15567 enable_shared_with_static_runtimes_GCJ=yes
15568 ;;
15569
15570 darwin* | rhapsody*)
15571 if test "$GXX" = yes ; then
15572 archive_cmds_need_lc_GCJ=no
15573 case "$host_os" in
15574 rhapsody* | darwin1.[012])
15575 allow_undefined_flag_GCJ='-undefined suppress'
15576 ;;
15577 *) # Darwin 1.3 on
15578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15579 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15580 else
15581 case ${MACOSX_DEPLOYMENT_TARGET} in
15582 10.[012])
15583 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15584 ;;
15585 10.*)
15586 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15587 ;;
15588 esac
15589 fi
15590 ;;
15591 esac
15592 lt_int_apple_cc_single_mod=no
15593 output_verbose_link_cmd='echo'
15594 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15595 lt_int_apple_cc_single_mod=yes
15596 fi
15597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15598 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15599 else
15600 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'
15601 fi
15602 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15604 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15605 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}'
15606 else
15607 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}'
15608 fi
15609 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}'
15610 hardcode_direct_GCJ=no
15611 hardcode_automatic_GCJ=yes
15612 hardcode_shlibpath_var_GCJ=unsupported
15613 whole_archive_flag_spec_GCJ='-all_load $convenience'
15614 link_all_deplibs_GCJ=yes
15615 else
15616 ld_shlibs_GCJ=no
15617 fi
15618 ;;
15619
15620 dgux*)
15621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15623 hardcode_shlibpath_var_GCJ=no
15624 ;;
15625
15626 freebsd1*)
15627 ld_shlibs_GCJ=no
15628 ;;
15629
15630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15631 # support. Future versions do this automatically, but an explicit c++rt0.o
15632 # does not break anything, and helps significantly (at the cost of a little
15633 # extra space).
15634 freebsd2.2*)
15635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15636 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15637 hardcode_direct_GCJ=yes
15638 hardcode_shlibpath_var_GCJ=no
15639 ;;
15640
15641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15642 freebsd2*)
15643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_direct_GCJ=yes
15645 hardcode_minus_L_GCJ=yes
15646 hardcode_shlibpath_var_GCJ=no
15647 ;;
15648
15649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15650 freebsd* | kfreebsd*-gnu)
15651 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15652 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15653 hardcode_direct_GCJ=yes
15654 hardcode_shlibpath_var_GCJ=no
15655 ;;
15656
15657 hpux9*)
15658 if test "$GCC" = yes; then
15659 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'
15660 else
15661 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'
15662 fi
15663 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15664 hardcode_libdir_separator_GCJ=:
15665 hardcode_direct_GCJ=yes
15666
15667 # hardcode_minus_L: Not really in the search PATH,
15668 # but as the default location of the library.
15669 hardcode_minus_L_GCJ=yes
15670 export_dynamic_flag_spec_GCJ='${wl}-E'
15671 ;;
15672
15673 hpux10* | hpux11*)
15674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15675 case "$host_cpu" in
15676 hppa*64*|ia64*)
15677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15678 ;;
15679 *)
15680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15681 ;;
15682 esac
15683 else
15684 case "$host_cpu" in
15685 hppa*64*|ia64*)
15686 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 ;;
15688 *)
15689 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15690 ;;
15691 esac
15692 fi
15693 if test "$with_gnu_ld" = no; then
15694 case "$host_cpu" in
15695 hppa*64*)
15696 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15697 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15698 hardcode_libdir_separator_GCJ=:
15699 hardcode_direct_GCJ=no
15700 hardcode_shlibpath_var_GCJ=no
15701 ;;
15702 ia64*)
15703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15704 hardcode_direct_GCJ=no
15705 hardcode_shlibpath_var_GCJ=no
15706
15707 # hardcode_minus_L: Not really in the search PATH,
15708 # but as the default location of the library.
15709 hardcode_minus_L_GCJ=yes
15710 ;;
15711 *)
15712 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15713 hardcode_libdir_separator_GCJ=:
15714 hardcode_direct_GCJ=yes
15715 export_dynamic_flag_spec_GCJ='${wl}-E'
15716
15717 # hardcode_minus_L: Not really in the search PATH,
15718 # but as the default location of the library.
15719 hardcode_minus_L_GCJ=yes
15720 ;;
15721 esac
15722 fi
15723 ;;
15724
15725 irix5* | irix6* | nonstopux*)
15726 if test "$GCC" = yes; then
15727 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'
15728 else
15729 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'
15730 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15731 fi
15732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator_GCJ=:
15734 link_all_deplibs_GCJ=yes
15735 ;;
15736
15737 netbsd* | knetbsd*-gnu)
15738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15740 else
15741 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15742 fi
15743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15744 hardcode_direct_GCJ=yes
15745 hardcode_shlibpath_var_GCJ=no
15746 ;;
15747
15748 newsos6)
15749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_direct_GCJ=yes
15751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15752 hardcode_libdir_separator_GCJ=:
15753 hardcode_shlibpath_var_GCJ=no
15754 ;;
15755
15756 openbsd*)
15757 hardcode_direct_GCJ=yes
15758 hardcode_shlibpath_var_GCJ=no
15759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15760 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15762 export_dynamic_flag_spec_GCJ='${wl}-E'
15763 else
15764 case $host_os in
15765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15768 ;;
15769 *)
15770 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15772 ;;
15773 esac
15774 fi
15775 ;;
15776
15777 os2*)
15778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779 hardcode_minus_L_GCJ=yes
15780 allow_undefined_flag_GCJ=unsupported
15781 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'
15782 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15783 ;;
15784
15785 osf3*)
15786 if test "$GCC" = yes; then
15787 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15788 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'
15789 else
15790 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15791 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'
15792 fi
15793 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15794 hardcode_libdir_separator_GCJ=:
15795 ;;
15796
15797 osf4* | osf5*) # as osf3* with the addition of -msym flag
15798 if test "$GCC" = yes; then
15799 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15800 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'
15801 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15802 else
15803 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15804 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'
15805 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~
15806 $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'
15807
15808 # Both c and cxx compiler support -rpath directly
15809 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15810 fi
15811 hardcode_libdir_separator_GCJ=:
15812 ;;
15813
15814 sco3.2v5*)
15815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_shlibpath_var_GCJ=no
15817 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15818 runpath_var=LD_RUN_PATH
15819 hardcode_runpath_var=yes
15820 ;;
15821
15822 solaris*)
15823 no_undefined_flag_GCJ=' -z text'
15824 if test "$GCC" = yes; then
15825 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15827 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15828 else
15829 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15832 fi
15833 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15834 hardcode_shlibpath_var_GCJ=no
15835 case $host_os in
15836 solaris2.[0-5] | solaris2.[0-5].*) ;;
15837 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15838 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15839 esac
15840 link_all_deplibs_GCJ=yes
15841 ;;
15842
15843 sunos4*)
15844 if test "x$host_vendor" = xsequent; then
15845 # Use $CC to link under sequent, because it throws in some extra .o
15846 # files that make .init and .fini sections work.
15847 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15848 else
15849 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15850 fi
15851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15852 hardcode_direct_GCJ=yes
15853 hardcode_minus_L_GCJ=yes
15854 hardcode_shlibpath_var_GCJ=no
15855 ;;
15856
15857 sysv4)
15858 case $host_vendor in
15859 sni)
15860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_direct_GCJ=yes # is this really true???
15862 ;;
15863 siemens)
15864 ## LD is ld it makes a PLAMLIB
15865 ## CC just makes a GrossModule.
15866 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15867 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15868 hardcode_direct_GCJ=no
15869 ;;
15870 motorola)
15871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15873 ;;
15874 esac
15875 runpath_var='LD_RUN_PATH'
15876 hardcode_shlibpath_var_GCJ=no
15877 ;;
15878
15879 sysv4.3*)
15880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 hardcode_shlibpath_var_GCJ=no
15882 export_dynamic_flag_spec_GCJ='-Bexport'
15883 ;;
15884
15885 sysv4*MP*)
15886 if test -d /usr/nec; then
15887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_shlibpath_var_GCJ=no
15889 runpath_var=LD_RUN_PATH
15890 hardcode_runpath_var=yes
15891 ld_shlibs_GCJ=yes
15892 fi
15893 ;;
15894
15895 sysv4.2uw2*)
15896 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15897 hardcode_direct_GCJ=yes
15898 hardcode_minus_L_GCJ=no
15899 hardcode_shlibpath_var_GCJ=no
15900 hardcode_runpath_var=yes
15901 runpath_var=LD_RUN_PATH
15902 ;;
15903
15904 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15905 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15906 if test "$GCC" = yes; then
15907 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 else
15909 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 fi
15911 runpath_var='LD_RUN_PATH'
15912 hardcode_shlibpath_var_GCJ=no
15913 ;;
15914
15915 sysv5*)
15916 no_undefined_flag_GCJ=' -z text'
15917 # $CC -shared without GNU ld will not create a library from C++
15918 # object files and a static libstdc++, better avoid it by now
15919 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15922 hardcode_libdir_flag_spec_GCJ=
15923 hardcode_shlibpath_var_GCJ=no
15924 runpath_var='LD_RUN_PATH'
15925 ;;
15926
15927 uts4*)
15928 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15930 hardcode_shlibpath_var_GCJ=no
15931 ;;
15932
15933 *)
15934 ld_shlibs_GCJ=no
15935 ;;
15936 esac
15937 fi
15938
15939echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15940echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15941test "$ld_shlibs_GCJ" = no && can_build_shared=no
15942
15943variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15944if test "$GCC" = yes; then
15945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15946fi
15947
15948#
15949# Do we need to explicitly link libc?
15950#
15951case "x$archive_cmds_need_lc_GCJ" in
15952x|xyes)
15953 # Assume -lc should be added
15954 archive_cmds_need_lc_GCJ=yes
15955
15956 if test "$enable_shared" = yes && test "$GCC" = yes; then
15957 case $archive_cmds_GCJ in
15958 *'~'*)
15959 # FIXME: we may have to deal with multi-command sequences.
15960 ;;
15961 '$CC '*)
15962 # Test whether the compiler implicitly links with -lc since on some
15963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15964 # to ld, don't add -lc before -lgcc.
15965 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15966echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15967 $rm conftest*
15968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15969
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } 2>conftest.err; then
15975 soname=conftest
15976 lib=conftest
15977 libobjs=conftest.$ac_objext
15978 deplibs=
15979 wl=$lt_prog_compiler_wl_GCJ
15980 compiler_flags=-v
15981 linker_flags=-v
15982 verstring=
15983 output_objdir=.
15984 libname=conftest
15985 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15986 allow_undefined_flag_GCJ=
15987 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15988 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }
15992 then
15993 archive_cmds_need_lc_GCJ=no
15994 else
15995 archive_cmds_need_lc_GCJ=yes
15996 fi
15997 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15998 else
15999 cat conftest.err 1>&5
16000 fi
16001 $rm conftest*
16002 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16003echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16004 ;;
16005 esac
16006 fi
16007 ;;
16008esac
16009
16010echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16011echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16012library_names_spec=
16013libname_spec='lib$name'
16014soname_spec=
16015shrext=".so"
16016postinstall_cmds=
16017postuninstall_cmds=
16018finish_cmds=
16019finish_eval=
16020shlibpath_var=
16021shlibpath_overrides_runpath=unknown
16022version_type=none
16023dynamic_linker="$host_os ld.so"
16024sys_lib_dlsearch_path_spec="/lib /usr/lib"
16025if test "$GCC" = yes; then
16026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16027 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16028 # if the path contains ";" then we assume it to be the separator
16029 # otherwise default to the standard path separator (i.e. ":") - it is
16030 # assumed that no part of a normal pathname contains ";" but that should
16031 # okay in the real world where ";" in dirpaths is itself problematic.
16032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16033 else
16034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16035 fi
16036else
16037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16038fi
16039need_lib_prefix=unknown
16040hardcode_into_libs=no
16041
16042# when you set need_version to no, make sure it does not cause -set_version
16043# flags to be left without arguments
16044need_version=unknown
16045
16046case $host_os in
16047aix3*)
16048 version_type=linux
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16050 shlibpath_var=LIBPATH
16051
16052 # AIX 3 has no versioning support, so we append a major version to the name.
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 ;;
16055
16056aix4* | aix5*)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
16060 hardcode_into_libs=yes
16061 if test "$host_cpu" = ia64; then
16062 # AIX 5 supports IA64
16063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 else
16066 # With GCC up to 2.95.x, collect2 would create an import file
16067 # for dependence libraries. The import file would start with
16068 # the line `#! .'. This would cause the generated library to
16069 # depend on `.', always an invalid library. This was fixed in
16070 # development snapshots of GCC prior to 3.0.
16071 case $host_os in
16072 aix4 | aix4.[01] | aix4.[01].*)
16073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16074 echo ' yes '
16075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16076 :
16077 else
16078 can_build_shared=no
16079 fi
16080 ;;
16081 esac
16082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16083 # soname into executable. Probably we can add versioning support to
16084 # collect2, so additional links can be useful in future.
16085 if test "$aix_use_runtimelinking" = yes; then
16086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16087 # instead of lib<name>.a to let people know that these are not
16088 # typical AIX shared libraries.
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 else
16091 # We preserve .a as extension for shared libraries through AIX4.2
16092 # and later when we are not doing run time linking.
16093 library_names_spec='${libname}${release}.a $libname.a'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 fi
16096 shlibpath_var=LIBPATH
16097 fi
16098 ;;
16099
16100amigaos*)
16101 library_names_spec='$libname.ixlibrary $libname.a'
16102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16103 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'
16104 ;;
16105
16106beos*)
16107 library_names_spec='${libname}${shared_ext}'
16108 dynamic_linker="$host_os ld.so"
16109 shlibpath_var=LIBRARY_PATH
16110 ;;
16111
16112bsdi4*)
16113 version_type=linux
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16121 # the default ld.so.conf also contains /usr/contrib/lib and
16122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16123 # libtool to hard-code these into programs
16124 ;;
16125
16126cygwin* | mingw* | pw32*)
16127 version_type=windows
16128 shrext=".dll"
16129 need_version=no
16130 need_lib_prefix=no
16131
16132 case $GCC,$host_os in
16133 yes,cygwin* | yes,mingw* | yes,pw32*)
16134 library_names_spec='$libname.dll.a'
16135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16136 postinstall_cmds='base_file=`basename \${file}`~
16137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16138 dldir=$destdir/`dirname \$dlpath`~
16139 test -d \$dldir || mkdir -p \$dldir~
16140 $install_prog $dir/$dlname \$dldir/$dlname'
16141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16142 dlpath=$dir/\$dldll~
16143 $rm \$dlpath'
16144 shlibpath_overrides_runpath=yes
16145
16146 case $host_os in
16147 cygwin*)
16148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16151 ;;
16152 mingw*)
16153 # MinGW DLLs use traditional 'lib' prefix
16154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16157 # It is most probably a Windows format PATH printed by
16158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16159 # path with ; separators, and with drive letters. We can handle the
16160 # drive letters (cygwin fileutils understands them), so leave them,
16161 # especially as we might pass files found there to a mingw objdump,
16162 # which wouldn't understand a cygwinified path. Ahh.
16163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16164 else
16165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16166 fi
16167 ;;
16168 pw32*)
16169 # pw32 DLLs use 'pw' prefix rather than 'lib'
16170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16171 ;;
16172 esac
16173 ;;
16174
16175 *)
16176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16177 ;;
16178 esac
16179 dynamic_linker='Win32 ld.exe'
16180 # FIXME: first we should search . and the directory the executable is in
16181 shlibpath_var=PATH
16182 ;;
16183
16184darwin* | rhapsody*)
16185 dynamic_linker="$host_os dyld"
16186 version_type=darwin
16187 need_lib_prefix=no
16188 need_version=no
16189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16190 soname_spec='${libname}${release}${major}$shared_ext'
16191 shlibpath_overrides_runpath=yes
16192 shlibpath_var=DYLD_LIBRARY_PATH
16193 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16194 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16195 if test "$GCC" = yes; then
16196 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"`
16197 else
16198 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16199 fi
16200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16201 ;;
16202
16203dgux*)
16204 version_type=linux
16205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 ;;
16211
16212freebsd1*)
16213 dynamic_linker=no
16214 ;;
16215
16216kfreebsd*-gnu)
16217 version_type=linux
16218 need_lib_prefix=no
16219 need_version=no
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 shlibpath_var=LD_LIBRARY_PATH
16223 shlibpath_overrides_runpath=no
16224 hardcode_into_libs=yes
16225 dynamic_linker='GNU ld.so'
16226 ;;
16227
16228freebsd*)
16229 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16230 version_type=freebsd-$objformat
16231 case $version_type in
16232 freebsd-elf*)
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16234 need_version=no
16235 need_lib_prefix=no
16236 ;;
16237 freebsd-*)
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16239 need_version=yes
16240 ;;
16241 esac
16242 shlibpath_var=LD_LIBRARY_PATH
16243 case $host_os in
16244 freebsd2*)
16245 shlibpath_overrides_runpath=yes
16246 ;;
16247 freebsd3.01* | freebsdelf3.01*)
16248 shlibpath_overrides_runpath=yes
16249 hardcode_into_libs=yes
16250 ;;
16251 *) # from 3.2 on
16252 shlibpath_overrides_runpath=no
16253 hardcode_into_libs=yes
16254 ;;
16255 esac
16256 ;;
16257
16258gnu*)
16259 version_type=linux
16260 need_lib_prefix=no
16261 need_version=no
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 hardcode_into_libs=yes
16266 ;;
16267
16268hpux9* | hpux10* | hpux11*)
16269 # Give a soname corresponding to the major version so that dld.sl refuses to
16270 # link against other versions.
16271 version_type=sunos
16272 need_lib_prefix=no
16273 need_version=no
16274 case "$host_cpu" in
16275 ia64*)
16276 shrext='.so'
16277 hardcode_into_libs=yes
16278 dynamic_linker="$host_os dld.so"
16279 shlibpath_var=LD_LIBRARY_PATH
16280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 if test "X$HPUX_IA64_MODE" = X32; then
16284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16285 else
16286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16287 fi
16288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16289 ;;
16290 hppa*64*)
16291 shrext='.sl'
16292 hardcode_into_libs=yes
16293 dynamic_linker="$host_os dld.sl"
16294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16300 ;;
16301 *)
16302 shrext='.sl'
16303 dynamic_linker="$host_os dld.sl"
16304 shlibpath_var=SHLIB_PATH
16305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 ;;
16309 esac
16310 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16311 postinstall_cmds='chmod 555 $lib'
16312 ;;
16313
16314irix5* | irix6* | nonstopux*)
16315 case $host_os in
16316 nonstopux*) version_type=nonstopux ;;
16317 *)
16318 if test "$lt_cv_prog_gnu_ld" = yes; then
16319 version_type=linux
16320 else
16321 version_type=irix
16322 fi ;;
16323 esac
16324 need_lib_prefix=no
16325 need_version=no
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16328 case $host_os in
16329 irix5* | nonstopux*)
16330 libsuff= shlibsuff=
16331 ;;
16332 *)
16333 case $LD in # libtool.m4 will add one of these switches to LD
16334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16335 libsuff= shlibsuff= libmagic=32-bit;;
16336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16337 libsuff=32 shlibsuff=N32 libmagic=N32;;
16338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16340 *) libsuff= shlibsuff= libmagic=never-match;;
16341 esac
16342 ;;
16343 esac
16344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16345 shlibpath_overrides_runpath=no
16346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16348 hardcode_into_libs=yes
16349 ;;
16350
16351# No shared lib support for Linux oldld, aout, or coff.
16352linux*oldld* | linux*aout* | linux*coff*)
16353 dynamic_linker=no
16354 ;;
16355
16356# This must be Linux ELF.
16357linux*)
16358 version_type=linux
16359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 # This implies no fast_install, which is unacceptable.
16367 # Some rework will be needed to allow for fast_install
16368 # before this can be enabled.
16369 hardcode_into_libs=yes
16370
16371 # Append ld.so.conf contents to the search path
16372 if test -f /etc/ld.so.conf; then
16373 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16374 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16375 fi
16376
16377 # We used to test for /lib/ld.so.1 and disable shared libraries on
16378 # powerpc, because MkLinux only supported shared libraries with the
16379 # GNU dynamic linker. Since this was broken with cross compilers,
16380 # most powerpc-linux boxes support dynamic linking these days and
16381 # people can always --disable-shared, the test was removed, and we
16382 # assume the GNU/Linux dynamic linker is in use.
16383 dynamic_linker='GNU/Linux ld.so'
16384 ;;
16385
16386knetbsd*-gnu)
16387 version_type=linux
16388 need_lib_prefix=no
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=no
16394 hardcode_into_libs=yes
16395 dynamic_linker='GNU ld.so'
16396 ;;
16397
16398netbsd*)
16399 version_type=sunos
16400 need_lib_prefix=no
16401 need_version=no
16402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405 dynamic_linker='NetBSD (a.out) ld.so'
16406 else
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 dynamic_linker='NetBSD ld.elf_so'
16410 fi
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 hardcode_into_libs=yes
16414 ;;
16415
16416newsos6)
16417 version_type=linux
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 ;;
16422
16423nto-qnx*)
16424 version_type=linux
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 ;;
16432
16433openbsd*)
16434 version_type=sunos
16435 need_lib_prefix=no
16436 need_version=yes
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16441 case $host_os in
16442 openbsd2.[89] | openbsd2.[89].*)
16443 shlibpath_overrides_runpath=no
16444 ;;
16445 *)
16446 shlibpath_overrides_runpath=yes
16447 ;;
16448 esac
16449 else
16450 shlibpath_overrides_runpath=yes
16451 fi
16452 ;;
16453
16454os2*)
16455 libname_spec='$name'
16456 shrext=".dll"
16457 need_lib_prefix=no
16458 library_names_spec='$libname${shared_ext} $libname.a'
16459 dynamic_linker='OS/2 ld.exe'
16460 shlibpath_var=LIBPATH
16461 ;;
16462
16463osf3* | osf4* | osf5*)
16464 version_type=osf
16465 need_lib_prefix=no
16466 need_version=no
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472 ;;
16473
16474sco3.2v5*)
16475 version_type=osf
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16478 shlibpath_var=LD_LIBRARY_PATH
16479 ;;
16480
16481solaris*)
16482 version_type=linux
16483 need_lib_prefix=no
16484 need_version=no
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath=yes
16489 hardcode_into_libs=yes
16490 # ldd complains unless libraries are executable
16491 postinstall_cmds='chmod +x $lib'
16492 ;;
16493
16494sunos4*)
16495 version_type=sunos
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 if test "$with_gnu_ld" = yes; then
16501 need_lib_prefix=no
16502 fi
16503 need_version=yes
16504 ;;
16505
16506sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16507 version_type=linux
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 case $host_vendor in
16512 sni)
16513 shlibpath_overrides_runpath=no
16514 need_lib_prefix=no
16515 export_dynamic_flag_spec='${wl}-Blargedynsym'
16516 runpath_var=LD_RUN_PATH
16517 ;;
16518 siemens)
16519 need_lib_prefix=no
16520 ;;
16521 motorola)
16522 need_lib_prefix=no
16523 need_version=no
16524 shlibpath_overrides_runpath=no
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16526 ;;
16527 esac
16528 ;;
16529
16530sysv4*MP*)
16531 if test -d /usr/nec ;then
16532 version_type=linux
16533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16534 soname_spec='$libname${shared_ext}.$major'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 fi
16537 ;;
16538
16539uts4*)
16540 version_type=linux
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 ;;
16545
16546*)
16547 dynamic_linker=no
16548 ;;
16549esac
16550echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16551echo "${ECHO_T}$dynamic_linker" >&6
16552test "$dynamic_linker" = no && can_build_shared=no
16553
16554echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16555echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16556hardcode_action_GCJ=
16557if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16558 test -n "$runpath_var GCJ" || \
16559 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16560
16561 # We can hardcode non-existant directories.
16562 if test "$hardcode_direct_GCJ" != no &&
16563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16564 # have to relink, otherwise we might link with an installed library
16565 # when we should be linking with a yet-to-be-installed one
16566 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16567 test "$hardcode_minus_L_GCJ" != no; then
16568 # Linking always hardcodes the temporary library directory.
16569 hardcode_action_GCJ=relink
16570 else
16571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16572 hardcode_action_GCJ=immediate
16573 fi
16574else
16575 # We cannot hardcode anything, or else we can only hardcode existing
16576 # directories.
16577 hardcode_action_GCJ=unsupported
16578fi
16579echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16580echo "${ECHO_T}$hardcode_action_GCJ" >&6
16581
16582if test "$hardcode_action_GCJ" = relink; then
16583 # Fast installation is not supported
16584 enable_fast_install=no
16585elif test "$shlibpath_overrides_runpath" = yes ||
16586 test "$enable_shared" = no; then
16587 # Fast installation is not necessary
16588 enable_fast_install=needless
16589fi
16590
16591striplib=
16592old_striplib=
16593echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16594echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16595if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16598 echo "$as_me:$LINENO: result: yes" >&5
16599echo "${ECHO_T}yes" >&6
16600else
16601# FIXME - insert some real tests, host_os isn't really good enough
16602 case $host_os in
16603 darwin*)
16604 if test -n "$STRIP" ; then
16605 striplib="$STRIP -x"
16606 echo "$as_me:$LINENO: result: yes" >&5
16607echo "${ECHO_T}yes" >&6
16608 else
16609 echo "$as_me:$LINENO: result: no" >&5
16610echo "${ECHO_T}no" >&6
16611fi
16612 ;;
16613 *)
16614 echo "$as_me:$LINENO: result: no" >&5
16615echo "${ECHO_T}no" >&6
16616 ;;
16617 esac
16618fi
16619
16620if test "x$enable_dlopen" != xyes; then
16621 enable_dlopen=unknown
16622 enable_dlopen_self=unknown
16623 enable_dlopen_self_static=unknown
16624else
16625 lt_cv_dlopen=no
16626 lt_cv_dlopen_libs=
16627
16628 case $host_os in
16629 beos*)
16630 lt_cv_dlopen="load_add_on"
16631 lt_cv_dlopen_libs=
16632 lt_cv_dlopen_self=yes
16633 ;;
16634
16635 mingw* | pw32*)
16636 lt_cv_dlopen="LoadLibrary"
16637 lt_cv_dlopen_libs=
16638 ;;
16639
16640 cygwin*)
16641 lt_cv_dlopen="dlopen"
16642 lt_cv_dlopen_libs=
16643 ;;
16644
16645 darwin*)
16646 # if libdl is installed we need to link against it
16647 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16648echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16649if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651else
16652 ac_check_lib_save_LIBS=$LIBS
16653LIBS="-ldl $LIBS"
16654cat >conftest.$ac_ext <<_ACEOF
16655/* confdefs.h. */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h. */
16660
16661/* Override any gcc2 internal prototype to avoid an error. */
16662#ifdef __cplusplus
16663extern "C"
16664#endif
16665/* We use char because int might match the return type of a gcc2
16666 builtin and then its argument prototype would still apply. */
16667char dlopen ();
16668int
16669main ()
16670{
16671dlopen ();
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676rm -f conftest.$ac_objext conftest$ac_exeext
16677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16678 (eval $ac_link) 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016685 { ac_try='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest$ac_exeext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_lib_dl_dlopen=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703ac_cv_lib_dl_dlopen=no
16704fi
16705rm -f conftest.err conftest.$ac_objext \
16706 conftest$ac_exeext conftest.$ac_ext
16707LIBS=$ac_check_lib_save_LIBS
16708fi
16709echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16710echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16711if test $ac_cv_lib_dl_dlopen = yes; then
16712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16713else
16714
16715 lt_cv_dlopen="dyld"
16716 lt_cv_dlopen_libs=
16717 lt_cv_dlopen_self=yes
16718
16719fi
16720
16721 ;;
16722
16723 *)
16724 echo "$as_me:$LINENO: checking for shl_load" >&5
16725echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16726if test "${ac_cv_func_shl_load+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728else
16729 cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16737#define shl_load innocuous_shl_load
16738
16739/* System header to define __stub macros and hopefully few prototypes,
16740 which can conflict with char shl_load (); below.
16741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16742 <limits.h> exists even on freestanding compilers. */
16743
16744#ifdef __STDC__
16745# include <limits.h>
16746#else
16747# include <assert.h>
16748#endif
16749
16750#undef shl_load
16751
16752/* Override any gcc2 internal prototype to avoid an error. */
16753#ifdef __cplusplus
16754extern "C"
16755{
16756#endif
16757/* We use char because int might match the return type of a gcc2
16758 builtin and then its argument prototype would still apply. */
16759char shl_load ();
16760/* The GNU C library defines this for functions which it implements
16761 to always fail with ENOSYS. Some functions are actually named
16762 something starting with __ and the normal name is an alias. */
16763#if defined (__stub_shl_load) || defined (__stub___shl_load)
16764choke me
16765#else
16766char (*f) () = shl_load;
16767#endif
16768#ifdef __cplusplus
16769}
16770#endif
16771
16772int
16773main ()
16774{
16775return f != shl_load;
16776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext conftest$ac_exeext
16781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782 (eval $ac_link) 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016789 { ac_try='test -z "$ac_c_werror_flag"
16790 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_func_shl_load=yes
16803else
16804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807ac_cv_func_shl_load=no
16808fi
16809rm -f conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811fi
16812echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16813echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16814if test $ac_cv_func_shl_load = yes; then
16815 lt_cv_dlopen="shl_load"
16816else
16817 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16818echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16819if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821else
16822 ac_check_lib_save_LIBS=$LIBS
16823LIBS="-ldld $LIBS"
16824cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830
16831/* Override any gcc2 internal prototype to avoid an error. */
16832#ifdef __cplusplus
16833extern "C"
16834#endif
16835/* We use char because int might match the return type of a gcc2
16836 builtin and then its argument prototype would still apply. */
16837char shl_load ();
16838int
16839main ()
16840{
16841shl_load ();
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846rm -f conftest.$ac_objext conftest$ac_exeext
16847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_lib_dld_shl_load=yes
16869else
16870 echo "$as_me: failed program was:" >&5
16871sed 's/^/| /' conftest.$ac_ext >&5
16872
16873ac_cv_lib_dld_shl_load=no
16874fi
16875rm -f conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16877LIBS=$ac_check_lib_save_LIBS
16878fi
16879echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16880echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16881if test $ac_cv_lib_dld_shl_load = yes; then
16882 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16883else
16884 echo "$as_me:$LINENO: checking for dlopen" >&5
16885echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16886if test "${ac_cv_func_dlopen+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888else
16889 cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16897#define dlopen innocuous_dlopen
16898
16899/* System header to define __stub macros and hopefully few prototypes,
16900 which can conflict with char dlopen (); below.
16901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16902 <limits.h> exists even on freestanding compilers. */
16903
16904#ifdef __STDC__
16905# include <limits.h>
16906#else
16907# include <assert.h>
16908#endif
16909
16910#undef dlopen
16911
16912/* Override any gcc2 internal prototype to avoid an error. */
16913#ifdef __cplusplus
16914extern "C"
16915{
16916#endif
16917/* We use char because int might match the return type of a gcc2
16918 builtin and then its argument prototype would still apply. */
16919char dlopen ();
16920/* The GNU C library defines this for functions which it implements
16921 to always fail with ENOSYS. Some functions are actually named
16922 something starting with __ and the normal name is an alias. */
16923#if defined (__stub_dlopen) || defined (__stub___dlopen)
16924choke me
16925#else
16926char (*f) () = dlopen;
16927#endif
16928#ifdef __cplusplus
16929}
16930#endif
16931
16932int
16933main ()
16934{
16935return f != dlopen;
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext conftest$ac_exeext
16941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016949 { ac_try='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest$ac_exeext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_func_dlopen=yes
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967ac_cv_func_dlopen=no
16968fi
16969rm -f conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16971fi
16972echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16973echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16974if test $ac_cv_func_dlopen = yes; then
16975 lt_cv_dlopen="dlopen"
16976else
16977 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16978echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16979if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 ac_check_lib_save_LIBS=$LIBS
16983LIBS="-ldl $LIBS"
16984cat >conftest.$ac_ext <<_ACEOF
16985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
16990
16991/* Override any gcc2 internal prototype to avoid an error. */
16992#ifdef __cplusplus
16993extern "C"
16994#endif
16995/* We use char because int might match the return type of a gcc2
16996 builtin and then its argument prototype would still apply. */
16997char dlopen ();
16998int
16999main ()
17000{
17001dlopen ();
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext conftest$ac_exeext
17007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017015 { ac_try='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_lib_dl_dlopen=yes
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033ac_cv_lib_dl_dlopen=no
17034fi
17035rm -f conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17037LIBS=$ac_check_lib_save_LIBS
17038fi
17039echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17040echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17041if test $ac_cv_lib_dl_dlopen = yes; then
17042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17043else
17044 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17045echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17046if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 ac_check_lib_save_LIBS=$LIBS
17050LIBS="-lsvld $LIBS"
17051cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057
17058/* Override any gcc2 internal prototype to avoid an error. */
17059#ifdef __cplusplus
17060extern "C"
17061#endif
17062/* We use char because int might match the return type of a gcc2
17063 builtin and then its argument prototype would still apply. */
17064char dlopen ();
17065int
17066main ()
17067{
17068dlopen ();
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073rm -f conftest.$ac_objext conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017082 { ac_try='test -z "$ac_c_werror_flag"
17083 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_lib_svld_dlopen=yes
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100ac_cv_lib_svld_dlopen=no
17101fi
17102rm -f conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17104LIBS=$ac_check_lib_save_LIBS
17105fi
17106echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17107echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17108if test $ac_cv_lib_svld_dlopen = yes; then
17109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17110else
17111 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17112echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17113if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115else
17116 ac_check_lib_save_LIBS=$LIBS
17117LIBS="-ldld $LIBS"
17118cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124
17125/* Override any gcc2 internal prototype to avoid an error. */
17126#ifdef __cplusplus
17127extern "C"
17128#endif
17129/* We use char because int might match the return type of a gcc2
17130 builtin and then its argument prototype would still apply. */
17131char dld_link ();
17132int
17133main ()
17134{
17135dld_link ();
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext conftest$ac_exeext
17141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17142 (eval $ac_link) 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017149 { ac_try='test -z "$ac_c_werror_flag"
17150 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try='test -s conftest$ac_exeext'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_cv_lib_dld_dld_link=yes
17163else
17164 echo "$as_me: failed program was:" >&5
17165sed 's/^/| /' conftest.$ac_ext >&5
17166
17167ac_cv_lib_dld_dld_link=no
17168fi
17169rm -f conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17171LIBS=$ac_check_lib_save_LIBS
17172fi
17173echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17174echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17175if test $ac_cv_lib_dld_dld_link = yes; then
17176 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17177fi
17178
17179
17180fi
17181
17182
17183fi
17184
17185
17186fi
17187
17188
17189fi
17190
17191
17192fi
17193
17194 ;;
17195 esac
17196
17197 if test "x$lt_cv_dlopen" != xno; then
17198 enable_dlopen=yes
17199 else
17200 enable_dlopen=no
17201 fi
17202
17203 case $lt_cv_dlopen in
17204 dlopen)
17205 save_CPPFLAGS="$CPPFLAGS"
17206 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17207
17208 save_LDFLAGS="$LDFLAGS"
17209 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17210
17211 save_LIBS="$LIBS"
17212 LIBS="$lt_cv_dlopen_libs $LIBS"
17213
17214 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17215echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17216if test "${lt_cv_dlopen_self+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 if test "$cross_compiling" = yes; then :
17220 lt_cv_dlopen_self=cross
17221else
17222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17223 lt_status=$lt_dlunknown
17224 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +000017225#line 17225 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017226#include "confdefs.h"
17227
17228#if HAVE_DLFCN_H
17229#include <dlfcn.h>
17230#endif
17231
17232#include <stdio.h>
17233
17234#ifdef RTLD_GLOBAL
17235# define LT_DLGLOBAL RTLD_GLOBAL
17236#else
17237# ifdef DL_GLOBAL
17238# define LT_DLGLOBAL DL_GLOBAL
17239# else
17240# define LT_DLGLOBAL 0
17241# endif
17242#endif
17243
17244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17245 find out it does not work in some platform. */
17246#ifndef LT_DLLAZY_OR_NOW
17247# ifdef RTLD_LAZY
17248# define LT_DLLAZY_OR_NOW RTLD_LAZY
17249# else
17250# ifdef DL_LAZY
17251# define LT_DLLAZY_OR_NOW DL_LAZY
17252# else
17253# ifdef RTLD_NOW
17254# define LT_DLLAZY_OR_NOW RTLD_NOW
17255# else
17256# ifdef DL_NOW
17257# define LT_DLLAZY_OR_NOW DL_NOW
17258# else
17259# define LT_DLLAZY_OR_NOW 0
17260# endif
17261# endif
17262# endif
17263# endif
17264#endif
17265
17266#ifdef __cplusplus
17267extern "C" void exit (int);
17268#endif
17269
17270void fnord() { int i=42;}
17271int main ()
17272{
17273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17274 int status = $lt_dlunknown;
17275
17276 if (self)
17277 {
17278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17280 /* dlclose (self); */
17281 }
17282
17283 exit (status);
17284}
17285EOF
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17291 (./conftest; exit; ) 2>/dev/null
17292 lt_status=$?
17293 case x$lt_status in
17294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17296 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17297 esac
17298 else :
17299 # compilation failed
17300 lt_cv_dlopen_self=no
17301 fi
17302fi
17303rm -fr conftest*
17304
17305
17306fi
17307echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17308echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17309
17310 if test "x$lt_cv_dlopen_self" = xyes; then
17311 LDFLAGS="$LDFLAGS $link_static_flag"
17312 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17313echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17314if test "${lt_cv_dlopen_self_static+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 if test "$cross_compiling" = yes; then :
17318 lt_cv_dlopen_self_static=cross
17319else
17320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17321 lt_status=$lt_dlunknown
17322 cat > conftest.$ac_ext <<EOF
drh7b5717e2004-11-25 13:50:01 +000017323#line 17323 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017324#include "confdefs.h"
17325
17326#if HAVE_DLFCN_H
17327#include <dlfcn.h>
17328#endif
17329
17330#include <stdio.h>
17331
17332#ifdef RTLD_GLOBAL
17333# define LT_DLGLOBAL RTLD_GLOBAL
17334#else
17335# ifdef DL_GLOBAL
17336# define LT_DLGLOBAL DL_GLOBAL
17337# else
17338# define LT_DLGLOBAL 0
17339# endif
17340#endif
17341
17342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17343 find out it does not work in some platform. */
17344#ifndef LT_DLLAZY_OR_NOW
17345# ifdef RTLD_LAZY
17346# define LT_DLLAZY_OR_NOW RTLD_LAZY
17347# else
17348# ifdef DL_LAZY
17349# define LT_DLLAZY_OR_NOW DL_LAZY
17350# else
17351# ifdef RTLD_NOW
17352# define LT_DLLAZY_OR_NOW RTLD_NOW
17353# else
17354# ifdef DL_NOW
17355# define LT_DLLAZY_OR_NOW DL_NOW
17356# else
17357# define LT_DLLAZY_OR_NOW 0
17358# endif
17359# endif
17360# endif
17361# endif
17362#endif
17363
17364#ifdef __cplusplus
17365extern "C" void exit (int);
17366#endif
17367
17368void fnord() { int i=42;}
17369int main ()
17370{
17371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17372 int status = $lt_dlunknown;
17373
17374 if (self)
17375 {
17376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17378 /* dlclose (self); */
17379 }
17380
17381 exit (status);
17382}
17383EOF
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17389 (./conftest; exit; ) 2>/dev/null
17390 lt_status=$?
17391 case x$lt_status in
17392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17394 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17395 esac
17396 else :
17397 # compilation failed
17398 lt_cv_dlopen_self_static=no
17399 fi
17400fi
17401rm -fr conftest*
17402
17403
17404fi
17405echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17406echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17407 fi
17408
17409 CPPFLAGS="$save_CPPFLAGS"
17410 LDFLAGS="$save_LDFLAGS"
17411 LIBS="$save_LIBS"
17412 ;;
17413 esac
17414
17415 case $lt_cv_dlopen_self in
17416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17417 *) enable_dlopen_self=unknown ;;
17418 esac
17419
17420 case $lt_cv_dlopen_self_static in
17421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17422 *) enable_dlopen_self_static=unknown ;;
17423 esac
17424fi
17425
17426
17427# The else clause should only fire when bootstrapping the
17428# libtool distribution, otherwise you forgot to ship ltmain.sh
17429# with your package, and you will get complaints that there are
17430# no rules to generate ltmain.sh.
17431if test -f "$ltmain"; then
17432 # See if we are running on zsh, and set the options which allow our commands through
17433 # without removal of \ escapes.
17434 if test -n "${ZSH_VERSION+set}" ; then
17435 setopt NO_GLOB_SUBST
17436 fi
17437 # Now quote all the things that may contain metacharacters while being
17438 # careful not to overquote the AC_SUBSTed values. We take copies of the
17439 # variables and quote the copies for generation of the libtool script.
17440 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17441 SED SHELL STRIP \
17442 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17443 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17444 deplibs_check_method reload_flag reload_cmds need_locks \
17445 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17446 lt_cv_sys_global_symbol_to_c_name_address \
17447 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17448 old_postinstall_cmds old_postuninstall_cmds \
17449 compiler_GCJ \
17450 CC_GCJ \
17451 LD_GCJ \
17452 lt_prog_compiler_wl_GCJ \
17453 lt_prog_compiler_pic_GCJ \
17454 lt_prog_compiler_static_GCJ \
17455 lt_prog_compiler_no_builtin_flag_GCJ \
17456 export_dynamic_flag_spec_GCJ \
17457 thread_safe_flag_spec_GCJ \
17458 whole_archive_flag_spec_GCJ \
17459 enable_shared_with_static_runtimes_GCJ \
17460 old_archive_cmds_GCJ \
17461 old_archive_from_new_cmds_GCJ \
17462 predep_objects_GCJ \
17463 postdep_objects_GCJ \
17464 predeps_GCJ \
17465 postdeps_GCJ \
17466 compiler_lib_search_path_GCJ \
17467 archive_cmds_GCJ \
17468 archive_expsym_cmds_GCJ \
17469 postinstall_cmds_GCJ \
17470 postuninstall_cmds_GCJ \
17471 old_archive_from_expsyms_cmds_GCJ \
17472 allow_undefined_flag_GCJ \
17473 no_undefined_flag_GCJ \
17474 export_symbols_cmds_GCJ \
17475 hardcode_libdir_flag_spec_GCJ \
17476 hardcode_libdir_flag_spec_ld_GCJ \
17477 hardcode_libdir_separator_GCJ \
17478 hardcode_automatic_GCJ \
17479 module_cmds_GCJ \
17480 module_expsym_cmds_GCJ \
17481 lt_cv_prog_compiler_c_o_GCJ \
17482 exclude_expsyms_GCJ \
17483 include_expsyms_GCJ; do
17484
17485 case $var in
17486 old_archive_cmds_GCJ | \
17487 old_archive_from_new_cmds_GCJ | \
17488 archive_cmds_GCJ | \
17489 archive_expsym_cmds_GCJ | \
17490 module_cmds_GCJ | \
17491 module_expsym_cmds_GCJ | \
17492 old_archive_from_expsyms_cmds_GCJ | \
17493 export_symbols_cmds_GCJ | \
17494 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17495 postinstall_cmds | postuninstall_cmds | \
17496 old_postinstall_cmds | old_postuninstall_cmds | \
17497 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17498 # Double-quote double-evaled strings.
17499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17500 ;;
17501 *)
17502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17503 ;;
17504 esac
17505 done
17506
17507 case $lt_echo in
17508 *'\$0 --fallback-echo"')
17509 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17510 ;;
17511 esac
17512
17513cfgfile="$ofile"
17514
17515 cat <<__EOF__ >> "$cfgfile"
17516# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17517
17518# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17519
17520# Shell to use when invoking shell scripts.
17521SHELL=$lt_SHELL
17522
17523# Whether or not to build shared libraries.
17524build_libtool_libs=$enable_shared
17525
17526# Whether or not to build static libraries.
17527build_old_libs=$enable_static
17528
17529# Whether or not to add -lc for building shared libraries.
17530build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17531
17532# Whether or not to disallow shared libs when runtime libs are static
17533allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17534
17535# Whether or not to optimize for fast installation.
17536fast_install=$enable_fast_install
17537
17538# The host system.
17539host_alias=$host_alias
17540host=$host
17541
17542# An echo program that does not interpret backslashes.
17543echo=$lt_echo
17544
17545# The archiver.
17546AR=$lt_AR
17547AR_FLAGS=$lt_AR_FLAGS
17548
17549# A C compiler.
17550LTCC=$lt_LTCC
17551
17552# A language-specific compiler.
17553CC=$lt_compiler_GCJ
17554
17555# Is the compiler the GNU C compiler?
17556with_gcc=$GCC_GCJ
17557
17558# An ERE matcher.
17559EGREP=$lt_EGREP
17560
17561# The linker used to build libraries.
17562LD=$lt_LD_GCJ
17563
17564# Whether we need hard or soft links.
17565LN_S=$lt_LN_S
17566
17567# A BSD-compatible nm program.
17568NM=$lt_NM
17569
17570# A symbol stripping program
17571STRIP=$lt_STRIP
17572
17573# Used to examine libraries when file_magic_cmd begins "file"
17574MAGIC_CMD=$MAGIC_CMD
17575
17576# Used on cygwin: DLL creation program.
17577DLLTOOL="$DLLTOOL"
17578
17579# Used on cygwin: object dumper.
17580OBJDUMP="$OBJDUMP"
17581
17582# Used on cygwin: assembler.
17583AS="$AS"
17584
17585# The name of the directory that contains temporary libtool files.
17586objdir=$objdir
17587
17588# How to create reloadable object files.
17589reload_flag=$lt_reload_flag
17590reload_cmds=$lt_reload_cmds
17591
17592# How to pass a linker flag through the compiler.
17593wl=$lt_lt_prog_compiler_wl_GCJ
17594
17595# Object file suffix (normally "o").
17596objext="$ac_objext"
17597
17598# Old archive suffix (normally "a").
17599libext="$libext"
17600
17601# Shared library suffix (normally ".so").
17602shrext='$shrext'
17603
17604# Executable file suffix (normally "").
17605exeext="$exeext"
17606
17607# Additional compiler flags for building library objects.
17608pic_flag=$lt_lt_prog_compiler_pic_GCJ
17609pic_mode=$pic_mode
17610
17611# What is the maximum length of a command?
17612max_cmd_len=$lt_cv_sys_max_cmd_len
17613
17614# Does compiler simultaneously support -c and -o options?
17615compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17616
17617# Must we lock files when doing compilation ?
17618need_locks=$lt_need_locks
17619
17620# Do we need the lib prefix for modules?
17621need_lib_prefix=$need_lib_prefix
17622
17623# Do we need a version for libraries?
17624need_version=$need_version
17625
17626# Whether dlopen is supported.
17627dlopen_support=$enable_dlopen
17628
17629# Whether dlopen of programs is supported.
17630dlopen_self=$enable_dlopen_self
17631
17632# Whether dlopen of statically linked programs is supported.
17633dlopen_self_static=$enable_dlopen_self_static
17634
17635# Compiler flag to prevent dynamic linking.
17636link_static_flag=$lt_lt_prog_compiler_static_GCJ
17637
17638# Compiler flag to turn off builtin functions.
17639no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17640
17641# Compiler flag to allow reflexive dlopens.
17642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17643
17644# Compiler flag to generate shared objects directly from archives.
17645whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17646
17647# Compiler flag to generate thread-safe objects.
17648thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17649
17650# Library versioning type.
17651version_type=$version_type
17652
17653# Format of library name prefix.
17654libname_spec=$lt_libname_spec
17655
17656# List of archive names. First name is the real one, the rest are links.
17657# The last name is the one that the linker finds with -lNAME.
17658library_names_spec=$lt_library_names_spec
17659
17660# The coded name of the library, if different from the real name.
17661soname_spec=$lt_soname_spec
17662
17663# Commands used to build and install an old-style archive.
17664RANLIB=$lt_RANLIB
17665old_archive_cmds=$lt_old_archive_cmds_GCJ
17666old_postinstall_cmds=$lt_old_postinstall_cmds
17667old_postuninstall_cmds=$lt_old_postuninstall_cmds
17668
17669# Create an old-style archive from a shared archive.
17670old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17671
17672# Create a temporary old-style archive to link instead of a shared archive.
17673old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17674
17675# Commands used to build and install a shared archive.
17676archive_cmds=$lt_archive_cmds_GCJ
17677archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17678postinstall_cmds=$lt_postinstall_cmds
17679postuninstall_cmds=$lt_postuninstall_cmds
17680
17681# Commands used to build a loadable module (assumed same as above if empty)
17682module_cmds=$lt_module_cmds_GCJ
17683module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17684
17685# Commands to strip libraries.
17686old_striplib=$lt_old_striplib
17687striplib=$lt_striplib
17688
17689# Dependencies to place before the objects being linked to create a
17690# shared library.
17691predep_objects=$lt_predep_objects_GCJ
17692
17693# Dependencies to place after the objects being linked to create a
17694# shared library.
17695postdep_objects=$lt_postdep_objects_GCJ
17696
17697# Dependencies to place before the objects being linked to create a
17698# shared library.
17699predeps=$lt_predeps_GCJ
17700
17701# Dependencies to place after the objects being linked to create a
17702# shared library.
17703postdeps=$lt_postdeps_GCJ
17704
17705# The library search path used internally by the compiler when linking
17706# a shared library.
17707compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17708
17709# Method to check whether dependent libraries are shared objects.
17710deplibs_check_method=$lt_deplibs_check_method
17711
17712# Command to use when deplibs_check_method == file_magic.
17713file_magic_cmd=$lt_file_magic_cmd
17714
17715# Flag that allows shared libraries with undefined symbols to be built.
17716allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17717
17718# Flag that forces no undefined symbols.
17719no_undefined_flag=$lt_no_undefined_flag_GCJ
17720
17721# Commands used to finish a libtool library installation in a directory.
17722finish_cmds=$lt_finish_cmds
17723
17724# Same as above, but a single script fragment to be evaled but not shown.
17725finish_eval=$lt_finish_eval
17726
17727# Take the output of nm and produce a listing of raw symbols and C names.
17728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17729
17730# Transform the output of nm in a proper C declaration
17731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17732
17733# Transform the output of nm in a C name address pair
17734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17735
17736# This is the shared library runtime path variable.
17737runpath_var=$runpath_var
17738
17739# This is the shared library path variable.
17740shlibpath_var=$shlibpath_var
17741
17742# Is shlibpath searched before the hard-coded library search path?
17743shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17744
17745# How to hardcode a shared library path into an executable.
17746hardcode_action=$hardcode_action_GCJ
17747
17748# Whether we should hardcode library paths into libraries.
17749hardcode_into_libs=$hardcode_into_libs
17750
17751# Flag to hardcode \$libdir into a binary during linking.
17752# This must work even if \$libdir does not exist.
17753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17754
17755# If ld is used when linking, flag to hardcode \$libdir into
17756# a binary during linking. This must work even if \$libdir does
17757# not exist.
17758hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17759
17760# Whether we need a single -rpath flag with a separated argument.
17761hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17762
17763# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17764# resulting binary.
17765hardcode_direct=$hardcode_direct_GCJ
17766
17767# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17768# resulting binary.
17769hardcode_minus_L=$hardcode_minus_L_GCJ
17770
17771# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17772# the resulting binary.
17773hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17774
17775# Set to yes if building a shared library automatically hardcodes DIR into the library
17776# and all subsequent libraries and executables linked against it.
17777hardcode_automatic=$hardcode_automatic_GCJ
17778
17779# Variables whose values should be saved in libtool wrapper scripts and
17780# restored at relink time.
17781variables_saved_for_relink="$variables_saved_for_relink"
17782
17783# Whether libtool must link a program against all its dependency libraries.
17784link_all_deplibs=$link_all_deplibs_GCJ
17785
17786# Compile-time system search path for libraries
17787sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17788
17789# Run-time system search path for libraries
17790sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17791
17792# Fix the shell variable \$srcfile for the compiler.
17793fix_srcfile_path="$fix_srcfile_path_GCJ"
17794
17795# Set to yes if exported symbols are required.
17796always_export_symbols=$always_export_symbols_GCJ
17797
17798# The commands to list exported symbols.
17799export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17800
17801# The commands to extract the exported symbol list from a shared archive.
17802extract_expsyms_cmds=$lt_extract_expsyms_cmds
17803
17804# Symbols that should not be listed in the preloaded symbols.
17805exclude_expsyms=$lt_exclude_expsyms_GCJ
17806
17807# Symbols that must always be exported.
17808include_expsyms=$lt_include_expsyms_GCJ
17809
17810# ### END LIBTOOL TAG CONFIG: $tagname
17811
17812__EOF__
17813
17814
17815else
17816 # If there is no Makefile yet, we rely on a make rule to execute
17817 # `config.status --recheck' to rerun these tests and create the
17818 # libtool script then.
17819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17820 if test -f "$ltmain_in"; then
17821 test -f Makefile && make "$ltmain"
17822 fi
17823fi
17824
17825
17826ac_ext=c
17827ac_cpp='$CPP $CPPFLAGS'
17828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17830ac_compiler_gnu=$ac_cv_c_compiler_gnu
17831
17832CC="$lt_save_CC"
17833
17834 else
17835 tagname=""
17836 fi
17837 ;;
17838
17839 RC)
17840
17841
17842
17843# Source file extension for RC test sources.
17844ac_ext=rc
17845
17846# Object file extension for compiled RC test sources.
17847objext=o
17848objext_RC=$objext
17849
17850# Code to be used in simple compile tests
17851lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17852
17853# Code to be used in simple link tests
17854lt_simple_link_test_code="$lt_simple_compile_test_code"
17855
17856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17857
17858# If no C compiler was specified, use CC.
17859LTCC=${LTCC-"$CC"}
17860
17861# Allow CC to be a program name with arguments.
17862compiler=$CC
17863
17864
17865# Allow CC to be a program name with arguments.
17866lt_save_CC="$CC"
17867CC=${RC-"windres"}
17868compiler=$CC
17869compiler_RC=$CC
17870lt_cv_prog_compiler_c_o_RC=yes
17871
17872# The else clause should only fire when bootstrapping the
17873# libtool distribution, otherwise you forgot to ship ltmain.sh
17874# with your package, and you will get complaints that there are
17875# no rules to generate ltmain.sh.
17876if test -f "$ltmain"; then
17877 # See if we are running on zsh, and set the options which allow our commands through
17878 # without removal of \ escapes.
17879 if test -n "${ZSH_VERSION+set}" ; then
17880 setopt NO_GLOB_SUBST
17881 fi
17882 # Now quote all the things that may contain metacharacters while being
17883 # careful not to overquote the AC_SUBSTed values. We take copies of the
17884 # variables and quote the copies for generation of the libtool script.
17885 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17886 SED SHELL STRIP \
17887 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17888 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17889 deplibs_check_method reload_flag reload_cmds need_locks \
17890 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17891 lt_cv_sys_global_symbol_to_c_name_address \
17892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17893 old_postinstall_cmds old_postuninstall_cmds \
17894 compiler_RC \
17895 CC_RC \
17896 LD_RC \
17897 lt_prog_compiler_wl_RC \
17898 lt_prog_compiler_pic_RC \
17899 lt_prog_compiler_static_RC \
17900 lt_prog_compiler_no_builtin_flag_RC \
17901 export_dynamic_flag_spec_RC \
17902 thread_safe_flag_spec_RC \
17903 whole_archive_flag_spec_RC \
17904 enable_shared_with_static_runtimes_RC \
17905 old_archive_cmds_RC \
17906 old_archive_from_new_cmds_RC \
17907 predep_objects_RC \
17908 postdep_objects_RC \
17909 predeps_RC \
17910 postdeps_RC \
17911 compiler_lib_search_path_RC \
17912 archive_cmds_RC \
17913 archive_expsym_cmds_RC \
17914 postinstall_cmds_RC \
17915 postuninstall_cmds_RC \
17916 old_archive_from_expsyms_cmds_RC \
17917 allow_undefined_flag_RC \
17918 no_undefined_flag_RC \
17919 export_symbols_cmds_RC \
17920 hardcode_libdir_flag_spec_RC \
17921 hardcode_libdir_flag_spec_ld_RC \
17922 hardcode_libdir_separator_RC \
17923 hardcode_automatic_RC \
17924 module_cmds_RC \
17925 module_expsym_cmds_RC \
17926 lt_cv_prog_compiler_c_o_RC \
17927 exclude_expsyms_RC \
17928 include_expsyms_RC; do
17929
17930 case $var in
17931 old_archive_cmds_RC | \
17932 old_archive_from_new_cmds_RC | \
17933 archive_cmds_RC | \
17934 archive_expsym_cmds_RC | \
17935 module_cmds_RC | \
17936 module_expsym_cmds_RC | \
17937 old_archive_from_expsyms_cmds_RC | \
17938 export_symbols_cmds_RC | \
17939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17940 postinstall_cmds | postuninstall_cmds | \
17941 old_postinstall_cmds | old_postuninstall_cmds | \
17942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17943 # Double-quote double-evaled strings.
17944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17945 ;;
17946 *)
17947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17948 ;;
17949 esac
17950 done
17951
17952 case $lt_echo in
17953 *'\$0 --fallback-echo"')
17954 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17955 ;;
17956 esac
17957
17958cfgfile="$ofile"
17959
17960 cat <<__EOF__ >> "$cfgfile"
17961# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17962
17963# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17964
17965# Shell to use when invoking shell scripts.
17966SHELL=$lt_SHELL
17967
17968# Whether or not to build shared libraries.
17969build_libtool_libs=$enable_shared
17970
17971# Whether or not to build static libraries.
17972build_old_libs=$enable_static
17973
17974# Whether or not to add -lc for building shared libraries.
17975build_libtool_need_lc=$archive_cmds_need_lc_RC
17976
17977# Whether or not to disallow shared libs when runtime libs are static
17978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17979
17980# Whether or not to optimize for fast installation.
17981fast_install=$enable_fast_install
17982
17983# The host system.
17984host_alias=$host_alias
17985host=$host
17986
17987# An echo program that does not interpret backslashes.
17988echo=$lt_echo
17989
17990# The archiver.
17991AR=$lt_AR
17992AR_FLAGS=$lt_AR_FLAGS
17993
17994# A C compiler.
17995LTCC=$lt_LTCC
17996
17997# A language-specific compiler.
17998CC=$lt_compiler_RC
17999
18000# Is the compiler the GNU C compiler?
18001with_gcc=$GCC_RC
18002
18003# An ERE matcher.
18004EGREP=$lt_EGREP
18005
18006# The linker used to build libraries.
18007LD=$lt_LD_RC
18008
18009# Whether we need hard or soft links.
18010LN_S=$lt_LN_S
18011
18012# A BSD-compatible nm program.
18013NM=$lt_NM
18014
18015# A symbol stripping program
18016STRIP=$lt_STRIP
18017
18018# Used to examine libraries when file_magic_cmd begins "file"
18019MAGIC_CMD=$MAGIC_CMD
18020
18021# Used on cygwin: DLL creation program.
18022DLLTOOL="$DLLTOOL"
18023
18024# Used on cygwin: object dumper.
18025OBJDUMP="$OBJDUMP"
18026
18027# Used on cygwin: assembler.
18028AS="$AS"
18029
18030# The name of the directory that contains temporary libtool files.
18031objdir=$objdir
18032
18033# How to create reloadable object files.
18034reload_flag=$lt_reload_flag
18035reload_cmds=$lt_reload_cmds
18036
18037# How to pass a linker flag through the compiler.
18038wl=$lt_lt_prog_compiler_wl_RC
18039
18040# Object file suffix (normally "o").
18041objext="$ac_objext"
18042
18043# Old archive suffix (normally "a").
18044libext="$libext"
18045
18046# Shared library suffix (normally ".so").
18047shrext='$shrext'
18048
18049# Executable file suffix (normally "").
18050exeext="$exeext"
18051
18052# Additional compiler flags for building library objects.
18053pic_flag=$lt_lt_prog_compiler_pic_RC
18054pic_mode=$pic_mode
18055
18056# What is the maximum length of a command?
18057max_cmd_len=$lt_cv_sys_max_cmd_len
18058
18059# Does compiler simultaneously support -c and -o options?
18060compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18061
18062# Must we lock files when doing compilation ?
18063need_locks=$lt_need_locks
18064
18065# Do we need the lib prefix for modules?
18066need_lib_prefix=$need_lib_prefix
18067
18068# Do we need a version for libraries?
18069need_version=$need_version
18070
18071# Whether dlopen is supported.
18072dlopen_support=$enable_dlopen
18073
18074# Whether dlopen of programs is supported.
18075dlopen_self=$enable_dlopen_self
18076
18077# Whether dlopen of statically linked programs is supported.
18078dlopen_self_static=$enable_dlopen_self_static
18079
18080# Compiler flag to prevent dynamic linking.
18081link_static_flag=$lt_lt_prog_compiler_static_RC
18082
18083# Compiler flag to turn off builtin functions.
18084no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18085
18086# Compiler flag to allow reflexive dlopens.
18087export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18088
18089# Compiler flag to generate shared objects directly from archives.
18090whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18091
18092# Compiler flag to generate thread-safe objects.
18093thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18094
18095# Library versioning type.
18096version_type=$version_type
18097
18098# Format of library name prefix.
18099libname_spec=$lt_libname_spec
18100
18101# List of archive names. First name is the real one, the rest are links.
18102# The last name is the one that the linker finds with -lNAME.
18103library_names_spec=$lt_library_names_spec
18104
18105# The coded name of the library, if different from the real name.
18106soname_spec=$lt_soname_spec
18107
18108# Commands used to build and install an old-style archive.
18109RANLIB=$lt_RANLIB
18110old_archive_cmds=$lt_old_archive_cmds_RC
18111old_postinstall_cmds=$lt_old_postinstall_cmds
18112old_postuninstall_cmds=$lt_old_postuninstall_cmds
18113
18114# Create an old-style archive from a shared archive.
18115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18116
18117# Create a temporary old-style archive to link instead of a shared archive.
18118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18119
18120# Commands used to build and install a shared archive.
18121archive_cmds=$lt_archive_cmds_RC
18122archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18123postinstall_cmds=$lt_postinstall_cmds
18124postuninstall_cmds=$lt_postuninstall_cmds
18125
18126# Commands used to build a loadable module (assumed same as above if empty)
18127module_cmds=$lt_module_cmds_RC
18128module_expsym_cmds=$lt_module_expsym_cmds_RC
18129
18130# Commands to strip libraries.
18131old_striplib=$lt_old_striplib
18132striplib=$lt_striplib
18133
18134# Dependencies to place before the objects being linked to create a
18135# shared library.
18136predep_objects=$lt_predep_objects_RC
18137
18138# Dependencies to place after the objects being linked to create a
18139# shared library.
18140postdep_objects=$lt_postdep_objects_RC
18141
18142# Dependencies to place before the objects being linked to create a
18143# shared library.
18144predeps=$lt_predeps_RC
18145
18146# Dependencies to place after the objects being linked to create a
18147# shared library.
18148postdeps=$lt_postdeps_RC
18149
18150# The library search path used internally by the compiler when linking
18151# a shared library.
18152compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18153
18154# Method to check whether dependent libraries are shared objects.
18155deplibs_check_method=$lt_deplibs_check_method
18156
18157# Command to use when deplibs_check_method == file_magic.
18158file_magic_cmd=$lt_file_magic_cmd
18159
18160# Flag that allows shared libraries with undefined symbols to be built.
18161allow_undefined_flag=$lt_allow_undefined_flag_RC
18162
18163# Flag that forces no undefined symbols.
18164no_undefined_flag=$lt_no_undefined_flag_RC
18165
18166# Commands used to finish a libtool library installation in a directory.
18167finish_cmds=$lt_finish_cmds
18168
18169# Same as above, but a single script fragment to be evaled but not shown.
18170finish_eval=$lt_finish_eval
18171
18172# Take the output of nm and produce a listing of raw symbols and C names.
18173global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18174
18175# Transform the output of nm in a proper C declaration
18176global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18177
18178# Transform the output of nm in a C name address pair
18179global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18180
18181# This is the shared library runtime path variable.
18182runpath_var=$runpath_var
18183
18184# This is the shared library path variable.
18185shlibpath_var=$shlibpath_var
18186
18187# Is shlibpath searched before the hard-coded library search path?
18188shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18189
18190# How to hardcode a shared library path into an executable.
18191hardcode_action=$hardcode_action_RC
18192
18193# Whether we should hardcode library paths into libraries.
18194hardcode_into_libs=$hardcode_into_libs
18195
18196# Flag to hardcode \$libdir into a binary during linking.
18197# This must work even if \$libdir does not exist.
18198hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18199
18200# If ld is used when linking, flag to hardcode \$libdir into
18201# a binary during linking. This must work even if \$libdir does
18202# not exist.
18203hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18204
18205# Whether we need a single -rpath flag with a separated argument.
18206hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18207
18208# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18209# resulting binary.
18210hardcode_direct=$hardcode_direct_RC
18211
18212# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18213# resulting binary.
18214hardcode_minus_L=$hardcode_minus_L_RC
18215
18216# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18217# the resulting binary.
18218hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18219
18220# Set to yes if building a shared library automatically hardcodes DIR into the library
18221# and all subsequent libraries and executables linked against it.
18222hardcode_automatic=$hardcode_automatic_RC
18223
18224# Variables whose values should be saved in libtool wrapper scripts and
18225# restored at relink time.
18226variables_saved_for_relink="$variables_saved_for_relink"
18227
18228# Whether libtool must link a program against all its dependency libraries.
18229link_all_deplibs=$link_all_deplibs_RC
18230
18231# Compile-time system search path for libraries
18232sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18233
18234# Run-time system search path for libraries
18235sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18236
18237# Fix the shell variable \$srcfile for the compiler.
18238fix_srcfile_path="$fix_srcfile_path_RC"
18239
18240# Set to yes if exported symbols are required.
18241always_export_symbols=$always_export_symbols_RC
18242
18243# The commands to list exported symbols.
18244export_symbols_cmds=$lt_export_symbols_cmds_RC
18245
18246# The commands to extract the exported symbol list from a shared archive.
18247extract_expsyms_cmds=$lt_extract_expsyms_cmds
18248
18249# Symbols that should not be listed in the preloaded symbols.
18250exclude_expsyms=$lt_exclude_expsyms_RC
18251
18252# Symbols that must always be exported.
18253include_expsyms=$lt_include_expsyms_RC
18254
18255# ### END LIBTOOL TAG CONFIG: $tagname
18256
18257__EOF__
18258
18259
18260else
18261 # If there is no Makefile yet, we rely on a make rule to execute
18262 # `config.status --recheck' to rerun these tests and create the
18263 # libtool script then.
18264 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18265 if test -f "$ltmain_in"; then
18266 test -f Makefile && make "$ltmain"
18267 fi
18268fi
18269
18270
18271ac_ext=c
18272ac_cpp='$CPP $CPPFLAGS'
18273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275ac_compiler_gnu=$ac_cv_c_compiler_gnu
18276
18277CC="$lt_save_CC"
18278
18279 ;;
18280
18281 *)
18282 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18283echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18284 { (exit 1); exit 1; }; }
18285 ;;
18286 esac
18287
18288 # Append the new tag name to the list of available tags.
18289 if test -n "$tagname" ; then
18290 available_tags="$available_tags $tagname"
18291 fi
18292 fi
18293 done
18294 IFS="$lt_save_ifs"
18295
18296 # Now substitute the updated list of available tags.
18297 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18298 mv "${ofile}T" "$ofile"
18299 chmod +x "$ofile"
18300 else
18301 rm -f "${ofile}T"
18302 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18303echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18304 { (exit 1); exit 1; }; }
18305 fi
18306fi
drh71eb93e2001-09-28 01:34:43 +000018307
drh71eb93e2001-09-28 01:34:43 +000018308
drh71eb93e2001-09-28 01:34:43 +000018309
18310# This can be used to rebuild libtool when needed
18311LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18312
18313# Always use our own libtool.
18314LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18315
18316# Prevent multiple expansion
18317
a.rottmann84e63352003-03-24 09:42:16 +000018318
a.rottmann9bc8b932004-02-29 15:18:31 +000018319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
drh71eb93e2001-09-28 01:34:43 +000018337# Find a good install program. We prefer a C program (faster),
18338# so one script is as good as another. But avoid the broken or
18339# incompatible versions:
18340# SysV /etc/install, /usr/sbin/install
18341# SunOS /usr/etc/install
18342# IRIX /sbin/install
18343# AIX /bin/install
18344# AmigaOS /C/install, which installs bootblocks on floppy discs
18345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018348# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018349# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018350echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18351echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018352if test -z "$INSTALL"; then
18353if test "${ac_cv_path_install+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355else
a.rottmann84e63352003-03-24 09:42:16 +000018356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357for as_dir in $PATH
18358do
18359 IFS=$as_save_IFS
18360 test -z "$as_dir" && as_dir=.
18361 # Account for people who put trailing slashes in PATH elements.
18362case $as_dir/ in
18363 ./ | .// | /cC/* | \
18364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018366 /usr/ucb/* ) ;;
18367 *)
18368 # OSF1 and SCO ODT 3.0 have their own names for install.
18369 # Don't use installbsd from OSF since it installs stuff as root
18370 # by default.
18371 for ac_prog in ginstall scoinst install; do
18372 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018373 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18374 if test $ac_prog = install &&
18375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18376 # AIX install. It has an incompatible calling convention.
18377 :
18378 elif test $ac_prog = install &&
18379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18380 # program-specific install script used by HP pwplus--don't use.
18381 :
18382 else
18383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18384 break 3
18385 fi
18386 fi
drh71eb93e2001-09-28 01:34:43 +000018387 done
a.rottmann84e63352003-03-24 09:42:16 +000018388 done
18389 ;;
18390esac
18391done
18392
drh71eb93e2001-09-28 01:34:43 +000018393
18394fi
18395 if test "${ac_cv_path_install+set}" = set; then
18396 INSTALL=$ac_cv_path_install
18397 else
18398 # As a last resort, use the slow shell script. We don't cache a
18399 # path for INSTALL within a source directory, because that will
18400 # break other packages using the cache if that directory is
18401 # removed, or if the path is relative.
18402 INSTALL=$ac_install_sh
18403 fi
18404fi
a.rottmann84e63352003-03-24 09:42:16 +000018405echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018406echo "${ECHO_T}$INSTALL" >&6
18407
18408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18409# It thinks the first close brace ends the variable substitution.
18410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18411
18412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18413
18414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18415
a.rottmann84e63352003-03-24 09:42:16 +000018416
drh75897232000-05-29 14:26:00 +000018417#########
18418# Set up an appropriate program prefix
18419#
18420if test "$program_prefix" = "NONE"; then
18421 program_prefix=""
18422fi
18423
a.rottmann84e63352003-03-24 09:42:16 +000018424
drh4b2266a2004-11-27 15:52:16 +000018425VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18426echo "Version set to $VERSION"
18427
18428RELEASE=`cat $srcdir/VERSION`
18429echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018430
18431
drh75897232000-05-29 14:26:00 +000018432#########
18433# Check to see if the --with-hints=FILE option is used. If there is none,
18434# then check for a files named "$host.hints" and ../$hosts.hints where
18435# $host is the hostname of the build system. If still no hints are
18436# found, try looking in $system.hints and ../$system.hints where
18437# $system is the result of uname -s.
18438#
drh71eb93e2001-09-28 01:34:43 +000018439
drh75897232000-05-29 14:26:00 +000018440# Check whether --with-hints or --without-hints was given.
18441if test "${with_hints+set}" = set; then
18442 withval="$with_hints"
18443 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018444fi;
drh75897232000-05-29 14:26:00 +000018445if test "$hints" = ""; then
18446 host=`hostname | sed 's/\..*//'`
18447 if test -r $host.hints; then
18448 hints=$host.hints
18449 else
18450 if test -r ../$host.hints; then
18451 hints=../$host.hints
18452 fi
18453 fi
18454fi
18455if test "$hints" = ""; then
18456 sys=`uname -s`
18457 if test -r $sys.hints; then
18458 hints=$sys.hints
18459 else
18460 if test -r ../$sys.hints; then
18461 hints=../$sys.hints
18462 fi
18463 fi
18464fi
18465if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018466 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018467echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018468 . $hints
18469fi
18470
18471#########
18472# Locate a compiler for the build machine. This compiler should
18473# generate command-line programs that run on the build machine.
18474#
18475default_build_cflags="-g"
18476if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018477 ac_ext=c
18478ac_cpp='$CPP $CPPFLAGS'
18479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_c_compiler_gnu
18482if test -n "$ac_tool_prefix"; then
18483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18484set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018485echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18487if test "${ac_cv_prog_CC+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018489else
18490 if test -n "$CC"; then
18491 ac_cv_prog_CC="$CC" # Let the user override the test.
18492else
a.rottmann84e63352003-03-24 09:42:16 +000018493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494for as_dir in $PATH
18495do
18496 IFS=$as_save_IFS
18497 test -z "$as_dir" && as_dir=.
18498 for ac_exec_ext in '' $ac_executable_extensions; do
18499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502 break 2
18503 fi
18504done
drh71eb93e2001-09-28 01:34:43 +000018505done
18506
drh75897232000-05-29 14:26:00 +000018507fi
18508fi
drh71eb93e2001-09-28 01:34:43 +000018509CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018510if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018511 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018512echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018513else
a.rottmann84e63352003-03-24 09:42:16 +000018514 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018515echo "${ECHO_T}no" >&6
18516fi
18517
18518fi
18519if test -z "$ac_cv_prog_CC"; then
18520 ac_ct_CC=$CC
18521 # Extract the first word of "gcc", so it can be a program name with args.
18522set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018523echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18527else
18528 if test -n "$ac_ct_CC"; then
18529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18530else
a.rottmann84e63352003-03-24 09:42:16 +000018531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18532for as_dir in $PATH
18533do
18534 IFS=$as_save_IFS
18535 test -z "$as_dir" && as_dir=.
18536 for ac_exec_ext in '' $ac_executable_extensions; do
18537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18538 ac_cv_prog_ac_ct_CC="gcc"
18539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 break 2
18541 fi
18542done
drh71eb93e2001-09-28 01:34:43 +000018543done
18544
18545fi
18546fi
18547ac_ct_CC=$ac_cv_prog_ac_ct_CC
18548if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018550echo "${ECHO_T}$ac_ct_CC" >&6
18551else
a.rottmann84e63352003-03-24 09:42:16 +000018552 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018553echo "${ECHO_T}no" >&6
18554fi
18555
18556 CC=$ac_ct_CC
18557else
18558 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018559fi
18560
18561if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018562 if test -n "$ac_tool_prefix"; then
18563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18564set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018565echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18567if test "${ac_cv_prog_CC+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018569else
18570 if test -n "$CC"; then
18571 ac_cv_prog_CC="$CC" # Let the user override the test.
18572else
a.rottmann84e63352003-03-24 09:42:16 +000018573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18574for as_dir in $PATH
18575do
18576 IFS=$as_save_IFS
18577 test -z "$as_dir" && as_dir=.
18578 for ac_exec_ext in '' $ac_executable_extensions; do
18579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18580 ac_cv_prog_CC="${ac_tool_prefix}cc"
18581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18582 break 2
18583 fi
18584done
drh71eb93e2001-09-28 01:34:43 +000018585done
18586
18587fi
18588fi
18589CC=$ac_cv_prog_CC
18590if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018591 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018592echo "${ECHO_T}$CC" >&6
18593else
a.rottmann84e63352003-03-24 09:42:16 +000018594 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018595echo "${ECHO_T}no" >&6
18596fi
18597
18598fi
18599if test -z "$ac_cv_prog_CC"; then
18600 ac_ct_CC=$CC
18601 # Extract the first word of "cc", so it can be a program name with args.
18602set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018603echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608 if test -n "$ac_ct_CC"; then
18609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18610else
a.rottmann84e63352003-03-24 09:42:16 +000018611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18612for as_dir in $PATH
18613do
18614 IFS=$as_save_IFS
18615 test -z "$as_dir" && as_dir=.
18616 for ac_exec_ext in '' $ac_executable_extensions; do
18617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18618 ac_cv_prog_ac_ct_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
18625fi
18626fi
18627ac_ct_CC=$ac_cv_prog_ac_ct_CC
18628if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018629 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018630echo "${ECHO_T}$ac_ct_CC" >&6
18631else
a.rottmann84e63352003-03-24 09:42:16 +000018632 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018633echo "${ECHO_T}no" >&6
18634fi
18635
18636 CC=$ac_ct_CC
18637else
18638 CC="$ac_cv_prog_CC"
18639fi
18640
18641fi
18642if test -z "$CC"; then
18643 # Extract the first word of "cc", so it can be a program name with args.
18644set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018645echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18647if test "${ac_cv_prog_CC+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650 if test -n "$CC"; then
18651 ac_cv_prog_CC="$CC" # Let the user override the test.
18652else
drh75897232000-05-29 14:26:00 +000018653 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18655for as_dir in $PATH
18656do
18657 IFS=$as_save_IFS
18658 test -z "$as_dir" && as_dir=.
18659 for ac_exec_ext in '' $ac_executable_extensions; do
18660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18662 ac_prog_rejected=yes
18663 continue
18664 fi
18665 ac_cv_prog_CC="cc"
18666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18667 break 2
18668 fi
18669done
drh71eb93e2001-09-28 01:34:43 +000018670done
18671
drh75897232000-05-29 14:26:00 +000018672if test $ac_prog_rejected = yes; then
18673 # We found a bogon in the path, so make sure we never use it.
18674 set dummy $ac_cv_prog_CC
18675 shift
drh71eb93e2001-09-28 01:34:43 +000018676 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018677 # We chose a different compiler from the bogus one.
18678 # However, it has the same basename, so the bogon will be chosen
18679 # first if we set CC to just the basename; use the full file name.
18680 shift
a.rottmann84e63352003-03-24 09:42:16 +000018681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018682 fi
18683fi
18684fi
18685fi
drh71eb93e2001-09-28 01:34:43 +000018686CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018687if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018688 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018689echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018690else
a.rottmann84e63352003-03-24 09:42:16 +000018691 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018692echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018693fi
18694
drh71eb93e2001-09-28 01:34:43 +000018695fi
18696if test -z "$CC"; then
18697 if test -n "$ac_tool_prefix"; then
18698 for ac_prog in cl
18699 do
18700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018702echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18704if test "${ac_cv_prog_CC+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018706else
18707 if test -n "$CC"; then
18708 ac_cv_prog_CC="$CC" # Let the user override the test.
18709else
a.rottmann84e63352003-03-24 09:42:16 +000018710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711for as_dir in $PATH
18712do
18713 IFS=$as_save_IFS
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719 break 2
18720 fi
18721done
drh71eb93e2001-09-28 01:34:43 +000018722done
18723
drh75897232000-05-29 14:26:00 +000018724fi
18725fi
drh71eb93e2001-09-28 01:34:43 +000018726CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018727if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018728 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018729echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018730else
a.rottmann84e63352003-03-24 09:42:16 +000018731 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018732echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018733fi
18734
drh71eb93e2001-09-28 01:34:43 +000018735 test -n "$CC" && break
18736 done
18737fi
18738if test -z "$CC"; then
18739 ac_ct_CC=$CC
18740 for ac_prog in cl
18741do
18742 # Extract the first word of "$ac_prog", so it can be a program name with args.
18743set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018744echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748else
18749 if test -n "$ac_ct_CC"; then
18750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18751else
a.rottmann84e63352003-03-24 09:42:16 +000018752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18753for as_dir in $PATH
18754do
18755 IFS=$as_save_IFS
18756 test -z "$as_dir" && as_dir=.
18757 for ac_exec_ext in '' $ac_executable_extensions; do
18758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18759 ac_cv_prog_ac_ct_CC="$ac_prog"
18760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18761 break 2
18762 fi
18763done
drh71eb93e2001-09-28 01:34:43 +000018764done
drh75897232000-05-29 14:26:00 +000018765
drh71eb93e2001-09-28 01:34:43 +000018766fi
18767fi
18768ac_ct_CC=$ac_cv_prog_ac_ct_CC
18769if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018770 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018771echo "${ECHO_T}$ac_ct_CC" >&6
18772else
a.rottmann84e63352003-03-24 09:42:16 +000018773 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018774echo "${ECHO_T}no" >&6
18775fi
drh75897232000-05-29 14:26:00 +000018776
drh71eb93e2001-09-28 01:34:43 +000018777 test -n "$ac_ct_CC" && break
18778done
drh75897232000-05-29 14:26:00 +000018779
drh71eb93e2001-09-28 01:34:43 +000018780 CC=$ac_ct_CC
18781fi
18782
18783fi
18784
a.rottmann84e63352003-03-24 09:42:16 +000018785
18786test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18787See \`config.log' for more details." >&5
18788echo "$as_me: error: no acceptable C compiler found in \$PATH
18789See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018790 { (exit 1); exit 1; }; }
18791
18792# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018793echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018794 "checking for C compiler version" >&5
18795ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018796{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018797 (eval $ac_compiler --version </dev/null >&5) 2>&5
18798 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018800 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018801{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018802 (eval $ac_compiler -v </dev/null >&5) 2>&5
18803 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018805 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018806{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018807 (eval $ac_compiler -V </dev/null >&5) 2>&5
18808 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018810 (exit $ac_status); }
18811
a.rottmann84e63352003-03-24 09:42:16 +000018812echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018813echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18814if test "${ac_cv_c_compiler_gnu+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018823
drh71eb93e2001-09-28 01:34:43 +000018824int
18825main ()
18826{
18827#ifndef __GNUC__
18828 choke me
drh75897232000-05-29 14:26:00 +000018829#endif
drh75897232000-05-29 14:26:00 +000018830
drh71eb93e2001-09-28 01:34:43 +000018831 ;
18832 return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018837 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018838 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018843 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018853 (eval $ac_try) 2>&5
18854 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018856 (exit $ac_status); }; }; then
18857 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018858else
drh71eb93e2001-09-28 01:34:43 +000018859 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018860sed 's/^/| /' conftest.$ac_ext >&5
18861
drh71eb93e2001-09-28 01:34:43 +000018862ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018863fi
a.rottmann964dbb12004-02-26 19:47:42 +000018864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018865ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018866
drh71eb93e2001-09-28 01:34:43 +000018867fi
a.rottmann84e63352003-03-24 09:42:16 +000018868echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018869echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18870GCC=`test $ac_compiler_gnu = yes && echo yes`
18871ac_test_CFLAGS=${CFLAGS+set}
18872ac_save_CFLAGS=$CFLAGS
18873CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018874echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18876if test "${ac_cv_prog_cc_g+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018878else
drh71eb93e2001-09-28 01:34:43 +000018879 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018885
18886int
18887main ()
18888{
18889
18890 ;
18891 return 0;
18892}
18893_ACEOF
18894rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018896 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018897 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018902 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018903 { ac_try='test -z "$ac_c_werror_flag"
18904 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018912 (eval $ac_try) 2>&5
18913 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018915 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018916 ac_cv_prog_cc_g=yes
18917else
drh71eb93e2001-09-28 01:34:43 +000018918 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018919sed 's/^/| /' conftest.$ac_ext >&5
18920
drh71eb93e2001-09-28 01:34:43 +000018921ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018922fi
a.rottmann964dbb12004-02-26 19:47:42 +000018923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018924fi
a.rottmann84e63352003-03-24 09:42:16 +000018925echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018926echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018927if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018928 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018929elif test $ac_cv_prog_cc_g = yes; then
18930 if test "$GCC" = yes; then
18931 CFLAGS="-g -O2"
18932 else
18933 CFLAGS="-g"
18934 fi
18935else
18936 if test "$GCC" = yes; then
18937 CFLAGS="-O2"
18938 else
18939 CFLAGS=
18940 fi
18941fi
a.rottmann84e63352003-03-24 09:42:16 +000018942echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18943echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18944if test "${ac_cv_prog_cc_stdc+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946else
18947 ac_cv_prog_cc_stdc=no
18948ac_save_CC=$CC
18949cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
18955#include <stdarg.h>
18956#include <stdio.h>
18957#include <sys/types.h>
18958#include <sys/stat.h>
18959/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18960struct buf { int x; };
18961FILE * (*rcsopen) (struct buf *, struct stat *, int);
18962static char *e (p, i)
18963 char **p;
18964 int i;
18965{
18966 return p[i];
18967}
18968static char *f (char * (*g) (char **, int), char **p, ...)
18969{
18970 char *s;
18971 va_list v;
18972 va_start (v,p);
18973 s = g (p, va_arg (v,int));
18974 va_end (v);
18975 return s;
18976}
a.rottmann964dbb12004-02-26 19:47:42 +000018977
18978/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18979 function prototypes and stuff, but not '\xHH' hex character constants.
18980 These don't provoke an error unfortunately, instead are silently treated
18981 as 'x'. The following induces an error, until -std1 is added to get
18982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18983 array size at least. It's necessary to write '\x00'==0 to get something
18984 that's true only with -std1. */
18985int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18986
a.rottmann84e63352003-03-24 09:42:16 +000018987int test (int i, double x);
18988struct s1 {int (*f) (int a);};
18989struct s2 {int (*f) (double a);};
18990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18991int argc;
18992char **argv;
18993int
18994main ()
18995{
18996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001# Don't try gcc -ansi; that turns off useful extensions and
19002# breaks some systems' header files.
19003# AIX -qlanglvl=ansi
19004# Ultrix and OSF/1 -std1
19005# HP-UX 10.20 and later -Ae
19006# HP-UX older versions -Aa -D_HPUX_SOURCE
19007# SVR4 -Xc -D__EXTENSIONS__
19008for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19009do
19010 CC="$ac_save_CC $ac_arg"
19011 rm -f conftest.$ac_objext
19012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019013 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019014 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019020 { ac_try='test -z "$ac_c_werror_flag"
19021 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_cv_prog_cc_stdc=$ac_arg
19034break
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039fi
a.rottmann964dbb12004-02-26 19:47:42 +000019040rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019041done
19042rm -f conftest.$ac_ext conftest.$ac_objext
19043CC=$ac_save_CC
19044
19045fi
19046
19047case "x$ac_cv_prog_cc_stdc" in
19048 x|xno)
19049 echo "$as_me:$LINENO: result: none needed" >&5
19050echo "${ECHO_T}none needed" >&6 ;;
19051 *)
19052 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19053echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19054 CC="$CC $ac_cv_prog_cc_stdc" ;;
19055esac
19056
drh71eb93e2001-09-28 01:34:43 +000019057# Some people use a C++ compiler to compile C. Since we use `exit',
19058# in C++ we need to declare it. In case someone uses the same compiler
19059# for both compiling C and C++ we need to have the C++ compiler decide
19060# the declaration of exit, since it's the most demanding environment.
19061cat >conftest.$ac_ext <<_ACEOF
19062#ifndef __cplusplus
19063 choke me
19064#endif
19065_ACEOF
19066rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019068 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019069 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019074 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019075 { ac_try='test -z "$ac_c_werror_flag"
19076 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019084 (eval $ac_try) 2>&5
19085 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019087 (exit $ac_status); }; }; then
19088 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019089 '' \
drh71eb93e2001-09-28 01:34:43 +000019090 'extern "C" void std::exit (int) throw (); using std::exit;' \
19091 'extern "C" void std::exit (int); using std::exit;' \
19092 'extern "C" void exit (int) throw ();' \
19093 'extern "C" void exit (int);' \
19094 'void exit (int);'
19095do
19096 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019102$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019103#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019104int
19105main ()
19106{
19107exit (42);
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019114 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019115 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019120 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019121 { ac_try='test -z "$ac_c_werror_flag"
19122 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019130 (eval $ac_try) 2>&5
19131 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019133 (exit $ac_status); }; }; then
19134 :
19135else
19136 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019137sed 's/^/| /' conftest.$ac_ext >&5
19138
drh71eb93e2001-09-28 01:34:43 +000019139continue
19140fi
a.rottmann964dbb12004-02-26 19:47:42 +000019141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019142 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019148$ac_declaration
19149int
19150main ()
19151{
19152exit (42);
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019159 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019160 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019165 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019175 (eval $ac_try) 2>&5
19176 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019178 (exit $ac_status); }; }; then
19179 break
19180else
19181 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019182sed 's/^/| /' conftest.$ac_ext >&5
19183
drh71eb93e2001-09-28 01:34:43 +000019184fi
a.rottmann964dbb12004-02-26 19:47:42 +000019185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019186done
19187rm -f conftest*
19188if test -n "$ac_declaration"; then
19189 echo '#ifdef __cplusplus' >>confdefs.h
19190 echo $ac_declaration >>confdefs.h
19191 echo '#endif' >>confdefs.h
19192fi
19193
19194else
19195 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019196sed 's/^/| /' conftest.$ac_ext >&5
19197
drh71eb93e2001-09-28 01:34:43 +000019198fi
a.rottmann964dbb12004-02-26 19:47:42 +000019199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019200ac_ext=c
19201ac_cpp='$CPP $CPPFLAGS'
19202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19204ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019205
xdong28f79f72003-09-23 00:35:21 +000019206 if test "$cross_compiling" = "yes"; then
19207 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19208echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19209 { (exit 1); exit 1; }; }
19210 fi
drh75897232000-05-29 14:26:00 +000019211 BUILD_CC=$CC
19212 default_build_cflags=$CFLAGS
19213else
19214 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019215 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019216echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019217 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019218 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019219echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019220fi
a.rottmann84e63352003-03-24 09:42:16 +000019221echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019222echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019223if test "$config_BUILD_CFLAGS" != ""; then
19224 CFLAGS=$config_BUILD_CFLAGS
19225 BUILD_CFLAGS=$config_BUILD_CFLAGS
19226else
19227 BUILD_CFLAGS=$default_build_cflags
19228fi
a.rottmann84e63352003-03-24 09:42:16 +000019229echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019230echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019231if test "$config_BUILD_LIBS" != ""; then
19232 BUILD_LIBS=$config_BUILD_LIBS
19233fi
19234
a.rottmann84e63352003-03-24 09:42:16 +000019235
19236
19237
drh75897232000-05-29 14:26:00 +000019238##########
19239# Locate a compiler that converts C code into *.o files that run on
19240# the target machine.
19241#
a.rottmann84e63352003-03-24 09:42:16 +000019242echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019243echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019244if test "$config_TARGET_CC" != ""; then
19245 TARGET_CC=$config_TARGET_CC
19246else
19247 TARGET_CC=$BUILD_CC
19248fi
a.rottmann84e63352003-03-24 09:42:16 +000019249echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019250echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019251echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019252echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019253if test "$config_TARGET_CFLAGS" != ""; then
19254 TARGET_CFLAGS=$config_TARGET_CFLAGS
19255else
19256 TARGET_CFLAGS=$BUILD_CFLAGS
19257fi
a.rottmann84e63352003-03-24 09:42:16 +000019258echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019259echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019260echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019261echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019262if test "$config_TARGET_LINK" = ""; then
19263 TARGET_LINK=$TARGET_CC
19264else
19265 TARGET_LINK=$config_TARGET_LINK
19266fi
a.rottmann84e63352003-03-24 09:42:16 +000019267echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019268echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019269echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019270echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019271if test "$config_TARGET_TFLAGS" != ""; then
19272 TARGET_TFLAGS=$config_TARGET_TFLAGS
19273else
19274 TARGET_TFLAGS=$BUILD_CFLAGS
19275fi
19276if test "$config_TARGET_RANLIB" != ""; then
19277 TARGET_RANLIB=$config_TARGET_RANLIB
19278else
drh71eb93e2001-09-28 01:34:43 +000019279 if test -n "$ac_tool_prefix"; then
19280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019282echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19284if test "${ac_cv_prog_RANLIB+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019286else
19287 if test -n "$RANLIB"; then
19288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19289else
a.rottmann84e63352003-03-24 09:42:16 +000019290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19291for as_dir in $PATH
19292do
19293 IFS=$as_save_IFS
19294 test -z "$as_dir" && as_dir=.
19295 for ac_exec_ext in '' $ac_executable_extensions; do
19296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19299 break 2
19300 fi
19301done
drh71eb93e2001-09-28 01:34:43 +000019302done
19303
drh75897232000-05-29 14:26:00 +000019304fi
19305fi
drh71eb93e2001-09-28 01:34:43 +000019306RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019307if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019308 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019309echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019310else
a.rottmann84e63352003-03-24 09:42:16 +000019311 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019312echo "${ECHO_T}no" >&6
19313fi
19314
19315fi
19316if test -z "$ac_cv_prog_RANLIB"; then
19317 ac_ct_RANLIB=$RANLIB
19318 # Extract the first word of "ranlib", so it can be a program name with args.
19319set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019320echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19322if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324else
19325 if test -n "$ac_ct_RANLIB"; then
19326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19327else
a.rottmann84e63352003-03-24 09:42:16 +000019328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19329for as_dir in $PATH
19330do
19331 IFS=$as_save_IFS
19332 test -z "$as_dir" && as_dir=.
19333 for ac_exec_ext in '' $ac_executable_extensions; do
19334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19335 ac_cv_prog_ac_ct_RANLIB="ranlib"
19336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19337 break 2
19338 fi
19339done
drh71eb93e2001-09-28 01:34:43 +000019340done
19341
19342 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19343fi
19344fi
19345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19346if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019347 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019348echo "${ECHO_T}$ac_ct_RANLIB" >&6
19349else
a.rottmann84e63352003-03-24 09:42:16 +000019350 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019351echo "${ECHO_T}no" >&6
19352fi
19353
19354 RANLIB=$ac_ct_RANLIB
19355else
19356 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019357fi
19358
19359 TARGET_RANLIB=$RANLIB
19360fi
19361if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019362 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019363else
19364 TARGET_AR='ar cr'
19365fi
a.rottmann84e63352003-03-24 09:42:16 +000019366echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019367echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019368
a.rottmann84e63352003-03-24 09:42:16 +000019369
19370
19371
19372
19373
19374
drh75897232000-05-29 14:26:00 +000019375# Set the $cross variable if we are cross-compiling. Make
19376# it 0 if we are not.
19377#
a.rottmann84e63352003-03-24 09:42:16 +000019378echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019379echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019380if test "$BUILD_CC" = "$TARGET_CC"; then
19381 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019382 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019383echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019384else
19385 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019386 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019387echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019388fi
19389
drh297ecf12001-04-05 15:57:13 +000019390##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019391# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019392#
dougcurrie0f290bf2004-06-21 18:57:29 +000019393# Check whether --enable-threadsafe or --disable-threadsafe was given.
19394if test "${enable_threadsafe+set}" = set; then
19395 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019396
drh297ecf12001-04-05 15:57:13 +000019397else
dougcurrie0f290bf2004-06-21 18:57:29 +000019398 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019399fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019400echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19401echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19402if test "$enable_threadsafe" = "no"; then
19403 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019404 echo "$as_me:$LINENO: result: no" >&5
19405echo "${ECHO_T}no" >&6
19406else
dougcurrie0f290bf2004-06-21 18:57:29 +000019407 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019408 echo "$as_me:$LINENO: result: yes" >&5
19409echo "${ECHO_T}yes" >&6
19410fi
19411
a.rottmann964dbb12004-02-26 19:47:42 +000019412
dougcurrie65623c72004-09-20 14:57:23 +000019413if test "$THREADSAFE" = "1"; then
19414 LIBS=""
19415
19416echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19417echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19418if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19420else
19421 ac_check_lib_save_LIBS=$LIBS
19422LIBS="-lpthread $LIBS"
19423cat >conftest.$ac_ext <<_ACEOF
19424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
19429
19430/* Override any gcc2 internal prototype to avoid an error. */
19431#ifdef __cplusplus
19432extern "C"
19433#endif
19434/* We use char because int might match the return type of a gcc2
19435 builtin and then its argument prototype would still apply. */
19436char pthread_create ();
19437int
19438main ()
19439{
19440pthread_create ();
19441 ;
19442 return 0;
19443}
19444_ACEOF
19445rm -f conftest.$ac_objext conftest$ac_exeext
19446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest$ac_exeext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_lib_pthread_pthread_create=yes
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472ac_cv_lib_pthread_pthread_create=no
19473fi
19474rm -f conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476LIBS=$ac_check_lib_save_LIBS
19477fi
19478echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19479echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19480if test $ac_cv_lib_pthread_pthread_create = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482#define HAVE_LIBPTHREAD 1
19483_ACEOF
19484
19485 LIBS="-lpthread $LIBS"
19486
19487fi
19488
19489 TARGET_THREAD_LIB="$LIBS"
19490 LIBS=""
19491else
19492 TARGET_THREAD_LIB=""
19493fi
19494
19495
xdong28f79f72003-09-23 00:35:21 +000019496##########
19497# Do we want to support release
19498#
19499# Check whether --enable-releasemode or --disable-releasemode was given.
19500if test "${enable_releasemode+set}" = set; then
19501 enableval="$enable_releasemode"
19502
19503else
19504 enable_releasemode=no
19505fi;
19506echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19507echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19508if test "$enable_releasemode" = "no"; then
19509 ALLOWRELEASE=""
19510 echo "$as_me:$LINENO: result: no" >&5
19511echo "${ECHO_T}no" >&6
19512else
19513 ALLOWRELEASE="-release `cat VERSION`"
19514 echo "$as_me:$LINENO: result: yes" >&5
19515echo "${ECHO_T}yes" >&6
19516fi
paulb0208cc2003-04-13 18:26:49 +000019517
a.rottmann964dbb12004-02-26 19:47:42 +000019518
paulb0208cc2003-04-13 18:26:49 +000019519##########
19520# Do we want temporary databases in memory
19521#
dougcurrie0f290bf2004-06-21 18:57:29 +000019522# Check whether --enable-tempstore or --disable-tempstore was given.
19523if test "${enable_tempstore+set}" = set; then
19524 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019525
19526else
dougcurrie0f290bf2004-06-21 18:57:29 +000019527 enable_tempstore=yes
paulb0208cc2003-04-13 18:26:49 +000019528fi;
19529echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19530echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019531case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019532 never )
paul2dc96f92003-04-20 11:46:34 +000019533 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019534 echo "$as_me:$LINENO: result: never" >&5
19535echo "${ECHO_T}never" >&6
19536 ;;
19537 no )
paul2dc96f92003-04-20 11:46:34 +000019538 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019539 echo "$as_me:$LINENO: result: no" >&5
19540echo "${ECHO_T}no" >&6
19541 ;;
19542 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019543 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019544 echo "$as_me:$LINENO: result: always" >&5
19545echo "${ECHO_T}always" >&6
19546 ;;
19547 * )
paul2dc96f92003-04-20 11:46:34 +000019548 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +000019549 echo "$as_me:$LINENO: result: yes" >&5
19550echo "${ECHO_T}yes" >&6
19551 ;;
19552esac
19553
19554
19555
drh75897232000-05-29 14:26:00 +000019556###########
19557# Lots of things are different if we are compiling for Windows using
19558# the CYGWIN environment. So check for that special case and handle
19559# things accordingly.
19560#
a.rottmann84e63352003-03-24 09:42:16 +000019561echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019562echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019563if test "$config_BUILD_EXEEXT" = ".exe"; then
19564 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019565 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019566echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019567else
a.rottmann84e63352003-03-24 09:42:16 +000019568 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019569echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019570fi
19571if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019572
19573case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019574 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019575 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019576esac
drh75897232000-05-29 14:26:00 +000019577
drh75897232000-05-29 14:26:00 +000019578fi
19579if test "$CYGWIN" = "yes"; then
19580 BUILD_EXEEXT=.exe
19581else
dougcurrie6194a5f2003-12-19 20:09:51 +000019582 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019583fi
19584if test "$cross" = "0"; then
19585 TARGET_EXEEXT=$BUILD_EXEEXT
19586else
19587 TARGET_EXEEXT=$config_TARGET_EXEEXT
19588fi
19589if test "$TARGET_EXEEXT" = ".exe"; then
19590 OS_UNIX=0
19591 OS_WIN=1
19592 tclsubdir=win
dougcurrie0f290bf2004-06-21 18:57:29 +000019593 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
drh75897232000-05-29 14:26:00 +000019594else
19595 OS_UNIX=1
19596 OS_WIN=0
19597 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019598 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019599fi
drh75897232000-05-29 14:26:00 +000019600
a.rottmann84e63352003-03-24 09:42:16 +000019601
19602
19603
19604
19605
drh75897232000-05-29 14:26:00 +000019606##########
19607# Extract generic linker options from the environment.
19608#
19609if test "$config_TARGET_LIBS" != ""; then
19610 TARGET_LIBS=$config_TARGET_LIBS
19611else
19612 TARGET_LIBS=""
19613fi
19614
a.rottmann84e63352003-03-24 09:42:16 +000019615
drh75897232000-05-29 14:26:00 +000019616##########
drh7b5717e2004-11-25 13:50:01 +000019617# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019618#
drh7b5717e2004-11-25 13:50:01 +000019619# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19620# macros in the in the tcl.m4 file of the standard TCL distribution.
19621# Those macros could not be used directly since we have to make some
19622# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019623#
drh7b5717e2004-11-25 13:50:01 +000019624# Check whether --enable-tcl or --disable-tcl was given.
19625if test "${enable_tcl+set}" = set; then
19626 enableval="$enable_tcl"
19627 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019628else
drh7b5717e2004-11-25 13:50:01 +000019629 use_tcl=yes
19630fi;
19631if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019632
drh7b5717e2004-11-25 13:50:01 +000019633# Check whether --with-tcl or --without-tcl was given.
19634if test "${with_tcl+set}" = set; then
19635 withval="$with_tcl"
19636 with_tclconfig=${withval}
19637fi;
19638 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19639echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19640 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
a.rottmann84e63352003-03-24 09:42:16 +000019643
drh7b5717e2004-11-25 13:50:01 +000019644 # First check to see if --with-tcl was specified.
19645 if test x"${with_tclconfig}" != x ; then
19646 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19647 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19648 else
19649 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19650echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019651 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019652 fi
19653 fi
19654 # then check for a private Tcl installation
19655 if test x"${ac_cv_c_tclconfig}" = x ; then
19656 for i in \
19657 ../tcl \
19658 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19659 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19660 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19661 ../../tcl \
19662 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19663 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19664 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19665 ../../../tcl \
19666 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19667 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19668 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19669 do
19670 if test -f "$i/unix/tclConfig.sh" ; then
19671 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19672 break
19673 fi
19674 done
19675 fi
19676
19677 # check in a few common install locations
19678 if test x"${ac_cv_c_tclconfig}" = x ; then
19679 for i in \
19680 `ls -d ${libdir} 2>/dev/null` \
19681 `ls -d /usr/local/lib 2>/dev/null` \
19682 `ls -d /usr/contrib/lib 2>/dev/null` \
19683 `ls -d /usr/lib 2>/dev/null`
19684 do
19685 if test -f "$i/tclConfig.sh" ; then
19686 ac_cv_c_tclconfig=`(cd $i; pwd)`
19687 break
19688 fi
19689 done
19690 fi
19691
19692 # check in a few other private locations
19693 if test x"${ac_cv_c_tclconfig}" = x ; then
19694 for i in \
19695 ${srcdir}/../tcl \
19696 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19697 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19698 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19699 do
19700 if test -f "$i/unix/tclConfig.sh" ; then
19701 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19702 break
19703 fi
19704 done
19705 fi
19706
drh75897232000-05-29 14:26:00 +000019707fi
19708
drh7b5717e2004-11-25 13:50:01 +000019709
19710 if test x"${ac_cv_c_tclconfig}" = x ; then
19711 use_tcl=no
19712 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19713echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19714 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19715echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19717echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19718 else
19719 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19720 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19721echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
19722
19723 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19724echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
19725 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19726 echo "$as_me:$LINENO: result: loading" >&5
19727echo "${ECHO_T}loading" >&6
19728 . $TCL_BIN_DIR/tclConfig.sh
19729 else
19730 echo "$as_me:$LINENO: result: file not found" >&5
19731echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000019732 fi
drh7b5717e2004-11-25 13:50:01 +000019733
19734 #
19735 # If the TCL_BIN_DIR is the build directory (not the install directory),
19736 # then set the common variable name to the value of the build variables.
19737 # For example, the variable TCL_LIB_SPEC will be set to the value
19738 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19739 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19740 # installed and uninstalled version of Tcl.
19741 #
19742
19743 if test -f $TCL_BIN_DIR/Makefile ; then
19744 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19745 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19746 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19747 fi
19748
19749 #
19750 # eval is required to do the TCL_DBGX substitution
19751 #
19752
19753 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19754 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19755 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19756
19757 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19758 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19759 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774 fi
drh75897232000-05-29 14:26:00 +000019775fi
drh7b5717e2004-11-25 13:50:01 +000019776if test "${use_tcl}" = "no" ; then
19777 HAVE_TCL=""
19778else
19779 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019780fi
drh75897232000-05-29 14:26:00 +000019781
a.rottmann84e63352003-03-24 09:42:16 +000019782
drh75897232000-05-29 14:26:00 +000019783##########
19784# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019785# that use "readline()" library.
19786#
19787if test "$config_TARGET_READLINE_LIBS" != ""; then
19788 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
19789else
19790 CC=$TARGET_CC
19791 LIBS=""
paul38372372003-04-22 08:04:49 +000019792 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19793echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
19794if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019795 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019796else
drh71eb93e2001-09-28 01:34:43 +000019797 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019798ac_cv_search_tgetent=no
19799cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
19805
19806/* Override any gcc2 internal prototype to avoid an error. */
19807#ifdef __cplusplus
19808extern "C"
19809#endif
19810/* We use char because int might match the return type of a gcc2
19811 builtin and then its argument prototype would still apply. */
19812char tgetent ();
19813int
19814main ()
19815{
19816tgetent ();
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext conftest$ac_exeext
19822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019823 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019824 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019830 { ac_try='test -z "$ac_c_werror_flag"
19831 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_cv_search_tgetent="none required"
19844else
19845 echo "$as_me: failed program was:" >&5
19846sed 's/^/| /' conftest.$ac_ext >&5
19847
19848fi
a.rottmann964dbb12004-02-26 19:47:42 +000019849rm -f conftest.err conftest.$ac_objext \
19850 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019851if test "$ac_cv_search_tgetent" = no; then
19852 for ac_lib in readline ncurses curses termcap; do
19853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19854 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860
19861/* Override any gcc2 internal prototype to avoid an error. */
19862#ifdef __cplusplus
19863extern "C"
19864#endif
19865/* We use char because int might match the return type of a gcc2
19866 builtin and then its argument prototype would still apply. */
19867char tgetent ();
19868int
19869main ()
19870{
19871tgetent ();
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876rm -f conftest.$ac_objext conftest$ac_exeext
19877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019878 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019879 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_search_tgetent="-l$ac_lib"
19899break
19900else
19901 echo "$as_me: failed program was:" >&5
19902sed 's/^/| /' conftest.$ac_ext >&5
19903
19904fi
a.rottmann964dbb12004-02-26 19:47:42 +000019905rm -f conftest.err conftest.$ac_objext \
19906 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019907 done
19908fi
19909LIBS=$ac_func_search_save_LIBS
19910fi
19911echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19912echo "${ECHO_T}$ac_cv_search_tgetent" >&6
19913if test "$ac_cv_search_tgetent" != no; then
19914 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
19915
19916fi
19917
19918
19919echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19920echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
19921if test "${ac_cv_lib_readline_readline+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 ac_check_lib_save_LIBS=$LIBS
19925LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019926cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
19931/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019932
drh71eb93e2001-09-28 01:34:43 +000019933/* Override any gcc2 internal prototype to avoid an error. */
19934#ifdef __cplusplus
19935extern "C"
19936#endif
19937/* We use char because int might match the return type of a gcc2
19938 builtin and then its argument prototype would still apply. */
19939char readline ();
19940int
19941main ()
19942{
19943readline ();
19944 ;
19945 return 0;
19946}
19947_ACEOF
19948rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019950 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019951 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019956 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019957 { ac_try='test -z "$ac_c_werror_flag"
19958 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; } &&
19964 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019966 (eval $ac_try) 2>&5
19967 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019969 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000019970 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000019971else
drh71eb93e2001-09-28 01:34:43 +000019972 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019973sed 's/^/| /' conftest.$ac_ext >&5
19974
paul38372372003-04-22 08:04:49 +000019975ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000019976fi
a.rottmann964dbb12004-02-26 19:47:42 +000019977rm -f conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019979LIBS=$ac_check_lib_save_LIBS
19980fi
19981echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19982echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
19983if test $ac_cv_lib_readline_readline = yes; then
19984 cat >>confdefs.h <<_ACEOF
19985#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000019986_ACEOF
drh75897232000-05-29 14:26:00 +000019987
paul38372372003-04-22 08:04:49 +000019988 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019989
drh75897232000-05-29 14:26:00 +000019990fi
19991
drh75897232000-05-29 14:26:00 +000019992 TARGET_READLINE_LIBS="$LIBS"
19993fi
19994
a.rottmann84e63352003-03-24 09:42:16 +000019995
drh75897232000-05-29 14:26:00 +000019996##########
19997# Figure out where to get the READLINE header files.
19998#
a.rottmann84e63352003-03-24 09:42:16 +000019999echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020000echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020001found=no
20002if test "$config_TARGET_READLINE_INC" != ""; then
20003 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20004 found=yes
20005fi
20006if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020007 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020008echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020009else
a.rottmann84e63352003-03-24 09:42:16 +000020010 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020011echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020012 if test "${ac_cv_header_readline_h+set}" = set; then
20013 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020014echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20015if test "${ac_cv_header_readline_h+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020017fi
20018echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20019echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020020else
a.rottmann84e63352003-03-24 09:42:16 +000020021 # Is the header compilable?
20022echo "$as_me:$LINENO: checking readline.h usability" >&5
20023echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20024cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
20030$ac_includes_default
drh75897232000-05-29 14:26:00 +000020031#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020032_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020033rm -f conftest.$ac_objext
20034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020035 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020036 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020042 { ac_try='test -z "$ac_c_werror_flag"
20043 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_header_compiler=yes
20056else
20057 echo "$as_me: failed program was:" >&5
20058sed 's/^/| /' conftest.$ac_ext >&5
20059
20060ac_header_compiler=no
20061fi
a.rottmann964dbb12004-02-26 19:47:42 +000020062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20064echo "${ECHO_T}$ac_header_compiler" >&6
20065
20066# Is the header present?
20067echo "$as_me:$LINENO: checking readline.h presence" >&5
20068echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20069cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075#include <readline.h>
20076_ACEOF
20077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20079 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020080 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020081 rm -f conftest.er1
20082 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020084 (exit $ac_status); } >/dev/null; then
20085 if test -s conftest.err; then
20086 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020088 else
20089 ac_cpp_err=
20090 fi
drh75897232000-05-29 14:26:00 +000020091else
drh71eb93e2001-09-28 01:34:43 +000020092 ac_cpp_err=yes
20093fi
20094if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020095 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020096else
20097 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020101fi
drh71eb93e2001-09-28 01:34:43 +000020102rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20104echo "${ECHO_T}$ac_header_preproc" >&6
20105
20106# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20108 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020109 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20110echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020111 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20112echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20113 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020114 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020115 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020116 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20117echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020118 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20119echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20121echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20123echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020124 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20125echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020126 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20127echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020128 (
20129 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020130## ------------------------------------------ ##
20131## Report this to the AC_PACKAGE_NAME lists. ##
20132## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020133_ASBOX
20134 ) |
20135 sed "s/^/$as_me: WARNING: /" >&2
20136 ;;
20137esac
20138echo "$as_me:$LINENO: checking for readline.h" >&5
20139echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20140if test "${ac_cv_header_readline_h+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020144fi
a.rottmann84e63352003-03-24 09:42:16 +000020145echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020146echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020147
20148fi
drh71eb93e2001-09-28 01:34:43 +000020149if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020150 found=yes
drh75897232000-05-29 14:26:00 +000020151fi
20152
a.rottmann84e63352003-03-24 09:42:16 +000020153
drh75897232000-05-29 14:26:00 +000020154fi
20155if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020156 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020157 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020158echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020159echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20160if eval "test \"\${$as_ac_File+set}\" = set"; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020162else
20163 test "$cross_compiling" = yes &&
20164 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20165echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20166 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020167if test -r "$dir/include/readline.h"; then
20168 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020169else
drh71eb93e2001-09-28 01:34:43 +000020170 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020171fi
20172fi
a.rottmann84e63352003-03-24 09:42:16 +000020173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020174echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20175if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020176 found=yes
drh75897232000-05-29 14:26:00 +000020177fi
20178
20179 if test "$found" = "yes"; then
20180 TARGET_READLINE_INC="-I$dir/include"
20181 break
20182 fi
drh71eb93e2001-09-28 01:34:43 +000020183 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020184echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020185echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20186if eval "test \"\${$as_ac_File+set}\" = set"; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020188else
20189 test "$cross_compiling" = yes &&
20190 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20191echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20192 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020193if test -r "$dir/include/readline/readline.h"; then
20194 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020195else
drh71eb93e2001-09-28 01:34:43 +000020196 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020197fi
20198fi
a.rottmann84e63352003-03-24 09:42:16 +000020199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020200echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20201if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020202 found=yes
drh75897232000-05-29 14:26:00 +000020203fi
20204
20205 if test "$found" = "yes"; then
20206 TARGET_READLINE_INC="-I$dir/include/readline"
20207 break
20208 fi
20209 done
20210fi
20211if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020212 if test "$TARGET_READLINE_LIBS" = ""; then
20213 TARGET_HAVE_READLINE=0
20214 else
20215 TARGET_HAVE_READLINE=1
20216 fi
drh75897232000-05-29 14:26:00 +000020217else
20218 TARGET_HAVE_READLINE=0
20219fi
20220
a.rottmann84e63352003-03-24 09:42:16 +000020221
20222
drh75897232000-05-29 14:26:00 +000020223#########
drh2dfbbca2000-07-28 14:32:48 +000020224# Figure out whether or not we have a "usleep()" function.
20225#
a.rottmann84e63352003-03-24 09:42:16 +000020226echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020227echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20228if test "${ac_cv_func_usleep+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020230else
drh71eb93e2001-09-28 01:34:43 +000020231 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020237/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20239#define usleep innocuous_usleep
20240
drh2dfbbca2000-07-28 14:32:48 +000020241/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020242 which can conflict with char usleep (); below.
20243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20244 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020245
a.rottmann84e63352003-03-24 09:42:16 +000020246#ifdef __STDC__
20247# include <limits.h>
20248#else
20249# include <assert.h>
20250#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020251
20252#undef usleep
20253
drh2dfbbca2000-07-28 14:32:48 +000020254/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020255#ifdef __cplusplus
20256extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020257{
drh71eb93e2001-09-28 01:34:43 +000020258#endif
drh2dfbbca2000-07-28 14:32:48 +000020259/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020260 builtin and then its argument prototype would still apply. */
20261char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020262/* The GNU C library defines this for functions which it implements
20263 to always fail with ENOSYS. Some functions are actually named
20264 something starting with __ and the normal name is an alias. */
20265#if defined (__stub_usleep) || defined (__stub___usleep)
20266choke me
20267#else
a.rottmann84e63352003-03-24 09:42:16 +000020268char (*f) () = usleep;
20269#endif
20270#ifdef __cplusplus
20271}
drh2dfbbca2000-07-28 14:32:48 +000020272#endif
20273
a.rottmann84e63352003-03-24 09:42:16 +000020274int
20275main ()
20276{
20277return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020284 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020285 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020290 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020300 (eval $ac_try) 2>&5
20301 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020303 (exit $ac_status); }; }; then
20304 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020305else
drh71eb93e2001-09-28 01:34:43 +000020306 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020307sed 's/^/| /' conftest.$ac_ext >&5
20308
drh71eb93e2001-09-28 01:34:43 +000020309ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020310fi
a.rottmann964dbb12004-02-26 19:47:42 +000020311rm -f conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020313fi
a.rottmann84e63352003-03-24 09:42:16 +000020314echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020315echo "${ECHO_T}$ac_cv_func_usleep" >&6
20316if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020317 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020318fi
20319
a.rottmann84e63352003-03-24 09:42:16 +000020320
drh2dfbbca2000-07-28 14:32:48 +000020321#########
drh75897232000-05-29 14:26:00 +000020322# Generate the output files.
20323#
dougcurrie12b34442004-07-19 03:24:59 +000020324 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020325cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020326# This file is a shell script that caches the results of configure
20327# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020328# scripts and configure runs, see configure's option --config-cache.
20329# It is not useful on other systems. If it contains results you don't
20330# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020331#
drh71eb93e2001-09-28 01:34:43 +000020332# config.status only pays attention to the cache file if you give it
20333# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020334#
a.rottmann84e63352003-03-24 09:42:16 +000020335# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020336# loading this file, other *unset* `ac_cv_foo' will be assigned the
20337# following values.
20338
20339_ACEOF
20340
drh75897232000-05-29 14:26:00 +000020341# The following way of writing the cache mishandles newlines in values,
20342# but we know of no workaround that is simple, portable, and efficient.
20343# So, don't put newlines in cache variables' values.
20344# Ultrix sh set writes to stderr and can't be redirected directly,
20345# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020346{
20347 (set) 2>&1 |
20348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20349 *ac_space=\ *)
20350 # `set' does not quote correctly, so add quotes (double-quote
20351 # substitution turns \\\\ into \\, and sed turns \\ into \).
20352 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020353 "s/'/'\\\\''/g;
20354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020355 ;;
20356 *)
20357 # `set' quotes correctly as required by POSIX, so do not add quotes.
20358 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020360 ;;
20361 esac;
20362} |
20363 sed '
20364 t clear
20365 : clear
20366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20367 t end
20368 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20369 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020370if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020371 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020372 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20373 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020374 else
20375 echo "not updating unwritable cache $cache_file"
20376 fi
20377fi
20378rm -f confcache
20379
drh75897232000-05-29 14:26:00 +000020380test "x$prefix" = xNONE && prefix=$ac_default_prefix
20381# Let make expand exec_prefix.
20382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20383
drh71eb93e2001-09-28 01:34:43 +000020384# VPATH may cause trouble with some makes, so we remove $(srcdir),
20385# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20386# trailing colons and then remove the whole line if VPATH becomes empty
20387# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020388if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020390s/:*\$(srcdir):*/:/;
20391s/:*\${srcdir}:*/:/;
20392s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020393s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020394s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020395s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020396}'
drh75897232000-05-29 14:26:00 +000020397fi
20398
drh75897232000-05-29 14:26:00 +000020399# Transform confdefs.h into DEFS.
20400# Protect against shell expansion while executing Makefile rules.
20401# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020402#
20403# If the first sed substitution is executed (which looks for macros that
20404# take arguments), then we branch to the quote section. Otherwise,
20405# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020406cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020407t clear
20408: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020409s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020410t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020411s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020412t quote
20413d
20414: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020415s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020416s,\[,\\&,g
20417s,\],\\&,g
20418s,\$,$$,g
20419p
a.rottmann84e63352003-03-24 09:42:16 +000020420_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020421# We use echo to avoid assuming a particular line-breaking character.
20422# The extra dot is to prevent the shell from consuming trailing
20423# line-breaks from the sub-command output. A line-break within
20424# single-quotes doesn't work because, if this script is created in a
20425# platform that uses two characters for line-breaks (e.g., DOS), tr
20426# would break.
20427ac_LF_and_DOT=`echo; echo .`
20428DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20429rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020430
a.rottmann84e63352003-03-24 09:42:16 +000020431
20432ac_libobjs=
20433ac_ltlibobjs=
20434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20435 # 1. Remove the extension, and $U if already installed.
20436 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020437 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020438 # 2. Add them.
20439 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20440 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20441done
20442LIBOBJS=$ac_libobjs
20443
20444LTLIBOBJS=$ac_ltlibobjs
20445
20446
20447
drh75897232000-05-29 14:26:00 +000020448: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020449ac_clean_files_save=$ac_clean_files
20450ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020451{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020452echo "$as_me: creating $CONFIG_STATUS" >&6;}
20453cat >$CONFIG_STATUS <<_ACEOF
20454#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020455# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020456# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020457# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020458# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020459
drh71eb93e2001-09-28 01:34:43 +000020460debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020461ac_cs_recheck=false
20462ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020463SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020464_ACEOF
drh75897232000-05-29 14:26:00 +000020465
drh71eb93e2001-09-28 01:34:43 +000020466cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020467## --------------------- ##
20468## M4sh Initialization. ##
20469## --------------------- ##
20470
drh71eb93e2001-09-28 01:34:43 +000020471# Be Bourne compatible
20472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20473 emulate sh
20474 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020475 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20476 # is contrary to our usage. Disable this feature.
20477 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020478elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20479 set -o posix
drh75897232000-05-29 14:26:00 +000020480fi
a.rottmann964dbb12004-02-26 19:47:42 +000020481DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020482
a.rottmann84e63352003-03-24 09:42:16 +000020483# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020484if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020485 as_unset=unset
20486else
20487 as_unset=false
20488fi
20489
20490
20491# Work around bugs in pre-3.0 UWIN ksh.
20492$as_unset ENV MAIL MAILPATH
20493PS1='$ '
20494PS2='> '
20495PS4='+ '
20496
20497# NLS nuisances.
20498for as_var in \
20499 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20500 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20501 LC_TELEPHONE LC_TIME
20502do
a.rottmann964dbb12004-02-26 19:47:42 +000020503 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020504 eval $as_var=C; export $as_var
20505 else
20506 $as_unset $as_var
20507 fi
20508done
20509
20510# Required to use basename.
20511if expr a : '\(a\)' >/dev/null 2>&1; then
20512 as_expr=expr
20513else
20514 as_expr=false
20515fi
20516
20517if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20518 as_basename=basename
20519else
20520 as_basename=false
20521fi
20522
20523
drh71eb93e2001-09-28 01:34:43 +000020524# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020525as_me=`$as_basename "$0" ||
20526$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20527 X"$0" : 'X\(//\)$' \| \
20528 X"$0" : 'X\(/\)$' \| \
20529 . : '\(.\)' 2>/dev/null ||
20530echo X/"$0" |
20531 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20532 /^X\/\(\/\/\)$/{ s//\1/; q; }
20533 /^X\/\(\/\).*/{ s//\1/; q; }
20534 s/.*/./; q'`
20535
20536
20537# PATH needs CR, and LINENO needs CR and PATH.
20538# Avoid depending upon Character Ranges.
20539as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20540as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20541as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20542as_cr_digits='0123456789'
20543as_cr_alnum=$as_cr_Letters$as_cr_digits
20544
20545# The user is always right.
20546if test "${PATH_SEPARATOR+set}" != set; then
20547 echo "#! /bin/sh" >conf$$.sh
20548 echo "exit 0" >>conf$$.sh
20549 chmod +x conf$$.sh
20550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20551 PATH_SEPARATOR=';'
20552 else
20553 PATH_SEPARATOR=:
20554 fi
20555 rm -f conf$$.sh
20556fi
20557
20558
20559 as_lineno_1=$LINENO
20560 as_lineno_2=$LINENO
20561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20562 test "x$as_lineno_1" != "x$as_lineno_2" &&
20563 test "x$as_lineno_3" = "x$as_lineno_2" || {
20564 # Find who we are. Look in the path if we contain no path at all
20565 # relative or not.
20566 case $0 in
20567 *[\\/]* ) as_myself=$0 ;;
20568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569for as_dir in $PATH
20570do
20571 IFS=$as_save_IFS
20572 test -z "$as_dir" && as_dir=.
20573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20574done
20575
20576 ;;
20577 esac
20578 # We did not find ourselves, most probably we were run as `sh COMMAND'
20579 # in which case we are not to be found in the path.
20580 if test "x$as_myself" = x; then
20581 as_myself=$0
20582 fi
20583 if test ! -f "$as_myself"; then
20584 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20585echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20586 { (exit 1); exit 1; }; }
20587 fi
20588 case $CONFIG_SHELL in
20589 '')
20590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20592do
20593 IFS=$as_save_IFS
20594 test -z "$as_dir" && as_dir=.
20595 for as_base in sh bash ksh sh5; do
20596 case $as_dir in
20597 /*)
20598 if ("$as_dir/$as_base" -c '
20599 as_lineno_1=$LINENO
20600 as_lineno_2=$LINENO
20601 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20602 test "x$as_lineno_1" != "x$as_lineno_2" &&
20603 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20604 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20605 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20606 CONFIG_SHELL=$as_dir/$as_base
20607 export CONFIG_SHELL
20608 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20609 fi;;
20610 esac
20611 done
20612done
20613;;
20614 esac
20615
20616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20617 # uniformly replaced by the line number. The first 'sed' inserts a
20618 # line-number line before each line; the second 'sed' does the real
20619 # work. The second script uses 'N' to pair each line-number line
20620 # with the numbered line, and appends trailing '-' during
20621 # substitution so that $LINENO is not a special case at line end.
20622 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20623 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20624 sed '=' <$as_myself |
20625 sed '
20626 N
20627 s,$,-,
20628 : loop
20629 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20630 t loop
20631 s,-$,,
20632 s,^['$as_cr_digits']*\n,,
20633 ' >$as_me.lineno &&
20634 chmod +x $as_me.lineno ||
20635 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20636echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20637 { (exit 1); exit 1; }; }
20638
20639 # Don't try to exec as it changes $[0], causing all sort of problems
20640 # (the dirname of $[0] is not the place where we might find the
20641 # original and so on. Autoconf is especially sensible to this).
20642 . ./$as_me.lineno
20643 # Exit status is that of the last command.
20644 exit
20645}
20646
20647
20648case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20649 *c*,-n*) ECHO_N= ECHO_C='
20650' ECHO_T=' ' ;;
20651 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20652 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20653esac
drh71eb93e2001-09-28 01:34:43 +000020654
20655if expr a : '\(a\)' >/dev/null 2>&1; then
20656 as_expr=expr
20657else
20658 as_expr=false
20659fi
20660
20661rm -f conf$$ conf$$.exe conf$$.file
20662echo >conf$$.file
20663if ln -s conf$$.file conf$$ 2>/dev/null; then
20664 # We could just check for DJGPP; but this test a) works b) is more generic
20665 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20666 if test -f conf$$.exe; then
20667 # Don't use ln at all; we don't have any links
20668 as_ln_s='cp -p'
20669 else
20670 as_ln_s='ln -s'
20671 fi
20672elif ln conf$$.file conf$$ 2>/dev/null; then
20673 as_ln_s=ln
20674else
20675 as_ln_s='cp -p'
20676fi
20677rm -f conf$$ conf$$.exe conf$$.file
20678
a.rottmann84e63352003-03-24 09:42:16 +000020679if mkdir -p . 2>/dev/null; then
20680 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020681else
a.rottmann964dbb12004-02-26 19:47:42 +000020682 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020683 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020684fi
20685
a.rottmann84e63352003-03-24 09:42:16 +000020686as_executable_p="test -f"
20687
20688# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020689as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020690
20691# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020692as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020693
drh71eb93e2001-09-28 01:34:43 +000020694
20695# IFS
20696# We need space, tab and new line, in precisely that order.
20697as_nl='
20698'
20699IFS=" $as_nl"
20700
20701# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000020702$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000020703
20704exec 6>&1
20705
a.rottmann84e63352003-03-24 09:42:16 +000020706# Open the log real soon, to keep \$[0] and so on meaningful, and to
20707# report actual input values of CONFIG_FILES etc. instead of their
20708# values after options handling. Logging --version etc. is OK.
20709exec 5>>config.log
20710{
20711 echo
20712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20713## Running $as_me. ##
20714_ASBOX
20715} >&5
20716cat >&5 <<_CSEOF
20717
20718This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000020719generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020720
20721 CONFIG_FILES = $CONFIG_FILES
20722 CONFIG_HEADERS = $CONFIG_HEADERS
20723 CONFIG_LINKS = $CONFIG_LINKS
20724 CONFIG_COMMANDS = $CONFIG_COMMANDS
20725 $ $0 $@
20726
20727_CSEOF
20728echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20729echo >&5
drh71eb93e2001-09-28 01:34:43 +000020730_ACEOF
20731
20732# Files that config.status was made for.
20733if test -n "$ac_config_files"; then
20734 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20735fi
20736
20737if test -n "$ac_config_headers"; then
20738 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20739fi
20740
20741if test -n "$ac_config_links"; then
20742 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20743fi
20744
20745if test -n "$ac_config_commands"; then
20746 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20747fi
20748
a.rottmann84e63352003-03-24 09:42:16 +000020749cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020750
20751ac_cs_usage="\
20752\`$as_me' instantiates files from templates according to the
20753current configuration.
20754
20755Usage: $0 [OPTIONS] [FILE]...
20756
20757 -h, --help print this help, then exit
20758 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020759 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020760 -d, --debug don't remove temporary files
20761 --recheck update $as_me by reconfiguring in the same conditions
20762 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020763 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020764
20765Configuration files:
20766$config_files
20767
20768Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000020769_ACEOF
drh75897232000-05-29 14:26:00 +000020770
a.rottmann84e63352003-03-24 09:42:16 +000020771cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020772ac_cs_version="\\
20773config.status
a.rottmann964dbb12004-02-26 19:47:42 +000020774configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000020775 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000020776
a.rottmann964dbb12004-02-26 19:47:42 +000020777Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000020778This config.status script is free software; the Free Software Foundation
20779gives unlimited permission to copy, distribute and modify it."
20780srcdir=$srcdir
20781INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000020782_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020783
a.rottmann84e63352003-03-24 09:42:16 +000020784cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020785# If no file are specified by the user, then we need to provide default
20786# value. By we need to know if files were specified by the user.
20787ac_need_defaults=:
20788while test $# != 0
20789do
20790 case $1 in
20791 --*=*)
20792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000020794 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000020795 ;;
a.rottmann84e63352003-03-24 09:42:16 +000020796 -*)
20797 ac_option=$1
20798 ac_optarg=$2
20799 ac_shift=shift
20800 ;;
drh71eb93e2001-09-28 01:34:43 +000020801 *) # This is not an option, so the user has probably given explicit
20802 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020803 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000020804 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000020805 esac
20806
a.rottmann84e63352003-03-24 09:42:16 +000020807 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000020808 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000020809_ACEOF
20810cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000020812 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000020813 --version | --vers* | -V )
20814 echo "$ac_cs_version"; exit 0 ;;
20815 --he | --h)
20816 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000020817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000020818Try \`$0 --help' for more information." >&5
20819echo "$as_me: error: ambiguous option: $1
20820Try \`$0 --help' for more information." >&2;}
20821 { (exit 1); exit 1; }; };;
20822 --help | --hel | -h )
20823 echo "$ac_cs_usage"; exit 0 ;;
20824 --debug | --d* | -d )
20825 debug=: ;;
20826 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020827 $ac_shift
20828 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020829 ac_need_defaults=false;;
20830 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000020831 $ac_shift
20832 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020833 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000020834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20836 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020837
drh71eb93e2001-09-28 01:34:43 +000020838 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000020839 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000020840Try \`$0 --help' for more information." >&5
20841echo "$as_me: error: unrecognized option: $1
20842Try \`$0 --help' for more information." >&2;}
20843 { (exit 1); exit 1; }; } ;;
20844
20845 *) ac_config_targets="$ac_config_targets $1" ;;
20846
20847 esac
20848 shift
20849done
20850
a.rottmann84e63352003-03-24 09:42:16 +000020851ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000020852
a.rottmann84e63352003-03-24 09:42:16 +000020853if $ac_cs_silent; then
20854 exec 6>/dev/null
20855 ac_configure_extra_args="$ac_configure_extra_args --silent"
20856fi
drh71eb93e2001-09-28 01:34:43 +000020857
20858_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020859cat >>$CONFIG_STATUS <<_ACEOF
20860if \$ac_cs_recheck; then
20861 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20862 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20863fi
drh71eb93e2001-09-28 01:34:43 +000020864
a.rottmann84e63352003-03-24 09:42:16 +000020865_ACEOF
20866
20867
20868
20869
20870
20871cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020872for ac_config_target in $ac_config_targets
20873do
20874 case "$ac_config_target" in
20875 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000020876 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000020877 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000020878 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000020879echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20880 { (exit 1); exit 1; }; };;
20881 esac
20882done
20883
20884# If the user did not use the arguments to specify the items to instantiate,
20885# then the envvar interface is used. Set only those that are not.
20886# We use the long form for the default assignment because of an extremely
20887# bizarre bug on SunOS 4.1.3.
20888if $ac_need_defaults; then
20889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20890fi
20891
a.rottmann84e63352003-03-24 09:42:16 +000020892# Have a temporary directory for convenience. Make it in the build tree
20893# simply because there is no reason to put it here, and in addition,
20894# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000020895# Create a temporary directory, and hook for its removal unless debugging.
20896$debug ||
20897{
20898 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20899 trap '{ (exit 1); exit 1; }' 1 2 13 15
20900}
20901
20902# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000020903
drh71eb93e2001-09-28 01:34:43 +000020904{
a.rottmann84e63352003-03-24 09:42:16 +000020905 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000020906 test -n "$tmp" && test -d "$tmp"
20907} ||
20908{
a.rottmann84e63352003-03-24 09:42:16 +000020909 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000020910 (umask 077 && mkdir $tmp)
20911} ||
20912{
a.rottmann84e63352003-03-24 09:42:16 +000020913 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000020914 { (exit 1); exit 1; }
20915}
20916
a.rottmann84e63352003-03-24 09:42:16 +000020917_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020918
a.rottmann84e63352003-03-24 09:42:16 +000020919cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020920
20921#
20922# CONFIG_FILES section.
20923#
20924
20925# No need to generate the scripts if there are no CONFIG_FILES.
20926# This happens for instance when ./config.status config.h
20927if test -n "\$CONFIG_FILES"; then
20928 # Protect against being on the right side of a sed subst in config.status.
20929 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20930 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20931s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000020932s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20933s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20934s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20935s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20936s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20937s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000020938s,@exec_prefix@,$exec_prefix,;t t
20939s,@prefix@,$prefix,;t t
20940s,@program_transform_name@,$program_transform_name,;t t
20941s,@bindir@,$bindir,;t t
20942s,@sbindir@,$sbindir,;t t
20943s,@libexecdir@,$libexecdir,;t t
20944s,@datadir@,$datadir,;t t
20945s,@sysconfdir@,$sysconfdir,;t t
20946s,@sharedstatedir@,$sharedstatedir,;t t
20947s,@localstatedir@,$localstatedir,;t t
20948s,@libdir@,$libdir,;t t
20949s,@includedir@,$includedir,;t t
20950s,@oldincludedir@,$oldincludedir,;t t
20951s,@infodir@,$infodir,;t t
20952s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000020953s,@build_alias@,$build_alias,;t t
20954s,@host_alias@,$host_alias,;t t
20955s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000020956s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000020957s,@ECHO_C@,$ECHO_C,;t t
20958s,@ECHO_N@,$ECHO_N,;t t
20959s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000020960s,@LIBS@,$LIBS,;t t
20961s,@build@,$build,;t t
20962s,@build_cpu@,$build_cpu,;t t
20963s,@build_vendor@,$build_vendor,;t t
20964s,@build_os@,$build_os,;t t
20965s,@host@,$host,;t t
20966s,@host_cpu@,$host_cpu,;t t
20967s,@host_vendor@,$host_vendor,;t t
20968s,@host_os@,$host_os,;t t
20969s,@CC@,$CC,;t t
20970s,@CFLAGS@,$CFLAGS,;t t
20971s,@LDFLAGS@,$LDFLAGS,;t t
20972s,@CPPFLAGS@,$CPPFLAGS,;t t
20973s,@ac_ct_CC@,$ac_ct_CC,;t t
20974s,@EXEEXT@,$EXEEXT,;t t
20975s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000020976s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000020977s,@LN_S@,$LN_S,;t t
20978s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000020979s,@AR@,$AR,;t t
20980s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000020981s,@RANLIB@,$RANLIB,;t t
20982s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20983s,@STRIP@,$STRIP,;t t
20984s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20985s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000020986s,@CXX@,$CXX,;t t
20987s,@CXXFLAGS@,$CXXFLAGS,;t t
20988s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20989s,@CXXCPP@,$CXXCPP,;t t
20990s,@F77@,$F77,;t t
20991s,@FFLAGS@,$FFLAGS,;t t
20992s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000020993s,@LIBTOOL@,$LIBTOOL,;t t
20994s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20995s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20996s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20997s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000020998s,@VERSION@,$VERSION,;t t
drh4b2266a2004-11-27 15:52:16 +000020999s,@RELEASE@,$RELEASE,;t t
drh71eb93e2001-09-28 01:34:43 +000021000s,@BUILD_CC@,$BUILD_CC,;t t
21001s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21002s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21003s,@TARGET_CC@,$TARGET_CC,;t t
21004s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21005s,@TARGET_LINK@,$TARGET_LINK,;t t
21006s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21007s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21008s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021009s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021010s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
xdong28f79f72003-09-23 00:35:21 +000021011s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021012s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021013s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21014s,@OS_UNIX@,$OS_UNIX,;t t
21015s,@OS_WIN@,$OS_WIN,;t t
21016s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
21017s,@TARGET_LIBS@,$TARGET_LIBS,;t t
drh7b5717e2004-11-25 13:50:01 +000021018s,@TCL_VERSION@,$TCL_VERSION,;t t
21019s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21020s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21021s,@TCL_LIBS@,$TCL_LIBS,;t t
21022s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
21023s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21024s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21025s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21026s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21027s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21028s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21029s,@HAVE_TCL@,$HAVE_TCL,;t t
drh71eb93e2001-09-28 01:34:43 +000021030s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21031s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21032s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021033s,@LIBOBJS@,$LIBOBJS,;t t
21034s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021035CEOF
21036
a.rottmann84e63352003-03-24 09:42:16 +000021037_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021038
a.rottmann84e63352003-03-24 09:42:16 +000021039 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021040 # Split the substitutions into bite-sized pieces for seds with
21041 # small command number limits, like on Digital OSF/1 and HP-UX.
21042 ac_max_sed_lines=48
21043 ac_sed_frag=1 # Number of current file.
21044 ac_beg=1 # First line for current file.
21045 ac_end=$ac_max_sed_lines # Line after last line for current file.
21046 ac_more_lines=:
21047 ac_sed_cmds=
21048 while $ac_more_lines; do
21049 if test $ac_beg -gt 1; then
21050 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21051 else
21052 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21053 fi
21054 if test ! -s $tmp/subs.frag; then
21055 ac_more_lines=false
21056 else
21057 # The purpose of the label and of the branching condition is to
21058 # speed up the sed processing (if there are no `@' at all, there
21059 # is no need to browse any of the substitutions).
21060 # These are the two extra sed commands mentioned above.
21061 (echo ':t
21062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21063 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021064 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021065 else
a.rottmann964dbb12004-02-26 19:47:42 +000021066 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021067 fi
21068 ac_sed_frag=`expr $ac_sed_frag + 1`
21069 ac_beg=$ac_end
21070 ac_end=`expr $ac_end + $ac_max_sed_lines`
21071 fi
21072 done
21073 if test -z "$ac_sed_cmds"; then
21074 ac_sed_cmds=cat
21075 fi
21076fi # test -n "$CONFIG_FILES"
21077
a.rottmann84e63352003-03-24 09:42:16 +000021078_ACEOF
21079cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021080for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21082 case $ac_file in
21083 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021084 cat >$tmp/stdin
21085 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021087 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021089 * ) ac_file_in=$ac_file.in ;;
21090 esac
21091
21092 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021093 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021095 X"$ac_file" : 'X\(//\)[^/]' \| \
21096 X"$ac_file" : 'X\(//\)$' \| \
21097 X"$ac_file" : 'X\(/\)' \| \
21098 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021099echo X"$ac_file" |
21100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21102 /^X\(\/\/\)$/{ s//\1/; q; }
21103 /^X\(\/\).*/{ s//\1/; q; }
21104 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021105 { if $as_mkdir_p; then
21106 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021107 else
a.rottmann84e63352003-03-24 09:42:16 +000021108 as_dir="$ac_dir"
21109 as_dirs=
21110 while test ! -d "$as_dir"; do
21111 as_dirs="$as_dir $as_dirs"
21112 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021114 X"$as_dir" : 'X\(//\)[^/]' \| \
21115 X"$as_dir" : 'X\(//\)$' \| \
21116 X"$as_dir" : 'X\(/\)' \| \
21117 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021118echo X"$as_dir" |
21119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21121 /^X\(\/\/\)$/{ s//\1/; q; }
21122 /^X\(\/\).*/{ s//\1/; q; }
21123 s/.*/./; q'`
21124 done
21125 test ! -n "$as_dirs" || mkdir $as_dirs
21126 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21127echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21128 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021129
a.rottmann84e63352003-03-24 09:42:16 +000021130 ac_builddir=.
21131
21132if test "$ac_dir" != .; then
21133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21134 # A "../" for each directory in $ac_dir_suffix.
21135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21136else
21137 ac_dir_suffix= ac_top_builddir=
21138fi
21139
21140case $srcdir in
21141 .) # No --srcdir option. We are building in place.
21142 ac_srcdir=.
21143 if test -z "$ac_top_builddir"; then
21144 ac_top_srcdir=.
21145 else
21146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21147 fi ;;
21148 [\\/]* | ?:[\\/]* ) # Absolute path.
21149 ac_srcdir=$srcdir$ac_dir_suffix;
21150 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021151 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21154esac
a.rottmann964dbb12004-02-26 19:47:42 +000021155
21156# Do not use `cd foo && pwd` to compute absolute paths, because
21157# the directories may not exist.
21158case `pwd` in
21159.) ac_abs_builddir="$ac_dir";;
21160*)
21161 case "$ac_dir" in
21162 .) ac_abs_builddir=`pwd`;;
21163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21165 esac;;
21166esac
21167case $ac_abs_builddir in
21168.) ac_abs_top_builddir=${ac_top_builddir}.;;
21169*)
21170 case ${ac_top_builddir}. in
21171 .) ac_abs_top_builddir=$ac_abs_builddir;;
21172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21174 esac;;
21175esac
21176case $ac_abs_builddir in
21177.) ac_abs_srcdir=$ac_srcdir;;
21178*)
21179 case $ac_srcdir in
21180 .) ac_abs_srcdir=$ac_abs_builddir;;
21181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21183 esac;;
21184esac
21185case $ac_abs_builddir in
21186.) ac_abs_top_srcdir=$ac_top_srcdir;;
21187*)
21188 case $ac_top_srcdir in
21189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21192 esac;;
21193esac
a.rottmann84e63352003-03-24 09:42:16 +000021194
drh75897232000-05-29 14:26:00 +000021195
drh71eb93e2001-09-28 01:34:43 +000021196 case $INSTALL in
21197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021198 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021199 esac
21200
dougcurrie0f290bf2004-06-21 18:57:29 +000021201 if test x"$ac_file" != x-; then
21202 { echo "$as_me:$LINENO: creating $ac_file" >&5
21203echo "$as_me: creating $ac_file" >&6;}
21204 rm -f "$ac_file"
21205 fi
drh71eb93e2001-09-28 01:34:43 +000021206 # Let's still pretend it is `configure' which instantiates (i.e., don't
21207 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021208 # /* config.h. Generated by config.status. */
21209 if test x"$ac_file" = x-; then
21210 configure_input=
21211 else
21212 configure_input="$ac_file. "
21213 fi
21214 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021215 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021216
drh71eb93e2001-09-28 01:34:43 +000021217 # First look for the input files in the build tree, otherwise in the
21218 # src tree.
21219 ac_file_inputs=`IFS=:
21220 for f in $ac_file_in; do
21221 case $f in
21222 -) echo $tmp/stdin ;;
21223 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021224 # Absolute (can't be DOS-style, as IFS=:)
21225 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021226echo "$as_me: error: cannot find input file: $f" >&2;}
21227 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021228 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021229 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021230 if test -f "$f"; then
21231 # Build tree
21232 echo "$f"
21233 elif test -f "$srcdir/$f"; then
21234 # Source tree
21235 echo "$srcdir/$f"
21236 else
21237 # /dev/null tree
21238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021239echo "$as_me: error: cannot find input file: $f" >&2;}
21240 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021241 fi;;
drh71eb93e2001-09-28 01:34:43 +000021242 esac
21243 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021244_ACEOF
21245cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021246 sed "$ac_vpsub
21247$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021248_ACEOF
21249cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021250:t
21251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21252s,@configure_input@,$configure_input,;t t
21253s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021254s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021255s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021256s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21257s,@builddir@,$ac_builddir,;t t
21258s,@abs_builddir@,$ac_abs_builddir,;t t
21259s,@top_builddir@,$ac_top_builddir,;t t
21260s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021261s,@INSTALL@,$ac_INSTALL,;t t
21262" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21263 rm -f $tmp/stdin
21264 if test x"$ac_file" != x-; then
21265 mv $tmp/out $ac_file
21266 else
21267 cat $tmp/out
21268 rm -f $tmp/out
21269 fi
drh75897232000-05-29 14:26:00 +000021270
drh71eb93e2001-09-28 01:34:43 +000021271done
a.rottmann84e63352003-03-24 09:42:16 +000021272_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021273
a.rottmann84e63352003-03-24 09:42:16 +000021274cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021275
21276{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021277_ACEOF
drh75897232000-05-29 14:26:00 +000021278chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021279ac_clean_files=$ac_clean_files_save
21280
a.rottmann84e63352003-03-24 09:42:16 +000021281
drh71eb93e2001-09-28 01:34:43 +000021282# configure is writing to config.log, and then calls config.status.
21283# config.status does its own redirection, appending to config.log.
21284# Unfortunately, on DOS this fails, as config.log is still kept open
21285# by configure, so config.status won't be able to write to it; its
21286# output is simply discarded. So we exec the FD to /dev/null,
21287# effectively closing config.log, so it can be properly (re)opened and
21288# appended to by config.status. When coming back to configure, we
21289# need to make the FD available again.
21290if test "$no_create" != yes; then
21291 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021292 ac_config_status_args=
21293 test "$silent" = yes &&
21294 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021295 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021297 exec 5>>config.log
21298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21299 # would make configure fail if this is the last instruction.
21300 $ac_cs_success || { (exit 1); exit 1; }
21301fi
drh75897232000-05-29 14:26:00 +000021302