blob: 90b92b0540a2c009fa6e77ef81bd3c59cb718e9a [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
drh60a1e4b2006-06-03 18:02:15 +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 AWK program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN OS_OS2 TARGET_EXEEXT 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 TARGET_DEBUG TARGET_LIBS 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)
drh94e4f822006-02-15 02:00:25 +00001028 --enable-threadsafe Support threadsafe operation
1029 --enable-cross-thread-connections
1030 Allow connection sharing across threads
1031 --enable-threads-override-locks
1032 Threads can override each others locks
1033 --enable-releasemode Support libtool link to release mode
1034 --enable-tempstore Use an in-ram database for temporary tables
1035 (never,no,yes,always)
1036 --disable-tcl do not build TCL extension
1037 --enable-debug enable debugging & verbose explain
drh71eb93e2001-09-28 01:34:43 +00001038
1039Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001042 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1043 --with-pic try to use only PIC/non-PIC objects [default=use
1044 both]
1045 --with-tags[=TAGS]
1046 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001047 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001048 --with-tcl=DIR directory containing tcl configuration
1049 (tclConfig.sh)
drh71eb93e2001-09-28 01:34:43 +00001050
1051Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
a.rottmann84e63352003-03-24 09:42:16 +00001068_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001077
a.rottmann84e63352003-03-24 09:42:16 +00001078if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083 ac_dir_suffix= ac_top_builddir=
1084fi
drh71eb93e2001-09-28 01:34:43 +00001085
a.rottmann84e63352003-03-24 09:42:16 +00001086case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
a.rottmann964dbb12004-02-26 19:47:42 +00001101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139esac
a.rottmann84e63352003-03-24 09:42:16 +00001140
1141 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001142 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001143 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001144 echo
a.rottmann84e63352003-03-24 09:42:16 +00001145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001147 echo
a.rottmann84e63352003-03-24 09:42:16 +00001148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001150 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001151 echo
1152 $ac_configure --help
1153 else
a.rottmann84e63352003-03-24 09:42:16 +00001154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001155 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001156 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001157 done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001162 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001163
a.rottmann964dbb12004-02-26 19:47:42 +00001164Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001167_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001168 exit 0
1169fi
1170exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001171cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001176generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001177
1178 $ $0 $@
1179
a.rottmann84e63352003-03-24 09:42:16 +00001180_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001181{
1182cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001183## --------- ##
1184## Platform. ##
1185## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195
1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203
drh71eb93e2001-09-28 01:34:43 +00001204_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209 IFS=$as_save_IFS
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1212done
1213
drh71eb93e2001-09-28 01:34:43 +00001214} >&5
1215
a.rottmann84e63352003-03-24 09:42:16 +00001216cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001217
a.rottmann84e63352003-03-24 09:42:16 +00001218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
drh71eb93e2001-09-28 01:34:43 +00001225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001228# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001229# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001230# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001231ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001232ac_configure_args0=
1233ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001234ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001235ac_must_keep_next=false
1236for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001237do
a.rottmann84e63352003-03-24 09:42:16 +00001238 for ac_arg
1239 do
1240 case $ac_arg in
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 continue ;;
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 esac
1248 case $ac_pass in
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 2)
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001253 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001254 else
a.rottmann964dbb12004-02-26 19:47:42 +00001255 case $ac_arg in
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 esac
1263 ;;
1264 -* ) ac_must_keep_next=true ;;
1265 esac
a.rottmann84e63352003-03-24 09:42:16 +00001266 fi
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1269 ac_sep=" "
1270 ;;
1271 esac
1272 done
drh71eb93e2001-09-28 01:34:43 +00001273done
a.rottmann84e63352003-03-24 09:42:16 +00001274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log. We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001282trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001284 {
1285 echo
1286
1287 cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292 echo
1293 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001294{
1295 (set) 2>&1 |
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 *ac_space=\ *)
1298 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001301 ;;
1302 *)
1303 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001305 ;;
1306 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001307}
1308 echo
1309
1310 cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315 echo
1316 for ac_var in $ac_subst_vars
1317 do
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1320 done | sort
1321 echo
1322
1323 if test -n "$ac_subst_files"; then
1324 cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_files
1331 do
1332 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001333 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001334 done | sort
1335 echo
1336 fi
1337
1338 if test -s confdefs.h; then
1339 cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344 echo
1345 sed "/^$/d" confdefs.h | sort
1346 echo
1347 fi
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1351 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001352 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001354 exit $exit_status
1355 ' 0
1356for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
a.rottmann84e63352003-03-24 09:42:16 +00001366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
drh71eb93e2001-09-28 01:34:43 +00001393# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 else
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001405echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001406 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001407 . "$ac_site_file"
1408 fi
1409done
1410
1411if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001416echo "$as_me: loading cache $cache_file" >&6;}
1417 case $cache_file in
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1420 esac
1421 fi
drh75897232000-05-29 14:26:00 +00001422else
a.rottmann84e63352003-03-24 09:42:16 +00001423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001424echo "$as_me: creating cache $cache_file" >&6;}
1425 >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1438 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,);;
1447 *)
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001452echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001454echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001455 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001456 fi;;
1457 esac
a.rottmann84e63352003-03-24 09:42:16 +00001458 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001459 if test "$ac_new_set" = set; then
1460 case $ac_new_val in
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1464 esac
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001468 esac
1469 fi
1470done
1471if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001477fi
1478
1479ac_ext=c
drh75897232000-05-29 14:26:00 +00001480ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001484
a.rottmann84e63352003-03-24 09:42:16 +00001485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
drh75897232000-05-29 14:26:00 +00001503
1504# The following RCS revision string applies to configure.in
drh60a1e4b2006-06-03 18:02:15 +00001505# $Revision: 1.40 $
drh75897232000-05-29 14:26:00 +00001506
1507#########
drh71eb93e2001-09-28 01:34:43 +00001508# Programs needed
drh75897232000-05-29 14:26:00 +00001509#
drh71eb93e2001-09-28 01:34:43 +00001510# Check whether --enable-shared or --disable-shared was given.
1511if test "${enable_shared+set}" = set; then
1512 enableval="$enable_shared"
1513 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001514 case $enableval in
1515 yes) enable_shared=yes ;;
1516 no) enable_shared=no ;;
1517 *)
1518 enable_shared=no
1519 # Look at the argument we got. We use all the common list separators.
1520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1521 for pkg in $enableval; do
1522 IFS="$lt_save_ifs"
1523 if test "X$pkg" = "X$p"; then
1524 enable_shared=yes
1525 fi
1526 done
1527 IFS="$lt_save_ifs"
1528 ;;
1529 esac
drh71eb93e2001-09-28 01:34:43 +00001530else
1531 enable_shared=yes
1532fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001533
drh71eb93e2001-09-28 01:34:43 +00001534# Check whether --enable-static or --disable-static was given.
1535if test "${enable_static+set}" = set; then
1536 enableval="$enable_static"
1537 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001538 case $enableval in
1539 yes) enable_static=yes ;;
1540 no) enable_static=no ;;
1541 *)
1542 enable_static=no
1543 # Look at the argument we got. We use all the common list separators.
1544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1545 for pkg in $enableval; do
1546 IFS="$lt_save_ifs"
1547 if test "X$pkg" = "X$p"; then
1548 enable_static=yes
1549 fi
1550 done
1551 IFS="$lt_save_ifs"
1552 ;;
1553 esac
drh71eb93e2001-09-28 01:34:43 +00001554else
1555 enable_static=yes
1556fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001557
drh71eb93e2001-09-28 01:34:43 +00001558# Check whether --enable-fast-install or --disable-fast-install was given.
1559if test "${enable_fast_install+set}" = set; then
1560 enableval="$enable_fast_install"
1561 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001562 case $enableval in
1563 yes) enable_fast_install=yes ;;
1564 no) enable_fast_install=no ;;
1565 *)
1566 enable_fast_install=no
1567 # Look at the argument we got. We use all the common list separators.
1568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1569 for pkg in $enableval; do
1570 IFS="$lt_save_ifs"
1571 if test "X$pkg" = "X$p"; then
1572 enable_fast_install=yes
1573 fi
1574 done
1575 IFS="$lt_save_ifs"
1576 ;;
1577 esac
drh71eb93e2001-09-28 01:34:43 +00001578else
1579 enable_fast_install=yes
1580fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001581
drh71eb93e2001-09-28 01:34:43 +00001582ac_aux_dir=
1583for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1584 if test -f $ac_dir/install-sh; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/install-sh -c"
1587 break
1588 elif test -f $ac_dir/install.sh; then
1589 ac_aux_dir=$ac_dir
1590 ac_install_sh="$ac_aux_dir/install.sh -c"
1591 break
1592 elif test -f $ac_dir/shtool; then
1593 ac_aux_dir=$ac_dir
1594 ac_install_sh="$ac_aux_dir/shtool install -c"
1595 break
1596 fi
1597done
1598if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001599 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001600echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1601 { (exit 1); exit 1; }; }
1602fi
1603ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1604ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1605ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1606
1607# Make sure we can run config.sub.
1608$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001609 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001610echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1611 { (exit 1); exit 1; }; }
1612
a.rottmann84e63352003-03-24 09:42:16 +00001613echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001614echo $ECHO_N "checking build system type... $ECHO_C" >&6
1615if test "${ac_cv_build+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618 ac_cv_build_alias=$build_alias
1619test -z "$ac_cv_build_alias" &&
1620 ac_cv_build_alias=`$ac_config_guess`
1621test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001622 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001623echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1624 { (exit 1); exit 1; }; }
1625ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001626 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1627echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001628 { (exit 1); exit 1; }; }
1629
1630fi
a.rottmann84e63352003-03-24 09:42:16 +00001631echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001632echo "${ECHO_T}$ac_cv_build" >&6
1633build=$ac_cv_build
1634build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
a.rottmann84e63352003-03-24 09:42:16 +00001638
1639echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001640echo $ECHO_N "checking host system type... $ECHO_C" >&6
1641if test "${ac_cv_host+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 ac_cv_host_alias=$host_alias
1645test -z "$ac_cv_host_alias" &&
1646 ac_cv_host_alias=$ac_cv_build_alias
1647ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001649echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1651
1652fi
a.rottmann84e63352003-03-24 09:42:16 +00001653echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001654echo "${ECHO_T}$ac_cv_host" >&6
1655host=$ac_cv_host
1656host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
a.rottmann84e63352003-03-24 09:42:16 +00001660
drh71eb93e2001-09-28 01:34:43 +00001661ac_ext=c
1662ac_cpp='$CPP $CPPFLAGS'
1663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665ac_compiler_gnu=$ac_cv_c_compiler_gnu
1666if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1668set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001669echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671if test "${ac_cv_prog_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1676else
a.rottmann84e63352003-03-24 09:42:16 +00001677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 break 2
1687 fi
1688done
drh71eb93e2001-09-28 01:34:43 +00001689done
1690
1691fi
1692fi
1693CC=$ac_cv_prog_CC
1694if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001695 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001696echo "${ECHO_T}$CC" >&6
1697else
a.rottmann84e63352003-03-24 09:42:16 +00001698 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001699echo "${ECHO_T}no" >&6
1700fi
1701
1702fi
1703if test -z "$ac_cv_prog_CC"; then
1704 ac_ct_CC=$CC
1705 # Extract the first word of "gcc", so it can be a program name with args.
1706set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001707echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 if test -n "$ac_ct_CC"; then
1713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1714else
a.rottmann84e63352003-03-24 09:42:16 +00001715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_CC="gcc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1725 fi
1726done
drh71eb93e2001-09-28 01:34:43 +00001727done
1728
1729fi
1730fi
1731ac_ct_CC=$ac_cv_prog_ac_ct_CC
1732if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001733 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001734echo "${ECHO_T}$ac_ct_CC" >&6
1735else
a.rottmann84e63352003-03-24 09:42:16 +00001736 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001737echo "${ECHO_T}no" >&6
1738fi
1739
1740 CC=$ac_ct_CC
1741else
1742 CC="$ac_cv_prog_CC"
1743fi
1744
1745if test -z "$CC"; then
1746 if test -n "$ac_tool_prefix"; then
1747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1748set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001749echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1756else
a.rottmann84e63352003-03-24 09:42:16 +00001757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_CC="${ac_tool_prefix}cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768done
drh71eb93e2001-09-28 01:34:43 +00001769done
1770
1771fi
1772fi
1773CC=$ac_cv_prog_CC
1774if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001775 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001776echo "${ECHO_T}$CC" >&6
1777else
a.rottmann84e63352003-03-24 09:42:16 +00001778 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001779echo "${ECHO_T}no" >&6
1780fi
1781
1782fi
1783if test -z "$ac_cv_prog_CC"; then
1784 ac_ct_CC=$CC
1785 # Extract the first word of "cc", so it can be a program name with args.
1786set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001787echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791else
1792 if test -n "$ac_ct_CC"; then
1793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794else
a.rottmann84e63352003-03-24 09:42:16 +00001795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_ac_ct_CC="cc"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 break 2
1805 fi
1806done
drh71eb93e2001-09-28 01:34:43 +00001807done
1808
1809fi
1810fi
1811ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001814echo "${ECHO_T}$ac_ct_CC" >&6
1815else
a.rottmann84e63352003-03-24 09:42:16 +00001816 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001817echo "${ECHO_T}no" >&6
1818fi
1819
1820 CC=$ac_ct_CC
1821else
1822 CC="$ac_cv_prog_CC"
1823fi
1824
1825fi
1826if test -z "$CC"; then
1827 # Extract the first word of "cc", so it can be a program name with args.
1828set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001829echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831if test "${ac_cv_prog_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1836else
1837 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1846 ac_prog_rejected=yes
1847 continue
1848 fi
1849 ac_cv_prog_CC="cc"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
drh71eb93e2001-09-28 01:34:43 +00001854done
1855
1856if test $ac_prog_rejected = yes; then
1857 # We found a bogon in the path, so make sure we never use it.
1858 set dummy $ac_cv_prog_CC
1859 shift
1860 if test $# != 0; then
1861 # We chose a different compiler from the bogus one.
1862 # However, it has the same basename, so the bogon will be chosen
1863 # first if we set CC to just the basename; use the full file name.
1864 shift
a.rottmann84e63352003-03-24 09:42:16 +00001865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001866 fi
1867fi
1868fi
1869fi
1870CC=$ac_cv_prog_CC
1871if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001872 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001873echo "${ECHO_T}$CC" >&6
1874else
a.rottmann84e63352003-03-24 09:42:16 +00001875 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001876echo "${ECHO_T}no" >&6
1877fi
1878
1879fi
1880if test -z "$CC"; then
1881 if test -n "$ac_tool_prefix"; then
1882 for ac_prog in cl
1883 do
1884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001886echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1893else
a.rottmann84e63352003-03-24 09:42:16 +00001894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905done
drh71eb93e2001-09-28 01:34:43 +00001906done
1907
1908fi
1909fi
1910CC=$ac_cv_prog_CC
1911if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001912 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001913echo "${ECHO_T}$CC" >&6
1914else
a.rottmann84e63352003-03-24 09:42:16 +00001915 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001916echo "${ECHO_T}no" >&6
1917fi
1918
1919 test -n "$CC" && break
1920 done
1921fi
1922if test -z "$CC"; then
1923 ac_ct_CC=$CC
1924 for ac_prog in cl
1925do
1926 # Extract the first word of "$ac_prog", so it can be a program name with args.
1927set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001928echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$ac_ct_CC"; then
1934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935else
a.rottmann84e63352003-03-24 09:42:16 +00001936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_CC="$ac_prog"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947done
drh71eb93e2001-09-28 01:34:43 +00001948done
1949
1950fi
1951fi
1952ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001955echo "${ECHO_T}$ac_ct_CC" >&6
1956else
a.rottmann84e63352003-03-24 09:42:16 +00001957 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001958echo "${ECHO_T}no" >&6
1959fi
1960
1961 test -n "$ac_ct_CC" && break
1962done
1963
1964 CC=$ac_ct_CC
1965fi
1966
1967fi
1968
a.rottmann84e63352003-03-24 09:42:16 +00001969
1970test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: no acceptable C compiler found in \$PATH
1973See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001974 { (exit 1); exit 1; }; }
1975
1976# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001977echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001978 "checking for C compiler version" >&5
1979ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001980{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001981 (eval $ac_compiler --version </dev/null >&5) 2>&5
1982 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001984 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001986 (eval $ac_compiler -v </dev/null >&5) 2>&5
1987 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001989 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001991 (eval $ac_compiler -V </dev/null >&5) 2>&5
1992 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001994 (exit $ac_status); }
1995
1996cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001997/* confdefs.h. */
1998_ACEOF
1999cat confdefs.h >>conftest.$ac_ext
2000cat >>conftest.$ac_ext <<_ACEOF
2001/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002002
2003int
2004main ()
2005{
2006
2007 ;
2008 return 0;
2009}
2010_ACEOF
2011ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002012ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002013# Try to create an executable without -o first, disregard a.out.
2014# It will help us diagnose broken compilers, and finding out an intuition
2015# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002016echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2017echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002018ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002019if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002020 (eval $ac_link_default) 2>&5
2021 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002023 (exit $ac_status); }; then
2024 # Find the output, starting from the most likely. This scheme is
2025# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2026# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002027
2028# Be careful to initialize this variable, since it used to be cached.
2029# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030ac_cv_exeext=
2031# b.out is created by i960 compilers.
2032for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033do
2034 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002035 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002037 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002038 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002039 # This is the source file.
2040 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002041 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002042 # We found the default executable, but exeext='' is most
2043 # certainly right.
2044 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002045 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047 # FIXME: I believe we export ac_cv_exeext for Libtool,
2048 # but it would be cool to find out if it's true. Does anybody
2049 # maintain Libtool? --akim.
2050 export ac_cv_exeext
2051 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002052 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002053 break;;
drh71eb93e2001-09-28 01:34:43 +00002054 esac
2055done
2056else
2057 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002058sed 's/^/| /' conftest.$ac_ext >&5
2059
2060{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: C compiler cannot create executables
2063See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002064 { (exit 77); exit 77; }; }
2065fi
2066
2067ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002068echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002069echo "${ECHO_T}$ac_file" >&6
2070
2071# Check the compiler produces executables we can run. If not, either
2072# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002073echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002074echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2075# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2076# If not cross compiling, check that we can run a simple program.
2077if test "$cross_compiling" != yes; then
2078 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002080 (eval $ac_try) 2>&5
2081 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002083 (exit $ac_status); }; }; then
2084 cross_compiling=no
2085 else
2086 if test "$cross_compiling" = maybe; then
2087 cross_compiling=yes
2088 else
a.rottmann84e63352003-03-24 09:42:16 +00002089 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2090If you meant to cross compile, use \`--host'.
2091See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002092echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002093If you meant to cross compile, use \`--host'.
2094See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002095 { (exit 1); exit 1; }; }
2096 fi
2097 fi
2098fi
a.rottmann84e63352003-03-24 09:42:16 +00002099echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002100echo "${ECHO_T}yes" >&6
2101
a.rottmann84e63352003-03-24 09:42:16 +00002102rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002103ac_clean_files=$ac_clean_files_save
2104# Check the compiler produces executables we can run. If not, either
2105# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002106echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002107echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002108echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002109echo "${ECHO_T}$cross_compiling" >&6
2110
a.rottmann84e63352003-03-24 09:42:16 +00002111echo "$as_me:$LINENO: checking for suffix of executables" >&5
2112echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002114 (eval $ac_link) 2>&5
2115 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002117 (exit $ac_status); }; then
2118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2120# work properly (i.e., refer to `conftest.exe'), while it won't with
2121# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002122for ac_file in conftest.exe conftest conftest.*; do
2123 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002124 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002127 export ac_cv_exeext
2128 break;;
drh71eb93e2001-09-28 01:34:43 +00002129 * ) break;;
2130 esac
2131done
2132else
a.rottmann84e63352003-03-24 09:42:16 +00002133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2136See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002137 { (exit 1); exit 1; }; }
2138fi
2139
2140rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002141echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002142echo "${ECHO_T}$ac_cv_exeext" >&6
2143
2144rm -f conftest.$ac_ext
2145EXEEXT=$ac_cv_exeext
2146ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002147echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002149if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002153/* confdefs.h. */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002158
2159int
2160main ()
2161{
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002169 (eval $ac_compile) 2>&5
2170 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177 break;;
2178 esac
2179done
2180else
2181 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185See \`config.log' for more details." >&5
2186echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002188 { (exit 1); exit 1; }; }
2189fi
2190
2191rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192fi
a.rottmann84e63352003-03-24 09:42:16 +00002193echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002194echo "${ECHO_T}$ac_cv_objext" >&6
2195OBJEXT=$ac_cv_objext
2196ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002197echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002198echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002203/* confdefs.h. */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002208
2209int
2210main ()
2211{
2212#ifndef __GNUC__
2213 choke me
2214#endif
2215
2216 ;
2217 return 0;
2218}
2219_ACEOF
2220rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002222 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002223 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002228 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002238 (eval $ac_try) 2>&5
2239 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002241 (exit $ac_status); }; }; then
2242 ac_compiler_gnu=yes
2243else
2244 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002245sed 's/^/| /' conftest.$ac_ext >&5
2246
drh71eb93e2001-09-28 01:34:43 +00002247ac_compiler_gnu=no
2248fi
a.rottmann964dbb12004-02-26 19:47:42 +00002249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002250ac_cv_c_compiler_gnu=$ac_compiler_gnu
2251
2252fi
a.rottmann84e63352003-03-24 09:42:16 +00002253echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002254echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255GCC=`test $ac_compiler_gnu = yes && echo yes`
2256ac_test_CFLAGS=${CFLAGS+set}
2257ac_save_CFLAGS=$CFLAGS
2258CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002259echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002260echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002265/* confdefs.h. */
2266_ACEOF
2267cat confdefs.h >>conftest.$ac_ext
2268cat >>conftest.$ac_ext <<_ACEOF
2269/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002270
2271int
2272main ()
2273{
2274
2275 ;
2276 return 0;
2277}
2278_ACEOF
2279rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002281 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002282 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002287 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002297 (eval $ac_try) 2>&5
2298 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cc_g=yes
2302else
2303 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002304sed 's/^/| /' conftest.$ac_ext >&5
2305
drh71eb93e2001-09-28 01:34:43 +00002306ac_cv_prog_cc_g=no
2307fi
a.rottmann964dbb12004-02-26 19:47:42 +00002308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002309fi
a.rottmann84e63352003-03-24 09:42:16 +00002310echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002311echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2316 CFLAGS="-g -O2"
2317 else
2318 CFLAGS="-g"
2319 fi
2320else
2321 if test "$GCC" = yes; then
2322 CFLAGS="-O2"
2323 else
2324 CFLAGS=
2325 fi
2326fi
a.rottmann84e63352003-03-24 09:42:16 +00002327echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 ac_cv_prog_cc_stdc=no
2333ac_save_CC=$CC
2334cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340#include <stdarg.h>
2341#include <stdio.h>
2342#include <sys/types.h>
2343#include <sys/stat.h>
2344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345struct buf { int x; };
2346FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347static char *e (p, i)
2348 char **p;
2349 int i;
2350{
2351 return p[i];
2352}
2353static char *f (char * (*g) (char **, int), char **p, ...)
2354{
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2361}
a.rottmann964dbb12004-02-26 19:47:42 +00002362
2363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2371
a.rottmann84e63352003-03-24 09:42:16 +00002372int test (int i, double x);
2373struct s1 {int (*f) (int a);};
2374struct s2 {int (*f) (double a);};
2375int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376int argc;
2377char **argv;
2378int
2379main ()
2380{
2381return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386# Don't try gcc -ansi; that turns off useful extensions and
2387# breaks some systems' header files.
2388# AIX -qlanglvl=ansi
2389# Ultrix and OSF/1 -std1
2390# HP-UX 10.20 and later -Ae
2391# HP-UX older versions -Aa -D_HPUX_SOURCE
2392# SVR4 -Xc -D__EXTENSIONS__
2393for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2394do
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002398 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002399 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2419break
2420else
2421 echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424fi
a.rottmann964dbb12004-02-26 19:47:42 +00002425rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002426done
2427rm -f conftest.$ac_ext conftest.$ac_objext
2428CC=$ac_save_CC
2429
2430fi
2431
2432case "x$ac_cv_prog_cc_stdc" in
2433 x|xno)
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435echo "${ECHO_T}none needed" >&6 ;;
2436 *)
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440esac
2441
drh71eb93e2001-09-28 01:34:43 +00002442# Some people use a C++ compiler to compile C. Since we use `exit',
2443# in C++ we need to declare it. In case someone uses the same compiler
2444# for both compiling C and C++ we need to have the C++ compiler decide
2445# the declaration of exit, since it's the most demanding environment.
2446cat >conftest.$ac_ext <<_ACEOF
2447#ifndef __cplusplus
2448 choke me
2449#endif
2450_ACEOF
2451rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002453 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002454 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002459 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002469 (eval $ac_try) 2>&5
2470 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002474 '' \
drh71eb93e2001-09-28 01:34:43 +00002475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2479 'void exit (int);'
2480do
2481 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002487$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002488#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002489int
2490main ()
2491{
2492exit (42);
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002499 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002500 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002505 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002515 (eval $ac_try) 2>&5
2516 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002518 (exit $ac_status); }; }; then
2519 :
2520else
2521 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002522sed 's/^/| /' conftest.$ac_ext >&5
2523
drh71eb93e2001-09-28 01:34:43 +00002524continue
2525fi
a.rottmann964dbb12004-02-26 19:47:42 +00002526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002527 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002533$ac_declaration
2534int
2535main ()
2536{
2537exit (42);
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002544 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002545 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002550 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002560 (eval $ac_try) 2>&5
2561 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002563 (exit $ac_status); }; }; then
2564 break
2565else
2566 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002567sed 's/^/| /' conftest.$ac_ext >&5
2568
drh71eb93e2001-09-28 01:34:43 +00002569fi
a.rottmann964dbb12004-02-26 19:47:42 +00002570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002571done
2572rm -f conftest*
2573if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2577fi
2578
2579else
2580 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002581sed 's/^/| /' conftest.$ac_ext >&5
2582
drh71eb93e2001-09-28 01:34:43 +00002583fi
a.rottmann964dbb12004-02-26 19:47:42 +00002584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002585ac_ext=c
2586ac_cpp='$CPP $CPPFLAGS'
2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
a.rottmann9bc8b932004-02-29 15:18:31 +00002591echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2592echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2593if test "${lt_cv_path_SED+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 # Loop through the user's path and test for sed and gsed.
2597# Then use that list of sed's as ones to test for truncation.
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for lt_ac_prog in sed gsed; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2606 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2607 fi
2608 done
2609 done
2610done
2611lt_ac_max=0
2612lt_ac_count=0
2613# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2614# along with /bin/sed that truncates output.
2615for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2616 test ! -f $lt_ac_sed && break
2617 cat /dev/null > conftest.in
2618 lt_ac_count=0
2619 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2620 # Check for GNU sed and select it if it is found.
2621 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2622 lt_cv_path_SED=$lt_ac_sed
2623 break
2624 fi
2625 while true; do
2626 cat conftest.in conftest.in >conftest.tmp
2627 mv conftest.tmp conftest.in
2628 cp conftest.in conftest.nl
2629 echo >>conftest.nl
2630 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2631 cmp -s conftest.out conftest.nl || break
2632 # 10000 chars as input seems more than enough
2633 test $lt_ac_count -gt 10 && break
2634 lt_ac_count=`expr $lt_ac_count + 1`
2635 if test $lt_ac_count -gt $lt_ac_max; then
2636 lt_ac_max=$lt_ac_count
2637 lt_cv_path_SED=$lt_ac_sed
2638 fi
2639 done
2640done
2641SED=$lt_cv_path_SED
2642
a.rottmann84e63352003-03-24 09:42:16 +00002643fi
2644
a.rottmann9bc8b932004-02-29 15:18:31 +00002645echo "$as_me:$LINENO: result: $SED" >&5
2646echo "${ECHO_T}$SED" >&6
2647
2648echo "$as_me:$LINENO: checking for egrep" >&5
2649echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2650if test "${ac_cv_prog_egrep+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2654 then ac_cv_prog_egrep='grep -E'
2655 else ac_cv_prog_egrep='egrep'
2656 fi
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2659echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2660 EGREP=$ac_cv_prog_egrep
2661
2662
a.rottmann84e63352003-03-24 09:42:16 +00002663
drh71eb93e2001-09-28 01:34:43 +00002664# Check whether --with-gnu-ld or --without-gnu-ld was given.
2665if test "${with_gnu_ld+set}" = set; then
2666 withval="$with_gnu_ld"
2667 test "$withval" = no || with_gnu_ld=yes
2668else
2669 with_gnu_ld=no
2670fi;
2671ac_prog=ld
2672if test "$GCC" = yes; then
2673 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002674 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2675echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002676 case $host in
2677 *-*-mingw*)
2678 # gcc leaves a trailing carriage return which upsets mingw
2679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2680 *)
2681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2682 esac
2683 case $ac_prog in
2684 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002685 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002686 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002687 # Canonicalize the pathname of ld
2688 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002690 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002691 done
2692 test -z "$LD" && LD="$ac_prog"
2693 ;;
2694 "")
2695 # If it fails, then pretend we aren't using GCC.
2696 ac_prog=ld
2697 ;;
2698 *)
2699 # If it is relative, then search for the first ld in PATH.
2700 with_gnu_ld=unknown
2701 ;;
2702 esac
2703elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002704 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002705echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2706else
a.rottmann84e63352003-03-24 09:42:16 +00002707 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002708echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2709fi
2710if test "${lt_cv_path_LD+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002715 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002716 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002717 test -z "$ac_dir" && ac_dir=.
2718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2719 lt_cv_path_LD="$ac_dir/$ac_prog"
2720 # Check to see if the program is GNU ld. I'd rather use --version,
2721 # but apparently some GNU ld's only accept -v.
2722 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2724 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002725 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002726 ;;
2727 *)
drh71eb93e2001-09-28 01:34:43 +00002728 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002729 ;;
2730 esac
drh71eb93e2001-09-28 01:34:43 +00002731 fi
2732 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002733 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002734else
2735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2736fi
2737fi
2738
2739LD="$lt_cv_path_LD"
2740if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002741 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002742echo "${ECHO_T}$LD" >&6
2743else
a.rottmann84e63352003-03-24 09:42:16 +00002744 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002745echo "${ECHO_T}no" >&6
2746fi
a.rottmann84e63352003-03-24 09:42:16 +00002747test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002748echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2749 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002750echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002751echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2752if test "${lt_cv_prog_gnu_ld+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002756case `$LD -v 2>&1 </dev/null` in
2757*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002758 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002759 ;;
2760*)
drh71eb93e2001-09-28 01:34:43 +00002761 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002762 ;;
2763esac
drh71eb93e2001-09-28 01:34:43 +00002764fi
a.rottmann84e63352003-03-24 09:42:16 +00002765echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002766echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2767with_gnu_ld=$lt_cv_prog_gnu_ld
2768
a.rottmann84e63352003-03-24 09:42:16 +00002769
2770echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002771echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2772if test "${lt_cv_ld_reload_flag+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 lt_cv_ld_reload_flag='-r'
2776fi
a.rottmann84e63352003-03-24 09:42:16 +00002777echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002778echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2779reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002780case $reload_flag in
2781"" | " "*) ;;
2782*) reload_flag=" $reload_flag" ;;
2783esac
2784reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002785
a.rottmann84e63352003-03-24 09:42:16 +00002786echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002787echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2788if test "${lt_cv_path_NM+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791 if test -n "$NM"; then
2792 # Let the user override the test.
2793 lt_cv_path_NM="$NM"
2794else
a.rottmann9bc8b932004-02-29 15:18:31 +00002795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002796 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002797 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002798 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002799 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2800 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002801 # Check to see if the nm accepts a BSD-compat flag.
2802 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2803 # nm: unknown option "B" ignored
2804 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002805 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2806 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002807 lt_cv_path_NM="$tmp_nm -B"
2808 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002809 ;;
2810 *)
2811 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2812 */dev/null*)
2813 lt_cv_path_NM="$tmp_nm -p"
2814 break
2815 ;;
2816 *)
2817 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2818 continue # so that we can try to find one that supports BSD flags
2819 ;;
2820 esac
2821 esac
drh71eb93e2001-09-28 01:34:43 +00002822 fi
2823 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002824 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002825 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2826fi
2827fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002828echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2829echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002830NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002831
2832echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002833echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2834LN_S=$as_ln_s
2835if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002836 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002837echo "${ECHO_T}yes" >&6
2838else
a.rottmann84e63352003-03-24 09:42:16 +00002839 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002840echo "${ECHO_T}no, using $LN_S" >&6
2841fi
2842
a.rottmann84e63352003-03-24 09:42:16 +00002843echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2844echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002845if test "${lt_cv_deplibs_check_method+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 lt_cv_file_magic_cmd='$MAGIC_CMD'
2849lt_cv_file_magic_test_file=
2850lt_cv_deplibs_check_method='unknown'
2851# Need to set the preceding variable on all platforms that support
2852# interlibrary dependencies.
2853# 'none' -- dependencies not supported.
2854# `unknown' -- same as none, but documents that we really don't know.
2855# 'pass_all' -- all dependencies passed with no checks.
2856# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002857# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002858# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002859# If you have `file' or equivalent on your system and you're not sure
2860# whether `pass_all' will *always* work, you probably want this one.
2861
2862case $host_os in
2863aix4* | aix5*)
2864 lt_cv_deplibs_check_method=pass_all
2865 ;;
2866
2867beos*)
2868 lt_cv_deplibs_check_method=pass_all
2869 ;;
2870
2871bsdi4*)
2872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2873 lt_cv_file_magic_cmd='/usr/bin/file -L'
2874 lt_cv_file_magic_test_file=/shlib/libc.so
2875 ;;
2876
a.rottmann9bc8b932004-02-29 15:18:31 +00002877cygwin*)
2878 # win32_libid is a shell function defined in ltmain.sh
2879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2880 lt_cv_file_magic_cmd='win32_libid'
2881 ;;
2882
2883mingw* | pw32*)
2884 # Base MSYS/MinGW do not provide the 'file' command needed by
2885 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002886 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2887 lt_cv_file_magic_cmd='$OBJDUMP -f'
2888 ;;
2889
2890darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002891 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002892 ;;
2893
a.rottmann9bc8b932004-02-29 15:18:31 +00002894freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002895 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2896 case $host_cpu in
2897 i*86 )
2898 # Not sure whether the presence of OpenBSD here was a mistake.
2899 # Let's accept both of them until this is cleared up.
2900 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2901 lt_cv_file_magic_cmd=/usr/bin/file
2902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2903 ;;
2904 esac
2905 else
2906 lt_cv_deplibs_check_method=pass_all
2907 fi
2908 ;;
2909
2910gnu*)
2911 lt_cv_deplibs_check_method=pass_all
2912 ;;
2913
a.rottmann9bc8b932004-02-29 15:18:31 +00002914hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002915 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002916 case "$host_cpu" in
2917 ia64*)
2918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2920 ;;
2921 hppa*64*)
2922 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]'
2923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2924 ;;
2925 *)
2926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2928 ;;
2929 esac
drh71eb93e2001-09-28 01:34:43 +00002930 ;;
2931
a.rottmann84e63352003-03-24 09:42:16 +00002932irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002933 case $LD in
2934 *-32|*"-32 ") libmagic=32-bit;;
2935 *-n32|*"-n32 ") libmagic=N32;;
2936 *-64|*"-64 ") libmagic=64-bit;;
2937 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002938 esac
drh71eb93e2001-09-28 01:34:43 +00002939 lt_cv_deplibs_check_method=pass_all
2940 ;;
2941
2942# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002943linux*)
2944 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002945 ;;
2946
a.rottmann9bc8b932004-02-29 15:18:31 +00002947netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002948 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002950 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002952 fi
2953 ;;
2954
2955newos6*)
2956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2957 lt_cv_file_magic_cmd=/usr/bin/file
2958 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2959 ;;
2960
a.rottmann9bc8b932004-02-29 15:18:31 +00002961nto-qnx*)
2962 lt_cv_deplibs_check_method=unknown
2963 ;;
2964
a.rottmann84e63352003-03-24 09:42:16 +00002965openbsd*)
2966 lt_cv_file_magic_cmd=/usr/bin/file
2967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2970 else
2971 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2972 fi
drh71eb93e2001-09-28 01:34:43 +00002973 ;;
2974
2975osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002976 lt_cv_deplibs_check_method=pass_all
2977 ;;
2978
2979sco3.2v5*)
2980 lt_cv_deplibs_check_method=pass_all
2981 ;;
2982
2983solaris*)
2984 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002985 ;;
2986
drh71eb93e2001-09-28 01:34:43 +00002987sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2988 case $host_vendor in
2989 motorola)
2990 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]'
2991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2992 ;;
2993 ncr)
2994 lt_cv_deplibs_check_method=pass_all
2995 ;;
2996 sequent)
2997 lt_cv_file_magic_cmd='/bin/file'
2998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2999 ;;
3000 sni)
3001 lt_cv_file_magic_cmd='/bin/file'
3002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3003 lt_cv_file_magic_test_file=/lib/libc.so
3004 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003005 siemens)
3006 lt_cv_deplibs_check_method=pass_all
3007 ;;
drh71eb93e2001-09-28 01:34:43 +00003008 esac
3009 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003010
3011sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3012 lt_cv_deplibs_check_method=pass_all
3013 ;;
drh71eb93e2001-09-28 01:34:43 +00003014esac
3015
3016fi
a.rottmann84e63352003-03-24 09:42:16 +00003017echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003018echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3019file_magic_cmd=$lt_cv_file_magic_cmd
3020deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003021test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003022
drh71eb93e2001-09-28 01:34:43 +00003023
drh71eb93e2001-09-28 01:34:43 +00003024
drh71eb93e2001-09-28 01:34:43 +00003025
a.rottmann9bc8b932004-02-29 15:18:31 +00003026# If no C compiler was specified, use CC.
3027LTCC=${LTCC-"$CC"}
3028
3029# Allow CC to be a program name with arguments.
3030compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003031
drh71eb93e2001-09-28 01:34:43 +00003032
a.rottmann9bc8b932004-02-29 15:18:31 +00003033# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3034if test "${enable_libtool_lock+set}" = set; then
3035 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003036
a.rottmann9bc8b932004-02-29 15:18:31 +00003037fi;
3038test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003039
a.rottmann9bc8b932004-02-29 15:18:31 +00003040# Some flags need to be propagated to the compiler or linker for good
3041# libtool support.
3042case $host in
3043ia64-*-hpux*)
3044 # Find out which ABI we are using.
3045 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003047 (eval $ac_compile) 2>&5
3048 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003050 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003051 case `/usr/bin/file conftest.$ac_objext` in
3052 *ELF-32*)
3053 HPUX_IA64_MODE="32"
3054 ;;
3055 *ELF-64*)
3056 HPUX_IA64_MODE="64"
3057 ;;
3058 esac
3059 fi
3060 rm -rf conftest*
3061 ;;
3062*-*-irix6*)
3063 # Find out which ABI we are using.
drh94e4f822006-02-15 02:00:25 +00003064 echo '#line 3064 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003067 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003069 (exit $ac_status); }; then
3070 if test "$lt_cv_prog_gnu_ld" = yes; then
3071 case `/usr/bin/file conftest.$ac_objext` in
3072 *32-bit*)
3073 LD="${LD-ld} -melf32bsmip"
3074 ;;
3075 *N32*)
3076 LD="${LD-ld} -melf32bmipn32"
3077 ;;
3078 *64-bit*)
3079 LD="${LD-ld} -melf64bmip"
3080 ;;
3081 esac
3082 else
3083 case `/usr/bin/file conftest.$ac_objext` in
3084 *32-bit*)
3085 LD="${LD-ld} -32"
3086 ;;
3087 *N32*)
3088 LD="${LD-ld} -n32"
3089 ;;
3090 *64-bit*)
3091 LD="${LD-ld} -64"
3092 ;;
3093 esac
3094 fi
3095 fi
3096 rm -rf conftest*
3097 ;;
drh71eb93e2001-09-28 01:34:43 +00003098
a.rottmann9bc8b932004-02-29 15:18:31 +00003099x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3100 # Find out which ABI we are using.
3101 echo 'int i;' > conftest.$ac_ext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; then
3107 case "`/usr/bin/file conftest.o`" in
3108 *32-bit*)
3109 case $host in
3110 x86_64-*linux*)
3111 LD="${LD-ld} -m elf_i386"
3112 ;;
3113 ppc64-*linux*|powerpc64-*linux*)
3114 LD="${LD-ld} -m elf32ppclinux"
3115 ;;
3116 s390x-*linux*)
3117 LD="${LD-ld} -m elf_s390"
3118 ;;
3119 sparc64-*linux*)
3120 LD="${LD-ld} -m elf32_sparc"
3121 ;;
3122 esac
3123 ;;
3124 *64-bit*)
3125 case $host in
3126 x86_64-*linux*)
3127 LD="${LD-ld} -m elf_x86_64"
3128 ;;
3129 ppc*-*linux*|powerpc*-*linux*)
3130 LD="${LD-ld} -m elf64ppc"
3131 ;;
3132 s390*-*linux*)
3133 LD="${LD-ld} -m elf64_s390"
3134 ;;
3135 sparc*-*linux*)
3136 LD="${LD-ld} -m elf64_sparc"
3137 ;;
3138 esac
3139 ;;
3140 esac
3141 fi
3142 rm -rf conftest*
3143 ;;
drh71eb93e2001-09-28 01:34:43 +00003144
a.rottmann9bc8b932004-02-29 15:18:31 +00003145*-*-sco3.2v5*)
3146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3147 SAVE_CFLAGS="$CFLAGS"
3148 CFLAGS="$CFLAGS -belf"
3149 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3150echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3151if test "${lt_cv_cc_needs_belf+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 ac_ext=c
3155ac_cpp='$CPP $CPPFLAGS'
3156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003159
a.rottmann9bc8b932004-02-29 15:18:31 +00003160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003166
a.rottmann9bc8b932004-02-29 15:18:31 +00003167int
3168main ()
drh71eb93e2001-09-28 01:34:43 +00003169{
drh71eb93e2001-09-28 01:34:43 +00003170
a.rottmann9bc8b932004-02-29 15:18:31 +00003171 ;
3172 return 0;
drh71eb93e2001-09-28 01:34:43 +00003173}
a.rottmann9bc8b932004-02-29 15:18:31 +00003174_ACEOF
3175rm -f conftest.$ac_objext conftest$ac_exeext
3176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3177 (eval $ac_link) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003184 { ac_try='test -z "$ac_c_werror_flag"
3185 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003188 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest$ac_exeext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003198else
a.rottmann9bc8b932004-02-29 15:18:31 +00003199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003203fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003204rm -f conftest.err conftest.$ac_objext \
3205 conftest$ac_exeext conftest.$ac_ext
3206 ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
drh71eb93e2001-09-28 01:34:43 +00003212fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003213echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3214echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3215 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3216 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3217 CFLAGS="$SAVE_CFLAGS"
3218 fi
3219 ;;
3220
3221esac
3222
3223need_locks="$enable_libtool_lock"
3224
drh71eb93e2001-09-28 01:34:43 +00003225
a.rottmann84e63352003-03-24 09:42:16 +00003226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3233# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then
3235 CPP=
3236fi
3237if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
a.rottmann84e63352003-03-24 09:42:16 +00003241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do
3244 ac_preproc_ok=false
3245for ac_c_preproc_warn_flag in '' yes
3246do
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#ifdef __STDC__
3260# include <limits.h>
3261#else
3262# include <assert.h>
3263#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003264 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003265_ACEOF
3266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003277 else
3278 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003279 fi
a.rottmann84e63352003-03-24 09:42:16 +00003280else
3281 ac_cpp_err=yes
3282fi
3283if test -z "$ac_cpp_err"; then
3284 :
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 # Broken: fails on valid input.
3290continue
3291fi
3292rm -f conftest.err conftest.$ac_ext
3293
3294 # OK, works on sane cases. Now check whether non-existent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302#include <ac_nonexistent.h>
3303_ACEOF
3304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003315 else
3316 ac_cpp_err=
3317 fi
3318else
3319 ac_cpp_err=yes
3320fi
3321if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3323continue
3324else
3325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 # Passes both tests.
3329ac_preproc_ok=:
3330break
3331fi
3332rm -f conftest.err conftest.$ac_ext
3333
3334done
3335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336rm -f conftest.err conftest.$ac_ext
3337if $ac_preproc_ok; then
3338 break
3339fi
3340
3341 done
3342 ac_cv_prog_CPP=$CPP
3343
3344fi
3345 CPP=$ac_cv_prog_CPP
3346else
3347 ac_cv_prog_CPP=$CPP
3348fi
3349echo "$as_me:$LINENO: result: $CPP" >&5
3350echo "${ECHO_T}$CPP" >&6
3351ac_preproc_ok=false
3352for ac_c_preproc_warn_flag in '' yes
3353do
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#ifdef __STDC__
3367# include <limits.h>
3368#else
3369# include <assert.h>
3370#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003371 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003372_ACEOF
3373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003384 else
3385 ac_cpp_err=
3386 fi
3387else
3388 ac_cpp_err=yes
3389fi
3390if test -z "$ac_cpp_err"; then
3391 :
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 # Broken: fails on valid input.
3397continue
3398fi
3399rm -f conftest.err conftest.$ac_ext
3400
3401 # OK, works on sane cases. Now check whether non-existent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409#include <ac_nonexistent.h>
3410_ACEOF
3411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003422 else
3423 ac_cpp_err=
3424 fi
3425else
3426 ac_cpp_err=yes
3427fi
3428if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3430continue
3431else
3432 echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 # Passes both tests.
3436ac_preproc_ok=:
3437break
3438fi
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445 :
3446else
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
a.rottmann84e63352003-03-24 09:42:16 +00003461echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3462echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3463if test "${ac_cv_header_stdc+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472#include <stdlib.h>
3473#include <stdarg.h>
3474#include <string.h>
3475#include <float.h>
3476
3477int
3478main ()
3479{
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003487 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003488 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_cv_header_stdc=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512ac_cv_header_stdc=no
3513fi
a.rottmann964dbb12004-02-26 19:47:42 +00003514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003515
3516if test $ac_cv_header_stdc = yes; then
3517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3518 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#include <string.h>
3525
3526_ACEOF
3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "memchr" >/dev/null 2>&1; then
3529 :
3530else
3531 ac_cv_header_stdc=no
3532fi
3533rm -f conftest*
3534
3535fi
3536
3537if test $ac_cv_header_stdc = yes; then
3538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545#include <stdlib.h>
3546
3547_ACEOF
3548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then
3550 :
3551else
3552 ac_cv_header_stdc=no
3553fi
3554rm -f conftest*
3555
3556fi
3557
3558if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then
3561 :
3562else
3563 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
3569#include <ctype.h>
3570#if ((' ' & 0x0FF) == 0x020)
3571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3573#else
3574# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003575 (('a' <= (c) && (c) <= 'i') \
3576 || ('j' <= (c) && (c) <= 'r') \
3577 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3579#endif
3580
3581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3582int
3583main ()
3584{
3585 int i;
3586 for (i = 0; i < 256; i++)
3587 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003588 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003589 exit(2);
3590 exit (0);
3591}
3592_ACEOF
3593rm -f conftest$ac_exeext
3594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3595 (eval $ac_link) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 :
3605else
3606 echo "$as_me: program exited with status $ac_status" >&5
3607echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610( exit $ac_status )
3611ac_cv_header_stdc=no
3612fi
a.rottmann964dbb12004-02-26 19:47:42 +00003613rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003614fi
3615fi
3616fi
3617echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3618echo "${ECHO_T}$ac_cv_header_stdc" >&6
3619if test $ac_cv_header_stdc = yes; then
3620
3621cat >>confdefs.h <<\_ACEOF
3622#define STDC_HEADERS 1
3623_ACEOF
3624
3625fi
3626
3627# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003638 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003639do
3640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3641echo "$as_me:$LINENO: checking for $ac_header" >&5
3642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3643if eval "test \"\${$as_ac_Header+set}\" = set"; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652$ac_includes_default
3653
3654#include <$ac_header>
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003658 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003659 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 eval "$as_ac_Header=yes"
3679else
3680 echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683eval "$as_ac_Header=no"
3684fi
a.rottmann964dbb12004-02-26 19:47:42 +00003685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003686fi
3687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3689if test `eval echo '${'$as_ac_Header'}'` = yes; then
3690 cat >>confdefs.h <<_ACEOF
3691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692_ACEOF
3693
3694fi
3695
3696done
3697
3698
3699
3700for ac_header in dlfcn.h
3701do
3702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3703if eval "test \"\${$as_ac_Header+set}\" = set"; then
3704 echo "$as_me:$LINENO: checking for $ac_header" >&5
3705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3706if eval "test \"\${$as_ac_Header+set}\" = set"; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708fi
3709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3711else
3712 # Is the header compilable?
3713echo "$as_me:$LINENO: checking $ac_header usability" >&5
3714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3715cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003716/* confdefs.h. */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h. */
3721$ac_includes_default
3722#include <$ac_header>
3723_ACEOF
3724rm -f conftest.$ac_objext
3725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003726 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003727 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003733 { ac_try='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_header_compiler=yes
3747else
3748 echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751ac_header_compiler=no
3752fi
a.rottmann964dbb12004-02-26 19:47:42 +00003753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3755echo "${ECHO_T}$ac_header_compiler" >&6
3756
3757# Is the header present?
3758echo "$as_me:$LINENO: checking $ac_header presence" >&5
3759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3760cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003761/* confdefs.h. */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h. */
3766#include <$ac_header>
3767_ACEOF
3768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } >/dev/null; then
3776 if test -s conftest.err; then
3777 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003779 else
3780 ac_cpp_err=
3781 fi
3782else
3783 ac_cpp_err=yes
3784fi
3785if test -z "$ac_cpp_err"; then
3786 ac_header_preproc=yes
3787else
3788 echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 ac_header_preproc=no
3792fi
3793rm -f conftest.err conftest.$ac_ext
3794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3795echo "${ECHO_T}$ac_header_preproc" >&6
3796
3797# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3799 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3804 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003805 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003806 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003819 (
3820 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003821## ------------------------------------------ ##
3822## Report this to the AC_PACKAGE_NAME lists. ##
3823## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003824_ASBOX
3825 ) |
3826 sed "s/^/$as_me: WARNING: /" >&2
3827 ;;
drh71eb93e2001-09-28 01:34:43 +00003828esac
a.rottmann84e63352003-03-24 09:42:16 +00003829echo "$as_me:$LINENO: checking for $ac_header" >&5
3830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3831if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
a.rottmann964dbb12004-02-26 19:47:42 +00003834 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003835fi
3836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3838
3839fi
3840if test `eval echo '${'$as_ac_Header'}'` = yes; then
3841 cat >>confdefs.h <<_ACEOF
3842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843_ACEOF
3844
3845fi
3846
drh71eb93e2001-09-28 01:34:43 +00003847done
3848
a.rottmann9bc8b932004-02-29 15:18:31 +00003849ac_ext=cc
3850ac_cpp='$CXXCPP $CPPFLAGS'
3851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3854if test -n "$ac_tool_prefix"; then
3855 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3856 do
3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3858set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3859echo "$as_me:$LINENO: checking for $ac_word" >&5
3860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
a.rottmann9bc8b932004-02-29 15:18:31 +00003864 if test -n "$CXX"; then
3865 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879done
drh71eb93e2001-09-28 01:34:43 +00003880
drh71eb93e2001-09-28 01:34:43 +00003881fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003882fi
3883CXX=$ac_cv_prog_CXX
3884if test -n "$CXX"; then
3885 echo "$as_me:$LINENO: result: $CXX" >&5
3886echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003887else
a.rottmann84e63352003-03-24 09:42:16 +00003888 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003889echo "${ECHO_T}no" >&6
3890fi
3891
a.rottmann9bc8b932004-02-29 15:18:31 +00003892 test -n "$CXX" && break
3893 done
3894fi
3895if test -z "$CXX"; then
3896 ac_ct_CXX=$CXX
3897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3898do
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900set dummy $ac_prog; ac_word=$2
3901echo "$as_me:$LINENO: checking for $ac_word" >&5
3902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
a.rottmann9bc8b932004-02-29 15:18:31 +00003906 if test -n "$ac_ct_CXX"; then
3907 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_ac_ct_CXX="$ac_prog"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921done
drh71eb93e2001-09-28 01:34:43 +00003922
drh71eb93e2001-09-28 01:34:43 +00003923fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003924fi
3925ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3926if test -n "$ac_ct_CXX"; then
3927 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3928echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003929else
a.rottmann84e63352003-03-24 09:42:16 +00003930 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003931echo "${ECHO_T}no" >&6
3932fi
3933
a.rottmann9bc8b932004-02-29 15:18:31 +00003934 test -n "$ac_ct_CXX" && break
3935done
3936test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3937
3938 CXX=$ac_ct_CXX
3939fi
3940
3941
3942# Provide some information about the compiler.
3943echo "$as_me:$LINENO:" \
3944 "checking for C++ compiler version" >&5
3945ac_compiler=`set X $ac_compile; echo $2`
3946{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3947 (eval $ac_compiler --version </dev/null >&5) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }
3951{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3952 (eval $ac_compiler -v </dev/null >&5) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3957 (eval $ac_compiler -V </dev/null >&5) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }
3961
3962echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3963echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3964if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
3973
3974int
3975main ()
3976{
3977#ifndef __GNUC__
3978 choke me
3979#endif
3980
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985rm -f conftest.$ac_objext
3986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003994 { ac_try='test -z "$ac_cxx_werror_flag"
3995 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_compiler_gnu=yes
4008else
4009 echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012ac_compiler_gnu=no
4013fi
4014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4016
4017fi
4018echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4019echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4020GXX=`test $ac_compiler_gnu = yes && echo yes`
4021ac_test_CXXFLAGS=${CXXFLAGS+set}
4022ac_save_CXXFLAGS=$CXXFLAGS
4023CXXFLAGS="-g"
4024echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4025echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4026if test "${ac_cv_prog_cxx_g+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029 cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035
4036int
4037main ()
4038{
4039
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext
4045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004053 { ac_try='test -z "$ac_cxx_werror_flag"
4054 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 ac_cv_prog_cxx_g=yes
4067else
4068 echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071ac_cv_prog_cxx_g=no
4072fi
4073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4074fi
4075echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4076echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4077if test "$ac_test_CXXFLAGS" = set; then
4078 CXXFLAGS=$ac_save_CXXFLAGS
4079elif test $ac_cv_prog_cxx_g = yes; then
4080 if test "$GXX" = yes; then
4081 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004082 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004083 CXXFLAGS="-g"
4084 fi
4085else
4086 if test "$GXX" = yes; then
4087 CXXFLAGS="-O2"
4088 else
4089 CXXFLAGS=
4090 fi
4091fi
4092for ac_declaration in \
4093 '' \
4094 'extern "C" void std::exit (int) throw (); using std::exit;' \
4095 'extern "C" void std::exit (int); using std::exit;' \
4096 'extern "C" void exit (int) throw ();' \
4097 'extern "C" void exit (int);' \
4098 'void exit (int);'
4099do
4100 cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
4106$ac_declaration
4107#include <stdlib.h>
4108int
4109main ()
4110{
4111exit (42);
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004125 { ac_try='test -z "$ac_cxx_werror_flag"
4126 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 :
4139else
4140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143continue
4144fi
4145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h. */
4152$ac_declaration
4153int
4154main ()
4155{
4156exit (42);
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161rm -f conftest.$ac_objext
4162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004170 { ac_try='test -z "$ac_cxx_werror_flag"
4171 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 break
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188fi
4189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190done
4191rm -f conftest*
4192if test -n "$ac_declaration"; then
4193 echo '#ifdef __cplusplus' >>confdefs.h
4194 echo $ac_declaration >>confdefs.h
4195 echo '#endif' >>confdefs.h
4196fi
4197
4198ac_ext=cc
4199ac_cpp='$CXXCPP $CPPFLAGS'
4200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4203
4204ac_ext=cc
4205ac_cpp='$CXXCPP $CPPFLAGS'
4206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4209echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4210echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4211if test -z "$CXXCPP"; then
4212 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215 # Double quotes because CXXCPP needs to be expanded
4216 for CXXCPP in "$CXX -E" "/lib/cpp"
4217 do
4218 ac_preproc_ok=false
4219for ac_cxx_preproc_warn_flag in '' yes
4220do
4221 # Use a header file that comes with gcc, so configuring glibc
4222 # with a fresh cross-compiler works.
4223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224 # <limits.h> exists even on freestanding compilers.
4225 # On the NeXT, cc -E runs the code through the compiler's parser,
4226 # not just through cpp. "Syntax error" is here to catch this case.
4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233#ifdef __STDC__
4234# include <limits.h>
4235#else
4236# include <assert.h>
4237#endif
4238 Syntax error
4239_ACEOF
4240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4242 ac_status=$?
4243 grep -v '^ *+' conftest.er1 >conftest.err
4244 rm -f conftest.er1
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } >/dev/null; then
4248 if test -s conftest.err; then
4249 ac_cpp_err=$ac_cxx_preproc_warn_flag
4250 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4251 else
4252 ac_cpp_err=
4253 fi
4254else
4255 ac_cpp_err=yes
4256fi
4257if test -z "$ac_cpp_err"; then
4258 :
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 # Broken: fails on valid input.
4264continue
4265fi
4266rm -f conftest.err conftest.$ac_ext
4267
4268 # OK, works on sane cases. Now check whether non-existent headers
4269 # can be detected and how.
4270 cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276#include <ac_nonexistent.h>
4277_ACEOF
4278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } >/dev/null; then
4286 if test -s conftest.err; then
4287 ac_cpp_err=$ac_cxx_preproc_warn_flag
4288 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4289 else
4290 ac_cpp_err=
4291 fi
4292else
4293 ac_cpp_err=yes
4294fi
4295if test -z "$ac_cpp_err"; then
4296 # Broken: success on invalid input.
4297continue
4298else
4299 echo "$as_me: failed program was:" >&5
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 # Passes both tests.
4303ac_preproc_ok=:
4304break
4305fi
4306rm -f conftest.err conftest.$ac_ext
4307
4308done
4309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310rm -f conftest.err conftest.$ac_ext
4311if $ac_preproc_ok; then
4312 break
4313fi
4314
4315 done
4316 ac_cv_prog_CXXCPP=$CXXCPP
4317
4318fi
4319 CXXCPP=$ac_cv_prog_CXXCPP
4320else
4321 ac_cv_prog_CXXCPP=$CXXCPP
4322fi
4323echo "$as_me:$LINENO: result: $CXXCPP" >&5
4324echo "${ECHO_T}$CXXCPP" >&6
4325ac_preproc_ok=false
4326for ac_cxx_preproc_warn_flag in '' yes
4327do
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340#ifdef __STDC__
4341# include <limits.h>
4342#else
4343# include <assert.h>
4344#endif
4345 Syntax error
4346_ACEOF
4347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null; then
4355 if test -s conftest.err; then
4356 ac_cpp_err=$ac_cxx_preproc_warn_flag
4357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4358 else
4359 ac_cpp_err=
4360 fi
4361else
4362 ac_cpp_err=yes
4363fi
4364if test -z "$ac_cpp_err"; then
4365 :
4366else
4367 echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 # Broken: fails on valid input.
4371continue
4372fi
4373rm -f conftest.err conftest.$ac_ext
4374
4375 # OK, works on sane cases. Now check whether non-existent headers
4376 # can be detected and how.
4377 cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <ac_nonexistent.h>
4384_ACEOF
4385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4387 ac_status=$?
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null; then
4393 if test -s conftest.err; then
4394 ac_cpp_err=$ac_cxx_preproc_warn_flag
4395 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4396 else
4397 ac_cpp_err=
4398 fi
4399else
4400 ac_cpp_err=yes
4401fi
4402if test -z "$ac_cpp_err"; then
4403 # Broken: success on invalid input.
4404continue
4405else
4406 echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 # Passes both tests.
4410ac_preproc_ok=:
4411break
4412fi
4413rm -f conftest.err conftest.$ac_ext
4414
4415done
4416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417rm -f conftest.err conftest.$ac_ext
4418if $ac_preproc_ok; then
4419 :
4420else
4421 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4422See \`config.log' for more details." >&5
4423echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4424See \`config.log' for more details." >&2;}
4425 { (exit 1); exit 1; }; }
4426fi
4427
4428ac_ext=cc
4429ac_cpp='$CXXCPP $CPPFLAGS'
4430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4433
4434
4435ac_ext=f
4436ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4437ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4439if test -n "$ac_tool_prefix"; then
4440 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4441 do
4442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4444echo "$as_me:$LINENO: checking for $ac_word" >&5
4445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4446if test "${ac_cv_prog_F77+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 if test -n "$F77"; then
4450 ac_cv_prog_F77="$F77" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464done
4465
4466fi
4467fi
4468F77=$ac_cv_prog_F77
4469if test -n "$F77"; then
4470 echo "$as_me:$LINENO: result: $F77" >&5
4471echo "${ECHO_T}$F77" >&6
4472else
4473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475fi
4476
4477 test -n "$F77" && break
4478 done
4479fi
4480if test -z "$F77"; then
4481 ac_ct_F77=$F77
4482 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4483do
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485set dummy $ac_prog; ac_word=$2
4486echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 if test -n "$ac_ct_F77"; then
4492 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_F77="$ac_prog"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506done
4507
4508fi
4509fi
4510ac_ct_F77=$ac_cv_prog_ac_ct_F77
4511if test -n "$ac_ct_F77"; then
4512 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4513echo "${ECHO_T}$ac_ct_F77" >&6
4514else
4515 echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6
4517fi
4518
4519 test -n "$ac_ct_F77" && break
4520done
4521
4522 F77=$ac_ct_F77
4523fi
4524
4525
4526# Provide some information about the compiler.
drh94e4f822006-02-15 02:00:25 +00004527echo "$as_me:4527:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004528 "checking for Fortran 77 compiler version" >&5
4529ac_compiler=`set X $ac_compile; echo $2`
4530{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4531 (eval $ac_compiler --version </dev/null >&5) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4536 (eval $ac_compiler -v </dev/null >&5) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }
4540{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4541 (eval $ac_compiler -V </dev/null >&5) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4545rm -f a.out
4546
4547# If we don't use `.F' as extension, the preprocessor is not run on the
4548# input file. (Note that this only needs to work for GNU compilers.)
4549ac_save_ext=$ac_ext
4550ac_ext=F
4551echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4552echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4553if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556 cat >conftest.$ac_ext <<_ACEOF
4557 program main
4558#ifndef __GNUC__
4559 choke me
4560#endif
4561
4562 end
4563_ACEOF
4564rm -f conftest.$ac_objext
4565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004573 { ac_try='test -z "$ac_f77_werror_flag"
4574 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_compiler_gnu=yes
4587else
4588 echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_compiler_gnu=no
4592fi
4593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4595
4596fi
4597echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4598echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4599ac_ext=$ac_save_ext
4600ac_test_FFLAGS=${FFLAGS+set}
4601ac_save_FFLAGS=$FFLAGS
4602FFLAGS=
4603echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4604echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4605if test "${ac_cv_prog_f77_g+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 FFLAGS=-g
4609cat >conftest.$ac_ext <<_ACEOF
4610 program main
4611
4612 end
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004623 { ac_try='test -z "$ac_f77_werror_flag"
4624 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_prog_f77_g=yes
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641ac_cv_prog_f77_g=no
4642fi
4643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645fi
4646echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4647echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4648if test "$ac_test_FFLAGS" = set; then
4649 FFLAGS=$ac_save_FFLAGS
4650elif test $ac_cv_prog_f77_g = yes; then
4651 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4652 FFLAGS="-g -O2"
4653 else
4654 FFLAGS="-g"
4655 fi
4656else
4657 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4658 FFLAGS="-O2"
4659 else
4660 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004661 fi
4662fi
4663
a.rottmann9bc8b932004-02-29 15:18:31 +00004664G77=`test $ac_compiler_gnu = yes && echo yes`
4665ac_ext=c
4666ac_cpp='$CPP $CPPFLAGS'
4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670
4671
4672
4673# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4674
4675# find the maximum length of command line arguments
4676echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4677echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4678if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 i=0
4682 testring="ABCD"
4683
4684 case $build_os in
4685 msdosdjgpp*)
4686 # On DJGPP, this test can blow up pretty badly due to problems in libc
4687 # (any single argument exceeding 2000 bytes causes a buffer overrun
4688 # during glob expansion). Even if it were fixed, the result of this
4689 # check would be larger than it should be.
4690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4691 ;;
4692
4693 gnu*)
4694 # Under GNU Hurd, this test is not required because there is
4695 # no limit to the length of command line arguments.
4696 # Libtool will interpret -1 as no limit whatsoever
4697 lt_cv_sys_max_cmd_len=-1;
4698 ;;
4699
4700 cygwin* | mingw*)
4701 # On Win9x/ME, this test blows up -- it succeeds, but takes
4702 # about 5 minutes as the teststring grows exponentially.
4703 # Worse, since 9x/ME are not pre-emptively multitasking,
4704 # you end up with a "frozen" computer, even though with patience
4705 # the test eventually succeeds (with a max line length of 256k).
4706 # Instead, let's just punt: use the minimum linelength reported by
4707 # all of the supported platforms: 8192 (on NT/2K/XP).
4708 lt_cv_sys_max_cmd_len=8192;
4709 ;;
4710
4711 amigaos*)
4712 # On AmigaOS with pdksh, this test takes hours, literally.
4713 # So we just punt and use a minimum line length of 8192.
4714 lt_cv_sys_max_cmd_len=8192;
4715 ;;
4716
4717 *)
4718 # If test is not a shell built-in, we'll probably end up computing a
4719 # maximum length that is only half of the actual maximum length, but
4720 # we can't tell.
4721 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4722 = "XX$testring") >/dev/null 2>&1 &&
4723 new_result=`expr "X$testring" : ".*" 2>&1` &&
4724 lt_cv_sys_max_cmd_len=$new_result &&
4725 test $i != 17 # 1/2 MB should be enough
4726 do
4727 i=`expr $i + 1`
4728 testring=$testring$testring
4729 done
4730 testring=
4731 # Add a significant safety factor because C++ compilers can tack on massive
4732 # amounts of additional arguments before passing them to the linker.
4733 # It appears as though 1/2 is a usable value.
4734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4735 ;;
4736 esac
4737
4738fi
4739
4740if test -n $lt_cv_sys_max_cmd_len ; then
4741 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4742echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4743else
4744 echo "$as_me:$LINENO: result: none" >&5
4745echo "${ECHO_T}none" >&6
4746fi
4747
4748
4749
4750
4751# Check for command to grab the raw symbol name followed by C symbol from nm.
4752echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4753echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4754if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757
4758# These are sane defaults that work on at least a few old systems.
4759# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4760
4761# Character class describing NM global symbol codes.
4762symcode='[BCDEGRST]'
4763
4764# Regexp to match symbols that can be accessed directly from C.
4765sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4766
4767# Transform the above into a raw symbol and a C symbol.
4768symxfrm='\1 \2\3 \3'
4769
4770# Transform an extracted symbol line into a proper C declaration
4771lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4772
4773# Transform an extracted symbol line into symbol name and symbol address
4774lt_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'"
4775
4776# Define system-specific variables.
4777case $host_os in
4778aix*)
4779 symcode='[BCDT]'
4780 ;;
4781cygwin* | mingw* | pw32*)
4782 symcode='[ABCDGISTW]'
4783 ;;
4784hpux*) # Its linker distinguishes data from code symbols
4785 if test "$host_cpu" = ia64; then
4786 symcode='[ABCDEGRST]'
4787 fi
4788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4789 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'"
4790 ;;
4791irix* | nonstopux*)
4792 symcode='[BCDEGRST]'
4793 ;;
4794osf*)
4795 symcode='[BCDEGQRST]'
4796 ;;
4797solaris* | sysv5*)
4798 symcode='[BDRT]'
4799 ;;
4800sysv4)
4801 symcode='[DFNSTU]'
4802 ;;
4803esac
4804
4805# Handle CRLF in mingw tool chain
4806opt_cr=
4807case $build_os in
4808mingw*)
4809 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4810 ;;
4811esac
4812
4813# If we're using GNU nm, then use its standard symbol codes.
4814case `$NM -V 2>&1` in
4815*GNU* | *'with BFD'*)
4816 symcode='[ABCDGIRSTW]' ;;
4817esac
4818
4819# Try without a prefix undercore, then with it.
4820for ac_symprfx in "" "_"; do
4821
4822 # Write the raw and C identifiers.
4823 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4824
4825 # Check to see that the pipe works correctly.
4826 pipe_works=no
4827
4828 rm -f conftest*
4829 cat > conftest.$ac_ext <<EOF
4830#ifdef __cplusplus
4831extern "C" {
4832#endif
4833char nm_test_var;
4834void nm_test_func(){}
4835#ifdef __cplusplus
4836}
4837#endif
4838int main(){nm_test_var='a';nm_test_func();return(0);}
4839EOF
4840
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; then
4846 # Now try to grab the symbols.
4847 nlist=conftest.nm
4848 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4849 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && test -s "$nlist"; then
4853 # Try sorting and uniquifying the output.
4854 if sort "$nlist" | uniq > "$nlist"T; then
4855 mv -f "$nlist"T "$nlist"
4856 else
4857 rm -f "$nlist"T
4858 fi
4859
4860 # Make sure that we snagged all the symbols we need.
4861 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4862 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4863 cat <<EOF > conftest.$ac_ext
4864#ifdef __cplusplus
4865extern "C" {
4866#endif
4867
4868EOF
4869 # Now generate the symbol file.
4870 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4871
4872 cat <<EOF >> conftest.$ac_ext
4873#if defined (__STDC__) && __STDC__
4874# define lt_ptr_t void *
4875#else
4876# define lt_ptr_t char *
4877# define const
4878#endif
4879
4880/* The mapping between symbol names and symbols. */
4881const struct {
4882 const char *name;
4883 lt_ptr_t address;
4884}
4885lt_preloaded_symbols[] =
4886{
4887EOF
4888 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4889 cat <<\EOF >> conftest.$ac_ext
4890 {0, (lt_ptr_t) 0}
4891};
4892
4893#ifdef __cplusplus
4894}
4895#endif
4896EOF
4897 # Now try linking the two files.
4898 mv conftest.$ac_objext conftstm.$ac_objext
4899 lt_save_LIBS="$LIBS"
4900 lt_save_CFLAGS="$CFLAGS"
4901 LIBS="conftstm.$ac_objext"
4902 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4908 pipe_works=yes
4909 fi
4910 LIBS="$lt_save_LIBS"
4911 CFLAGS="$lt_save_CFLAGS"
4912 else
4913 echo "cannot find nm_test_func in $nlist" >&5
4914 fi
4915 else
4916 echo "cannot find nm_test_var in $nlist" >&5
4917 fi
4918 else
4919 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4920 fi
4921 else
4922 echo "$progname: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 fi
4925 rm -f conftest* conftst*
4926
4927 # Do not use the global_symbol_pipe unless it works.
4928 if test "$pipe_works" = yes; then
4929 break
4930 else
4931 lt_cv_sys_global_symbol_pipe=
4932 fi
4933done
4934
4935fi
4936
4937if test -z "$lt_cv_sys_global_symbol_pipe"; then
4938 lt_cv_sys_global_symbol_to_cdecl=
4939fi
4940if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4941 echo "$as_me:$LINENO: result: failed" >&5
4942echo "${ECHO_T}failed" >&6
4943else
4944 echo "$as_me:$LINENO: result: ok" >&5
4945echo "${ECHO_T}ok" >&6
4946fi
4947
4948echo "$as_me:$LINENO: checking for objdir" >&5
4949echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4950if test "${lt_cv_objdir+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 rm -f .libs 2>/dev/null
4954mkdir .libs 2>/dev/null
4955if test -d .libs; then
4956 lt_cv_objdir=.libs
4957else
4958 # MS-DOS does not allow filenames that begin with a dot.
4959 lt_cv_objdir=_libs
4960fi
4961rmdir .libs 2>/dev/null
4962fi
4963echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4964echo "${ECHO_T}$lt_cv_objdir" >&6
4965objdir=$lt_cv_objdir
4966
4967
4968
4969
4970
4971case $host_os in
4972aix3*)
4973 # AIX sometimes has problems with the GCC collect2 program. For some
4974 # reason, if we set the COLLECT_NAMES environment variable, the problems
4975 # vanish in a puff of smoke.
4976 if test "X${COLLECT_NAMES+set}" != Xset; then
4977 COLLECT_NAMES=
4978 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004979 fi
4980 ;;
4981esac
4982
a.rottmann9bc8b932004-02-29 15:18:31 +00004983# Sed substitution that helps us do robust quoting. It backslashifies
4984# metacharacters that are still active within double-quoted strings.
4985Xsed='sed -e s/^X//'
4986sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4987
4988# Same as above, but do not quote variable references.
4989double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4990
4991# Sed substitution to delay expansion of an escaped shell variable in a
4992# double_quote_subst'ed string.
4993delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4994
4995# Sed substitution to avoid accidental globbing in evaled expressions
4996no_glob_subst='s/\*/\\\*/g'
4997
4998# Constants:
4999rm="rm -f"
5000
5001# Global variables:
5002default_ofile=libtool
5003can_build_shared=yes
5004
5005# All known linkers require a `.a' archive for static linking (except M$VC,
5006# which needs '.lib').
5007libext=a
5008ltmain="$ac_aux_dir/ltmain.sh"
5009ofile="$default_ofile"
5010with_gnu_ld="$lt_cv_prog_gnu_ld"
5011
5012if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5014set dummy ${ac_tool_prefix}ar; ac_word=$2
5015echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_prog_AR+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 if test -n "$AR"; then
5021 ac_cv_prog_AR="$AR" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_AR="${ac_tool_prefix}ar"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035done
5036
5037fi
5038fi
5039AR=$ac_cv_prog_AR
5040if test -n "$AR"; then
5041 echo "$as_me:$LINENO: result: $AR" >&5
5042echo "${ECHO_T}$AR" >&6
5043else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048fi
5049if test -z "$ac_cv_prog_AR"; then
5050 ac_ct_AR=$AR
5051 # Extract the first word of "ar", so it can be a program name with args.
5052set dummy ar; ac_word=$2
5053echo "$as_me:$LINENO: checking for $ac_word" >&5
5054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 if test -n "$ac_ct_AR"; then
5059 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5060else
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_ac_ct_AR="ar"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072done
5073done
5074
5075 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5076fi
5077fi
5078ac_ct_AR=$ac_cv_prog_ac_ct_AR
5079if test -n "$ac_ct_AR"; then
5080 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5081echo "${ECHO_T}$ac_ct_AR" >&6
5082else
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085fi
5086
5087 AR=$ac_ct_AR
5088else
5089 AR="$ac_cv_prog_AR"
5090fi
5091
a.rottmann84e63352003-03-24 09:42:16 +00005092if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_RANLIB+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test -n "$RANLIB"; then
5101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114done
5115done
5116
5117fi
5118fi
5119RANLIB=$ac_cv_prog_RANLIB
5120if test -n "$RANLIB"; then
5121 echo "$as_me:$LINENO: result: $RANLIB" >&5
5122echo "${ECHO_T}$RANLIB" >&6
5123else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128fi
5129if test -z "$ac_cv_prog_RANLIB"; then
5130 ac_ct_RANLIB=$RANLIB
5131 # Extract the first word of "ranlib", so it can be a program name with args.
5132set dummy ranlib; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 if test -n "$ac_ct_RANLIB"; then
5139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_RANLIB="ranlib"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
5154
5155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5156fi
5157fi
5158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5159if test -n "$ac_ct_RANLIB"; then
5160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5161echo "${ECHO_T}$ac_ct_RANLIB" >&6
5162else
5163 echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165fi
5166
5167 RANLIB=$ac_ct_RANLIB
5168else
5169 RANLIB="$ac_cv_prog_RANLIB"
5170fi
5171
5172if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5174set dummy ${ac_tool_prefix}strip; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_STRIP+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 if test -n "$STRIP"; then
5181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195done
5196
5197fi
5198fi
5199STRIP=$ac_cv_prog_STRIP
5200if test -n "$STRIP"; then
5201 echo "$as_me:$LINENO: result: $STRIP" >&5
5202echo "${ECHO_T}$STRIP" >&6
5203else
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206fi
5207
5208fi
5209if test -z "$ac_cv_prog_STRIP"; then
5210 ac_ct_STRIP=$STRIP
5211 # Extract the first word of "strip", so it can be a program name with args.
5212set dummy strip; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$ac_ct_STRIP"; then
5219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_STRIP="strip"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5236fi
5237fi
5238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5239if test -n "$ac_ct_STRIP"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5241echo "${ECHO_T}$ac_ct_STRIP" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 STRIP=$ac_ct_STRIP
5248else
5249 STRIP="$ac_cv_prog_STRIP"
5250fi
5251
5252
a.rottmann84e63352003-03-24 09:42:16 +00005253old_CC="$CC"
5254old_CFLAGS="$CFLAGS"
5255
5256# Set sane defaults for various variables
5257test -z "$AR" && AR=ar
5258test -z "$AR_FLAGS" && AR_FLAGS=cru
5259test -z "$AS" && AS=as
5260test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005261test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005262test -z "$DLLTOOL" && DLLTOOL=dlltool
5263test -z "$LD" && LD=ld
5264test -z "$LN_S" && LN_S="ln -s"
5265test -z "$MAGIC_CMD" && MAGIC_CMD=file
5266test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005267test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005268test -z "$OBJDUMP" && OBJDUMP=objdump
5269test -z "$RANLIB" && RANLIB=:
5270test -z "$STRIP" && STRIP=:
5271test -z "$ac_objext" && ac_objext=o
5272
a.rottmann84e63352003-03-24 09:42:16 +00005273# Determine commands to create old-style static archives.
5274old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5275old_postinstall_cmds='chmod 644 $oldlib'
5276old_postuninstall_cmds=
5277
5278if test -n "$RANLIB"; then
5279 case $host_os in
5280 openbsd*)
5281 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5282 ;;
5283 *)
5284 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5285 ;;
5286 esac
5287 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5288fi
5289
a.rottmann9bc8b932004-02-29 15:18:31 +00005290# Only perform the check for file, if the check method requires it
5291case $deplibs_check_method in
5292file_magic*)
5293 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5294 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5295echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5296if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005298else
a.rottmann9bc8b932004-02-29 15:18:31 +00005299 case $MAGIC_CMD in
5300[\\/*] | ?:[\\/]*)
5301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5302 ;;
5303*)
5304 lt_save_MAGIC_CMD="$MAGIC_CMD"
5305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5307 for ac_dir in $ac_dummy; do
5308 IFS="$lt_save_ifs"
5309 test -z "$ac_dir" && ac_dir=.
5310 if test -f $ac_dir/${ac_tool_prefix}file; then
5311 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5312 if test -n "$file_magic_test_file"; then
5313 case $deplibs_check_method in
5314 "file_magic "*)
5315 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5318 $EGREP "$file_magic_regex" > /dev/null; then
5319 :
5320 else
5321 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005322
a.rottmann9bc8b932004-02-29 15:18:31 +00005323*** Warning: the command libtool uses to detect shared libraries,
5324*** $file_magic_cmd, produces output that libtool cannot recognize.
5325*** The result is that libtool may fail to recognize shared libraries
5326*** as such. This will affect the creation of libtool libraries that
5327*** depend on shared libraries, but programs linked with such libtool
5328*** libraries will work regardless of this problem. Nevertheless, you
5329*** may want to report the problem to your system manager and/or to
5330*** bug-libtool@gnu.org
5331
5332EOF
5333 fi ;;
5334 esac
5335 fi
5336 break
5337 fi
5338 done
5339 IFS="$lt_save_ifs"
5340 MAGIC_CMD="$lt_save_MAGIC_CMD"
5341 ;;
5342esac
5343fi
5344
5345MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5346if test -n "$MAGIC_CMD"; then
5347 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5348echo "${ECHO_T}$MAGIC_CMD" >&6
5349else
5350 echo "$as_me:$LINENO: result: no" >&5
5351echo "${ECHO_T}no" >&6
5352fi
5353
5354if test -z "$lt_cv_path_MAGIC_CMD"; then
5355 if test -n "$ac_tool_prefix"; then
5356 echo "$as_me:$LINENO: checking for file" >&5
5357echo $ECHO_N "checking for file... $ECHO_C" >&6
5358if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 case $MAGIC_CMD in
5362[\\/*] | ?:[\\/]*)
5363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5364 ;;
5365*)
5366 lt_save_MAGIC_CMD="$MAGIC_CMD"
5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5369 for ac_dir in $ac_dummy; do
5370 IFS="$lt_save_ifs"
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f $ac_dir/file; then
5373 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5374 if test -n "$file_magic_test_file"; then
5375 case $deplibs_check_method in
5376 "file_magic "*)
5377 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5380 $EGREP "$file_magic_regex" > /dev/null; then
5381 :
5382 else
5383 cat <<EOF 1>&2
5384
5385*** Warning: the command libtool uses to detect shared libraries,
5386*** $file_magic_cmd, produces output that libtool cannot recognize.
5387*** The result is that libtool may fail to recognize shared libraries
5388*** as such. This will affect the creation of libtool libraries that
5389*** depend on shared libraries, but programs linked with such libtool
5390*** libraries will work regardless of this problem. Nevertheless, you
5391*** may want to report the problem to your system manager and/or to
5392*** bug-libtool@gnu.org
5393
5394EOF
5395 fi ;;
5396 esac
5397 fi
5398 break
5399 fi
5400 done
5401 IFS="$lt_save_ifs"
5402 MAGIC_CMD="$lt_save_MAGIC_CMD"
5403 ;;
5404esac
5405fi
5406
5407MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5408if test -n "$MAGIC_CMD"; then
5409 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5410echo "${ECHO_T}$MAGIC_CMD" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
5415
5416 else
5417 MAGIC_CMD=:
5418 fi
5419fi
5420
5421 fi
5422 ;;
5423esac
5424
5425enable_dlopen=no
5426enable_win32_dll=no
5427
5428# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5429if test "${enable_libtool_lock+set}" = set; then
5430 enableval="$enable_libtool_lock"
5431
5432fi;
5433test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005434
5435
drh71eb93e2001-09-28 01:34:43 +00005436# Check whether --with-pic or --without-pic was given.
5437if test "${with_pic+set}" = set; then
5438 withval="$with_pic"
5439 pic_mode="$withval"
5440else
5441 pic_mode=default
5442fi;
5443test -z "$pic_mode" && pic_mode=default
5444
a.rottmann9bc8b932004-02-29 15:18:31 +00005445# Use C for the default configuration in the libtool script
5446tagname=
5447lt_save_CC="$CC"
5448ac_ext=c
5449ac_cpp='$CPP $CPPFLAGS'
5450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453
5454
5455# Source file extension for C test sources.
5456ac_ext=c
5457
5458# Object file extension for compiled C test sources.
5459objext=o
5460objext=$objext
5461
5462# Code to be used in simple compile tests
5463lt_simple_compile_test_code="int some_variable = 0;\n"
5464
5465# Code to be used in simple link tests
5466lt_simple_link_test_code='int main(){return(0);}\n'
5467
5468
5469# If no C compiler was specified, use CC.
5470LTCC=${LTCC-"$CC"}
5471
5472# Allow CC to be a program name with arguments.
5473compiler=$CC
5474
5475
5476#
5477# Check for any special shared library compilation flags.
5478#
5479lt_prog_cc_shlib=
5480if test "$GCC" = no; then
5481 case $host_os in
5482 sco3.2v5*)
5483 lt_prog_cc_shlib='-belf'
5484 ;;
5485 esac
5486fi
5487if test -n "$lt_prog_cc_shlib"; then
5488 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5489echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5490 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5491 else
5492 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5493echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5494 lt_cv_prog_cc_can_build_shared=no
5495 fi
5496fi
5497
5498
5499#
5500# Check to make sure the static flag actually works.
5501#
5502echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5503echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5504if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
a.rottmann9bc8b932004-02-29 15:18:31 +00005507 lt_prog_compiler_static_works=no
5508 save_LDFLAGS="$LDFLAGS"
5509 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5510 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5512 # The compiler can only warn and ignore the option if not recognized
5513 # So say no if there are warnings
5514 if test -s conftest.err; then
5515 # Append any errors to the config.log.
5516 cat conftest.err 1>&5
5517 else
5518 lt_prog_compiler_static_works=yes
5519 fi
5520 fi
5521 $rm conftest*
5522 LDFLAGS="$save_LDFLAGS"
5523
5524fi
5525echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5526echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5527
5528if test x"$lt_prog_compiler_static_works" = xyes; then
5529 :
5530else
5531 lt_prog_compiler_static=
5532fi
5533
5534
5535
5536
5537lt_prog_compiler_no_builtin_flag=
5538
5539if test "$GCC" = yes; then
5540 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5541
5542
5543echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5544echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5545if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548 lt_cv_prog_compiler_rtti_exceptions=no
5549 ac_outfile=conftest.$ac_objext
5550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5551 lt_compiler_flag="-fno-rtti -fno-exceptions"
5552 # Insert the option either (1) after the last *FLAGS variable, or
5553 # (2) before a word containing "conftest.", or (3) at the end.
5554 # Note that $ac_compile itself does not contain backslashes and begins
5555 # with a dollar sign (not a hyphen), so the echo should work correctly.
5556 # The option is referenced via a variable to avoid confusing sed.
5557 lt_compile=`echo "$ac_compile" | $SED \
5558 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5560 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +00005561 (eval echo "\"\$as_me:5561: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005562 (eval "$lt_compile" 2>conftest.err)
5563 ac_status=$?
5564 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +00005565 echo "$as_me:5565: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005566 if (exit $ac_status) && test -s "$ac_outfile"; then
5567 # The compiler can only warn and ignore the option if not recognized
5568 # So say no if there are warnings
5569 if test ! -s conftest.err; then
5570 lt_cv_prog_compiler_rtti_exceptions=yes
5571 fi
5572 fi
5573 $rm conftest*
5574
5575fi
5576echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5577echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5578
5579if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5581else
5582 :
5583fi
5584
5585fi
5586
5587lt_prog_compiler_wl=
5588lt_prog_compiler_pic=
5589lt_prog_compiler_static=
5590
5591echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5592echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005593
drh71eb93e2001-09-28 01:34:43 +00005594 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005595 lt_prog_compiler_wl='-Wl,'
5596 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005597
5598 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005599 aix*)
5600 # All AIX code is PIC.
5601 if test "$host_cpu" = ia64; then
5602 # AIX 5 now supports IA64 processor
5603 lt_prog_compiler_static='-Bstatic'
5604 fi
drh71eb93e2001-09-28 01:34:43 +00005605 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005606
drh71eb93e2001-09-28 01:34:43 +00005607 amigaos*)
5608 # FIXME: we need at least 68020 code to build shared libraries, but
5609 # adding the `-m68020' flag to GCC prevents building anything better,
5610 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005611 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005612 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005613
5614 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005615 # PIC is the default for these OSes.
5616 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005617
5618 mingw* | pw32* | os2*)
5619 # This hack is so that the source file can tell whether it is being
5620 # built for inclusion in a dll (and should export symbols for example).
5621 lt_prog_compiler_pic='-DDLL_EXPORT'
5622 ;;
5623
drh71eb93e2001-09-28 01:34:43 +00005624 darwin* | rhapsody*)
5625 # PIC is the default on this platform
5626 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005627 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005628 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005629
5630 msdosdjgpp*)
5631 # Just because we use GCC doesn't mean we suddenly get shared libraries
5632 # on systems that don't support them.
5633 lt_prog_compiler_can_build_shared=no
5634 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005635 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005636
drh71eb93e2001-09-28 01:34:43 +00005637 sysv4*MP*)
5638 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005639 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005640 fi
5641 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005642
5643 hpux*)
5644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5645 # not for PA HP-UX.
5646 case "$host_cpu" in
5647 hppa*64*|ia64*)
5648 # +Z the default
5649 ;;
5650 *)
5651 lt_prog_compiler_pic='-fPIC'
5652 ;;
5653 esac
5654 ;;
5655
drh71eb93e2001-09-28 01:34:43 +00005656 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005657 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005658 ;;
5659 esac
5660 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005661 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005662 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005663 aix*)
5664 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005665 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005666 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005667 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005668 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005669 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005670 fi
5671 ;;
5672
a.rottmann9bc8b932004-02-29 15:18:31 +00005673 mingw* | pw32* | os2*)
5674 # This hack is so that the source file can tell whether it is being
5675 # built for inclusion in a dll (and should export symbols for example).
5676 lt_prog_compiler_pic='-DDLL_EXPORT'
5677 ;;
5678
a.rottmann84e63352003-03-24 09:42:16 +00005679 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005680 lt_prog_compiler_wl='-Wl,'
5681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5682 # not for PA HP-UX.
5683 case "$host_cpu" in
5684 hppa*64*|ia64*)
5685 # +Z the default
5686 ;;
5687 *)
5688 lt_prog_compiler_pic='+Z'
5689 ;;
5690 esac
5691 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5692 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005693 ;;
5694
5695 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005696 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005697 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005698 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005699 ;;
5700
5701 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005702 lt_prog_compiler_pic='-KPIC'
5703 lt_prog_compiler_static='-Bstatic'
5704 ;;
5705
5706 linux*)
5707 case $CC in
5708 icc* | ecc*)
5709 lt_prog_compiler_wl='-Wl,'
5710 lt_prog_compiler_pic='-KPIC'
5711 lt_prog_compiler_static='-static'
5712 ;;
5713 ccc*)
5714 lt_prog_compiler_wl='-Wl,'
5715 # All Alpha code is PIC.
5716 lt_prog_compiler_static='-non_shared'
5717 ;;
5718 esac
drh71eb93e2001-09-28 01:34:43 +00005719 ;;
5720
5721 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005722 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005723 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005724 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005725 ;;
5726
5727 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005728 lt_prog_compiler_pic='-Kpic'
5729 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005730 ;;
5731
5732 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005733 lt_prog_compiler_wl='-Wl,'
5734 lt_prog_compiler_pic='-KPIC'
5735 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005736 ;;
5737
5738 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005739 lt_prog_compiler_wl='-Qoption ld '
5740 lt_prog_compiler_pic='-PIC'
5741 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005742 ;;
5743
5744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005745 lt_prog_compiler_wl='-Wl,'
5746 lt_prog_compiler_pic='-KPIC'
5747 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005748 ;;
5749
5750 sysv4*MP*)
5751 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005752 lt_prog_compiler_pic='-Kconform_pic'
5753 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005754 fi
5755 ;;
5756
a.rottmann9bc8b932004-02-29 15:18:31 +00005757 uts4*)
5758 lt_prog_compiler_pic='-pic'
5759 lt_prog_compiler_static='-Bstatic'
5760 ;;
5761
drh71eb93e2001-09-28 01:34:43 +00005762 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005763 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005764 ;;
5765 esac
5766 fi
5767
a.rottmann9bc8b932004-02-29 15:18:31 +00005768echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5769echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005770
a.rottmann9bc8b932004-02-29 15:18:31 +00005771#
5772# Check to make sure the PIC flag actually works.
5773#
5774if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005775
a.rottmann9bc8b932004-02-29 15:18:31 +00005776echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5777echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5778if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
a.rottmann9bc8b932004-02-29 15:18:31 +00005781 lt_prog_compiler_pic_works=no
5782 ac_outfile=conftest.$ac_objext
5783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5784 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5785 # Insert the option either (1) after the last *FLAGS variable, or
5786 # (2) before a word containing "conftest.", or (3) at the end.
5787 # Note that $ac_compile itself does not contain backslashes and begins
5788 # with a dollar sign (not a hyphen), so the echo should work correctly.
5789 # The option is referenced via a variable to avoid confusing sed.
5790 lt_compile=`echo "$ac_compile" | $SED \
5791 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5793 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +00005794 (eval echo "\"\$as_me:5794: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005795 (eval "$lt_compile" 2>conftest.err)
5796 ac_status=$?
5797 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +00005798 echo "$as_me:5798: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005799 if (exit $ac_status) && test -s "$ac_outfile"; then
5800 # The compiler can only warn and ignore the option if not recognized
5801 # So say no if there are warnings
5802 if test ! -s conftest.err; then
5803 lt_prog_compiler_pic_works=yes
5804 fi
5805 fi
5806 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005807
a.rottmann9bc8b932004-02-29 15:18:31 +00005808fi
5809echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5810echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005811
a.rottmann9bc8b932004-02-29 15:18:31 +00005812if test x"$lt_prog_compiler_pic_works" = xyes; then
5813 case $lt_prog_compiler_pic in
5814 "" | " "*) ;;
5815 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5816 esac
drh71eb93e2001-09-28 01:34:43 +00005817else
a.rottmann9bc8b932004-02-29 15:18:31 +00005818 lt_prog_compiler_pic=
5819 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005820fi
5821
a.rottmann84e63352003-03-24 09:42:16 +00005822fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005823case "$host_os" in
5824 # For platforms which do not support PIC, -DPIC is meaningless:
5825 *djgpp*)
5826 lt_prog_compiler_pic=
5827 ;;
5828 *)
5829 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5830 ;;
5831esac
a.rottmann84e63352003-03-24 09:42:16 +00005832
a.rottmann84e63352003-03-24 09:42:16 +00005833echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005835if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
a.rottmann9bc8b932004-02-29 15:18:31 +00005838 lt_cv_prog_compiler_c_o=no
5839 $rm -r conftest 2>/dev/null
5840 mkdir conftest
5841 cd conftest
5842 mkdir out
5843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005844
a.rottmann9bc8b932004-02-29 15:18:31 +00005845 lt_compiler_flag="-o out/conftest2.$ac_objext"
5846 # Insert the option either (1) after the last *FLAGS variable, or
5847 # (2) before a word containing "conftest.", or (3) at the end.
5848 # Note that $ac_compile itself does not contain backslashes and begins
5849 # with a dollar sign (not a hyphen), so the echo should work correctly.
5850 lt_compile=`echo "$ac_compile" | $SED \
5851 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5853 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +00005854 (eval echo "\"\$as_me:5854: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005855 (eval "$lt_compile" 2>out/conftest.err)
5856 ac_status=$?
5857 cat out/conftest.err >&5
drh94e4f822006-02-15 02:00:25 +00005858 echo "$as_me:5858: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5860 then
5861 # The compiler can only warn and ignore the option if not recognized
5862 # So say no if there are warnings
5863 if test ! -s out/conftest.err; then
5864 lt_cv_prog_compiler_c_o=yes
5865 fi
5866 fi
5867 chmod u+w .
5868 $rm conftest*
5869 # SGI C++ compiler will create directory out/ii_files/ for
5870 # template instantiation
5871 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5872 $rm out/* && rmdir out
5873 cd ..
5874 rmdir conftest
5875 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005876
5877fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005878echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5879echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005880
a.rottmann84e63352003-03-24 09:42:16 +00005881
drh71eb93e2001-09-28 01:34:43 +00005882hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005883if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005884 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005885 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005886echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5887 hard_links=yes
5888 $rm conftest*
5889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5890 touch conftest.a
5891 ln conftest.a conftest.b 2>&5 || hard_links=no
5892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005893 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005894echo "${ECHO_T}$hard_links" >&6
5895 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005896 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005897echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5898 need_locks=warn
5899 fi
5900else
5901 need_locks=no
5902fi
5903
a.rottmann9bc8b932004-02-29 15:18:31 +00005904echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5905echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5906
5907 runpath_var=
5908 allow_undefined_flag=
5909 enable_shared_with_static_runtimes=no
5910 archive_cmds=
5911 archive_expsym_cmds=
5912 old_archive_From_new_cmds=
5913 old_archive_from_expsyms_cmds=
5914 export_dynamic_flag_spec=
5915 whole_archive_flag_spec=
5916 thread_safe_flag_spec=
5917 hardcode_libdir_flag_spec=
5918 hardcode_libdir_flag_spec_ld=
5919 hardcode_libdir_separator=
5920 hardcode_direct=no
5921 hardcode_minus_L=no
5922 hardcode_shlibpath_var=unsupported
5923 link_all_deplibs=unknown
5924 hardcode_automatic=no
5925 module_cmds=
5926 module_expsym_cmds=
5927 always_export_symbols=no
5928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5929 # include_expsyms should be a list of space-separated symbols to be *always*
5930 # included in the symbol list
5931 include_expsyms=
5932 # exclude_expsyms can be an extended regexp of symbols to exclude
5933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5934 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5935 # as well as any symbol that contains `d'.
5936 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5938 # platforms (ab)use it in PIC code, but their linkers get confused if
5939 # the symbol is explicitly referenced. Since portable code cannot
5940 # rely on this symbol name, it's probably fine to never include it in
5941 # preloaded symbol tables.
5942 extract_expsyms_cmds=
5943
5944 case $host_os in
5945 cygwin* | mingw* | pw32*)
5946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5947 # When not using gcc, we currently assume that we are using
5948 # Microsoft Visual C++.
5949 if test "$GCC" != yes; then
5950 with_gnu_ld=no
5951 fi
5952 ;;
5953 openbsd*)
5954 with_gnu_ld=no
5955 ;;
5956 esac
5957
5958 ld_shlibs=yes
5959 if test "$with_gnu_ld" = yes; then
5960 # If archive_cmds runs LD, not CC, wlarc should be empty
5961 wlarc='${wl}'
5962
5963 # See if GNU ld supports shared libraries.
5964 case $host_os in
5965 aix3* | aix4* | aix5*)
5966 # On AIX/PPC, the GNU linker is very broken
5967 if test "$host_cpu" != ia64; then
5968 ld_shlibs=no
5969 cat <<EOF 1>&2
5970
5971*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5972*** to be unable to reliably create shared libraries on AIX.
5973*** Therefore, libtool is disabling shared libraries support. If you
5974*** really care for shared libraries, you may want to modify your PATH
5975*** so that a non-GNU linker is found, and then restart.
5976
5977EOF
5978 fi
5979 ;;
5980
5981 amigaos*)
5982 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)'
5983 hardcode_libdir_flag_spec='-L$libdir'
5984 hardcode_minus_L=yes
5985
5986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5987 # that the semantics of dynamic libraries on AmigaOS, at least up
5988 # to version 4, is to share data among multiple programs linked
5989 # with the same dynamic library. Since this doesn't match the
5990 # behavior of shared libraries on other platforms, we can't use
5991 # them.
5992 ld_shlibs=no
5993 ;;
5994
5995 beos*)
5996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5997 allow_undefined_flag=unsupported
5998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5999 # support --undefined. This deserves some investigation. FIXME
6000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6001 else
6002 ld_shlibs=no
6003 fi
6004 ;;
6005
6006 cygwin* | mingw* | pw32*)
6007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6008 # as there is no search path for DLLs.
6009 hardcode_libdir_flag_spec='-L$libdir'
6010 allow_undefined_flag=unsupported
6011 always_export_symbols=no
6012 enable_shared_with_static_runtimes=yes
6013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6014
6015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6017 # If the export-symbols file already is a .def file (1st line
6018 # is EXPORTS), use it as is; otherwise, prepend...
6019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6020 cp $export_symbols $output_objdir/$soname.def;
6021 else
6022 echo EXPORTS > $output_objdir/$soname.def;
6023 cat $export_symbols >> $output_objdir/$soname.def;
6024 fi~
6025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6026 else
6027 ld_shlibs=no
6028 fi
6029 ;;
6030
6031 netbsd* | knetbsd*-gnu)
6032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6033 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6034 wlarc=
6035 else
6036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6038 fi
6039 ;;
6040
6041 solaris* | sysv5*)
6042 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6043 ld_shlibs=no
6044 cat <<EOF 1>&2
6045
6046*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6047*** create shared libraries on Solaris systems. Therefore, libtool
6048*** is disabling shared libraries support. We urge you to upgrade GNU
6049*** binutils to release 2.9.1 or newer. Another option is to modify
6050*** your PATH or compiler configuration so that the native linker is
6051*** used, and then restart.
6052
6053EOF
6054 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6057 else
6058 ld_shlibs=no
6059 fi
6060 ;;
6061
6062 sunos4*)
6063 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6064 wlarc=
6065 hardcode_direct=yes
6066 hardcode_shlibpath_var=no
6067 ;;
6068
6069 linux*)
6070 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6071 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6072 archive_cmds="$tmp_archive_cmds"
6073 supports_anon_versioning=no
6074 case `$LD -v 2>/dev/null` in
6075 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6078 *\ 2.11.*) ;; # other 2.11 versions
6079 *) supports_anon_versioning=yes ;;
6080 esac
6081 if test $supports_anon_versioning = yes; then
6082 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6083cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6084$echo "local: *; };" >> $output_objdir/$libname.ver~
6085 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6086 else
6087 archive_expsym_cmds="$tmp_archive_cmds"
6088 fi
6089 else
6090 ld_shlibs=no
6091 fi
6092 ;;
6093
6094 *)
6095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6098 else
6099 ld_shlibs=no
6100 fi
6101 ;;
6102 esac
6103
6104 if test "$ld_shlibs" = yes; then
6105 runpath_var=LD_RUN_PATH
6106 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6107 export_dynamic_flag_spec='${wl}--export-dynamic'
6108 # ancient GNU ld didn't support --whole-archive et. al.
6109 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6110 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6111 else
6112 whole_archive_flag_spec=
6113 fi
6114 fi
6115 else
6116 # PORTME fill in a description of your system's linker (not GNU ld)
6117 case $host_os in
6118 aix3*)
6119 allow_undefined_flag=unsupported
6120 always_export_symbols=yes
6121 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'
6122 # Note: this linker hardcodes the directories in LIBPATH if there
6123 # are no directories specified by -L.
6124 hardcode_minus_L=yes
6125 if test "$GCC" = yes && test -z "$link_static_flag"; then
6126 # Neither direct hardcoding nor static linking is supported with a
6127 # broken collect2.
6128 hardcode_direct=unsupported
6129 fi
6130 ;;
6131
6132 aix4* | aix5*)
6133 if test "$host_cpu" = ia64; then
6134 # On IA64, the linker does run time linking by default, so we don't
6135 # have to do anything special.
6136 aix_use_runtimelinking=no
6137 exp_sym_flag='-Bexport'
6138 no_entry_flag=""
6139 else
6140 # If we're using GNU nm, then we don't want the "-C" option.
6141 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6142 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6143 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'
6144 else
6145 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'
6146 fi
6147 aix_use_runtimelinking=no
6148
6149 # Test if we are trying to use run time linking or normal
6150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6151 # need to do runtime linking.
6152 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6153 for ld_flag in $LDFLAGS; do
6154 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6155 aix_use_runtimelinking=yes
6156 break
6157 fi
6158 done
6159 esac
6160
6161 exp_sym_flag='-bexport'
6162 no_entry_flag='-bnoentry'
6163 fi
6164
6165 # When large executables or shared objects are built, AIX ld can
6166 # have problems creating the table of contents. If linking a library
6167 # or program results in "error TOC overflow" add -mminimal-toc to
6168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6170
6171 archive_cmds=''
6172 hardcode_direct=yes
6173 hardcode_libdir_separator=':'
6174 link_all_deplibs=yes
6175
6176 if test "$GCC" = yes; then
6177 case $host_os in aix4.012|aix4.012.*)
6178 # We only want to do this on AIX 4.2 and lower, the check
6179 # below for broken collect2 doesn't work under 4.3+
6180 collect2name=`${CC} -print-prog-name=collect2`
6181 if test -f "$collect2name" && \
6182 strings "$collect2name" | grep resolve_lib_name >/dev/null
6183 then
6184 # We have reworked collect2
6185 hardcode_direct=yes
6186 else
6187 # We have old collect2
6188 hardcode_direct=unsupported
6189 # It fails to find uninstalled libraries when the uninstalled
6190 # path is not listed in the libpath. Setting hardcode_minus_L
6191 # to unsupported forces relinking
6192 hardcode_minus_L=yes
6193 hardcode_libdir_flag_spec='-L$libdir'
6194 hardcode_libdir_separator=
6195 fi
6196 esac
6197 shared_flag='-shared'
6198 else
6199 # not using gcc
6200 if test "$host_cpu" = ia64; then
6201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6202 # chokes on -Wl,-G. The following line is correct:
6203 shared_flag='-G'
6204 else
6205 if test "$aix_use_runtimelinking" = yes; then
6206 shared_flag='${wl}-G'
6207 else
6208 shared_flag='${wl}-bM:SRE'
6209 fi
6210 fi
6211 fi
6212
6213 # It seems that -bexpall does not export symbols beginning with
6214 # underscore (_), so it is better to generate a list of symbols to export.
6215 always_export_symbols=yes
6216 if test "$aix_use_runtimelinking" = yes; then
6217 # Warning - without using the other runtime loading flags (-brtl),
6218 # -berok will link without error, but may produce a broken library.
6219 allow_undefined_flag='-berok'
6220 # Determine the default libpath from the value encoded in an empty executable.
6221 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006222/* confdefs.h. */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006227
a.rottmann84e63352003-03-24 09:42:16 +00006228int
6229main ()
6230{
a.rottmann9bc8b932004-02-29 15:18:31 +00006231
a.rottmann84e63352003-03-24 09:42:16 +00006232 ;
6233 return 0;
6234}
6235_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006236rm -f conftest.$ac_objext conftest$ac_exeext
6237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006239 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006252 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006258
a.rottmann9bc8b932004-02-29 15:18:31 +00006259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6260}'`
6261# Check for a 64-bit object if we didn't find anything.
6262if 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; }
6263}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006264else
6265 echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006269rm -f conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6271if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006272
a.rottmann9bc8b932004-02-29 15:18:31 +00006273 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6274 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"
6275 else
6276 if test "$host_cpu" = ia64; then
6277 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6278 allow_undefined_flag="-z nodefs"
6279 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"
6280 else
6281 # Determine the default libpath from the value encoded in an empty executable.
6282 cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006288
a.rottmann9bc8b932004-02-29 15:18:31 +00006289int
6290main ()
6291{
a.rottmann84e63352003-03-24 09:42:16 +00006292
a.rottmann9bc8b932004-02-29 15:18:31 +00006293 ;
6294 return 0;
6295}
6296_ACEOF
6297rm -f conftest.$ac_objext conftest$ac_exeext
6298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest$ac_exeext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006319
a.rottmann9bc8b932004-02-29 15:18:31 +00006320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6321}'`
6322# Check for a 64-bit object if we didn't find anything.
6323if 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; }
6324}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006325else
a.rottmann9bc8b932004-02-29 15:18:31 +00006326 echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006328
a.rottmann9bc8b932004-02-29 15:18:31 +00006329fi
6330rm -f conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006333
a.rottmann9bc8b932004-02-29 15:18:31 +00006334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6335 # Warning - without using the other run time loading flags,
6336 # -berok will link without error, but may produce a broken library.
6337 no_undefined_flag=' ${wl}-bernotok'
6338 allow_undefined_flag=' ${wl}-berok'
6339 # -bexpall does not export symbols beginning with underscore (_)
6340 always_export_symbols=yes
6341 # Exported symbols can be pulled into shared objects from archives
6342 whole_archive_flag_spec=' '
6343 archive_cmds_need_lc=yes
6344 # This is similar to how AIX traditionally builds it's shared libraries.
6345 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 +00006346 fi
6347 fi
a.rottmann84e63352003-03-24 09:42:16 +00006348 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006349
6350 amigaos*)
6351 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)'
6352 hardcode_libdir_flag_spec='-L$libdir'
6353 hardcode_minus_L=yes
6354 # see comment about different semantics on the GNU ld section
6355 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006356 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006357
a.rottmann9bc8b932004-02-29 15:18:31 +00006358 bsdi4*)
6359 export_dynamic_flag_spec=-rdynamic
6360 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006361
a.rottmann9bc8b932004-02-29 15:18:31 +00006362 cygwin* | mingw* | pw32*)
6363 # When not using gcc, we currently assume that we are using
6364 # Microsoft Visual C++.
6365 # hardcode_libdir_flag_spec is actually meaningless, as there is
6366 # no search path for DLLs.
6367 hardcode_libdir_flag_spec=' '
6368 allow_undefined_flag=unsupported
6369 # Tell ltmain to make .lib files, not .a files.
6370 libext=lib
6371 # Tell ltmain to make .dll files, not .so files.
6372 shrext=".dll"
6373 # FIXME: Setting linknames here is a bad hack.
6374 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6375 # The linker will automatically build a .lib file if we build a DLL.
6376 old_archive_From_new_cmds='true'
6377 # FIXME: Should let the user specify the lib program.
6378 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6379 fix_srcfile_path='`cygpath -w "$srcfile"`'
6380 enable_shared_with_static_runtimes=yes
6381 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006382
a.rottmann9bc8b932004-02-29 15:18:31 +00006383 darwin* | rhapsody*)
6384 if test "$GXX" = yes ; then
6385 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006386 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006387 rhapsody* | darwin1.[012])
6388 allow_undefined_flag='-undefined suppress'
6389 ;;
6390 *) # Darwin 1.3 on
6391 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6392 allow_undefined_flag='-flat_namespace -undefined suppress'
6393 else
6394 case ${MACOSX_DEPLOYMENT_TARGET} in
6395 10.[012])
6396 allow_undefined_flag='-flat_namespace -undefined suppress'
6397 ;;
6398 10.*)
6399 allow_undefined_flag='-undefined dynamic_lookup'
6400 ;;
6401 esac
6402 fi
a.rottmann84e63352003-03-24 09:42:16 +00006403 ;;
6404 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006405 lt_int_apple_cc_single_mod=no
6406 output_verbose_link_cmd='echo'
6407 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6408 lt_int_apple_cc_single_mod=yes
6409 fi
6410 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6411 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6412 else
6413 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'
6414 fi
6415 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6417 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6418 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}'
6419 else
6420 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}'
6421 fi
6422 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}'
6423 hardcode_direct=no
6424 hardcode_automatic=yes
6425 hardcode_shlibpath_var=unsupported
6426 whole_archive_flag_spec='-all_load $convenience'
6427 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006428 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006429 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006430 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006431 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006432
a.rottmann9bc8b932004-02-29 15:18:31 +00006433 dgux*)
6434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6435 hardcode_libdir_flag_spec='-L$libdir'
6436 hardcode_shlibpath_var=no
6437 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006438
a.rottmann9bc8b932004-02-29 15:18:31 +00006439 freebsd1*)
6440 ld_shlibs=no
6441 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006442
a.rottmann9bc8b932004-02-29 15:18:31 +00006443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6444 # support. Future versions do this automatically, but an explicit c++rt0.o
6445 # does not break anything, and helps significantly (at the cost of a little
6446 # extra space).
6447 freebsd2.2*)
6448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6449 hardcode_libdir_flag_spec='-R$libdir'
6450 hardcode_direct=yes
6451 hardcode_shlibpath_var=no
6452 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006453
a.rottmann9bc8b932004-02-29 15:18:31 +00006454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6455 freebsd2*)
6456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6457 hardcode_direct=yes
6458 hardcode_minus_L=yes
6459 hardcode_shlibpath_var=no
6460 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006461
a.rottmann9bc8b932004-02-29 15:18:31 +00006462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6463 freebsd* | kfreebsd*-gnu)
6464 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6465 hardcode_libdir_flag_spec='-R$libdir'
6466 hardcode_direct=yes
6467 hardcode_shlibpath_var=no
6468 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006469
a.rottmann9bc8b932004-02-29 15:18:31 +00006470 hpux9*)
6471 if test "$GCC" = yes; then
6472 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'
6473 else
6474 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'
6475 fi
6476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6477 hardcode_libdir_separator=:
6478 hardcode_direct=yes
6479
6480 # hardcode_minus_L: Not really in the search PATH,
6481 # but as the default location of the library.
6482 hardcode_minus_L=yes
6483 export_dynamic_flag_spec='${wl}-E'
6484 ;;
6485
6486 hpux10* | hpux11*)
6487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6488 case "$host_cpu" in
6489 hppa*64*|ia64*)
6490 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6491 ;;
6492 *)
6493 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6494 ;;
6495 esac
6496 else
6497 case "$host_cpu" in
6498 hppa*64*|ia64*)
6499 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6500 ;;
6501 *)
6502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6503 ;;
6504 esac
6505 fi
6506 if test "$with_gnu_ld" = no; then
6507 case "$host_cpu" in
6508 hppa*64*)
6509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6510 hardcode_libdir_flag_spec_ld='+b $libdir'
6511 hardcode_libdir_separator=:
6512 hardcode_direct=no
6513 hardcode_shlibpath_var=no
6514 ;;
6515 ia64*)
6516 hardcode_libdir_flag_spec='-L$libdir'
6517 hardcode_direct=no
6518 hardcode_shlibpath_var=no
6519
6520 # hardcode_minus_L: Not really in the search PATH,
6521 # but as the default location of the library.
6522 hardcode_minus_L=yes
6523 ;;
6524 *)
6525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6526 hardcode_libdir_separator=:
6527 hardcode_direct=yes
6528 export_dynamic_flag_spec='${wl}-E'
6529
6530 # hardcode_minus_L: Not really in the search PATH,
6531 # but as the default location of the library.
6532 hardcode_minus_L=yes
6533 ;;
6534 esac
6535 fi
6536 ;;
6537
6538 irix5* | irix6* | nonstopux*)
6539 if test "$GCC" = yes; then
6540 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'
6541 else
6542 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'
6543 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6544 fi
6545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6546 hardcode_libdir_separator=:
6547 link_all_deplibs=yes
6548 ;;
6549
6550 netbsd* | knetbsd*-gnu)
6551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6553 else
6554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6555 fi
6556 hardcode_libdir_flag_spec='-R$libdir'
6557 hardcode_direct=yes
6558 hardcode_shlibpath_var=no
6559 ;;
6560
6561 newsos6)
6562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6563 hardcode_direct=yes
6564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6565 hardcode_libdir_separator=:
6566 hardcode_shlibpath_var=no
6567 ;;
6568
6569 openbsd*)
6570 hardcode_direct=yes
6571 hardcode_shlibpath_var=no
6572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6575 export_dynamic_flag_spec='${wl}-E'
6576 else
6577 case $host_os in
6578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6580 hardcode_libdir_flag_spec='-R$libdir'
6581 ;;
6582 *)
6583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6585 ;;
6586 esac
6587 fi
6588 ;;
6589
6590 os2*)
6591 hardcode_libdir_flag_spec='-L$libdir'
6592 hardcode_minus_L=yes
6593 allow_undefined_flag=unsupported
6594 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'
6595 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6596 ;;
6597
6598 osf3*)
6599 if test "$GCC" = yes; then
6600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6601 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'
6602 else
6603 allow_undefined_flag=' -expect_unresolved \*'
6604 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'
6605 fi
6606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6607 hardcode_libdir_separator=:
6608 ;;
6609
6610 osf4* | osf5*) # as osf3* with the addition of -msym flag
6611 if test "$GCC" = yes; then
6612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6613 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'
6614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6615 else
6616 allow_undefined_flag=' -expect_unresolved \*'
6617 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'
6618 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6619 $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'
6620
6621 # Both c and cxx compiler support -rpath directly
6622 hardcode_libdir_flag_spec='-rpath $libdir'
6623 fi
6624 hardcode_libdir_separator=:
6625 ;;
6626
6627 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6629 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006630 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006631 runpath_var=LD_RUN_PATH
6632 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006633 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006634
a.rottmann9bc8b932004-02-29 15:18:31 +00006635 solaris*)
6636 no_undefined_flag=' -z text'
6637 if test "$GCC" = yes; then
6638 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6640 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6641 else
6642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6643 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6645 fi
6646 hardcode_libdir_flag_spec='-R$libdir'
6647 hardcode_shlibpath_var=no
6648 case $host_os in
6649 solaris2.[0-5] | solaris2.[0-5].*) ;;
6650 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6652 esac
6653 link_all_deplibs=yes
6654 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006655
a.rottmann9bc8b932004-02-29 15:18:31 +00006656 sunos4*)
6657 if test "x$host_vendor" = xsequent; then
6658 # Use $CC to link under sequent, because it throws in some extra .o
6659 # files that make .init and .fini sections work.
6660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6661 else
6662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6663 fi
6664 hardcode_libdir_flag_spec='-L$libdir'
6665 hardcode_direct=yes
6666 hardcode_minus_L=yes
6667 hardcode_shlibpath_var=no
6668 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006669
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 sysv4)
6671 case $host_vendor in
6672 sni)
6673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6674 hardcode_direct=yes # is this really true???
6675 ;;
6676 siemens)
6677 ## LD is ld it makes a PLAMLIB
6678 ## CC just makes a GrossModule.
6679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6680 reload_cmds='$CC -r -o $output$reload_objs'
6681 hardcode_direct=no
6682 ;;
6683 motorola)
6684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6686 ;;
6687 esac
6688 runpath_var='LD_RUN_PATH'
6689 hardcode_shlibpath_var=no
6690 ;;
6691
6692 sysv4.3*)
6693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694 hardcode_shlibpath_var=no
6695 export_dynamic_flag_spec='-Bexport'
6696 ;;
6697
6698 sysv4*MP*)
6699 if test -d /usr/nec; then
6700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6701 hardcode_shlibpath_var=no
6702 runpath_var=LD_RUN_PATH
6703 hardcode_runpath_var=yes
6704 ld_shlibs=yes
6705 fi
6706 ;;
6707
6708 sysv4.2uw2*)
6709 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6710 hardcode_direct=yes
6711 hardcode_minus_L=no
6712 hardcode_shlibpath_var=no
6713 hardcode_runpath_var=yes
6714 runpath_var=LD_RUN_PATH
6715 ;;
6716
6717 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6718 no_undefined_flag='${wl}-z ${wl}text'
6719 if test "$GCC" = yes; then
6720 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6721 else
6722 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6723 fi
6724 runpath_var='LD_RUN_PATH'
6725 hardcode_shlibpath_var=no
6726 ;;
6727
6728 sysv5*)
6729 no_undefined_flag=' -z text'
6730 # $CC -shared without GNU ld will not create a library from C++
6731 # object files and a static libstdc++, better avoid it by now
6732 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6733 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6735 hardcode_libdir_flag_spec=
6736 hardcode_shlibpath_var=no
6737 runpath_var='LD_RUN_PATH'
6738 ;;
6739
6740 uts4*)
6741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6742 hardcode_libdir_flag_spec='-L$libdir'
6743 hardcode_shlibpath_var=no
6744 ;;
6745
6746 *)
6747 ld_shlibs=no
6748 ;;
6749 esac
6750 fi
6751
a.rottmann84e63352003-03-24 09:42:16 +00006752echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6753echo "${ECHO_T}$ld_shlibs" >&6
6754test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006755
a.rottmann9bc8b932004-02-29 15:18:31 +00006756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6757if test "$GCC" = yes; then
6758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6759fi
drh71eb93e2001-09-28 01:34:43 +00006760
a.rottmann9bc8b932004-02-29 15:18:31 +00006761#
6762# Do we need to explicitly link libc?
6763#
6764case "x$archive_cmds_need_lc" in
6765x|xyes)
6766 # Assume -lc should be added
6767 archive_cmds_need_lc=yes
6768
6769 if test "$enable_shared" = yes && test "$GCC" = yes; then
6770 case $archive_cmds in
6771 *'~'*)
6772 # FIXME: we may have to deal with multi-command sequences.
6773 ;;
6774 '$CC '*)
6775 # Test whether the compiler implicitly links with -lc since on some
6776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6777 # to ld, don't add -lc before -lgcc.
6778 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6779echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6780 $rm conftest*
6781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6782
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } 2>conftest.err; then
6788 soname=conftest
6789 lib=conftest
6790 libobjs=conftest.$ac_objext
6791 deplibs=
6792 wl=$lt_prog_compiler_wl
6793 compiler_flags=-v
6794 linker_flags=-v
6795 verstring=
6796 output_objdir=.
6797 libname=conftest
6798 lt_save_allow_undefined_flag=$allow_undefined_flag
6799 allow_undefined_flag=
6800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6801 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }
6805 then
6806 archive_cmds_need_lc=no
6807 else
6808 archive_cmds_need_lc=yes
6809 fi
6810 allow_undefined_flag=$lt_save_allow_undefined_flag
6811 else
6812 cat conftest.err 1>&5
6813 fi
6814 $rm conftest*
6815 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6816echo "${ECHO_T}$archive_cmds_need_lc" >&6
6817 ;;
6818 esac
drh71eb93e2001-09-28 01:34:43 +00006819 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006820 ;;
6821esac
drh71eb93e2001-09-28 01:34:43 +00006822
a.rottmann84e63352003-03-24 09:42:16 +00006823echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006824echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6825library_names_spec=
6826libname_spec='lib$name'
6827soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006828shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006829postinstall_cmds=
6830postuninstall_cmds=
6831finish_cmds=
6832finish_eval=
6833shlibpath_var=
6834shlibpath_overrides_runpath=unknown
6835version_type=none
6836dynamic_linker="$host_os ld.so"
6837sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006838if test "$GCC" = yes; then
6839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6841 # if the path contains ";" then we assume it to be the separator
6842 # otherwise default to the standard path separator (i.e. ":") - it is
6843 # assumed that no part of a normal pathname contains ";" but that should
6844 # okay in the real world where ";" in dirpaths is itself problematic.
6845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6846 else
6847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6848 fi
6849else
6850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6851fi
6852need_lib_prefix=unknown
6853hardcode_into_libs=no
6854
6855# when you set need_version to no, make sure it does not cause -set_version
6856# flags to be left without arguments
6857need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006858
6859case $host_os in
6860aix3*)
6861 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006863 shlibpath_var=LIBPATH
6864
a.rottmann9bc8b932004-02-29 15:18:31 +00006865 # AIX 3 has no versioning support, so we append a major version to the name.
6866 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006867 ;;
6868
6869aix4* | aix5*)
6870 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006871 need_lib_prefix=no
6872 need_version=no
6873 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006874 if test "$host_cpu" = ia64; then
6875 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006877 shlibpath_var=LD_LIBRARY_PATH
6878 else
6879 # With GCC up to 2.95.x, collect2 would create an import file
6880 # for dependence libraries. The import file would start with
6881 # the line `#! .'. This would cause the generated library to
6882 # depend on `.', always an invalid library. This was fixed in
6883 # development snapshots of GCC prior to 3.0.
6884 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006885 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6887 echo ' yes '
6888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6889 :
6890 else
6891 can_build_shared=no
6892 fi
6893 ;;
drh71eb93e2001-09-28 01:34:43 +00006894 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6896 # soname into executable. Probably we can add versioning support to
6897 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006898 if test "$aix_use_runtimelinking" = yes; then
6899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6900 # instead of lib<name>.a to let people know that these are not
6901 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006903 else
6904 # We preserve .a as extension for shared libraries through AIX4.2
6905 # and later when we are not doing run time linking.
6906 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006907 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006908 fi
6909 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006910 fi
6911 ;;
6912
6913amigaos*)
6914 library_names_spec='$libname.ixlibrary $libname.a'
6915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 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 +00006917 ;;
6918
6919beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006921 dynamic_linker="$host_os ld.so"
6922 shlibpath_var=LIBRARY_PATH
6923 ;;
6924
6925bsdi4*)
6926 version_type=linux
6927 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6929 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6931 shlibpath_var=LD_LIBRARY_PATH
6932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6934 # the default ld.so.conf also contains /usr/contrib/lib and
6935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6936 # libtool to hard-code these into programs
6937 ;;
6938
6939cygwin* | mingw* | pw32*)
6940 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006942 need_version=no
6943 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006944
drh71eb93e2001-09-28 01:34:43 +00006945 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006946 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006947 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6949 postinstall_cmds='base_file=`basename \${file}`~
6950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006951 dldir=$destdir/`dirname \$dlpath`~
6952 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006953 $install_prog $dir/$dlname \$dldir/$dlname'
6954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006955 dlpath=$dir/\$dldll~
6956 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006957 shlibpath_overrides_runpath=yes
6958
6959 case $host_os in
6960 cygwin*)
6961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6964 ;;
6965 mingw*)
6966 # MinGW DLLs use traditional 'lib' prefix
6967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6970 # It is most probably a Windows format PATH printed by
6971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6972 # path with ; separators, and with drive letters. We can handle the
6973 # drive letters (cygwin fileutils understands them), so leave them,
6974 # especially as we might pass files found there to a mingw objdump,
6975 # which wouldn't understand a cygwinified path. Ahh.
6976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6977 else
6978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6979 fi
6980 ;;
6981 pw32*)
6982 # pw32 DLLs use 'pw' prefix rather than 'lib'
6983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6984 ;;
6985 esac
drh71eb93e2001-09-28 01:34:43 +00006986 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006987
drh71eb93e2001-09-28 01:34:43 +00006988 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006990 ;;
6991 esac
6992 dynamic_linker='Win32 ld.exe'
6993 # FIXME: first we should search . and the directory the executable is in
6994 shlibpath_var=PATH
6995 ;;
6996
6997darwin* | rhapsody*)
6998 dynamic_linker="$host_os dyld"
6999 version_type=darwin
7000 need_lib_prefix=no
7001 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7003 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007004 shlibpath_overrides_runpath=yes
7005 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00007006 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7008 if test "$GCC" = yes; then
7009 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"`
7010 else
7011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7012 fi
7013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7014 ;;
7015
7016dgux*)
7017 version_type=linux
7018 need_lib_prefix=no
7019 need_version=no
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7021 soname_spec='${libname}${release}${shared_ext}$major'
7022 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007023 ;;
7024
a.rottmann84e63352003-03-24 09:42:16 +00007025freebsd1*)
7026 dynamic_linker=no
7027 ;;
7028
a.rottmann9bc8b932004-02-29 15:18:31 +00007029kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007030 version_type=linux
7031 need_lib_prefix=no
7032 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7034 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007035 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007036 shlibpath_overrides_runpath=no
7037 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007038 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007039 ;;
7040
7041freebsd*)
7042 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7043 version_type=freebsd-$objformat
7044 case $version_type in
7045 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007047 need_version=no
7048 need_lib_prefix=no
7049 ;;
7050 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007052 need_version=yes
7053 ;;
7054 esac
7055 shlibpath_var=LD_LIBRARY_PATH
7056 case $host_os in
7057 freebsd2*)
7058 shlibpath_overrides_runpath=yes
7059 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007060 freebsd3.01* | freebsdelf3.01*)
7061 shlibpath_overrides_runpath=yes
7062 hardcode_into_libs=yes
7063 ;;
7064 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007065 shlibpath_overrides_runpath=no
7066 hardcode_into_libs=yes
7067 ;;
7068 esac
7069 ;;
7070
7071gnu*)
7072 version_type=linux
7073 need_lib_prefix=no
7074 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7076 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007077 shlibpath_var=LD_LIBRARY_PATH
7078 hardcode_into_libs=yes
7079 ;;
7080
7081hpux9* | hpux10* | hpux11*)
7082 # Give a soname corresponding to the major version so that dld.sl refuses to
7083 # link against other versions.
7084 version_type=sunos
7085 need_lib_prefix=no
7086 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007087 case "$host_cpu" in
7088 ia64*)
7089 shrext='.so'
7090 hardcode_into_libs=yes
7091 dynamic_linker="$host_os dld.so"
7092 shlibpath_var=LD_LIBRARY_PATH
7093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7095 soname_spec='${libname}${release}${shared_ext}$major'
7096 if test "X$HPUX_IA64_MODE" = X32; then
7097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7098 else
7099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7100 fi
7101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7102 ;;
7103 hppa*64*)
7104 shrext='.sl'
7105 hardcode_into_libs=yes
7106 dynamic_linker="$host_os dld.sl"
7107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7110 soname_spec='${libname}${release}${shared_ext}$major'
7111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7113 ;;
7114 *)
7115 shrext='.sl'
7116 dynamic_linker="$host_os dld.sl"
7117 shlibpath_var=SHLIB_PATH
7118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7120 soname_spec='${libname}${release}${shared_ext}$major'
7121 ;;
7122 esac
drh71eb93e2001-09-28 01:34:43 +00007123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7124 postinstall_cmds='chmod 555 $lib'
7125 ;;
7126
a.rottmann84e63352003-03-24 09:42:16 +00007127irix5* | irix6* | nonstopux*)
7128 case $host_os in
7129 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 *)
7131 if test "$lt_cv_prog_gnu_ld" = yes; then
7132 version_type=linux
7133 else
7134 version_type=irix
7135 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007136 esac
drh71eb93e2001-09-28 01:34:43 +00007137 need_lib_prefix=no
7138 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007139 soname_spec='${libname}${release}${shared_ext}$major'
7140 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 +00007141 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007142 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007143 libsuff= shlibsuff=
7144 ;;
7145 *)
7146 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007147 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7148 libsuff= shlibsuff= libmagic=32-bit;;
7149 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7150 libsuff=32 shlibsuff=N32 libmagic=N32;;
7151 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7152 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007153 *) libsuff= shlibsuff= libmagic=never-match;;
7154 esac
7155 ;;
7156 esac
7157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7158 shlibpath_overrides_runpath=no
7159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007161 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007162 ;;
7163
7164# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007165linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007166 dynamic_linker=no
7167 ;;
7168
7169# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007170linux*)
drh71eb93e2001-09-28 01:34:43 +00007171 version_type=linux
7172 need_lib_prefix=no
7173 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7175 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7177 shlibpath_var=LD_LIBRARY_PATH
7178 shlibpath_overrides_runpath=no
7179 # This implies no fast_install, which is unacceptable.
7180 # Some rework will be needed to allow for fast_install
7181 # before this can be enabled.
7182 hardcode_into_libs=yes
7183
a.rottmann9bc8b932004-02-29 15:18:31 +00007184 # Append ld.so.conf contents to the search path
7185 if test -f /etc/ld.so.conf; then
7186 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7187 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7188 fi
7189
drh71eb93e2001-09-28 01:34:43 +00007190 # We used to test for /lib/ld.so.1 and disable shared libraries on
7191 # powerpc, because MkLinux only supported shared libraries with the
7192 # GNU dynamic linker. Since this was broken with cross compilers,
7193 # most powerpc-linux boxes support dynamic linking these days and
7194 # people can always --disable-shared, the test was removed, and we
7195 # assume the GNU/Linux dynamic linker is in use.
7196 dynamic_linker='GNU/Linux ld.so'
7197 ;;
7198
a.rottmann9bc8b932004-02-29 15:18:31 +00007199knetbsd*-gnu)
7200 version_type=linux
7201 need_lib_prefix=no
7202 need_version=no
7203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7204 soname_spec='${libname}${release}${shared_ext}$major'
7205 shlibpath_var=LD_LIBRARY_PATH
7206 shlibpath_overrides_runpath=no
7207 hardcode_into_libs=yes
7208 dynamic_linker='GNU ld.so'
7209 ;;
7210
drh71eb93e2001-09-28 01:34:43 +00007211netbsd*)
7212 version_type=sunos
7213 need_lib_prefix=no
7214 need_version=no
7215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7218 dynamic_linker='NetBSD (a.out) ld.so'
7219 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7221 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007222 dynamic_linker='NetBSD ld.elf_so'
7223 fi
7224 shlibpath_var=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath=yes
7226 hardcode_into_libs=yes
7227 ;;
7228
7229newsos6)
7230 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7232 shlibpath_var=LD_LIBRARY_PATH
7233 shlibpath_overrides_runpath=yes
7234 ;;
7235
7236nto-qnx*)
7237 version_type=linux
7238 need_lib_prefix=no
7239 need_version=no
7240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7241 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007242 shlibpath_var=LD_LIBRARY_PATH
7243 shlibpath_overrides_runpath=yes
7244 ;;
7245
drh71eb93e2001-09-28 01:34:43 +00007246openbsd*)
7247 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007248 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 need_version=yes
7250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7252 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007253 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 +00007254 case $host_os in
7255 openbsd2.[89] | openbsd2.[89].*)
7256 shlibpath_overrides_runpath=no
7257 ;;
7258 *)
7259 shlibpath_overrides_runpath=yes
7260 ;;
7261 esac
a.rottmann84e63352003-03-24 09:42:16 +00007262 else
7263 shlibpath_overrides_runpath=yes
7264 fi
drh71eb93e2001-09-28 01:34:43 +00007265 ;;
7266
7267os2*)
7268 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007270 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007272 dynamic_linker='OS/2 ld.exe'
7273 shlibpath_var=LIBPATH
7274 ;;
7275
7276osf3* | osf4* | osf5*)
7277 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007278 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007279 need_version=no
7280 soname_spec='${libname}${release}${shared_ext}$major'
7281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007282 shlibpath_var=LD_LIBRARY_PATH
7283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7285 ;;
7286
7287sco3.2v5*)
7288 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 soname_spec='${libname}${release}${shared_ext}$major'
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007291 shlibpath_var=LD_LIBRARY_PATH
7292 ;;
7293
7294solaris*)
7295 version_type=linux
7296 need_lib_prefix=no
7297 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7299 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007300 shlibpath_var=LD_LIBRARY_PATH
7301 shlibpath_overrides_runpath=yes
7302 hardcode_into_libs=yes
7303 # ldd complains unless libraries are executable
7304 postinstall_cmds='chmod +x $lib'
7305 ;;
7306
7307sunos4*)
7308 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7311 shlibpath_var=LD_LIBRARY_PATH
7312 shlibpath_overrides_runpath=yes
7313 if test "$with_gnu_ld" = yes; then
7314 need_lib_prefix=no
7315 fi
7316 need_version=yes
7317 ;;
7318
7319sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7320 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7322 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007323 shlibpath_var=LD_LIBRARY_PATH
7324 case $host_vendor in
7325 sni)
7326 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007327 need_lib_prefix=no
7328 export_dynamic_flag_spec='${wl}-Blargedynsym'
7329 runpath_var=LD_RUN_PATH
7330 ;;
7331 siemens)
7332 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007333 ;;
7334 motorola)
7335 need_lib_prefix=no
7336 need_version=no
7337 shlibpath_overrides_runpath=no
7338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7339 ;;
7340 esac
7341 ;;
7342
7343sysv4*MP*)
7344 if test -d /usr/nec ;then
7345 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7347 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007348 shlibpath_var=LD_LIBRARY_PATH
7349 fi
7350 ;;
7351
a.rottmann9bc8b932004-02-29 15:18:31 +00007352uts4*)
7353 version_type=linux
7354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7355 soname_spec='${libname}${release}${shared_ext}$major'
7356 shlibpath_var=LD_LIBRARY_PATH
7357 ;;
7358
drh71eb93e2001-09-28 01:34:43 +00007359*)
7360 dynamic_linker=no
7361 ;;
7362esac
a.rottmann84e63352003-03-24 09:42:16 +00007363echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007364echo "${ECHO_T}$dynamic_linker" >&6
7365test "$dynamic_linker" = no && can_build_shared=no
7366
a.rottmann9bc8b932004-02-29 15:18:31 +00007367echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7368echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7369hardcode_action=
7370if test -n "$hardcode_libdir_flag_spec" || \
7371 test -n "$runpath_var " || \
7372 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007373
a.rottmann9bc8b932004-02-29 15:18:31 +00007374 # We can hardcode non-existant directories.
7375 if test "$hardcode_direct" != no &&
7376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7377 # have to relink, otherwise we might link with an installed library
7378 # when we should be linking with a yet-to-be-installed one
7379 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7380 test "$hardcode_minus_L" != no; then
7381 # Linking always hardcodes the temporary library directory.
7382 hardcode_action=relink
7383 else
7384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7385 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007386 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007387else
7388 # We cannot hardcode anything, or else we can only hardcode existing
7389 # directories.
7390 hardcode_action=unsupported
7391fi
7392echo "$as_me:$LINENO: result: $hardcode_action" >&5
7393echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007394
7395if test "$hardcode_action" = relink; then
7396 # Fast installation is not supported
7397 enable_fast_install=no
7398elif test "$shlibpath_overrides_runpath" = yes ||
7399 test "$enable_shared" = no; then
7400 # Fast installation is not necessary
7401 enable_fast_install=needless
7402fi
7403
a.rottmann9bc8b932004-02-29 15:18:31 +00007404striplib=
7405old_striplib=
7406echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7407echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7408if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7409 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7410 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413else
7414# FIXME - insert some real tests, host_os isn't really good enough
7415 case $host_os in
7416 darwin*)
7417 if test -n "$STRIP" ; then
7418 striplib="$STRIP -x"
7419 echo "$as_me:$LINENO: result: yes" >&5
7420echo "${ECHO_T}yes" >&6
7421 else
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424fi
7425 ;;
7426 *)
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429 ;;
7430 esac
a.rottmann84e63352003-03-24 09:42:16 +00007431fi
7432
drh71eb93e2001-09-28 01:34:43 +00007433if test "x$enable_dlopen" != xyes; then
7434 enable_dlopen=unknown
7435 enable_dlopen_self=unknown
7436 enable_dlopen_self_static=unknown
7437else
7438 lt_cv_dlopen=no
7439 lt_cv_dlopen_libs=
7440
7441 case $host_os in
7442 beos*)
7443 lt_cv_dlopen="load_add_on"
7444 lt_cv_dlopen_libs=
7445 lt_cv_dlopen_self=yes
7446 ;;
7447
a.rottmann9bc8b932004-02-29 15:18:31 +00007448 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007449 lt_cv_dlopen="LoadLibrary"
7450 lt_cv_dlopen_libs=
7451 ;;
7452
a.rottmann9bc8b932004-02-29 15:18:31 +00007453 cygwin*)
7454 lt_cv_dlopen="dlopen"
7455 lt_cv_dlopen_libs=
7456 ;;
7457
7458 darwin*)
7459 # if libdl is installed we need to link against it
7460 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7461echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7462if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 ac_check_lib_save_LIBS=$LIBS
7466LIBS="-ldl $LIBS"
7467cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
7473
7474/* Override any gcc2 internal prototype to avoid an error. */
7475#ifdef __cplusplus
7476extern "C"
7477#endif
7478/* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480char dlopen ();
7481int
7482main ()
7483{
7484dlopen ();
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489rm -f conftest.$ac_objext conftest$ac_exeext
7490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007498 { ac_try='test -z "$ac_c_werror_flag"
7499 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest$ac_exeext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_lib_dl_dlopen=yes
7512else
7513 echo "$as_me: failed program was:" >&5
7514sed 's/^/| /' conftest.$ac_ext >&5
7515
7516ac_cv_lib_dl_dlopen=no
7517fi
7518rm -f conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7520LIBS=$ac_check_lib_save_LIBS
7521fi
7522echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7523echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7524if test $ac_cv_lib_dl_dlopen = yes; then
7525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7526else
7527
7528 lt_cv_dlopen="dyld"
7529 lt_cv_dlopen_libs=
7530 lt_cv_dlopen_self=yes
7531
7532fi
7533
7534 ;;
7535
drh71eb93e2001-09-28 01:34:43 +00007536 *)
a.rottmann84e63352003-03-24 09:42:16 +00007537 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007538echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7539if test "${ac_cv_func_shl_load+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007543/* confdefs.h. */
7544_ACEOF
7545cat confdefs.h >>conftest.$ac_ext
7546cat >>conftest.$ac_ext <<_ACEOF
7547/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007548/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7550#define shl_load innocuous_shl_load
7551
drh71eb93e2001-09-28 01:34:43 +00007552/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007553 which can conflict with char shl_load (); below.
7554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007556
a.rottmann84e63352003-03-24 09:42:16 +00007557#ifdef __STDC__
7558# include <limits.h>
7559#else
7560# include <assert.h>
7561#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007562
7563#undef shl_load
7564
drh71eb93e2001-09-28 01:34:43 +00007565/* Override any gcc2 internal prototype to avoid an error. */
7566#ifdef __cplusplus
7567extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007568{
drh71eb93e2001-09-28 01:34:43 +00007569#endif
7570/* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007573/* The GNU C library defines this for functions which it implements
7574 to always fail with ENOSYS. Some functions are actually named
7575 something starting with __ and the normal name is an alias. */
7576#if defined (__stub_shl_load) || defined (__stub___shl_load)
7577choke me
7578#else
a.rottmann84e63352003-03-24 09:42:16 +00007579char (*f) () = shl_load;
7580#endif
7581#ifdef __cplusplus
7582}
drh71eb93e2001-09-28 01:34:43 +00007583#endif
7584
a.rottmann84e63352003-03-24 09:42:16 +00007585int
7586main ()
7587{
7588return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007595 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007596 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007601 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007611 (eval $ac_try) 2>&5
7612 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007614 (exit $ac_status); }; }; then
7615 ac_cv_func_shl_load=yes
7616else
7617 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007618sed 's/^/| /' conftest.$ac_ext >&5
7619
drh71eb93e2001-09-28 01:34:43 +00007620ac_cv_func_shl_load=no
7621fi
a.rottmann964dbb12004-02-26 19:47:42 +00007622rm -f conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007624fi
a.rottmann84e63352003-03-24 09:42:16 +00007625echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007626echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7627if test $ac_cv_func_shl_load = yes; then
7628 lt_cv_dlopen="shl_load"
7629else
a.rottmann84e63352003-03-24 09:42:16 +00007630 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007631echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7632if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635 ac_check_lib_save_LIBS=$LIBS
7636LIBS="-ldld $LIBS"
7637cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007643
7644/* Override any gcc2 internal prototype to avoid an error. */
7645#ifdef __cplusplus
7646extern "C"
7647#endif
7648/* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650char shl_load ();
7651int
7652main ()
7653{
7654shl_load ();
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007661 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007662 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007667 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007677 (eval $ac_try) 2>&5
7678 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007680 (exit $ac_status); }; }; then
7681 ac_cv_lib_dld_shl_load=yes
7682else
7683 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007684sed 's/^/| /' conftest.$ac_ext >&5
7685
drh71eb93e2001-09-28 01:34:43 +00007686ac_cv_lib_dld_shl_load=no
7687fi
a.rottmann964dbb12004-02-26 19:47:42 +00007688rm -f conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007690LIBS=$ac_check_lib_save_LIBS
7691fi
a.rottmann84e63352003-03-24 09:42:16 +00007692echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007693echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7694if test $ac_cv_lib_dld_shl_load = yes; then
7695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7696else
a.rottmann84e63352003-03-24 09:42:16 +00007697 echo "$as_me:$LINENO: checking for dlopen" >&5
7698echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7699if test "${ac_cv_func_dlopen+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007708/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7710#define dlopen innocuous_dlopen
7711
a.rottmann84e63352003-03-24 09:42:16 +00007712/* System header to define __stub macros and hopefully few prototypes,
7713 which can conflict with char dlopen (); below.
7714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7715 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007716
a.rottmann84e63352003-03-24 09:42:16 +00007717#ifdef __STDC__
7718# include <limits.h>
7719#else
7720# include <assert.h>
7721#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007722
7723#undef dlopen
7724
a.rottmann84e63352003-03-24 09:42:16 +00007725/* Override any gcc2 internal prototype to avoid an error. */
7726#ifdef __cplusplus
7727extern "C"
7728{
7729#endif
7730/* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732char dlopen ();
7733/* The GNU C library defines this for functions which it implements
7734 to always fail with ENOSYS. Some functions are actually named
7735 something starting with __ and the normal name is an alias. */
7736#if defined (__stub_dlopen) || defined (__stub___dlopen)
7737choke me
7738#else
7739char (*f) () = dlopen;
7740#endif
7741#ifdef __cplusplus
7742}
7743#endif
7744
7745int
7746main ()
7747{
7748return f != dlopen;
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007755 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007756 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_func_dlopen=yes
7776else
7777 echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780ac_cv_func_dlopen=no
7781fi
a.rottmann964dbb12004-02-26 19:47:42 +00007782rm -f conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007784fi
7785echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7786echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7787if test $ac_cv_func_dlopen = yes; then
7788 lt_cv_dlopen="dlopen"
7789else
7790 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007791echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7792if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795 ac_check_lib_save_LIBS=$LIBS
7796LIBS="-ldl $LIBS"
7797cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007803
7804/* Override any gcc2 internal prototype to avoid an error. */
7805#ifdef __cplusplus
7806extern "C"
7807#endif
7808/* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7810char dlopen ();
7811int
7812main ()
7813{
7814dlopen ();
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007821 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007822 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007827 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007837 (eval $ac_try) 2>&5
7838 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007840 (exit $ac_status); }; }; then
7841 ac_cv_lib_dl_dlopen=yes
7842else
7843 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007844sed 's/^/| /' conftest.$ac_ext >&5
7845
drh71eb93e2001-09-28 01:34:43 +00007846ac_cv_lib_dl_dlopen=no
7847fi
a.rottmann964dbb12004-02-26 19:47:42 +00007848rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007850LIBS=$ac_check_lib_save_LIBS
7851fi
a.rottmann84e63352003-03-24 09:42:16 +00007852echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007853echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7854if test $ac_cv_lib_dl_dlopen = yes; then
7855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7856else
a.rottmann84e63352003-03-24 09:42:16 +00007857 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007858echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7859if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862 ac_check_lib_save_LIBS=$LIBS
7863LIBS="-lsvld $LIBS"
7864cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007870
7871/* Override any gcc2 internal prototype to avoid an error. */
7872#ifdef __cplusplus
7873extern "C"
7874#endif
7875/* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7877char dlopen ();
7878int
7879main ()
7880{
7881dlopen ();
7882 ;
7883 return 0;
7884}
7885_ACEOF
7886rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007888 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007889 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007894 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007904 (eval $ac_try) 2>&5
7905 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007907 (exit $ac_status); }; }; then
7908 ac_cv_lib_svld_dlopen=yes
7909else
7910 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007911sed 's/^/| /' conftest.$ac_ext >&5
7912
drh71eb93e2001-09-28 01:34:43 +00007913ac_cv_lib_svld_dlopen=no
7914fi
a.rottmann964dbb12004-02-26 19:47:42 +00007915rm -f conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007917LIBS=$ac_check_lib_save_LIBS
7918fi
a.rottmann84e63352003-03-24 09:42:16 +00007919echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007920echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7921if test $ac_cv_lib_svld_dlopen = yes; then
7922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007923else
7924 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7925echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7926if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 ac_check_lib_save_LIBS=$LIBS
7930LIBS="-ldld $LIBS"
7931cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937
7938/* Override any gcc2 internal prototype to avoid an error. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944char dld_link ();
7945int
7946main ()
7947{
7948dld_link ();
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953rm -f conftest.$ac_objext conftest$ac_exeext
7954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007955 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007956 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_lib_dld_dld_link=yes
7976else
7977 echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
7980ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007981fi
a.rottmann964dbb12004-02-26 19:47:42 +00007982rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007984LIBS=$ac_check_lib_save_LIBS
7985fi
7986echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7987echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7988if test $ac_cv_lib_dld_dld_link = yes; then
7989 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7990fi
7991
drh71eb93e2001-09-28 01:34:43 +00007992
7993fi
7994
drh71eb93e2001-09-28 01:34:43 +00007995
7996fi
7997
a.rottmann84e63352003-03-24 09:42:16 +00007998
7999fi
8000
8001
8002fi
8003
8004
drh71eb93e2001-09-28 01:34:43 +00008005fi
8006
8007 ;;
8008 esac
8009
8010 if test "x$lt_cv_dlopen" != xno; then
8011 enable_dlopen=yes
8012 else
8013 enable_dlopen=no
8014 fi
8015
8016 case $lt_cv_dlopen in
8017 dlopen)
8018 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008020
8021 save_LDFLAGS="$LDFLAGS"
8022 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8023
8024 save_LIBS="$LIBS"
8025 LIBS="$lt_cv_dlopen_libs $LIBS"
8026
a.rottmann84e63352003-03-24 09:42:16 +00008027 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008028echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8029if test "${lt_cv_dlopen_self+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 if test "$cross_compiling" = yes; then :
8033 lt_cv_dlopen_self=cross
8034else
a.rottmann9bc8b932004-02-29 15:18:31 +00008035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008036 lt_status=$lt_dlunknown
8037 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +00008038#line 8038 "configure"
drh71eb93e2001-09-28 01:34:43 +00008039#include "confdefs.h"
8040
8041#if HAVE_DLFCN_H
8042#include <dlfcn.h>
8043#endif
8044
8045#include <stdio.h>
8046
8047#ifdef RTLD_GLOBAL
8048# define LT_DLGLOBAL RTLD_GLOBAL
8049#else
8050# ifdef DL_GLOBAL
8051# define LT_DLGLOBAL DL_GLOBAL
8052# else
8053# define LT_DLGLOBAL 0
8054# endif
8055#endif
8056
8057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8058 find out it does not work in some platform. */
8059#ifndef LT_DLLAZY_OR_NOW
8060# ifdef RTLD_LAZY
8061# define LT_DLLAZY_OR_NOW RTLD_LAZY
8062# else
8063# ifdef DL_LAZY
8064# define LT_DLLAZY_OR_NOW DL_LAZY
8065# else
8066# ifdef RTLD_NOW
8067# define LT_DLLAZY_OR_NOW RTLD_NOW
8068# else
8069# ifdef DL_NOW
8070# define LT_DLLAZY_OR_NOW DL_NOW
8071# else
8072# define LT_DLLAZY_OR_NOW 0
8073# endif
8074# endif
8075# endif
8076# endif
8077#endif
8078
8079#ifdef __cplusplus
8080extern "C" void exit (int);
8081#endif
8082
8083void fnord() { int i=42;}
8084int main ()
8085{
8086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8087 int status = $lt_dlunknown;
8088
8089 if (self)
8090 {
8091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8093 /* dlclose (self); */
8094 }
8095
8096 exit (status);
8097}
8098EOF
a.rottmann84e63352003-03-24 09:42:16 +00008099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008100 (eval $ac_link) 2>&5
8101 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8104 (./conftest; exit; ) 2>/dev/null
8105 lt_status=$?
8106 case x$lt_status in
8107 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8108 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8109 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8110 esac
8111 else :
8112 # compilation failed
8113 lt_cv_dlopen_self=no
8114 fi
8115fi
8116rm -fr conftest*
8117
a.rottmann84e63352003-03-24 09:42:16 +00008118
drh71eb93e2001-09-28 01:34:43 +00008119fi
a.rottmann84e63352003-03-24 09:42:16 +00008120echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008121echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8122
8123 if test "x$lt_cv_dlopen_self" = xyes; then
8124 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008125 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008126echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8127if test "${lt_cv_dlopen_self_static+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130 if test "$cross_compiling" = yes; then :
8131 lt_cv_dlopen_self_static=cross
8132else
a.rottmann9bc8b932004-02-29 15:18:31 +00008133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008134 lt_status=$lt_dlunknown
8135 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +00008136#line 8136 "configure"
drh71eb93e2001-09-28 01:34:43 +00008137#include "confdefs.h"
8138
8139#if HAVE_DLFCN_H
8140#include <dlfcn.h>
8141#endif
8142
8143#include <stdio.h>
8144
8145#ifdef RTLD_GLOBAL
8146# define LT_DLGLOBAL RTLD_GLOBAL
8147#else
8148# ifdef DL_GLOBAL
8149# define LT_DLGLOBAL DL_GLOBAL
8150# else
8151# define LT_DLGLOBAL 0
8152# endif
8153#endif
8154
8155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8156 find out it does not work in some platform. */
8157#ifndef LT_DLLAZY_OR_NOW
8158# ifdef RTLD_LAZY
8159# define LT_DLLAZY_OR_NOW RTLD_LAZY
8160# else
8161# ifdef DL_LAZY
8162# define LT_DLLAZY_OR_NOW DL_LAZY
8163# else
8164# ifdef RTLD_NOW
8165# define LT_DLLAZY_OR_NOW RTLD_NOW
8166# else
8167# ifdef DL_NOW
8168# define LT_DLLAZY_OR_NOW DL_NOW
8169# else
8170# define LT_DLLAZY_OR_NOW 0
8171# endif
8172# endif
8173# endif
8174# endif
8175#endif
8176
8177#ifdef __cplusplus
8178extern "C" void exit (int);
8179#endif
8180
8181void fnord() { int i=42;}
8182int main ()
8183{
8184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8185 int status = $lt_dlunknown;
8186
8187 if (self)
8188 {
8189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8191 /* dlclose (self); */
8192 }
8193
8194 exit (status);
8195}
8196EOF
a.rottmann84e63352003-03-24 09:42:16 +00008197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008198 (eval $ac_link) 2>&5
8199 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008201 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8202 (./conftest; exit; ) 2>/dev/null
8203 lt_status=$?
8204 case x$lt_status in
8205 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8206 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8207 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8208 esac
8209 else :
8210 # compilation failed
8211 lt_cv_dlopen_self_static=no
8212 fi
8213fi
8214rm -fr conftest*
8215
a.rottmann84e63352003-03-24 09:42:16 +00008216
drh71eb93e2001-09-28 01:34:43 +00008217fi
a.rottmann84e63352003-03-24 09:42:16 +00008218echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008219echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8220 fi
8221
8222 CPPFLAGS="$save_CPPFLAGS"
8223 LDFLAGS="$save_LDFLAGS"
8224 LIBS="$save_LIBS"
8225 ;;
8226 esac
8227
8228 case $lt_cv_dlopen_self in
8229 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8230 *) enable_dlopen_self=unknown ;;
8231 esac
8232
8233 case $lt_cv_dlopen_self_static in
8234 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8235 *) enable_dlopen_self_static=unknown ;;
8236 esac
8237fi
8238
drh71eb93e2001-09-28 01:34:43 +00008239
a.rottmann9bc8b932004-02-29 15:18:31 +00008240# Report which librarie types wil actually be built
8241echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8242echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8243echo "$as_me:$LINENO: result: $can_build_shared" >&5
8244echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008245
a.rottmann9bc8b932004-02-29 15:18:31 +00008246echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8247echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8248test "$can_build_shared" = "no" && enable_shared=no
8249
8250# On AIX, shared libraries and static libraries use the same namespace, and
8251# are all built from PIC.
8252case "$host_os" in
8253aix3*)
8254 test "$enable_shared" = yes && enable_static=no
8255 if test -n "$RANLIB"; then
8256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8257 postinstall_cmds='$RANLIB $lib'
8258 fi
8259 ;;
8260
8261aix4*)
8262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8263 test "$enable_shared" = yes && enable_static=no
8264 fi
8265 ;;
8266 darwin* | rhapsody*)
8267 if test "$GCC" = yes; then
8268 archive_cmds_need_lc=no
8269 case "$host_os" in
8270 rhapsody* | darwin1.[012])
8271 allow_undefined_flag='-undefined suppress'
8272 ;;
8273 *) # Darwin 1.3 on
8274 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8275 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008276 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008277 case ${MACOSX_DEPLOYMENT_TARGET} in
8278 10.[012])
8279 allow_undefined_flag='-flat_namespace -undefined suppress'
8280 ;;
8281 10.*)
8282 allow_undefined_flag='-undefined dynamic_lookup'
8283 ;;
8284 esac
a.rottmann84e63352003-03-24 09:42:16 +00008285 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008286 ;;
8287 esac
8288 output_verbose_link_cmd='echo'
8289 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8290 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8291 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8292 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}'
8293 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}'
8294 hardcode_direct=no
8295 hardcode_automatic=yes
8296 hardcode_shlibpath_var=unsupported
8297 whole_archive_flag_spec='-all_load $convenience'
8298 link_all_deplibs=yes
8299 else
8300 ld_shlibs=no
8301 fi
a.rottmann84e63352003-03-24 09:42:16 +00008302 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008303esac
8304echo "$as_me:$LINENO: result: $enable_shared" >&5
8305echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008306
a.rottmann9bc8b932004-02-29 15:18:31 +00008307echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8308echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8309# Make sure either enable_shared or enable_static is yes.
8310test "$enable_shared" = yes || enable_static=yes
8311echo "$as_me:$LINENO: result: $enable_static" >&5
8312echo "${ECHO_T}$enable_static" >&6
8313
8314# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008315# libtool distribution, otherwise you forgot to ship ltmain.sh
8316# with your package, and you will get complaints that there are
8317# no rules to generate ltmain.sh.
8318if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008319 # See if we are running on zsh, and set the options which allow our commands through
8320 # without removal of \ escapes.
8321 if test -n "${ZSH_VERSION+set}" ; then
8322 setopt NO_GLOB_SUBST
8323 fi
drh71eb93e2001-09-28 01:34:43 +00008324 # Now quote all the things that may contain metacharacters while being
8325 # careful not to overquote the AC_SUBSTed values. We take copies of the
8326 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8328 SED SHELL STRIP \
8329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8331 deplibs_check_method reload_flag reload_cmds need_locks \
8332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8333 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008335 old_postinstall_cmds old_postuninstall_cmds \
8336 compiler \
8337 CC \
8338 LD \
8339 lt_prog_compiler_wl \
8340 lt_prog_compiler_pic \
8341 lt_prog_compiler_static \
8342 lt_prog_compiler_no_builtin_flag \
8343 export_dynamic_flag_spec \
8344 thread_safe_flag_spec \
8345 whole_archive_flag_spec \
8346 enable_shared_with_static_runtimes \
8347 old_archive_cmds \
8348 old_archive_from_new_cmds \
8349 predep_objects \
8350 postdep_objects \
8351 predeps \
8352 postdeps \
8353 compiler_lib_search_path \
8354 archive_cmds \
8355 archive_expsym_cmds \
8356 postinstall_cmds \
8357 postuninstall_cmds \
8358 old_archive_from_expsyms_cmds \
8359 allow_undefined_flag \
8360 no_undefined_flag \
8361 export_symbols_cmds \
8362 hardcode_libdir_flag_spec \
8363 hardcode_libdir_flag_spec_ld \
8364 hardcode_libdir_separator \
8365 hardcode_automatic \
8366 module_cmds \
8367 module_expsym_cmds \
8368 lt_cv_prog_compiler_c_o \
8369 exclude_expsyms \
8370 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008371
8372 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008373 old_archive_cmds | \
8374 old_archive_from_new_cmds | \
8375 archive_cmds | \
8376 archive_expsym_cmds | \
8377 module_cmds | \
8378 module_expsym_cmds | \
8379 old_archive_from_expsyms_cmds | \
8380 export_symbols_cmds | \
8381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008382 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008383 old_postinstall_cmds | old_postuninstall_cmds | \
8384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008385 # Double-quote double-evaled strings.
8386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8387 ;;
8388 *)
8389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8390 ;;
8391 esac
8392 done
8393
a.rottmann9bc8b932004-02-29 15:18:31 +00008394 case $lt_echo in
8395 *'\$0 --fallback-echo"')
8396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8397 ;;
8398 esac
8399
8400cfgfile="${ofile}T"
8401 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8402 $rm -f "$cfgfile"
8403 { echo "$as_me:$LINENO: creating $ofile" >&5
8404echo "$as_me: creating $ofile" >&6;}
8405
8406 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008407#! $SHELL
8408
a.rottmann9bc8b932004-02-29 15:18:31 +00008409# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008410# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8411# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8412#
a.rottmann9bc8b932004-02-29 15:18:31 +00008413# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8414# Free Software Foundation, Inc.
8415#
8416# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008417# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8418#
8419# This program is free software; you can redistribute it and/or modify
8420# it under the terms of the GNU General Public License as published by
8421# the Free Software Foundation; either version 2 of the License, or
8422# (at your option) any later version.
8423#
8424# This program is distributed in the hope that it will be useful, but
8425# WITHOUT ANY WARRANTY; without even the implied warranty of
8426# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8427# General Public License for more details.
8428#
8429# You should have received a copy of the GNU General Public License
8430# along with this program; if not, write to the Free Software
8431# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8432#
8433# As a special exception to the GNU General Public License, if you
8434# distribute this file as part of a program that contains a
8435# configuration script generated by Autoconf, you may include it under
8436# the same distribution terms that you use for the rest of that program.
8437
a.rottmann9bc8b932004-02-29 15:18:31 +00008438# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008439SED=$lt_SED
8440
drh71eb93e2001-09-28 01:34:43 +00008441# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008442Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008443
8444# The HP-UX ksh and POSIX shell print the target directory to stdout
8445# if CDPATH is set.
8446if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8447
a.rottmann9bc8b932004-02-29 15:18:31 +00008448# The names of the tagged configurations supported by this script.
8449available_tags=
8450
drh71eb93e2001-09-28 01:34:43 +00008451# ### BEGIN LIBTOOL CONFIG
8452
8453# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8454
8455# Shell to use when invoking shell scripts.
8456SHELL=$lt_SHELL
8457
8458# Whether or not to build shared libraries.
8459build_libtool_libs=$enable_shared
8460
8461# Whether or not to build static libraries.
8462build_old_libs=$enable_static
8463
8464# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008465build_libtool_need_lc=$archive_cmds_need_lc
8466
8467# Whether or not to disallow shared libs when runtime libs are static
8468allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008469
8470# Whether or not to optimize for fast installation.
8471fast_install=$enable_fast_install
8472
8473# The host system.
8474host_alias=$host_alias
8475host=$host
8476
8477# An echo program that does not interpret backslashes.
8478echo=$lt_echo
8479
8480# The archiver.
8481AR=$lt_AR
8482AR_FLAGS=$lt_AR_FLAGS
8483
a.rottmann9bc8b932004-02-29 15:18:31 +00008484# A C compiler.
8485LTCC=$lt_LTCC
8486
8487# A language-specific compiler.
8488CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008489
8490# Is the compiler the GNU C compiler?
8491with_gcc=$GCC
8492
a.rottmann9bc8b932004-02-29 15:18:31 +00008493# An ERE matcher.
8494EGREP=$lt_EGREP
8495
drh71eb93e2001-09-28 01:34:43 +00008496# The linker used to build libraries.
8497LD=$lt_LD
8498
8499# Whether we need hard or soft links.
8500LN_S=$lt_LN_S
8501
8502# A BSD-compatible nm program.
8503NM=$lt_NM
8504
8505# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008506STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008507
8508# Used to examine libraries when file_magic_cmd begins "file"
8509MAGIC_CMD=$MAGIC_CMD
8510
8511# Used on cygwin: DLL creation program.
8512DLLTOOL="$DLLTOOL"
8513
8514# Used on cygwin: object dumper.
8515OBJDUMP="$OBJDUMP"
8516
8517# Used on cygwin: assembler.
8518AS="$AS"
8519
8520# The name of the directory that contains temporary libtool files.
8521objdir=$objdir
8522
8523# How to create reloadable object files.
8524reload_flag=$lt_reload_flag
8525reload_cmds=$lt_reload_cmds
8526
8527# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008528wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008529
8530# Object file suffix (normally "o").
8531objext="$ac_objext"
8532
8533# Old archive suffix (normally "a").
8534libext="$libext"
8535
a.rottmann9bc8b932004-02-29 15:18:31 +00008536# Shared library suffix (normally ".so").
8537shrext='$shrext'
8538
drh71eb93e2001-09-28 01:34:43 +00008539# Executable file suffix (normally "").
8540exeext="$exeext"
8541
8542# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008543pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008544pic_mode=$pic_mode
8545
a.rottmann9bc8b932004-02-29 15:18:31 +00008546# What is the maximum length of a command?
8547max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008548
a.rottmann9bc8b932004-02-29 15:18:31 +00008549# Does compiler simultaneously support -c and -o options?
8550compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008551
8552# Must we lock files when doing compilation ?
8553need_locks=$lt_need_locks
8554
8555# Do we need the lib prefix for modules?
8556need_lib_prefix=$need_lib_prefix
8557
8558# Do we need a version for libraries?
8559need_version=$need_version
8560
8561# Whether dlopen is supported.
8562dlopen_support=$enable_dlopen
8563
8564# Whether dlopen of programs is supported.
8565dlopen_self=$enable_dlopen_self
8566
8567# Whether dlopen of statically linked programs is supported.
8568dlopen_self_static=$enable_dlopen_self_static
8569
8570# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008571link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008572
8573# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008575
8576# Compiler flag to allow reflexive dlopens.
8577export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8578
8579# Compiler flag to generate shared objects directly from archives.
8580whole_archive_flag_spec=$lt_whole_archive_flag_spec
8581
8582# Compiler flag to generate thread-safe objects.
8583thread_safe_flag_spec=$lt_thread_safe_flag_spec
8584
8585# Library versioning type.
8586version_type=$version_type
8587
8588# Format of library name prefix.
8589libname_spec=$lt_libname_spec
8590
8591# List of archive names. First name is the real one, the rest are links.
8592# The last name is the one that the linker finds with -lNAME.
8593library_names_spec=$lt_library_names_spec
8594
8595# The coded name of the library, if different from the real name.
8596soname_spec=$lt_soname_spec
8597
8598# Commands used to build and install an old-style archive.
8599RANLIB=$lt_RANLIB
8600old_archive_cmds=$lt_old_archive_cmds
8601old_postinstall_cmds=$lt_old_postinstall_cmds
8602old_postuninstall_cmds=$lt_old_postuninstall_cmds
8603
8604# Create an old-style archive from a shared archive.
8605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8606
8607# Create a temporary old-style archive to link instead of a shared archive.
8608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8609
8610# Commands used to build and install a shared archive.
8611archive_cmds=$lt_archive_cmds
8612archive_expsym_cmds=$lt_archive_expsym_cmds
8613postinstall_cmds=$lt_postinstall_cmds
8614postuninstall_cmds=$lt_postuninstall_cmds
8615
a.rottmann9bc8b932004-02-29 15:18:31 +00008616# Commands used to build a loadable module (assumed same as above if empty)
8617module_cmds=$lt_module_cmds
8618module_expsym_cmds=$lt_module_expsym_cmds
8619
drh71eb93e2001-09-28 01:34:43 +00008620# Commands to strip libraries.
8621old_striplib=$lt_old_striplib
8622striplib=$lt_striplib
8623
a.rottmann9bc8b932004-02-29 15:18:31 +00008624# Dependencies to place before the objects being linked to create a
8625# shared library.
8626predep_objects=$lt_predep_objects
8627
8628# Dependencies to place after the objects being linked to create a
8629# shared library.
8630postdep_objects=$lt_postdep_objects
8631
8632# Dependencies to place before the objects being linked to create a
8633# shared library.
8634predeps=$lt_predeps
8635
8636# Dependencies to place after the objects being linked to create a
8637# shared library.
8638postdeps=$lt_postdeps
8639
8640# The library search path used internally by the compiler when linking
8641# a shared library.
8642compiler_lib_search_path=$lt_compiler_lib_search_path
8643
drh71eb93e2001-09-28 01:34:43 +00008644# Method to check whether dependent libraries are shared objects.
8645deplibs_check_method=$lt_deplibs_check_method
8646
8647# Command to use when deplibs_check_method == file_magic.
8648file_magic_cmd=$lt_file_magic_cmd
8649
8650# Flag that allows shared libraries with undefined symbols to be built.
8651allow_undefined_flag=$lt_allow_undefined_flag
8652
8653# Flag that forces no undefined symbols.
8654no_undefined_flag=$lt_no_undefined_flag
8655
8656# Commands used to finish a libtool library installation in a directory.
8657finish_cmds=$lt_finish_cmds
8658
8659# Same as above, but a single script fragment to be evaled but not shown.
8660finish_eval=$lt_finish_eval
8661
8662# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008663global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008664
8665# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008666global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008667
8668# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008669global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008670
8671# This is the shared library runtime path variable.
8672runpath_var=$runpath_var
8673
8674# This is the shared library path variable.
8675shlibpath_var=$shlibpath_var
8676
8677# Is shlibpath searched before the hard-coded library search path?
8678shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8679
8680# How to hardcode a shared library path into an executable.
8681hardcode_action=$hardcode_action
8682
8683# Whether we should hardcode library paths into libraries.
8684hardcode_into_libs=$hardcode_into_libs
8685
8686# Flag to hardcode \$libdir into a binary during linking.
8687# This must work even if \$libdir does not exist.
8688hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8689
a.rottmann9bc8b932004-02-29 15:18:31 +00008690# If ld is used when linking, flag to hardcode \$libdir into
8691# a binary during linking. This must work even if \$libdir does
8692# not exist.
8693hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8694
drh71eb93e2001-09-28 01:34:43 +00008695# Whether we need a single -rpath flag with a separated argument.
8696hardcode_libdir_separator=$lt_hardcode_libdir_separator
8697
a.rottmann9bc8b932004-02-29 15:18:31 +00008698# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008699# resulting binary.
8700hardcode_direct=$hardcode_direct
8701
8702# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8703# resulting binary.
8704hardcode_minus_L=$hardcode_minus_L
8705
8706# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8707# the resulting binary.
8708hardcode_shlibpath_var=$hardcode_shlibpath_var
8709
a.rottmann9bc8b932004-02-29 15:18:31 +00008710# Set to yes if building a shared library automatically hardcodes DIR into the library
8711# and all subsequent libraries and executables linked against it.
8712hardcode_automatic=$hardcode_automatic
8713
drh71eb93e2001-09-28 01:34:43 +00008714# Variables whose values should be saved in libtool wrapper scripts and
8715# restored at relink time.
8716variables_saved_for_relink="$variables_saved_for_relink"
8717
8718# Whether libtool must link a program against all its dependency libraries.
8719link_all_deplibs=$link_all_deplibs
8720
8721# Compile-time system search path for libraries
8722sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8723
8724# Run-time system search path for libraries
8725sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8726
8727# Fix the shell variable \$srcfile for the compiler.
8728fix_srcfile_path="$fix_srcfile_path"
8729
8730# Set to yes if exported symbols are required.
8731always_export_symbols=$always_export_symbols
8732
8733# The commands to list exported symbols.
8734export_symbols_cmds=$lt_export_symbols_cmds
8735
8736# The commands to extract the exported symbol list from a shared archive.
8737extract_expsyms_cmds=$lt_extract_expsyms_cmds
8738
8739# Symbols that should not be listed in the preloaded symbols.
8740exclude_expsyms=$lt_exclude_expsyms
8741
8742# Symbols that must always be exported.
8743include_expsyms=$lt_include_expsyms
8744
8745# ### END LIBTOOL CONFIG
8746
8747__EOF__
8748
a.rottmann9bc8b932004-02-29 15:18:31 +00008749
drh71eb93e2001-09-28 01:34:43 +00008750 case $host_os in
8751 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008752 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008753
8754# AIX sometimes has problems with the GCC collect2 program. For some
8755# reason, if we set the COLLECT_NAMES environment variable, the problems
8756# vanish in a puff of smoke.
8757if test "X${COLLECT_NAMES+set}" != Xset; then
8758 COLLECT_NAMES=
8759 export COLLECT_NAMES
8760fi
8761EOF
8762 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008763 esac
drh71eb93e2001-09-28 01:34:43 +00008764
drh71eb93e2001-09-28 01:34:43 +00008765 # We use sed instead of cat because bash on DJGPP gets confused if
8766 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8767 # text mode, it properly converts lines to CR/LF. This bash problem
8768 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008769 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008770
a.rottmann9bc8b932004-02-29 15:18:31 +00008771 mv -f "$cfgfile" "$ofile" || \
8772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008773 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008774
8775else
8776 # If there is no Makefile yet, we rely on a make rule to execute
8777 # `config.status --recheck' to rerun these tests and create the
8778 # libtool script then.
8779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8780 if test -f "$ltmain_in"; then
8781 test -f Makefile && make "$ltmain"
8782 fi
drh71eb93e2001-09-28 01:34:43 +00008783fi
8784
drh71eb93e2001-09-28 01:34:43 +00008785
a.rottmann9bc8b932004-02-29 15:18:31 +00008786ac_ext=c
8787ac_cpp='$CPP $CPPFLAGS'
8788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8790ac_compiler_gnu=$ac_cv_c_compiler_gnu
8791
8792CC="$lt_save_CC"
8793
8794
8795# Check whether --with-tags or --without-tags was given.
8796if test "${with_tags+set}" = set; then
8797 withval="$with_tags"
8798 tagnames="$withval"
8799fi;
8800
8801if test -f "$ltmain" && test -n "$tagnames"; then
8802 if test ! -f "${ofile}"; then
8803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8804echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8805 fi
8806
8807 if test -z "$LTCC"; then
8808 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8809 if test -z "$LTCC"; then
8810 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8811echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8812 else
8813 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8814echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8815 fi
8816 fi
8817
8818 # Extract list of available tagged configurations in $ofile.
8819 # Note that this assumes the entire list is on one line.
8820 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8821
8822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8823 for tagname in $tagnames; do
8824 IFS="$lt_save_ifs"
8825 # Check whether tagname contains only valid characters
8826 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8827 "") ;;
8828 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8829echo "$as_me: error: invalid tag name: $tagname" >&2;}
8830 { (exit 1); exit 1; }; }
8831 ;;
8832 esac
8833
8834 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8835 then
8836 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8837echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8838 { (exit 1); exit 1; }; }
8839 fi
8840
8841 # Update the list of available tags.
8842 if test -n "$tagname"; then
8843 echo appending configuration tag \"$tagname\" to $ofile
8844
8845 case $tagname in
8846 CXX)
8847 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8848 ac_ext=cc
8849ac_cpp='$CXXCPP $CPPFLAGS'
8850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8853
8854
8855
8856
8857archive_cmds_need_lc_CXX=no
8858allow_undefined_flag_CXX=
8859always_export_symbols_CXX=no
8860archive_expsym_cmds_CXX=
8861export_dynamic_flag_spec_CXX=
8862hardcode_direct_CXX=no
8863hardcode_libdir_flag_spec_CXX=
8864hardcode_libdir_flag_spec_ld_CXX=
8865hardcode_libdir_separator_CXX=
8866hardcode_minus_L_CXX=no
8867hardcode_automatic_CXX=no
8868module_cmds_CXX=
8869module_expsym_cmds_CXX=
8870link_all_deplibs_CXX=unknown
8871old_archive_cmds_CXX=$old_archive_cmds
8872no_undefined_flag_CXX=
8873whole_archive_flag_spec_CXX=
8874enable_shared_with_static_runtimes_CXX=no
8875
8876# Dependencies to place before and after the object being linked:
8877predep_objects_CXX=
8878postdep_objects_CXX=
8879predeps_CXX=
8880postdeps_CXX=
8881compiler_lib_search_path_CXX=
8882
8883# Source file extension for C++ test sources.
8884ac_ext=cc
8885
8886# Object file extension for compiled C++ test sources.
8887objext=o
8888objext_CXX=$objext
8889
8890# Code to be used in simple compile tests
8891lt_simple_compile_test_code="int some_variable = 0;\n"
8892
8893# Code to be used in simple link tests
8894lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8895
8896# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8897
8898# If no C compiler was specified, use CC.
8899LTCC=${LTCC-"$CC"}
8900
8901# Allow CC to be a program name with arguments.
8902compiler=$CC
8903
8904
8905# Allow CC to be a program name with arguments.
8906lt_save_CC=$CC
8907lt_save_LD=$LD
8908lt_save_GCC=$GCC
8909GCC=$GXX
8910lt_save_with_gnu_ld=$with_gnu_ld
8911lt_save_path_LD=$lt_cv_path_LD
8912if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8913 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8914else
8915 unset lt_cv_prog_gnu_ld
8916fi
8917if test -n "${lt_cv_path_LDCXX+set}"; then
8918 lt_cv_path_LD=$lt_cv_path_LDCXX
8919else
8920 unset lt_cv_path_LD
8921fi
8922test -z "${LDCXX+set}" || LD=$LDCXX
8923CC=${CXX-"c++"}
8924compiler=$CC
8925compiler_CXX=$CC
8926cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8927
8928# We don't want -fno-exception wen compiling C++ code, so set the
8929# no_builtin_flag separately
8930if test "$GXX" = yes; then
8931 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8932else
8933 lt_prog_compiler_no_builtin_flag_CXX=
8934fi
8935
8936if test "$GXX" = yes; then
8937 # Set up default GNU C++ configuration
8938
8939
8940# Check whether --with-gnu-ld or --without-gnu-ld was given.
8941if test "${with_gnu_ld+set}" = set; then
8942 withval="$with_gnu_ld"
8943 test "$withval" = no || with_gnu_ld=yes
8944else
8945 with_gnu_ld=no
8946fi;
8947ac_prog=ld
8948if test "$GCC" = yes; then
8949 # Check if gcc -print-prog-name=ld gives a path.
8950 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8951echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8952 case $host in
8953 *-*-mingw*)
8954 # gcc leaves a trailing carriage return which upsets mingw
8955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8956 *)
8957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8958 esac
8959 case $ac_prog in
8960 # Accept absolute paths.
8961 [\\/]* | ?:[\\/]*)
8962 re_direlt='/[^/][^/]*/\.\./'
8963 # Canonicalize the pathname of ld
8964 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8965 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8966 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8967 done
8968 test -z "$LD" && LD="$ac_prog"
8969 ;;
8970 "")
8971 # If it fails, then pretend we aren't using GCC.
8972 ac_prog=ld
8973 ;;
8974 *)
8975 # If it is relative, then search for the first ld in PATH.
8976 with_gnu_ld=unknown
8977 ;;
8978 esac
8979elif test "$with_gnu_ld" = yes; then
8980 echo "$as_me:$LINENO: checking for GNU ld" >&5
8981echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8982else
8983 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8984echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8985fi
8986if test "${lt_cv_path_LD+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 if test -z "$LD"; then
8990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8991 for ac_dir in $PATH; do
8992 IFS="$lt_save_ifs"
8993 test -z "$ac_dir" && ac_dir=.
8994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8995 lt_cv_path_LD="$ac_dir/$ac_prog"
8996 # Check to see if the program is GNU ld. I'd rather use --version,
8997 # but apparently some GNU ld's only accept -v.
8998 # Break only if it was the GNU/non-GNU ld that we prefer.
8999 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9000 *GNU* | *'with BFD'*)
9001 test "$with_gnu_ld" != no && break
9002 ;;
9003 *)
9004 test "$with_gnu_ld" != yes && break
9005 ;;
9006 esac
9007 fi
9008 done
9009 IFS="$lt_save_ifs"
9010else
9011 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9012fi
9013fi
9014
9015LD="$lt_cv_path_LD"
9016if test -n "$LD"; then
9017 echo "$as_me:$LINENO: result: $LD" >&5
9018echo "${ECHO_T}$LD" >&6
9019else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022fi
9023test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9024echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9025 { (exit 1); exit 1; }; }
9026echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9027echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9028if test "${lt_cv_prog_gnu_ld+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9032case `$LD -v 2>&1 </dev/null` in
9033*GNU* | *'with BFD'*)
9034 lt_cv_prog_gnu_ld=yes
9035 ;;
9036*)
9037 lt_cv_prog_gnu_ld=no
9038 ;;
9039esac
9040fi
9041echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9042echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9043with_gnu_ld=$lt_cv_prog_gnu_ld
9044
9045
9046
9047 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9048 # archiving commands below assume that GNU ld is being used.
9049 if test "$with_gnu_ld" = yes; then
9050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 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'
9052
9053 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9055
9056 # If archive_cmds runs LD, not CC, wlarc should be empty
9057 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9058 # investigate it a little bit more. (MM)
9059 wlarc='${wl}'
9060
9061 # ancient GNU ld didn't support --whole-archive et. al.
9062 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9063 grep 'no-whole-archive' > /dev/null; then
9064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9065 else
9066 whole_archive_flag_spec_CXX=
9067 fi
9068 else
9069 with_gnu_ld=no
9070 wlarc=
9071
9072 # A generic and very simple default shared library creation
9073 # command for GNU C++ for the case where it uses the native
9074 # linker, instead of GNU ld. If possible, this setting should
9075 # overridden to take advantage of the native linker features on
9076 # the platform it is being used on.
9077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9078 fi
9079
9080 # Commands to make compiler produce verbose output that lists
9081 # what "hidden" libraries, object files and flags are used when
9082 # linking a shared library.
9083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9084
9085else
9086 GXX=no
9087 with_gnu_ld=no
9088 wlarc=
9089fi
9090
9091# PORTME: fill in a description of your system's C++ link characteristics
9092echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9093echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9094ld_shlibs_CXX=yes
9095case $host_os in
9096 aix3*)
9097 # FIXME: insert proper C++ library support
9098 ld_shlibs_CXX=no
9099 ;;
9100 aix4* | aix5*)
9101 if test "$host_cpu" = ia64; then
9102 # On IA64, the linker does run time linking by default, so we don't
9103 # have to do anything special.
9104 aix_use_runtimelinking=no
9105 exp_sym_flag='-Bexport'
9106 no_entry_flag=""
9107 else
9108 aix_use_runtimelinking=no
9109
9110 # Test if we are trying to use run time linking or normal
9111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9112 # need to do runtime linking.
9113 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9114 for ld_flag in $LDFLAGS; do
9115 case $ld_flag in
9116 *-brtl*)
9117 aix_use_runtimelinking=yes
9118 break
9119 ;;
9120 esac
9121 done
9122 esac
9123
9124 exp_sym_flag='-bexport'
9125 no_entry_flag='-bnoentry'
9126 fi
9127
9128 # When large executables or shared objects are built, AIX ld can
9129 # have problems creating the table of contents. If linking a library
9130 # or program results in "error TOC overflow" add -mminimal-toc to
9131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9133
9134 archive_cmds_CXX=''
9135 hardcode_direct_CXX=yes
9136 hardcode_libdir_separator_CXX=':'
9137 link_all_deplibs_CXX=yes
9138
9139 if test "$GXX" = yes; then
9140 case $host_os in aix4.012|aix4.012.*)
9141 # We only want to do this on AIX 4.2 and lower, the check
9142 # below for broken collect2 doesn't work under 4.3+
9143 collect2name=`${CC} -print-prog-name=collect2`
9144 if test -f "$collect2name" && \
9145 strings "$collect2name" | grep resolve_lib_name >/dev/null
9146 then
9147 # We have reworked collect2
9148 hardcode_direct_CXX=yes
9149 else
9150 # We have old collect2
9151 hardcode_direct_CXX=unsupported
9152 # It fails to find uninstalled libraries when the uninstalled
9153 # path is not listed in the libpath. Setting hardcode_minus_L
9154 # to unsupported forces relinking
9155 hardcode_minus_L_CXX=yes
9156 hardcode_libdir_flag_spec_CXX='-L$libdir'
9157 hardcode_libdir_separator_CXX=
9158 fi
9159 esac
9160 shared_flag='-shared'
9161 else
9162 # not using gcc
9163 if test "$host_cpu" = ia64; then
9164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9165 # chokes on -Wl,-G. The following line is correct:
9166 shared_flag='-G'
9167 else
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag='${wl}-G'
9170 else
9171 shared_flag='${wl}-bM:SRE'
9172 fi
9173 fi
9174 fi
9175
9176 # It seems that -bexpall does not export symbols beginning with
9177 # underscore (_), so it is better to generate a list of symbols to export.
9178 always_export_symbols_CXX=yes
9179 if test "$aix_use_runtimelinking" = yes; then
9180 # Warning - without using the other runtime loading flags (-brtl),
9181 # -berok will link without error, but may produce a broken library.
9182 allow_undefined_flag_CXX='-berok'
9183 # Determine the default libpath from the value encoded in an empty executable.
9184 cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h. */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h. */
9190
9191int
9192main ()
9193{
9194
9195 ;
9196 return 0;
9197}
9198_ACEOF
9199rm -f conftest.$ac_objext conftest$ac_exeext
9200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009208 { ac_try='test -z "$ac_cxx_werror_flag"
9209 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest$ac_exeext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221
9222aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9223}'`
9224# Check for a 64-bit object if we didn't find anything.
9225if 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; }
9226}'`; fi
9227else
9228 echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
9231fi
9232rm -f conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9235
9236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9237
9238 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"
9239 else
9240 if test "$host_cpu" = ia64; then
9241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9242 allow_undefined_flag_CXX="-z nodefs"
9243 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"
9244 else
9245 # Determine the default libpath from the value encoded in an empty executable.
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252
9253int
9254main ()
9255{
9256
9257 ;
9258 return 0;
9259}
9260_ACEOF
9261rm -f conftest.$ac_objext conftest$ac_exeext
9262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009270 { ac_try='test -z "$ac_cxx_werror_flag"
9271 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283
9284aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9285}'`
9286# Check for a 64-bit object if we didn't find anything.
9287if 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; }
9288}'`; fi
9289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293fi
9294rm -f conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9297
9298 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9299 # Warning - without using the other run time loading flags,
9300 # -berok will link without error, but may produce a broken library.
9301 no_undefined_flag_CXX=' ${wl}-bernotok'
9302 allow_undefined_flag_CXX=' ${wl}-berok'
9303 # -bexpall does not export symbols beginning with underscore (_)
9304 always_export_symbols_CXX=yes
9305 # Exported symbols can be pulled into shared objects from archives
9306 whole_archive_flag_spec_CXX=' '
9307 archive_cmds_need_lc_CXX=yes
9308 # This is similar to how AIX traditionally builds it's shared libraries.
9309 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'
9310 fi
9311 fi
9312 ;;
9313 chorus*)
9314 case $cc_basename in
9315 *)
9316 # FIXME: insert proper C++ library support
9317 ld_shlibs_CXX=no
9318 ;;
9319 esac
9320 ;;
9321
9322 cygwin* | mingw* | pw32*)
9323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9324 # as there is no search path for DLLs.
9325 hardcode_libdir_flag_spec_CXX='-L$libdir'
9326 allow_undefined_flag_CXX=unsupported
9327 always_export_symbols_CXX=no
9328 enable_shared_with_static_runtimes_CXX=yes
9329
9330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9331 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'
9332 # If the export-symbols file already is a .def file (1st line
9333 # is EXPORTS), use it as is; otherwise, prepend...
9334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9335 cp $export_symbols $output_objdir/$soname.def;
9336 else
9337 echo EXPORTS > $output_objdir/$soname.def;
9338 cat $export_symbols >> $output_objdir/$soname.def;
9339 fi~
9340 $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'
9341 else
9342 ld_shlibs_CXX=no
9343 fi
9344 ;;
9345
9346 darwin* | rhapsody*)
9347 if test "$GXX" = yes; then
9348 archive_cmds_need_lc_CXX=no
9349 case "$host_os" in
9350 rhapsody* | darwin1.[012])
9351 allow_undefined_flag_CXX='-undefined suppress'
9352 ;;
9353 *) # Darwin 1.3 on
9354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9355 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9356 else
9357 case ${MACOSX_DEPLOYMENT_TARGET} in
9358 10.[012])
9359 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9360 ;;
9361 10.*)
9362 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9363 ;;
9364 esac
9365 fi
9366 ;;
9367 esac
9368 lt_int_apple_cc_single_mod=no
9369 output_verbose_link_cmd='echo'
9370 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9371 lt_int_apple_cc_single_mod=yes
9372 fi
9373 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9374 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9375 else
9376 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'
9377 fi
9378 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9379
9380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9381 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9382 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}'
9383 else
9384 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}'
9385 fi
9386 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}'
9387 hardcode_direct_CXX=no
9388 hardcode_automatic_CXX=yes
9389 hardcode_shlibpath_var_CXX=unsupported
9390 whole_archive_flag_spec_CXX='-all_load $convenience'
9391 link_all_deplibs_CXX=yes
9392 else
9393 ld_shlibs_CXX=no
9394 fi
9395 ;;
9396
9397 dgux*)
9398 case $cc_basename in
9399 ec++)
9400 # FIXME: insert proper C++ library support
9401 ld_shlibs_CXX=no
9402 ;;
9403 ghcx)
9404 # Green Hills C++ Compiler
9405 # FIXME: insert proper C++ library support
9406 ld_shlibs_CXX=no
9407 ;;
9408 *)
9409 # FIXME: insert proper C++ library support
9410 ld_shlibs_CXX=no
9411 ;;
9412 esac
9413 ;;
9414 freebsd12*)
9415 # C++ shared libraries reported to be fairly broken before switch to ELF
9416 ld_shlibs_CXX=no
9417 ;;
9418 freebsd-elf*)
9419 archive_cmds_need_lc_CXX=no
9420 ;;
9421 freebsd* | kfreebsd*-gnu)
9422 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9423 # conventions
9424 ld_shlibs_CXX=yes
9425 ;;
9426 gnu*)
9427 ;;
9428 hpux9*)
9429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9430 hardcode_libdir_separator_CXX=:
9431 export_dynamic_flag_spec_CXX='${wl}-E'
9432 hardcode_direct_CXX=yes
9433 hardcode_minus_L_CXX=yes # Not in the search PATH,
9434 # but as the default
9435 # location of the library.
9436
9437 case $cc_basename in
9438 CC)
9439 # FIXME: insert proper C++ library support
9440 ld_shlibs_CXX=no
9441 ;;
9442 aCC)
9443 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'
9444 # Commands to make compiler produce verbose output that lists
9445 # what "hidden" libraries, object files and flags are used when
9446 # linking a shared library.
9447 #
9448 # There doesn't appear to be a way to prevent this compiler from
9449 # explicitly linking system object files so we need to strip them
9450 # from the output so that they don't get included in the library
9451 # dependencies.
9452 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'
9453 ;;
9454 *)
9455 if test "$GXX" = yes; then
9456 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'
9457 else
9458 # FIXME: insert proper C++ library support
9459 ld_shlibs_CXX=no
9460 fi
9461 ;;
9462 esac
9463 ;;
9464 hpux10*|hpux11*)
9465 if test $with_gnu_ld = no; then
9466 case "$host_cpu" in
9467 hppa*64*)
9468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9470 hardcode_libdir_separator_CXX=:
9471 ;;
9472 ia64*)
9473 hardcode_libdir_flag_spec_CXX='-L$libdir'
9474 ;;
9475 *)
9476 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9477 hardcode_libdir_separator_CXX=:
9478 export_dynamic_flag_spec_CXX='${wl}-E'
9479 ;;
9480 esac
9481 fi
9482 case "$host_cpu" in
9483 hppa*64*)
9484 hardcode_direct_CXX=no
9485 hardcode_shlibpath_var_CXX=no
9486 ;;
9487 ia64*)
9488 hardcode_direct_CXX=no
9489 hardcode_shlibpath_var_CXX=no
9490 hardcode_minus_L_CXX=yes # Not in the search PATH,
9491 # but as the default
9492 # location of the library.
9493 ;;
9494 *)
9495 hardcode_direct_CXX=yes
9496 hardcode_minus_L_CXX=yes # Not in the search PATH,
9497 # but as the default
9498 # location of the library.
9499 ;;
9500 esac
9501
9502 case $cc_basename in
9503 CC)
9504 # FIXME: insert proper C++ library support
9505 ld_shlibs_CXX=no
9506 ;;
9507 aCC)
9508 case "$host_cpu" in
9509 hppa*64*|ia64*)
9510 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9511 ;;
9512 *)
9513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9514 ;;
9515 esac
9516 # Commands to make compiler produce verbose output that lists
9517 # what "hidden" libraries, object files and flags are used when
9518 # linking a shared library.
9519 #
9520 # There doesn't appear to be a way to prevent this compiler from
9521 # explicitly linking system object files so we need to strip them
9522 # from the output so that they don't get included in the library
9523 # dependencies.
9524 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'
9525 ;;
9526 *)
9527 if test "$GXX" = yes; then
9528 if test $with_gnu_ld = no; then
9529 case "$host_cpu" in
9530 ia64*|hppa*64*)
9531 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9532 ;;
9533 *)
9534 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'
9535 ;;
9536 esac
9537 fi
9538 else
9539 # FIXME: insert proper C++ library support
9540 ld_shlibs_CXX=no
9541 fi
9542 ;;
9543 esac
9544 ;;
9545 irix5* | irix6*)
9546 case $cc_basename in
9547 CC)
9548 # SGI C++
9549 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'
9550
9551 # Archives containing C++ object files must be created using
9552 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9553 # necessary to make sure instantiated templates are included
9554 # in the archive.
9555 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9556 ;;
9557 *)
9558 if test "$GXX" = yes; then
9559 if test "$with_gnu_ld" = no; then
9560 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'
9561 else
9562 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'
9563 fi
9564 fi
9565 link_all_deplibs_CXX=yes
9566 ;;
9567 esac
9568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9569 hardcode_libdir_separator_CXX=:
9570 ;;
9571 linux*)
9572 case $cc_basename in
9573 KCC)
9574 # Kuck and Associates, Inc. (KAI) C++ Compiler
9575
9576 # KCC will only create a shared library if the output file
9577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9578 # to its proper name (with version) after linking.
9579 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'
9580 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'
9581 # Commands to make compiler produce verbose output that lists
9582 # what "hidden" libraries, object files and flags are used when
9583 # linking a shared library.
9584 #
9585 # There doesn't appear to be a way to prevent this compiler from
9586 # explicitly linking system object files so we need to strip them
9587 # from the output so that they don't get included in the library
9588 # dependencies.
9589 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'
9590
9591 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9593
9594 # Archives containing C++ object files must be created using
9595 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9596 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9597 ;;
9598 icpc)
9599 # Intel C++
9600 with_gnu_ld=yes
9601 archive_cmds_need_lc_CXX=no
9602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 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'
9604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9606 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9607 ;;
9608 cxx)
9609 # Compaq C++
9610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9611 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'
9612
9613 runpath_var=LD_RUN_PATH
9614 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9615 hardcode_libdir_separator_CXX=:
9616
9617 # Commands to make compiler produce verbose output that lists
9618 # what "hidden" libraries, object files and flags are used when
9619 # linking a shared library.
9620 #
9621 # There doesn't appear to be a way to prevent this compiler from
9622 # explicitly linking system object files so we need to strip them
9623 # from the output so that they don't get included in the library
9624 # dependencies.
9625 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'
9626 ;;
9627 esac
9628 ;;
9629 lynxos*)
9630 # FIXME: insert proper C++ library support
9631 ld_shlibs_CXX=no
9632 ;;
9633 m88k*)
9634 # FIXME: insert proper C++ library support
9635 ld_shlibs_CXX=no
9636 ;;
9637 mvs*)
9638 case $cc_basename in
9639 cxx)
9640 # FIXME: insert proper C++ library support
9641 ld_shlibs_CXX=no
9642 ;;
9643 *)
9644 # FIXME: insert proper C++ library support
9645 ld_shlibs_CXX=no
9646 ;;
9647 esac
9648 ;;
9649 netbsd* | knetbsd*-gnu)
9650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9651 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9652 wlarc=
9653 hardcode_libdir_flag_spec_CXX='-R$libdir'
9654 hardcode_direct_CXX=yes
9655 hardcode_shlibpath_var_CXX=no
9656 fi
9657 # Workaround some broken pre-1.5 toolchains
9658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9659 ;;
9660 osf3*)
9661 case $cc_basename in
9662 KCC)
9663 # Kuck and Associates, Inc. (KAI) C++ Compiler
9664
9665 # KCC will only create a shared library if the output file
9666 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9667 # to its proper name (with version) after linking.
9668 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9669
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9671 hardcode_libdir_separator_CXX=:
9672
9673 # Archives containing C++ object files must be created using
9674 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9675 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9676
9677 ;;
9678 RCC)
9679 # Rational C++ 2.4.1
9680 # FIXME: insert proper C++ library support
9681 ld_shlibs_CXX=no
9682 ;;
9683 cxx)
9684 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9685 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'
9686
9687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9688 hardcode_libdir_separator_CXX=:
9689
9690 # Commands to make compiler produce verbose output that lists
9691 # what "hidden" libraries, object files and flags are used when
9692 # linking a shared library.
9693 #
9694 # There doesn't appear to be a way to prevent this compiler from
9695 # explicitly linking system object files so we need to strip them
9696 # from the output so that they don't get included in the library
9697 # dependencies.
9698 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'
9699 ;;
9700 *)
9701 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9702 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9703 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'
9704
9705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9706 hardcode_libdir_separator_CXX=:
9707
9708 # Commands to make compiler produce verbose output that lists
9709 # what "hidden" libraries, object files and flags are used when
9710 # linking a shared library.
9711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9712
9713 else
9714 # FIXME: insert proper C++ library support
9715 ld_shlibs_CXX=no
9716 fi
9717 ;;
9718 esac
9719 ;;
9720 osf4* | osf5*)
9721 case $cc_basename in
9722 KCC)
9723 # Kuck and Associates, Inc. (KAI) C++ Compiler
9724
9725 # KCC will only create a shared library if the output file
9726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9727 # to its proper name (with version) after linking.
9728 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'
9729
9730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9731 hardcode_libdir_separator_CXX=:
9732
9733 # Archives containing C++ object files must be created using
9734 # the KAI C++ compiler.
9735 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9736 ;;
9737 RCC)
9738 # Rational C++ 2.4.1
9739 # FIXME: insert proper C++ library support
9740 ld_shlibs_CXX=no
9741 ;;
9742 cxx)
9743 allow_undefined_flag_CXX=' -expect_unresolved \*'
9744 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'
9745 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9746 echo "-hidden">> $lib.exp~
9747 $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~
9748 $rm $lib.exp'
9749
9750 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9751 hardcode_libdir_separator_CXX=:
9752
9753 # Commands to make compiler produce verbose output that lists
9754 # what "hidden" libraries, object files and flags are used when
9755 # linking a shared library.
9756 #
9757 # There doesn't appear to be a way to prevent this compiler from
9758 # explicitly linking system object files so we need to strip them
9759 # from the output so that they don't get included in the library
9760 # dependencies.
9761 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'
9762 ;;
9763 *)
9764 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9765 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9766 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'
9767
9768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9769 hardcode_libdir_separator_CXX=:
9770
9771 # Commands to make compiler produce verbose output that lists
9772 # what "hidden" libraries, object files and flags are used when
9773 # linking a shared library.
9774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9775
9776 else
9777 # FIXME: insert proper C++ library support
9778 ld_shlibs_CXX=no
9779 fi
9780 ;;
9781 esac
9782 ;;
9783 psos*)
9784 # FIXME: insert proper C++ library support
9785 ld_shlibs_CXX=no
9786 ;;
9787 sco*)
9788 archive_cmds_need_lc_CXX=no
9789 case $cc_basename in
9790 CC)
9791 # FIXME: insert proper C++ library support
9792 ld_shlibs_CXX=no
9793 ;;
9794 *)
9795 # FIXME: insert proper C++ library support
9796 ld_shlibs_CXX=no
9797 ;;
9798 esac
9799 ;;
9800 sunos4*)
9801 case $cc_basename in
9802 CC)
9803 # Sun C++ 4.x
9804 # FIXME: insert proper C++ library support
9805 ld_shlibs_CXX=no
9806 ;;
9807 lcc)
9808 # Lucid
9809 # FIXME: insert proper C++ library support
9810 ld_shlibs_CXX=no
9811 ;;
9812 *)
9813 # FIXME: insert proper C++ library support
9814 ld_shlibs_CXX=no
9815 ;;
9816 esac
9817 ;;
9818 solaris*)
9819 case $cc_basename in
9820 CC)
9821 # Sun C++ 4.2, 5.x and Centerline C++
9822 no_undefined_flag_CXX=' -zdefs'
9823 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9824 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9825 $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'
9826
9827 hardcode_libdir_flag_spec_CXX='-R$libdir'
9828 hardcode_shlibpath_var_CXX=no
9829 case $host_os in
9830 solaris2.0-5 | solaris2.0-5.*) ;;
9831 *)
9832 # The C++ compiler is used as linker so we must use $wl
9833 # flag to pass the commands to the underlying system
9834 # linker.
9835 # Supported since Solaris 2.6 (maybe 2.5.1?)
9836 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9837 ;;
9838 esac
9839 link_all_deplibs_CXX=yes
9840
9841 # Commands to make compiler produce verbose output that lists
9842 # what "hidden" libraries, object files and flags are used when
9843 # linking a shared library.
9844 #
9845 # There doesn't appear to be a way to prevent this compiler from
9846 # explicitly linking system object files so we need to strip them
9847 # from the output so that they don't get included in the library
9848 # dependencies.
9849 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'
9850
9851 # Archives containing C++ object files must be created using
9852 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9853 # necessary to make sure instantiated templates are included
9854 # in the archive.
9855 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9856 ;;
9857 gcx)
9858 # Green Hills C++ Compiler
9859 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9860
9861 # The C++ compiler must be used to create the archive.
9862 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9863 ;;
9864 *)
9865 # GNU C++ compiler with Solaris linker
9866 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9867 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9868 if $CC --version | grep -v '^2\.7' > /dev/null; then
9869 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9870 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9871 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9872
9873 # Commands to make compiler produce verbose output that lists
9874 # what "hidden" libraries, object files and flags are used when
9875 # linking a shared library.
9876 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9877 else
9878 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9879 # platform.
9880 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9881 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9882 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9883
9884 # Commands to make compiler produce verbose output that lists
9885 # what "hidden" libraries, object files and flags are used when
9886 # linking a shared library.
9887 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9888 fi
9889
9890 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9891 fi
9892 ;;
9893 esac
9894 ;;
9895 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9896 archive_cmds_need_lc_CXX=no
9897 ;;
9898 tandem*)
9899 case $cc_basename in
9900 NCC)
9901 # NonStop-UX NCC 3.20
9902 # FIXME: insert proper C++ library support
9903 ld_shlibs_CXX=no
9904 ;;
9905 *)
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 esac
9910 ;;
9911 vxworks*)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 *)
9916 # FIXME: insert proper C++ library support
9917 ld_shlibs_CXX=no
9918 ;;
9919esac
9920echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9921echo "${ECHO_T}$ld_shlibs_CXX" >&6
9922test "$ld_shlibs_CXX" = no && can_build_shared=no
9923
9924GCC_CXX="$GXX"
9925LD_CXX="$LD"
9926
9927
9928cat > conftest.$ac_ext <<EOF
9929class Foo
9930{
9931public:
9932 Foo (void) { a = 0; }
9933private:
9934 int a;
9935};
9936EOF
9937
9938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939 (eval $ac_compile) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; then
9943 # Parse the compiler output and extract the necessary
9944 # objects, libraries and library flags.
9945
9946 # Sentinel used to keep track of whether or not we are before
9947 # the conftest object file.
9948 pre_test_object_deps_done=no
9949
9950 # The `*' in the case matches for architectures that use `case' in
9951 # $output_verbose_cmd can trigger glob expansion during the loop
9952 # eval without this substitution.
9953 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9954
9955 for p in `eval $output_verbose_link_cmd`; do
9956 case $p in
9957
9958 -L* | -R* | -l*)
9959 # Some compilers place space between "-{L,R}" and the path.
9960 # Remove the space.
9961 if test $p = "-L" \
9962 || test $p = "-R"; then
9963 prev=$p
9964 continue
9965 else
9966 prev=
9967 fi
9968
9969 if test "$pre_test_object_deps_done" = no; then
9970 case $p in
9971 -L* | -R*)
9972 # Internal compiler library paths should come after those
9973 # provided the user. The postdeps already come after the
9974 # user supplied libs so there is no need to process them.
9975 if test -z "$compiler_lib_search_path_CXX"; then
9976 compiler_lib_search_path_CXX="${prev}${p}"
9977 else
9978 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9979 fi
9980 ;;
9981 # The "-l" case would never come before the object being
9982 # linked, so don't bother handling this case.
9983 esac
9984 else
9985 if test -z "$postdeps_CXX"; then
9986 postdeps_CXX="${prev}${p}"
9987 else
9988 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9989 fi
9990 fi
9991 ;;
9992
9993 *.$objext)
9994 # This assumes that the test object file only shows up
9995 # once in the compiler output.
9996 if test "$p" = "conftest.$objext"; then
9997 pre_test_object_deps_done=yes
9998 continue
9999 fi
10000
10001 if test "$pre_test_object_deps_done" = no; then
10002 if test -z "$predep_objects_CXX"; then
10003 predep_objects_CXX="$p"
10004 else
10005 predep_objects_CXX="$predep_objects_CXX $p"
10006 fi
10007 else
10008 if test -z "$postdep_objects_CXX"; then
10009 postdep_objects_CXX="$p"
10010 else
10011 postdep_objects_CXX="$postdep_objects_CXX $p"
10012 fi
10013 fi
10014 ;;
10015
10016 *) ;; # Ignore the rest.
10017
10018 esac
10019 done
10020
10021 # Clean up.
10022 rm -f a.out a.exe
10023else
10024 echo "libtool.m4: error: problem compiling CXX test program"
10025fi
10026
10027$rm -f confest.$objext
10028
10029case " $postdeps_CXX " in
10030*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10031esac
10032
10033lt_prog_compiler_wl_CXX=
10034lt_prog_compiler_pic_CXX=
10035lt_prog_compiler_static_CXX=
10036
10037echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10038echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10039
10040 # C++ specific cases for pic, static, wl, etc.
10041 if test "$GXX" = yes; then
10042 lt_prog_compiler_wl_CXX='-Wl,'
10043 lt_prog_compiler_static_CXX='-static'
10044
10045 case $host_os in
10046 aix*)
10047 # All AIX code is PIC.
10048 if test "$host_cpu" = ia64; then
10049 # AIX 5 now supports IA64 processor
10050 lt_prog_compiler_static_CXX='-Bstatic'
10051 fi
10052 ;;
10053 amigaos*)
10054 # FIXME: we need at least 68020 code to build shared libraries, but
10055 # adding the `-m68020' flag to GCC prevents building anything better,
10056 # like `-m68040'.
10057 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10058 ;;
10059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10060 # PIC is the default for these OSes.
10061 ;;
10062 mingw* | os2* | pw32*)
10063 # This hack is so that the source file can tell whether it is being
10064 # built for inclusion in a dll (and should export symbols for example).
10065 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10066 ;;
10067 darwin* | rhapsody*)
10068 # PIC is the default on this platform
10069 # Common symbols not allowed in MH_DYLIB files
10070 lt_prog_compiler_pic_CXX='-fno-common'
10071 ;;
10072 *djgpp*)
10073 # DJGPP does not support shared libraries at all
10074 lt_prog_compiler_pic_CXX=
10075 ;;
10076 sysv4*MP*)
10077 if test -d /usr/nec; then
10078 lt_prog_compiler_pic_CXX=-Kconform_pic
10079 fi
10080 ;;
10081 hpux*)
10082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10083 # not for PA HP-UX.
10084 case "$host_cpu" in
10085 hppa*64*|ia64*)
10086 ;;
10087 *)
10088 lt_prog_compiler_pic_CXX='-fPIC'
10089 ;;
10090 esac
10091 ;;
10092 *)
10093 lt_prog_compiler_pic_CXX='-fPIC'
10094 ;;
10095 esac
10096 else
10097 case $host_os in
10098 aix4* | aix5*)
10099 # All AIX code is PIC.
10100 if test "$host_cpu" = ia64; then
10101 # AIX 5 now supports IA64 processor
10102 lt_prog_compiler_static_CXX='-Bstatic'
10103 else
10104 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10105 fi
10106 ;;
10107 chorus*)
10108 case $cc_basename in
10109 cxch68)
10110 # Green Hills C++ Compiler
10111 # _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"
10112 ;;
10113 esac
10114 ;;
10115 dgux*)
10116 case $cc_basename in
10117 ec++)
10118 lt_prog_compiler_pic_CXX='-KPIC'
10119 ;;
10120 ghcx)
10121 # Green Hills C++ Compiler
10122 lt_prog_compiler_pic_CXX='-pic'
10123 ;;
10124 *)
10125 ;;
10126 esac
10127 ;;
10128 freebsd* | kfreebsd*-gnu)
10129 # FreeBSD uses GNU C++
10130 ;;
10131 hpux9* | hpux10* | hpux11*)
10132 case $cc_basename in
10133 CC)
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 if test "$host_cpu" != ia64; then
10137 lt_prog_compiler_pic_CXX='+Z'
10138 fi
10139 ;;
10140 aCC)
10141 lt_prog_compiler_wl_CXX='-Wl,'
10142 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10143 case "$host_cpu" in
10144 hppa*64*|ia64*)
10145 # +Z the default
10146 ;;
10147 *)
10148 lt_prog_compiler_pic_CXX='+Z'
10149 ;;
10150 esac
10151 ;;
10152 *)
10153 ;;
10154 esac
10155 ;;
10156 irix5* | irix6* | nonstopux*)
10157 case $cc_basename in
10158 CC)
10159 lt_prog_compiler_wl_CXX='-Wl,'
10160 lt_prog_compiler_static_CXX='-non_shared'
10161 # CC pic flag -KPIC is the default.
10162 ;;
10163 *)
10164 ;;
10165 esac
10166 ;;
10167 linux*)
10168 case $cc_basename in
10169 KCC)
10170 # KAI C++ Compiler
10171 lt_prog_compiler_wl_CXX='--backend -Wl,'
10172 lt_prog_compiler_pic_CXX='-fPIC'
10173 ;;
10174 icpc)
10175 # Intel C++
10176 lt_prog_compiler_wl_CXX='-Wl,'
10177 lt_prog_compiler_pic_CXX='-KPIC'
10178 lt_prog_compiler_static_CXX='-static'
10179 ;;
10180 cxx)
10181 # Compaq C++
10182 # Make sure the PIC flag is empty. It appears that all Alpha
10183 # Linux and Compaq Tru64 Unix objects are PIC.
10184 lt_prog_compiler_pic_CXX=
10185 lt_prog_compiler_static_CXX='-non_shared'
10186 ;;
10187 *)
10188 ;;
10189 esac
10190 ;;
10191 lynxos*)
10192 ;;
10193 m88k*)
10194 ;;
10195 mvs*)
10196 case $cc_basename in
10197 cxx)
10198 lt_prog_compiler_pic_CXX='-W c,exportall'
10199 ;;
10200 *)
10201 ;;
10202 esac
10203 ;;
10204 netbsd* | knetbsd*-gnu)
10205 ;;
10206 osf3* | osf4* | osf5*)
10207 case $cc_basename in
10208 KCC)
10209 lt_prog_compiler_wl_CXX='--backend -Wl,'
10210 ;;
10211 RCC)
10212 # Rational C++ 2.4.1
10213 lt_prog_compiler_pic_CXX='-pic'
10214 ;;
10215 cxx)
10216 # Digital/Compaq C++
10217 lt_prog_compiler_wl_CXX='-Wl,'
10218 # Make sure the PIC flag is empty. It appears that all Alpha
10219 # Linux and Compaq Tru64 Unix objects are PIC.
10220 lt_prog_compiler_pic_CXX=
10221 lt_prog_compiler_static_CXX='-non_shared'
10222 ;;
10223 *)
10224 ;;
10225 esac
10226 ;;
10227 psos*)
10228 ;;
10229 sco*)
10230 case $cc_basename in
10231 CC)
10232 lt_prog_compiler_pic_CXX='-fPIC'
10233 ;;
10234 *)
10235 ;;
10236 esac
10237 ;;
10238 solaris*)
10239 case $cc_basename in
10240 CC)
10241 # Sun C++ 4.2, 5.x and Centerline C++
10242 lt_prog_compiler_pic_CXX='-KPIC'
10243 lt_prog_compiler_static_CXX='-Bstatic'
10244 lt_prog_compiler_wl_CXX='-Qoption ld '
10245 ;;
10246 gcx)
10247 # Green Hills C++ Compiler
10248 lt_prog_compiler_pic_CXX='-PIC'
10249 ;;
10250 *)
10251 ;;
10252 esac
10253 ;;
10254 sunos4*)
10255 case $cc_basename in
10256 CC)
10257 # Sun C++ 4.x
10258 lt_prog_compiler_pic_CXX='-pic'
10259 lt_prog_compiler_static_CXX='-Bstatic'
10260 ;;
10261 lcc)
10262 # Lucid
10263 lt_prog_compiler_pic_CXX='-pic'
10264 ;;
10265 *)
10266 ;;
10267 esac
10268 ;;
10269 tandem*)
10270 case $cc_basename in
10271 NCC)
10272 # NonStop-UX NCC 3.20
10273 lt_prog_compiler_pic_CXX='-KPIC'
10274 ;;
10275 *)
10276 ;;
10277 esac
10278 ;;
10279 unixware*)
10280 ;;
10281 vxworks*)
10282 ;;
10283 *)
10284 lt_prog_compiler_can_build_shared_CXX=no
10285 ;;
10286 esac
10287 fi
10288
10289echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10290echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10291
10292#
10293# Check to make sure the PIC flag actually works.
10294#
10295if test -n "$lt_prog_compiler_pic_CXX"; then
10296
10297echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10299if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 lt_prog_compiler_pic_works_CXX=no
10303 ac_outfile=conftest.$ac_objext
10304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10305 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10306 # Insert the option either (1) after the last *FLAGS variable, or
10307 # (2) before a word containing "conftest.", or (3) at the end.
10308 # Note that $ac_compile itself does not contain backslashes and begins
10309 # with a dollar sign (not a hyphen), so the echo should work correctly.
10310 # The option is referenced via a variable to avoid confusing sed.
10311 lt_compile=`echo "$ac_compile" | $SED \
10312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000010315 (eval echo "\"\$as_me:10315: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010316 (eval "$lt_compile" 2>conftest.err)
10317 ac_status=$?
10318 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000010319 echo "$as_me:10319: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010320 if (exit $ac_status) && test -s "$ac_outfile"; then
10321 # The compiler can only warn and ignore the option if not recognized
10322 # So say no if there are warnings
10323 if test ! -s conftest.err; then
10324 lt_prog_compiler_pic_works_CXX=yes
10325 fi
10326 fi
10327 $rm conftest*
10328
10329fi
10330echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10331echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10332
10333if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10334 case $lt_prog_compiler_pic_CXX in
10335 "" | " "*) ;;
10336 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10337 esac
10338else
10339 lt_prog_compiler_pic_CXX=
10340 lt_prog_compiler_can_build_shared_CXX=no
10341fi
10342
10343fi
10344case "$host_os" in
10345 # For platforms which do not support PIC, -DPIC is meaningless:
10346 *djgpp*)
10347 lt_prog_compiler_pic_CXX=
10348 ;;
10349 *)
10350 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10351 ;;
10352esac
10353
10354echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10355echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10356if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 lt_cv_prog_compiler_c_o_CXX=no
10360 $rm -r conftest 2>/dev/null
10361 mkdir conftest
10362 cd conftest
10363 mkdir out
10364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10365
10366 lt_compiler_flag="-o out/conftest2.$ac_objext"
10367 # Insert the option either (1) after the last *FLAGS variable, or
10368 # (2) before a word containing "conftest.", or (3) at the end.
10369 # Note that $ac_compile itself does not contain backslashes and begins
10370 # with a dollar sign (not a hyphen), so the echo should work correctly.
10371 lt_compile=`echo "$ac_compile" | $SED \
10372 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000010375 (eval echo "\"\$as_me:10375: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010376 (eval "$lt_compile" 2>out/conftest.err)
10377 ac_status=$?
10378 cat out/conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000010379 echo "$as_me:10379: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10381 then
10382 # The compiler can only warn and ignore the option if not recognized
10383 # So say no if there are warnings
10384 if test ! -s out/conftest.err; then
10385 lt_cv_prog_compiler_c_o_CXX=yes
10386 fi
10387 fi
10388 chmod u+w .
10389 $rm conftest*
10390 # SGI C++ compiler will create directory out/ii_files/ for
10391 # template instantiation
10392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10393 $rm out/* && rmdir out
10394 cd ..
10395 rmdir conftest
10396 $rm conftest*
10397
10398fi
10399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10400echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10401
10402
10403hard_links="nottested"
10404if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10405 # do not overwrite the value of need_locks provided by the user
10406 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10408 hard_links=yes
10409 $rm conftest*
10410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10411 touch conftest.a
10412 ln conftest.a conftest.b 2>&5 || hard_links=no
10413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10414 echo "$as_me:$LINENO: result: $hard_links" >&5
10415echo "${ECHO_T}$hard_links" >&6
10416 if test "$hard_links" = no; then
10417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10419 need_locks=warn
10420 fi
10421else
10422 need_locks=no
10423fi
10424
10425echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10427
10428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10429 case $host_os in
10430 aix4* | aix5*)
10431 # If we're using GNU nm, then we don't want the "-C" option.
10432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10433 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10434 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'
10435 else
10436 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'
10437 fi
10438 ;;
10439 pw32*)
10440 export_symbols_cmds_CXX="$ltdll_cmds"
10441 ;;
10442 cygwin* | mingw*)
10443 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10444 ;;
10445 *)
10446 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10447 ;;
10448 esac
10449
10450echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10451echo "${ECHO_T}$ld_shlibs_CXX" >&6
10452test "$ld_shlibs_CXX" = no && can_build_shared=no
10453
10454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10455if test "$GCC" = yes; then
10456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10457fi
10458
10459#
10460# Do we need to explicitly link libc?
10461#
10462case "x$archive_cmds_need_lc_CXX" in
10463x|xyes)
10464 # Assume -lc should be added
10465 archive_cmds_need_lc_CXX=yes
10466
10467 if test "$enable_shared" = yes && test "$GCC" = yes; then
10468 case $archive_cmds_CXX in
10469 *'~'*)
10470 # FIXME: we may have to deal with multi-command sequences.
10471 ;;
10472 '$CC '*)
10473 # Test whether the compiler implicitly links with -lc since on some
10474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10475 # to ld, don't add -lc before -lgcc.
10476 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10477echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10478 $rm conftest*
10479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } 2>conftest.err; then
10486 soname=conftest
10487 lib=conftest
10488 libobjs=conftest.$ac_objext
10489 deplibs=
10490 wl=$lt_prog_compiler_wl_CXX
10491 compiler_flags=-v
10492 linker_flags=-v
10493 verstring=
10494 output_objdir=.
10495 libname=conftest
10496 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10497 allow_undefined_flag_CXX=
10498 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10499 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }
10503 then
10504 archive_cmds_need_lc_CXX=no
10505 else
10506 archive_cmds_need_lc_CXX=yes
10507 fi
10508 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10509 else
10510 cat conftest.err 1>&5
10511 fi
10512 $rm conftest*
10513 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10514echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10515 ;;
10516 esac
10517 fi
10518 ;;
10519esac
10520
10521echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10522echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10523library_names_spec=
10524libname_spec='lib$name'
10525soname_spec=
10526shrext=".so"
10527postinstall_cmds=
10528postuninstall_cmds=
10529finish_cmds=
10530finish_eval=
10531shlibpath_var=
10532shlibpath_overrides_runpath=unknown
10533version_type=none
10534dynamic_linker="$host_os ld.so"
10535sys_lib_dlsearch_path_spec="/lib /usr/lib"
10536if test "$GCC" = yes; then
10537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10538 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10539 # if the path contains ";" then we assume it to be the separator
10540 # otherwise default to the standard path separator (i.e. ":") - it is
10541 # assumed that no part of a normal pathname contains ";" but that should
10542 # okay in the real world where ";" in dirpaths is itself problematic.
10543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10544 else
10545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10546 fi
10547else
10548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10549fi
10550need_lib_prefix=unknown
10551hardcode_into_libs=no
10552
10553# when you set need_version to no, make sure it does not cause -set_version
10554# flags to be left without arguments
10555need_version=unknown
10556
10557case $host_os in
10558aix3*)
10559 version_type=linux
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10561 shlibpath_var=LIBPATH
10562
10563 # AIX 3 has no versioning support, so we append a major version to the name.
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 ;;
10566
10567aix4* | aix5*)
10568 version_type=linux
10569 need_lib_prefix=no
10570 need_version=no
10571 hardcode_into_libs=yes
10572 if test "$host_cpu" = ia64; then
10573 # AIX 5 supports IA64
10574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 else
10577 # With GCC up to 2.95.x, collect2 would create an import file
10578 # for dependence libraries. The import file would start with
10579 # the line `#! .'. This would cause the generated library to
10580 # depend on `.', always an invalid library. This was fixed in
10581 # development snapshots of GCC prior to 3.0.
10582 case $host_os in
10583 aix4 | aix4.[01] | aix4.[01].*)
10584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10585 echo ' yes '
10586 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10587 :
10588 else
10589 can_build_shared=no
10590 fi
10591 ;;
10592 esac
10593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10594 # soname into executable. Probably we can add versioning support to
10595 # collect2, so additional links can be useful in future.
10596 if test "$aix_use_runtimelinking" = yes; then
10597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10598 # instead of lib<name>.a to let people know that these are not
10599 # typical AIX shared libraries.
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 else
10602 # We preserve .a as extension for shared libraries through AIX4.2
10603 # and later when we are not doing run time linking.
10604 library_names_spec='${libname}${release}.a $libname.a'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 fi
10607 shlibpath_var=LIBPATH
10608 fi
10609 ;;
10610
10611amigaos*)
10612 library_names_spec='$libname.ixlibrary $libname.a'
10613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10614 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'
10615 ;;
10616
10617beos*)
10618 library_names_spec='${libname}${shared_ext}'
10619 dynamic_linker="$host_os ld.so"
10620 shlibpath_var=LIBRARY_PATH
10621 ;;
10622
10623bsdi4*)
10624 version_type=linux
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10632 # the default ld.so.conf also contains /usr/contrib/lib and
10633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10634 # libtool to hard-code these into programs
10635 ;;
10636
10637cygwin* | mingw* | pw32*)
10638 version_type=windows
10639 shrext=".dll"
10640 need_version=no
10641 need_lib_prefix=no
10642
10643 case $GCC,$host_os in
10644 yes,cygwin* | yes,mingw* | yes,pw32*)
10645 library_names_spec='$libname.dll.a'
10646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647 postinstall_cmds='base_file=`basename \${file}`~
10648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10649 dldir=$destdir/`dirname \$dlpath`~
10650 test -d \$dldir || mkdir -p \$dldir~
10651 $install_prog $dir/$dlname \$dldir/$dlname'
10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653 dlpath=$dir/\$dldll~
10654 $rm \$dlpath'
10655 shlibpath_overrides_runpath=yes
10656
10657 case $host_os in
10658 cygwin*)
10659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10662 ;;
10663 mingw*)
10664 # MinGW DLLs use traditional 'lib' prefix
10665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10668 # It is most probably a Windows format PATH printed by
10669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10670 # path with ; separators, and with drive letters. We can handle the
10671 # drive letters (cygwin fileutils understands them), so leave them,
10672 # especially as we might pass files found there to a mingw objdump,
10673 # which wouldn't understand a cygwinified path. Ahh.
10674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10675 else
10676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10677 fi
10678 ;;
10679 pw32*)
10680 # pw32 DLLs use 'pw' prefix rather than 'lib'
10681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10682 ;;
10683 esac
10684 ;;
10685
10686 *)
10687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10688 ;;
10689 esac
10690 dynamic_linker='Win32 ld.exe'
10691 # FIXME: first we should search . and the directory the executable is in
10692 shlibpath_var=PATH
10693 ;;
10694
10695darwin* | rhapsody*)
10696 dynamic_linker="$host_os dyld"
10697 version_type=darwin
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10701 soname_spec='${libname}${release}${major}$shared_ext'
10702 shlibpath_overrides_runpath=yes
10703 shlibpath_var=DYLD_LIBRARY_PATH
10704 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10706 if test "$GCC" = yes; then
10707 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"`
10708 else
10709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10710 fi
10711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10712 ;;
10713
10714dgux*)
10715 version_type=linux
10716 need_lib_prefix=no
10717 need_version=no
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 ;;
10722
10723freebsd1*)
10724 dynamic_linker=no
10725 ;;
10726
10727kfreebsd*-gnu)
10728 version_type=linux
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=no
10735 hardcode_into_libs=yes
10736 dynamic_linker='GNU ld.so'
10737 ;;
10738
10739freebsd*)
10740 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10741 version_type=freebsd-$objformat
10742 case $version_type in
10743 freebsd-elf*)
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10745 need_version=no
10746 need_lib_prefix=no
10747 ;;
10748 freebsd-*)
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10750 need_version=yes
10751 ;;
10752 esac
10753 shlibpath_var=LD_LIBRARY_PATH
10754 case $host_os in
10755 freebsd2*)
10756 shlibpath_overrides_runpath=yes
10757 ;;
10758 freebsd3.01* | freebsdelf3.01*)
10759 shlibpath_overrides_runpath=yes
10760 hardcode_into_libs=yes
10761 ;;
10762 *) # from 3.2 on
10763 shlibpath_overrides_runpath=no
10764 hardcode_into_libs=yes
10765 ;;
10766 esac
10767 ;;
10768
10769gnu*)
10770 version_type=linux
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 hardcode_into_libs=yes
10777 ;;
10778
10779hpux9* | hpux10* | hpux11*)
10780 # Give a soname corresponding to the major version so that dld.sl refuses to
10781 # link against other versions.
10782 version_type=sunos
10783 need_lib_prefix=no
10784 need_version=no
10785 case "$host_cpu" in
10786 ia64*)
10787 shrext='.so'
10788 hardcode_into_libs=yes
10789 dynamic_linker="$host_os dld.so"
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 if test "X$HPUX_IA64_MODE" = X32; then
10795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10796 else
10797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10798 fi
10799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10800 ;;
10801 hppa*64*)
10802 shrext='.sl'
10803 hardcode_into_libs=yes
10804 dynamic_linker="$host_os dld.sl"
10805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10811 ;;
10812 *)
10813 shrext='.sl'
10814 dynamic_linker="$host_os dld.sl"
10815 shlibpath_var=SHLIB_PATH
10816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 ;;
10820 esac
10821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10822 postinstall_cmds='chmod 555 $lib'
10823 ;;
10824
10825irix5* | irix6* | nonstopux*)
10826 case $host_os in
10827 nonstopux*) version_type=nonstopux ;;
10828 *)
10829 if test "$lt_cv_prog_gnu_ld" = yes; then
10830 version_type=linux
10831 else
10832 version_type=irix
10833 fi ;;
10834 esac
10835 need_lib_prefix=no
10836 need_version=no
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10839 case $host_os in
10840 irix5* | nonstopux*)
10841 libsuff= shlibsuff=
10842 ;;
10843 *)
10844 case $LD in # libtool.m4 will add one of these switches to LD
10845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10846 libsuff= shlibsuff= libmagic=32-bit;;
10847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10848 libsuff=32 shlibsuff=N32 libmagic=N32;;
10849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10851 *) libsuff= shlibsuff= libmagic=never-match;;
10852 esac
10853 ;;
10854 esac
10855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10856 shlibpath_overrides_runpath=no
10857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10859 hardcode_into_libs=yes
10860 ;;
10861
10862# No shared lib support for Linux oldld, aout, or coff.
10863linux*oldld* | linux*aout* | linux*coff*)
10864 dynamic_linker=no
10865 ;;
10866
10867# This must be Linux ELF.
10868linux*)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=no
10877 # This implies no fast_install, which is unacceptable.
10878 # Some rework will be needed to allow for fast_install
10879 # before this can be enabled.
10880 hardcode_into_libs=yes
10881
10882 # Append ld.so.conf contents to the search path
10883 if test -f /etc/ld.so.conf; then
10884 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10885 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10886 fi
10887
10888 # We used to test for /lib/ld.so.1 and disable shared libraries on
10889 # powerpc, because MkLinux only supported shared libraries with the
10890 # GNU dynamic linker. Since this was broken with cross compilers,
10891 # most powerpc-linux boxes support dynamic linking these days and
10892 # people can always --disable-shared, the test was removed, and we
10893 # assume the GNU/Linux dynamic linker is in use.
10894 dynamic_linker='GNU/Linux ld.so'
10895 ;;
10896
10897knetbsd*-gnu)
10898 version_type=linux
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=no
10905 hardcode_into_libs=yes
10906 dynamic_linker='GNU ld.so'
10907 ;;
10908
10909netbsd*)
10910 version_type=sunos
10911 need_lib_prefix=no
10912 need_version=no
10913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916 dynamic_linker='NetBSD (a.out) ld.so'
10917 else
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 dynamic_linker='NetBSD ld.elf_so'
10921 fi
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 hardcode_into_libs=yes
10925 ;;
10926
10927newsos6)
10928 version_type=linux
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 ;;
10933
10934nto-qnx*)
10935 version_type=linux
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 ;;
10943
10944openbsd*)
10945 version_type=sunos
10946 need_lib_prefix=no
10947 need_version=yes
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10952 case $host_os in
10953 openbsd2.[89] | openbsd2.[89].*)
10954 shlibpath_overrides_runpath=no
10955 ;;
10956 *)
10957 shlibpath_overrides_runpath=yes
10958 ;;
10959 esac
10960 else
10961 shlibpath_overrides_runpath=yes
10962 fi
10963 ;;
10964
10965os2*)
10966 libname_spec='$name'
10967 shrext=".dll"
10968 need_lib_prefix=no
10969 library_names_spec='$libname${shared_ext} $libname.a'
10970 dynamic_linker='OS/2 ld.exe'
10971 shlibpath_var=LIBPATH
10972 ;;
10973
10974osf3* | osf4* | osf5*)
10975 version_type=osf
10976 need_lib_prefix=no
10977 need_version=no
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10983 ;;
10984
10985sco3.2v5*)
10986 version_type=osf
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 ;;
10991
10992solaris*)
10993 version_type=linux
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11000 hardcode_into_libs=yes
11001 # ldd complains unless libraries are executable
11002 postinstall_cmds='chmod +x $lib'
11003 ;;
11004
11005sunos4*)
11006 version_type=sunos
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=yes
11011 if test "$with_gnu_ld" = yes; then
11012 need_lib_prefix=no
11013 fi
11014 need_version=yes
11015 ;;
11016
11017sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11018 version_type=linux
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 case $host_vendor in
11023 sni)
11024 shlibpath_overrides_runpath=no
11025 need_lib_prefix=no
11026 export_dynamic_flag_spec='${wl}-Blargedynsym'
11027 runpath_var=LD_RUN_PATH
11028 ;;
11029 siemens)
11030 need_lib_prefix=no
11031 ;;
11032 motorola)
11033 need_lib_prefix=no
11034 need_version=no
11035 shlibpath_overrides_runpath=no
11036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11037 ;;
11038 esac
11039 ;;
11040
11041sysv4*MP*)
11042 if test -d /usr/nec ;then
11043 version_type=linux
11044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11045 soname_spec='$libname${shared_ext}.$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 fi
11048 ;;
11049
11050uts4*)
11051 version_type=linux
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 ;;
11056
11057*)
11058 dynamic_linker=no
11059 ;;
11060esac
11061echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11062echo "${ECHO_T}$dynamic_linker" >&6
11063test "$dynamic_linker" = no && can_build_shared=no
11064
11065echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11066echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11067hardcode_action_CXX=
11068if test -n "$hardcode_libdir_flag_spec_CXX" || \
11069 test -n "$runpath_var CXX" || \
11070 test "X$hardcode_automatic_CXX"="Xyes" ; then
11071
11072 # We can hardcode non-existant directories.
11073 if test "$hardcode_direct_CXX" != no &&
11074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11075 # have to relink, otherwise we might link with an installed library
11076 # when we should be linking with a yet-to-be-installed one
11077 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11078 test "$hardcode_minus_L_CXX" != no; then
11079 # Linking always hardcodes the temporary library directory.
11080 hardcode_action_CXX=relink
11081 else
11082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11083 hardcode_action_CXX=immediate
11084 fi
11085else
11086 # We cannot hardcode anything, or else we can only hardcode existing
11087 # directories.
11088 hardcode_action_CXX=unsupported
11089fi
11090echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11091echo "${ECHO_T}$hardcode_action_CXX" >&6
11092
11093if test "$hardcode_action_CXX" = relink; then
11094 # Fast installation is not supported
11095 enable_fast_install=no
11096elif test "$shlibpath_overrides_runpath" = yes ||
11097 test "$enable_shared" = no; then
11098 # Fast installation is not necessary
11099 enable_fast_install=needless
11100fi
11101
11102striplib=
11103old_striplib=
11104echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11105echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11106if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11109 echo "$as_me:$LINENO: result: yes" >&5
11110echo "${ECHO_T}yes" >&6
11111else
11112# FIXME - insert some real tests, host_os isn't really good enough
11113 case $host_os in
11114 darwin*)
11115 if test -n "$STRIP" ; then
11116 striplib="$STRIP -x"
11117 echo "$as_me:$LINENO: result: yes" >&5
11118echo "${ECHO_T}yes" >&6
11119 else
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
11122fi
11123 ;;
11124 *)
11125 echo "$as_me:$LINENO: result: no" >&5
11126echo "${ECHO_T}no" >&6
11127 ;;
11128 esac
11129fi
11130
11131if test "x$enable_dlopen" != xyes; then
11132 enable_dlopen=unknown
11133 enable_dlopen_self=unknown
11134 enable_dlopen_self_static=unknown
11135else
11136 lt_cv_dlopen=no
11137 lt_cv_dlopen_libs=
11138
11139 case $host_os in
11140 beos*)
11141 lt_cv_dlopen="load_add_on"
11142 lt_cv_dlopen_libs=
11143 lt_cv_dlopen_self=yes
11144 ;;
11145
11146 mingw* | pw32*)
11147 lt_cv_dlopen="LoadLibrary"
11148 lt_cv_dlopen_libs=
11149 ;;
11150
11151 cygwin*)
11152 lt_cv_dlopen="dlopen"
11153 lt_cv_dlopen_libs=
11154 ;;
11155
11156 darwin*)
11157 # if libdl is installed we need to link against it
11158 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11159echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11160if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 ac_check_lib_save_LIBS=$LIBS
11164LIBS="-ldl $LIBS"
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
11171
11172/* Override any gcc2 internal prototype to avoid an error. */
11173#ifdef __cplusplus
11174extern "C"
11175#endif
11176/* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178char dlopen ();
11179int
11180main ()
11181{
11182dlopen ();
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187rm -f conftest.$ac_objext conftest$ac_exeext
11188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011196 { ac_try='test -z "$ac_cxx_werror_flag"
11197 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_lib_dl_dlopen=yes
11210else
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
11214ac_cv_lib_dl_dlopen=no
11215fi
11216rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218LIBS=$ac_check_lib_save_LIBS
11219fi
11220echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11221echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11222if test $ac_cv_lib_dl_dlopen = yes; then
11223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11224else
11225
11226 lt_cv_dlopen="dyld"
11227 lt_cv_dlopen_libs=
11228 lt_cv_dlopen_self=yes
11229
11230fi
11231
11232 ;;
11233
11234 *)
11235 echo "$as_me:$LINENO: checking for shl_load" >&5
11236echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11237if test "${ac_cv_func_shl_load+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248#define shl_load innocuous_shl_load
11249
11250/* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char shl_load (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11254
11255#ifdef __STDC__
11256# include <limits.h>
11257#else
11258# include <assert.h>
11259#endif
11260
11261#undef shl_load
11262
11263/* Override any gcc2 internal prototype to avoid an error. */
11264#ifdef __cplusplus
11265extern "C"
11266{
11267#endif
11268/* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270char shl_load ();
11271/* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274#if defined (__stub_shl_load) || defined (__stub___shl_load)
11275choke me
11276#else
11277char (*f) () = shl_load;
11278#endif
11279#ifdef __cplusplus
11280}
11281#endif
11282
11283int
11284main ()
11285{
11286return f != shl_load;
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
11292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011300 { ac_try='test -z "$ac_cxx_werror_flag"
11301 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_func_shl_load=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318ac_cv_func_shl_load=no
11319fi
11320rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322fi
11323echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11324echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11325if test $ac_cv_func_shl_load = yes; then
11326 lt_cv_dlopen="shl_load"
11327else
11328 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11329echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11330if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332else
11333 ac_check_lib_save_LIBS=$LIBS
11334LIBS="-ldld $LIBS"
11335cat >conftest.$ac_ext <<_ACEOF
11336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
11341
11342/* Override any gcc2 internal prototype to avoid an error. */
11343#ifdef __cplusplus
11344extern "C"
11345#endif
11346/* We use char because int might match the return type of a gcc2
11347 builtin and then its argument prototype would still apply. */
11348char shl_load ();
11349int
11350main ()
11351{
11352shl_load ();
11353 ;
11354 return 0;
11355}
11356_ACEOF
11357rm -f conftest.$ac_objext conftest$ac_exeext
11358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11359 (eval $ac_link) 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011366 { ac_try='test -z "$ac_cxx_werror_flag"
11367 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_lib_dld_shl_load=yes
11380else
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
11384ac_cv_lib_dld_shl_load=no
11385fi
11386rm -f conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext conftest.$ac_ext
11388LIBS=$ac_check_lib_save_LIBS
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11391echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11392if test $ac_cv_lib_dld_shl_load = yes; then
11393 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11394else
11395 echo "$as_me:$LINENO: checking for dlopen" >&5
11396echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11397if test "${ac_cv_func_dlopen+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11408#define dlopen innocuous_dlopen
11409
11410/* System header to define __stub macros and hopefully few prototypes,
11411 which can conflict with char dlopen (); below.
11412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413 <limits.h> exists even on freestanding compilers. */
11414
11415#ifdef __STDC__
11416# include <limits.h>
11417#else
11418# include <assert.h>
11419#endif
11420
11421#undef dlopen
11422
11423/* Override any gcc2 internal prototype to avoid an error. */
11424#ifdef __cplusplus
11425extern "C"
11426{
11427#endif
11428/* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
11430char dlopen ();
11431/* The GNU C library defines this for functions which it implements
11432 to always fail with ENOSYS. Some functions are actually named
11433 something starting with __ and the normal name is an alias. */
11434#if defined (__stub_dlopen) || defined (__stub___dlopen)
11435choke me
11436#else
11437char (*f) () = dlopen;
11438#endif
11439#ifdef __cplusplus
11440}
11441#endif
11442
11443int
11444main ()
11445{
11446return f != dlopen;
11447 ;
11448 return 0;
11449}
11450_ACEOF
11451rm -f conftest.$ac_objext conftest$ac_exeext
11452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011460 { ac_try='test -z "$ac_cxx_werror_flag"
11461 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_cv_func_dlopen=yes
11474else
11475 echo "$as_me: failed program was:" >&5
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
11478ac_cv_func_dlopen=no
11479fi
11480rm -f conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482fi
11483echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11484echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11485if test $ac_cv_func_dlopen = yes; then
11486 lt_cv_dlopen="dlopen"
11487else
11488 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11490if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 ac_check_lib_save_LIBS=$LIBS
11494LIBS="-ldl $LIBS"
11495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501
11502/* Override any gcc2 internal prototype to avoid an error. */
11503#ifdef __cplusplus
11504extern "C"
11505#endif
11506/* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */
11508char dlopen ();
11509int
11510main ()
11511{
11512dlopen ();
11513 ;
11514 return 0;
11515}
11516_ACEOF
11517rm -f conftest.$ac_objext conftest$ac_exeext
11518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11519 (eval $ac_link) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011526 { ac_try='test -z "$ac_cxx_werror_flag"
11527 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_cv_lib_dl_dlopen=yes
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544ac_cv_lib_dl_dlopen=no
11545fi
11546rm -f conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548LIBS=$ac_check_lib_save_LIBS
11549fi
11550echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11551echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11552if test $ac_cv_lib_dl_dlopen = yes; then
11553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11554else
11555 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11556echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11557if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559else
11560 ac_check_lib_save_LIBS=$LIBS
11561LIBS="-lsvld $LIBS"
11562cat >conftest.$ac_ext <<_ACEOF
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
11568
11569/* Override any gcc2 internal prototype to avoid an error. */
11570#ifdef __cplusplus
11571extern "C"
11572#endif
11573/* We use char because int might match the return type of a gcc2
11574 builtin and then its argument prototype would still apply. */
11575char dlopen ();
11576int
11577main ()
11578{
11579dlopen ();
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586 (eval $ac_link) 2>conftest.er1
11587 ac_status=$?
11588 grep -v '^ *+' conftest.er1 >conftest.err
11589 rm -f conftest.er1
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011593 { ac_try='test -z "$ac_cxx_werror_flag"
11594 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest$ac_exeext'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 ac_cv_lib_svld_dlopen=yes
11607else
11608 echo "$as_me: failed program was:" >&5
11609sed 's/^/| /' conftest.$ac_ext >&5
11610
11611ac_cv_lib_svld_dlopen=no
11612fi
11613rm -f conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615LIBS=$ac_check_lib_save_LIBS
11616fi
11617echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11618echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11619if test $ac_cv_lib_svld_dlopen = yes; then
11620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11621else
11622 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11623echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11624if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 ac_check_lib_save_LIBS=$LIBS
11628LIBS="-ldld $LIBS"
11629cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635
11636/* Override any gcc2 internal prototype to avoid an error. */
11637#ifdef __cplusplus
11638extern "C"
11639#endif
11640/* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642char dld_link ();
11643int
11644main ()
11645{
11646dld_link ();
11647 ;
11648 return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext conftest$ac_exeext
11652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011660 { ac_try='test -z "$ac_cxx_werror_flag"
11661 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_lib_dld_dld_link=yes
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678ac_cv_lib_dld_dld_link=no
11679fi
11680rm -f conftest.err conftest.$ac_objext \
11681 conftest$ac_exeext conftest.$ac_ext
11682LIBS=$ac_check_lib_save_LIBS
11683fi
11684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11685echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11686if test $ac_cv_lib_dld_dld_link = yes; then
11687 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702
11703fi
11704
11705 ;;
11706 esac
11707
11708 if test "x$lt_cv_dlopen" != xno; then
11709 enable_dlopen=yes
11710 else
11711 enable_dlopen=no
11712 fi
11713
11714 case $lt_cv_dlopen in
11715 dlopen)
11716 save_CPPFLAGS="$CPPFLAGS"
11717 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11718
11719 save_LDFLAGS="$LDFLAGS"
11720 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11721
11722 save_LIBS="$LIBS"
11723 LIBS="$lt_cv_dlopen_libs $LIBS"
11724
11725 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11726echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11727if test "${lt_cv_dlopen_self+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730 if test "$cross_compiling" = yes; then :
11731 lt_cv_dlopen_self=cross
11732else
11733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11734 lt_status=$lt_dlunknown
11735 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +000011736#line 11736 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011737#include "confdefs.h"
11738
11739#if HAVE_DLFCN_H
11740#include <dlfcn.h>
11741#endif
11742
11743#include <stdio.h>
11744
11745#ifdef RTLD_GLOBAL
11746# define LT_DLGLOBAL RTLD_GLOBAL
11747#else
11748# ifdef DL_GLOBAL
11749# define LT_DLGLOBAL DL_GLOBAL
11750# else
11751# define LT_DLGLOBAL 0
11752# endif
11753#endif
11754
11755/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11756 find out it does not work in some platform. */
11757#ifndef LT_DLLAZY_OR_NOW
11758# ifdef RTLD_LAZY
11759# define LT_DLLAZY_OR_NOW RTLD_LAZY
11760# else
11761# ifdef DL_LAZY
11762# define LT_DLLAZY_OR_NOW DL_LAZY
11763# else
11764# ifdef RTLD_NOW
11765# define LT_DLLAZY_OR_NOW RTLD_NOW
11766# else
11767# ifdef DL_NOW
11768# define LT_DLLAZY_OR_NOW DL_NOW
11769# else
11770# define LT_DLLAZY_OR_NOW 0
11771# endif
11772# endif
11773# endif
11774# endif
11775#endif
11776
11777#ifdef __cplusplus
11778extern "C" void exit (int);
11779#endif
11780
11781void fnord() { int i=42;}
11782int main ()
11783{
11784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11785 int status = $lt_dlunknown;
11786
11787 if (self)
11788 {
11789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 /* dlclose (self); */
11792 }
11793
11794 exit (status);
11795}
11796EOF
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) 2>/dev/null
11803 lt_status=$?
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11808 esac
11809 else :
11810 # compilation failed
11811 lt_cv_dlopen_self=no
11812 fi
11813fi
11814rm -fr conftest*
11815
11816
11817fi
11818echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11819echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11820
11821 if test "x$lt_cv_dlopen_self" = xyes; then
11822 LDFLAGS="$LDFLAGS $link_static_flag"
11823 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11824echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11825if test "${lt_cv_dlopen_self_static+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828 if test "$cross_compiling" = yes; then :
11829 lt_cv_dlopen_self_static=cross
11830else
11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832 lt_status=$lt_dlunknown
11833 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +000011834#line 11834 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011835#include "confdefs.h"
11836
11837#if HAVE_DLFCN_H
11838#include <dlfcn.h>
11839#endif
11840
11841#include <stdio.h>
11842
11843#ifdef RTLD_GLOBAL
11844# define LT_DLGLOBAL RTLD_GLOBAL
11845#else
11846# ifdef DL_GLOBAL
11847# define LT_DLGLOBAL DL_GLOBAL
11848# else
11849# define LT_DLGLOBAL 0
11850# endif
11851#endif
11852
11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854 find out it does not work in some platform. */
11855#ifndef LT_DLLAZY_OR_NOW
11856# ifdef RTLD_LAZY
11857# define LT_DLLAZY_OR_NOW RTLD_LAZY
11858# else
11859# ifdef DL_LAZY
11860# define LT_DLLAZY_OR_NOW DL_LAZY
11861# else
11862# ifdef RTLD_NOW
11863# define LT_DLLAZY_OR_NOW RTLD_NOW
11864# else
11865# ifdef DL_NOW
11866# define LT_DLLAZY_OR_NOW DL_NOW
11867# else
11868# define LT_DLLAZY_OR_NOW 0
11869# endif
11870# endif
11871# endif
11872# endif
11873#endif
11874
11875#ifdef __cplusplus
11876extern "C" void exit (int);
11877#endif
11878
11879void fnord() { int i=42;}
11880int main ()
11881{
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11884
11885 if (self)
11886 {
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 /* dlclose (self); */
11890 }
11891
11892 exit (status);
11893}
11894EOF
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) 2>/dev/null
11901 lt_status=$?
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11906 esac
11907 else :
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11910 fi
11911fi
11912rm -fr conftest*
11913
11914
11915fi
11916echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11917echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11918 fi
11919
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11922 LIBS="$save_LIBS"
11923 ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11929 esac
11930
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11934 esac
11935fi
11936
11937
11938# The else clause should only fire when bootstrapping the
11939# libtool distribution, otherwise you forgot to ship ltmain.sh
11940# with your package, and you will get complaints that there are
11941# no rules to generate ltmain.sh.
11942if test -f "$ltmain"; then
11943 # See if we are running on zsh, and set the options which allow our commands through
11944 # without removal of \ escapes.
11945 if test -n "${ZSH_VERSION+set}" ; then
11946 setopt NO_GLOB_SUBST
11947 fi
11948 # Now quote all the things that may contain metacharacters while being
11949 # careful not to overquote the AC_SUBSTed values. We take copies of the
11950 # variables and quote the copies for generation of the libtool script.
11951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11952 SED SHELL STRIP \
11953 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11954 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11955 deplibs_check_method reload_flag reload_cmds need_locks \
11956 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11957 lt_cv_sys_global_symbol_to_c_name_address \
11958 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11959 old_postinstall_cmds old_postuninstall_cmds \
11960 compiler_CXX \
11961 CC_CXX \
11962 LD_CXX \
11963 lt_prog_compiler_wl_CXX \
11964 lt_prog_compiler_pic_CXX \
11965 lt_prog_compiler_static_CXX \
11966 lt_prog_compiler_no_builtin_flag_CXX \
11967 export_dynamic_flag_spec_CXX \
11968 thread_safe_flag_spec_CXX \
11969 whole_archive_flag_spec_CXX \
11970 enable_shared_with_static_runtimes_CXX \
11971 old_archive_cmds_CXX \
11972 old_archive_from_new_cmds_CXX \
11973 predep_objects_CXX \
11974 postdep_objects_CXX \
11975 predeps_CXX \
11976 postdeps_CXX \
11977 compiler_lib_search_path_CXX \
11978 archive_cmds_CXX \
11979 archive_expsym_cmds_CXX \
11980 postinstall_cmds_CXX \
11981 postuninstall_cmds_CXX \
11982 old_archive_from_expsyms_cmds_CXX \
11983 allow_undefined_flag_CXX \
11984 no_undefined_flag_CXX \
11985 export_symbols_cmds_CXX \
11986 hardcode_libdir_flag_spec_CXX \
11987 hardcode_libdir_flag_spec_ld_CXX \
11988 hardcode_libdir_separator_CXX \
11989 hardcode_automatic_CXX \
11990 module_cmds_CXX \
11991 module_expsym_cmds_CXX \
11992 lt_cv_prog_compiler_c_o_CXX \
11993 exclude_expsyms_CXX \
11994 include_expsyms_CXX; do
11995
11996 case $var in
11997 old_archive_cmds_CXX | \
11998 old_archive_from_new_cmds_CXX | \
11999 archive_cmds_CXX | \
12000 archive_expsym_cmds_CXX | \
12001 module_cmds_CXX | \
12002 module_expsym_cmds_CXX | \
12003 old_archive_from_expsyms_cmds_CXX | \
12004 export_symbols_cmds_CXX | \
12005 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12006 postinstall_cmds | postuninstall_cmds | \
12007 old_postinstall_cmds | old_postuninstall_cmds | \
12008 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12009 # Double-quote double-evaled strings.
12010 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12011 ;;
12012 *)
12013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12014 ;;
12015 esac
12016 done
12017
12018 case $lt_echo in
12019 *'\$0 --fallback-echo"')
12020 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12021 ;;
12022 esac
12023
12024cfgfile="$ofile"
12025
12026 cat <<__EOF__ >> "$cfgfile"
12027# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12028
12029# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12030
12031# Shell to use when invoking shell scripts.
12032SHELL=$lt_SHELL
12033
12034# Whether or not to build shared libraries.
12035build_libtool_libs=$enable_shared
12036
12037# Whether or not to build static libraries.
12038build_old_libs=$enable_static
12039
12040# Whether or not to add -lc for building shared libraries.
12041build_libtool_need_lc=$archive_cmds_need_lc_CXX
12042
12043# Whether or not to disallow shared libs when runtime libs are static
12044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12045
12046# Whether or not to optimize for fast installation.
12047fast_install=$enable_fast_install
12048
12049# The host system.
12050host_alias=$host_alias
12051host=$host
12052
12053# An echo program that does not interpret backslashes.
12054echo=$lt_echo
12055
12056# The archiver.
12057AR=$lt_AR
12058AR_FLAGS=$lt_AR_FLAGS
12059
12060# A C compiler.
12061LTCC=$lt_LTCC
12062
12063# A language-specific compiler.
12064CC=$lt_compiler_CXX
12065
12066# Is the compiler the GNU C compiler?
12067with_gcc=$GCC_CXX
12068
12069# An ERE matcher.
12070EGREP=$lt_EGREP
12071
12072# The linker used to build libraries.
12073LD=$lt_LD_CXX
12074
12075# Whether we need hard or soft links.
12076LN_S=$lt_LN_S
12077
12078# A BSD-compatible nm program.
12079NM=$lt_NM
12080
12081# A symbol stripping program
12082STRIP=$lt_STRIP
12083
12084# Used to examine libraries when file_magic_cmd begins "file"
12085MAGIC_CMD=$MAGIC_CMD
12086
12087# Used on cygwin: DLL creation program.
12088DLLTOOL="$DLLTOOL"
12089
12090# Used on cygwin: object dumper.
12091OBJDUMP="$OBJDUMP"
12092
12093# Used on cygwin: assembler.
12094AS="$AS"
12095
12096# The name of the directory that contains temporary libtool files.
12097objdir=$objdir
12098
12099# How to create reloadable object files.
12100reload_flag=$lt_reload_flag
12101reload_cmds=$lt_reload_cmds
12102
12103# How to pass a linker flag through the compiler.
12104wl=$lt_lt_prog_compiler_wl_CXX
12105
12106# Object file suffix (normally "o").
12107objext="$ac_objext"
12108
12109# Old archive suffix (normally "a").
12110libext="$libext"
12111
12112# Shared library suffix (normally ".so").
12113shrext='$shrext'
12114
12115# Executable file suffix (normally "").
12116exeext="$exeext"
12117
12118# Additional compiler flags for building library objects.
12119pic_flag=$lt_lt_prog_compiler_pic_CXX
12120pic_mode=$pic_mode
12121
12122# What is the maximum length of a command?
12123max_cmd_len=$lt_cv_sys_max_cmd_len
12124
12125# Does compiler simultaneously support -c and -o options?
12126compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12127
12128# Must we lock files when doing compilation ?
12129need_locks=$lt_need_locks
12130
12131# Do we need the lib prefix for modules?
12132need_lib_prefix=$need_lib_prefix
12133
12134# Do we need a version for libraries?
12135need_version=$need_version
12136
12137# Whether dlopen is supported.
12138dlopen_support=$enable_dlopen
12139
12140# Whether dlopen of programs is supported.
12141dlopen_self=$enable_dlopen_self
12142
12143# Whether dlopen of statically linked programs is supported.
12144dlopen_self_static=$enable_dlopen_self_static
12145
12146# Compiler flag to prevent dynamic linking.
12147link_static_flag=$lt_lt_prog_compiler_static_CXX
12148
12149# Compiler flag to turn off builtin functions.
12150no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12151
12152# Compiler flag to allow reflexive dlopens.
12153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12154
12155# Compiler flag to generate shared objects directly from archives.
12156whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12157
12158# Compiler flag to generate thread-safe objects.
12159thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12160
12161# Library versioning type.
12162version_type=$version_type
12163
12164# Format of library name prefix.
12165libname_spec=$lt_libname_spec
12166
12167# List of archive names. First name is the real one, the rest are links.
12168# The last name is the one that the linker finds with -lNAME.
12169library_names_spec=$lt_library_names_spec
12170
12171# The coded name of the library, if different from the real name.
12172soname_spec=$lt_soname_spec
12173
12174# Commands used to build and install an old-style archive.
12175RANLIB=$lt_RANLIB
12176old_archive_cmds=$lt_old_archive_cmds_CXX
12177old_postinstall_cmds=$lt_old_postinstall_cmds
12178old_postuninstall_cmds=$lt_old_postuninstall_cmds
12179
12180# Create an old-style archive from a shared archive.
12181old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12182
12183# Create a temporary old-style archive to link instead of a shared archive.
12184old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12185
12186# Commands used to build and install a shared archive.
12187archive_cmds=$lt_archive_cmds_CXX
12188archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12189postinstall_cmds=$lt_postinstall_cmds
12190postuninstall_cmds=$lt_postuninstall_cmds
12191
12192# Commands used to build a loadable module (assumed same as above if empty)
12193module_cmds=$lt_module_cmds_CXX
12194module_expsym_cmds=$lt_module_expsym_cmds_CXX
12195
12196# Commands to strip libraries.
12197old_striplib=$lt_old_striplib
12198striplib=$lt_striplib
12199
12200# Dependencies to place before the objects being linked to create a
12201# shared library.
12202predep_objects=$lt_predep_objects_CXX
12203
12204# Dependencies to place after the objects being linked to create a
12205# shared library.
12206postdep_objects=$lt_postdep_objects_CXX
12207
12208# Dependencies to place before the objects being linked to create a
12209# shared library.
12210predeps=$lt_predeps_CXX
12211
12212# Dependencies to place after the objects being linked to create a
12213# shared library.
12214postdeps=$lt_postdeps_CXX
12215
12216# The library search path used internally by the compiler when linking
12217# a shared library.
12218compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12219
12220# Method to check whether dependent libraries are shared objects.
12221deplibs_check_method=$lt_deplibs_check_method
12222
12223# Command to use when deplibs_check_method == file_magic.
12224file_magic_cmd=$lt_file_magic_cmd
12225
12226# Flag that allows shared libraries with undefined symbols to be built.
12227allow_undefined_flag=$lt_allow_undefined_flag_CXX
12228
12229# Flag that forces no undefined symbols.
12230no_undefined_flag=$lt_no_undefined_flag_CXX
12231
12232# Commands used to finish a libtool library installation in a directory.
12233finish_cmds=$lt_finish_cmds
12234
12235# Same as above, but a single script fragment to be evaled but not shown.
12236finish_eval=$lt_finish_eval
12237
12238# Take the output of nm and produce a listing of raw symbols and C names.
12239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12240
12241# Transform the output of nm in a proper C declaration
12242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12243
12244# Transform the output of nm in a C name address pair
12245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12246
12247# This is the shared library runtime path variable.
12248runpath_var=$runpath_var
12249
12250# This is the shared library path variable.
12251shlibpath_var=$shlibpath_var
12252
12253# Is shlibpath searched before the hard-coded library search path?
12254shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12255
12256# How to hardcode a shared library path into an executable.
12257hardcode_action=$hardcode_action_CXX
12258
12259# Whether we should hardcode library paths into libraries.
12260hardcode_into_libs=$hardcode_into_libs
12261
12262# Flag to hardcode \$libdir into a binary during linking.
12263# This must work even if \$libdir does not exist.
12264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12265
12266# If ld is used when linking, flag to hardcode \$libdir into
12267# a binary during linking. This must work even if \$libdir does
12268# not exist.
12269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12270
12271# Whether we need a single -rpath flag with a separated argument.
12272hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12273
12274# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275# resulting binary.
12276hardcode_direct=$hardcode_direct_CXX
12277
12278# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279# resulting binary.
12280hardcode_minus_L=$hardcode_minus_L_CXX
12281
12282# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283# the resulting binary.
12284hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12285
12286# Set to yes if building a shared library automatically hardcodes DIR into the library
12287# and all subsequent libraries and executables linked against it.
12288hardcode_automatic=$hardcode_automatic_CXX
12289
12290# Variables whose values should be saved in libtool wrapper scripts and
12291# restored at relink time.
12292variables_saved_for_relink="$variables_saved_for_relink"
12293
12294# Whether libtool must link a program against all its dependency libraries.
12295link_all_deplibs=$link_all_deplibs_CXX
12296
12297# Compile-time system search path for libraries
12298sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12299
12300# Run-time system search path for libraries
12301sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12302
12303# Fix the shell variable \$srcfile for the compiler.
12304fix_srcfile_path="$fix_srcfile_path_CXX"
12305
12306# Set to yes if exported symbols are required.
12307always_export_symbols=$always_export_symbols_CXX
12308
12309# The commands to list exported symbols.
12310export_symbols_cmds=$lt_export_symbols_cmds_CXX
12311
12312# The commands to extract the exported symbol list from a shared archive.
12313extract_expsyms_cmds=$lt_extract_expsyms_cmds
12314
12315# Symbols that should not be listed in the preloaded symbols.
12316exclude_expsyms=$lt_exclude_expsyms_CXX
12317
12318# Symbols that must always be exported.
12319include_expsyms=$lt_include_expsyms_CXX
12320
12321# ### END LIBTOOL TAG CONFIG: $tagname
12322
12323__EOF__
12324
12325
12326else
12327 # If there is no Makefile yet, we rely on a make rule to execute
12328 # `config.status --recheck' to rerun these tests and create the
12329 # libtool script then.
12330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331 if test -f "$ltmain_in"; then
12332 test -f Makefile && make "$ltmain"
12333 fi
12334fi
12335
12336
12337ac_ext=c
12338ac_cpp='$CPP $CPPFLAGS'
12339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343CC=$lt_save_CC
12344LDCXX=$LD
12345LD=$lt_save_LD
12346GCC=$lt_save_GCC
12347with_gnu_ldcxx=$with_gnu_ld
12348with_gnu_ld=$lt_save_with_gnu_ld
12349lt_cv_path_LDCXX=$lt_cv_path_LD
12350lt_cv_path_LD=$lt_save_path_LD
12351lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12352lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12353
12354 else
12355 tagname=""
12356 fi
12357 ;;
12358
12359 F77)
12360 if test -n "$F77" && test "X$F77" != "Xno"; then
12361
12362ac_ext=f
12363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12366
12367
12368archive_cmds_need_lc_F77=no
12369allow_undefined_flag_F77=
12370always_export_symbols_F77=no
12371archive_expsym_cmds_F77=
12372export_dynamic_flag_spec_F77=
12373hardcode_direct_F77=no
12374hardcode_libdir_flag_spec_F77=
12375hardcode_libdir_flag_spec_ld_F77=
12376hardcode_libdir_separator_F77=
12377hardcode_minus_L_F77=no
12378hardcode_automatic_F77=no
12379module_cmds_F77=
12380module_expsym_cmds_F77=
12381link_all_deplibs_F77=unknown
12382old_archive_cmds_F77=$old_archive_cmds
12383no_undefined_flag_F77=
12384whole_archive_flag_spec_F77=
12385enable_shared_with_static_runtimes_F77=no
12386
12387# Source file extension for f77 test sources.
12388ac_ext=f
12389
12390# Object file extension for compiled f77 test sources.
12391objext=o
12392objext_F77=$objext
12393
12394# Code to be used in simple compile tests
12395lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12396
12397# Code to be used in simple link tests
12398lt_simple_link_test_code=" program t\n end\n"
12399
12400# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12401
12402# If no C compiler was specified, use CC.
12403LTCC=${LTCC-"$CC"}
12404
12405# Allow CC to be a program name with arguments.
12406compiler=$CC
12407
12408
12409# Allow CC to be a program name with arguments.
12410lt_save_CC="$CC"
12411CC=${F77-"f77"}
12412compiler=$CC
12413compiler_F77=$CC
12414cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12415
12416echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12418echo "$as_me:$LINENO: result: $can_build_shared" >&5
12419echo "${ECHO_T}$can_build_shared" >&6
12420
12421echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12423test "$can_build_shared" = "no" && enable_shared=no
12424
12425# On AIX, shared libraries and static libraries use the same namespace, and
12426# are all built from PIC.
12427case "$host_os" in
12428aix3*)
12429 test "$enable_shared" = yes && enable_static=no
12430 if test -n "$RANLIB"; then
12431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432 postinstall_cmds='$RANLIB $lib'
12433 fi
12434 ;;
12435aix4*)
12436 test "$enable_shared" = yes && enable_static=no
12437 ;;
12438esac
12439echo "$as_me:$LINENO: result: $enable_shared" >&5
12440echo "${ECHO_T}$enable_shared" >&6
12441
12442echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12444# Make sure either enable_shared or enable_static is yes.
12445test "$enable_shared" = yes || enable_static=yes
12446echo "$as_me:$LINENO: result: $enable_static" >&5
12447echo "${ECHO_T}$enable_static" >&6
12448
12449test "$ld_shlibs_F77" = no && can_build_shared=no
12450
12451GCC_F77="$G77"
12452LD_F77="$LD"
12453
12454lt_prog_compiler_wl_F77=
12455lt_prog_compiler_pic_F77=
12456lt_prog_compiler_static_F77=
12457
12458echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12459echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12460
12461 if test "$GCC" = yes; then
12462 lt_prog_compiler_wl_F77='-Wl,'
12463 lt_prog_compiler_static_F77='-static'
12464
12465 case $host_os in
12466 aix*)
12467 # All AIX code is PIC.
12468 if test "$host_cpu" = ia64; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_F77='-Bstatic'
12471 fi
12472 ;;
12473
12474 amigaos*)
12475 # FIXME: we need at least 68020 code to build shared libraries, but
12476 # adding the `-m68020' flag to GCC prevents building anything better,
12477 # like `-m68040'.
12478 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12479 ;;
12480
12481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12482 # PIC is the default for these OSes.
12483 ;;
12484
12485 mingw* | pw32* | os2*)
12486 # This hack is so that the source file can tell whether it is being
12487 # built for inclusion in a dll (and should export symbols for example).
12488 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12489 ;;
12490
12491 darwin* | rhapsody*)
12492 # PIC is the default on this platform
12493 # Common symbols not allowed in MH_DYLIB files
12494 lt_prog_compiler_pic_F77='-fno-common'
12495 ;;
12496
12497 msdosdjgpp*)
12498 # Just because we use GCC doesn't mean we suddenly get shared libraries
12499 # on systems that don't support them.
12500 lt_prog_compiler_can_build_shared_F77=no
12501 enable_shared=no
12502 ;;
12503
12504 sysv4*MP*)
12505 if test -d /usr/nec; then
12506 lt_prog_compiler_pic_F77=-Kconform_pic
12507 fi
12508 ;;
12509
12510 hpux*)
12511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12512 # not for PA HP-UX.
12513 case "$host_cpu" in
12514 hppa*64*|ia64*)
12515 # +Z the default
12516 ;;
12517 *)
12518 lt_prog_compiler_pic_F77='-fPIC'
12519 ;;
12520 esac
12521 ;;
12522
12523 *)
12524 lt_prog_compiler_pic_F77='-fPIC'
12525 ;;
12526 esac
12527 else
12528 # PORTME Check for flag to pass linker flags through the system compiler.
12529 case $host_os in
12530 aix*)
12531 lt_prog_compiler_wl_F77='-Wl,'
12532 if test "$host_cpu" = ia64; then
12533 # AIX 5 now supports IA64 processor
12534 lt_prog_compiler_static_F77='-Bstatic'
12535 else
12536 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12537 fi
12538 ;;
12539
12540 mingw* | pw32* | os2*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12544 ;;
12545
12546 hpux9* | hpux10* | hpux11*)
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12549 # not for PA HP-UX.
12550 case "$host_cpu" in
12551 hppa*64*|ia64*)
12552 # +Z the default
12553 ;;
12554 *)
12555 lt_prog_compiler_pic_F77='+Z'
12556 ;;
12557 esac
12558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12559 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12560 ;;
12561
12562 irix5* | irix6* | nonstopux*)
12563 lt_prog_compiler_wl_F77='-Wl,'
12564 # PIC (with -KPIC) is the default.
12565 lt_prog_compiler_static_F77='-non_shared'
12566 ;;
12567
12568 newsos6)
12569 lt_prog_compiler_pic_F77='-KPIC'
12570 lt_prog_compiler_static_F77='-Bstatic'
12571 ;;
12572
12573 linux*)
12574 case $CC in
12575 icc* | ecc*)
12576 lt_prog_compiler_wl_F77='-Wl,'
12577 lt_prog_compiler_pic_F77='-KPIC'
12578 lt_prog_compiler_static_F77='-static'
12579 ;;
12580 ccc*)
12581 lt_prog_compiler_wl_F77='-Wl,'
12582 # All Alpha code is PIC.
12583 lt_prog_compiler_static_F77='-non_shared'
12584 ;;
12585 esac
12586 ;;
12587
12588 osf3* | osf4* | osf5*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # All OSF/1 code is PIC.
12591 lt_prog_compiler_static_F77='-non_shared'
12592 ;;
12593
12594 sco3.2v5*)
12595 lt_prog_compiler_pic_F77='-Kpic'
12596 lt_prog_compiler_static_F77='-dn'
12597 ;;
12598
12599 solaris*)
12600 lt_prog_compiler_wl_F77='-Wl,'
12601 lt_prog_compiler_pic_F77='-KPIC'
12602 lt_prog_compiler_static_F77='-Bstatic'
12603 ;;
12604
12605 sunos4*)
12606 lt_prog_compiler_wl_F77='-Qoption ld '
12607 lt_prog_compiler_pic_F77='-PIC'
12608 lt_prog_compiler_static_F77='-Bstatic'
12609 ;;
12610
12611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 ;;
12616
12617 sysv4*MP*)
12618 if test -d /usr/nec ;then
12619 lt_prog_compiler_pic_F77='-Kconform_pic'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 fi
12622 ;;
12623
12624 uts4*)
12625 lt_prog_compiler_pic_F77='-pic'
12626 lt_prog_compiler_static_F77='-Bstatic'
12627 ;;
12628
12629 *)
12630 lt_prog_compiler_can_build_shared_F77=no
12631 ;;
12632 esac
12633 fi
12634
12635echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12636echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12637
12638#
12639# Check to make sure the PIC flag actually works.
12640#
12641if test -n "$lt_prog_compiler_pic_F77"; then
12642
12643echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12644echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12645if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 lt_prog_compiler_pic_works_F77=no
12649 ac_outfile=conftest.$ac_objext
12650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12652 # Insert the option either (1) after the last *FLAGS variable, or
12653 # (2) before a word containing "conftest.", or (3) at the end.
12654 # Note that $ac_compile itself does not contain backslashes and begins
12655 # with a dollar sign (not a hyphen), so the echo should work correctly.
12656 # The option is referenced via a variable to avoid confusing sed.
12657 lt_compile=`echo "$ac_compile" | $SED \
12658 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000012661 (eval echo "\"\$as_me:12661: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012662 (eval "$lt_compile" 2>conftest.err)
12663 ac_status=$?
12664 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000012665 echo "$as_me:12665: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012666 if (exit $ac_status) && test -s "$ac_outfile"; then
12667 # The compiler can only warn and ignore the option if not recognized
12668 # So say no if there are warnings
12669 if test ! -s conftest.err; then
12670 lt_prog_compiler_pic_works_F77=yes
12671 fi
12672 fi
12673 $rm conftest*
12674
12675fi
12676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12677echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12678
12679if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12680 case $lt_prog_compiler_pic_F77 in
12681 "" | " "*) ;;
12682 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12683 esac
12684else
12685 lt_prog_compiler_pic_F77=
12686 lt_prog_compiler_can_build_shared_F77=no
12687fi
12688
12689fi
12690case "$host_os" in
12691 # For platforms which do not support PIC, -DPIC is meaningless:
12692 *djgpp*)
12693 lt_prog_compiler_pic_F77=
12694 ;;
12695 *)
12696 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12697 ;;
12698esac
12699
12700echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12701echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12702if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 lt_cv_prog_compiler_c_o_F77=no
12706 $rm -r conftest 2>/dev/null
12707 mkdir conftest
12708 cd conftest
12709 mkdir out
12710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12711
12712 lt_compiler_flag="-o out/conftest2.$ac_objext"
12713 # Insert the option either (1) after the last *FLAGS variable, or
12714 # (2) before a word containing "conftest.", or (3) at the end.
12715 # Note that $ac_compile itself does not contain backslashes and begins
12716 # with a dollar sign (not a hyphen), so the echo should work correctly.
12717 lt_compile=`echo "$ac_compile" | $SED \
12718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12720 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000012721 (eval echo "\"\$as_me:12721: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012722 (eval "$lt_compile" 2>out/conftest.err)
12723 ac_status=$?
12724 cat out/conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000012725 echo "$as_me:12725: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12727 then
12728 # The compiler can only warn and ignore the option if not recognized
12729 # So say no if there are warnings
12730 if test ! -s out/conftest.err; then
12731 lt_cv_prog_compiler_c_o_F77=yes
12732 fi
12733 fi
12734 chmod u+w .
12735 $rm conftest*
12736 # SGI C++ compiler will create directory out/ii_files/ for
12737 # template instantiation
12738 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12739 $rm out/* && rmdir out
12740 cd ..
12741 rmdir conftest
12742 $rm conftest*
12743
12744fi
12745echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12746echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12747
12748
12749hard_links="nottested"
12750if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12751 # do not overwrite the value of need_locks provided by the user
12752 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12753echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12754 hard_links=yes
12755 $rm conftest*
12756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12757 touch conftest.a
12758 ln conftest.a conftest.b 2>&5 || hard_links=no
12759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12760 echo "$as_me:$LINENO: result: $hard_links" >&5
12761echo "${ECHO_T}$hard_links" >&6
12762 if test "$hard_links" = no; then
12763 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12764echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12765 need_locks=warn
12766 fi
12767else
12768 need_locks=no
12769fi
12770
12771echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12772echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12773
12774 runpath_var=
12775 allow_undefined_flag_F77=
12776 enable_shared_with_static_runtimes_F77=no
12777 archive_cmds_F77=
12778 archive_expsym_cmds_F77=
12779 old_archive_From_new_cmds_F77=
12780 old_archive_from_expsyms_cmds_F77=
12781 export_dynamic_flag_spec_F77=
12782 whole_archive_flag_spec_F77=
12783 thread_safe_flag_spec_F77=
12784 hardcode_libdir_flag_spec_F77=
12785 hardcode_libdir_flag_spec_ld_F77=
12786 hardcode_libdir_separator_F77=
12787 hardcode_direct_F77=no
12788 hardcode_minus_L_F77=no
12789 hardcode_shlibpath_var_F77=unsupported
12790 link_all_deplibs_F77=unknown
12791 hardcode_automatic_F77=no
12792 module_cmds_F77=
12793 module_expsym_cmds_F77=
12794 always_export_symbols_F77=no
12795 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12796 # include_expsyms should be a list of space-separated symbols to be *always*
12797 # included in the symbol list
12798 include_expsyms_F77=
12799 # exclude_expsyms can be an extended regexp of symbols to exclude
12800 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12801 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12802 # as well as any symbol that contains `d'.
12803 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12804 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12805 # platforms (ab)use it in PIC code, but their linkers get confused if
12806 # the symbol is explicitly referenced. Since portable code cannot
12807 # rely on this symbol name, it's probably fine to never include it in
12808 # preloaded symbol tables.
12809 extract_expsyms_cmds=
12810
12811 case $host_os in
12812 cygwin* | mingw* | pw32*)
12813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12814 # When not using gcc, we currently assume that we are using
12815 # Microsoft Visual C++.
12816 if test "$GCC" != yes; then
12817 with_gnu_ld=no
12818 fi
12819 ;;
12820 openbsd*)
12821 with_gnu_ld=no
12822 ;;
12823 esac
12824
12825 ld_shlibs_F77=yes
12826 if test "$with_gnu_ld" = yes; then
12827 # If archive_cmds runs LD, not CC, wlarc should be empty
12828 wlarc='${wl}'
12829
12830 # See if GNU ld supports shared libraries.
12831 case $host_os in
12832 aix3* | aix4* | aix5*)
12833 # On AIX/PPC, the GNU linker is very broken
12834 if test "$host_cpu" != ia64; then
12835 ld_shlibs_F77=no
12836 cat <<EOF 1>&2
12837
12838*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12839*** to be unable to reliably create shared libraries on AIX.
12840*** Therefore, libtool is disabling shared libraries support. If you
12841*** really care for shared libraries, you may want to modify your PATH
12842*** so that a non-GNU linker is found, and then restart.
12843
12844EOF
12845 fi
12846 ;;
12847
12848 amigaos*)
12849 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)'
12850 hardcode_libdir_flag_spec_F77='-L$libdir'
12851 hardcode_minus_L_F77=yes
12852
12853 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12854 # that the semantics of dynamic libraries on AmigaOS, at least up
12855 # to version 4, is to share data among multiple programs linked
12856 # with the same dynamic library. Since this doesn't match the
12857 # behavior of shared libraries on other platforms, we can't use
12858 # them.
12859 ld_shlibs_F77=no
12860 ;;
12861
12862 beos*)
12863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12864 allow_undefined_flag_F77=unsupported
12865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12866 # support --undefined. This deserves some investigation. FIXME
12867 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 else
12869 ld_shlibs_F77=no
12870 fi
12871 ;;
12872
12873 cygwin* | mingw* | pw32*)
12874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12875 # as there is no search path for DLLs.
12876 hardcode_libdir_flag_spec_F77='-L$libdir'
12877 allow_undefined_flag_F77=unsupported
12878 always_export_symbols_F77=no
12879 enable_shared_with_static_runtimes_F77=yes
12880 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12881
12882 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12884 # If the export-symbols file already is a .def file (1st line
12885 # is EXPORTS), use it as is; otherwise, prepend...
12886 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12887 cp $export_symbols $output_objdir/$soname.def;
12888 else
12889 echo EXPORTS > $output_objdir/$soname.def;
12890 cat $export_symbols >> $output_objdir/$soname.def;
12891 fi~
12892 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12893 else
12894 ld_shlibs=no
12895 fi
12896 ;;
12897
12898 netbsd* | knetbsd*-gnu)
12899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12900 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12901 wlarc=
12902 else
12903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12905 fi
12906 ;;
12907
12908 solaris* | sysv5*)
12909 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12910 ld_shlibs_F77=no
12911 cat <<EOF 1>&2
12912
12913*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12914*** create shared libraries on Solaris systems. Therefore, libtool
12915*** is disabling shared libraries support. We urge you to upgrade GNU
12916*** binutils to release 2.9.1 or newer. Another option is to modify
12917*** your PATH or compiler configuration so that the native linker is
12918*** used, and then restart.
12919
12920EOF
12921 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924 else
12925 ld_shlibs_F77=no
12926 fi
12927 ;;
12928
12929 sunos4*)
12930 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931 wlarc=
12932 hardcode_direct_F77=yes
12933 hardcode_shlibpath_var_F77=no
12934 ;;
12935
12936 linux*)
12937 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12938 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12939 archive_cmds_F77="$tmp_archive_cmds"
12940 supports_anon_versioning=no
12941 case `$LD -v 2>/dev/null` in
12942 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12945 *\ 2.11.*) ;; # other 2.11 versions
12946 *) supports_anon_versioning=yes ;;
12947 esac
12948 if test $supports_anon_versioning = yes; then
12949 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12950cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12951$echo "local: *; };" >> $output_objdir/$libname.ver~
12952 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12953 else
12954 archive_expsym_cmds_F77="$tmp_archive_cmds"
12955 fi
12956 else
12957 ld_shlibs_F77=no
12958 fi
12959 ;;
12960
12961 *)
12962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12965 else
12966 ld_shlibs_F77=no
12967 fi
12968 ;;
12969 esac
12970
12971 if test "$ld_shlibs_F77" = yes; then
12972 runpath_var=LD_RUN_PATH
12973 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12974 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12975 # ancient GNU ld didn't support --whole-archive et. al.
12976 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12977 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12978 else
12979 whole_archive_flag_spec_F77=
12980 fi
12981 fi
12982 else
12983 # PORTME fill in a description of your system's linker (not GNU ld)
12984 case $host_os in
12985 aix3*)
12986 allow_undefined_flag_F77=unsupported
12987 always_export_symbols_F77=yes
12988 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'
12989 # Note: this linker hardcodes the directories in LIBPATH if there
12990 # are no directories specified by -L.
12991 hardcode_minus_L_F77=yes
12992 if test "$GCC" = yes && test -z "$link_static_flag"; then
12993 # Neither direct hardcoding nor static linking is supported with a
12994 # broken collect2.
12995 hardcode_direct_F77=unsupported
12996 fi
12997 ;;
12998
12999 aix4* | aix5*)
13000 if test "$host_cpu" = ia64; then
13001 # On IA64, the linker does run time linking by default, so we don't
13002 # have to do anything special.
13003 aix_use_runtimelinking=no
13004 exp_sym_flag='-Bexport'
13005 no_entry_flag=""
13006 else
13007 # If we're using GNU nm, then we don't want the "-C" option.
13008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13009 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13010 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'
13011 else
13012 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'
13013 fi
13014 aix_use_runtimelinking=no
13015
13016 # Test if we are trying to use run time linking or normal
13017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13018 # need to do runtime linking.
13019 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13020 for ld_flag in $LDFLAGS; do
13021 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13022 aix_use_runtimelinking=yes
13023 break
13024 fi
13025 done
13026 esac
13027
13028 exp_sym_flag='-bexport'
13029 no_entry_flag='-bnoentry'
13030 fi
13031
13032 # When large executables or shared objects are built, AIX ld can
13033 # have problems creating the table of contents. If linking a library
13034 # or program results in "error TOC overflow" add -mminimal-toc to
13035 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13036 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13037
13038 archive_cmds_F77=''
13039 hardcode_direct_F77=yes
13040 hardcode_libdir_separator_F77=':'
13041 link_all_deplibs_F77=yes
13042
13043 if test "$GCC" = yes; then
13044 case $host_os in aix4.012|aix4.012.*)
13045 # We only want to do this on AIX 4.2 and lower, the check
13046 # below for broken collect2 doesn't work under 4.3+
13047 collect2name=`${CC} -print-prog-name=collect2`
13048 if test -f "$collect2name" && \
13049 strings "$collect2name" | grep resolve_lib_name >/dev/null
13050 then
13051 # We have reworked collect2
13052 hardcode_direct_F77=yes
13053 else
13054 # We have old collect2
13055 hardcode_direct_F77=unsupported
13056 # It fails to find uninstalled libraries when the uninstalled
13057 # path is not listed in the libpath. Setting hardcode_minus_L
13058 # to unsupported forces relinking
13059 hardcode_minus_L_F77=yes
13060 hardcode_libdir_flag_spec_F77='-L$libdir'
13061 hardcode_libdir_separator_F77=
13062 fi
13063 esac
13064 shared_flag='-shared'
13065 else
13066 # not using gcc
13067 if test "$host_cpu" = ia64; then
13068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13069 # chokes on -Wl,-G. The following line is correct:
13070 shared_flag='-G'
13071 else
13072 if test "$aix_use_runtimelinking" = yes; then
13073 shared_flag='${wl}-G'
13074 else
13075 shared_flag='${wl}-bM:SRE'
13076 fi
13077 fi
13078 fi
13079
13080 # It seems that -bexpall does not export symbols beginning with
13081 # underscore (_), so it is better to generate a list of symbols to export.
13082 always_export_symbols_F77=yes
13083 if test "$aix_use_runtimelinking" = yes; then
13084 # Warning - without using the other runtime loading flags (-brtl),
13085 # -berok will link without error, but may produce a broken library.
13086 allow_undefined_flag_F77='-berok'
13087 # Determine the default libpath from the value encoded in an empty executable.
13088 cat >conftest.$ac_ext <<_ACEOF
13089 program main
13090
13091 end
13092_ACEOF
13093rm -f conftest.$ac_objext conftest$ac_exeext
13094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013102 { ac_try='test -z "$ac_f77_werror_flag"
13103 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115
13116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13117}'`
13118# Check for a 64-bit object if we didn't find anything.
13119if 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; }
13120}'`; fi
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125fi
13126rm -f conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13129
13130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13131 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"
13132 else
13133 if test "$host_cpu" = ia64; then
13134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13135 allow_undefined_flag_F77="-z nodefs"
13136 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"
13137 else
13138 # Determine the default libpath from the value encoded in an empty executable.
13139 cat >conftest.$ac_ext <<_ACEOF
13140 program main
13141
13142 end
13143_ACEOF
13144rm -f conftest.$ac_objext conftest$ac_exeext
13145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13146 (eval $ac_link) 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013153 { ac_try='test -z "$ac_f77_werror_flag"
13154 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166
13167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13168}'`
13169# Check for a 64-bit object if we didn't find anything.
13170if 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; }
13171}'`; fi
13172else
13173 echo "$as_me: failed program was:" >&5
13174sed 's/^/| /' conftest.$ac_ext >&5
13175
13176fi
13177rm -f conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13180
13181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 # Warning - without using the other run time loading flags,
13183 # -berok will link without error, but may produce a broken library.
13184 no_undefined_flag_F77=' ${wl}-bernotok'
13185 allow_undefined_flag_F77=' ${wl}-berok'
13186 # -bexpall does not export symbols beginning with underscore (_)
13187 always_export_symbols_F77=yes
13188 # Exported symbols can be pulled into shared objects from archives
13189 whole_archive_flag_spec_F77=' '
13190 archive_cmds_need_lc_F77=yes
13191 # This is similar to how AIX traditionally builds it's shared libraries.
13192 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'
13193 fi
13194 fi
13195 ;;
13196
13197 amigaos*)
13198 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)'
13199 hardcode_libdir_flag_spec_F77='-L$libdir'
13200 hardcode_minus_L_F77=yes
13201 # see comment about different semantics on the GNU ld section
13202 ld_shlibs_F77=no
13203 ;;
13204
13205 bsdi4*)
13206 export_dynamic_flag_spec_F77=-rdynamic
13207 ;;
13208
13209 cygwin* | mingw* | pw32*)
13210 # When not using gcc, we currently assume that we are using
13211 # Microsoft Visual C++.
13212 # hardcode_libdir_flag_spec is actually meaningless, as there is
13213 # no search path for DLLs.
13214 hardcode_libdir_flag_spec_F77=' '
13215 allow_undefined_flag_F77=unsupported
13216 # Tell ltmain to make .lib files, not .a files.
13217 libext=lib
13218 # Tell ltmain to make .dll files, not .so files.
13219 shrext=".dll"
13220 # FIXME: Setting linknames here is a bad hack.
13221 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13222 # The linker will automatically build a .lib file if we build a DLL.
13223 old_archive_From_new_cmds_F77='true'
13224 # FIXME: Should let the user specify the lib program.
13225 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13226 fix_srcfile_path='`cygpath -w "$srcfile"`'
13227 enable_shared_with_static_runtimes_F77=yes
13228 ;;
13229
13230 darwin* | rhapsody*)
13231 if test "$GXX" = yes ; then
13232 archive_cmds_need_lc_F77=no
13233 case "$host_os" in
13234 rhapsody* | darwin1.[012])
13235 allow_undefined_flag_F77='-undefined suppress'
13236 ;;
13237 *) # Darwin 1.3 on
13238 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13239 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13240 else
13241 case ${MACOSX_DEPLOYMENT_TARGET} in
13242 10.[012])
13243 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13244 ;;
13245 10.*)
13246 allow_undefined_flag_F77='-undefined dynamic_lookup'
13247 ;;
13248 esac
13249 fi
13250 ;;
13251 esac
13252 lt_int_apple_cc_single_mod=no
13253 output_verbose_link_cmd='echo'
13254 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13255 lt_int_apple_cc_single_mod=yes
13256 fi
13257 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13258 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13259 else
13260 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'
13261 fi
13262 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13264 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265 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}'
13266 else
13267 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}'
13268 fi
13269 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}'
13270 hardcode_direct_F77=no
13271 hardcode_automatic_F77=yes
13272 hardcode_shlibpath_var_F77=unsupported
13273 whole_archive_flag_spec_F77='-all_load $convenience'
13274 link_all_deplibs_F77=yes
13275 else
13276 ld_shlibs_F77=no
13277 fi
13278 ;;
13279
13280 dgux*)
13281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13282 hardcode_libdir_flag_spec_F77='-L$libdir'
13283 hardcode_shlibpath_var_F77=no
13284 ;;
13285
13286 freebsd1*)
13287 ld_shlibs_F77=no
13288 ;;
13289
13290 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13291 # support. Future versions do this automatically, but an explicit c++rt0.o
13292 # does not break anything, and helps significantly (at the cost of a little
13293 # extra space).
13294 freebsd2.2*)
13295 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13296 hardcode_libdir_flag_spec_F77='-R$libdir'
13297 hardcode_direct_F77=yes
13298 hardcode_shlibpath_var_F77=no
13299 ;;
13300
13301 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13302 freebsd2*)
13303 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13304 hardcode_direct_F77=yes
13305 hardcode_minus_L_F77=yes
13306 hardcode_shlibpath_var_F77=no
13307 ;;
13308
13309 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13310 freebsd* | kfreebsd*-gnu)
13311 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13312 hardcode_libdir_flag_spec_F77='-R$libdir'
13313 hardcode_direct_F77=yes
13314 hardcode_shlibpath_var_F77=no
13315 ;;
13316
13317 hpux9*)
13318 if test "$GCC" = yes; then
13319 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'
13320 else
13321 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'
13322 fi
13323 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13324 hardcode_libdir_separator_F77=:
13325 hardcode_direct_F77=yes
13326
13327 # hardcode_minus_L: Not really in the search PATH,
13328 # but as the default location of the library.
13329 hardcode_minus_L_F77=yes
13330 export_dynamic_flag_spec_F77='${wl}-E'
13331 ;;
13332
13333 hpux10* | hpux11*)
13334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13335 case "$host_cpu" in
13336 hppa*64*|ia64*)
13337 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 ;;
13339 *)
13340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13341 ;;
13342 esac
13343 else
13344 case "$host_cpu" in
13345 hppa*64*|ia64*)
13346 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13347 ;;
13348 *)
13349 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13350 ;;
13351 esac
13352 fi
13353 if test "$with_gnu_ld" = no; then
13354 case "$host_cpu" in
13355 hppa*64*)
13356 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13357 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13358 hardcode_libdir_separator_F77=:
13359 hardcode_direct_F77=no
13360 hardcode_shlibpath_var_F77=no
13361 ;;
13362 ia64*)
13363 hardcode_libdir_flag_spec_F77='-L$libdir'
13364 hardcode_direct_F77=no
13365 hardcode_shlibpath_var_F77=no
13366
13367 # hardcode_minus_L: Not really in the search PATH,
13368 # but as the default location of the library.
13369 hardcode_minus_L_F77=yes
13370 ;;
13371 *)
13372 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13373 hardcode_libdir_separator_F77=:
13374 hardcode_direct_F77=yes
13375 export_dynamic_flag_spec_F77='${wl}-E'
13376
13377 # hardcode_minus_L: Not really in the search PATH,
13378 # but as the default location of the library.
13379 hardcode_minus_L_F77=yes
13380 ;;
13381 esac
13382 fi
13383 ;;
13384
13385 irix5* | irix6* | nonstopux*)
13386 if test "$GCC" = yes; then
13387 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'
13388 else
13389 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'
13390 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13391 fi
13392 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13393 hardcode_libdir_separator_F77=:
13394 link_all_deplibs_F77=yes
13395 ;;
13396
13397 netbsd* | knetbsd*-gnu)
13398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13399 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13400 else
13401 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13402 fi
13403 hardcode_libdir_flag_spec_F77='-R$libdir'
13404 hardcode_direct_F77=yes
13405 hardcode_shlibpath_var_F77=no
13406 ;;
13407
13408 newsos6)
13409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410 hardcode_direct_F77=yes
13411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13412 hardcode_libdir_separator_F77=:
13413 hardcode_shlibpath_var_F77=no
13414 ;;
13415
13416 openbsd*)
13417 hardcode_direct_F77=yes
13418 hardcode_shlibpath_var_F77=no
13419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13420 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13422 export_dynamic_flag_spec_F77='${wl}-E'
13423 else
13424 case $host_os in
13425 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13427 hardcode_libdir_flag_spec_F77='-R$libdir'
13428 ;;
13429 *)
13430 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13431 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13432 ;;
13433 esac
13434 fi
13435 ;;
13436
13437 os2*)
13438 hardcode_libdir_flag_spec_F77='-L$libdir'
13439 hardcode_minus_L_F77=yes
13440 allow_undefined_flag_F77=unsupported
13441 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'
13442 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13443 ;;
13444
13445 osf3*)
13446 if test "$GCC" = yes; then
13447 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13448 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'
13449 else
13450 allow_undefined_flag_F77=' -expect_unresolved \*'
13451 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'
13452 fi
13453 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13454 hardcode_libdir_separator_F77=:
13455 ;;
13456
13457 osf4* | osf5*) # as osf3* with the addition of -msym flag
13458 if test "$GCC" = yes; then
13459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13460 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'
13461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13462 else
13463 allow_undefined_flag_F77=' -expect_unresolved \*'
13464 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'
13465 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~
13466 $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'
13467
13468 # Both c and cxx compiler support -rpath directly
13469 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13470 fi
13471 hardcode_libdir_separator_F77=:
13472 ;;
13473
13474 sco3.2v5*)
13475 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_shlibpath_var_F77=no
13477 export_dynamic_flag_spec_F77='${wl}-Bexport'
13478 runpath_var=LD_RUN_PATH
13479 hardcode_runpath_var=yes
13480 ;;
13481
13482 solaris*)
13483 no_undefined_flag_F77=' -z text'
13484 if test "$GCC" = yes; then
13485 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13487 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13488 else
13489 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13490 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13492 fi
13493 hardcode_libdir_flag_spec_F77='-R$libdir'
13494 hardcode_shlibpath_var_F77=no
13495 case $host_os in
13496 solaris2.[0-5] | solaris2.[0-5].*) ;;
13497 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13498 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13499 esac
13500 link_all_deplibs_F77=yes
13501 ;;
13502
13503 sunos4*)
13504 if test "x$host_vendor" = xsequent; then
13505 # Use $CC to link under sequent, because it throws in some extra .o
13506 # files that make .init and .fini sections work.
13507 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13508 else
13509 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13510 fi
13511 hardcode_libdir_flag_spec_F77='-L$libdir'
13512 hardcode_direct_F77=yes
13513 hardcode_minus_L_F77=yes
13514 hardcode_shlibpath_var_F77=no
13515 ;;
13516
13517 sysv4)
13518 case $host_vendor in
13519 sni)
13520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13521 hardcode_direct_F77=yes # is this really true???
13522 ;;
13523 siemens)
13524 ## LD is ld it makes a PLAMLIB
13525 ## CC just makes a GrossModule.
13526 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13527 reload_cmds_F77='$CC -r -o $output$reload_objs'
13528 hardcode_direct_F77=no
13529 ;;
13530 motorola)
13531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13533 ;;
13534 esac
13535 runpath_var='LD_RUN_PATH'
13536 hardcode_shlibpath_var_F77=no
13537 ;;
13538
13539 sysv4.3*)
13540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 hardcode_shlibpath_var_F77=no
13542 export_dynamic_flag_spec_F77='-Bexport'
13543 ;;
13544
13545 sysv4*MP*)
13546 if test -d /usr/nec; then
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_shlibpath_var_F77=no
13549 runpath_var=LD_RUN_PATH
13550 hardcode_runpath_var=yes
13551 ld_shlibs_F77=yes
13552 fi
13553 ;;
13554
13555 sysv4.2uw2*)
13556 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_direct_F77=yes
13558 hardcode_minus_L_F77=no
13559 hardcode_shlibpath_var_F77=no
13560 hardcode_runpath_var=yes
13561 runpath_var=LD_RUN_PATH
13562 ;;
13563
13564 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13565 no_undefined_flag_F77='${wl}-z ${wl}text'
13566 if test "$GCC" = yes; then
13567 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 else
13569 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13570 fi
13571 runpath_var='LD_RUN_PATH'
13572 hardcode_shlibpath_var_F77=no
13573 ;;
13574
13575 sysv5*)
13576 no_undefined_flag_F77=' -z text'
13577 # $CC -shared without GNU ld will not create a library from C++
13578 # object files and a static libstdc++, better avoid it by now
13579 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13581 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13582 hardcode_libdir_flag_spec_F77=
13583 hardcode_shlibpath_var_F77=no
13584 runpath_var='LD_RUN_PATH'
13585 ;;
13586
13587 uts4*)
13588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13589 hardcode_libdir_flag_spec_F77='-L$libdir'
13590 hardcode_shlibpath_var_F77=no
13591 ;;
13592
13593 *)
13594 ld_shlibs_F77=no
13595 ;;
13596 esac
13597 fi
13598
13599echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13600echo "${ECHO_T}$ld_shlibs_F77" >&6
13601test "$ld_shlibs_F77" = no && can_build_shared=no
13602
13603variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13604if test "$GCC" = yes; then
13605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13606fi
13607
13608#
13609# Do we need to explicitly link libc?
13610#
13611case "x$archive_cmds_need_lc_F77" in
13612x|xyes)
13613 # Assume -lc should be added
13614 archive_cmds_need_lc_F77=yes
13615
13616 if test "$enable_shared" = yes && test "$GCC" = yes; then
13617 case $archive_cmds_F77 in
13618 *'~'*)
13619 # FIXME: we may have to deal with multi-command sequences.
13620 ;;
13621 '$CC '*)
13622 # Test whether the compiler implicitly links with -lc since on some
13623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13624 # to ld, don't add -lc before -lgcc.
13625 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13626echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13627 $rm conftest*
13628 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13629
13630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631 (eval $ac_compile) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } 2>conftest.err; then
13635 soname=conftest
13636 lib=conftest
13637 libobjs=conftest.$ac_objext
13638 deplibs=
13639 wl=$lt_prog_compiler_wl_F77
13640 compiler_flags=-v
13641 linker_flags=-v
13642 verstring=
13643 output_objdir=.
13644 libname=conftest
13645 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13646 allow_undefined_flag_F77=
13647 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13648 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }
13652 then
13653 archive_cmds_need_lc_F77=no
13654 else
13655 archive_cmds_need_lc_F77=yes
13656 fi
13657 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13658 else
13659 cat conftest.err 1>&5
13660 fi
13661 $rm conftest*
13662 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13663echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13664 ;;
13665 esac
13666 fi
13667 ;;
13668esac
13669
13670echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13671echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13672library_names_spec=
13673libname_spec='lib$name'
13674soname_spec=
13675shrext=".so"
13676postinstall_cmds=
13677postuninstall_cmds=
13678finish_cmds=
13679finish_eval=
13680shlibpath_var=
13681shlibpath_overrides_runpath=unknown
13682version_type=none
13683dynamic_linker="$host_os ld.so"
13684sys_lib_dlsearch_path_spec="/lib /usr/lib"
13685if test "$GCC" = yes; then
13686 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13687 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13688 # if the path contains ";" then we assume it to be the separator
13689 # otherwise default to the standard path separator (i.e. ":") - it is
13690 # assumed that no part of a normal pathname contains ";" but that should
13691 # okay in the real world where ";" in dirpaths is itself problematic.
13692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13693 else
13694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13695 fi
13696else
13697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13698fi
13699need_lib_prefix=unknown
13700hardcode_into_libs=no
13701
13702# when you set need_version to no, make sure it does not cause -set_version
13703# flags to be left without arguments
13704need_version=unknown
13705
13706case $host_os in
13707aix3*)
13708 version_type=linux
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13710 shlibpath_var=LIBPATH
13711
13712 # AIX 3 has no versioning support, so we append a major version to the name.
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 ;;
13715
13716aix4* | aix5*)
13717 version_type=linux
13718 need_lib_prefix=no
13719 need_version=no
13720 hardcode_into_libs=yes
13721 if test "$host_cpu" = ia64; then
13722 # AIX 5 supports IA64
13723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 else
13726 # With GCC up to 2.95.x, collect2 would create an import file
13727 # for dependence libraries. The import file would start with
13728 # the line `#! .'. This would cause the generated library to
13729 # depend on `.', always an invalid library. This was fixed in
13730 # development snapshots of GCC prior to 3.0.
13731 case $host_os in
13732 aix4 | aix4.[01] | aix4.[01].*)
13733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13734 echo ' yes '
13735 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13736 :
13737 else
13738 can_build_shared=no
13739 fi
13740 ;;
13741 esac
13742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13743 # soname into executable. Probably we can add versioning support to
13744 # collect2, so additional links can be useful in future.
13745 if test "$aix_use_runtimelinking" = yes; then
13746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13747 # instead of lib<name>.a to let people know that these are not
13748 # typical AIX shared libraries.
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 else
13751 # We preserve .a as extension for shared libraries through AIX4.2
13752 # and later when we are not doing run time linking.
13753 library_names_spec='${libname}${release}.a $libname.a'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 fi
13756 shlibpath_var=LIBPATH
13757 fi
13758 ;;
13759
13760amigaos*)
13761 library_names_spec='$libname.ixlibrary $libname.a'
13762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13763 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'
13764 ;;
13765
13766beos*)
13767 library_names_spec='${libname}${shared_ext}'
13768 dynamic_linker="$host_os ld.so"
13769 shlibpath_var=LIBRARY_PATH
13770 ;;
13771
13772bsdi4*)
13773 version_type=linux
13774 need_version=no
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13781 # the default ld.so.conf also contains /usr/contrib/lib and
13782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13783 # libtool to hard-code these into programs
13784 ;;
13785
13786cygwin* | mingw* | pw32*)
13787 version_type=windows
13788 shrext=".dll"
13789 need_version=no
13790 need_lib_prefix=no
13791
13792 case $GCC,$host_os in
13793 yes,cygwin* | yes,mingw* | yes,pw32*)
13794 library_names_spec='$libname.dll.a'
13795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13796 postinstall_cmds='base_file=`basename \${file}`~
13797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13798 dldir=$destdir/`dirname \$dlpath`~
13799 test -d \$dldir || mkdir -p \$dldir~
13800 $install_prog $dir/$dlname \$dldir/$dlname'
13801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13802 dlpath=$dir/\$dldll~
13803 $rm \$dlpath'
13804 shlibpath_overrides_runpath=yes
13805
13806 case $host_os in
13807 cygwin*)
13808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13811 ;;
13812 mingw*)
13813 # MinGW DLLs use traditional 'lib' prefix
13814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13817 # It is most probably a Windows format PATH printed by
13818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13819 # path with ; separators, and with drive letters. We can handle the
13820 # drive letters (cygwin fileutils understands them), so leave them,
13821 # especially as we might pass files found there to a mingw objdump,
13822 # which wouldn't understand a cygwinified path. Ahh.
13823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13824 else
13825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13826 fi
13827 ;;
13828 pw32*)
13829 # pw32 DLLs use 'pw' prefix rather than 'lib'
13830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13831 ;;
13832 esac
13833 ;;
13834
13835 *)
13836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13837 ;;
13838 esac
13839 dynamic_linker='Win32 ld.exe'
13840 # FIXME: first we should search . and the directory the executable is in
13841 shlibpath_var=PATH
13842 ;;
13843
13844darwin* | rhapsody*)
13845 dynamic_linker="$host_os dyld"
13846 version_type=darwin
13847 need_lib_prefix=no
13848 need_version=no
13849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13850 soname_spec='${libname}${release}${major}$shared_ext'
13851 shlibpath_overrides_runpath=yes
13852 shlibpath_var=DYLD_LIBRARY_PATH
13853 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13855 if test "$GCC" = yes; then
13856 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"`
13857 else
13858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13859 fi
13860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13861 ;;
13862
13863dgux*)
13864 version_type=linux
13865 need_lib_prefix=no
13866 need_version=no
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13868 soname_spec='${libname}${release}${shared_ext}$major'
13869 shlibpath_var=LD_LIBRARY_PATH
13870 ;;
13871
13872freebsd1*)
13873 dynamic_linker=no
13874 ;;
13875
13876kfreebsd*-gnu)
13877 version_type=linux
13878 need_lib_prefix=no
13879 need_version=no
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath=no
13884 hardcode_into_libs=yes
13885 dynamic_linker='GNU ld.so'
13886 ;;
13887
13888freebsd*)
13889 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13890 version_type=freebsd-$objformat
13891 case $version_type in
13892 freebsd-elf*)
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13894 need_version=no
13895 need_lib_prefix=no
13896 ;;
13897 freebsd-*)
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13899 need_version=yes
13900 ;;
13901 esac
13902 shlibpath_var=LD_LIBRARY_PATH
13903 case $host_os in
13904 freebsd2*)
13905 shlibpath_overrides_runpath=yes
13906 ;;
13907 freebsd3.01* | freebsdelf3.01*)
13908 shlibpath_overrides_runpath=yes
13909 hardcode_into_libs=yes
13910 ;;
13911 *) # from 3.2 on
13912 shlibpath_overrides_runpath=no
13913 hardcode_into_libs=yes
13914 ;;
13915 esac
13916 ;;
13917
13918gnu*)
13919 version_type=linux
13920 need_lib_prefix=no
13921 need_version=no
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 hardcode_into_libs=yes
13926 ;;
13927
13928hpux9* | hpux10* | hpux11*)
13929 # Give a soname corresponding to the major version so that dld.sl refuses to
13930 # link against other versions.
13931 version_type=sunos
13932 need_lib_prefix=no
13933 need_version=no
13934 case "$host_cpu" in
13935 ia64*)
13936 shrext='.so'
13937 hardcode_into_libs=yes
13938 dynamic_linker="$host_os dld.so"
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 if test "X$HPUX_IA64_MODE" = X32; then
13944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13945 else
13946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13947 fi
13948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13949 ;;
13950 hppa*64*)
13951 shrext='.sl'
13952 hardcode_into_libs=yes
13953 dynamic_linker="$host_os dld.sl"
13954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13960 ;;
13961 *)
13962 shrext='.sl'
13963 dynamic_linker="$host_os dld.sl"
13964 shlibpath_var=SHLIB_PATH
13965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 ;;
13969 esac
13970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13971 postinstall_cmds='chmod 555 $lib'
13972 ;;
13973
13974irix5* | irix6* | nonstopux*)
13975 case $host_os in
13976 nonstopux*) version_type=nonstopux ;;
13977 *)
13978 if test "$lt_cv_prog_gnu_ld" = yes; then
13979 version_type=linux
13980 else
13981 version_type=irix
13982 fi ;;
13983 esac
13984 need_lib_prefix=no
13985 need_version=no
13986 soname_spec='${libname}${release}${shared_ext}$major'
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13988 case $host_os in
13989 irix5* | nonstopux*)
13990 libsuff= shlibsuff=
13991 ;;
13992 *)
13993 case $LD in # libtool.m4 will add one of these switches to LD
13994 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13995 libsuff= shlibsuff= libmagic=32-bit;;
13996 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13997 libsuff=32 shlibsuff=N32 libmagic=N32;;
13998 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13999 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14000 *) libsuff= shlibsuff= libmagic=never-match;;
14001 esac
14002 ;;
14003 esac
14004 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14005 shlibpath_overrides_runpath=no
14006 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14007 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14008 hardcode_into_libs=yes
14009 ;;
14010
14011# No shared lib support for Linux oldld, aout, or coff.
14012linux*oldld* | linux*aout* | linux*coff*)
14013 dynamic_linker=no
14014 ;;
14015
14016# This must be Linux ELF.
14017linux*)
14018 version_type=linux
14019 need_lib_prefix=no
14020 need_version=no
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 shlibpath_overrides_runpath=no
14026 # This implies no fast_install, which is unacceptable.
14027 # Some rework will be needed to allow for fast_install
14028 # before this can be enabled.
14029 hardcode_into_libs=yes
14030
14031 # Append ld.so.conf contents to the search path
14032 if test -f /etc/ld.so.conf; then
14033 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14034 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14035 fi
14036
14037 # We used to test for /lib/ld.so.1 and disable shared libraries on
14038 # powerpc, because MkLinux only supported shared libraries with the
14039 # GNU dynamic linker. Since this was broken with cross compilers,
14040 # most powerpc-linux boxes support dynamic linking these days and
14041 # people can always --disable-shared, the test was removed, and we
14042 # assume the GNU/Linux dynamic linker is in use.
14043 dynamic_linker='GNU/Linux ld.so'
14044 ;;
14045
14046knetbsd*-gnu)
14047 version_type=linux
14048 need_lib_prefix=no
14049 need_version=no
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 shlibpath_overrides_runpath=no
14054 hardcode_into_libs=yes
14055 dynamic_linker='GNU ld.so'
14056 ;;
14057
14058netbsd*)
14059 version_type=sunos
14060 need_lib_prefix=no
14061 need_version=no
14062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14065 dynamic_linker='NetBSD (a.out) ld.so'
14066 else
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 dynamic_linker='NetBSD ld.elf_so'
14070 fi
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes
14073 hardcode_into_libs=yes
14074 ;;
14075
14076newsos6)
14077 version_type=linux
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=yes
14081 ;;
14082
14083nto-qnx*)
14084 version_type=linux
14085 need_lib_prefix=no
14086 need_version=no
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 ;;
14092
14093openbsd*)
14094 version_type=sunos
14095 need_lib_prefix=no
14096 need_version=yes
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14101 case $host_os in
14102 openbsd2.[89] | openbsd2.[89].*)
14103 shlibpath_overrides_runpath=no
14104 ;;
14105 *)
14106 shlibpath_overrides_runpath=yes
14107 ;;
14108 esac
14109 else
14110 shlibpath_overrides_runpath=yes
14111 fi
14112 ;;
14113
14114os2*)
14115 libname_spec='$name'
14116 shrext=".dll"
14117 need_lib_prefix=no
14118 library_names_spec='$libname${shared_ext} $libname.a'
14119 dynamic_linker='OS/2 ld.exe'
14120 shlibpath_var=LIBPATH
14121 ;;
14122
14123osf3* | osf4* | osf5*)
14124 version_type=osf
14125 need_lib_prefix=no
14126 need_version=no
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14132 ;;
14133
14134sco3.2v5*)
14135 version_type=osf
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 ;;
14140
14141solaris*)
14142 version_type=linux
14143 need_lib_prefix=no
14144 need_version=no
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=yes
14149 hardcode_into_libs=yes
14150 # ldd complains unless libraries are executable
14151 postinstall_cmds='chmod +x $lib'
14152 ;;
14153
14154sunos4*)
14155 version_type=sunos
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes
14160 if test "$with_gnu_ld" = yes; then
14161 need_lib_prefix=no
14162 fi
14163 need_version=yes
14164 ;;
14165
14166sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14167 version_type=linux
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 case $host_vendor in
14172 sni)
14173 shlibpath_overrides_runpath=no
14174 need_lib_prefix=no
14175 export_dynamic_flag_spec='${wl}-Blargedynsym'
14176 runpath_var=LD_RUN_PATH
14177 ;;
14178 siemens)
14179 need_lib_prefix=no
14180 ;;
14181 motorola)
14182 need_lib_prefix=no
14183 need_version=no
14184 shlibpath_overrides_runpath=no
14185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14186 ;;
14187 esac
14188 ;;
14189
14190sysv4*MP*)
14191 if test -d /usr/nec ;then
14192 version_type=linux
14193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14194 soname_spec='$libname${shared_ext}.$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 fi
14197 ;;
14198
14199uts4*)
14200 version_type=linux
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 ;;
14205
14206*)
14207 dynamic_linker=no
14208 ;;
14209esac
14210echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211echo "${ECHO_T}$dynamic_linker" >&6
14212test "$dynamic_linker" = no && can_build_shared=no
14213
14214echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14215echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14216hardcode_action_F77=
14217if test -n "$hardcode_libdir_flag_spec_F77" || \
14218 test -n "$runpath_var F77" || \
14219 test "X$hardcode_automatic_F77"="Xyes" ; then
14220
14221 # We can hardcode non-existant directories.
14222 if test "$hardcode_direct_F77" != no &&
14223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14224 # have to relink, otherwise we might link with an installed library
14225 # when we should be linking with a yet-to-be-installed one
14226 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14227 test "$hardcode_minus_L_F77" != no; then
14228 # Linking always hardcodes the temporary library directory.
14229 hardcode_action_F77=relink
14230 else
14231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14232 hardcode_action_F77=immediate
14233 fi
14234else
14235 # We cannot hardcode anything, or else we can only hardcode existing
14236 # directories.
14237 hardcode_action_F77=unsupported
14238fi
14239echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14240echo "${ECHO_T}$hardcode_action_F77" >&6
14241
14242if test "$hardcode_action_F77" = relink; then
14243 # Fast installation is not supported
14244 enable_fast_install=no
14245elif test "$shlibpath_overrides_runpath" = yes ||
14246 test "$enable_shared" = no; then
14247 # Fast installation is not necessary
14248 enable_fast_install=needless
14249fi
14250
14251striplib=
14252old_striplib=
14253echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14254echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14255if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14258 echo "$as_me:$LINENO: result: yes" >&5
14259echo "${ECHO_T}yes" >&6
14260else
14261# FIXME - insert some real tests, host_os isn't really good enough
14262 case $host_os in
14263 darwin*)
14264 if test -n "$STRIP" ; then
14265 striplib="$STRIP -x"
14266 echo "$as_me:$LINENO: result: yes" >&5
14267echo "${ECHO_T}yes" >&6
14268 else
14269 echo "$as_me:$LINENO: result: no" >&5
14270echo "${ECHO_T}no" >&6
14271fi
14272 ;;
14273 *)
14274 echo "$as_me:$LINENO: result: no" >&5
14275echo "${ECHO_T}no" >&6
14276 ;;
14277 esac
14278fi
14279
14280
14281
14282# The else clause should only fire when bootstrapping the
14283# libtool distribution, otherwise you forgot to ship ltmain.sh
14284# with your package, and you will get complaints that there are
14285# no rules to generate ltmain.sh.
14286if test -f "$ltmain"; then
14287 # See if we are running on zsh, and set the options which allow our commands through
14288 # without removal of \ escapes.
14289 if test -n "${ZSH_VERSION+set}" ; then
14290 setopt NO_GLOB_SUBST
14291 fi
14292 # Now quote all the things that may contain metacharacters while being
14293 # careful not to overquote the AC_SUBSTed values. We take copies of the
14294 # variables and quote the copies for generation of the libtool script.
14295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14296 SED SHELL STRIP \
14297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14299 deplibs_check_method reload_flag reload_cmds need_locks \
14300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14301 lt_cv_sys_global_symbol_to_c_name_address \
14302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14303 old_postinstall_cmds old_postuninstall_cmds \
14304 compiler_F77 \
14305 CC_F77 \
14306 LD_F77 \
14307 lt_prog_compiler_wl_F77 \
14308 lt_prog_compiler_pic_F77 \
14309 lt_prog_compiler_static_F77 \
14310 lt_prog_compiler_no_builtin_flag_F77 \
14311 export_dynamic_flag_spec_F77 \
14312 thread_safe_flag_spec_F77 \
14313 whole_archive_flag_spec_F77 \
14314 enable_shared_with_static_runtimes_F77 \
14315 old_archive_cmds_F77 \
14316 old_archive_from_new_cmds_F77 \
14317 predep_objects_F77 \
14318 postdep_objects_F77 \
14319 predeps_F77 \
14320 postdeps_F77 \
14321 compiler_lib_search_path_F77 \
14322 archive_cmds_F77 \
14323 archive_expsym_cmds_F77 \
14324 postinstall_cmds_F77 \
14325 postuninstall_cmds_F77 \
14326 old_archive_from_expsyms_cmds_F77 \
14327 allow_undefined_flag_F77 \
14328 no_undefined_flag_F77 \
14329 export_symbols_cmds_F77 \
14330 hardcode_libdir_flag_spec_F77 \
14331 hardcode_libdir_flag_spec_ld_F77 \
14332 hardcode_libdir_separator_F77 \
14333 hardcode_automatic_F77 \
14334 module_cmds_F77 \
14335 module_expsym_cmds_F77 \
14336 lt_cv_prog_compiler_c_o_F77 \
14337 exclude_expsyms_F77 \
14338 include_expsyms_F77; do
14339
14340 case $var in
14341 old_archive_cmds_F77 | \
14342 old_archive_from_new_cmds_F77 | \
14343 archive_cmds_F77 | \
14344 archive_expsym_cmds_F77 | \
14345 module_cmds_F77 | \
14346 module_expsym_cmds_F77 | \
14347 old_archive_from_expsyms_cmds_F77 | \
14348 export_symbols_cmds_F77 | \
14349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14350 postinstall_cmds | postuninstall_cmds | \
14351 old_postinstall_cmds | old_postuninstall_cmds | \
14352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14353 # Double-quote double-evaled strings.
14354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14355 ;;
14356 *)
14357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14358 ;;
14359 esac
14360 done
14361
14362 case $lt_echo in
14363 *'\$0 --fallback-echo"')
14364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14365 ;;
14366 esac
14367
14368cfgfile="$ofile"
14369
14370 cat <<__EOF__ >> "$cfgfile"
14371# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14372
14373# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14374
14375# Shell to use when invoking shell scripts.
14376SHELL=$lt_SHELL
14377
14378# Whether or not to build shared libraries.
14379build_libtool_libs=$enable_shared
14380
14381# Whether or not to build static libraries.
14382build_old_libs=$enable_static
14383
14384# Whether or not to add -lc for building shared libraries.
14385build_libtool_need_lc=$archive_cmds_need_lc_F77
14386
14387# Whether or not to disallow shared libs when runtime libs are static
14388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14389
14390# Whether or not to optimize for fast installation.
14391fast_install=$enable_fast_install
14392
14393# The host system.
14394host_alias=$host_alias
14395host=$host
14396
14397# An echo program that does not interpret backslashes.
14398echo=$lt_echo
14399
14400# The archiver.
14401AR=$lt_AR
14402AR_FLAGS=$lt_AR_FLAGS
14403
14404# A C compiler.
14405LTCC=$lt_LTCC
14406
14407# A language-specific compiler.
14408CC=$lt_compiler_F77
14409
14410# Is the compiler the GNU C compiler?
14411with_gcc=$GCC_F77
14412
14413# An ERE matcher.
14414EGREP=$lt_EGREP
14415
14416# The linker used to build libraries.
14417LD=$lt_LD_F77
14418
14419# Whether we need hard or soft links.
14420LN_S=$lt_LN_S
14421
14422# A BSD-compatible nm program.
14423NM=$lt_NM
14424
14425# A symbol stripping program
14426STRIP=$lt_STRIP
14427
14428# Used to examine libraries when file_magic_cmd begins "file"
14429MAGIC_CMD=$MAGIC_CMD
14430
14431# Used on cygwin: DLL creation program.
14432DLLTOOL="$DLLTOOL"
14433
14434# Used on cygwin: object dumper.
14435OBJDUMP="$OBJDUMP"
14436
14437# Used on cygwin: assembler.
14438AS="$AS"
14439
14440# The name of the directory that contains temporary libtool files.
14441objdir=$objdir
14442
14443# How to create reloadable object files.
14444reload_flag=$lt_reload_flag
14445reload_cmds=$lt_reload_cmds
14446
14447# How to pass a linker flag through the compiler.
14448wl=$lt_lt_prog_compiler_wl_F77
14449
14450# Object file suffix (normally "o").
14451objext="$ac_objext"
14452
14453# Old archive suffix (normally "a").
14454libext="$libext"
14455
14456# Shared library suffix (normally ".so").
14457shrext='$shrext'
14458
14459# Executable file suffix (normally "").
14460exeext="$exeext"
14461
14462# Additional compiler flags for building library objects.
14463pic_flag=$lt_lt_prog_compiler_pic_F77
14464pic_mode=$pic_mode
14465
14466# What is the maximum length of a command?
14467max_cmd_len=$lt_cv_sys_max_cmd_len
14468
14469# Does compiler simultaneously support -c and -o options?
14470compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14471
14472# Must we lock files when doing compilation ?
14473need_locks=$lt_need_locks
14474
14475# Do we need the lib prefix for modules?
14476need_lib_prefix=$need_lib_prefix
14477
14478# Do we need a version for libraries?
14479need_version=$need_version
14480
14481# Whether dlopen is supported.
14482dlopen_support=$enable_dlopen
14483
14484# Whether dlopen of programs is supported.
14485dlopen_self=$enable_dlopen_self
14486
14487# Whether dlopen of statically linked programs is supported.
14488dlopen_self_static=$enable_dlopen_self_static
14489
14490# Compiler flag to prevent dynamic linking.
14491link_static_flag=$lt_lt_prog_compiler_static_F77
14492
14493# Compiler flag to turn off builtin functions.
14494no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14495
14496# Compiler flag to allow reflexive dlopens.
14497export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14498
14499# Compiler flag to generate shared objects directly from archives.
14500whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14501
14502# Compiler flag to generate thread-safe objects.
14503thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14504
14505# Library versioning type.
14506version_type=$version_type
14507
14508# Format of library name prefix.
14509libname_spec=$lt_libname_spec
14510
14511# List of archive names. First name is the real one, the rest are links.
14512# The last name is the one that the linker finds with -lNAME.
14513library_names_spec=$lt_library_names_spec
14514
14515# The coded name of the library, if different from the real name.
14516soname_spec=$lt_soname_spec
14517
14518# Commands used to build and install an old-style archive.
14519RANLIB=$lt_RANLIB
14520old_archive_cmds=$lt_old_archive_cmds_F77
14521old_postinstall_cmds=$lt_old_postinstall_cmds
14522old_postuninstall_cmds=$lt_old_postuninstall_cmds
14523
14524# Create an old-style archive from a shared archive.
14525old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14526
14527# Create a temporary old-style archive to link instead of a shared archive.
14528old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14529
14530# Commands used to build and install a shared archive.
14531archive_cmds=$lt_archive_cmds_F77
14532archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14533postinstall_cmds=$lt_postinstall_cmds
14534postuninstall_cmds=$lt_postuninstall_cmds
14535
14536# Commands used to build a loadable module (assumed same as above if empty)
14537module_cmds=$lt_module_cmds_F77
14538module_expsym_cmds=$lt_module_expsym_cmds_F77
14539
14540# Commands to strip libraries.
14541old_striplib=$lt_old_striplib
14542striplib=$lt_striplib
14543
14544# Dependencies to place before the objects being linked to create a
14545# shared library.
14546predep_objects=$lt_predep_objects_F77
14547
14548# Dependencies to place after the objects being linked to create a
14549# shared library.
14550postdep_objects=$lt_postdep_objects_F77
14551
14552# Dependencies to place before the objects being linked to create a
14553# shared library.
14554predeps=$lt_predeps_F77
14555
14556# Dependencies to place after the objects being linked to create a
14557# shared library.
14558postdeps=$lt_postdeps_F77
14559
14560# The library search path used internally by the compiler when linking
14561# a shared library.
14562compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14563
14564# Method to check whether dependent libraries are shared objects.
14565deplibs_check_method=$lt_deplibs_check_method
14566
14567# Command to use when deplibs_check_method == file_magic.
14568file_magic_cmd=$lt_file_magic_cmd
14569
14570# Flag that allows shared libraries with undefined symbols to be built.
14571allow_undefined_flag=$lt_allow_undefined_flag_F77
14572
14573# Flag that forces no undefined symbols.
14574no_undefined_flag=$lt_no_undefined_flag_F77
14575
14576# Commands used to finish a libtool library installation in a directory.
14577finish_cmds=$lt_finish_cmds
14578
14579# Same as above, but a single script fragment to be evaled but not shown.
14580finish_eval=$lt_finish_eval
14581
14582# Take the output of nm and produce a listing of raw symbols and C names.
14583global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14584
14585# Transform the output of nm in a proper C declaration
14586global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14587
14588# Transform the output of nm in a C name address pair
14589global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14590
14591# This is the shared library runtime path variable.
14592runpath_var=$runpath_var
14593
14594# This is the shared library path variable.
14595shlibpath_var=$shlibpath_var
14596
14597# Is shlibpath searched before the hard-coded library search path?
14598shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14599
14600# How to hardcode a shared library path into an executable.
14601hardcode_action=$hardcode_action_F77
14602
14603# Whether we should hardcode library paths into libraries.
14604hardcode_into_libs=$hardcode_into_libs
14605
14606# Flag to hardcode \$libdir into a binary during linking.
14607# This must work even if \$libdir does not exist.
14608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14609
14610# If ld is used when linking, flag to hardcode \$libdir into
14611# a binary during linking. This must work even if \$libdir does
14612# not exist.
14613hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14614
14615# Whether we need a single -rpath flag with a separated argument.
14616hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14617
14618# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14619# resulting binary.
14620hardcode_direct=$hardcode_direct_F77
14621
14622# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14623# resulting binary.
14624hardcode_minus_L=$hardcode_minus_L_F77
14625
14626# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14627# the resulting binary.
14628hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14629
14630# Set to yes if building a shared library automatically hardcodes DIR into the library
14631# and all subsequent libraries and executables linked against it.
14632hardcode_automatic=$hardcode_automatic_F77
14633
14634# Variables whose values should be saved in libtool wrapper scripts and
14635# restored at relink time.
14636variables_saved_for_relink="$variables_saved_for_relink"
14637
14638# Whether libtool must link a program against all its dependency libraries.
14639link_all_deplibs=$link_all_deplibs_F77
14640
14641# Compile-time system search path for libraries
14642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14643
14644# Run-time system search path for libraries
14645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14646
14647# Fix the shell variable \$srcfile for the compiler.
14648fix_srcfile_path="$fix_srcfile_path_F77"
14649
14650# Set to yes if exported symbols are required.
14651always_export_symbols=$always_export_symbols_F77
14652
14653# The commands to list exported symbols.
14654export_symbols_cmds=$lt_export_symbols_cmds_F77
14655
14656# The commands to extract the exported symbol list from a shared archive.
14657extract_expsyms_cmds=$lt_extract_expsyms_cmds
14658
14659# Symbols that should not be listed in the preloaded symbols.
14660exclude_expsyms=$lt_exclude_expsyms_F77
14661
14662# Symbols that must always be exported.
14663include_expsyms=$lt_include_expsyms_F77
14664
14665# ### END LIBTOOL TAG CONFIG: $tagname
14666
14667__EOF__
14668
14669
14670else
14671 # If there is no Makefile yet, we rely on a make rule to execute
14672 # `config.status --recheck' to rerun these tests and create the
14673 # libtool script then.
14674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14675 if test -f "$ltmain_in"; then
14676 test -f Makefile && make "$ltmain"
14677 fi
14678fi
14679
14680
14681ac_ext=c
14682ac_cpp='$CPP $CPPFLAGS'
14683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14685ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686
14687CC="$lt_save_CC"
14688
14689 else
14690 tagname=""
14691 fi
14692 ;;
14693
14694 GCJ)
14695 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14696
14697
14698
14699# Source file extension for Java test sources.
14700ac_ext=java
14701
14702# Object file extension for compiled Java test sources.
14703objext=o
14704objext_GCJ=$objext
14705
14706# Code to be used in simple compile tests
14707lt_simple_compile_test_code="class foo {}\n"
14708
14709# Code to be used in simple link tests
14710lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14711
14712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14713
14714# If no C compiler was specified, use CC.
14715LTCC=${LTCC-"$CC"}
14716
14717# Allow CC to be a program name with arguments.
14718compiler=$CC
14719
14720
14721# Allow CC to be a program name with arguments.
14722lt_save_CC="$CC"
14723CC=${GCJ-"gcj"}
14724compiler=$CC
14725compiler_GCJ=$CC
14726
14727# GCJ did not exist at the time GCC didn't implicitly link libc in.
14728archive_cmds_need_lc_GCJ=no
14729
14730
14731lt_prog_compiler_no_builtin_flag_GCJ=
14732
14733if test "$GCC" = yes; then
14734 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14735
14736
14737echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14738echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14739if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 lt_cv_prog_compiler_rtti_exceptions=no
14743 ac_outfile=conftest.$ac_objext
14744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14745 lt_compiler_flag="-fno-rtti -fno-exceptions"
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 # The option is referenced via a variable to avoid confusing sed.
14751 lt_compile=`echo "$ac_compile" | $SED \
14752 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000014755 (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014756 (eval "$lt_compile" 2>conftest.err)
14757 ac_status=$?
14758 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000014759 echo "$as_me:14759: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014760 if (exit $ac_status) && test -s "$ac_outfile"; then
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings
14763 if test ! -s conftest.err; then
14764 lt_cv_prog_compiler_rtti_exceptions=yes
14765 fi
14766 fi
14767 $rm conftest*
14768
14769fi
14770echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14771echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14772
14773if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14774 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14775else
14776 :
14777fi
14778
14779fi
14780
14781lt_prog_compiler_wl_GCJ=
14782lt_prog_compiler_pic_GCJ=
14783lt_prog_compiler_static_GCJ=
14784
14785echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14786echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14787
14788 if test "$GCC" = yes; then
14789 lt_prog_compiler_wl_GCJ='-Wl,'
14790 lt_prog_compiler_static_GCJ='-static'
14791
14792 case $host_os in
14793 aix*)
14794 # All AIX code is PIC.
14795 if test "$host_cpu" = ia64; then
14796 # AIX 5 now supports IA64 processor
14797 lt_prog_compiler_static_GCJ='-Bstatic'
14798 fi
14799 ;;
14800
14801 amigaos*)
14802 # FIXME: we need at least 68020 code to build shared libraries, but
14803 # adding the `-m68020' flag to GCC prevents building anything better,
14804 # like `-m68040'.
14805 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14806 ;;
14807
14808 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14809 # PIC is the default for these OSes.
14810 ;;
14811
14812 mingw* | pw32* | os2*)
14813 # This hack is so that the source file can tell whether it is being
14814 # built for inclusion in a dll (and should export symbols for example).
14815 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14816 ;;
14817
14818 darwin* | rhapsody*)
14819 # PIC is the default on this platform
14820 # Common symbols not allowed in MH_DYLIB files
14821 lt_prog_compiler_pic_GCJ='-fno-common'
14822 ;;
14823
14824 msdosdjgpp*)
14825 # Just because we use GCC doesn't mean we suddenly get shared libraries
14826 # on systems that don't support them.
14827 lt_prog_compiler_can_build_shared_GCJ=no
14828 enable_shared=no
14829 ;;
14830
14831 sysv4*MP*)
14832 if test -d /usr/nec; then
14833 lt_prog_compiler_pic_GCJ=-Kconform_pic
14834 fi
14835 ;;
14836
14837 hpux*)
14838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14839 # not for PA HP-UX.
14840 case "$host_cpu" in
14841 hppa*64*|ia64*)
14842 # +Z the default
14843 ;;
14844 *)
14845 lt_prog_compiler_pic_GCJ='-fPIC'
14846 ;;
14847 esac
14848 ;;
14849
14850 *)
14851 lt_prog_compiler_pic_GCJ='-fPIC'
14852 ;;
14853 esac
14854 else
14855 # PORTME Check for flag to pass linker flags through the system compiler.
14856 case $host_os in
14857 aix*)
14858 lt_prog_compiler_wl_GCJ='-Wl,'
14859 if test "$host_cpu" = ia64; then
14860 # AIX 5 now supports IA64 processor
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14862 else
14863 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14864 fi
14865 ;;
14866
14867 mingw* | pw32* | os2*)
14868 # This hack is so that the source file can tell whether it is being
14869 # built for inclusion in a dll (and should export symbols for example).
14870 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14871 ;;
14872
14873 hpux9* | hpux10* | hpux11*)
14874 lt_prog_compiler_wl_GCJ='-Wl,'
14875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14876 # not for PA HP-UX.
14877 case "$host_cpu" in
14878 hppa*64*|ia64*)
14879 # +Z the default
14880 ;;
14881 *)
14882 lt_prog_compiler_pic_GCJ='+Z'
14883 ;;
14884 esac
14885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14886 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14887 ;;
14888
14889 irix5* | irix6* | nonstopux*)
14890 lt_prog_compiler_wl_GCJ='-Wl,'
14891 # PIC (with -KPIC) is the default.
14892 lt_prog_compiler_static_GCJ='-non_shared'
14893 ;;
14894
14895 newsos6)
14896 lt_prog_compiler_pic_GCJ='-KPIC'
14897 lt_prog_compiler_static_GCJ='-Bstatic'
14898 ;;
14899
14900 linux*)
14901 case $CC in
14902 icc* | ecc*)
14903 lt_prog_compiler_wl_GCJ='-Wl,'
14904 lt_prog_compiler_pic_GCJ='-KPIC'
14905 lt_prog_compiler_static_GCJ='-static'
14906 ;;
14907 ccc*)
14908 lt_prog_compiler_wl_GCJ='-Wl,'
14909 # All Alpha code is PIC.
14910 lt_prog_compiler_static_GCJ='-non_shared'
14911 ;;
14912 esac
14913 ;;
14914
14915 osf3* | osf4* | osf5*)
14916 lt_prog_compiler_wl_GCJ='-Wl,'
14917 # All OSF/1 code is PIC.
14918 lt_prog_compiler_static_GCJ='-non_shared'
14919 ;;
14920
14921 sco3.2v5*)
14922 lt_prog_compiler_pic_GCJ='-Kpic'
14923 lt_prog_compiler_static_GCJ='-dn'
14924 ;;
14925
14926 solaris*)
14927 lt_prog_compiler_wl_GCJ='-Wl,'
14928 lt_prog_compiler_pic_GCJ='-KPIC'
14929 lt_prog_compiler_static_GCJ='-Bstatic'
14930 ;;
14931
14932 sunos4*)
14933 lt_prog_compiler_wl_GCJ='-Qoption ld '
14934 lt_prog_compiler_pic_GCJ='-PIC'
14935 lt_prog_compiler_static_GCJ='-Bstatic'
14936 ;;
14937
14938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14939 lt_prog_compiler_wl_GCJ='-Wl,'
14940 lt_prog_compiler_pic_GCJ='-KPIC'
14941 lt_prog_compiler_static_GCJ='-Bstatic'
14942 ;;
14943
14944 sysv4*MP*)
14945 if test -d /usr/nec ;then
14946 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14947 lt_prog_compiler_static_GCJ='-Bstatic'
14948 fi
14949 ;;
14950
14951 uts4*)
14952 lt_prog_compiler_pic_GCJ='-pic'
14953 lt_prog_compiler_static_GCJ='-Bstatic'
14954 ;;
14955
14956 *)
14957 lt_prog_compiler_can_build_shared_GCJ=no
14958 ;;
14959 esac
14960 fi
14961
14962echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14963echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14964
14965#
14966# Check to make sure the PIC flag actually works.
14967#
14968if test -n "$lt_prog_compiler_pic_GCJ"; then
14969
14970echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14971echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14972if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
14975 lt_prog_compiler_pic_works_GCJ=no
14976 ac_outfile=conftest.$ac_objext
14977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14978 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14979 # Insert the option either (1) after the last *FLAGS variable, or
14980 # (2) before a word containing "conftest.", or (3) at the end.
14981 # Note that $ac_compile itself does not contain backslashes and begins
14982 # with a dollar sign (not a hyphen), so the echo should work correctly.
14983 # The option is referenced via a variable to avoid confusing sed.
14984 lt_compile=`echo "$ac_compile" | $SED \
14985 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14987 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000014988 (eval echo "\"\$as_me:14988: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014989 (eval "$lt_compile" 2>conftest.err)
14990 ac_status=$?
14991 cat conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000014992 echo "$as_me:14992: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014993 if (exit $ac_status) && test -s "$ac_outfile"; then
14994 # The compiler can only warn and ignore the option if not recognized
14995 # So say no if there are warnings
14996 if test ! -s conftest.err; then
14997 lt_prog_compiler_pic_works_GCJ=yes
14998 fi
14999 fi
15000 $rm conftest*
15001
15002fi
15003echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15004echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15005
15006if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15007 case $lt_prog_compiler_pic_GCJ in
15008 "" | " "*) ;;
15009 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15010 esac
15011else
15012 lt_prog_compiler_pic_GCJ=
15013 lt_prog_compiler_can_build_shared_GCJ=no
15014fi
15015
15016fi
15017case "$host_os" in
15018 # For platforms which do not support PIC, -DPIC is meaningless:
15019 *djgpp*)
15020 lt_prog_compiler_pic_GCJ=
15021 ;;
15022 *)
15023 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15024 ;;
15025esac
15026
15027echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15028echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15029if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031else
15032 lt_cv_prog_compiler_c_o_GCJ=no
15033 $rm -r conftest 2>/dev/null
15034 mkdir conftest
15035 cd conftest
15036 mkdir out
15037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15038
15039 lt_compiler_flag="-o out/conftest2.$ac_objext"
15040 # Insert the option either (1) after the last *FLAGS variable, or
15041 # (2) before a word containing "conftest.", or (3) at the end.
15042 # Note that $ac_compile itself does not contain backslashes and begins
15043 # with a dollar sign (not a hyphen), so the echo should work correctly.
15044 lt_compile=`echo "$ac_compile" | $SED \
15045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15047 -e 's:$: $lt_compiler_flag:'`
drh94e4f822006-02-15 02:00:25 +000015048 (eval echo "\"\$as_me:15048: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015049 (eval "$lt_compile" 2>out/conftest.err)
15050 ac_status=$?
15051 cat out/conftest.err >&5
drh94e4f822006-02-15 02:00:25 +000015052 echo "$as_me:15052: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15054 then
15055 # The compiler can only warn and ignore the option if not recognized
15056 # So say no if there are warnings
15057 if test ! -s out/conftest.err; then
15058 lt_cv_prog_compiler_c_o_GCJ=yes
15059 fi
15060 fi
15061 chmod u+w .
15062 $rm conftest*
15063 # SGI C++ compiler will create directory out/ii_files/ for
15064 # template instantiation
15065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15066 $rm out/* && rmdir out
15067 cd ..
15068 rmdir conftest
15069 $rm conftest*
15070
15071fi
15072echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15073echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15074
15075
15076hard_links="nottested"
15077if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15078 # do not overwrite the value of need_locks provided by the user
15079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15080echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15081 hard_links=yes
15082 $rm conftest*
15083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15084 touch conftest.a
15085 ln conftest.a conftest.b 2>&5 || hard_links=no
15086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15087 echo "$as_me:$LINENO: result: $hard_links" >&5
15088echo "${ECHO_T}$hard_links" >&6
15089 if test "$hard_links" = no; then
15090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15091echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15092 need_locks=warn
15093 fi
15094else
15095 need_locks=no
15096fi
15097
15098echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15099echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15100
15101 runpath_var=
15102 allow_undefined_flag_GCJ=
15103 enable_shared_with_static_runtimes_GCJ=no
15104 archive_cmds_GCJ=
15105 archive_expsym_cmds_GCJ=
15106 old_archive_From_new_cmds_GCJ=
15107 old_archive_from_expsyms_cmds_GCJ=
15108 export_dynamic_flag_spec_GCJ=
15109 whole_archive_flag_spec_GCJ=
15110 thread_safe_flag_spec_GCJ=
15111 hardcode_libdir_flag_spec_GCJ=
15112 hardcode_libdir_flag_spec_ld_GCJ=
15113 hardcode_libdir_separator_GCJ=
15114 hardcode_direct_GCJ=no
15115 hardcode_minus_L_GCJ=no
15116 hardcode_shlibpath_var_GCJ=unsupported
15117 link_all_deplibs_GCJ=unknown
15118 hardcode_automatic_GCJ=no
15119 module_cmds_GCJ=
15120 module_expsym_cmds_GCJ=
15121 always_export_symbols_GCJ=no
15122 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15123 # include_expsyms should be a list of space-separated symbols to be *always*
15124 # included in the symbol list
15125 include_expsyms_GCJ=
15126 # exclude_expsyms can be an extended regexp of symbols to exclude
15127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15129 # as well as any symbol that contains `d'.
15130 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15132 # platforms (ab)use it in PIC code, but their linkers get confused if
15133 # the symbol is explicitly referenced. Since portable code cannot
15134 # rely on this symbol name, it's probably fine to never include it in
15135 # preloaded symbol tables.
15136 extract_expsyms_cmds=
15137
15138 case $host_os in
15139 cygwin* | mingw* | pw32*)
15140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15141 # When not using gcc, we currently assume that we are using
15142 # Microsoft Visual C++.
15143 if test "$GCC" != yes; then
15144 with_gnu_ld=no
15145 fi
15146 ;;
15147 openbsd*)
15148 with_gnu_ld=no
15149 ;;
15150 esac
15151
15152 ld_shlibs_GCJ=yes
15153 if test "$with_gnu_ld" = yes; then
15154 # If archive_cmds runs LD, not CC, wlarc should be empty
15155 wlarc='${wl}'
15156
15157 # See if GNU ld supports shared libraries.
15158 case $host_os in
15159 aix3* | aix4* | aix5*)
15160 # On AIX/PPC, the GNU linker is very broken
15161 if test "$host_cpu" != ia64; then
15162 ld_shlibs_GCJ=no
15163 cat <<EOF 1>&2
15164
15165*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15166*** to be unable to reliably create shared libraries on AIX.
15167*** Therefore, libtool is disabling shared libraries support. If you
15168*** really care for shared libraries, you may want to modify your PATH
15169*** so that a non-GNU linker is found, and then restart.
15170
15171EOF
15172 fi
15173 ;;
15174
15175 amigaos*)
15176 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)'
15177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15178 hardcode_minus_L_GCJ=yes
15179
15180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15181 # that the semantics of dynamic libraries on AmigaOS, at least up
15182 # to version 4, is to share data among multiple programs linked
15183 # with the same dynamic library. Since this doesn't match the
15184 # behavior of shared libraries on other platforms, we can't use
15185 # them.
15186 ld_shlibs_GCJ=no
15187 ;;
15188
15189 beos*)
15190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15191 allow_undefined_flag_GCJ=unsupported
15192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15193 # support --undefined. This deserves some investigation. FIXME
15194 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 else
15196 ld_shlibs_GCJ=no
15197 fi
15198 ;;
15199
15200 cygwin* | mingw* | pw32*)
15201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15202 # as there is no search path for DLLs.
15203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15204 allow_undefined_flag_GCJ=unsupported
15205 always_export_symbols_GCJ=no
15206 enable_shared_with_static_runtimes_GCJ=yes
15207 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15208
15209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15210 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15211 # If the export-symbols file already is a .def file (1st line
15212 # is EXPORTS), use it as is; otherwise, prepend...
15213 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15214 cp $export_symbols $output_objdir/$soname.def;
15215 else
15216 echo EXPORTS > $output_objdir/$soname.def;
15217 cat $export_symbols >> $output_objdir/$soname.def;
15218 fi~
15219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15220 else
15221 ld_shlibs=no
15222 fi
15223 ;;
15224
15225 netbsd* | knetbsd*-gnu)
15226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15227 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15228 wlarc=
15229 else
15230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15232 fi
15233 ;;
15234
15235 solaris* | sysv5*)
15236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15237 ld_shlibs_GCJ=no
15238 cat <<EOF 1>&2
15239
15240*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15241*** create shared libraries on Solaris systems. Therefore, libtool
15242*** is disabling shared libraries support. We urge you to upgrade GNU
15243*** binutils to release 2.9.1 or newer. Another option is to modify
15244*** your PATH or compiler configuration so that the native linker is
15245*** used, and then restart.
15246
15247EOF
15248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15251 else
15252 ld_shlibs_GCJ=no
15253 fi
15254 ;;
15255
15256 sunos4*)
15257 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15258 wlarc=
15259 hardcode_direct_GCJ=yes
15260 hardcode_shlibpath_var_GCJ=no
15261 ;;
15262
15263 linux*)
15264 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15265 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266 archive_cmds_GCJ="$tmp_archive_cmds"
15267 supports_anon_versioning=no
15268 case `$LD -v 2>/dev/null` in
15269 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15272 *\ 2.11.*) ;; # other 2.11 versions
15273 *) supports_anon_versioning=yes ;;
15274 esac
15275 if test $supports_anon_versioning = yes; then
15276 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15277cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15278$echo "local: *; };" >> $output_objdir/$libname.ver~
15279 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15280 else
15281 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15282 fi
15283 else
15284 ld_shlibs_GCJ=no
15285 fi
15286 ;;
15287
15288 *)
15289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15290 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15291 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15292 else
15293 ld_shlibs_GCJ=no
15294 fi
15295 ;;
15296 esac
15297
15298 if test "$ld_shlibs_GCJ" = yes; then
15299 runpath_var=LD_RUN_PATH
15300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15302 # ancient GNU ld didn't support --whole-archive et. al.
15303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15305 else
15306 whole_archive_flag_spec_GCJ=
15307 fi
15308 fi
15309 else
15310 # PORTME fill in a description of your system's linker (not GNU ld)
15311 case $host_os in
15312 aix3*)
15313 allow_undefined_flag_GCJ=unsupported
15314 always_export_symbols_GCJ=yes
15315 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'
15316 # Note: this linker hardcodes the directories in LIBPATH if there
15317 # are no directories specified by -L.
15318 hardcode_minus_L_GCJ=yes
15319 if test "$GCC" = yes && test -z "$link_static_flag"; then
15320 # Neither direct hardcoding nor static linking is supported with a
15321 # broken collect2.
15322 hardcode_direct_GCJ=unsupported
15323 fi
15324 ;;
15325
15326 aix4* | aix5*)
15327 if test "$host_cpu" = ia64; then
15328 # On IA64, the linker does run time linking by default, so we don't
15329 # have to do anything special.
15330 aix_use_runtimelinking=no
15331 exp_sym_flag='-Bexport'
15332 no_entry_flag=""
15333 else
15334 # If we're using GNU nm, then we don't want the "-C" option.
15335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15336 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15337 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'
15338 else
15339 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'
15340 fi
15341 aix_use_runtimelinking=no
15342
15343 # Test if we are trying to use run time linking or normal
15344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345 # need to do runtime linking.
15346 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15347 for ld_flag in $LDFLAGS; do
15348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15349 aix_use_runtimelinking=yes
15350 break
15351 fi
15352 done
15353 esac
15354
15355 exp_sym_flag='-bexport'
15356 no_entry_flag='-bnoentry'
15357 fi
15358
15359 # When large executables or shared objects are built, AIX ld can
15360 # have problems creating the table of contents. If linking a library
15361 # or program results in "error TOC overflow" add -mminimal-toc to
15362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15364
15365 archive_cmds_GCJ=''
15366 hardcode_direct_GCJ=yes
15367 hardcode_libdir_separator_GCJ=':'
15368 link_all_deplibs_GCJ=yes
15369
15370 if test "$GCC" = yes; then
15371 case $host_os in aix4.012|aix4.012.*)
15372 # We only want to do this on AIX 4.2 and lower, the check
15373 # below for broken collect2 doesn't work under 4.3+
15374 collect2name=`${CC} -print-prog-name=collect2`
15375 if test -f "$collect2name" && \
15376 strings "$collect2name" | grep resolve_lib_name >/dev/null
15377 then
15378 # We have reworked collect2
15379 hardcode_direct_GCJ=yes
15380 else
15381 # We have old collect2
15382 hardcode_direct_GCJ=unsupported
15383 # It fails to find uninstalled libraries when the uninstalled
15384 # path is not listed in the libpath. Setting hardcode_minus_L
15385 # to unsupported forces relinking
15386 hardcode_minus_L_GCJ=yes
15387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15388 hardcode_libdir_separator_GCJ=
15389 fi
15390 esac
15391 shared_flag='-shared'
15392 else
15393 # not using gcc
15394 if test "$host_cpu" = ia64; then
15395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15396 # chokes on -Wl,-G. The following line is correct:
15397 shared_flag='-G'
15398 else
15399 if test "$aix_use_runtimelinking" = yes; then
15400 shared_flag='${wl}-G'
15401 else
15402 shared_flag='${wl}-bM:SRE'
15403 fi
15404 fi
15405 fi
15406
15407 # It seems that -bexpall does not export symbols beginning with
15408 # underscore (_), so it is better to generate a list of symbols to export.
15409 always_export_symbols_GCJ=yes
15410 if test "$aix_use_runtimelinking" = yes; then
15411 # Warning - without using the other runtime loading flags (-brtl),
15412 # -berok will link without error, but may produce a broken library.
15413 allow_undefined_flag_GCJ='-berok'
15414 # Determine the default libpath from the value encoded in an empty executable.
15415 cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421
15422int
15423main ()
15424{
15425
15426 ;
15427 return 0;
15428}
15429_ACEOF
15430rm -f conftest.$ac_objext conftest$ac_exeext
15431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15432 (eval $ac_link) 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015439 { ac_try='test -z "$ac_c_werror_flag"
15440 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; } &&
15446 { ac_try='test -s conftest$ac_exeext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452
15453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15454}'`
15455# Check for a 64-bit object if we didn't find anything.
15456if 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; }
15457}'`; fi
15458else
15459 echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462fi
15463rm -f conftest.err conftest.$ac_objext \
15464 conftest$ac_exeext conftest.$ac_ext
15465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15466
15467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15468 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"
15469 else
15470 if test "$host_cpu" = ia64; then
15471 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15472 allow_undefined_flag_GCJ="-z nodefs"
15473 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"
15474 else
15475 # Determine the default libpath from the value encoded in an empty executable.
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482
15483int
15484main ()
15485{
15486
15487 ;
15488 return 0;
15489}
15490_ACEOF
15491rm -f conftest.$ac_objext conftest$ac_exeext
15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513
15514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15515}'`
15516# Check for a 64-bit object if we didn't find anything.
15517if 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; }
15518}'`; fi
15519else
15520 echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523fi
15524rm -f conftest.err conftest.$ac_objext \
15525 conftest$ac_exeext conftest.$ac_ext
15526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15527
15528 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15529 # Warning - without using the other run time loading flags,
15530 # -berok will link without error, but may produce a broken library.
15531 no_undefined_flag_GCJ=' ${wl}-bernotok'
15532 allow_undefined_flag_GCJ=' ${wl}-berok'
15533 # -bexpall does not export symbols beginning with underscore (_)
15534 always_export_symbols_GCJ=yes
15535 # Exported symbols can be pulled into shared objects from archives
15536 whole_archive_flag_spec_GCJ=' '
15537 archive_cmds_need_lc_GCJ=yes
15538 # This is similar to how AIX traditionally builds it's shared libraries.
15539 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'
15540 fi
15541 fi
15542 ;;
15543
15544 amigaos*)
15545 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)'
15546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15547 hardcode_minus_L_GCJ=yes
15548 # see comment about different semantics on the GNU ld section
15549 ld_shlibs_GCJ=no
15550 ;;
15551
15552 bsdi4*)
15553 export_dynamic_flag_spec_GCJ=-rdynamic
15554 ;;
15555
15556 cygwin* | mingw* | pw32*)
15557 # When not using gcc, we currently assume that we are using
15558 # Microsoft Visual C++.
15559 # hardcode_libdir_flag_spec is actually meaningless, as there is
15560 # no search path for DLLs.
15561 hardcode_libdir_flag_spec_GCJ=' '
15562 allow_undefined_flag_GCJ=unsupported
15563 # Tell ltmain to make .lib files, not .a files.
15564 libext=lib
15565 # Tell ltmain to make .dll files, not .so files.
15566 shrext=".dll"
15567 # FIXME: Setting linknames here is a bad hack.
15568 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15569 # The linker will automatically build a .lib file if we build a DLL.
15570 old_archive_From_new_cmds_GCJ='true'
15571 # FIXME: Should let the user specify the lib program.
15572 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15573 fix_srcfile_path='`cygpath -w "$srcfile"`'
15574 enable_shared_with_static_runtimes_GCJ=yes
15575 ;;
15576
15577 darwin* | rhapsody*)
15578 if test "$GXX" = yes ; then
15579 archive_cmds_need_lc_GCJ=no
15580 case "$host_os" in
15581 rhapsody* | darwin1.[012])
15582 allow_undefined_flag_GCJ='-undefined suppress'
15583 ;;
15584 *) # Darwin 1.3 on
15585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15586 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15587 else
15588 case ${MACOSX_DEPLOYMENT_TARGET} in
15589 10.[012])
15590 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15591 ;;
15592 10.*)
15593 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15594 ;;
15595 esac
15596 fi
15597 ;;
15598 esac
15599 lt_int_apple_cc_single_mod=no
15600 output_verbose_link_cmd='echo'
15601 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15602 lt_int_apple_cc_single_mod=yes
15603 fi
15604 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15605 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15606 else
15607 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'
15608 fi
15609 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612 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}'
15613 else
15614 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}'
15615 fi
15616 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}'
15617 hardcode_direct_GCJ=no
15618 hardcode_automatic_GCJ=yes
15619 hardcode_shlibpath_var_GCJ=unsupported
15620 whole_archive_flag_spec_GCJ='-all_load $convenience'
15621 link_all_deplibs_GCJ=yes
15622 else
15623 ld_shlibs_GCJ=no
15624 fi
15625 ;;
15626
15627 dgux*)
15628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15630 hardcode_shlibpath_var_GCJ=no
15631 ;;
15632
15633 freebsd1*)
15634 ld_shlibs_GCJ=no
15635 ;;
15636
15637 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15638 # support. Future versions do this automatically, but an explicit c++rt0.o
15639 # does not break anything, and helps significantly (at the cost of a little
15640 # extra space).
15641 freebsd2.2*)
15642 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15643 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15644 hardcode_direct_GCJ=yes
15645 hardcode_shlibpath_var_GCJ=no
15646 ;;
15647
15648 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15649 freebsd2*)
15650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_direct_GCJ=yes
15652 hardcode_minus_L_GCJ=yes
15653 hardcode_shlibpath_var_GCJ=no
15654 ;;
15655
15656 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15657 freebsd* | kfreebsd*-gnu)
15658 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15659 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15660 hardcode_direct_GCJ=yes
15661 hardcode_shlibpath_var_GCJ=no
15662 ;;
15663
15664 hpux9*)
15665 if test "$GCC" = yes; then
15666 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'
15667 else
15668 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'
15669 fi
15670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15671 hardcode_libdir_separator_GCJ=:
15672 hardcode_direct_GCJ=yes
15673
15674 # hardcode_minus_L: Not really in the search PATH,
15675 # but as the default location of the library.
15676 hardcode_minus_L_GCJ=yes
15677 export_dynamic_flag_spec_GCJ='${wl}-E'
15678 ;;
15679
15680 hpux10* | hpux11*)
15681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15682 case "$host_cpu" in
15683 hppa*64*|ia64*)
15684 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685 ;;
15686 *)
15687 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15688 ;;
15689 esac
15690 else
15691 case "$host_cpu" in
15692 hppa*64*|ia64*)
15693 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15694 ;;
15695 *)
15696 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15697 ;;
15698 esac
15699 fi
15700 if test "$with_gnu_ld" = no; then
15701 case "$host_cpu" in
15702 hppa*64*)
15703 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15704 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15705 hardcode_libdir_separator_GCJ=:
15706 hardcode_direct_GCJ=no
15707 hardcode_shlibpath_var_GCJ=no
15708 ;;
15709 ia64*)
15710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15711 hardcode_direct_GCJ=no
15712 hardcode_shlibpath_var_GCJ=no
15713
15714 # hardcode_minus_L: Not really in the search PATH,
15715 # but as the default location of the library.
15716 hardcode_minus_L_GCJ=yes
15717 ;;
15718 *)
15719 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15720 hardcode_libdir_separator_GCJ=:
15721 hardcode_direct_GCJ=yes
15722 export_dynamic_flag_spec_GCJ='${wl}-E'
15723
15724 # hardcode_minus_L: Not really in the search PATH,
15725 # but as the default location of the library.
15726 hardcode_minus_L_GCJ=yes
15727 ;;
15728 esac
15729 fi
15730 ;;
15731
15732 irix5* | irix6* | nonstopux*)
15733 if test "$GCC" = yes; then
15734 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'
15735 else
15736 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'
15737 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15738 fi
15739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15740 hardcode_libdir_separator_GCJ=:
15741 link_all_deplibs_GCJ=yes
15742 ;;
15743
15744 netbsd* | knetbsd*-gnu)
15745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15746 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15747 else
15748 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15749 fi
15750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15751 hardcode_direct_GCJ=yes
15752 hardcode_shlibpath_var_GCJ=no
15753 ;;
15754
15755 newsos6)
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_direct_GCJ=yes
15758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15759 hardcode_libdir_separator_GCJ=:
15760 hardcode_shlibpath_var_GCJ=no
15761 ;;
15762
15763 openbsd*)
15764 hardcode_direct_GCJ=yes
15765 hardcode_shlibpath_var_GCJ=no
15766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15767 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15769 export_dynamic_flag_spec_GCJ='${wl}-E'
15770 else
15771 case $host_os in
15772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775 ;;
15776 *)
15777 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15779 ;;
15780 esac
15781 fi
15782 ;;
15783
15784 os2*)
15785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15786 hardcode_minus_L_GCJ=yes
15787 allow_undefined_flag_GCJ=unsupported
15788 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'
15789 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15790 ;;
15791
15792 osf3*)
15793 if test "$GCC" = yes; then
15794 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15795 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'
15796 else
15797 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15798 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'
15799 fi
15800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15801 hardcode_libdir_separator_GCJ=:
15802 ;;
15803
15804 osf4* | osf5*) # as osf3* with the addition of -msym flag
15805 if test "$GCC" = yes; then
15806 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15807 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'
15808 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15809 else
15810 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15811 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'
15812 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~
15813 $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'
15814
15815 # Both c and cxx compiler support -rpath directly
15816 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15817 fi
15818 hardcode_libdir_separator_GCJ=:
15819 ;;
15820
15821 sco3.2v5*)
15822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 hardcode_shlibpath_var_GCJ=no
15824 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15825 runpath_var=LD_RUN_PATH
15826 hardcode_runpath_var=yes
15827 ;;
15828
15829 solaris*)
15830 no_undefined_flag_GCJ=' -z text'
15831 if test "$GCC" = yes; then
15832 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15834 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15835 else
15836 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15839 fi
15840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15841 hardcode_shlibpath_var_GCJ=no
15842 case $host_os in
15843 solaris2.[0-5] | solaris2.[0-5].*) ;;
15844 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15845 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15846 esac
15847 link_all_deplibs_GCJ=yes
15848 ;;
15849
15850 sunos4*)
15851 if test "x$host_vendor" = xsequent; then
15852 # Use $CC to link under sequent, because it throws in some extra .o
15853 # files that make .init and .fini sections work.
15854 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15855 else
15856 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15857 fi
15858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15859 hardcode_direct_GCJ=yes
15860 hardcode_minus_L_GCJ=yes
15861 hardcode_shlibpath_var_GCJ=no
15862 ;;
15863
15864 sysv4)
15865 case $host_vendor in
15866 sni)
15867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 hardcode_direct_GCJ=yes # is this really true???
15869 ;;
15870 siemens)
15871 ## LD is ld it makes a PLAMLIB
15872 ## CC just makes a GrossModule.
15873 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15874 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15875 hardcode_direct_GCJ=no
15876 ;;
15877 motorola)
15878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15880 ;;
15881 esac
15882 runpath_var='LD_RUN_PATH'
15883 hardcode_shlibpath_var_GCJ=no
15884 ;;
15885
15886 sysv4.3*)
15887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_shlibpath_var_GCJ=no
15889 export_dynamic_flag_spec_GCJ='-Bexport'
15890 ;;
15891
15892 sysv4*MP*)
15893 if test -d /usr/nec; then
15894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_shlibpath_var_GCJ=no
15896 runpath_var=LD_RUN_PATH
15897 hardcode_runpath_var=yes
15898 ld_shlibs_GCJ=yes
15899 fi
15900 ;;
15901
15902 sysv4.2uw2*)
15903 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct_GCJ=yes
15905 hardcode_minus_L_GCJ=no
15906 hardcode_shlibpath_var_GCJ=no
15907 hardcode_runpath_var=yes
15908 runpath_var=LD_RUN_PATH
15909 ;;
15910
15911 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15912 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15913 if test "$GCC" = yes; then
15914 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15915 else
15916 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 fi
15918 runpath_var='LD_RUN_PATH'
15919 hardcode_shlibpath_var_GCJ=no
15920 ;;
15921
15922 sysv5*)
15923 no_undefined_flag_GCJ=' -z text'
15924 # $CC -shared without GNU ld will not create a library from C++
15925 # object files and a static libstdc++, better avoid it by now
15926 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15929 hardcode_libdir_flag_spec_GCJ=
15930 hardcode_shlibpath_var_GCJ=no
15931 runpath_var='LD_RUN_PATH'
15932 ;;
15933
15934 uts4*)
15935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15937 hardcode_shlibpath_var_GCJ=no
15938 ;;
15939
15940 *)
15941 ld_shlibs_GCJ=no
15942 ;;
15943 esac
15944 fi
15945
15946echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15947echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15948test "$ld_shlibs_GCJ" = no && can_build_shared=no
15949
15950variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15951if test "$GCC" = yes; then
15952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15953fi
15954
15955#
15956# Do we need to explicitly link libc?
15957#
15958case "x$archive_cmds_need_lc_GCJ" in
15959x|xyes)
15960 # Assume -lc should be added
15961 archive_cmds_need_lc_GCJ=yes
15962
15963 if test "$enable_shared" = yes && test "$GCC" = yes; then
15964 case $archive_cmds_GCJ in
15965 *'~'*)
15966 # FIXME: we may have to deal with multi-command sequences.
15967 ;;
15968 '$CC '*)
15969 # Test whether the compiler implicitly links with -lc since on some
15970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15971 # to ld, don't add -lc before -lgcc.
15972 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15974 $rm conftest*
15975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15976
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978 (eval $ac_compile) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } 2>conftest.err; then
15982 soname=conftest
15983 lib=conftest
15984 libobjs=conftest.$ac_objext
15985 deplibs=
15986 wl=$lt_prog_compiler_wl_GCJ
15987 compiler_flags=-v
15988 linker_flags=-v
15989 verstring=
15990 output_objdir=.
15991 libname=conftest
15992 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15993 allow_undefined_flag_GCJ=
15994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15995 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }
15999 then
16000 archive_cmds_need_lc_GCJ=no
16001 else
16002 archive_cmds_need_lc_GCJ=yes
16003 fi
16004 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16005 else
16006 cat conftest.err 1>&5
16007 fi
16008 $rm conftest*
16009 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16010echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16011 ;;
16012 esac
16013 fi
16014 ;;
16015esac
16016
16017echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16019library_names_spec=
16020libname_spec='lib$name'
16021soname_spec=
16022shrext=".so"
16023postinstall_cmds=
16024postuninstall_cmds=
16025finish_cmds=
16026finish_eval=
16027shlibpath_var=
16028shlibpath_overrides_runpath=unknown
16029version_type=none
16030dynamic_linker="$host_os ld.so"
16031sys_lib_dlsearch_path_spec="/lib /usr/lib"
16032if test "$GCC" = yes; then
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16035 # if the path contains ";" then we assume it to be the separator
16036 # otherwise default to the standard path separator (i.e. ":") - it is
16037 # assumed that no part of a normal pathname contains ";" but that should
16038 # okay in the real world where ";" in dirpaths is itself problematic.
16039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040 else
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16042 fi
16043else
16044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16045fi
16046need_lib_prefix=unknown
16047hardcode_into_libs=no
16048
16049# when you set need_version to no, make sure it does not cause -set_version
16050# flags to be left without arguments
16051need_version=unknown
16052
16053case $host_os in
16054aix3*)
16055 version_type=linux
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16057 shlibpath_var=LIBPATH
16058
16059 # AIX 3 has no versioning support, so we append a major version to the name.
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 ;;
16062
16063aix4* | aix5*)
16064 version_type=linux
16065 need_lib_prefix=no
16066 need_version=no
16067 hardcode_into_libs=yes
16068 if test "$host_cpu" = ia64; then
16069 # AIX 5 supports IA64
16070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 else
16073 # With GCC up to 2.95.x, collect2 would create an import file
16074 # for dependence libraries. The import file would start with
16075 # the line `#! .'. This would cause the generated library to
16076 # depend on `.', always an invalid library. This was fixed in
16077 # development snapshots of GCC prior to 3.0.
16078 case $host_os in
16079 aix4 | aix4.[01] | aix4.[01].*)
16080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16081 echo ' yes '
16082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16083 :
16084 else
16085 can_build_shared=no
16086 fi
16087 ;;
16088 esac
16089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16090 # soname into executable. Probably we can add versioning support to
16091 # collect2, so additional links can be useful in future.
16092 if test "$aix_use_runtimelinking" = yes; then
16093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16094 # instead of lib<name>.a to let people know that these are not
16095 # typical AIX shared libraries.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 else
16098 # We preserve .a as extension for shared libraries through AIX4.2
16099 # and later when we are not doing run time linking.
16100 library_names_spec='${libname}${release}.a $libname.a'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 fi
16103 shlibpath_var=LIBPATH
16104 fi
16105 ;;
16106
16107amigaos*)
16108 library_names_spec='$libname.ixlibrary $libname.a'
16109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16110 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'
16111 ;;
16112
16113beos*)
16114 library_names_spec='${libname}${shared_ext}'
16115 dynamic_linker="$host_os ld.so"
16116 shlibpath_var=LIBRARY_PATH
16117 ;;
16118
16119bsdi4*)
16120 version_type=linux
16121 need_version=no
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16128 # the default ld.so.conf also contains /usr/contrib/lib and
16129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16130 # libtool to hard-code these into programs
16131 ;;
16132
16133cygwin* | mingw* | pw32*)
16134 version_type=windows
16135 shrext=".dll"
16136 need_version=no
16137 need_lib_prefix=no
16138
16139 case $GCC,$host_os in
16140 yes,cygwin* | yes,mingw* | yes,pw32*)
16141 library_names_spec='$libname.dll.a'
16142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16143 postinstall_cmds='base_file=`basename \${file}`~
16144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16145 dldir=$destdir/`dirname \$dlpath`~
16146 test -d \$dldir || mkdir -p \$dldir~
16147 $install_prog $dir/$dlname \$dldir/$dlname'
16148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16149 dlpath=$dir/\$dldll~
16150 $rm \$dlpath'
16151 shlibpath_overrides_runpath=yes
16152
16153 case $host_os in
16154 cygwin*)
16155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16158 ;;
16159 mingw*)
16160 # MinGW DLLs use traditional 'lib' prefix
16161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16163 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16164 # It is most probably a Windows format PATH printed by
16165 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16166 # path with ; separators, and with drive letters. We can handle the
16167 # drive letters (cygwin fileutils understands them), so leave them,
16168 # especially as we might pass files found there to a mingw objdump,
16169 # which wouldn't understand a cygwinified path. Ahh.
16170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16171 else
16172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16173 fi
16174 ;;
16175 pw32*)
16176 # pw32 DLLs use 'pw' prefix rather than 'lib'
16177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16178 ;;
16179 esac
16180 ;;
16181
16182 *)
16183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16184 ;;
16185 esac
16186 dynamic_linker='Win32 ld.exe'
16187 # FIXME: first we should search . and the directory the executable is in
16188 shlibpath_var=PATH
16189 ;;
16190
16191darwin* | rhapsody*)
16192 dynamic_linker="$host_os dyld"
16193 version_type=darwin
16194 need_lib_prefix=no
16195 need_version=no
16196 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16197 soname_spec='${libname}${release}${major}$shared_ext'
16198 shlibpath_overrides_runpath=yes
16199 shlibpath_var=DYLD_LIBRARY_PATH
16200 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16201 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16202 if test "$GCC" = yes; then
16203 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"`
16204 else
16205 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16206 fi
16207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16208 ;;
16209
16210dgux*)
16211 version_type=linux
16212 need_lib_prefix=no
16213 need_version=no
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 ;;
16218
16219freebsd1*)
16220 dynamic_linker=no
16221 ;;
16222
16223kfreebsd*-gnu)
16224 version_type=linux
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=no
16231 hardcode_into_libs=yes
16232 dynamic_linker='GNU ld.so'
16233 ;;
16234
16235freebsd*)
16236 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16237 version_type=freebsd-$objformat
16238 case $version_type in
16239 freebsd-elf*)
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16241 need_version=no
16242 need_lib_prefix=no
16243 ;;
16244 freebsd-*)
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16246 need_version=yes
16247 ;;
16248 esac
16249 shlibpath_var=LD_LIBRARY_PATH
16250 case $host_os in
16251 freebsd2*)
16252 shlibpath_overrides_runpath=yes
16253 ;;
16254 freebsd3.01* | freebsdelf3.01*)
16255 shlibpath_overrides_runpath=yes
16256 hardcode_into_libs=yes
16257 ;;
16258 *) # from 3.2 on
16259 shlibpath_overrides_runpath=no
16260 hardcode_into_libs=yes
16261 ;;
16262 esac
16263 ;;
16264
16265gnu*)
16266 version_type=linux
16267 need_lib_prefix=no
16268 need_version=no
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 shlibpath_var=LD_LIBRARY_PATH
16272 hardcode_into_libs=yes
16273 ;;
16274
16275hpux9* | hpux10* | hpux11*)
16276 # Give a soname corresponding to the major version so that dld.sl refuses to
16277 # link against other versions.
16278 version_type=sunos
16279 need_lib_prefix=no
16280 need_version=no
16281 case "$host_cpu" in
16282 ia64*)
16283 shrext='.so'
16284 hardcode_into_libs=yes
16285 dynamic_linker="$host_os dld.so"
16286 shlibpath_var=LD_LIBRARY_PATH
16287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 if test "X$HPUX_IA64_MODE" = X32; then
16291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16292 else
16293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16294 fi
16295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296 ;;
16297 hppa*64*)
16298 shrext='.sl'
16299 hardcode_into_libs=yes
16300 dynamic_linker="$host_os dld.sl"
16301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16307 ;;
16308 *)
16309 shrext='.sl'
16310 dynamic_linker="$host_os dld.sl"
16311 shlibpath_var=SHLIB_PATH
16312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 ;;
16316 esac
16317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16318 postinstall_cmds='chmod 555 $lib'
16319 ;;
16320
16321irix5* | irix6* | nonstopux*)
16322 case $host_os in
16323 nonstopux*) version_type=nonstopux ;;
16324 *)
16325 if test "$lt_cv_prog_gnu_ld" = yes; then
16326 version_type=linux
16327 else
16328 version_type=irix
16329 fi ;;
16330 esac
16331 need_lib_prefix=no
16332 need_version=no
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16335 case $host_os in
16336 irix5* | nonstopux*)
16337 libsuff= shlibsuff=
16338 ;;
16339 *)
16340 case $LD in # libtool.m4 will add one of these switches to LD
16341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16342 libsuff= shlibsuff= libmagic=32-bit;;
16343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16344 libsuff=32 shlibsuff=N32 libmagic=N32;;
16345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16347 *) libsuff= shlibsuff= libmagic=never-match;;
16348 esac
16349 ;;
16350 esac
16351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16352 shlibpath_overrides_runpath=no
16353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16355 hardcode_into_libs=yes
16356 ;;
16357
16358# No shared lib support for Linux oldld, aout, or coff.
16359linux*oldld* | linux*aout* | linux*coff*)
16360 dynamic_linker=no
16361 ;;
16362
16363# This must be Linux ELF.
16364linux*)
16365 version_type=linux
16366 need_lib_prefix=no
16367 need_version=no
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 shlibpath_overrides_runpath=no
16373 # This implies no fast_install, which is unacceptable.
16374 # Some rework will be needed to allow for fast_install
16375 # before this can be enabled.
16376 hardcode_into_libs=yes
16377
16378 # Append ld.so.conf contents to the search path
16379 if test -f /etc/ld.so.conf; then
16380 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16381 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16382 fi
16383
16384 # We used to test for /lib/ld.so.1 and disable shared libraries on
16385 # powerpc, because MkLinux only supported shared libraries with the
16386 # GNU dynamic linker. Since this was broken with cross compilers,
16387 # most powerpc-linux boxes support dynamic linking these days and
16388 # people can always --disable-shared, the test was removed, and we
16389 # assume the GNU/Linux dynamic linker is in use.
16390 dynamic_linker='GNU/Linux ld.so'
16391 ;;
16392
16393knetbsd*-gnu)
16394 version_type=linux
16395 need_lib_prefix=no
16396 need_version=no
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=no
16401 hardcode_into_libs=yes
16402 dynamic_linker='GNU ld.so'
16403 ;;
16404
16405netbsd*)
16406 version_type=sunos
16407 need_lib_prefix=no
16408 need_version=no
16409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412 dynamic_linker='NetBSD (a.out) ld.so'
16413 else
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 dynamic_linker='NetBSD ld.elf_so'
16417 fi
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16420 hardcode_into_libs=yes
16421 ;;
16422
16423newsos6)
16424 version_type=linux
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 shlibpath_overrides_runpath=yes
16428 ;;
16429
16430nto-qnx*)
16431 version_type=linux
16432 need_lib_prefix=no
16433 need_version=no
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 shlibpath_overrides_runpath=yes
16438 ;;
16439
16440openbsd*)
16441 version_type=sunos
16442 need_lib_prefix=no
16443 need_version=yes
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16448 case $host_os in
16449 openbsd2.[89] | openbsd2.[89].*)
16450 shlibpath_overrides_runpath=no
16451 ;;
16452 *)
16453 shlibpath_overrides_runpath=yes
16454 ;;
16455 esac
16456 else
16457 shlibpath_overrides_runpath=yes
16458 fi
16459 ;;
16460
16461os2*)
16462 libname_spec='$name'
16463 shrext=".dll"
16464 need_lib_prefix=no
16465 library_names_spec='$libname${shared_ext} $libname.a'
16466 dynamic_linker='OS/2 ld.exe'
16467 shlibpath_var=LIBPATH
16468 ;;
16469
16470osf3* | osf4* | osf5*)
16471 version_type=osf
16472 need_lib_prefix=no
16473 need_version=no
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16479 ;;
16480
16481sco3.2v5*)
16482 version_type=osf
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 ;;
16487
16488solaris*)
16489 version_type=linux
16490 need_lib_prefix=no
16491 need_version=no
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 # ldd complains unless libraries are executable
16498 postinstall_cmds='chmod +x $lib'
16499 ;;
16500
16501sunos4*)
16502 version_type=sunos
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16505 shlibpath_var=LD_LIBRARY_PATH
16506 shlibpath_overrides_runpath=yes
16507 if test "$with_gnu_ld" = yes; then
16508 need_lib_prefix=no
16509 fi
16510 need_version=yes
16511 ;;
16512
16513sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16514 version_type=linux
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 case $host_vendor in
16519 sni)
16520 shlibpath_overrides_runpath=no
16521 need_lib_prefix=no
16522 export_dynamic_flag_spec='${wl}-Blargedynsym'
16523 runpath_var=LD_RUN_PATH
16524 ;;
16525 siemens)
16526 need_lib_prefix=no
16527 ;;
16528 motorola)
16529 need_lib_prefix=no
16530 need_version=no
16531 shlibpath_overrides_runpath=no
16532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16533 ;;
16534 esac
16535 ;;
16536
16537sysv4*MP*)
16538 if test -d /usr/nec ;then
16539 version_type=linux
16540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16541 soname_spec='$libname${shared_ext}.$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 fi
16544 ;;
16545
16546uts4*)
16547 version_type=linux
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 ;;
16552
16553*)
16554 dynamic_linker=no
16555 ;;
16556esac
16557echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16558echo "${ECHO_T}$dynamic_linker" >&6
16559test "$dynamic_linker" = no && can_build_shared=no
16560
16561echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16562echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16563hardcode_action_GCJ=
16564if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16565 test -n "$runpath_var GCJ" || \
16566 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16567
16568 # We can hardcode non-existant directories.
16569 if test "$hardcode_direct_GCJ" != no &&
16570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16571 # have to relink, otherwise we might link with an installed library
16572 # when we should be linking with a yet-to-be-installed one
16573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16574 test "$hardcode_minus_L_GCJ" != no; then
16575 # Linking always hardcodes the temporary library directory.
16576 hardcode_action_GCJ=relink
16577 else
16578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16579 hardcode_action_GCJ=immediate
16580 fi
16581else
16582 # We cannot hardcode anything, or else we can only hardcode existing
16583 # directories.
16584 hardcode_action_GCJ=unsupported
16585fi
16586echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16587echo "${ECHO_T}$hardcode_action_GCJ" >&6
16588
16589if test "$hardcode_action_GCJ" = relink; then
16590 # Fast installation is not supported
16591 enable_fast_install=no
16592elif test "$shlibpath_overrides_runpath" = yes ||
16593 test "$enable_shared" = no; then
16594 # Fast installation is not necessary
16595 enable_fast_install=needless
16596fi
16597
16598striplib=
16599old_striplib=
16600echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16601echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16602if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16603 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16604 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16605 echo "$as_me:$LINENO: result: yes" >&5
16606echo "${ECHO_T}yes" >&6
16607else
16608# FIXME - insert some real tests, host_os isn't really good enough
16609 case $host_os in
16610 darwin*)
16611 if test -n "$STRIP" ; then
16612 striplib="$STRIP -x"
16613 echo "$as_me:$LINENO: result: yes" >&5
16614echo "${ECHO_T}yes" >&6
16615 else
16616 echo "$as_me:$LINENO: result: no" >&5
16617echo "${ECHO_T}no" >&6
16618fi
16619 ;;
16620 *)
16621 echo "$as_me:$LINENO: result: no" >&5
16622echo "${ECHO_T}no" >&6
16623 ;;
16624 esac
16625fi
16626
16627if test "x$enable_dlopen" != xyes; then
16628 enable_dlopen=unknown
16629 enable_dlopen_self=unknown
16630 enable_dlopen_self_static=unknown
16631else
16632 lt_cv_dlopen=no
16633 lt_cv_dlopen_libs=
16634
16635 case $host_os in
16636 beos*)
16637 lt_cv_dlopen="load_add_on"
16638 lt_cv_dlopen_libs=
16639 lt_cv_dlopen_self=yes
16640 ;;
16641
16642 mingw* | pw32*)
16643 lt_cv_dlopen="LoadLibrary"
16644 lt_cv_dlopen_libs=
16645 ;;
16646
16647 cygwin*)
16648 lt_cv_dlopen="dlopen"
16649 lt_cv_dlopen_libs=
16650 ;;
16651
16652 darwin*)
16653 # if libdl is installed we need to link against it
16654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16656if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16658else
16659 ac_check_lib_save_LIBS=$LIBS
16660LIBS="-ldl $LIBS"
16661cat >conftest.$ac_ext <<_ACEOF
16662/* confdefs.h. */
16663_ACEOF
16664cat confdefs.h >>conftest.$ac_ext
16665cat >>conftest.$ac_ext <<_ACEOF
16666/* end confdefs.h. */
16667
16668/* Override any gcc2 internal prototype to avoid an error. */
16669#ifdef __cplusplus
16670extern "C"
16671#endif
16672/* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16674char dlopen ();
16675int
16676main ()
16677{
16678dlopen ();
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext conftest$ac_exeext
16684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16685 (eval $ac_link) 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest$ac_exeext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_lib_dl_dlopen=yes
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_cv_lib_dl_dlopen=no
16711fi
16712rm -f conftest.err conftest.$ac_objext \
16713 conftest$ac_exeext conftest.$ac_ext
16714LIBS=$ac_check_lib_save_LIBS
16715fi
16716echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16717echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16718if test $ac_cv_lib_dl_dlopen = yes; then
16719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16720else
16721
16722 lt_cv_dlopen="dyld"
16723 lt_cv_dlopen_libs=
16724 lt_cv_dlopen_self=yes
16725
16726fi
16727
16728 ;;
16729
16730 *)
16731 echo "$as_me:$LINENO: checking for shl_load" >&5
16732echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16733if test "${ac_cv_func_shl_load+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
16742/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16744#define shl_load innocuous_shl_load
16745
16746/* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char shl_load (); below.
16748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749 <limits.h> exists even on freestanding compilers. */
16750
16751#ifdef __STDC__
16752# include <limits.h>
16753#else
16754# include <assert.h>
16755#endif
16756
16757#undef shl_load
16758
16759/* Override any gcc2 internal prototype to avoid an error. */
16760#ifdef __cplusplus
16761extern "C"
16762{
16763#endif
16764/* We use char because int might match the return type of a gcc2
16765 builtin and then its argument prototype would still apply. */
16766char shl_load ();
16767/* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770#if defined (__stub_shl_load) || defined (__stub___shl_load)
16771choke me
16772#else
16773char (*f) () = shl_load;
16774#endif
16775#ifdef __cplusplus
16776}
16777#endif
16778
16779int
16780main ()
16781{
16782return f != shl_load;
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext conftest$ac_exeext
16788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16789 (eval $ac_link) 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_func_shl_load=yes
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
16814ac_cv_func_shl_load=no
16815fi
16816rm -f conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16818fi
16819echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16820echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16821if test $ac_cv_func_shl_load = yes; then
16822 lt_cv_dlopen="shl_load"
16823else
16824 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16825echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16826if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16828else
16829 ac_check_lib_save_LIBS=$LIBS
16830LIBS="-ldld $LIBS"
16831cat >conftest.$ac_ext <<_ACEOF
16832/* confdefs.h. */
16833_ACEOF
16834cat confdefs.h >>conftest.$ac_ext
16835cat >>conftest.$ac_ext <<_ACEOF
16836/* end confdefs.h. */
16837
16838/* Override any gcc2 internal prototype to avoid an error. */
16839#ifdef __cplusplus
16840extern "C"
16841#endif
16842/* We use char because int might match the return type of a gcc2
16843 builtin and then its argument prototype would still apply. */
16844char shl_load ();
16845int
16846main ()
16847{
16848shl_load ();
16849 ;
16850 return 0;
16851}
16852_ACEOF
16853rm -f conftest.$ac_objext conftest$ac_exeext
16854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>conftest.er1
16856 ac_status=$?
16857 grep -v '^ *+' conftest.er1 >conftest.err
16858 rm -f conftest.er1
16859 cat conftest.err >&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016862 { ac_try='test -z "$ac_c_werror_flag"
16863 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_dld_shl_load=yes
16876else
16877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880ac_cv_lib_dld_shl_load=no
16881fi
16882rm -f conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16884LIBS=$ac_check_lib_save_LIBS
16885fi
16886echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16887echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16888if test $ac_cv_lib_dld_shl_load = yes; then
16889 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16890else
16891 echo "$as_me:$LINENO: checking for dlopen" >&5
16892echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16893if test "${ac_cv_func_dlopen+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
16896 cat >conftest.$ac_ext <<_ACEOF
16897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
16902/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16904#define dlopen innocuous_dlopen
16905
16906/* System header to define __stub macros and hopefully few prototypes,
16907 which can conflict with char dlopen (); below.
16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16909 <limits.h> exists even on freestanding compilers. */
16910
16911#ifdef __STDC__
16912# include <limits.h>
16913#else
16914# include <assert.h>
16915#endif
16916
16917#undef dlopen
16918
16919/* Override any gcc2 internal prototype to avoid an error. */
16920#ifdef __cplusplus
16921extern "C"
16922{
16923#endif
16924/* We use char because int might match the return type of a gcc2
16925 builtin and then its argument prototype would still apply. */
16926char dlopen ();
16927/* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930#if defined (__stub_dlopen) || defined (__stub___dlopen)
16931choke me
16932#else
16933char (*f) () = dlopen;
16934#endif
16935#ifdef __cplusplus
16936}
16937#endif
16938
16939int
16940main ()
16941{
16942return f != dlopen;
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext conftest$ac_exeext
16948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>conftest.er1
16950 ac_status=$?
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016956 { ac_try='test -z "$ac_c_werror_flag"
16957 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest$ac_exeext'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_func_dlopen=yes
16970else
16971 echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974ac_cv_func_dlopen=no
16975fi
16976rm -f conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978fi
16979echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16980echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16981if test $ac_cv_func_dlopen = yes; then
16982 lt_cv_dlopen="dlopen"
16983else
16984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988else
16989 ac_check_lib_save_LIBS=$LIBS
16990LIBS="-ldl $LIBS"
16991cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997
16998/* Override any gcc2 internal prototype to avoid an error. */
16999#ifdef __cplusplus
17000extern "C"
17001#endif
17002/* We use char because int might match the return type of a gcc2
17003 builtin and then its argument prototype would still apply. */
17004char dlopen ();
17005int
17006main ()
17007{
17008dlopen ();
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext conftest$ac_exeext
17014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_lib_dl_dlopen=yes
17036else
17037 echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
17040ac_cv_lib_dl_dlopen=no
17041fi
17042rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044LIBS=$ac_check_lib_save_LIBS
17045fi
17046echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17048if test $ac_cv_lib_dl_dlopen = yes; then
17049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17050else
17051 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17052echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17053if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 ac_check_lib_save_LIBS=$LIBS
17057LIBS="-lsvld $LIBS"
17058cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
17064
17065/* Override any gcc2 internal prototype to avoid an error. */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069/* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071char dlopen ();
17072int
17073main ()
17074{
17075dlopen ();
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_lib_svld_dlopen=yes
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107ac_cv_lib_svld_dlopen=no
17108fi
17109rm -f conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111LIBS=$ac_check_lib_save_LIBS
17112fi
17113echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17114echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17115if test $ac_cv_lib_svld_dlopen = yes; then
17116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17117else
17118 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17119echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17120if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123 ac_check_lib_save_LIBS=$LIBS
17124LIBS="-ldld $LIBS"
17125cat >conftest.$ac_ext <<_ACEOF
17126/* confdefs.h. */
17127_ACEOF
17128cat confdefs.h >>conftest.$ac_ext
17129cat >>conftest.$ac_ext <<_ACEOF
17130/* end confdefs.h. */
17131
17132/* Override any gcc2 internal prototype to avoid an error. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136/* We use char because int might match the return type of a gcc2
17137 builtin and then its argument prototype would still apply. */
17138char dld_link ();
17139int
17140main ()
17141{
17142dld_link ();
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext conftest$ac_exeext
17148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149 (eval $ac_link) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_lib_dld_dld_link=yes
17170else
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174ac_cv_lib_dld_dld_link=no
17175fi
17176rm -f conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17178LIBS=$ac_check_lib_save_LIBS
17179fi
17180echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17182if test $ac_cv_lib_dld_dld_link = yes; then
17183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17184fi
17185
17186
17187fi
17188
17189
17190fi
17191
17192
17193fi
17194
17195
17196fi
17197
17198
17199fi
17200
17201 ;;
17202 esac
17203
17204 if test "x$lt_cv_dlopen" != xno; then
17205 enable_dlopen=yes
17206 else
17207 enable_dlopen=no
17208 fi
17209
17210 case $lt_cv_dlopen in
17211 dlopen)
17212 save_CPPFLAGS="$CPPFLAGS"
17213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17214
17215 save_LDFLAGS="$LDFLAGS"
17216 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17217
17218 save_LIBS="$LIBS"
17219 LIBS="$lt_cv_dlopen_libs $LIBS"
17220
17221 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17222echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17223if test "${lt_cv_dlopen_self+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 if test "$cross_compiling" = yes; then :
17227 lt_cv_dlopen_self=cross
17228else
17229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17230 lt_status=$lt_dlunknown
17231 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +000017232#line 17232 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017233#include "confdefs.h"
17234
17235#if HAVE_DLFCN_H
17236#include <dlfcn.h>
17237#endif
17238
17239#include <stdio.h>
17240
17241#ifdef RTLD_GLOBAL
17242# define LT_DLGLOBAL RTLD_GLOBAL
17243#else
17244# ifdef DL_GLOBAL
17245# define LT_DLGLOBAL DL_GLOBAL
17246# else
17247# define LT_DLGLOBAL 0
17248# endif
17249#endif
17250
17251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17252 find out it does not work in some platform. */
17253#ifndef LT_DLLAZY_OR_NOW
17254# ifdef RTLD_LAZY
17255# define LT_DLLAZY_OR_NOW RTLD_LAZY
17256# else
17257# ifdef DL_LAZY
17258# define LT_DLLAZY_OR_NOW DL_LAZY
17259# else
17260# ifdef RTLD_NOW
17261# define LT_DLLAZY_OR_NOW RTLD_NOW
17262# else
17263# ifdef DL_NOW
17264# define LT_DLLAZY_OR_NOW DL_NOW
17265# else
17266# define LT_DLLAZY_OR_NOW 0
17267# endif
17268# endif
17269# endif
17270# endif
17271#endif
17272
17273#ifdef __cplusplus
17274extern "C" void exit (int);
17275#endif
17276
17277void fnord() { int i=42;}
17278int main ()
17279{
17280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17281 int status = $lt_dlunknown;
17282
17283 if (self)
17284 {
17285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17287 /* dlclose (self); */
17288 }
17289
17290 exit (status);
17291}
17292EOF
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17298 (./conftest; exit; ) 2>/dev/null
17299 lt_status=$?
17300 case x$lt_status in
17301 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17302 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17303 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17304 esac
17305 else :
17306 # compilation failed
17307 lt_cv_dlopen_self=no
17308 fi
17309fi
17310rm -fr conftest*
17311
17312
17313fi
17314echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17315echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17316
17317 if test "x$lt_cv_dlopen_self" = xyes; then
17318 LDFLAGS="$LDFLAGS $link_static_flag"
17319 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17320echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17321if test "${lt_cv_dlopen_self_static+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 if test "$cross_compiling" = yes; then :
17325 lt_cv_dlopen_self_static=cross
17326else
17327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328 lt_status=$lt_dlunknown
17329 cat > conftest.$ac_ext <<EOF
drh94e4f822006-02-15 02:00:25 +000017330#line 17330 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017331#include "confdefs.h"
17332
17333#if HAVE_DLFCN_H
17334#include <dlfcn.h>
17335#endif
17336
17337#include <stdio.h>
17338
17339#ifdef RTLD_GLOBAL
17340# define LT_DLGLOBAL RTLD_GLOBAL
17341#else
17342# ifdef DL_GLOBAL
17343# define LT_DLGLOBAL DL_GLOBAL
17344# else
17345# define LT_DLGLOBAL 0
17346# endif
17347#endif
17348
17349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350 find out it does not work in some platform. */
17351#ifndef LT_DLLAZY_OR_NOW
17352# ifdef RTLD_LAZY
17353# define LT_DLLAZY_OR_NOW RTLD_LAZY
17354# else
17355# ifdef DL_LAZY
17356# define LT_DLLAZY_OR_NOW DL_LAZY
17357# else
17358# ifdef RTLD_NOW
17359# define LT_DLLAZY_OR_NOW RTLD_NOW
17360# else
17361# ifdef DL_NOW
17362# define LT_DLLAZY_OR_NOW DL_NOW
17363# else
17364# define LT_DLLAZY_OR_NOW 0
17365# endif
17366# endif
17367# endif
17368# endif
17369#endif
17370
17371#ifdef __cplusplus
17372extern "C" void exit (int);
17373#endif
17374
17375void fnord() { int i=42;}
17376int main ()
17377{
17378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379 int status = $lt_dlunknown;
17380
17381 if (self)
17382 {
17383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17385 /* dlclose (self); */
17386 }
17387
17388 exit (status);
17389}
17390EOF
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17396 (./conftest; exit; ) 2>/dev/null
17397 lt_status=$?
17398 case x$lt_status in
17399 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17400 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17401 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17402 esac
17403 else :
17404 # compilation failed
17405 lt_cv_dlopen_self_static=no
17406 fi
17407fi
17408rm -fr conftest*
17409
17410
17411fi
17412echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17413echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17414 fi
17415
17416 CPPFLAGS="$save_CPPFLAGS"
17417 LDFLAGS="$save_LDFLAGS"
17418 LIBS="$save_LIBS"
17419 ;;
17420 esac
17421
17422 case $lt_cv_dlopen_self in
17423 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17424 *) enable_dlopen_self=unknown ;;
17425 esac
17426
17427 case $lt_cv_dlopen_self_static in
17428 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17429 *) enable_dlopen_self_static=unknown ;;
17430 esac
17431fi
17432
17433
17434# The else clause should only fire when bootstrapping the
17435# libtool distribution, otherwise you forgot to ship ltmain.sh
17436# with your package, and you will get complaints that there are
17437# no rules to generate ltmain.sh.
17438if test -f "$ltmain"; then
17439 # See if we are running on zsh, and set the options which allow our commands through
17440 # without removal of \ escapes.
17441 if test -n "${ZSH_VERSION+set}" ; then
17442 setopt NO_GLOB_SUBST
17443 fi
17444 # Now quote all the things that may contain metacharacters while being
17445 # careful not to overquote the AC_SUBSTed values. We take copies of the
17446 # variables and quote the copies for generation of the libtool script.
17447 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17448 SED SHELL STRIP \
17449 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17450 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17451 deplibs_check_method reload_flag reload_cmds need_locks \
17452 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17453 lt_cv_sys_global_symbol_to_c_name_address \
17454 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17455 old_postinstall_cmds old_postuninstall_cmds \
17456 compiler_GCJ \
17457 CC_GCJ \
17458 LD_GCJ \
17459 lt_prog_compiler_wl_GCJ \
17460 lt_prog_compiler_pic_GCJ \
17461 lt_prog_compiler_static_GCJ \
17462 lt_prog_compiler_no_builtin_flag_GCJ \
17463 export_dynamic_flag_spec_GCJ \
17464 thread_safe_flag_spec_GCJ \
17465 whole_archive_flag_spec_GCJ \
17466 enable_shared_with_static_runtimes_GCJ \
17467 old_archive_cmds_GCJ \
17468 old_archive_from_new_cmds_GCJ \
17469 predep_objects_GCJ \
17470 postdep_objects_GCJ \
17471 predeps_GCJ \
17472 postdeps_GCJ \
17473 compiler_lib_search_path_GCJ \
17474 archive_cmds_GCJ \
17475 archive_expsym_cmds_GCJ \
17476 postinstall_cmds_GCJ \
17477 postuninstall_cmds_GCJ \
17478 old_archive_from_expsyms_cmds_GCJ \
17479 allow_undefined_flag_GCJ \
17480 no_undefined_flag_GCJ \
17481 export_symbols_cmds_GCJ \
17482 hardcode_libdir_flag_spec_GCJ \
17483 hardcode_libdir_flag_spec_ld_GCJ \
17484 hardcode_libdir_separator_GCJ \
17485 hardcode_automatic_GCJ \
17486 module_cmds_GCJ \
17487 module_expsym_cmds_GCJ \
17488 lt_cv_prog_compiler_c_o_GCJ \
17489 exclude_expsyms_GCJ \
17490 include_expsyms_GCJ; do
17491
17492 case $var in
17493 old_archive_cmds_GCJ | \
17494 old_archive_from_new_cmds_GCJ | \
17495 archive_cmds_GCJ | \
17496 archive_expsym_cmds_GCJ | \
17497 module_cmds_GCJ | \
17498 module_expsym_cmds_GCJ | \
17499 old_archive_from_expsyms_cmds_GCJ | \
17500 export_symbols_cmds_GCJ | \
17501 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17502 postinstall_cmds | postuninstall_cmds | \
17503 old_postinstall_cmds | old_postuninstall_cmds | \
17504 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17505 # Double-quote double-evaled strings.
17506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17507 ;;
17508 *)
17509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17510 ;;
17511 esac
17512 done
17513
17514 case $lt_echo in
17515 *'\$0 --fallback-echo"')
17516 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17517 ;;
17518 esac
17519
17520cfgfile="$ofile"
17521
17522 cat <<__EOF__ >> "$cfgfile"
17523# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17524
17525# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17526
17527# Shell to use when invoking shell scripts.
17528SHELL=$lt_SHELL
17529
17530# Whether or not to build shared libraries.
17531build_libtool_libs=$enable_shared
17532
17533# Whether or not to build static libraries.
17534build_old_libs=$enable_static
17535
17536# Whether or not to add -lc for building shared libraries.
17537build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17538
17539# Whether or not to disallow shared libs when runtime libs are static
17540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17541
17542# Whether or not to optimize for fast installation.
17543fast_install=$enable_fast_install
17544
17545# The host system.
17546host_alias=$host_alias
17547host=$host
17548
17549# An echo program that does not interpret backslashes.
17550echo=$lt_echo
17551
17552# The archiver.
17553AR=$lt_AR
17554AR_FLAGS=$lt_AR_FLAGS
17555
17556# A C compiler.
17557LTCC=$lt_LTCC
17558
17559# A language-specific compiler.
17560CC=$lt_compiler_GCJ
17561
17562# Is the compiler the GNU C compiler?
17563with_gcc=$GCC_GCJ
17564
17565# An ERE matcher.
17566EGREP=$lt_EGREP
17567
17568# The linker used to build libraries.
17569LD=$lt_LD_GCJ
17570
17571# Whether we need hard or soft links.
17572LN_S=$lt_LN_S
17573
17574# A BSD-compatible nm program.
17575NM=$lt_NM
17576
17577# A symbol stripping program
17578STRIP=$lt_STRIP
17579
17580# Used to examine libraries when file_magic_cmd begins "file"
17581MAGIC_CMD=$MAGIC_CMD
17582
17583# Used on cygwin: DLL creation program.
17584DLLTOOL="$DLLTOOL"
17585
17586# Used on cygwin: object dumper.
17587OBJDUMP="$OBJDUMP"
17588
17589# Used on cygwin: assembler.
17590AS="$AS"
17591
17592# The name of the directory that contains temporary libtool files.
17593objdir=$objdir
17594
17595# How to create reloadable object files.
17596reload_flag=$lt_reload_flag
17597reload_cmds=$lt_reload_cmds
17598
17599# How to pass a linker flag through the compiler.
17600wl=$lt_lt_prog_compiler_wl_GCJ
17601
17602# Object file suffix (normally "o").
17603objext="$ac_objext"
17604
17605# Old archive suffix (normally "a").
17606libext="$libext"
17607
17608# Shared library suffix (normally ".so").
17609shrext='$shrext'
17610
17611# Executable file suffix (normally "").
17612exeext="$exeext"
17613
17614# Additional compiler flags for building library objects.
17615pic_flag=$lt_lt_prog_compiler_pic_GCJ
17616pic_mode=$pic_mode
17617
17618# What is the maximum length of a command?
17619max_cmd_len=$lt_cv_sys_max_cmd_len
17620
17621# Does compiler simultaneously support -c and -o options?
17622compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17623
17624# Must we lock files when doing compilation ?
17625need_locks=$lt_need_locks
17626
17627# Do we need the lib prefix for modules?
17628need_lib_prefix=$need_lib_prefix
17629
17630# Do we need a version for libraries?
17631need_version=$need_version
17632
17633# Whether dlopen is supported.
17634dlopen_support=$enable_dlopen
17635
17636# Whether dlopen of programs is supported.
17637dlopen_self=$enable_dlopen_self
17638
17639# Whether dlopen of statically linked programs is supported.
17640dlopen_self_static=$enable_dlopen_self_static
17641
17642# Compiler flag to prevent dynamic linking.
17643link_static_flag=$lt_lt_prog_compiler_static_GCJ
17644
17645# Compiler flag to turn off builtin functions.
17646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17647
17648# Compiler flag to allow reflexive dlopens.
17649export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17650
17651# Compiler flag to generate shared objects directly from archives.
17652whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17653
17654# Compiler flag to generate thread-safe objects.
17655thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17656
17657# Library versioning type.
17658version_type=$version_type
17659
17660# Format of library name prefix.
17661libname_spec=$lt_libname_spec
17662
17663# List of archive names. First name is the real one, the rest are links.
17664# The last name is the one that the linker finds with -lNAME.
17665library_names_spec=$lt_library_names_spec
17666
17667# The coded name of the library, if different from the real name.
17668soname_spec=$lt_soname_spec
17669
17670# Commands used to build and install an old-style archive.
17671RANLIB=$lt_RANLIB
17672old_archive_cmds=$lt_old_archive_cmds_GCJ
17673old_postinstall_cmds=$lt_old_postinstall_cmds
17674old_postuninstall_cmds=$lt_old_postuninstall_cmds
17675
17676# Create an old-style archive from a shared archive.
17677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17678
17679# Create a temporary old-style archive to link instead of a shared archive.
17680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17681
17682# Commands used to build and install a shared archive.
17683archive_cmds=$lt_archive_cmds_GCJ
17684archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17685postinstall_cmds=$lt_postinstall_cmds
17686postuninstall_cmds=$lt_postuninstall_cmds
17687
17688# Commands used to build a loadable module (assumed same as above if empty)
17689module_cmds=$lt_module_cmds_GCJ
17690module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17691
17692# Commands to strip libraries.
17693old_striplib=$lt_old_striplib
17694striplib=$lt_striplib
17695
17696# Dependencies to place before the objects being linked to create a
17697# shared library.
17698predep_objects=$lt_predep_objects_GCJ
17699
17700# Dependencies to place after the objects being linked to create a
17701# shared library.
17702postdep_objects=$lt_postdep_objects_GCJ
17703
17704# Dependencies to place before the objects being linked to create a
17705# shared library.
17706predeps=$lt_predeps_GCJ
17707
17708# Dependencies to place after the objects being linked to create a
17709# shared library.
17710postdeps=$lt_postdeps_GCJ
17711
17712# The library search path used internally by the compiler when linking
17713# a shared library.
17714compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17715
17716# Method to check whether dependent libraries are shared objects.
17717deplibs_check_method=$lt_deplibs_check_method
17718
17719# Command to use when deplibs_check_method == file_magic.
17720file_magic_cmd=$lt_file_magic_cmd
17721
17722# Flag that allows shared libraries with undefined symbols to be built.
17723allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17724
17725# Flag that forces no undefined symbols.
17726no_undefined_flag=$lt_no_undefined_flag_GCJ
17727
17728# Commands used to finish a libtool library installation in a directory.
17729finish_cmds=$lt_finish_cmds
17730
17731# Same as above, but a single script fragment to be evaled but not shown.
17732finish_eval=$lt_finish_eval
17733
17734# Take the output of nm and produce a listing of raw symbols and C names.
17735global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17736
17737# Transform the output of nm in a proper C declaration
17738global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17739
17740# Transform the output of nm in a C name address pair
17741global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17742
17743# This is the shared library runtime path variable.
17744runpath_var=$runpath_var
17745
17746# This is the shared library path variable.
17747shlibpath_var=$shlibpath_var
17748
17749# Is shlibpath searched before the hard-coded library search path?
17750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17751
17752# How to hardcode a shared library path into an executable.
17753hardcode_action=$hardcode_action_GCJ
17754
17755# Whether we should hardcode library paths into libraries.
17756hardcode_into_libs=$hardcode_into_libs
17757
17758# Flag to hardcode \$libdir into a binary during linking.
17759# This must work even if \$libdir does not exist.
17760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17761
17762# If ld is used when linking, flag to hardcode \$libdir into
17763# a binary during linking. This must work even if \$libdir does
17764# not exist.
17765hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17766
17767# Whether we need a single -rpath flag with a separated argument.
17768hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17769
17770# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17771# resulting binary.
17772hardcode_direct=$hardcode_direct_GCJ
17773
17774# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17775# resulting binary.
17776hardcode_minus_L=$hardcode_minus_L_GCJ
17777
17778# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17779# the resulting binary.
17780hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17781
17782# Set to yes if building a shared library automatically hardcodes DIR into the library
17783# and all subsequent libraries and executables linked against it.
17784hardcode_automatic=$hardcode_automatic_GCJ
17785
17786# Variables whose values should be saved in libtool wrapper scripts and
17787# restored at relink time.
17788variables_saved_for_relink="$variables_saved_for_relink"
17789
17790# Whether libtool must link a program against all its dependency libraries.
17791link_all_deplibs=$link_all_deplibs_GCJ
17792
17793# Compile-time system search path for libraries
17794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17795
17796# Run-time system search path for libraries
17797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17798
17799# Fix the shell variable \$srcfile for the compiler.
17800fix_srcfile_path="$fix_srcfile_path_GCJ"
17801
17802# Set to yes if exported symbols are required.
17803always_export_symbols=$always_export_symbols_GCJ
17804
17805# The commands to list exported symbols.
17806export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17807
17808# The commands to extract the exported symbol list from a shared archive.
17809extract_expsyms_cmds=$lt_extract_expsyms_cmds
17810
17811# Symbols that should not be listed in the preloaded symbols.
17812exclude_expsyms=$lt_exclude_expsyms_GCJ
17813
17814# Symbols that must always be exported.
17815include_expsyms=$lt_include_expsyms_GCJ
17816
17817# ### END LIBTOOL TAG CONFIG: $tagname
17818
17819__EOF__
17820
17821
17822else
17823 # If there is no Makefile yet, we rely on a make rule to execute
17824 # `config.status --recheck' to rerun these tests and create the
17825 # libtool script then.
17826 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17827 if test -f "$ltmain_in"; then
17828 test -f Makefile && make "$ltmain"
17829 fi
17830fi
17831
17832
17833ac_ext=c
17834ac_cpp='$CPP $CPPFLAGS'
17835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838
17839CC="$lt_save_CC"
17840
17841 else
17842 tagname=""
17843 fi
17844 ;;
17845
17846 RC)
17847
17848
17849
17850# Source file extension for RC test sources.
17851ac_ext=rc
17852
17853# Object file extension for compiled RC test sources.
17854objext=o
17855objext_RC=$objext
17856
17857# Code to be used in simple compile tests
17858lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17859
17860# Code to be used in simple link tests
17861lt_simple_link_test_code="$lt_simple_compile_test_code"
17862
17863# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17864
17865# If no C compiler was specified, use CC.
17866LTCC=${LTCC-"$CC"}
17867
17868# Allow CC to be a program name with arguments.
17869compiler=$CC
17870
17871
17872# Allow CC to be a program name with arguments.
17873lt_save_CC="$CC"
17874CC=${RC-"windres"}
17875compiler=$CC
17876compiler_RC=$CC
17877lt_cv_prog_compiler_c_o_RC=yes
17878
17879# The else clause should only fire when bootstrapping the
17880# libtool distribution, otherwise you forgot to ship ltmain.sh
17881# with your package, and you will get complaints that there are
17882# no rules to generate ltmain.sh.
17883if test -f "$ltmain"; then
17884 # See if we are running on zsh, and set the options which allow our commands through
17885 # without removal of \ escapes.
17886 if test -n "${ZSH_VERSION+set}" ; then
17887 setopt NO_GLOB_SUBST
17888 fi
17889 # Now quote all the things that may contain metacharacters while being
17890 # careful not to overquote the AC_SUBSTed values. We take copies of the
17891 # variables and quote the copies for generation of the libtool script.
17892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17893 SED SHELL STRIP \
17894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17896 deplibs_check_method reload_flag reload_cmds need_locks \
17897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17898 lt_cv_sys_global_symbol_to_c_name_address \
17899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17900 old_postinstall_cmds old_postuninstall_cmds \
17901 compiler_RC \
17902 CC_RC \
17903 LD_RC \
17904 lt_prog_compiler_wl_RC \
17905 lt_prog_compiler_pic_RC \
17906 lt_prog_compiler_static_RC \
17907 lt_prog_compiler_no_builtin_flag_RC \
17908 export_dynamic_flag_spec_RC \
17909 thread_safe_flag_spec_RC \
17910 whole_archive_flag_spec_RC \
17911 enable_shared_with_static_runtimes_RC \
17912 old_archive_cmds_RC \
17913 old_archive_from_new_cmds_RC \
17914 predep_objects_RC \
17915 postdep_objects_RC \
17916 predeps_RC \
17917 postdeps_RC \
17918 compiler_lib_search_path_RC \
17919 archive_cmds_RC \
17920 archive_expsym_cmds_RC \
17921 postinstall_cmds_RC \
17922 postuninstall_cmds_RC \
17923 old_archive_from_expsyms_cmds_RC \
17924 allow_undefined_flag_RC \
17925 no_undefined_flag_RC \
17926 export_symbols_cmds_RC \
17927 hardcode_libdir_flag_spec_RC \
17928 hardcode_libdir_flag_spec_ld_RC \
17929 hardcode_libdir_separator_RC \
17930 hardcode_automatic_RC \
17931 module_cmds_RC \
17932 module_expsym_cmds_RC \
17933 lt_cv_prog_compiler_c_o_RC \
17934 exclude_expsyms_RC \
17935 include_expsyms_RC; do
17936
17937 case $var in
17938 old_archive_cmds_RC | \
17939 old_archive_from_new_cmds_RC | \
17940 archive_cmds_RC | \
17941 archive_expsym_cmds_RC | \
17942 module_cmds_RC | \
17943 module_expsym_cmds_RC | \
17944 old_archive_from_expsyms_cmds_RC | \
17945 export_symbols_cmds_RC | \
17946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17947 postinstall_cmds | postuninstall_cmds | \
17948 old_postinstall_cmds | old_postuninstall_cmds | \
17949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17950 # Double-quote double-evaled strings.
17951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17952 ;;
17953 *)
17954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17955 ;;
17956 esac
17957 done
17958
17959 case $lt_echo in
17960 *'\$0 --fallback-echo"')
17961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17962 ;;
17963 esac
17964
17965cfgfile="$ofile"
17966
17967 cat <<__EOF__ >> "$cfgfile"
17968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17969
17970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17971
17972# Shell to use when invoking shell scripts.
17973SHELL=$lt_SHELL
17974
17975# Whether or not to build shared libraries.
17976build_libtool_libs=$enable_shared
17977
17978# Whether or not to build static libraries.
17979build_old_libs=$enable_static
17980
17981# Whether or not to add -lc for building shared libraries.
17982build_libtool_need_lc=$archive_cmds_need_lc_RC
17983
17984# Whether or not to disallow shared libs when runtime libs are static
17985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17986
17987# Whether or not to optimize for fast installation.
17988fast_install=$enable_fast_install
17989
17990# The host system.
17991host_alias=$host_alias
17992host=$host
17993
17994# An echo program that does not interpret backslashes.
17995echo=$lt_echo
17996
17997# The archiver.
17998AR=$lt_AR
17999AR_FLAGS=$lt_AR_FLAGS
18000
18001# A C compiler.
18002LTCC=$lt_LTCC
18003
18004# A language-specific compiler.
18005CC=$lt_compiler_RC
18006
18007# Is the compiler the GNU C compiler?
18008with_gcc=$GCC_RC
18009
18010# An ERE matcher.
18011EGREP=$lt_EGREP
18012
18013# The linker used to build libraries.
18014LD=$lt_LD_RC
18015
18016# Whether we need hard or soft links.
18017LN_S=$lt_LN_S
18018
18019# A BSD-compatible nm program.
18020NM=$lt_NM
18021
18022# A symbol stripping program
18023STRIP=$lt_STRIP
18024
18025# Used to examine libraries when file_magic_cmd begins "file"
18026MAGIC_CMD=$MAGIC_CMD
18027
18028# Used on cygwin: DLL creation program.
18029DLLTOOL="$DLLTOOL"
18030
18031# Used on cygwin: object dumper.
18032OBJDUMP="$OBJDUMP"
18033
18034# Used on cygwin: assembler.
18035AS="$AS"
18036
18037# The name of the directory that contains temporary libtool files.
18038objdir=$objdir
18039
18040# How to create reloadable object files.
18041reload_flag=$lt_reload_flag
18042reload_cmds=$lt_reload_cmds
18043
18044# How to pass a linker flag through the compiler.
18045wl=$lt_lt_prog_compiler_wl_RC
18046
18047# Object file suffix (normally "o").
18048objext="$ac_objext"
18049
18050# Old archive suffix (normally "a").
18051libext="$libext"
18052
18053# Shared library suffix (normally ".so").
18054shrext='$shrext'
18055
18056# Executable file suffix (normally "").
18057exeext="$exeext"
18058
18059# Additional compiler flags for building library objects.
18060pic_flag=$lt_lt_prog_compiler_pic_RC
18061pic_mode=$pic_mode
18062
18063# What is the maximum length of a command?
18064max_cmd_len=$lt_cv_sys_max_cmd_len
18065
18066# Does compiler simultaneously support -c and -o options?
18067compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18068
18069# Must we lock files when doing compilation ?
18070need_locks=$lt_need_locks
18071
18072# Do we need the lib prefix for modules?
18073need_lib_prefix=$need_lib_prefix
18074
18075# Do we need a version for libraries?
18076need_version=$need_version
18077
18078# Whether dlopen is supported.
18079dlopen_support=$enable_dlopen
18080
18081# Whether dlopen of programs is supported.
18082dlopen_self=$enable_dlopen_self
18083
18084# Whether dlopen of statically linked programs is supported.
18085dlopen_self_static=$enable_dlopen_self_static
18086
18087# Compiler flag to prevent dynamic linking.
18088link_static_flag=$lt_lt_prog_compiler_static_RC
18089
18090# Compiler flag to turn off builtin functions.
18091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18092
18093# Compiler flag to allow reflexive dlopens.
18094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18095
18096# Compiler flag to generate shared objects directly from archives.
18097whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18098
18099# Compiler flag to generate thread-safe objects.
18100thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18101
18102# Library versioning type.
18103version_type=$version_type
18104
18105# Format of library name prefix.
18106libname_spec=$lt_libname_spec
18107
18108# List of archive names. First name is the real one, the rest are links.
18109# The last name is the one that the linker finds with -lNAME.
18110library_names_spec=$lt_library_names_spec
18111
18112# The coded name of the library, if different from the real name.
18113soname_spec=$lt_soname_spec
18114
18115# Commands used to build and install an old-style archive.
18116RANLIB=$lt_RANLIB
18117old_archive_cmds=$lt_old_archive_cmds_RC
18118old_postinstall_cmds=$lt_old_postinstall_cmds
18119old_postuninstall_cmds=$lt_old_postuninstall_cmds
18120
18121# Create an old-style archive from a shared archive.
18122old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18123
18124# Create a temporary old-style archive to link instead of a shared archive.
18125old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18126
18127# Commands used to build and install a shared archive.
18128archive_cmds=$lt_archive_cmds_RC
18129archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18130postinstall_cmds=$lt_postinstall_cmds
18131postuninstall_cmds=$lt_postuninstall_cmds
18132
18133# Commands used to build a loadable module (assumed same as above if empty)
18134module_cmds=$lt_module_cmds_RC
18135module_expsym_cmds=$lt_module_expsym_cmds_RC
18136
18137# Commands to strip libraries.
18138old_striplib=$lt_old_striplib
18139striplib=$lt_striplib
18140
18141# Dependencies to place before the objects being linked to create a
18142# shared library.
18143predep_objects=$lt_predep_objects_RC
18144
18145# Dependencies to place after the objects being linked to create a
18146# shared library.
18147postdep_objects=$lt_postdep_objects_RC
18148
18149# Dependencies to place before the objects being linked to create a
18150# shared library.
18151predeps=$lt_predeps_RC
18152
18153# Dependencies to place after the objects being linked to create a
18154# shared library.
18155postdeps=$lt_postdeps_RC
18156
18157# The library search path used internally by the compiler when linking
18158# a shared library.
18159compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18160
18161# Method to check whether dependent libraries are shared objects.
18162deplibs_check_method=$lt_deplibs_check_method
18163
18164# Command to use when deplibs_check_method == file_magic.
18165file_magic_cmd=$lt_file_magic_cmd
18166
18167# Flag that allows shared libraries with undefined symbols to be built.
18168allow_undefined_flag=$lt_allow_undefined_flag_RC
18169
18170# Flag that forces no undefined symbols.
18171no_undefined_flag=$lt_no_undefined_flag_RC
18172
18173# Commands used to finish a libtool library installation in a directory.
18174finish_cmds=$lt_finish_cmds
18175
18176# Same as above, but a single script fragment to be evaled but not shown.
18177finish_eval=$lt_finish_eval
18178
18179# Take the output of nm and produce a listing of raw symbols and C names.
18180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18181
18182# Transform the output of nm in a proper C declaration
18183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18184
18185# Transform the output of nm in a C name address pair
18186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18187
18188# This is the shared library runtime path variable.
18189runpath_var=$runpath_var
18190
18191# This is the shared library path variable.
18192shlibpath_var=$shlibpath_var
18193
18194# Is shlibpath searched before the hard-coded library search path?
18195shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18196
18197# How to hardcode a shared library path into an executable.
18198hardcode_action=$hardcode_action_RC
18199
18200# Whether we should hardcode library paths into libraries.
18201hardcode_into_libs=$hardcode_into_libs
18202
18203# Flag to hardcode \$libdir into a binary during linking.
18204# This must work even if \$libdir does not exist.
18205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18206
18207# If ld is used when linking, flag to hardcode \$libdir into
18208# a binary during linking. This must work even if \$libdir does
18209# not exist.
18210hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18211
18212# Whether we need a single -rpath flag with a separated argument.
18213hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18214
18215# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18216# resulting binary.
18217hardcode_direct=$hardcode_direct_RC
18218
18219# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18220# resulting binary.
18221hardcode_minus_L=$hardcode_minus_L_RC
18222
18223# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18224# the resulting binary.
18225hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18226
18227# Set to yes if building a shared library automatically hardcodes DIR into the library
18228# and all subsequent libraries and executables linked against it.
18229hardcode_automatic=$hardcode_automatic_RC
18230
18231# Variables whose values should be saved in libtool wrapper scripts and
18232# restored at relink time.
18233variables_saved_for_relink="$variables_saved_for_relink"
18234
18235# Whether libtool must link a program against all its dependency libraries.
18236link_all_deplibs=$link_all_deplibs_RC
18237
18238# Compile-time system search path for libraries
18239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18240
18241# Run-time system search path for libraries
18242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18243
18244# Fix the shell variable \$srcfile for the compiler.
18245fix_srcfile_path="$fix_srcfile_path_RC"
18246
18247# Set to yes if exported symbols are required.
18248always_export_symbols=$always_export_symbols_RC
18249
18250# The commands to list exported symbols.
18251export_symbols_cmds=$lt_export_symbols_cmds_RC
18252
18253# The commands to extract the exported symbol list from a shared archive.
18254extract_expsyms_cmds=$lt_extract_expsyms_cmds
18255
18256# Symbols that should not be listed in the preloaded symbols.
18257exclude_expsyms=$lt_exclude_expsyms_RC
18258
18259# Symbols that must always be exported.
18260include_expsyms=$lt_include_expsyms_RC
18261
18262# ### END LIBTOOL TAG CONFIG: $tagname
18263
18264__EOF__
18265
18266
18267else
18268 # If there is no Makefile yet, we rely on a make rule to execute
18269 # `config.status --recheck' to rerun these tests and create the
18270 # libtool script then.
18271 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18272 if test -f "$ltmain_in"; then
18273 test -f Makefile && make "$ltmain"
18274 fi
18275fi
18276
18277
18278ac_ext=c
18279ac_cpp='$CPP $CPPFLAGS'
18280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282ac_compiler_gnu=$ac_cv_c_compiler_gnu
18283
18284CC="$lt_save_CC"
18285
18286 ;;
18287
18288 *)
18289 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18290echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18291 { (exit 1); exit 1; }; }
18292 ;;
18293 esac
18294
18295 # Append the new tag name to the list of available tags.
18296 if test -n "$tagname" ; then
18297 available_tags="$available_tags $tagname"
18298 fi
18299 fi
18300 done
18301 IFS="$lt_save_ifs"
18302
18303 # Now substitute the updated list of available tags.
18304 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18305 mv "${ofile}T" "$ofile"
18306 chmod +x "$ofile"
18307 else
18308 rm -f "${ofile}T"
18309 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18310echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18311 { (exit 1); exit 1; }; }
18312 fi
18313fi
drh71eb93e2001-09-28 01:34:43 +000018314
drh71eb93e2001-09-28 01:34:43 +000018315
drh71eb93e2001-09-28 01:34:43 +000018316
18317# This can be used to rebuild libtool when needed
18318LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18319
18320# Always use our own libtool.
18321LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18322
18323# Prevent multiple expansion
18324
a.rottmann84e63352003-03-24 09:42:16 +000018325
a.rottmann9bc8b932004-02-29 15:18:31 +000018326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
drh71eb93e2001-09-28 01:34:43 +000018344# Find a good install program. We prefer a C program (faster),
18345# so one script is as good as another. But avoid the broken or
18346# incompatible versions:
18347# SysV /etc/install, /usr/sbin/install
18348# SunOS /usr/etc/install
18349# IRIX /sbin/install
18350# AIX /bin/install
18351# AmigaOS /C/install, which installs bootblocks on floppy discs
18352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018355# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018356# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018357echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18358echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018359if test -z "$INSTALL"; then
18360if test "${ac_cv_path_install+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362else
a.rottmann84e63352003-03-24 09:42:16 +000018363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18364for as_dir in $PATH
18365do
18366 IFS=$as_save_IFS
18367 test -z "$as_dir" && as_dir=.
18368 # Account for people who put trailing slashes in PATH elements.
18369case $as_dir/ in
18370 ./ | .// | /cC/* | \
18371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018372 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018373 /usr/ucb/* ) ;;
18374 *)
18375 # OSF1 and SCO ODT 3.0 have their own names for install.
18376 # Don't use installbsd from OSF since it installs stuff as root
18377 # by default.
18378 for ac_prog in ginstall scoinst install; do
18379 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18381 if test $ac_prog = install &&
18382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18383 # AIX install. It has an incompatible calling convention.
18384 :
18385 elif test $ac_prog = install &&
18386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18387 # program-specific install script used by HP pwplus--don't use.
18388 :
18389 else
18390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18391 break 3
18392 fi
18393 fi
drh71eb93e2001-09-28 01:34:43 +000018394 done
a.rottmann84e63352003-03-24 09:42:16 +000018395 done
18396 ;;
18397esac
18398done
18399
drh71eb93e2001-09-28 01:34:43 +000018400
18401fi
18402 if test "${ac_cv_path_install+set}" = set; then
18403 INSTALL=$ac_cv_path_install
18404 else
18405 # As a last resort, use the slow shell script. We don't cache a
18406 # path for INSTALL within a source directory, because that will
18407 # break other packages using the cache if that directory is
18408 # removed, or if the path is relative.
18409 INSTALL=$ac_install_sh
18410 fi
18411fi
a.rottmann84e63352003-03-24 09:42:16 +000018412echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018413echo "${ECHO_T}$INSTALL" >&6
18414
18415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18416# It thinks the first close brace ends the variable substitution.
18417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18418
18419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18420
18421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18422
drhf1878b42006-01-23 18:06:52 +000018423for ac_prog in gawk mawk nawk awk
18424do
18425 # Extract the first word of "$ac_prog", so it can be a program name with args.
18426set dummy $ac_prog; ac_word=$2
18427echo "$as_me:$LINENO: checking for $ac_word" >&5
18428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18429if test "${ac_cv_prog_AWK+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 if test -n "$AWK"; then
18433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18434else
18435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18436for as_dir in $PATH
18437do
18438 IFS=$as_save_IFS
18439 test -z "$as_dir" && as_dir=.
18440 for ac_exec_ext in '' $ac_executable_extensions; do
18441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18442 ac_cv_prog_AWK="$ac_prog"
18443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18444 break 2
18445 fi
18446done
18447done
18448
18449fi
18450fi
18451AWK=$ac_cv_prog_AWK
18452if test -n "$AWK"; then
18453 echo "$as_me:$LINENO: result: $AWK" >&5
18454echo "${ECHO_T}$AWK" >&6
18455else
18456 echo "$as_me:$LINENO: result: no" >&5
18457echo "${ECHO_T}no" >&6
18458fi
18459
18460 test -n "$AWK" && break
18461done
18462
a.rottmann84e63352003-03-24 09:42:16 +000018463
drh75897232000-05-29 14:26:00 +000018464#########
18465# Set up an appropriate program prefix
18466#
18467if test "$program_prefix" = "NONE"; then
18468 program_prefix=""
18469fi
18470
a.rottmann84e63352003-03-24 09:42:16 +000018471
drh4b2266a2004-11-27 15:52:16 +000018472VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18473echo "Version set to $VERSION"
18474
18475RELEASE=`cat $srcdir/VERSION`
18476echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018477
danielk197799ba19e2005-02-05 07:33:34 +000018478VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018479 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018480 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018481echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018482
drh26d0e2a2005-07-06 13:51:27 +000018483
drh75897232000-05-29 14:26:00 +000018484#########
18485# Check to see if the --with-hints=FILE option is used. If there is none,
18486# then check for a files named "$host.hints" and ../$hosts.hints where
18487# $host is the hostname of the build system. If still no hints are
18488# found, try looking in $system.hints and ../$system.hints where
18489# $system is the result of uname -s.
18490#
drh71eb93e2001-09-28 01:34:43 +000018491
drh75897232000-05-29 14:26:00 +000018492# Check whether --with-hints or --without-hints was given.
18493if test "${with_hints+set}" = set; then
18494 withval="$with_hints"
18495 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018496fi;
drh75897232000-05-29 14:26:00 +000018497if test "$hints" = ""; then
18498 host=`hostname | sed 's/\..*//'`
18499 if test -r $host.hints; then
18500 hints=$host.hints
18501 else
18502 if test -r ../$host.hints; then
18503 hints=../$host.hints
18504 fi
18505 fi
18506fi
18507if test "$hints" = ""; then
18508 sys=`uname -s`
18509 if test -r $sys.hints; then
18510 hints=$sys.hints
18511 else
18512 if test -r ../$sys.hints; then
18513 hints=../$sys.hints
18514 fi
18515 fi
18516fi
18517if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018518 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018519echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018520 . $hints
18521fi
18522
18523#########
18524# Locate a compiler for the build machine. This compiler should
18525# generate command-line programs that run on the build machine.
18526#
18527default_build_cflags="-g"
18528if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018529 ac_ext=c
18530ac_cpp='$CPP $CPPFLAGS'
18531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18533ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534if test -n "$ac_tool_prefix"; then
18535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18536set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018537echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18539if test "${ac_cv_prog_CC+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018541else
18542 if test -n "$CC"; then
18543 ac_cv_prog_CC="$CC" # Let the user override the test.
18544else
a.rottmann84e63352003-03-24 09:42:16 +000018545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546for as_dir in $PATH
18547do
18548 IFS=$as_save_IFS
18549 test -z "$as_dir" && as_dir=.
18550 for ac_exec_ext in '' $ac_executable_extensions; do
18551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18554 break 2
18555 fi
18556done
drh71eb93e2001-09-28 01:34:43 +000018557done
18558
drh75897232000-05-29 14:26:00 +000018559fi
18560fi
drh71eb93e2001-09-28 01:34:43 +000018561CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018562if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018563 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018564echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018565else
a.rottmann84e63352003-03-24 09:42:16 +000018566 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018567echo "${ECHO_T}no" >&6
18568fi
18569
18570fi
18571if test -z "$ac_cv_prog_CC"; then
18572 ac_ct_CC=$CC
18573 # Extract the first word of "gcc", so it can be a program name with args.
18574set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018575echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18579else
18580 if test -n "$ac_ct_CC"; then
18581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18582else
a.rottmann84e63352003-03-24 09:42:16 +000018583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590 ac_cv_prog_ac_ct_CC="gcc"
18591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 break 2
18593 fi
18594done
drh71eb93e2001-09-28 01:34:43 +000018595done
18596
18597fi
18598fi
18599ac_ct_CC=$ac_cv_prog_ac_ct_CC
18600if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018601 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018602echo "${ECHO_T}$ac_ct_CC" >&6
18603else
a.rottmann84e63352003-03-24 09:42:16 +000018604 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018605echo "${ECHO_T}no" >&6
18606fi
18607
18608 CC=$ac_ct_CC
18609else
18610 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018611fi
18612
18613if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018614 if test -n "$ac_tool_prefix"; then
18615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18616set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018617echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18619if test "${ac_cv_prog_CC+set}" = set; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018621else
18622 if test -n "$CC"; then
18623 ac_cv_prog_CC="$CC" # Let the user override the test.
18624else
a.rottmann84e63352003-03-24 09:42:16 +000018625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18626for as_dir in $PATH
18627do
18628 IFS=$as_save_IFS
18629 test -z "$as_dir" && as_dir=.
18630 for ac_exec_ext in '' $ac_executable_extensions; do
18631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18632 ac_cv_prog_CC="${ac_tool_prefix}cc"
18633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18634 break 2
18635 fi
18636done
drh71eb93e2001-09-28 01:34:43 +000018637done
18638
18639fi
18640fi
18641CC=$ac_cv_prog_CC
18642if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018643 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018644echo "${ECHO_T}$CC" >&6
18645else
a.rottmann84e63352003-03-24 09:42:16 +000018646 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018647echo "${ECHO_T}no" >&6
18648fi
18649
18650fi
18651if test -z "$ac_cv_prog_CC"; then
18652 ac_ct_CC=$CC
18653 # Extract the first word of "cc", so it can be a program name with args.
18654set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018655echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18659else
18660 if test -n "$ac_ct_CC"; then
18661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18662else
a.rottmann84e63352003-03-24 09:42:16 +000018663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670 ac_cv_prog_ac_ct_CC="cc"
18671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18673 fi
18674done
drh71eb93e2001-09-28 01:34:43 +000018675done
18676
18677fi
18678fi
18679ac_ct_CC=$ac_cv_prog_ac_ct_CC
18680if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018682echo "${ECHO_T}$ac_ct_CC" >&6
18683else
a.rottmann84e63352003-03-24 09:42:16 +000018684 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018685echo "${ECHO_T}no" >&6
18686fi
18687
18688 CC=$ac_ct_CC
18689else
18690 CC="$ac_cv_prog_CC"
18691fi
18692
18693fi
18694if test -z "$CC"; then
18695 # Extract the first word of "cc", so it can be a program name with args.
18696set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018697echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18699if test "${ac_cv_prog_CC+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701else
18702 if test -n "$CC"; then
18703 ac_cv_prog_CC="$CC" # Let the user override the test.
18704else
drh75897232000-05-29 14:26:00 +000018705 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707for as_dir in $PATH
18708do
18709 IFS=$as_save_IFS
18710 test -z "$as_dir" && as_dir=.
18711 for ac_exec_ext in '' $ac_executable_extensions; do
18712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18714 ac_prog_rejected=yes
18715 continue
18716 fi
18717 ac_cv_prog_CC="cc"
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 +000018724if test $ac_prog_rejected = yes; then
18725 # We found a bogon in the path, so make sure we never use it.
18726 set dummy $ac_cv_prog_CC
18727 shift
drh71eb93e2001-09-28 01:34:43 +000018728 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018729 # We chose a different compiler from the bogus one.
18730 # However, it has the same basename, so the bogon will be chosen
18731 # first if we set CC to just the basename; use the full file name.
18732 shift
a.rottmann84e63352003-03-24 09:42:16 +000018733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018734 fi
18735fi
18736fi
18737fi
drh71eb93e2001-09-28 01:34:43 +000018738CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018739if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018740 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018741echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018742else
a.rottmann84e63352003-03-24 09:42:16 +000018743 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018744echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018745fi
18746
drh71eb93e2001-09-28 01:34:43 +000018747fi
18748if test -z "$CC"; then
18749 if test -n "$ac_tool_prefix"; then
18750 for ac_prog in cl
18751 do
18752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018754echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18756if test "${ac_cv_prog_CC+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018758else
18759 if test -n "$CC"; then
18760 ac_cv_prog_CC="$CC" # Let the user override the test.
18761else
a.rottmann84e63352003-03-24 09:42:16 +000018762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18763for as_dir in $PATH
18764do
18765 IFS=$as_save_IFS
18766 test -z "$as_dir" && as_dir=.
18767 for ac_exec_ext in '' $ac_executable_extensions; do
18768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18771 break 2
18772 fi
18773done
drh71eb93e2001-09-28 01:34:43 +000018774done
18775
drh75897232000-05-29 14:26:00 +000018776fi
18777fi
drh71eb93e2001-09-28 01:34:43 +000018778CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018779if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018780 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018781echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018782else
a.rottmann84e63352003-03-24 09:42:16 +000018783 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018784echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018785fi
18786
drh71eb93e2001-09-28 01:34:43 +000018787 test -n "$CC" && break
18788 done
18789fi
18790if test -z "$CC"; then
18791 ac_ct_CC=$CC
18792 for ac_prog in cl
18793do
18794 # Extract the first word of "$ac_prog", so it can be a program name with args.
18795set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018796echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800else
18801 if test -n "$ac_ct_CC"; then
18802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18803else
a.rottmann84e63352003-03-24 09:42:16 +000018804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805for as_dir in $PATH
18806do
18807 IFS=$as_save_IFS
18808 test -z "$as_dir" && as_dir=.
18809 for ac_exec_ext in '' $ac_executable_extensions; do
18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811 ac_cv_prog_ac_ct_CC="$ac_prog"
18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 break 2
18814 fi
18815done
drh71eb93e2001-09-28 01:34:43 +000018816done
drh75897232000-05-29 14:26:00 +000018817
drh71eb93e2001-09-28 01:34:43 +000018818fi
18819fi
18820ac_ct_CC=$ac_cv_prog_ac_ct_CC
18821if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018823echo "${ECHO_T}$ac_ct_CC" >&6
18824else
a.rottmann84e63352003-03-24 09:42:16 +000018825 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018826echo "${ECHO_T}no" >&6
18827fi
drh75897232000-05-29 14:26:00 +000018828
drh71eb93e2001-09-28 01:34:43 +000018829 test -n "$ac_ct_CC" && break
18830done
drh75897232000-05-29 14:26:00 +000018831
drh71eb93e2001-09-28 01:34:43 +000018832 CC=$ac_ct_CC
18833fi
18834
18835fi
18836
a.rottmann84e63352003-03-24 09:42:16 +000018837
18838test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18839See \`config.log' for more details." >&5
18840echo "$as_me: error: no acceptable C compiler found in \$PATH
18841See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018842 { (exit 1); exit 1; }; }
18843
18844# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018845echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018846 "checking for C compiler version" >&5
18847ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018848{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018849 (eval $ac_compiler --version </dev/null >&5) 2>&5
18850 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018852 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018854 (eval $ac_compiler -v </dev/null >&5) 2>&5
18855 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018857 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018858{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018859 (eval $ac_compiler -V </dev/null >&5) 2>&5
18860 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018862 (exit $ac_status); }
18863
a.rottmann84e63352003-03-24 09:42:16 +000018864echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018865echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18866if test "${ac_cv_c_compiler_gnu+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868else
18869 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
18874/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018875
drh71eb93e2001-09-28 01:34:43 +000018876int
18877main ()
18878{
18879#ifndef __GNUC__
18880 choke me
drh75897232000-05-29 14:26:00 +000018881#endif
drh75897232000-05-29 14:26:00 +000018882
drh71eb93e2001-09-28 01:34:43 +000018883 ;
18884 return 0;
18885}
18886_ACEOF
18887rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018889 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018890 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018895 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018896 { ac_try='test -z "$ac_c_werror_flag"
18897 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018905 (eval $ac_try) 2>&5
18906 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018908 (exit $ac_status); }; }; then
18909 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018910else
drh71eb93e2001-09-28 01:34:43 +000018911 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018912sed 's/^/| /' conftest.$ac_ext >&5
18913
drh71eb93e2001-09-28 01:34:43 +000018914ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018915fi
a.rottmann964dbb12004-02-26 19:47:42 +000018916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018917ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018918
drh71eb93e2001-09-28 01:34:43 +000018919fi
a.rottmann84e63352003-03-24 09:42:16 +000018920echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018921echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18922GCC=`test $ac_compiler_gnu = yes && echo yes`
18923ac_test_CFLAGS=${CFLAGS+set}
18924ac_save_CFLAGS=$CFLAGS
18925CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018926echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018927echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18928if test "${ac_cv_prog_cc_g+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018930else
drh71eb93e2001-09-28 01:34:43 +000018931 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018937
18938int
18939main ()
18940{
18941
18942 ;
18943 return 0;
18944}
18945_ACEOF
18946rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018948 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018949 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018954 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018964 (eval $ac_try) 2>&5
18965 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018967 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018968 ac_cv_prog_cc_g=yes
18969else
drh71eb93e2001-09-28 01:34:43 +000018970 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018971sed 's/^/| /' conftest.$ac_ext >&5
18972
drh71eb93e2001-09-28 01:34:43 +000018973ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018974fi
a.rottmann964dbb12004-02-26 19:47:42 +000018975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018976fi
a.rottmann84e63352003-03-24 09:42:16 +000018977echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018978echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018979if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018980 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018981elif test $ac_cv_prog_cc_g = yes; then
18982 if test "$GCC" = yes; then
18983 CFLAGS="-g -O2"
18984 else
18985 CFLAGS="-g"
18986 fi
18987else
18988 if test "$GCC" = yes; then
18989 CFLAGS="-O2"
18990 else
18991 CFLAGS=
18992 fi
18993fi
a.rottmann84e63352003-03-24 09:42:16 +000018994echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18995echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18996if test "${ac_cv_prog_cc_stdc+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998else
18999 ac_cv_prog_cc_stdc=no
19000ac_save_CC=$CC
19001cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007#include <stdarg.h>
19008#include <stdio.h>
19009#include <sys/types.h>
19010#include <sys/stat.h>
19011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19012struct buf { int x; };
19013FILE * (*rcsopen) (struct buf *, struct stat *, int);
19014static char *e (p, i)
19015 char **p;
19016 int i;
19017{
19018 return p[i];
19019}
19020static char *f (char * (*g) (char **, int), char **p, ...)
19021{
19022 char *s;
19023 va_list v;
19024 va_start (v,p);
19025 s = g (p, va_arg (v,int));
19026 va_end (v);
19027 return s;
19028}
a.rottmann964dbb12004-02-26 19:47:42 +000019029
19030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19031 function prototypes and stuff, but not '\xHH' hex character constants.
19032 These don't provoke an error unfortunately, instead are silently treated
19033 as 'x'. The following induces an error, until -std1 is added to get
19034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19035 array size at least. It's necessary to write '\x00'==0 to get something
19036 that's true only with -std1. */
19037int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19038
a.rottmann84e63352003-03-24 09:42:16 +000019039int test (int i, double x);
19040struct s1 {int (*f) (int a);};
19041struct s2 {int (*f) (double a);};
19042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19043int argc;
19044char **argv;
19045int
19046main ()
19047{
19048return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19049 ;
19050 return 0;
19051}
19052_ACEOF
19053# Don't try gcc -ansi; that turns off useful extensions and
19054# breaks some systems' header files.
19055# AIX -qlanglvl=ansi
19056# Ultrix and OSF/1 -std1
19057# HP-UX 10.20 and later -Ae
19058# HP-UX older versions -Aa -D_HPUX_SOURCE
19059# SVR4 -Xc -D__EXTENSIONS__
19060for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19061do
19062 CC="$ac_save_CC $ac_arg"
19063 rm -f conftest.$ac_objext
19064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019065 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019066 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_prog_cc_stdc=$ac_arg
19086break
19087else
19088 echo "$as_me: failed program was:" >&5
19089sed 's/^/| /' conftest.$ac_ext >&5
19090
19091fi
a.rottmann964dbb12004-02-26 19:47:42 +000019092rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019093done
19094rm -f conftest.$ac_ext conftest.$ac_objext
19095CC=$ac_save_CC
19096
19097fi
19098
19099case "x$ac_cv_prog_cc_stdc" in
19100 x|xno)
19101 echo "$as_me:$LINENO: result: none needed" >&5
19102echo "${ECHO_T}none needed" >&6 ;;
19103 *)
19104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19105echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19106 CC="$CC $ac_cv_prog_cc_stdc" ;;
19107esac
19108
drh71eb93e2001-09-28 01:34:43 +000019109# Some people use a C++ compiler to compile C. Since we use `exit',
19110# in C++ we need to declare it. In case someone uses the same compiler
19111# for both compiling C and C++ we need to have the C++ compiler decide
19112# the declaration of exit, since it's the most demanding environment.
19113cat >conftest.$ac_ext <<_ACEOF
19114#ifndef __cplusplus
19115 choke me
19116#endif
19117_ACEOF
19118rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019120 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019121 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019126 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019136 (eval $ac_try) 2>&5
19137 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019139 (exit $ac_status); }; }; then
19140 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019141 '' \
drh71eb93e2001-09-28 01:34:43 +000019142 'extern "C" void std::exit (int) throw (); using std::exit;' \
19143 'extern "C" void std::exit (int); using std::exit;' \
19144 'extern "C" void exit (int) throw ();' \
19145 'extern "C" void exit (int);' \
19146 'void exit (int);'
19147do
19148 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019154$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019155#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019156int
19157main ()
19158{
19159exit (42);
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019166 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019167 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019172 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019173 { ac_try='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019182 (eval $ac_try) 2>&5
19183 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019185 (exit $ac_status); }; }; then
19186 :
19187else
19188 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019189sed 's/^/| /' conftest.$ac_ext >&5
19190
drh71eb93e2001-09-28 01:34:43 +000019191continue
19192fi
a.rottmann964dbb12004-02-26 19:47:42 +000019193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019194 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019195/* confdefs.h. */
19196_ACEOF
19197cat confdefs.h >>conftest.$ac_ext
19198cat >>conftest.$ac_ext <<_ACEOF
19199/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019200$ac_declaration
19201int
19202main ()
19203{
19204exit (42);
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019211 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019212 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019217 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019227 (eval $ac_try) 2>&5
19228 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019230 (exit $ac_status); }; }; then
19231 break
19232else
19233 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019234sed 's/^/| /' conftest.$ac_ext >&5
19235
drh71eb93e2001-09-28 01:34:43 +000019236fi
a.rottmann964dbb12004-02-26 19:47:42 +000019237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019238done
19239rm -f conftest*
19240if test -n "$ac_declaration"; then
19241 echo '#ifdef __cplusplus' >>confdefs.h
19242 echo $ac_declaration >>confdefs.h
19243 echo '#endif' >>confdefs.h
19244fi
19245
19246else
19247 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019248sed 's/^/| /' conftest.$ac_ext >&5
19249
drh71eb93e2001-09-28 01:34:43 +000019250fi
a.rottmann964dbb12004-02-26 19:47:42 +000019251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019252ac_ext=c
19253ac_cpp='$CPP $CPPFLAGS'
19254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019257
xdong28f79f72003-09-23 00:35:21 +000019258 if test "$cross_compiling" = "yes"; then
19259 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19260echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19261 { (exit 1); exit 1; }; }
19262 fi
drh75897232000-05-29 14:26:00 +000019263 BUILD_CC=$CC
19264 default_build_cflags=$CFLAGS
19265else
19266 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019267 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019268echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019269 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019270 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019271echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019272fi
a.rottmann84e63352003-03-24 09:42:16 +000019273echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019274echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019275if test "$config_BUILD_CFLAGS" != ""; then
19276 CFLAGS=$config_BUILD_CFLAGS
19277 BUILD_CFLAGS=$config_BUILD_CFLAGS
19278else
19279 BUILD_CFLAGS=$default_build_cflags
19280fi
a.rottmann84e63352003-03-24 09:42:16 +000019281echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019282echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019283if test "$config_BUILD_LIBS" != ""; then
19284 BUILD_LIBS=$config_BUILD_LIBS
19285fi
19286
a.rottmann84e63352003-03-24 09:42:16 +000019287
19288
19289
drh75897232000-05-29 14:26:00 +000019290##########
19291# Locate a compiler that converts C code into *.o files that run on
19292# the target machine.
19293#
a.rottmann84e63352003-03-24 09:42:16 +000019294echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019295echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019296if test "$config_TARGET_CC" != ""; then
19297 TARGET_CC=$config_TARGET_CC
19298else
19299 TARGET_CC=$BUILD_CC
19300fi
a.rottmann84e63352003-03-24 09:42:16 +000019301echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019302echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019303echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019304echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019305if test "$config_TARGET_CFLAGS" != ""; then
19306 TARGET_CFLAGS=$config_TARGET_CFLAGS
19307else
19308 TARGET_CFLAGS=$BUILD_CFLAGS
19309fi
a.rottmann84e63352003-03-24 09:42:16 +000019310echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019311echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019312echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019313echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019314if test "$config_TARGET_LINK" = ""; then
19315 TARGET_LINK=$TARGET_CC
19316else
19317 TARGET_LINK=$config_TARGET_LINK
19318fi
a.rottmann84e63352003-03-24 09:42:16 +000019319echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019320echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019321echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019322echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019323if test "$config_TARGET_TFLAGS" != ""; then
19324 TARGET_TFLAGS=$config_TARGET_TFLAGS
19325else
19326 TARGET_TFLAGS=$BUILD_CFLAGS
19327fi
19328if test "$config_TARGET_RANLIB" != ""; then
19329 TARGET_RANLIB=$config_TARGET_RANLIB
19330else
drh71eb93e2001-09-28 01:34:43 +000019331 if test -n "$ac_tool_prefix"; then
19332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19333set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019334echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19336if test "${ac_cv_prog_RANLIB+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019338else
19339 if test -n "$RANLIB"; then
19340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19341else
a.rottmann84e63352003-03-24 09:42:16 +000019342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19343for as_dir in $PATH
19344do
19345 IFS=$as_save_IFS
19346 test -z "$as_dir" && as_dir=.
19347 for ac_exec_ext in '' $ac_executable_extensions; do
19348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19351 break 2
19352 fi
19353done
drh71eb93e2001-09-28 01:34:43 +000019354done
19355
drh75897232000-05-29 14:26:00 +000019356fi
19357fi
drh71eb93e2001-09-28 01:34:43 +000019358RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019359if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019360 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019361echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019362else
a.rottmann84e63352003-03-24 09:42:16 +000019363 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019364echo "${ECHO_T}no" >&6
19365fi
19366
19367fi
19368if test -z "$ac_cv_prog_RANLIB"; then
19369 ac_ct_RANLIB=$RANLIB
19370 # Extract the first word of "ranlib", so it can be a program name with args.
19371set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019372echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19374if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376else
19377 if test -n "$ac_ct_RANLIB"; then
19378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19379else
a.rottmann84e63352003-03-24 09:42:16 +000019380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19381for as_dir in $PATH
19382do
19383 IFS=$as_save_IFS
19384 test -z "$as_dir" && as_dir=.
19385 for ac_exec_ext in '' $ac_executable_extensions; do
19386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19387 ac_cv_prog_ac_ct_RANLIB="ranlib"
19388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19389 break 2
19390 fi
19391done
drh71eb93e2001-09-28 01:34:43 +000019392done
19393
19394 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19395fi
19396fi
19397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19398if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019399 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019400echo "${ECHO_T}$ac_ct_RANLIB" >&6
19401else
a.rottmann84e63352003-03-24 09:42:16 +000019402 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019403echo "${ECHO_T}no" >&6
19404fi
19405
19406 RANLIB=$ac_ct_RANLIB
19407else
19408 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019409fi
19410
19411 TARGET_RANLIB=$RANLIB
19412fi
19413if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019414 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019415else
19416 TARGET_AR='ar cr'
19417fi
a.rottmann84e63352003-03-24 09:42:16 +000019418echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019419echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019420
a.rottmann84e63352003-03-24 09:42:16 +000019421
19422
19423
19424
19425
19426
drh75897232000-05-29 14:26:00 +000019427# Set the $cross variable if we are cross-compiling. Make
19428# it 0 if we are not.
19429#
a.rottmann84e63352003-03-24 09:42:16 +000019430echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019431echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019432if test "$BUILD_CC" = "$TARGET_CC"; then
19433 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019434 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019435echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019436else
19437 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019438 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019439echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019440fi
19441
drh297ecf12001-04-05 15:57:13 +000019442##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019443# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019444#
dougcurrie0f290bf2004-06-21 18:57:29 +000019445# Check whether --enable-threadsafe or --disable-threadsafe was given.
19446if test "${enable_threadsafe+set}" = set; then
19447 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019448
drh297ecf12001-04-05 15:57:13 +000019449else
dougcurrie0f290bf2004-06-21 18:57:29 +000019450 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019451fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019452echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19453echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19454if test "$enable_threadsafe" = "no"; then
19455 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019456 echo "$as_me:$LINENO: result: no" >&5
19457echo "${ECHO_T}no" >&6
19458else
dougcurrie0f290bf2004-06-21 18:57:29 +000019459 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019460 echo "$as_me:$LINENO: result: yes" >&5
19461echo "${ECHO_T}yes" >&6
19462fi
19463
a.rottmann964dbb12004-02-26 19:47:42 +000019464
dougcurrie65623c72004-09-20 14:57:23 +000019465if test "$THREADSAFE" = "1"; then
19466 LIBS=""
19467
19468echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19469echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19470if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19472else
19473 ac_check_lib_save_LIBS=$LIBS
19474LIBS="-lpthread $LIBS"
19475cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481
19482/* Override any gcc2 internal prototype to avoid an error. */
19483#ifdef __cplusplus
19484extern "C"
19485#endif
19486/* We use char because int might match the return type of a gcc2
19487 builtin and then its argument prototype would still apply. */
19488char pthread_create ();
19489int
19490main ()
19491{
19492pthread_create ();
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext conftest$ac_exeext
19498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499 (eval $ac_link) 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag"
19507 || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest$ac_exeext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 ac_cv_lib_pthread_pthread_create=yes
19520else
19521 echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524ac_cv_lib_pthread_pthread_create=no
19525fi
19526rm -f conftest.err conftest.$ac_objext \
19527 conftest$ac_exeext conftest.$ac_ext
19528LIBS=$ac_check_lib_save_LIBS
19529fi
19530echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19531echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19532if test $ac_cv_lib_pthread_pthread_create = yes; then
19533 cat >>confdefs.h <<_ACEOF
19534#define HAVE_LIBPTHREAD 1
19535_ACEOF
19536
19537 LIBS="-lpthread $LIBS"
19538
19539fi
19540
19541 TARGET_THREAD_LIB="$LIBS"
19542 LIBS=""
19543else
19544 TARGET_THREAD_LIB=""
19545fi
19546
19547
xdong28f79f72003-09-23 00:35:21 +000019548##########
drh91636d52005-11-24 23:14:00 +000019549# Do we want to allow a connection created in one thread to be used
19550# in another thread. This does not work on many Linux systems (ex: RedHat 9)
19551# due to bugs in the threading implementations. This is thus off by default.
19552#
19553# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
19554if test "${enable_cross_thread_connections+set}" = set; then
19555 enableval="$enable_cross_thread_connections"
19556
19557else
19558 enable_xthreadconnect=no
19559fi;
19560echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19561echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
19562if test "$enable_xthreadconnect" = "no"; then
19563 XTHREADCONNECT=''
19564 echo "$as_me:$LINENO: result: no" >&5
19565echo "${ECHO_T}no" >&6
19566else
19567 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
19568 echo "$as_me:$LINENO: result: yes" >&5
19569echo "${ECHO_T}yes" >&6
19570fi
19571
19572
19573##########
drh8e2e2a12006-02-01 01:55:17 +000019574# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19575# default. Normally, a test at runtime is performed to determine the
19576# appropriate value of this variable. Use this option only if you're sure that
19577# threads can safely override each others locks in all runtime situations.
19578#
19579# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
19580if test "${enable_threads_override_locks+set}" = set; then
19581 enableval="$enable_threads_override_locks"
19582
19583else
19584 enable_threads_override_locks=no
19585fi;
19586echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19587echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
19588if test "$enable_threads_override_locks" = "no"; then
19589 THREADSOVERRIDELOCKS='-1'
19590 echo "$as_me:$LINENO: result: no" >&5
19591echo "${ECHO_T}no" >&6
19592else
19593 THREADSOVERRIDELOCKS='1'
19594 echo "$as_me:$LINENO: result: yes" >&5
19595echo "${ECHO_T}yes" >&6
19596fi
19597
19598
19599##########
xdong28f79f72003-09-23 00:35:21 +000019600# Do we want to support release
19601#
19602# Check whether --enable-releasemode or --disable-releasemode was given.
19603if test "${enable_releasemode+set}" = set; then
19604 enableval="$enable_releasemode"
19605
19606else
19607 enable_releasemode=no
19608fi;
19609echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19610echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19611if test "$enable_releasemode" = "no"; then
19612 ALLOWRELEASE=""
19613 echo "$as_me:$LINENO: result: no" >&5
19614echo "${ECHO_T}no" >&6
19615else
19616 ALLOWRELEASE="-release `cat VERSION`"
19617 echo "$as_me:$LINENO: result: yes" >&5
19618echo "${ECHO_T}yes" >&6
19619fi
paulb0208cc2003-04-13 18:26:49 +000019620
a.rottmann964dbb12004-02-26 19:47:42 +000019621
paulb0208cc2003-04-13 18:26:49 +000019622##########
19623# Do we want temporary databases in memory
19624#
dougcurrie0f290bf2004-06-21 18:57:29 +000019625# Check whether --enable-tempstore or --disable-tempstore was given.
19626if test "${enable_tempstore+set}" = set; then
19627 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019628
19629else
drh54414bb2005-10-10 00:05:50 +000019630 enable_tempstore=no
paulb0208cc2003-04-13 18:26:49 +000019631fi;
19632echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19633echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019634case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019635 never )
paul2dc96f92003-04-20 11:46:34 +000019636 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019637 echo "$as_me:$LINENO: result: never" >&5
19638echo "${ECHO_T}never" >&6
19639 ;;
19640 no )
paul2dc96f92003-04-20 11:46:34 +000019641 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019642 echo "$as_me:$LINENO: result: no" >&5
19643echo "${ECHO_T}no" >&6
19644 ;;
19645 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019646 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019647 echo "$as_me:$LINENO: result: always" >&5
19648echo "${ECHO_T}always" >&6
19649 ;;
drh54414bb2005-10-10 00:05:50 +000019650 yes )
19651 TEMP_STORE=3
19652 echo "$as_me:$LINENO: result: always" >&5
19653echo "${ECHO_T}always" >&6
19654 ;;
paulb0208cc2003-04-13 18:26:49 +000019655 * )
drh54414bb2005-10-10 00:05:50 +000019656 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019657 echo "$as_me:$LINENO: result: yes" >&5
19658echo "${ECHO_T}yes" >&6
19659 ;;
19660esac
19661
19662
19663
drh75897232000-05-29 14:26:00 +000019664###########
19665# Lots of things are different if we are compiling for Windows using
19666# the CYGWIN environment. So check for that special case and handle
19667# things accordingly.
19668#
a.rottmann84e63352003-03-24 09:42:16 +000019669echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019670echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019671if test "$config_BUILD_EXEEXT" = ".exe"; then
19672 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019673 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019674echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019675else
a.rottmann84e63352003-03-24 09:42:16 +000019676 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019677echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019678fi
19679if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019680
19681case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019682 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019683 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019684esac
drh75897232000-05-29 14:26:00 +000019685
drh75897232000-05-29 14:26:00 +000019686fi
19687if test "$CYGWIN" = "yes"; then
19688 BUILD_EXEEXT=.exe
19689else
dougcurrie6194a5f2003-12-19 20:09:51 +000019690 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019691fi
19692if test "$cross" = "0"; then
19693 TARGET_EXEEXT=$BUILD_EXEEXT
19694else
19695 TARGET_EXEEXT=$config_TARGET_EXEEXT
19696fi
19697if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000019698 if test $OS2_SHELL ; then
19699 OS_UNIX=0
19700 OS_WIN=0
19701 OS_OS2=1
19702 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
19703 if test "$ac_compiler_gnu" == "yes" ; then
19704 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
19705 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
19706 fi
19707 else
19708 OS_UNIX=0
19709 OS_WIN=1
19710 OS_OS2=0
19711 tclsubdir=win
19712 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
19713 fi
drh75897232000-05-29 14:26:00 +000019714else
19715 OS_UNIX=1
19716 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000019717 OS_OS2=0
drh75897232000-05-29 14:26:00 +000019718 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019719 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019720fi
drh75897232000-05-29 14:26:00 +000019721
a.rottmann84e63352003-03-24 09:42:16 +000019722
19723
19724
19725
19726
drh75897232000-05-29 14:26:00 +000019727##########
19728# Extract generic linker options from the environment.
19729#
19730if test "$config_TARGET_LIBS" != ""; then
19731 TARGET_LIBS=$config_TARGET_LIBS
19732else
19733 TARGET_LIBS=""
19734fi
19735
drh75897232000-05-29 14:26:00 +000019736##########
drh7b5717e2004-11-25 13:50:01 +000019737# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019738#
drh7b5717e2004-11-25 13:50:01 +000019739# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19740# macros in the in the tcl.m4 file of the standard TCL distribution.
19741# Those macros could not be used directly since we have to make some
19742# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019743#
drh7b5717e2004-11-25 13:50:01 +000019744# Check whether --enable-tcl or --disable-tcl was given.
19745if test "${enable_tcl+set}" = set; then
19746 enableval="$enable_tcl"
19747 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019748else
drh7b5717e2004-11-25 13:50:01 +000019749 use_tcl=yes
19750fi;
19751if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019752
drh7b5717e2004-11-25 13:50:01 +000019753# Check whether --with-tcl or --without-tcl was given.
19754if test "${with_tcl+set}" = set; then
19755 withval="$with_tcl"
19756 with_tclconfig=${withval}
19757fi;
19758 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19759echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19760 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
a.rottmann84e63352003-03-24 09:42:16 +000019763
drh7b5717e2004-11-25 13:50:01 +000019764 # First check to see if --with-tcl was specified.
19765 if test x"${with_tclconfig}" != x ; then
19766 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19767 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19768 else
19769 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19770echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019771 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019772 fi
19773 fi
19774 # then check for a private Tcl installation
19775 if test x"${ac_cv_c_tclconfig}" = x ; then
19776 for i in \
19777 ../tcl \
19778 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19779 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19780 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19781 ../../tcl \
19782 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19783 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19784 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19785 ../../../tcl \
19786 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19787 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19788 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19789 do
19790 if test -f "$i/unix/tclConfig.sh" ; then
19791 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19792 break
19793 fi
19794 done
19795 fi
19796
19797 # check in a few common install locations
19798 if test x"${ac_cv_c_tclconfig}" = x ; then
19799 for i in \
19800 `ls -d ${libdir} 2>/dev/null` \
19801 `ls -d /usr/local/lib 2>/dev/null` \
19802 `ls -d /usr/contrib/lib 2>/dev/null` \
19803 `ls -d /usr/lib 2>/dev/null`
19804 do
19805 if test -f "$i/tclConfig.sh" ; then
19806 ac_cv_c_tclconfig=`(cd $i; pwd)`
19807 break
19808 fi
19809 done
19810 fi
19811
19812 # check in a few other private locations
19813 if test x"${ac_cv_c_tclconfig}" = x ; then
19814 for i in \
19815 ${srcdir}/../tcl \
19816 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19817 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19818 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19819 do
19820 if test -f "$i/unix/tclConfig.sh" ; then
19821 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19822 break
19823 fi
19824 done
19825 fi
19826
drh75897232000-05-29 14:26:00 +000019827fi
19828
drh7b5717e2004-11-25 13:50:01 +000019829
19830 if test x"${ac_cv_c_tclconfig}" = x ; then
19831 use_tcl=no
19832 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19833echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19835echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19837echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19838 else
19839 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19840 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19841echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
19842
19843 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19844echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
19845 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19846 echo "$as_me:$LINENO: result: loading" >&5
19847echo "${ECHO_T}loading" >&6
19848 . $TCL_BIN_DIR/tclConfig.sh
19849 else
19850 echo "$as_me:$LINENO: result: file not found" >&5
19851echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000019852 fi
drh7b5717e2004-11-25 13:50:01 +000019853
19854 #
19855 # If the TCL_BIN_DIR is the build directory (not the install directory),
19856 # then set the common variable name to the value of the build variables.
19857 # For example, the variable TCL_LIB_SPEC will be set to the value
19858 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19859 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19860 # installed and uninstalled version of Tcl.
19861 #
19862
19863 if test -f $TCL_BIN_DIR/Makefile ; then
19864 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19865 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19866 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19867 fi
19868
19869 #
19870 # eval is required to do the TCL_DBGX substitution
19871 #
19872
19873 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19874 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19875 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19876
19877 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19878 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19879 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894 fi
drh75897232000-05-29 14:26:00 +000019895fi
drh7b5717e2004-11-25 13:50:01 +000019896if test "${use_tcl}" = "no" ; then
19897 HAVE_TCL=""
19898else
19899 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019900fi
drh75897232000-05-29 14:26:00 +000019901
a.rottmann84e63352003-03-24 09:42:16 +000019902
drh75897232000-05-29 14:26:00 +000019903##########
19904# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019905# that use "readline()" library.
19906#
19907if test "$config_TARGET_READLINE_LIBS" != ""; then
19908 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
19909else
19910 CC=$TARGET_CC
19911 LIBS=""
paul38372372003-04-22 08:04:49 +000019912 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19913echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
19914if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019915 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019916else
drh71eb93e2001-09-28 01:34:43 +000019917 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019918ac_cv_search_tgetent=no
19919cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925
19926/* Override any gcc2 internal prototype to avoid an error. */
19927#ifdef __cplusplus
19928extern "C"
19929#endif
19930/* We use char because int might match the return type of a gcc2
19931 builtin and then its argument prototype would still apply. */
19932char tgetent ();
19933int
19934main ()
19935{
19936tgetent ();
19937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext conftest$ac_exeext
19942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019943 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019944 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_search_tgetent="none required"
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968fi
a.rottmann964dbb12004-02-26 19:47:42 +000019969rm -f conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019971if test "$ac_cv_search_tgetent" = no; then
19972 for ac_lib in readline ncurses curses termcap; do
19973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19974 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980
19981/* Override any gcc2 internal prototype to avoid an error. */
19982#ifdef __cplusplus
19983extern "C"
19984#endif
19985/* We use char because int might match the return type of a gcc2
19986 builtin and then its argument prototype would still apply. */
19987char tgetent ();
19988int
19989main ()
19990{
19991tgetent ();
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996rm -f conftest.$ac_objext conftest$ac_exeext
19997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019998 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019999 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000020003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020005 { ac_try='test -z "$ac_c_werror_flag"
20006 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; } &&
20012 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000020013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 ac_cv_search_tgetent="-l$ac_lib"
20019break
20020else
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024fi
a.rottmann964dbb12004-02-26 19:47:42 +000020025rm -f conftest.err conftest.$ac_objext \
20026 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020027 done
20028fi
20029LIBS=$ac_func_search_save_LIBS
20030fi
20031echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20032echo "${ECHO_T}$ac_cv_search_tgetent" >&6
20033if test "$ac_cv_search_tgetent" != no; then
20034 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
20035
20036fi
20037
20038
20039echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20040echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20041if test "${ac_cv_lib_readline_readline+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 ac_check_lib_save_LIBS=$LIBS
20045LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020046cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020052
drh71eb93e2001-09-28 01:34:43 +000020053/* Override any gcc2 internal prototype to avoid an error. */
20054#ifdef __cplusplus
20055extern "C"
20056#endif
20057/* We use char because int might match the return type of a gcc2
20058 builtin and then its argument prototype would still apply. */
20059char readline ();
20060int
20061main ()
20062{
20063readline ();
20064 ;
20065 return 0;
20066}
20067_ACEOF
20068rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020070 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020071 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020076 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020077 { ac_try='test -z "$ac_c_werror_flag"
20078 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020086 (eval $ac_try) 2>&5
20087 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020089 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000020090 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020091else
drh71eb93e2001-09-28 01:34:43 +000020092 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020093sed 's/^/| /' conftest.$ac_ext >&5
20094
paul38372372003-04-22 08:04:49 +000020095ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020096fi
a.rottmann964dbb12004-02-26 19:47:42 +000020097rm -f conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020099LIBS=$ac_check_lib_save_LIBS
20100fi
20101echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20102echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20103if test $ac_cv_lib_readline_readline = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000020106_ACEOF
drh75897232000-05-29 14:26:00 +000020107
paul38372372003-04-22 08:04:49 +000020108 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020109
drh75897232000-05-29 14:26:00 +000020110fi
20111
drh75897232000-05-29 14:26:00 +000020112 TARGET_READLINE_LIBS="$LIBS"
20113fi
20114
a.rottmann84e63352003-03-24 09:42:16 +000020115
drh75897232000-05-29 14:26:00 +000020116##########
drhf1878b42006-01-23 18:06:52 +000020117# Figure out what C libraries are required to compile programs
20118# that use "fdatasync()" function.
20119#
20120CC=$TARGET_CC
20121LIBS=$TARGET_LIBS
20122echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
20123echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
20124if test "${ac_cv_search_fdatasync+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127 ac_func_search_save_LIBS=$LIBS
20128ac_cv_search_fdatasync=no
20129cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
20135
20136/* Override any gcc2 internal prototype to avoid an error. */
20137#ifdef __cplusplus
20138extern "C"
20139#endif
20140/* We use char because int might match the return type of a gcc2
20141 builtin and then its argument prototype would still apply. */
20142char fdatasync ();
20143int
20144main ()
20145{
20146fdatasync ();
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151rm -f conftest.$ac_objext conftest$ac_exeext
20152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -z "$ac_c_werror_flag"
20161 || test ! -s conftest.err'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest$ac_exeext'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
20173 ac_cv_search_fdatasync="none required"
20174else
20175 echo "$as_me: failed program was:" >&5
20176sed 's/^/| /' conftest.$ac_ext >&5
20177
20178fi
20179rm -f conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext conftest.$ac_ext
20181if test "$ac_cv_search_fdatasync" = no; then
20182 for ac_lib in rt; do
20183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185/* confdefs.h. */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h. */
20190
20191/* Override any gcc2 internal prototype to avoid an error. */
20192#ifdef __cplusplus
20193extern "C"
20194#endif
20195/* We use char because int might match the return type of a gcc2
20196 builtin and then its argument prototype would still apply. */
20197char fdatasync ();
20198int
20199main ()
20200{
20201fdatasync ();
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext conftest$ac_exeext
20207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_search_fdatasync="-l$ac_lib"
20229break
20230else
20231 echo "$as_me: failed program was:" >&5
20232sed 's/^/| /' conftest.$ac_ext >&5
20233
20234fi
20235rm -f conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 done
20238fi
20239LIBS=$ac_func_search_save_LIBS
20240fi
20241echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
20242echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
20243if test "$ac_cv_search_fdatasync" != no; then
20244 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
20245
20246fi
20247
20248TARGET_LIBS="$LIBS"
20249
20250##########
drh75897232000-05-29 14:26:00 +000020251# Figure out where to get the READLINE header files.
20252#
a.rottmann84e63352003-03-24 09:42:16 +000020253echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020254echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020255found=no
20256if test "$config_TARGET_READLINE_INC" != ""; then
20257 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20258 found=yes
20259fi
20260if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020261 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020262echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020263else
a.rottmann84e63352003-03-24 09:42:16 +000020264 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020265echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020266 if test "${ac_cv_header_readline_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020268echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20269if test "${ac_cv_header_readline_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020271fi
20272echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20273echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020274else
a.rottmann84e63352003-03-24 09:42:16 +000020275 # Is the header compilable?
20276echo "$as_me:$LINENO: checking readline.h usability" >&5
20277echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20278cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284$ac_includes_default
drh75897232000-05-29 14:26:00 +000020285#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020286_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020289 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020290 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_header_compiler=yes
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314ac_header_compiler=no
20315fi
a.rottmann964dbb12004-02-26 19:47:42 +000020316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318echo "${ECHO_T}$ac_header_compiler" >&6
20319
20320# Is the header present?
20321echo "$as_me:$LINENO: checking readline.h presence" >&5
20322echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20323cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
20329#include <readline.h>
20330_ACEOF
20331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20333 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020334 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020335 rm -f conftest.er1
20336 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020338 (exit $ac_status); } >/dev/null; then
20339 if test -s conftest.err; then
20340 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020342 else
20343 ac_cpp_err=
20344 fi
drh75897232000-05-29 14:26:00 +000020345else
drh71eb93e2001-09-28 01:34:43 +000020346 ac_cpp_err=yes
20347fi
20348if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020349 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020350else
20351 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020355fi
drh71eb93e2001-09-28 01:34:43 +000020356rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358echo "${ECHO_T}$ac_header_preproc" >&6
20359
20360# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020363 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20364echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020365 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20366echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20367 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020368 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020369 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020370 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20371echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020372 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20373echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20375echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20377echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020378 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20379echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020380 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20381echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020382 (
20383 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020384## ------------------------------------------ ##
20385## Report this to the AC_PACKAGE_NAME lists. ##
20386## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020387_ASBOX
20388 ) |
20389 sed "s/^/$as_me: WARNING: /" >&2
20390 ;;
20391esac
20392echo "$as_me:$LINENO: checking for readline.h" >&5
20393echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20394if test "${ac_cv_header_readline_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020398fi
a.rottmann84e63352003-03-24 09:42:16 +000020399echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020400echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020401
20402fi
drh71eb93e2001-09-28 01:34:43 +000020403if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020404 found=yes
drh75897232000-05-29 14:26:00 +000020405fi
20406
a.rottmann84e63352003-03-24 09:42:16 +000020407
drh75897232000-05-29 14:26:00 +000020408fi
20409if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020410 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020411 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020412echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020413echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20414if eval "test \"\${$as_ac_File+set}\" = set"; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020416else
20417 test "$cross_compiling" = yes &&
20418 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20419echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20420 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020421if test -r "$dir/include/readline.h"; then
20422 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020423else
drh71eb93e2001-09-28 01:34:43 +000020424 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020425fi
20426fi
a.rottmann84e63352003-03-24 09:42:16 +000020427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020428echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20429if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020430 found=yes
drh75897232000-05-29 14:26:00 +000020431fi
20432
20433 if test "$found" = "yes"; then
20434 TARGET_READLINE_INC="-I$dir/include"
20435 break
20436 fi
drh71eb93e2001-09-28 01:34:43 +000020437 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020438echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020439echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20440if eval "test \"\${$as_ac_File+set}\" = set"; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020442else
20443 test "$cross_compiling" = yes &&
20444 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20445echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20446 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020447if test -r "$dir/include/readline/readline.h"; then
20448 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020449else
drh71eb93e2001-09-28 01:34:43 +000020450 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020451fi
20452fi
a.rottmann84e63352003-03-24 09:42:16 +000020453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020454echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20455if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020456 found=yes
drh75897232000-05-29 14:26:00 +000020457fi
20458
20459 if test "$found" = "yes"; then
20460 TARGET_READLINE_INC="-I$dir/include/readline"
20461 break
20462 fi
20463 done
20464fi
20465if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020466 if test "$TARGET_READLINE_LIBS" = ""; then
20467 TARGET_HAVE_READLINE=0
20468 else
20469 TARGET_HAVE_READLINE=1
20470 fi
drh75897232000-05-29 14:26:00 +000020471else
20472 TARGET_HAVE_READLINE=0
20473fi
20474
a.rottmann84e63352003-03-24 09:42:16 +000020475
20476
drh75897232000-05-29 14:26:00 +000020477#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020478# check for debug enabled
20479# Check whether --enable-debug or --disable-debug was given.
20480if test "${enable_debug+set}" = set; then
20481 enableval="$enable_debug"
20482 use_debug=$enableval
20483else
20484 use_debug=no
20485fi;
20486if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000020487 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000020488else
20489 TARGET_DEBUG="-DNDEBUG"
20490fi
20491
20492
20493#########
drh2dfbbca2000-07-28 14:32:48 +000020494# Figure out whether or not we have a "usleep()" function.
20495#
a.rottmann84e63352003-03-24 09:42:16 +000020496echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020497echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20498if test "${ac_cv_func_usleep+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020500else
drh71eb93e2001-09-28 01:34:43 +000020501 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020507/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20509#define usleep innocuous_usleep
20510
drh2dfbbca2000-07-28 14:32:48 +000020511/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020512 which can conflict with char usleep (); below.
20513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20514 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020515
a.rottmann84e63352003-03-24 09:42:16 +000020516#ifdef __STDC__
20517# include <limits.h>
20518#else
20519# include <assert.h>
20520#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020521
20522#undef usleep
20523
drh2dfbbca2000-07-28 14:32:48 +000020524/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020525#ifdef __cplusplus
20526extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020527{
drh71eb93e2001-09-28 01:34:43 +000020528#endif
drh2dfbbca2000-07-28 14:32:48 +000020529/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020530 builtin and then its argument prototype would still apply. */
20531char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020532/* The GNU C library defines this for functions which it implements
20533 to always fail with ENOSYS. Some functions are actually named
20534 something starting with __ and the normal name is an alias. */
20535#if defined (__stub_usleep) || defined (__stub___usleep)
20536choke me
20537#else
a.rottmann84e63352003-03-24 09:42:16 +000020538char (*f) () = usleep;
20539#endif
20540#ifdef __cplusplus
20541}
drh2dfbbca2000-07-28 14:32:48 +000020542#endif
20543
a.rottmann84e63352003-03-24 09:42:16 +000020544int
20545main ()
20546{
20547return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020554 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020555 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020560 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020570 (eval $ac_try) 2>&5
20571 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020573 (exit $ac_status); }; }; then
20574 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020575else
drh71eb93e2001-09-28 01:34:43 +000020576 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020577sed 's/^/| /' conftest.$ac_ext >&5
20578
drh71eb93e2001-09-28 01:34:43 +000020579ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020580fi
a.rottmann964dbb12004-02-26 19:47:42 +000020581rm -f conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020583fi
a.rottmann84e63352003-03-24 09:42:16 +000020584echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020585echo "${ECHO_T}$ac_cv_func_usleep" >&6
20586if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020587 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020588fi
20589
a.rottmann84e63352003-03-24 09:42:16 +000020590
drhaf6edf52005-10-04 18:38:49 +000020591#--------------------------------------------------------------------
20592# Redefine fdatasync as fsync on systems that lack fdatasync
20593#--------------------------------------------------------------------
20594
20595echo "$as_me:$LINENO: checking for fdatasync" >&5
20596echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
20597if test "${ac_cv_func_fdatasync+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600 cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
20607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20608#define fdatasync innocuous_fdatasync
20609
20610/* System header to define __stub macros and hopefully few prototypes,
20611 which can conflict with char fdatasync (); below.
20612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20613 <limits.h> exists even on freestanding compilers. */
20614
20615#ifdef __STDC__
20616# include <limits.h>
20617#else
20618# include <assert.h>
20619#endif
20620
20621#undef fdatasync
20622
20623/* Override any gcc2 internal prototype to avoid an error. */
20624#ifdef __cplusplus
20625extern "C"
20626{
20627#endif
20628/* We use char because int might match the return type of a gcc2
20629 builtin and then its argument prototype would still apply. */
20630char fdatasync ();
20631/* The GNU C library defines this for functions which it implements
20632 to always fail with ENOSYS. Some functions are actually named
20633 something starting with __ and the normal name is an alias. */
20634#if defined (__stub_fdatasync) || defined (__stub___fdatasync)
20635choke me
20636#else
20637char (*f) () = fdatasync;
20638#endif
20639#ifdef __cplusplus
20640}
20641#endif
20642
20643int
20644main ()
20645{
20646return f != fdatasync;
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651rm -f conftest.$ac_objext conftest$ac_exeext
20652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20653 (eval $ac_link) 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest$ac_exeext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_func_fdatasync=yes
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678ac_cv_func_fdatasync=no
20679fi
20680rm -f conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682fi
20683echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20684echo "${ECHO_T}$ac_cv_func_fdatasync" >&6
20685if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020686 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020687fi
20688
20689
drh2dfbbca2000-07-28 14:32:48 +000020690#########
drhf1878b42006-01-23 18:06:52 +000020691# Put out accumulated miscellaneous LIBRARIES
20692#
20693
20694
20695#########
drh75897232000-05-29 14:26:00 +000020696# Generate the output files.
20697#
dougcurrie12b34442004-07-19 03:24:59 +000020698 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020699cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020700# This file is a shell script that caches the results of configure
20701# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020702# scripts and configure runs, see configure's option --config-cache.
20703# It is not useful on other systems. If it contains results you don't
20704# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020705#
drh71eb93e2001-09-28 01:34:43 +000020706# config.status only pays attention to the cache file if you give it
20707# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020708#
a.rottmann84e63352003-03-24 09:42:16 +000020709# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020710# loading this file, other *unset* `ac_cv_foo' will be assigned the
20711# following values.
20712
20713_ACEOF
20714
drh75897232000-05-29 14:26:00 +000020715# The following way of writing the cache mishandles newlines in values,
20716# but we know of no workaround that is simple, portable, and efficient.
20717# So, don't put newlines in cache variables' values.
20718# Ultrix sh set writes to stderr and can't be redirected directly,
20719# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020720{
20721 (set) 2>&1 |
20722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20723 *ac_space=\ *)
20724 # `set' does not quote correctly, so add quotes (double-quote
20725 # substitution turns \\\\ into \\, and sed turns \\ into \).
20726 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020727 "s/'/'\\\\''/g;
20728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020729 ;;
20730 *)
20731 # `set' quotes correctly as required by POSIX, so do not add quotes.
20732 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020733 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020734 ;;
20735 esac;
20736} |
20737 sed '
20738 t clear
20739 : clear
20740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20741 t end
20742 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20743 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020744if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020745 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020746 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20747 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020748 else
20749 echo "not updating unwritable cache $cache_file"
20750 fi
20751fi
20752rm -f confcache
20753
drh75897232000-05-29 14:26:00 +000020754test "x$prefix" = xNONE && prefix=$ac_default_prefix
20755# Let make expand exec_prefix.
20756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20757
drh71eb93e2001-09-28 01:34:43 +000020758# VPATH may cause trouble with some makes, so we remove $(srcdir),
20759# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20760# trailing colons and then remove the whole line if VPATH becomes empty
20761# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020762if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020764s/:*\$(srcdir):*/:/;
20765s/:*\${srcdir}:*/:/;
20766s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020767s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020768s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020769s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020770}'
drh75897232000-05-29 14:26:00 +000020771fi
20772
drh75897232000-05-29 14:26:00 +000020773# Transform confdefs.h into DEFS.
20774# Protect against shell expansion while executing Makefile rules.
20775# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020776#
20777# If the first sed substitution is executed (which looks for macros that
20778# take arguments), then we branch to the quote section. Otherwise,
20779# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020780cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020781t clear
20782: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020783s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020784t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020785s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020786t quote
20787d
20788: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020789s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020790s,\[,\\&,g
20791s,\],\\&,g
20792s,\$,$$,g
20793p
a.rottmann84e63352003-03-24 09:42:16 +000020794_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020795# We use echo to avoid assuming a particular line-breaking character.
20796# The extra dot is to prevent the shell from consuming trailing
20797# line-breaks from the sub-command output. A line-break within
20798# single-quotes doesn't work because, if this script is created in a
20799# platform that uses two characters for line-breaks (e.g., DOS), tr
20800# would break.
20801ac_LF_and_DOT=`echo; echo .`
20802DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20803rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020804
a.rottmann84e63352003-03-24 09:42:16 +000020805
20806ac_libobjs=
20807ac_ltlibobjs=
20808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20809 # 1. Remove the extension, and $U if already installed.
20810 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020811 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020812 # 2. Add them.
20813 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20814 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20815done
20816LIBOBJS=$ac_libobjs
20817
20818LTLIBOBJS=$ac_ltlibobjs
20819
20820
20821
drh75897232000-05-29 14:26:00 +000020822: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020823ac_clean_files_save=$ac_clean_files
20824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020825{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020826echo "$as_me: creating $CONFIG_STATUS" >&6;}
20827cat >$CONFIG_STATUS <<_ACEOF
20828#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020829# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020830# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020831# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020832# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020833
drh71eb93e2001-09-28 01:34:43 +000020834debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020835ac_cs_recheck=false
20836ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020837SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020838_ACEOF
drh75897232000-05-29 14:26:00 +000020839
drh71eb93e2001-09-28 01:34:43 +000020840cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020841## --------------------- ##
20842## M4sh Initialization. ##
20843## --------------------- ##
20844
drh71eb93e2001-09-28 01:34:43 +000020845# Be Bourne compatible
20846if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20847 emulate sh
20848 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20850 # is contrary to our usage. Disable this feature.
20851 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020852elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20853 set -o posix
drh75897232000-05-29 14:26:00 +000020854fi
a.rottmann964dbb12004-02-26 19:47:42 +000020855DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020856
a.rottmann84e63352003-03-24 09:42:16 +000020857# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020858if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020859 as_unset=unset
20860else
20861 as_unset=false
20862fi
20863
20864
20865# Work around bugs in pre-3.0 UWIN ksh.
20866$as_unset ENV MAIL MAILPATH
20867PS1='$ '
20868PS2='> '
20869PS4='+ '
20870
20871# NLS nuisances.
20872for as_var in \
20873 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20874 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20875 LC_TELEPHONE LC_TIME
20876do
a.rottmann964dbb12004-02-26 19:47:42 +000020877 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020878 eval $as_var=C; export $as_var
20879 else
20880 $as_unset $as_var
20881 fi
20882done
20883
20884# Required to use basename.
20885if expr a : '\(a\)' >/dev/null 2>&1; then
20886 as_expr=expr
20887else
20888 as_expr=false
20889fi
20890
20891if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20892 as_basename=basename
20893else
20894 as_basename=false
20895fi
20896
20897
drh71eb93e2001-09-28 01:34:43 +000020898# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020899as_me=`$as_basename "$0" ||
20900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20901 X"$0" : 'X\(//\)$' \| \
20902 X"$0" : 'X\(/\)$' \| \
20903 . : '\(.\)' 2>/dev/null ||
20904echo X/"$0" |
20905 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20906 /^X\/\(\/\/\)$/{ s//\1/; q; }
20907 /^X\/\(\/\).*/{ s//\1/; q; }
20908 s/.*/./; q'`
20909
20910
20911# PATH needs CR, and LINENO needs CR and PATH.
20912# Avoid depending upon Character Ranges.
20913as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20914as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20915as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20916as_cr_digits='0123456789'
20917as_cr_alnum=$as_cr_Letters$as_cr_digits
20918
20919# The user is always right.
20920if test "${PATH_SEPARATOR+set}" != set; then
20921 echo "#! /bin/sh" >conf$$.sh
20922 echo "exit 0" >>conf$$.sh
20923 chmod +x conf$$.sh
20924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20925 PATH_SEPARATOR=';'
20926 else
20927 PATH_SEPARATOR=:
20928 fi
20929 rm -f conf$$.sh
20930fi
20931
20932
20933 as_lineno_1=$LINENO
20934 as_lineno_2=$LINENO
20935 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20936 test "x$as_lineno_1" != "x$as_lineno_2" &&
20937 test "x$as_lineno_3" = "x$as_lineno_2" || {
20938 # Find who we are. Look in the path if we contain no path at all
20939 # relative or not.
20940 case $0 in
20941 *[\\/]* ) as_myself=$0 ;;
20942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20943for as_dir in $PATH
20944do
20945 IFS=$as_save_IFS
20946 test -z "$as_dir" && as_dir=.
20947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20948done
20949
20950 ;;
20951 esac
20952 # We did not find ourselves, most probably we were run as `sh COMMAND'
20953 # in which case we are not to be found in the path.
20954 if test "x$as_myself" = x; then
20955 as_myself=$0
20956 fi
20957 if test ! -f "$as_myself"; then
20958 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20959echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20960 { (exit 1); exit 1; }; }
20961 fi
20962 case $CONFIG_SHELL in
20963 '')
20964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20965for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20966do
20967 IFS=$as_save_IFS
20968 test -z "$as_dir" && as_dir=.
20969 for as_base in sh bash ksh sh5; do
20970 case $as_dir in
20971 /*)
20972 if ("$as_dir/$as_base" -c '
20973 as_lineno_1=$LINENO
20974 as_lineno_2=$LINENO
20975 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20976 test "x$as_lineno_1" != "x$as_lineno_2" &&
20977 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20978 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20979 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20980 CONFIG_SHELL=$as_dir/$as_base
20981 export CONFIG_SHELL
20982 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20983 fi;;
20984 esac
20985 done
20986done
20987;;
20988 esac
20989
20990 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20991 # uniformly replaced by the line number. The first 'sed' inserts a
20992 # line-number line before each line; the second 'sed' does the real
20993 # work. The second script uses 'N' to pair each line-number line
20994 # with the numbered line, and appends trailing '-' during
20995 # substitution so that $LINENO is not a special case at line end.
20996 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20997 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20998 sed '=' <$as_myself |
20999 sed '
21000 N
21001 s,$,-,
21002 : loop
21003 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21004 t loop
21005 s,-$,,
21006 s,^['$as_cr_digits']*\n,,
21007 ' >$as_me.lineno &&
21008 chmod +x $as_me.lineno ||
21009 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21010echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21011 { (exit 1); exit 1; }; }
21012
21013 # Don't try to exec as it changes $[0], causing all sort of problems
21014 # (the dirname of $[0] is not the place where we might find the
21015 # original and so on. Autoconf is especially sensible to this).
21016 . ./$as_me.lineno
21017 # Exit status is that of the last command.
21018 exit
21019}
21020
21021
21022case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21023 *c*,-n*) ECHO_N= ECHO_C='
21024' ECHO_T=' ' ;;
21025 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21026 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21027esac
drh71eb93e2001-09-28 01:34:43 +000021028
21029if expr a : '\(a\)' >/dev/null 2>&1; then
21030 as_expr=expr
21031else
21032 as_expr=false
21033fi
21034
21035rm -f conf$$ conf$$.exe conf$$.file
21036echo >conf$$.file
21037if ln -s conf$$.file conf$$ 2>/dev/null; then
21038 # We could just check for DJGPP; but this test a) works b) is more generic
21039 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21040 if test -f conf$$.exe; then
21041 # Don't use ln at all; we don't have any links
21042 as_ln_s='cp -p'
21043 else
21044 as_ln_s='ln -s'
21045 fi
21046elif ln conf$$.file conf$$ 2>/dev/null; then
21047 as_ln_s=ln
21048else
21049 as_ln_s='cp -p'
21050fi
21051rm -f conf$$ conf$$.exe conf$$.file
21052
a.rottmann84e63352003-03-24 09:42:16 +000021053if mkdir -p . 2>/dev/null; then
21054 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000021055else
a.rottmann964dbb12004-02-26 19:47:42 +000021056 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000021057 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000021058fi
21059
a.rottmann84e63352003-03-24 09:42:16 +000021060as_executable_p="test -f"
21061
21062# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000021063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021064
21065# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000021066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021067
drh71eb93e2001-09-28 01:34:43 +000021068
21069# IFS
21070# We need space, tab and new line, in precisely that order.
21071as_nl='
21072'
21073IFS=" $as_nl"
21074
21075# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000021076$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000021077
21078exec 6>&1
21079
a.rottmann84e63352003-03-24 09:42:16 +000021080# Open the log real soon, to keep \$[0] and so on meaningful, and to
21081# report actual input values of CONFIG_FILES etc. instead of their
21082# values after options handling. Logging --version etc. is OK.
21083exec 5>>config.log
21084{
21085 echo
21086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21087## Running $as_me. ##
21088_ASBOX
21089} >&5
21090cat >&5 <<_CSEOF
21091
21092This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000021093generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000021094
21095 CONFIG_FILES = $CONFIG_FILES
21096 CONFIG_HEADERS = $CONFIG_HEADERS
21097 CONFIG_LINKS = $CONFIG_LINKS
21098 CONFIG_COMMANDS = $CONFIG_COMMANDS
21099 $ $0 $@
21100
21101_CSEOF
21102echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21103echo >&5
drh71eb93e2001-09-28 01:34:43 +000021104_ACEOF
21105
21106# Files that config.status was made for.
21107if test -n "$ac_config_files"; then
21108 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21109fi
21110
21111if test -n "$ac_config_headers"; then
21112 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21113fi
21114
21115if test -n "$ac_config_links"; then
21116 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21117fi
21118
21119if test -n "$ac_config_commands"; then
21120 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21121fi
21122
a.rottmann84e63352003-03-24 09:42:16 +000021123cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021124
21125ac_cs_usage="\
21126\`$as_me' instantiates files from templates according to the
21127current configuration.
21128
21129Usage: $0 [OPTIONS] [FILE]...
21130
21131 -h, --help print this help, then exit
21132 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000021133 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000021134 -d, --debug don't remove temporary files
21135 --recheck update $as_me by reconfiguring in the same conditions
21136 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000021137 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000021138
21139Configuration files:
21140$config_files
21141
21142Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000021143_ACEOF
drh75897232000-05-29 14:26:00 +000021144
a.rottmann84e63352003-03-24 09:42:16 +000021145cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021146ac_cs_version="\\
21147config.status
a.rottmann964dbb12004-02-26 19:47:42 +000021148configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000021149 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021150
a.rottmann964dbb12004-02-26 19:47:42 +000021151Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021152This config.status script is free software; the Free Software Foundation
21153gives unlimited permission to copy, distribute and modify it."
21154srcdir=$srcdir
21155INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000021156_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021157
a.rottmann84e63352003-03-24 09:42:16 +000021158cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021159# If no file are specified by the user, then we need to provide default
21160# value. By we need to know if files were specified by the user.
21161ac_need_defaults=:
21162while test $# != 0
21163do
21164 case $1 in
21165 --*=*)
21166 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21167 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021168 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021169 ;;
a.rottmann84e63352003-03-24 09:42:16 +000021170 -*)
21171 ac_option=$1
21172 ac_optarg=$2
21173 ac_shift=shift
21174 ;;
drh71eb93e2001-09-28 01:34:43 +000021175 *) # This is not an option, so the user has probably given explicit
21176 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000021177 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000021178 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000021179 esac
21180
a.rottmann84e63352003-03-24 09:42:16 +000021181 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021182 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000021183_ACEOF
21184cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021186 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000021187 --version | --vers* | -V )
21188 echo "$ac_cs_version"; exit 0 ;;
21189 --he | --h)
21190 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000021191 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000021192Try \`$0 --help' for more information." >&5
21193echo "$as_me: error: ambiguous option: $1
21194Try \`$0 --help' for more information." >&2;}
21195 { (exit 1); exit 1; }; };;
21196 --help | --hel | -h )
21197 echo "$ac_cs_usage"; exit 0 ;;
21198 --debug | --d* | -d )
21199 debug=: ;;
21200 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021201 $ac_shift
21202 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021203 ac_need_defaults=false;;
21204 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000021205 $ac_shift
21206 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021207 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000021208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21210 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021211
drh71eb93e2001-09-28 01:34:43 +000021212 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000021213 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000021214Try \`$0 --help' for more information." >&5
21215echo "$as_me: error: unrecognized option: $1
21216Try \`$0 --help' for more information." >&2;}
21217 { (exit 1); exit 1; }; } ;;
21218
21219 *) ac_config_targets="$ac_config_targets $1" ;;
21220
21221 esac
21222 shift
21223done
21224
a.rottmann84e63352003-03-24 09:42:16 +000021225ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021226
a.rottmann84e63352003-03-24 09:42:16 +000021227if $ac_cs_silent; then
21228 exec 6>/dev/null
21229 ac_configure_extra_args="$ac_configure_extra_args --silent"
21230fi
drh71eb93e2001-09-28 01:34:43 +000021231
21232_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021233cat >>$CONFIG_STATUS <<_ACEOF
21234if \$ac_cs_recheck; then
21235 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21236 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21237fi
drh71eb93e2001-09-28 01:34:43 +000021238
a.rottmann84e63352003-03-24 09:42:16 +000021239_ACEOF
21240
21241
21242
21243
21244
21245cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021246for ac_config_target in $ac_config_targets
21247do
21248 case "$ac_config_target" in
21249 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000021250 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000021251 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000021252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021253echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21254 { (exit 1); exit 1; }; };;
21255 esac
21256done
21257
21258# If the user did not use the arguments to specify the items to instantiate,
21259# then the envvar interface is used. Set only those that are not.
21260# We use the long form for the default assignment because of an extremely
21261# bizarre bug on SunOS 4.1.3.
21262if $ac_need_defaults; then
21263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21264fi
21265
a.rottmann84e63352003-03-24 09:42:16 +000021266# Have a temporary directory for convenience. Make it in the build tree
21267# simply because there is no reason to put it here, and in addition,
21268# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000021269# Create a temporary directory, and hook for its removal unless debugging.
21270$debug ||
21271{
21272 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21273 trap '{ (exit 1); exit 1; }' 1 2 13 15
21274}
21275
21276# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021277
drh71eb93e2001-09-28 01:34:43 +000021278{
a.rottmann84e63352003-03-24 09:42:16 +000021279 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021280 test -n "$tmp" && test -d "$tmp"
21281} ||
21282{
a.rottmann84e63352003-03-24 09:42:16 +000021283 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000021284 (umask 077 && mkdir $tmp)
21285} ||
21286{
a.rottmann84e63352003-03-24 09:42:16 +000021287 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021288 { (exit 1); exit 1; }
21289}
21290
a.rottmann84e63352003-03-24 09:42:16 +000021291_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021292
a.rottmann84e63352003-03-24 09:42:16 +000021293cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021294
21295#
21296# CONFIG_FILES section.
21297#
21298
21299# No need to generate the scripts if there are no CONFIG_FILES.
21300# This happens for instance when ./config.status config.h
21301if test -n "\$CONFIG_FILES"; then
21302 # Protect against being on the right side of a sed subst in config.status.
21303 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21304 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21305s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021306s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21307s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21308s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21309s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21310s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21311s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000021312s,@exec_prefix@,$exec_prefix,;t t
21313s,@prefix@,$prefix,;t t
21314s,@program_transform_name@,$program_transform_name,;t t
21315s,@bindir@,$bindir,;t t
21316s,@sbindir@,$sbindir,;t t
21317s,@libexecdir@,$libexecdir,;t t
21318s,@datadir@,$datadir,;t t
21319s,@sysconfdir@,$sysconfdir,;t t
21320s,@sharedstatedir@,$sharedstatedir,;t t
21321s,@localstatedir@,$localstatedir,;t t
21322s,@libdir@,$libdir,;t t
21323s,@includedir@,$includedir,;t t
21324s,@oldincludedir@,$oldincludedir,;t t
21325s,@infodir@,$infodir,;t t
21326s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000021327s,@build_alias@,$build_alias,;t t
21328s,@host_alias@,$host_alias,;t t
21329s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021330s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000021331s,@ECHO_C@,$ECHO_C,;t t
21332s,@ECHO_N@,$ECHO_N,;t t
21333s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000021334s,@LIBS@,$LIBS,;t t
21335s,@build@,$build,;t t
21336s,@build_cpu@,$build_cpu,;t t
21337s,@build_vendor@,$build_vendor,;t t
21338s,@build_os@,$build_os,;t t
21339s,@host@,$host,;t t
21340s,@host_cpu@,$host_cpu,;t t
21341s,@host_vendor@,$host_vendor,;t t
21342s,@host_os@,$host_os,;t t
21343s,@CC@,$CC,;t t
21344s,@CFLAGS@,$CFLAGS,;t t
21345s,@LDFLAGS@,$LDFLAGS,;t t
21346s,@CPPFLAGS@,$CPPFLAGS,;t t
21347s,@ac_ct_CC@,$ac_ct_CC,;t t
21348s,@EXEEXT@,$EXEEXT,;t t
21349s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021350s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000021351s,@LN_S@,$LN_S,;t t
21352s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021353s,@AR@,$AR,;t t
21354s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021355s,@RANLIB@,$RANLIB,;t t
21356s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21357s,@STRIP@,$STRIP,;t t
21358s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21359s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021360s,@CXX@,$CXX,;t t
21361s,@CXXFLAGS@,$CXXFLAGS,;t t
21362s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21363s,@CXXCPP@,$CXXCPP,;t t
21364s,@F77@,$F77,;t t
21365s,@FFLAGS@,$FFLAGS,;t t
21366s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021367s,@LIBTOOL@,$LIBTOOL,;t t
21368s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21369s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21370s,@INSTALL_DATA@,$INSTALL_DATA,;t t
drhf1878b42006-01-23 18:06:52 +000021371s,@AWK@,$AWK,;t t
drh71eb93e2001-09-28 01:34:43 +000021372s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021373s,@VERSION@,$VERSION,;t t
drh4b2266a2004-11-27 15:52:16 +000021374s,@RELEASE@,$RELEASE,;t t
drh26d0e2a2005-07-06 13:51:27 +000021375s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
drh71eb93e2001-09-28 01:34:43 +000021376s,@BUILD_CC@,$BUILD_CC,;t t
21377s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21378s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21379s,@TARGET_CC@,$TARGET_CC,;t t
21380s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21381s,@TARGET_LINK@,$TARGET_LINK,;t t
21382s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21383s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21384s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021385s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021386s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
drh91636d52005-11-24 23:14:00 +000021387s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
drh8e2e2a12006-02-01 01:55:17 +000021388s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
xdong28f79f72003-09-23 00:35:21 +000021389s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021390s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021391s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21392s,@OS_UNIX@,$OS_UNIX,;t t
21393s,@OS_WIN@,$OS_WIN,;t t
drh60a1e4b2006-06-03 18:02:15 +000021394s,@OS_OS2@,$OS_OS2,;t t
drh71eb93e2001-09-28 01:34:43 +000021395s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
drh7b5717e2004-11-25 13:50:01 +000021396s,@TCL_VERSION@,$TCL_VERSION,;t t
21397s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21398s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21399s,@TCL_LIBS@,$TCL_LIBS,;t t
21400s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
21401s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21402s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21403s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21404s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21405s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21406s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21407s,@HAVE_TCL@,$HAVE_TCL,;t t
drh71eb93e2001-09-28 01:34:43 +000021408s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21409s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21410s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
tpoindex9d9f76c2005-01-03 21:28:56 +000021411s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
drhf1878b42006-01-23 18:06:52 +000021412s,@TARGET_LIBS@,$TARGET_LIBS,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021413s,@LIBOBJS@,$LIBOBJS,;t t
21414s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021415CEOF
21416
a.rottmann84e63352003-03-24 09:42:16 +000021417_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021418
a.rottmann84e63352003-03-24 09:42:16 +000021419 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021420 # Split the substitutions into bite-sized pieces for seds with
21421 # small command number limits, like on Digital OSF/1 and HP-UX.
21422 ac_max_sed_lines=48
21423 ac_sed_frag=1 # Number of current file.
21424 ac_beg=1 # First line for current file.
21425 ac_end=$ac_max_sed_lines # Line after last line for current file.
21426 ac_more_lines=:
21427 ac_sed_cmds=
21428 while $ac_more_lines; do
21429 if test $ac_beg -gt 1; then
21430 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21431 else
21432 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21433 fi
21434 if test ! -s $tmp/subs.frag; then
21435 ac_more_lines=false
21436 else
21437 # The purpose of the label and of the branching condition is to
21438 # speed up the sed processing (if there are no `@' at all, there
21439 # is no need to browse any of the substitutions).
21440 # These are the two extra sed commands mentioned above.
21441 (echo ':t
21442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21443 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021444 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021445 else
a.rottmann964dbb12004-02-26 19:47:42 +000021446 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021447 fi
21448 ac_sed_frag=`expr $ac_sed_frag + 1`
21449 ac_beg=$ac_end
21450 ac_end=`expr $ac_end + $ac_max_sed_lines`
21451 fi
21452 done
21453 if test -z "$ac_sed_cmds"; then
21454 ac_sed_cmds=cat
21455 fi
21456fi # test -n "$CONFIG_FILES"
21457
a.rottmann84e63352003-03-24 09:42:16 +000021458_ACEOF
21459cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021460for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21462 case $ac_file in
21463 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021464 cat >$tmp/stdin
21465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021469 * ) ac_file_in=$ac_file.in ;;
21470 esac
21471
21472 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021475 X"$ac_file" : 'X\(//\)[^/]' \| \
21476 X"$ac_file" : 'X\(//\)$' \| \
21477 X"$ac_file" : 'X\(/\)' \| \
21478 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021479echo X"$ac_file" |
21480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21482 /^X\(\/\/\)$/{ s//\1/; q; }
21483 /^X\(\/\).*/{ s//\1/; q; }
21484 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021485 { if $as_mkdir_p; then
21486 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021487 else
a.rottmann84e63352003-03-24 09:42:16 +000021488 as_dir="$ac_dir"
21489 as_dirs=
21490 while test ! -d "$as_dir"; do
21491 as_dirs="$as_dir $as_dirs"
21492 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21493$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021494 X"$as_dir" : 'X\(//\)[^/]' \| \
21495 X"$as_dir" : 'X\(//\)$' \| \
21496 X"$as_dir" : 'X\(/\)' \| \
21497 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021498echo X"$as_dir" |
21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21501 /^X\(\/\/\)$/{ s//\1/; q; }
21502 /^X\(\/\).*/{ s//\1/; q; }
21503 s/.*/./; q'`
21504 done
21505 test ! -n "$as_dirs" || mkdir $as_dirs
21506 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21507echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21508 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021509
a.rottmann84e63352003-03-24 09:42:16 +000021510 ac_builddir=.
21511
21512if test "$ac_dir" != .; then
21513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21514 # A "../" for each directory in $ac_dir_suffix.
21515 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21516else
21517 ac_dir_suffix= ac_top_builddir=
21518fi
21519
21520case $srcdir in
21521 .) # No --srcdir option. We are building in place.
21522 ac_srcdir=.
21523 if test -z "$ac_top_builddir"; then
21524 ac_top_srcdir=.
21525 else
21526 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21527 fi ;;
21528 [\\/]* | ?:[\\/]* ) # Absolute path.
21529 ac_srcdir=$srcdir$ac_dir_suffix;
21530 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021531 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021532 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21533 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21534esac
a.rottmann964dbb12004-02-26 19:47:42 +000021535
21536# Do not use `cd foo && pwd` to compute absolute paths, because
21537# the directories may not exist.
21538case `pwd` in
21539.) ac_abs_builddir="$ac_dir";;
21540*)
21541 case "$ac_dir" in
21542 .) ac_abs_builddir=`pwd`;;
21543 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21544 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21545 esac;;
21546esac
21547case $ac_abs_builddir in
21548.) ac_abs_top_builddir=${ac_top_builddir}.;;
21549*)
21550 case ${ac_top_builddir}. in
21551 .) ac_abs_top_builddir=$ac_abs_builddir;;
21552 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21553 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21554 esac;;
21555esac
21556case $ac_abs_builddir in
21557.) ac_abs_srcdir=$ac_srcdir;;
21558*)
21559 case $ac_srcdir in
21560 .) ac_abs_srcdir=$ac_abs_builddir;;
21561 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21562 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21563 esac;;
21564esac
21565case $ac_abs_builddir in
21566.) ac_abs_top_srcdir=$ac_top_srcdir;;
21567*)
21568 case $ac_top_srcdir in
21569 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21570 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21571 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21572 esac;;
21573esac
a.rottmann84e63352003-03-24 09:42:16 +000021574
drh75897232000-05-29 14:26:00 +000021575
drh71eb93e2001-09-28 01:34:43 +000021576 case $INSTALL in
21577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021578 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021579 esac
21580
dougcurrie0f290bf2004-06-21 18:57:29 +000021581 if test x"$ac_file" != x-; then
21582 { echo "$as_me:$LINENO: creating $ac_file" >&5
21583echo "$as_me: creating $ac_file" >&6;}
21584 rm -f "$ac_file"
21585 fi
drh71eb93e2001-09-28 01:34:43 +000021586 # Let's still pretend it is `configure' which instantiates (i.e., don't
21587 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021588 # /* config.h. Generated by config.status. */
21589 if test x"$ac_file" = x-; then
21590 configure_input=
21591 else
21592 configure_input="$ac_file. "
21593 fi
21594 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021595 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021596
drh71eb93e2001-09-28 01:34:43 +000021597 # First look for the input files in the build tree, otherwise in the
21598 # src tree.
21599 ac_file_inputs=`IFS=:
21600 for f in $ac_file_in; do
21601 case $f in
21602 -) echo $tmp/stdin ;;
21603 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021604 # Absolute (can't be DOS-style, as IFS=:)
21605 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021606echo "$as_me: error: cannot find input file: $f" >&2;}
21607 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021608 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021609 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021610 if test -f "$f"; then
21611 # Build tree
21612 echo "$f"
21613 elif test -f "$srcdir/$f"; then
21614 # Source tree
21615 echo "$srcdir/$f"
21616 else
21617 # /dev/null tree
21618 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021619echo "$as_me: error: cannot find input file: $f" >&2;}
21620 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021621 fi;;
drh71eb93e2001-09-28 01:34:43 +000021622 esac
21623 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021624_ACEOF
21625cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021626 sed "$ac_vpsub
21627$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021628_ACEOF
21629cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021630:t
21631/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21632s,@configure_input@,$configure_input,;t t
21633s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021634s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021635s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021636s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21637s,@builddir@,$ac_builddir,;t t
21638s,@abs_builddir@,$ac_abs_builddir,;t t
21639s,@top_builddir@,$ac_top_builddir,;t t
21640s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021641s,@INSTALL@,$ac_INSTALL,;t t
21642" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21643 rm -f $tmp/stdin
21644 if test x"$ac_file" != x-; then
21645 mv $tmp/out $ac_file
21646 else
21647 cat $tmp/out
21648 rm -f $tmp/out
21649 fi
drh75897232000-05-29 14:26:00 +000021650
drh71eb93e2001-09-28 01:34:43 +000021651done
a.rottmann84e63352003-03-24 09:42:16 +000021652_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021653
a.rottmann84e63352003-03-24 09:42:16 +000021654cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021655
21656{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021657_ACEOF
drh75897232000-05-29 14:26:00 +000021658chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021659ac_clean_files=$ac_clean_files_save
21660
a.rottmann84e63352003-03-24 09:42:16 +000021661
drh71eb93e2001-09-28 01:34:43 +000021662# configure is writing to config.log, and then calls config.status.
21663# config.status does its own redirection, appending to config.log.
21664# Unfortunately, on DOS this fails, as config.log is still kept open
21665# by configure, so config.status won't be able to write to it; its
21666# output is simply discarded. So we exec the FD to /dev/null,
21667# effectively closing config.log, so it can be properly (re)opened and
21668# appended to by config.status. When coming back to configure, we
21669# need to make the FD available again.
21670if test "$no_create" != yes; then
21671 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021672 ac_config_status_args=
21673 test "$silent" = yes &&
21674 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021675 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021677 exec 5>>config.log
21678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21679 # would make configure fail if this is the last instruction.
21680 $ac_cs_success || { (exit 1); exit 1; }
21681fi
drh75897232000-05-29 14:26:00 +000021682