blob: 89e956b4c7f7b60780ca06131cb1f5f5fd5632a6 [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
drh91636d52005-11-24 23:14:00 +0000466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION RELEASE 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 ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000467ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000468
469# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000470ac_init_help=
471ac_init_version=false
drh75897232000-05-29 14:26:00 +0000472# The variables have the same names as the options, with
473# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000474cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000475exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000476no_create=
drh75897232000-05-29 14:26:00 +0000477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
drh75897232000-05-29 14:26:00 +0000485verbose=
486x_includes=NONE
487x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
drh75897232000-05-29 14:26:00 +0000507ac_prev=
508for ac_option
509do
drh75897232000-05-29 14:26:00 +0000510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
drh71eb93e2001-09-28 01:34:43 +0000517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
drh71eb93e2001-09-28 01:34:43 +0000521 case $ac_option in
drh75897232000-05-29 14:26:00 +0000522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000526 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000527
528 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000529 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000531 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000547 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000548
549 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000551 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000557
558 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000560 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000567 *) ac_optarg=yes ;;
568 esac
drh71eb93e2001-09-28 01:34:43 +0000569 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000578 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
drh71eb93e2001-09-28 01:34:43 +0000584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000590
591 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000592 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000593 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000594 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000601 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000606 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000611 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000618 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000627 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000632 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000639 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000653 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000658 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000665 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000672 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000689 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000699 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000710 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000715 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000720 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000727 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000730 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000732 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
drh71eb93e2001-09-28 01:34:43 +0000737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000739
740 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000742 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000746 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000749 *) ac_optarg=yes ;;
750 esac
drh71eb93e2001-09-28 01:34:43 +0000751 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000752
753 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000755 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000771 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000778 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000779
drh71eb93e2001-09-28 01:34:43 +0000780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000783 ;;
784
drh71eb93e2001-09-28 01:34:43 +0000785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
drh75897232000-05-29 14:26:00 +0000795 *)
drh71eb93e2001-09-28 01:34:43 +0000796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000810fi
811
drh71eb93e2001-09-28 01:34:43 +0000812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000814do
drh71eb93e2001-09-28 01:34:43 +0000815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
821done
822
drh71eb93e2001-09-28 01:34:43 +0000823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a.rottmann964dbb12004-02-26 19:47:42 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
drh71eb93e2001-09-28 01:34:43 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000831 { (exit 1); exit 1; }; };;
832 esac
833done
drh75897232000-05-29 14:26:00 +0000834
drh71eb93e2001-09-28 01:34:43 +0000835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000837# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000838build=$build_alias
839host=$host_alias
840target=$target_alias
drh75897232000-05-29 14:26:00 +0000841
a.rottmann84e63352003-03-24 09:42:16 +0000842# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000857
a.rottmann84e63352003-03-24 09:42:16 +0000858
drh75897232000-05-29 14:26:00 +0000859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000885 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000886 else
a.rottmann84e63352003-03-24 09:42:16 +0000887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000888 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000889 fi
890fi
a.rottmann84e63352003-03-24 09:42:16 +0000891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
a.rottmann9bc8b932004-02-29 15:18:31 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
drh75897232000-05-29 14:26:00 +0000947
drh71eb93e2001-09-28 01:34:43 +0000948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000954 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
a.rottmann84e63352003-03-24 09:42:16 +0000975_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000976
a.rottmann84e63352003-03-24 09:42:16 +0000977 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000980 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000982 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +00001004_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001005
a.rottmann84e63352003-03-24 09:42:16 +00001006 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001007
1008System types:
1009 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001012fi
1013
1014if test -n "$ac_init_help"; then
1015
a.rottmann84e63352003-03-24 09:42:16 +00001016 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001017
1018Optional Features:
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001021 --enable-shared[=PKGS]
1022 build shared libraries [default=yes]
1023 --enable-static[=PKGS]
1024 build static libraries [default=yes]
1025 --enable-fast-install[=PKGS]
1026 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001027 --disable-libtool-lock avoid locking (might break parallel builds)
dougcurrie0f290bf2004-06-21 18:57:29 +00001028 --enable-threadsafe Support threadsafe operation
drh91636d52005-11-24 23:14:00 +00001029 --enable-cross-thread-connections Allow connection sharing across threads
xdong28f79f72003-09-23 00:35:21 +00001030 --enable-releasemode Support libtool link to release mode
dougcurrie0f290bf2004-06-21 18:57:29 +00001031 --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always)
drh7b5717e2004-11-25 13:50:01 +00001032 --disable-tcl do not build TCL extension
tpoindex9d9f76c2005-01-03 21:28:56 +00001033 --enable-debug enable debugging & verbose explain
drh71eb93e2001-09-28 01:34:43 +00001034
1035Optional Packages:
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001038 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039 --with-pic try to use only PIC/non-PIC objects [default=use
1040 both]
1041 --with-tags[=TAGS]
1042 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001043 --with-hints=FILE Read configuration options from FILE
drhb571b452004-12-10 02:20:27 +00001044 --with-tcl=DIR directory containing tcl configuration (tclConfig.sh)
drh71eb93e2001-09-28 01:34:43 +00001045
1046Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1053 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
a.rottmann84e63352003-03-24 09:42:16 +00001063_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1068 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1071 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001072
a.rottmann84e63352003-03-24 09:42:16 +00001073if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078 ac_dir_suffix= ac_top_builddir=
1079fi
drh71eb93e2001-09-28 01:34:43 +00001080
a.rottmann84e63352003-03-24 09:42:16 +00001081case $srcdir in
1082 .) # No --srcdir option. We are building in place.
1083 ac_srcdir=.
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
a.rottmann964dbb12004-02-26 19:47:42 +00001096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102 case "$ac_dir" in
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133 esac;;
1134esac
a.rottmann84e63352003-03-24 09:42:16 +00001135
1136 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001137 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001138 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001139 echo
a.rottmann84e63352003-03-24 09:42:16 +00001140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001142 echo
a.rottmann84e63352003-03-24 09:42:16 +00001143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001145 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001146 echo
1147 $ac_configure --help
1148 else
a.rottmann84e63352003-03-24 09:42:16 +00001149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001150 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001151 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001152 done
1153fi
1154
1155test -n "$ac_init_help" && exit 0
1156if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001157 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001158
a.rottmann964dbb12004-02-26 19:47:42 +00001159Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001160This configure script is free software; the Free Software Foundation
1161gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001162_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001163 exit 0
1164fi
1165exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001166cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001167This file contains any messages produced by compilers while
1168running configure, to aid debugging if configure makes a mistake.
1169
1170It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001171generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001172
1173 $ $0 $@
1174
a.rottmann84e63352003-03-24 09:42:16 +00001175_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001176{
1177cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001178## --------- ##
1179## Platform. ##
1180## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001181
1182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
drh71eb93e2001-09-28 01:34:43 +00001199_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001200
1201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202for as_dir in $PATH
1203do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207done
1208
drh71eb93e2001-09-28 01:34:43 +00001209} >&5
1210
a.rottmann84e63352003-03-24 09:42:16 +00001211cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001212
a.rottmann84e63352003-03-24 09:42:16 +00001213
1214## ----------- ##
1215## Core tests. ##
1216## ----------- ##
1217
1218_ACEOF
1219
drh71eb93e2001-09-28 01:34:43 +00001220
1221# Keep a trace of the command line.
1222# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001223# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001224# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001225# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001226ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001227ac_configure_args0=
1228ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001229ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001230ac_must_keep_next=false
1231for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001232do
a.rottmann84e63352003-03-24 09:42:16 +00001233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001248 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001249 else
a.rottmann964dbb12004-02-26 19:47:42 +00001250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
a.rottmann84e63352003-03-24 09:42:16 +00001261 fi
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1265 ;;
1266 esac
1267 done
drh71eb93e2001-09-28 01:34:43 +00001268done
a.rottmann84e63352003-03-24 09:42:16 +00001269$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001271
1272# When interrupted or exit'd, cleanup temporary files, and complete
1273# config.log. We remove comments because anyway the quotes in there
1274# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001275# WARNING: Be sure not to use single quotes in there, as some shells,
1276# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001277trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283## ---------------- ##
1284## Cache variables. ##
1285## ---------------- ##
1286_ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001289{
1290 (set) 2>&1 |
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1293 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001296 ;;
1297 *)
1298 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001300 ;;
1301 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001302}
1303 echo
1304
1305 cat <<\_ASBOX
1306## ----------------- ##
1307## Output variables. ##
1308## ----------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
1320## ------------- ##
1321## Output files. ##
1322## ------------- ##
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
1327 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001328 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335## ----------- ##
1336## confdefs.h. ##
1337## ----------- ##
1338_ASBOX
1339 echo
1340 sed "/^$/d" confdefs.h | sort
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001347 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001349 exit $exit_status
1350 ' 0
1351for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353done
1354ac_signal=0
1355
1356# confdefs.h avoids OS command line length limits that DEFS can exceed.
1357rm -rf conftest* confdefs.h
1358# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359echo >confdefs.h
1360
a.rottmann84e63352003-03-24 09:42:16 +00001361# Predefined preprocessor variables.
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_NAME "$PACKAGE_NAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_VERSION "$PACKAGE_VERSION"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_STRING "$PACKAGE_STRING"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385_ACEOF
1386
1387
drh71eb93e2001-09-28 01:34:43 +00001388# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001389# Prefer explicitly selected file to automatically selected ones.
1390if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395 fi
1396fi
1397for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001400echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001401 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001402 . "$ac_site_file"
1403 fi
1404done
1405
1406if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001411echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1415 esac
1416 fi
drh75897232000-05-29 14:26:00 +00001417else
a.rottmann84e63352003-03-24 09:42:16 +00001418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001419echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421fi
1422
1423# Check that the precious variables saved in the cache have kept the same
1424# value.
1425ac_cache_corrupted=false
1426for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1433 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001435echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001439echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001445echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001447echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001449echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001450 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001451 fi;;
1452 esac
a.rottmann84e63352003-03-24 09:42:16 +00001453 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001454 if test "$ac_new_set" = set; then
1455 case $ac_new_val in
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1459 esac
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001463 esac
1464 fi
1465done
1466if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001472fi
1473
1474ac_ext=c
drh75897232000-05-29 14:26:00 +00001475ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001479
a.rottmann84e63352003-03-24 09:42:16 +00001480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
drh75897232000-05-29 14:26:00 +00001498
1499# The following RCS revision string applies to configure.in
drh91636d52005-11-24 23:14:00 +00001500# $Revision: 1.35 $
drh75897232000-05-29 14:26:00 +00001501
1502#########
drh71eb93e2001-09-28 01:34:43 +00001503# Programs needed
drh75897232000-05-29 14:26:00 +00001504#
drh71eb93e2001-09-28 01:34:43 +00001505# Check whether --enable-shared or --disable-shared was given.
1506if test "${enable_shared+set}" = set; then
1507 enableval="$enable_shared"
1508 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001509 case $enableval in
1510 yes) enable_shared=yes ;;
1511 no) enable_shared=no ;;
1512 *)
1513 enable_shared=no
1514 # Look at the argument we got. We use all the common list separators.
1515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1516 for pkg in $enableval; do
1517 IFS="$lt_save_ifs"
1518 if test "X$pkg" = "X$p"; then
1519 enable_shared=yes
1520 fi
1521 done
1522 IFS="$lt_save_ifs"
1523 ;;
1524 esac
drh71eb93e2001-09-28 01:34:43 +00001525else
1526 enable_shared=yes
1527fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001528
drh71eb93e2001-09-28 01:34:43 +00001529# Check whether --enable-static or --disable-static was given.
1530if test "${enable_static+set}" = set; then
1531 enableval="$enable_static"
1532 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001533 case $enableval in
1534 yes) enable_static=yes ;;
1535 no) enable_static=no ;;
1536 *)
1537 enable_static=no
1538 # Look at the argument we got. We use all the common list separators.
1539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1540 for pkg in $enableval; do
1541 IFS="$lt_save_ifs"
1542 if test "X$pkg" = "X$p"; then
1543 enable_static=yes
1544 fi
1545 done
1546 IFS="$lt_save_ifs"
1547 ;;
1548 esac
drh71eb93e2001-09-28 01:34:43 +00001549else
1550 enable_static=yes
1551fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001552
drh71eb93e2001-09-28 01:34:43 +00001553# Check whether --enable-fast-install or --disable-fast-install was given.
1554if test "${enable_fast_install+set}" = set; then
1555 enableval="$enable_fast_install"
1556 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001557 case $enableval in
1558 yes) enable_fast_install=yes ;;
1559 no) enable_fast_install=no ;;
1560 *)
1561 enable_fast_install=no
1562 # Look at the argument we got. We use all the common list separators.
1563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1564 for pkg in $enableval; do
1565 IFS="$lt_save_ifs"
1566 if test "X$pkg" = "X$p"; then
1567 enable_fast_install=yes
1568 fi
1569 done
1570 IFS="$lt_save_ifs"
1571 ;;
1572 esac
drh71eb93e2001-09-28 01:34:43 +00001573else
1574 enable_fast_install=yes
1575fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001576
drh71eb93e2001-09-28 01:34:43 +00001577ac_aux_dir=
1578for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1579 if test -f $ac_dir/install-sh; then
1580 ac_aux_dir=$ac_dir
1581 ac_install_sh="$ac_aux_dir/install-sh -c"
1582 break
1583 elif test -f $ac_dir/install.sh; then
1584 ac_aux_dir=$ac_dir
1585 ac_install_sh="$ac_aux_dir/install.sh -c"
1586 break
1587 elif test -f $ac_dir/shtool; then
1588 ac_aux_dir=$ac_dir
1589 ac_install_sh="$ac_aux_dir/shtool install -c"
1590 break
1591 fi
1592done
1593if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001594 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001595echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1596 { (exit 1); exit 1; }; }
1597fi
1598ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1599ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1600ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1601
1602# Make sure we can run config.sub.
1603$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001604 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001605echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1606 { (exit 1); exit 1; }; }
1607
a.rottmann84e63352003-03-24 09:42:16 +00001608echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001609echo $ECHO_N "checking build system type... $ECHO_C" >&6
1610if test "${ac_cv_build+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_build_alias=$build_alias
1614test -z "$ac_cv_build_alias" &&
1615 ac_cv_build_alias=`$ac_config_guess`
1616test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001617 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001618echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1619 { (exit 1); exit 1; }; }
1620ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001623 { (exit 1); exit 1; }; }
1624
1625fi
a.rottmann84e63352003-03-24 09:42:16 +00001626echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001627echo "${ECHO_T}$ac_cv_build" >&6
1628build=$ac_cv_build
1629build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
a.rottmann84e63352003-03-24 09:42:16 +00001633
1634echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001635echo $ECHO_N "checking host system type... $ECHO_C" >&6
1636if test "${ac_cv_host+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 ac_cv_host_alias=$host_alias
1640test -z "$ac_cv_host_alias" &&
1641 ac_cv_host_alias=$ac_cv_build_alias
1642ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001644echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
a.rottmann84e63352003-03-24 09:42:16 +00001648echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001649echo "${ECHO_T}$ac_cv_host" >&6
1650host=$ac_cv_host
1651host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
a.rottmann84e63352003-03-24 09:42:16 +00001655
drh71eb93e2001-09-28 01:34:43 +00001656ac_ext=c
1657ac_cpp='$CPP $CPPFLAGS'
1658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1660ac_compiler_gnu=$ac_cv_c_compiler_gnu
1661if test -n "$ac_tool_prefix"; then
1662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1663set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001664echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671else
a.rottmann84e63352003-03-24 09:42:16 +00001672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
drh71eb93e2001-09-28 01:34:43 +00001684done
1685
1686fi
1687fi
1688CC=$ac_cv_prog_CC
1689if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001690 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001691echo "${ECHO_T}$CC" >&6
1692else
a.rottmann84e63352003-03-24 09:42:16 +00001693 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001694echo "${ECHO_T}no" >&6
1695fi
1696
1697fi
1698if test -z "$ac_cv_prog_CC"; then
1699 ac_ct_CC=$CC
1700 # Extract the first word of "gcc", so it can be a program name with args.
1701set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001702echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
a.rottmann84e63352003-03-24 09:42:16 +00001710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="gcc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
drh71eb93e2001-09-28 01:34:43 +00001722done
1723
1724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
a.rottmann84e63352003-03-24 09:42:16 +00001731 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001732echo "${ECHO_T}no" >&6
1733fi
1734
1735 CC=$ac_ct_CC
1736else
1737 CC="$ac_cv_prog_CC"
1738fi
1739
1740if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1743set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001744echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748else
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1751else
a.rottmann84e63352003-03-24 09:42:16 +00001752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="${ac_tool_prefix}cc"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1762 fi
1763done
drh71eb93e2001-09-28 01:34:43 +00001764done
1765
1766fi
1767fi
1768CC=$ac_cv_prog_CC
1769if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001770 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001771echo "${ECHO_T}$CC" >&6
1772else
a.rottmann84e63352003-03-24 09:42:16 +00001773 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001774echo "${ECHO_T}no" >&6
1775fi
1776
1777fi
1778if test -z "$ac_cv_prog_CC"; then
1779 ac_ct_CC=$CC
1780 # Extract the first word of "cc", so it can be a program name with args.
1781set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001782echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786else
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789else
a.rottmann84e63352003-03-24 09:42:16 +00001790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
drh71eb93e2001-09-28 01:34:43 +00001802done
1803
1804fi
1805fi
1806ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001809echo "${ECHO_T}$ac_ct_CC" >&6
1810else
a.rottmann84e63352003-03-24 09:42:16 +00001811 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001812echo "${ECHO_T}no" >&6
1813fi
1814
1815 CC=$ac_ct_CC
1816else
1817 CC="$ac_cv_prog_CC"
1818fi
1819
1820fi
1821if test -z "$CC"; then
1822 # Extract the first word of "cc", so it can be a program name with args.
1823set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001824echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1841 ac_prog_rejected=yes
1842 continue
1843 fi
1844 ac_cv_prog_CC="cc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848done
drh71eb93e2001-09-28 01:34:43 +00001849done
1850
1851if test $ac_prog_rejected = yes; then
1852 # We found a bogon in the path, so make sure we never use it.
1853 set dummy $ac_cv_prog_CC
1854 shift
1855 if test $# != 0; then
1856 # We chose a different compiler from the bogus one.
1857 # However, it has the same basename, so the bogon will be chosen
1858 # first if we set CC to just the basename; use the full file name.
1859 shift
a.rottmann84e63352003-03-24 09:42:16 +00001860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001861 fi
1862fi
1863fi
1864fi
1865CC=$ac_cv_prog_CC
1866if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001867 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001868echo "${ECHO_T}$CC" >&6
1869else
a.rottmann84e63352003-03-24 09:42:16 +00001870 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001871echo "${ECHO_T}no" >&6
1872fi
1873
1874fi
1875if test -z "$CC"; then
1876 if test -n "$ac_tool_prefix"; then
1877 for ac_prog in cl
1878 do
1879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001881echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1888else
a.rottmann84e63352003-03-24 09:42:16 +00001889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1899 fi
1900done
drh71eb93e2001-09-28 01:34:43 +00001901done
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001907 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001908echo "${ECHO_T}$CC" >&6
1909else
a.rottmann84e63352003-03-24 09:42:16 +00001910 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001911echo "${ECHO_T}no" >&6
1912fi
1913
1914 test -n "$CC" && break
1915 done
1916fi
1917if test -z "$CC"; then
1918 ac_ct_CC=$CC
1919 for ac_prog in cl
1920do
1921 # Extract the first word of "$ac_prog", so it can be a program name with args.
1922set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001923echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930else
a.rottmann84e63352003-03-24 09:42:16 +00001931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="$ac_prog"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942done
drh71eb93e2001-09-28 01:34:43 +00001943done
1944
1945fi
1946fi
1947ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001950echo "${ECHO_T}$ac_ct_CC" >&6
1951else
a.rottmann84e63352003-03-24 09:42:16 +00001952 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001953echo "${ECHO_T}no" >&6
1954fi
1955
1956 test -n "$ac_ct_CC" && break
1957done
1958
1959 CC=$ac_ct_CC
1960fi
1961
1962fi
1963
a.rottmann84e63352003-03-24 09:42:16 +00001964
1965test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1966See \`config.log' for more details." >&5
1967echo "$as_me: error: no acceptable C compiler found in \$PATH
1968See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001969 { (exit 1); exit 1; }; }
1970
1971# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001972echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001973 "checking for C compiler version" >&5
1974ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001975{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001976 (eval $ac_compiler --version </dev/null >&5) 2>&5
1977 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001979 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001981 (eval $ac_compiler -v </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); }
1990
1991cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001992/* confdefs.h. */
1993_ACEOF
1994cat confdefs.h >>conftest.$ac_ext
1995cat >>conftest.$ac_ext <<_ACEOF
1996/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001997
1998int
1999main ()
2000{
2001
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002007ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002008# Try to create an executable without -o first, disregard a.out.
2009# It will help us diagnose broken compilers, and finding out an intuition
2010# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002011echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2012echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002013ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002014if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002015 (eval $ac_link_default) 2>&5
2016 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002018 (exit $ac_status); }; then
2019 # Find the output, starting from the most likely. This scheme is
2020# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2021# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002022
2023# Be careful to initialize this variable, since it used to be cached.
2024# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2025ac_cv_exeext=
2026# b.out is created by i960 compilers.
2027for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2028do
2029 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002030 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002032 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002033 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002034 # This is the source file.
2035 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002036 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002037 # We found the default executable, but exeext='' is most
2038 # certainly right.
2039 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002040 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042 # FIXME: I believe we export ac_cv_exeext for Libtool,
2043 # but it would be cool to find out if it's true. Does anybody
2044 # maintain Libtool? --akim.
2045 export ac_cv_exeext
2046 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002047 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002048 break;;
drh71eb93e2001-09-28 01:34:43 +00002049 esac
2050done
2051else
2052 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: C compiler cannot create executables
2058See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002059 { (exit 77); exit 77; }; }
2060fi
2061
2062ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002063echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002064echo "${ECHO_T}$ac_file" >&6
2065
2066# Check the compiler produces executables we can run. If not, either
2067# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002068echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002069echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2070# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2071# If not cross compiling, check that we can run a simple program.
2072if test "$cross_compiling" != yes; then
2073 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002075 (eval $ac_try) 2>&5
2076 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002078 (exit $ac_status); }; }; then
2079 cross_compiling=no
2080 else
2081 if test "$cross_compiling" = maybe; then
2082 cross_compiling=yes
2083 else
a.rottmann84e63352003-03-24 09:42:16 +00002084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2085If you meant to cross compile, use \`--host'.
2086See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002087echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002088If you meant to cross compile, use \`--host'.
2089See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002090 { (exit 1); exit 1; }; }
2091 fi
2092 fi
2093fi
a.rottmann84e63352003-03-24 09:42:16 +00002094echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002095echo "${ECHO_T}yes" >&6
2096
a.rottmann84e63352003-03-24 09:42:16 +00002097rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002098ac_clean_files=$ac_clean_files_save
2099# Check the compiler produces executables we can run. If not, either
2100# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002101echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002102echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002103echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002104echo "${ECHO_T}$cross_compiling" >&6
2105
a.rottmann84e63352003-03-24 09:42:16 +00002106echo "$as_me:$LINENO: checking for suffix of executables" >&5
2107echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002109 (eval $ac_link) 2>&5
2110 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002112 (exit $ac_status); }; then
2113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2114# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2115# work properly (i.e., refer to `conftest.exe'), while it won't with
2116# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002117for ac_file in conftest.exe conftest conftest.*; do
2118 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002119 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002122 export ac_cv_exeext
2123 break;;
drh71eb93e2001-09-28 01:34:43 +00002124 * ) break;;
2125 esac
2126done
2127else
a.rottmann84e63352003-03-24 09:42:16 +00002128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2131See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002132 { (exit 1); exit 1; }; }
2133fi
2134
2135rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002136echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002137echo "${ECHO_T}$ac_cv_exeext" >&6
2138
2139rm -f conftest.$ac_ext
2140EXEEXT=$ac_cv_exeext
2141ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002142echo "$as_me:$LINENO: checking for suffix of object files" >&5
2143echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002144if test "${ac_cv_objext+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002148/* confdefs.h. */
2149_ACEOF
2150cat confdefs.h >>conftest.$ac_ext
2151cat >>conftest.$ac_ext <<_ACEOF
2152/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002153
2154int
2155main ()
2156{
2157
2158 ;
2159 return 0;
2160}
2161_ACEOF
2162rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002164 (eval $ac_compile) 2>&5
2165 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002167 (exit $ac_status); }; then
2168 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2169 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2172 break;;
2173 esac
2174done
2175else
2176 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&5
2181echo "$as_me: error: cannot compute suffix of object files: cannot compile
2182See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002183 { (exit 1); exit 1; }; }
2184fi
2185
2186rm -f conftest.$ac_cv_objext conftest.$ac_ext
2187fi
a.rottmann84e63352003-03-24 09:42:16 +00002188echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002189echo "${ECHO_T}$ac_cv_objext" >&6
2190OBJEXT=$ac_cv_objext
2191ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002192echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002193echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2194if test "${ac_cv_c_compiler_gnu+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002198/* confdefs.h. */
2199_ACEOF
2200cat confdefs.h >>conftest.$ac_ext
2201cat >>conftest.$ac_ext <<_ACEOF
2202/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002203
2204int
2205main ()
2206{
2207#ifndef __GNUC__
2208 choke me
2209#endif
2210
2211 ;
2212 return 0;
2213}
2214_ACEOF
2215rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002217 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002218 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002219 grep -v '^ *+' conftest.er1 >conftest.err
2220 rm -f conftest.er1
2221 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002223 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002224 { ac_try='test -z "$ac_c_werror_flag"
2225 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002233 (eval $ac_try) 2>&5
2234 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002236 (exit $ac_status); }; }; then
2237 ac_compiler_gnu=yes
2238else
2239 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002240sed 's/^/| /' conftest.$ac_ext >&5
2241
drh71eb93e2001-09-28 01:34:43 +00002242ac_compiler_gnu=no
2243fi
a.rottmann964dbb12004-02-26 19:47:42 +00002244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002245ac_cv_c_compiler_gnu=$ac_compiler_gnu
2246
2247fi
a.rottmann84e63352003-03-24 09:42:16 +00002248echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002249echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2250GCC=`test $ac_compiler_gnu = yes && echo yes`
2251ac_test_CFLAGS=${CFLAGS+set}
2252ac_save_CFLAGS=$CFLAGS
2253CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002254echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002255echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2256if test "${ac_cv_prog_cc_g+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002260/* confdefs.h. */
2261_ACEOF
2262cat confdefs.h >>conftest.$ac_ext
2263cat >>conftest.$ac_ext <<_ACEOF
2264/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002265
2266int
2267main ()
2268{
2269
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002276 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002277 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002278 grep -v '^ *+' conftest.er1 >conftest.err
2279 rm -f conftest.er1
2280 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002282 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002283 { ac_try='test -z "$ac_c_werror_flag"
2284 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; } &&
2290 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002292 (eval $ac_try) 2>&5
2293 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002295 (exit $ac_status); }; }; then
2296 ac_cv_prog_cc_g=yes
2297else
2298 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002299sed 's/^/| /' conftest.$ac_ext >&5
2300
drh71eb93e2001-09-28 01:34:43 +00002301ac_cv_prog_cc_g=no
2302fi
a.rottmann964dbb12004-02-26 19:47:42 +00002303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002304fi
a.rottmann84e63352003-03-24 09:42:16 +00002305echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002306echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2307if test "$ac_test_CFLAGS" = set; then
2308 CFLAGS=$ac_save_CFLAGS
2309elif test $ac_cv_prog_cc_g = yes; then
2310 if test "$GCC" = yes; then
2311 CFLAGS="-g -O2"
2312 else
2313 CFLAGS="-g"
2314 fi
2315else
2316 if test "$GCC" = yes; then
2317 CFLAGS="-O2"
2318 else
2319 CFLAGS=
2320 fi
2321fi
a.rottmann84e63352003-03-24 09:42:16 +00002322echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2323echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2324if test "${ac_cv_prog_cc_stdc+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327 ac_cv_prog_cc_stdc=no
2328ac_save_CC=$CC
2329cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002330/* confdefs.h. */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h. */
2335#include <stdarg.h>
2336#include <stdio.h>
2337#include <sys/types.h>
2338#include <sys/stat.h>
2339/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2340struct buf { int x; };
2341FILE * (*rcsopen) (struct buf *, struct stat *, int);
2342static char *e (p, i)
2343 char **p;
2344 int i;
2345{
2346 return p[i];
2347}
2348static char *f (char * (*g) (char **, int), char **p, ...)
2349{
2350 char *s;
2351 va_list v;
2352 va_start (v,p);
2353 s = g (p, va_arg (v,int));
2354 va_end (v);
2355 return s;
2356}
a.rottmann964dbb12004-02-26 19:47:42 +00002357
2358/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2359 function prototypes and stuff, but not '\xHH' hex character constants.
2360 These don't provoke an error unfortunately, instead are silently treated
2361 as 'x'. The following induces an error, until -std1 is added to get
2362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2363 array size at least. It's necessary to write '\x00'==0 to get something
2364 that's true only with -std1. */
2365int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2366
a.rottmann84e63352003-03-24 09:42:16 +00002367int test (int i, double x);
2368struct s1 {int (*f) (int a);};
2369struct s2 {int (*f) (double a);};
2370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2371int argc;
2372char **argv;
2373int
2374main ()
2375{
2376return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381# Don't try gcc -ansi; that turns off useful extensions and
2382# breaks some systems' header files.
2383# AIX -qlanglvl=ansi
2384# Ultrix and OSF/1 -std1
2385# HP-UX 10.20 and later -Ae
2386# HP-UX older versions -Aa -D_HPUX_SOURCE
2387# SVR4 -Xc -D__EXTENSIONS__
2388for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2389do
2390 CC="$ac_save_CC $ac_arg"
2391 rm -f conftest.$ac_objext
2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002393 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002394 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_prog_cc_stdc=$ac_arg
2414break
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419fi
a.rottmann964dbb12004-02-26 19:47:42 +00002420rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002421done
2422rm -f conftest.$ac_ext conftest.$ac_objext
2423CC=$ac_save_CC
2424
2425fi
2426
2427case "x$ac_cv_prog_cc_stdc" in
2428 x|xno)
2429 echo "$as_me:$LINENO: result: none needed" >&5
2430echo "${ECHO_T}none needed" >&6 ;;
2431 *)
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2433echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2434 CC="$CC $ac_cv_prog_cc_stdc" ;;
2435esac
2436
drh71eb93e2001-09-28 01:34:43 +00002437# Some people use a C++ compiler to compile C. Since we use `exit',
2438# in C++ we need to declare it. In case someone uses the same compiler
2439# for both compiling C and C++ we need to have the C++ compiler decide
2440# the declaration of exit, since it's the most demanding environment.
2441cat >conftest.$ac_ext <<_ACEOF
2442#ifndef __cplusplus
2443 choke me
2444#endif
2445_ACEOF
2446rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002448 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002449 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002454 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002464 (eval $ac_try) 2>&5
2465 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002467 (exit $ac_status); }; }; then
2468 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002469 '' \
drh71eb93e2001-09-28 01:34:43 +00002470 'extern "C" void std::exit (int) throw (); using std::exit;' \
2471 'extern "C" void std::exit (int); using std::exit;' \
2472 'extern "C" void exit (int) throw ();' \
2473 'extern "C" void exit (int);' \
2474 'void exit (int);'
2475do
2476 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002482$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002483#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002484int
2485main ()
2486{
2487exit (42);
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002494 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002495 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002500 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002510 (eval $ac_try) 2>&5
2511 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002513 (exit $ac_status); }; }; then
2514 :
2515else
2516 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002517sed 's/^/| /' conftest.$ac_ext >&5
2518
drh71eb93e2001-09-28 01:34:43 +00002519continue
2520fi
a.rottmann964dbb12004-02-26 19:47:42 +00002521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002522 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002523/* confdefs.h. */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002528$ac_declaration
2529int
2530main ()
2531{
2532exit (42);
2533 ;
2534 return 0;
2535}
2536_ACEOF
2537rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002539 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002540 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002545 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002555 (eval $ac_try) 2>&5
2556 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002558 (exit $ac_status); }; }; then
2559 break
2560else
2561 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002562sed 's/^/| /' conftest.$ac_ext >&5
2563
drh71eb93e2001-09-28 01:34:43 +00002564fi
a.rottmann964dbb12004-02-26 19:47:42 +00002565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002566done
2567rm -f conftest*
2568if test -n "$ac_declaration"; then
2569 echo '#ifdef __cplusplus' >>confdefs.h
2570 echo $ac_declaration >>confdefs.h
2571 echo '#endif' >>confdefs.h
2572fi
2573
2574else
2575 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002576sed 's/^/| /' conftest.$ac_ext >&5
2577
drh71eb93e2001-09-28 01:34:43 +00002578fi
a.rottmann964dbb12004-02-26 19:47:42 +00002579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002580ac_ext=c
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
a.rottmann9bc8b932004-02-29 15:18:31 +00002586echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2587echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2588if test "${lt_cv_path_SED+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591 # Loop through the user's path and test for sed and gsed.
2592# Then use that list of sed's as ones to test for truncation.
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for lt_ac_prog in sed gsed; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2601 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2602 fi
2603 done
2604 done
2605done
2606lt_ac_max=0
2607lt_ac_count=0
2608# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2609# along with /bin/sed that truncates output.
2610for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2611 test ! -f $lt_ac_sed && break
2612 cat /dev/null > conftest.in
2613 lt_ac_count=0
2614 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2615 # Check for GNU sed and select it if it is found.
2616 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2617 lt_cv_path_SED=$lt_ac_sed
2618 break
2619 fi
2620 while true; do
2621 cat conftest.in conftest.in >conftest.tmp
2622 mv conftest.tmp conftest.in
2623 cp conftest.in conftest.nl
2624 echo >>conftest.nl
2625 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2626 cmp -s conftest.out conftest.nl || break
2627 # 10000 chars as input seems more than enough
2628 test $lt_ac_count -gt 10 && break
2629 lt_ac_count=`expr $lt_ac_count + 1`
2630 if test $lt_ac_count -gt $lt_ac_max; then
2631 lt_ac_max=$lt_ac_count
2632 lt_cv_path_SED=$lt_ac_sed
2633 fi
2634 done
2635done
2636SED=$lt_cv_path_SED
2637
a.rottmann84e63352003-03-24 09:42:16 +00002638fi
2639
a.rottmann9bc8b932004-02-29 15:18:31 +00002640echo "$as_me:$LINENO: result: $SED" >&5
2641echo "${ECHO_T}$SED" >&6
2642
2643echo "$as_me:$LINENO: checking for egrep" >&5
2644echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2645if test "${ac_cv_prog_egrep+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647else
2648 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2649 then ac_cv_prog_egrep='grep -E'
2650 else ac_cv_prog_egrep='egrep'
2651 fi
2652fi
2653echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2654echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2655 EGREP=$ac_cv_prog_egrep
2656
2657
a.rottmann84e63352003-03-24 09:42:16 +00002658
drh71eb93e2001-09-28 01:34:43 +00002659# Check whether --with-gnu-ld or --without-gnu-ld was given.
2660if test "${with_gnu_ld+set}" = set; then
2661 withval="$with_gnu_ld"
2662 test "$withval" = no || with_gnu_ld=yes
2663else
2664 with_gnu_ld=no
2665fi;
2666ac_prog=ld
2667if test "$GCC" = yes; then
2668 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002669 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2670echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002671 case $host in
2672 *-*-mingw*)
2673 # gcc leaves a trailing carriage return which upsets mingw
2674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2675 *)
2676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2677 esac
2678 case $ac_prog in
2679 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002680 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002681 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002682 # Canonicalize the pathname of ld
2683 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002684 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002685 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002686 done
2687 test -z "$LD" && LD="$ac_prog"
2688 ;;
2689 "")
2690 # If it fails, then pretend we aren't using GCC.
2691 ac_prog=ld
2692 ;;
2693 *)
2694 # If it is relative, then search for the first ld in PATH.
2695 with_gnu_ld=unknown
2696 ;;
2697 esac
2698elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002699 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002700echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2701else
a.rottmann84e63352003-03-24 09:42:16 +00002702 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002703echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2704fi
2705if test "${lt_cv_path_LD+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002710 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002711 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002712 test -z "$ac_dir" && ac_dir=.
2713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2714 lt_cv_path_LD="$ac_dir/$ac_prog"
2715 # Check to see if the program is GNU ld. I'd rather use --version,
2716 # but apparently some GNU ld's only accept -v.
2717 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2719 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002720 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002721 ;;
2722 *)
drh71eb93e2001-09-28 01:34:43 +00002723 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002724 ;;
2725 esac
drh71eb93e2001-09-28 01:34:43 +00002726 fi
2727 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002728 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002729else
2730 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2731fi
2732fi
2733
2734LD="$lt_cv_path_LD"
2735if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002736 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002737echo "${ECHO_T}$LD" >&6
2738else
a.rottmann84e63352003-03-24 09:42:16 +00002739 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002740echo "${ECHO_T}no" >&6
2741fi
a.rottmann84e63352003-03-24 09:42:16 +00002742test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002743echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2744 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002745echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002746echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2747if test "${lt_cv_prog_gnu_ld+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002751case `$LD -v 2>&1 </dev/null` in
2752*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002753 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002754 ;;
2755*)
drh71eb93e2001-09-28 01:34:43 +00002756 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002757 ;;
2758esac
drh71eb93e2001-09-28 01:34:43 +00002759fi
a.rottmann84e63352003-03-24 09:42:16 +00002760echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002761echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2762with_gnu_ld=$lt_cv_prog_gnu_ld
2763
a.rottmann84e63352003-03-24 09:42:16 +00002764
2765echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002766echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2767if test "${lt_cv_ld_reload_flag+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770 lt_cv_ld_reload_flag='-r'
2771fi
a.rottmann84e63352003-03-24 09:42:16 +00002772echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002773echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2774reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002775case $reload_flag in
2776"" | " "*) ;;
2777*) reload_flag=" $reload_flag" ;;
2778esac
2779reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002780
a.rottmann84e63352003-03-24 09:42:16 +00002781echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002782echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2783if test "${lt_cv_path_NM+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786 if test -n "$NM"; then
2787 # Let the user override the test.
2788 lt_cv_path_NM="$NM"
2789else
a.rottmann9bc8b932004-02-29 15:18:31 +00002790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002791 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002792 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002793 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002794 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2795 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002796 # Check to see if the nm accepts a BSD-compat flag.
2797 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2798 # nm: unknown option "B" ignored
2799 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002800 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2801 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002802 lt_cv_path_NM="$tmp_nm -B"
2803 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002804 ;;
2805 *)
2806 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2807 */dev/null*)
2808 lt_cv_path_NM="$tmp_nm -p"
2809 break
2810 ;;
2811 *)
2812 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2813 continue # so that we can try to find one that supports BSD flags
2814 ;;
2815 esac
2816 esac
drh71eb93e2001-09-28 01:34:43 +00002817 fi
2818 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002819 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002820 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2821fi
2822fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002823echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2824echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002825NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002826
2827echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002828echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2829LN_S=$as_ln_s
2830if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002831 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002832echo "${ECHO_T}yes" >&6
2833else
a.rottmann84e63352003-03-24 09:42:16 +00002834 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002835echo "${ECHO_T}no, using $LN_S" >&6
2836fi
2837
a.rottmann84e63352003-03-24 09:42:16 +00002838echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2839echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002840if test "${lt_cv_deplibs_check_method+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 lt_cv_file_magic_cmd='$MAGIC_CMD'
2844lt_cv_file_magic_test_file=
2845lt_cv_deplibs_check_method='unknown'
2846# Need to set the preceding variable on all platforms that support
2847# interlibrary dependencies.
2848# 'none' -- dependencies not supported.
2849# `unknown' -- same as none, but documents that we really don't know.
2850# 'pass_all' -- all dependencies passed with no checks.
2851# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002852# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002853# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002854# If you have `file' or equivalent on your system and you're not sure
2855# whether `pass_all' will *always* work, you probably want this one.
2856
2857case $host_os in
2858aix4* | aix5*)
2859 lt_cv_deplibs_check_method=pass_all
2860 ;;
2861
2862beos*)
2863 lt_cv_deplibs_check_method=pass_all
2864 ;;
2865
2866bsdi4*)
2867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2868 lt_cv_file_magic_cmd='/usr/bin/file -L'
2869 lt_cv_file_magic_test_file=/shlib/libc.so
2870 ;;
2871
a.rottmann9bc8b932004-02-29 15:18:31 +00002872cygwin*)
2873 # win32_libid is a shell function defined in ltmain.sh
2874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2875 lt_cv_file_magic_cmd='win32_libid'
2876 ;;
2877
2878mingw* | pw32*)
2879 # Base MSYS/MinGW do not provide the 'file' command needed by
2880 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002881 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2882 lt_cv_file_magic_cmd='$OBJDUMP -f'
2883 ;;
2884
2885darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002886 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002887 ;;
2888
a.rottmann9bc8b932004-02-29 15:18:31 +00002889freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2891 case $host_cpu in
2892 i*86 )
2893 # Not sure whether the presence of OpenBSD here was a mistake.
2894 # Let's accept both of them until this is cleared up.
2895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2896 lt_cv_file_magic_cmd=/usr/bin/file
2897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2898 ;;
2899 esac
2900 else
2901 lt_cv_deplibs_check_method=pass_all
2902 fi
2903 ;;
2904
2905gnu*)
2906 lt_cv_deplibs_check_method=pass_all
2907 ;;
2908
a.rottmann9bc8b932004-02-29 15:18:31 +00002909hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002910 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002911 case "$host_cpu" in
2912 ia64*)
2913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2914 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2915 ;;
2916 hppa*64*)
2917 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]'
2918 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2919 ;;
2920 *)
2921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2922 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2923 ;;
2924 esac
drh71eb93e2001-09-28 01:34:43 +00002925 ;;
2926
a.rottmann84e63352003-03-24 09:42:16 +00002927irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002928 case $LD in
2929 *-32|*"-32 ") libmagic=32-bit;;
2930 *-n32|*"-n32 ") libmagic=N32;;
2931 *-64|*"-64 ") libmagic=64-bit;;
2932 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002933 esac
drh71eb93e2001-09-28 01:34:43 +00002934 lt_cv_deplibs_check_method=pass_all
2935 ;;
2936
2937# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002938linux*)
2939 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002940 ;;
2941
a.rottmann9bc8b932004-02-29 15:18:31 +00002942netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002943 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002945 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002947 fi
2948 ;;
2949
2950newos6*)
2951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2952 lt_cv_file_magic_cmd=/usr/bin/file
2953 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2954 ;;
2955
a.rottmann9bc8b932004-02-29 15:18:31 +00002956nto-qnx*)
2957 lt_cv_deplibs_check_method=unknown
2958 ;;
2959
a.rottmann84e63352003-03-24 09:42:16 +00002960openbsd*)
2961 lt_cv_file_magic_cmd=/usr/bin/file
2962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2965 else
2966 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2967 fi
drh71eb93e2001-09-28 01:34:43 +00002968 ;;
2969
2970osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002971 lt_cv_deplibs_check_method=pass_all
2972 ;;
2973
2974sco3.2v5*)
2975 lt_cv_deplibs_check_method=pass_all
2976 ;;
2977
2978solaris*)
2979 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002980 ;;
2981
drh71eb93e2001-09-28 01:34:43 +00002982sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2983 case $host_vendor in
2984 motorola)
2985 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]'
2986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2987 ;;
2988 ncr)
2989 lt_cv_deplibs_check_method=pass_all
2990 ;;
2991 sequent)
2992 lt_cv_file_magic_cmd='/bin/file'
2993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2994 ;;
2995 sni)
2996 lt_cv_file_magic_cmd='/bin/file'
2997 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2998 lt_cv_file_magic_test_file=/lib/libc.so
2999 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003000 siemens)
3001 lt_cv_deplibs_check_method=pass_all
3002 ;;
drh71eb93e2001-09-28 01:34:43 +00003003 esac
3004 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003005
3006sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3007 lt_cv_deplibs_check_method=pass_all
3008 ;;
drh71eb93e2001-09-28 01:34:43 +00003009esac
3010
3011fi
a.rottmann84e63352003-03-24 09:42:16 +00003012echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003013echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3014file_magic_cmd=$lt_cv_file_magic_cmd
3015deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003016test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003017
drh71eb93e2001-09-28 01:34:43 +00003018
drh71eb93e2001-09-28 01:34:43 +00003019
drh71eb93e2001-09-28 01:34:43 +00003020
a.rottmann9bc8b932004-02-29 15:18:31 +00003021# If no C compiler was specified, use CC.
3022LTCC=${LTCC-"$CC"}
3023
3024# Allow CC to be a program name with arguments.
3025compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003026
drh71eb93e2001-09-28 01:34:43 +00003027
a.rottmann9bc8b932004-02-29 15:18:31 +00003028# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3029if test "${enable_libtool_lock+set}" = set; then
3030 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003031
a.rottmann9bc8b932004-02-29 15:18:31 +00003032fi;
3033test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003034
a.rottmann9bc8b932004-02-29 15:18:31 +00003035# Some flags need to be propagated to the compiler or linker for good
3036# libtool support.
3037case $host in
3038ia64-*-hpux*)
3039 # Find out which ABI we are using.
3040 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003042 (eval $ac_compile) 2>&5
3043 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003045 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003046 case `/usr/bin/file conftest.$ac_objext` in
3047 *ELF-32*)
3048 HPUX_IA64_MODE="32"
3049 ;;
3050 *ELF-64*)
3051 HPUX_IA64_MODE="64"
3052 ;;
3053 esac
3054 fi
3055 rm -rf conftest*
3056 ;;
3057*-*-irix6*)
3058 # Find out which ABI we are using.
drh91636d52005-11-24 23:14:00 +00003059 echo '#line 3059 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003062 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003064 (exit $ac_status); }; then
3065 if test "$lt_cv_prog_gnu_ld" = yes; then
3066 case `/usr/bin/file conftest.$ac_objext` in
3067 *32-bit*)
3068 LD="${LD-ld} -melf32bsmip"
3069 ;;
3070 *N32*)
3071 LD="${LD-ld} -melf32bmipn32"
3072 ;;
3073 *64-bit*)
3074 LD="${LD-ld} -melf64bmip"
3075 ;;
3076 esac
3077 else
3078 case `/usr/bin/file conftest.$ac_objext` in
3079 *32-bit*)
3080 LD="${LD-ld} -32"
3081 ;;
3082 *N32*)
3083 LD="${LD-ld} -n32"
3084 ;;
3085 *64-bit*)
3086 LD="${LD-ld} -64"
3087 ;;
3088 esac
3089 fi
3090 fi
3091 rm -rf conftest*
3092 ;;
drh71eb93e2001-09-28 01:34:43 +00003093
a.rottmann9bc8b932004-02-29 15:18:31 +00003094x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3095 # Find out which ABI we are using.
3096 echo 'int i;' > conftest.$ac_ext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; then
3102 case "`/usr/bin/file conftest.o`" in
3103 *32-bit*)
3104 case $host in
3105 x86_64-*linux*)
3106 LD="${LD-ld} -m elf_i386"
3107 ;;
3108 ppc64-*linux*|powerpc64-*linux*)
3109 LD="${LD-ld} -m elf32ppclinux"
3110 ;;
3111 s390x-*linux*)
3112 LD="${LD-ld} -m elf_s390"
3113 ;;
3114 sparc64-*linux*)
3115 LD="${LD-ld} -m elf32_sparc"
3116 ;;
3117 esac
3118 ;;
3119 *64-bit*)
3120 case $host in
3121 x86_64-*linux*)
3122 LD="${LD-ld} -m elf_x86_64"
3123 ;;
3124 ppc*-*linux*|powerpc*-*linux*)
3125 LD="${LD-ld} -m elf64ppc"
3126 ;;
3127 s390*-*linux*)
3128 LD="${LD-ld} -m elf64_s390"
3129 ;;
3130 sparc*-*linux*)
3131 LD="${LD-ld} -m elf64_sparc"
3132 ;;
3133 esac
3134 ;;
3135 esac
3136 fi
3137 rm -rf conftest*
3138 ;;
drh71eb93e2001-09-28 01:34:43 +00003139
a.rottmann9bc8b932004-02-29 15:18:31 +00003140*-*-sco3.2v5*)
3141 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3142 SAVE_CFLAGS="$CFLAGS"
3143 CFLAGS="$CFLAGS -belf"
3144 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3145echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3146if test "${lt_cv_cc_needs_belf+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149 ac_ext=c
3150ac_cpp='$CPP $CPPFLAGS'
3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003154
a.rottmann9bc8b932004-02-29 15:18:31 +00003155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003161
a.rottmann9bc8b932004-02-29 15:18:31 +00003162int
3163main ()
drh71eb93e2001-09-28 01:34:43 +00003164{
drh71eb93e2001-09-28 01:34:43 +00003165
a.rottmann9bc8b932004-02-29 15:18:31 +00003166 ;
3167 return 0;
drh71eb93e2001-09-28 01:34:43 +00003168}
a.rottmann9bc8b932004-02-29 15:18:31 +00003169_ACEOF
3170rm -f conftest.$ac_objext conftest$ac_exeext
3171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3172 (eval $ac_link) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003179 { ac_try='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003183 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003193else
a.rottmann9bc8b932004-02-29 15:18:31 +00003194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003198fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003199rm -f conftest.err conftest.$ac_objext \
3200 conftest$ac_exeext conftest.$ac_ext
3201 ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
drh71eb93e2001-09-28 01:34:43 +00003207fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003208echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3209echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3212 CFLAGS="$SAVE_CFLAGS"
3213 fi
3214 ;;
3215
3216esac
3217
3218need_locks="$enable_libtool_lock"
3219
drh71eb93e2001-09-28 01:34:43 +00003220
a.rottmann84e63352003-03-24 09:42:16 +00003221ac_ext=c
3222ac_cpp='$CPP $CPPFLAGS'
3223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3227echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3228# On Suns, sometimes $CPP names a directory.
3229if test -n "$CPP" && test -d "$CPP"; then
3230 CPP=
3231fi
3232if test -z "$CPP"; then
3233 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
a.rottmann84e63352003-03-24 09:42:16 +00003236 # Double quotes because CPP needs to be expanded
3237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3238 do
3239 ac_preproc_ok=false
3240for ac_c_preproc_warn_flag in '' yes
3241do
3242 # Use a header file that comes with gcc, so configuring glibc
3243 # with a fresh cross-compiler works.
3244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3245 # <limits.h> exists even on freestanding compilers.
3246 # On the NeXT, cc -E runs the code through the compiler's parser,
3247 # not just through cpp. "Syntax error" is here to catch this case.
3248 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
3254#ifdef __STDC__
3255# include <limits.h>
3256#else
3257# include <assert.h>
3258#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003259 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003260_ACEOF
3261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null; then
3269 if test -s conftest.err; then
3270 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003272 else
3273 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003274 fi
a.rottmann84e63352003-03-24 09:42:16 +00003275else
3276 ac_cpp_err=yes
3277fi
3278if test -z "$ac_cpp_err"; then
3279 :
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 # Broken: fails on valid input.
3285continue
3286fi
3287rm -f conftest.err conftest.$ac_ext
3288
3289 # OK, works on sane cases. Now check whether non-existent headers
3290 # can be detected and how.
3291 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */
3297#include <ac_nonexistent.h>
3298_ACEOF
3299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3318continue
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
3327rm -f conftest.err conftest.$ac_ext
3328
3329done
3330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331rm -f conftest.err conftest.$ac_ext
3332if $ac_preproc_ok; then
3333 break
3334fi
3335
3336 done
3337 ac_cv_prog_CPP=$CPP
3338
3339fi
3340 CPP=$ac_cv_prog_CPP
3341else
3342 ac_cv_prog_CPP=$CPP
3343fi
3344echo "$as_me:$LINENO: result: $CPP" >&5
3345echo "${ECHO_T}$CPP" >&6
3346ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003366 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 :
3387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 # Broken: fails on valid input.
3392continue
3393fi
3394rm -f conftest.err conftest.$ac_ext
3395
3396 # OK, works on sane cases. Now check whether non-existent headers
3397 # can be detected and how.
3398 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404#include <ac_nonexistent.h>
3405_ACEOF
3406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003417 else
3418 ac_cpp_err=
3419 fi
3420else
3421 ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3425continue
3426else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
3434rm -f conftest.err conftest.$ac_ext
3435
3436done
3437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438rm -f conftest.err conftest.$ac_ext
3439if $ac_preproc_ok; then
3440 :
3441else
3442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&5
3444echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3447fi
3448
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455
a.rottmann84e63352003-03-24 09:42:16 +00003456echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3458if test "${ac_cv_header_stdc+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003462/* confdefs.h. */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h. */
3467#include <stdlib.h>
3468#include <stdarg.h>
3469#include <string.h>
3470#include <float.h>
3471
3472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003482 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003483 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_header_stdc=yes
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_header_stdc=no
3508fi
a.rottmann964dbb12004-02-26 19:47:42 +00003509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003510
3511if test $ac_cv_header_stdc = yes; then
3512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3513 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
3519#include <string.h>
3520
3521_ACEOF
3522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3523 $EGREP "memchr" >/dev/null 2>&1; then
3524 :
3525else
3526 ac_cv_header_stdc=no
3527fi
3528rm -f conftest*
3529
3530fi
3531
3532if test $ac_cv_header_stdc = yes; then
3533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3534 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#include <stdlib.h>
3541
3542_ACEOF
3543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 $EGREP "free" >/dev/null 2>&1; then
3545 :
3546else
3547 ac_cv_header_stdc=no
3548fi
3549rm -f conftest*
3550
3551fi
3552
3553if test $ac_cv_header_stdc = yes; then
3554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3555 if test "$cross_compiling" = yes; then
3556 :
3557else
3558 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564#include <ctype.h>
3565#if ((' ' & 0x0FF) == 0x020)
3566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3568#else
3569# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003570 (('a' <= (c) && (c) <= 'i') \
3571 || ('j' <= (c) && (c) <= 'r') \
3572 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3574#endif
3575
3576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3577int
3578main ()
3579{
3580 int i;
3581 for (i = 0; i < 256; i++)
3582 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003583 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003584 exit(2);
3585 exit (0);
3586}
3587_ACEOF
3588rm -f conftest$ac_exeext
3589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3590 (eval $ac_link) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 :
3600else
3601 echo "$as_me: program exited with status $ac_status" >&5
3602echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605( exit $ac_status )
3606ac_cv_header_stdc=no
3607fi
a.rottmann964dbb12004-02-26 19:47:42 +00003608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003609fi
3610fi
3611fi
3612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3613echo "${ECHO_T}$ac_cv_header_stdc" >&6
3614if test $ac_cv_header_stdc = yes; then
3615
3616cat >>confdefs.h <<\_ACEOF
3617#define STDC_HEADERS 1
3618_ACEOF
3619
3620fi
3621
3622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003633 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636echo "$as_me:$LINENO: checking for $ac_header" >&5
3637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3638if eval "test \"\${$as_ac_Header+set}\" = set"; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647$ac_includes_default
3648
3649#include <$ac_header>
3650_ACEOF
3651rm -f conftest.$ac_objext
3652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003653 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003654 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003660 { ac_try='test -z "$ac_c_werror_flag"
3661 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 eval "$as_ac_Header=yes"
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678eval "$as_ac_Header=no"
3679fi
a.rottmann964dbb12004-02-26 19:47:42 +00003680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003681fi
3682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3684if test `eval echo '${'$as_ac_Header'}'` = yes; then
3685 cat >>confdefs.h <<_ACEOF
3686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3687_ACEOF
3688
3689fi
3690
3691done
3692
3693
3694
3695for ac_header in dlfcn.h
3696do
3697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3698if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703fi
3704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3706else
3707 # Is the header compilable?
3708echo "$as_me:$LINENO: checking $ac_header usability" >&5
3709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3710cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003711/* confdefs.h. */
3712_ACEOF
3713cat confdefs.h >>conftest.$ac_ext
3714cat >>conftest.$ac_ext <<_ACEOF
3715/* end confdefs.h. */
3716$ac_includes_default
3717#include <$ac_header>
3718_ACEOF
3719rm -f conftest.$ac_objext
3720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003721 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003722 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_header_compiler=yes
3742else
3743 echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746ac_header_compiler=no
3747fi
a.rottmann964dbb12004-02-26 19:47:42 +00003748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3750echo "${ECHO_T}$ac_header_compiler" >&6
3751
3752# Is the header present?
3753echo "$as_me:$LINENO: checking $ac_header presence" >&5
3754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3755cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761#include <$ac_header>
3762_ACEOF
3763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null; then
3771 if test -s conftest.err; then
3772 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003774 else
3775 ac_cpp_err=
3776 fi
3777else
3778 ac_cpp_err=yes
3779fi
3780if test -z "$ac_cpp_err"; then
3781 ac_header_preproc=yes
3782else
3783 echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786 ac_header_preproc=no
3787fi
3788rm -f conftest.err conftest.$ac_ext
3789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3790echo "${ECHO_T}$ac_header_preproc" >&6
3791
3792# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3794 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3799 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003800 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003801 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003814 (
3815 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003816## ------------------------------------------ ##
3817## Report this to the AC_PACKAGE_NAME lists. ##
3818## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003819_ASBOX
3820 ) |
3821 sed "s/^/$as_me: WARNING: /" >&2
3822 ;;
drh71eb93e2001-09-28 01:34:43 +00003823esac
a.rottmann84e63352003-03-24 09:42:16 +00003824echo "$as_me:$LINENO: checking for $ac_header" >&5
3825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3826if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
a.rottmann964dbb12004-02-26 19:47:42 +00003829 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003830fi
3831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833
3834fi
3835if test `eval echo '${'$as_ac_Header'}'` = yes; then
3836 cat >>confdefs.h <<_ACEOF
3837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838_ACEOF
3839
3840fi
3841
drh71eb93e2001-09-28 01:34:43 +00003842done
3843
a.rottmann9bc8b932004-02-29 15:18:31 +00003844ac_ext=cc
3845ac_cpp='$CXXCPP $CPPFLAGS'
3846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3849if test -n "$ac_tool_prefix"; then
3850 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3851 do
3852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3854echo "$as_me:$LINENO: checking for $ac_word" >&5
3855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3856if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
a.rottmann9bc8b932004-02-29 15:18:31 +00003859 if test -n "$CXX"; then
3860 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874done
drh71eb93e2001-09-28 01:34:43 +00003875
drh71eb93e2001-09-28 01:34:43 +00003876fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003877fi
3878CXX=$ac_cv_prog_CXX
3879if test -n "$CXX"; then
3880 echo "$as_me:$LINENO: result: $CXX" >&5
3881echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003882else
a.rottmann84e63352003-03-24 09:42:16 +00003883 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003884echo "${ECHO_T}no" >&6
3885fi
3886
a.rottmann9bc8b932004-02-29 15:18:31 +00003887 test -n "$CXX" && break
3888 done
3889fi
3890if test -z "$CXX"; then
3891 ac_ct_CXX=$CXX
3892 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3893do
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895set dummy $ac_prog; ac_word=$2
3896echo "$as_me:$LINENO: checking for $ac_word" >&5
3897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
a.rottmann9bc8b932004-02-29 15:18:31 +00003901 if test -n "$ac_ct_CXX"; then
3902 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_ac_ct_CXX="$ac_prog"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915done
3916done
drh71eb93e2001-09-28 01:34:43 +00003917
drh71eb93e2001-09-28 01:34:43 +00003918fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003919fi
3920ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3921if test -n "$ac_ct_CXX"; then
3922 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3923echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003924else
a.rottmann84e63352003-03-24 09:42:16 +00003925 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003926echo "${ECHO_T}no" >&6
3927fi
3928
a.rottmann9bc8b932004-02-29 15:18:31 +00003929 test -n "$ac_ct_CXX" && break
3930done
3931test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3932
3933 CXX=$ac_ct_CXX
3934fi
3935
3936
3937# Provide some information about the compiler.
3938echo "$as_me:$LINENO:" \
3939 "checking for C++ compiler version" >&5
3940ac_compiler=`set X $ac_compile; echo $2`
3941{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3942 (eval $ac_compiler --version </dev/null >&5) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }
3946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3947 (eval $ac_compiler -v </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
3957echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3958echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3959if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h. */
3968
3969int
3970main ()
3971{
3972#ifndef __GNUC__
3973 choke me
3974#endif
3975
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980rm -f conftest.$ac_objext
3981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003989 { ac_try='test -z "$ac_cxx_werror_flag"
3990 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_compiler_gnu=yes
4003else
4004 echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007ac_compiler_gnu=no
4008fi
4009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4011
4012fi
4013echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4014echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4015GXX=`test $ac_compiler_gnu = yes && echo yes`
4016ac_test_CXXFLAGS=${CXXFLAGS+set}
4017ac_save_CXXFLAGS=$CXXFLAGS
4018CXXFLAGS="-g"
4019echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4020echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4021if test "${ac_cv_prog_cxx_g+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004048 { ac_try='test -z "$ac_cxx_werror_flag"
4049 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_cv_prog_cxx_g=yes
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066ac_cv_prog_cxx_g=no
4067fi
4068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069fi
4070echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4071echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4072if test "$ac_test_CXXFLAGS" = set; then
4073 CXXFLAGS=$ac_save_CXXFLAGS
4074elif test $ac_cv_prog_cxx_g = yes; then
4075 if test "$GXX" = yes; then
4076 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004077 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004078 CXXFLAGS="-g"
4079 fi
4080else
4081 if test "$GXX" = yes; then
4082 CXXFLAGS="-O2"
4083 else
4084 CXXFLAGS=
4085 fi
4086fi
4087for ac_declaration in \
4088 '' \
4089 'extern "C" void std::exit (int) throw (); using std::exit;' \
4090 'extern "C" void std::exit (int); using std::exit;' \
4091 'extern "C" void exit (int) throw ();' \
4092 'extern "C" void exit (int);' \
4093 'void exit (int);'
4094do
4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101$ac_declaration
4102#include <stdlib.h>
4103int
4104main ()
4105{
4106exit (42);
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111rm -f conftest.$ac_objext
4112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004120 { ac_try='test -z "$ac_cxx_werror_flag"
4121 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 :
4134else
4135 echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138continue
4139fi
4140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141 cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
4147$ac_declaration
4148int
4149main ()
4150{
4151exit (42);
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext
4157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004165 { ac_try='test -z "$ac_cxx_werror_flag"
4166 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 break
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183fi
4184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185done
4186rm -f conftest*
4187if test -n "$ac_declaration"; then
4188 echo '#ifdef __cplusplus' >>confdefs.h
4189 echo $ac_declaration >>confdefs.h
4190 echo '#endif' >>confdefs.h
4191fi
4192
4193ac_ext=cc
4194ac_cpp='$CXXCPP $CPPFLAGS'
4195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4198
4199ac_ext=cc
4200ac_cpp='$CXXCPP $CPPFLAGS'
4201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4204echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4205echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4206if test -z "$CXXCPP"; then
4207 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210 # Double quotes because CXXCPP needs to be expanded
4211 for CXXCPP in "$CXX -E" "/lib/cpp"
4212 do
4213 ac_preproc_ok=false
4214for ac_cxx_preproc_warn_flag in '' yes
4215do
4216 # Use a header file that comes with gcc, so configuring glibc
4217 # with a fresh cross-compiler works.
4218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219 # <limits.h> exists even on freestanding compilers.
4220 # On the NeXT, cc -E runs the code through the compiler's parser,
4221 # not just through cpp. "Syntax error" is here to catch this case.
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228#ifdef __STDC__
4229# include <limits.h>
4230#else
4231# include <assert.h>
4232#endif
4233 Syntax error
4234_ACEOF
4235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null; then
4243 if test -s conftest.err; then
4244 ac_cpp_err=$ac_cxx_preproc_warn_flag
4245 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4246 else
4247 ac_cpp_err=
4248 fi
4249else
4250 ac_cpp_err=yes
4251fi
4252if test -z "$ac_cpp_err"; then
4253 :
4254else
4255 echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 # Broken: fails on valid input.
4259continue
4260fi
4261rm -f conftest.err conftest.$ac_ext
4262
4263 # OK, works on sane cases. Now check whether non-existent headers
4264 # can be detected and how.
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271#include <ac_nonexistent.h>
4272_ACEOF
4273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null; then
4281 if test -s conftest.err; then
4282 ac_cpp_err=$ac_cxx_preproc_warn_flag
4283 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4284 else
4285 ac_cpp_err=
4286 fi
4287else
4288 ac_cpp_err=yes
4289fi
4290if test -z "$ac_cpp_err"; then
4291 # Broken: success on invalid input.
4292continue
4293else
4294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 # Passes both tests.
4298ac_preproc_ok=:
4299break
4300fi
4301rm -f conftest.err conftest.$ac_ext
4302
4303done
4304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305rm -f conftest.err conftest.$ac_ext
4306if $ac_preproc_ok; then
4307 break
4308fi
4309
4310 done
4311 ac_cv_prog_CXXCPP=$CXXCPP
4312
4313fi
4314 CXXCPP=$ac_cv_prog_CXXCPP
4315else
4316 ac_cv_prog_CXXCPP=$CXXCPP
4317fi
4318echo "$as_me:$LINENO: result: $CXXCPP" >&5
4319echo "${ECHO_T}$CXXCPP" >&6
4320ac_preproc_ok=false
4321for ac_cxx_preproc_warn_flag in '' yes
4322do
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335#ifdef __STDC__
4336# include <limits.h>
4337#else
4338# include <assert.h>
4339#endif
4340 Syntax error
4341_ACEOF
4342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null; then
4350 if test -s conftest.err; then
4351 ac_cpp_err=$ac_cxx_preproc_warn_flag
4352 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4353 else
4354 ac_cpp_err=
4355 fi
4356else
4357 ac_cpp_err=yes
4358fi
4359if test -z "$ac_cpp_err"; then
4360 :
4361else
4362 echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 # Broken: fails on valid input.
4366continue
4367fi
4368rm -f conftest.err conftest.$ac_ext
4369
4370 # OK, works on sane cases. Now check whether non-existent headers
4371 # can be detected and how.
4372 cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
4378#include <ac_nonexistent.h>
4379_ACEOF
4380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_cxx_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4391 else
4392 ac_cpp_err=
4393 fi
4394else
4395 ac_cpp_err=yes
4396fi
4397if test -z "$ac_cpp_err"; then
4398 # Broken: success on invalid input.
4399continue
4400else
4401 echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 # Passes both tests.
4405ac_preproc_ok=:
4406break
4407fi
4408rm -f conftest.err conftest.$ac_ext
4409
4410done
4411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412rm -f conftest.err conftest.$ac_ext
4413if $ac_preproc_ok; then
4414 :
4415else
4416 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4417See \`config.log' for more details." >&5
4418echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4419See \`config.log' for more details." >&2;}
4420 { (exit 1); exit 1; }; }
4421fi
4422
4423ac_ext=cc
4424ac_cpp='$CXXCPP $CPPFLAGS'
4425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4428
4429
4430ac_ext=f
4431ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4432ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4434if test -n "$ac_tool_prefix"; then
4435 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4436 do
4437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4439echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441if test "${ac_cv_prog_F77+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 if test -n "$F77"; then
4445 ac_cv_prog_F77="$F77" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459done
4460
4461fi
4462fi
4463F77=$ac_cv_prog_F77
4464if test -n "$F77"; then
4465 echo "$as_me:$LINENO: result: $F77" >&5
4466echo "${ECHO_T}$F77" >&6
4467else
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470fi
4471
4472 test -n "$F77" && break
4473 done
4474fi
4475if test -z "$F77"; then
4476 ac_ct_F77=$F77
4477 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4478do
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480set dummy $ac_prog; ac_word=$2
4481echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test -n "$ac_ct_F77"; then
4487 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_F77="$ac_prog"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4499 fi
4500done
4501done
4502
4503fi
4504fi
4505ac_ct_F77=$ac_cv_prog_ac_ct_F77
4506if test -n "$ac_ct_F77"; then
4507 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4508echo "${ECHO_T}$ac_ct_F77" >&6
4509else
4510 echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6
4512fi
4513
4514 test -n "$ac_ct_F77" && break
4515done
4516
4517 F77=$ac_ct_F77
4518fi
4519
4520
4521# Provide some information about the compiler.
drh91636d52005-11-24 23:14:00 +00004522echo "$as_me:4522:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004523 "checking for Fortran 77 compiler version" >&5
4524ac_compiler=`set X $ac_compile; echo $2`
4525{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4526 (eval $ac_compiler --version </dev/null >&5) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }
4530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4531 (eval $ac_compiler -v </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); }
4540rm -f a.out
4541
4542# If we don't use `.F' as extension, the preprocessor is not run on the
4543# input file. (Note that this only needs to work for GNU compilers.)
4544ac_save_ext=$ac_ext
4545ac_ext=F
4546echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4547echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4548if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 program main
4553#ifndef __GNUC__
4554 choke me
4555#endif
4556
4557 end
4558_ACEOF
4559rm -f conftest.$ac_objext
4560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004568 { ac_try='test -z "$ac_f77_werror_flag"
4569 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_compiler_gnu=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586ac_compiler_gnu=no
4587fi
4588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4590
4591fi
4592echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4593echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4594ac_ext=$ac_save_ext
4595ac_test_FFLAGS=${FFLAGS+set}
4596ac_save_FFLAGS=$FFLAGS
4597FFLAGS=
4598echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4599echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4600if test "${ac_cv_prog_f77_g+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 FFLAGS=-g
4604cat >conftest.$ac_ext <<_ACEOF
4605 program main
4606
4607 end
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004618 { ac_try='test -z "$ac_f77_werror_flag"
4619 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_prog_f77_g=yes
4632else
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636ac_cv_prog_f77_g=no
4637fi
4638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639
4640fi
4641echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4642echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4643if test "$ac_test_FFLAGS" = set; then
4644 FFLAGS=$ac_save_FFLAGS
4645elif test $ac_cv_prog_f77_g = yes; then
4646 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4647 FFLAGS="-g -O2"
4648 else
4649 FFLAGS="-g"
4650 fi
4651else
4652 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4653 FFLAGS="-O2"
4654 else
4655 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004656 fi
4657fi
4658
a.rottmann9bc8b932004-02-29 15:18:31 +00004659G77=`test $ac_compiler_gnu = yes && echo yes`
4660ac_ext=c
4661ac_cpp='$CPP $CPPFLAGS'
4662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666
4667
4668# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4669
4670# find the maximum length of command line arguments
4671echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4672echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4673if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675else
4676 i=0
4677 testring="ABCD"
4678
4679 case $build_os in
4680 msdosdjgpp*)
4681 # On DJGPP, this test can blow up pretty badly due to problems in libc
4682 # (any single argument exceeding 2000 bytes causes a buffer overrun
4683 # during glob expansion). Even if it were fixed, the result of this
4684 # check would be larger than it should be.
4685 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4686 ;;
4687
4688 gnu*)
4689 # Under GNU Hurd, this test is not required because there is
4690 # no limit to the length of command line arguments.
4691 # Libtool will interpret -1 as no limit whatsoever
4692 lt_cv_sys_max_cmd_len=-1;
4693 ;;
4694
4695 cygwin* | mingw*)
4696 # On Win9x/ME, this test blows up -- it succeeds, but takes
4697 # about 5 minutes as the teststring grows exponentially.
4698 # Worse, since 9x/ME are not pre-emptively multitasking,
4699 # you end up with a "frozen" computer, even though with patience
4700 # the test eventually succeeds (with a max line length of 256k).
4701 # Instead, let's just punt: use the minimum linelength reported by
4702 # all of the supported platforms: 8192 (on NT/2K/XP).
4703 lt_cv_sys_max_cmd_len=8192;
4704 ;;
4705
4706 amigaos*)
4707 # On AmigaOS with pdksh, this test takes hours, literally.
4708 # So we just punt and use a minimum line length of 8192.
4709 lt_cv_sys_max_cmd_len=8192;
4710 ;;
4711
4712 *)
4713 # If test is not a shell built-in, we'll probably end up computing a
4714 # maximum length that is only half of the actual maximum length, but
4715 # we can't tell.
4716 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4717 = "XX$testring") >/dev/null 2>&1 &&
4718 new_result=`expr "X$testring" : ".*" 2>&1` &&
4719 lt_cv_sys_max_cmd_len=$new_result &&
4720 test $i != 17 # 1/2 MB should be enough
4721 do
4722 i=`expr $i + 1`
4723 testring=$testring$testring
4724 done
4725 testring=
4726 # Add a significant safety factor because C++ compilers can tack on massive
4727 # amounts of additional arguments before passing them to the linker.
4728 # It appears as though 1/2 is a usable value.
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4730 ;;
4731 esac
4732
4733fi
4734
4735if test -n $lt_cv_sys_max_cmd_len ; then
4736 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4737echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4738else
4739 echo "$as_me:$LINENO: result: none" >&5
4740echo "${ECHO_T}none" >&6
4741fi
4742
4743
4744
4745
4746# Check for command to grab the raw symbol name followed by C symbol from nm.
4747echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4748echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4749if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752
4753# These are sane defaults that work on at least a few old systems.
4754# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4755
4756# Character class describing NM global symbol codes.
4757symcode='[BCDEGRST]'
4758
4759# Regexp to match symbols that can be accessed directly from C.
4760sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4761
4762# Transform the above into a raw symbol and a C symbol.
4763symxfrm='\1 \2\3 \3'
4764
4765# Transform an extracted symbol line into a proper C declaration
4766lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4767
4768# Transform an extracted symbol line into symbol name and symbol address
4769lt_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'"
4770
4771# Define system-specific variables.
4772case $host_os in
4773aix*)
4774 symcode='[BCDT]'
4775 ;;
4776cygwin* | mingw* | pw32*)
4777 symcode='[ABCDGISTW]'
4778 ;;
4779hpux*) # Its linker distinguishes data from code symbols
4780 if test "$host_cpu" = ia64; then
4781 symcode='[ABCDEGRST]'
4782 fi
4783 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4784 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'"
4785 ;;
4786irix* | nonstopux*)
4787 symcode='[BCDEGRST]'
4788 ;;
4789osf*)
4790 symcode='[BCDEGQRST]'
4791 ;;
4792solaris* | sysv5*)
4793 symcode='[BDRT]'
4794 ;;
4795sysv4)
4796 symcode='[DFNSTU]'
4797 ;;
4798esac
4799
4800# Handle CRLF in mingw tool chain
4801opt_cr=
4802case $build_os in
4803mingw*)
4804 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4805 ;;
4806esac
4807
4808# If we're using GNU nm, then use its standard symbol codes.
4809case `$NM -V 2>&1` in
4810*GNU* | *'with BFD'*)
4811 symcode='[ABCDGIRSTW]' ;;
4812esac
4813
4814# Try without a prefix undercore, then with it.
4815for ac_symprfx in "" "_"; do
4816
4817 # Write the raw and C identifiers.
4818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4819
4820 # Check to see that the pipe works correctly.
4821 pipe_works=no
4822
4823 rm -f conftest*
4824 cat > conftest.$ac_ext <<EOF
4825#ifdef __cplusplus
4826extern "C" {
4827#endif
4828char nm_test_var;
4829void nm_test_func(){}
4830#ifdef __cplusplus
4831}
4832#endif
4833int main(){nm_test_var='a';nm_test_func();return(0);}
4834EOF
4835
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; then
4841 # Now try to grab the symbols.
4842 nlist=conftest.nm
4843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && test -s "$nlist"; then
4848 # Try sorting and uniquifying the output.
4849 if sort "$nlist" | uniq > "$nlist"T; then
4850 mv -f "$nlist"T "$nlist"
4851 else
4852 rm -f "$nlist"T
4853 fi
4854
4855 # Make sure that we snagged all the symbols we need.
4856 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4857 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4858 cat <<EOF > conftest.$ac_ext
4859#ifdef __cplusplus
4860extern "C" {
4861#endif
4862
4863EOF
4864 # Now generate the symbol file.
4865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4866
4867 cat <<EOF >> conftest.$ac_ext
4868#if defined (__STDC__) && __STDC__
4869# define lt_ptr_t void *
4870#else
4871# define lt_ptr_t char *
4872# define const
4873#endif
4874
4875/* The mapping between symbol names and symbols. */
4876const struct {
4877 const char *name;
4878 lt_ptr_t address;
4879}
4880lt_preloaded_symbols[] =
4881{
4882EOF
4883 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4884 cat <<\EOF >> conftest.$ac_ext
4885 {0, (lt_ptr_t) 0}
4886};
4887
4888#ifdef __cplusplus
4889}
4890#endif
4891EOF
4892 # Now try linking the two files.
4893 mv conftest.$ac_objext conftstm.$ac_objext
4894 lt_save_LIBS="$LIBS"
4895 lt_save_CFLAGS="$CFLAGS"
4896 LIBS="conftstm.$ac_objext"
4897 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4903 pipe_works=yes
4904 fi
4905 LIBS="$lt_save_LIBS"
4906 CFLAGS="$lt_save_CFLAGS"
4907 else
4908 echo "cannot find nm_test_func in $nlist" >&5
4909 fi
4910 else
4911 echo "cannot find nm_test_var in $nlist" >&5
4912 fi
4913 else
4914 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4915 fi
4916 else
4917 echo "$progname: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 fi
4920 rm -f conftest* conftst*
4921
4922 # Do not use the global_symbol_pipe unless it works.
4923 if test "$pipe_works" = yes; then
4924 break
4925 else
4926 lt_cv_sys_global_symbol_pipe=
4927 fi
4928done
4929
4930fi
4931
4932if test -z "$lt_cv_sys_global_symbol_pipe"; then
4933 lt_cv_sys_global_symbol_to_cdecl=
4934fi
4935if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4936 echo "$as_me:$LINENO: result: failed" >&5
4937echo "${ECHO_T}failed" >&6
4938else
4939 echo "$as_me:$LINENO: result: ok" >&5
4940echo "${ECHO_T}ok" >&6
4941fi
4942
4943echo "$as_me:$LINENO: checking for objdir" >&5
4944echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4945if test "${lt_cv_objdir+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 rm -f .libs 2>/dev/null
4949mkdir .libs 2>/dev/null
4950if test -d .libs; then
4951 lt_cv_objdir=.libs
4952else
4953 # MS-DOS does not allow filenames that begin with a dot.
4954 lt_cv_objdir=_libs
4955fi
4956rmdir .libs 2>/dev/null
4957fi
4958echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4959echo "${ECHO_T}$lt_cv_objdir" >&6
4960objdir=$lt_cv_objdir
4961
4962
4963
4964
4965
4966case $host_os in
4967aix3*)
4968 # AIX sometimes has problems with the GCC collect2 program. For some
4969 # reason, if we set the COLLECT_NAMES environment variable, the problems
4970 # vanish in a puff of smoke.
4971 if test "X${COLLECT_NAMES+set}" != Xset; then
4972 COLLECT_NAMES=
4973 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004974 fi
4975 ;;
4976esac
4977
a.rottmann9bc8b932004-02-29 15:18:31 +00004978# Sed substitution that helps us do robust quoting. It backslashifies
4979# metacharacters that are still active within double-quoted strings.
4980Xsed='sed -e s/^X//'
4981sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4982
4983# Same as above, but do not quote variable references.
4984double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4985
4986# Sed substitution to delay expansion of an escaped shell variable in a
4987# double_quote_subst'ed string.
4988delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4989
4990# Sed substitution to avoid accidental globbing in evaled expressions
4991no_glob_subst='s/\*/\\\*/g'
4992
4993# Constants:
4994rm="rm -f"
4995
4996# Global variables:
4997default_ofile=libtool
4998can_build_shared=yes
4999
5000# All known linkers require a `.a' archive for static linking (except M$VC,
5001# which needs '.lib').
5002libext=a
5003ltmain="$ac_aux_dir/ltmain.sh"
5004ofile="$default_ofile"
5005with_gnu_ld="$lt_cv_prog_gnu_ld"
5006
5007if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5009set dummy ${ac_tool_prefix}ar; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_prog_AR+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 if test -n "$AR"; then
5016 ac_cv_prog_AR="$AR" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_AR="${ac_tool_prefix}ar"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
5031
5032fi
5033fi
5034AR=$ac_cv_prog_AR
5035if test -n "$AR"; then
5036 echo "$as_me:$LINENO: result: $AR" >&5
5037echo "${ECHO_T}$AR" >&6
5038else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041fi
5042
5043fi
5044if test -z "$ac_cv_prog_AR"; then
5045 ac_ct_AR=$AR
5046 # Extract the first word of "ar", so it can be a program name with args.
5047set dummy ar; ac_word=$2
5048echo "$as_me:$LINENO: checking for $ac_word" >&5
5049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053 if test -n "$ac_ct_AR"; then
5054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_AR="ar"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067done
5068done
5069
5070 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5071fi
5072fi
5073ac_ct_AR=$ac_cv_prog_ac_ct_AR
5074if test -n "$ac_ct_AR"; then
5075 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5076echo "${ECHO_T}$ac_ct_AR" >&6
5077else
5078 echo "$as_me:$LINENO: result: no" >&5
5079echo "${ECHO_T}no" >&6
5080fi
5081
5082 AR=$ac_ct_AR
5083else
5084 AR="$ac_cv_prog_AR"
5085fi
5086
a.rottmann84e63352003-03-24 09:42:16 +00005087if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5089set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5090echo "$as_me:$LINENO: checking for $ac_word" >&5
5091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092if test "${ac_cv_prog_RANLIB+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095 if test -n "$RANLIB"; then
5096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5097else
5098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109done
5110done
5111
5112fi
5113fi
5114RANLIB=$ac_cv_prog_RANLIB
5115if test -n "$RANLIB"; then
5116 echo "$as_me:$LINENO: result: $RANLIB" >&5
5117echo "${ECHO_T}$RANLIB" >&6
5118else
5119 echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
5122
5123fi
5124if test -z "$ac_cv_prog_RANLIB"; then
5125 ac_ct_RANLIB=$RANLIB
5126 # Extract the first word of "ranlib", so it can be a program name with args.
5127set dummy ranlib; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 if test -n "$ac_ct_RANLIB"; then
5134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_RANLIB="ranlib"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147done
5148done
5149
5150 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5151fi
5152fi
5153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5154if test -n "$ac_ct_RANLIB"; then
5155 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5156echo "${ECHO_T}$ac_ct_RANLIB" >&6
5157else
5158 echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160fi
5161
5162 RANLIB=$ac_ct_RANLIB
5163else
5164 RANLIB="$ac_cv_prog_RANLIB"
5165fi
5166
5167if test -n "$ac_tool_prefix"; then
5168 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5169set dummy ${ac_tool_prefix}strip; ac_word=$2
5170echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172if test "${ac_cv_prog_STRIP+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175 if test -n "$STRIP"; then
5176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190done
5191
5192fi
5193fi
5194STRIP=$ac_cv_prog_STRIP
5195if test -n "$STRIP"; then
5196 echo "$as_me:$LINENO: result: $STRIP" >&5
5197echo "${ECHO_T}$STRIP" >&6
5198else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201fi
5202
5203fi
5204if test -z "$ac_cv_prog_STRIP"; then
5205 ac_ct_STRIP=$STRIP
5206 # Extract the first word of "strip", so it can be a program name with args.
5207set dummy strip; ac_word=$2
5208echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 if test -n "$ac_ct_STRIP"; then
5214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_ac_ct_STRIP="strip"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227done
5228done
5229
5230 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5231fi
5232fi
5233ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5234if test -n "$ac_ct_STRIP"; then
5235 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5236echo "${ECHO_T}$ac_ct_STRIP" >&6
5237else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240fi
5241
5242 STRIP=$ac_ct_STRIP
5243else
5244 STRIP="$ac_cv_prog_STRIP"
5245fi
5246
5247
a.rottmann84e63352003-03-24 09:42:16 +00005248old_CC="$CC"
5249old_CFLAGS="$CFLAGS"
5250
5251# Set sane defaults for various variables
5252test -z "$AR" && AR=ar
5253test -z "$AR_FLAGS" && AR_FLAGS=cru
5254test -z "$AS" && AS=as
5255test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005256test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005257test -z "$DLLTOOL" && DLLTOOL=dlltool
5258test -z "$LD" && LD=ld
5259test -z "$LN_S" && LN_S="ln -s"
5260test -z "$MAGIC_CMD" && MAGIC_CMD=file
5261test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005262test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005263test -z "$OBJDUMP" && OBJDUMP=objdump
5264test -z "$RANLIB" && RANLIB=:
5265test -z "$STRIP" && STRIP=:
5266test -z "$ac_objext" && ac_objext=o
5267
a.rottmann84e63352003-03-24 09:42:16 +00005268# Determine commands to create old-style static archives.
5269old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5270old_postinstall_cmds='chmod 644 $oldlib'
5271old_postuninstall_cmds=
5272
5273if test -n "$RANLIB"; then
5274 case $host_os in
5275 openbsd*)
5276 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5277 ;;
5278 *)
5279 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5280 ;;
5281 esac
5282 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5283fi
5284
a.rottmann9bc8b932004-02-29 15:18:31 +00005285# Only perform the check for file, if the check method requires it
5286case $deplibs_check_method in
5287file_magic*)
5288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5289 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5290echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005293else
a.rottmann9bc8b932004-02-29 15:18:31 +00005294 case $MAGIC_CMD in
5295[\\/*] | ?:[\\/]*)
5296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5297 ;;
5298*)
5299 lt_save_MAGIC_CMD="$MAGIC_CMD"
5300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5302 for ac_dir in $ac_dummy; do
5303 IFS="$lt_save_ifs"
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f $ac_dir/${ac_tool_prefix}file; then
5306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5307 if test -n "$file_magic_test_file"; then
5308 case $deplibs_check_method in
5309 "file_magic "*)
5310 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5313 $EGREP "$file_magic_regex" > /dev/null; then
5314 :
5315 else
5316 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005317
a.rottmann9bc8b932004-02-29 15:18:31 +00005318*** Warning: the command libtool uses to detect shared libraries,
5319*** $file_magic_cmd, produces output that libtool cannot recognize.
5320*** The result is that libtool may fail to recognize shared libraries
5321*** as such. This will affect the creation of libtool libraries that
5322*** depend on shared libraries, but programs linked with such libtool
5323*** libraries will work regardless of this problem. Nevertheless, you
5324*** may want to report the problem to your system manager and/or to
5325*** bug-libtool@gnu.org
5326
5327EOF
5328 fi ;;
5329 esac
5330 fi
5331 break
5332 fi
5333 done
5334 IFS="$lt_save_ifs"
5335 MAGIC_CMD="$lt_save_MAGIC_CMD"
5336 ;;
5337esac
5338fi
5339
5340MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5341if test -n "$MAGIC_CMD"; then
5342 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5343echo "${ECHO_T}$MAGIC_CMD" >&6
5344else
5345 echo "$as_me:$LINENO: result: no" >&5
5346echo "${ECHO_T}no" >&6
5347fi
5348
5349if test -z "$lt_cv_path_MAGIC_CMD"; then
5350 if test -n "$ac_tool_prefix"; then
5351 echo "$as_me:$LINENO: checking for file" >&5
5352echo $ECHO_N "checking for file... $ECHO_C" >&6
5353if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356 case $MAGIC_CMD in
5357[\\/*] | ?:[\\/]*)
5358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5359 ;;
5360*)
5361 lt_save_MAGIC_CMD="$MAGIC_CMD"
5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5364 for ac_dir in $ac_dummy; do
5365 IFS="$lt_save_ifs"
5366 test -z "$ac_dir" && ac_dir=.
5367 if test -f $ac_dir/file; then
5368 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5369 if test -n "$file_magic_test_file"; then
5370 case $deplibs_check_method in
5371 "file_magic "*)
5372 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5375 $EGREP "$file_magic_regex" > /dev/null; then
5376 :
5377 else
5378 cat <<EOF 1>&2
5379
5380*** Warning: the command libtool uses to detect shared libraries,
5381*** $file_magic_cmd, produces output that libtool cannot recognize.
5382*** The result is that libtool may fail to recognize shared libraries
5383*** as such. This will affect the creation of libtool libraries that
5384*** depend on shared libraries, but programs linked with such libtool
5385*** libraries will work regardless of this problem. Nevertheless, you
5386*** may want to report the problem to your system manager and/or to
5387*** bug-libtool@gnu.org
5388
5389EOF
5390 fi ;;
5391 esac
5392 fi
5393 break
5394 fi
5395 done
5396 IFS="$lt_save_ifs"
5397 MAGIC_CMD="$lt_save_MAGIC_CMD"
5398 ;;
5399esac
5400fi
5401
5402MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5403if test -n "$MAGIC_CMD"; then
5404 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5405echo "${ECHO_T}$MAGIC_CMD" >&6
5406else
5407 echo "$as_me:$LINENO: result: no" >&5
5408echo "${ECHO_T}no" >&6
5409fi
5410
5411 else
5412 MAGIC_CMD=:
5413 fi
5414fi
5415
5416 fi
5417 ;;
5418esac
5419
5420enable_dlopen=no
5421enable_win32_dll=no
5422
5423# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5424if test "${enable_libtool_lock+set}" = set; then
5425 enableval="$enable_libtool_lock"
5426
5427fi;
5428test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005429
5430
drh71eb93e2001-09-28 01:34:43 +00005431# Check whether --with-pic or --without-pic was given.
5432if test "${with_pic+set}" = set; then
5433 withval="$with_pic"
5434 pic_mode="$withval"
5435else
5436 pic_mode=default
5437fi;
5438test -z "$pic_mode" && pic_mode=default
5439
a.rottmann9bc8b932004-02-29 15:18:31 +00005440# Use C for the default configuration in the libtool script
5441tagname=
5442lt_save_CC="$CC"
5443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449
5450# Source file extension for C test sources.
5451ac_ext=c
5452
5453# Object file extension for compiled C test sources.
5454objext=o
5455objext=$objext
5456
5457# Code to be used in simple compile tests
5458lt_simple_compile_test_code="int some_variable = 0;\n"
5459
5460# Code to be used in simple link tests
5461lt_simple_link_test_code='int main(){return(0);}\n'
5462
5463
5464# If no C compiler was specified, use CC.
5465LTCC=${LTCC-"$CC"}
5466
5467# Allow CC to be a program name with arguments.
5468compiler=$CC
5469
5470
5471#
5472# Check for any special shared library compilation flags.
5473#
5474lt_prog_cc_shlib=
5475if test "$GCC" = no; then
5476 case $host_os in
5477 sco3.2v5*)
5478 lt_prog_cc_shlib='-belf'
5479 ;;
5480 esac
5481fi
5482if test -n "$lt_prog_cc_shlib"; then
5483 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5484echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5485 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5486 else
5487 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5488echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5489 lt_cv_prog_cc_can_build_shared=no
5490 fi
5491fi
5492
5493
5494#
5495# Check to make sure the static flag actually works.
5496#
5497echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5498echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5499if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
a.rottmann9bc8b932004-02-29 15:18:31 +00005502 lt_prog_compiler_static_works=no
5503 save_LDFLAGS="$LDFLAGS"
5504 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5505 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5507 # The compiler can only warn and ignore the option if not recognized
5508 # So say no if there are warnings
5509 if test -s conftest.err; then
5510 # Append any errors to the config.log.
5511 cat conftest.err 1>&5
5512 else
5513 lt_prog_compiler_static_works=yes
5514 fi
5515 fi
5516 $rm conftest*
5517 LDFLAGS="$save_LDFLAGS"
5518
5519fi
5520echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5521echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5522
5523if test x"$lt_prog_compiler_static_works" = xyes; then
5524 :
5525else
5526 lt_prog_compiler_static=
5527fi
5528
5529
5530
5531
5532lt_prog_compiler_no_builtin_flag=
5533
5534if test "$GCC" = yes; then
5535 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5536
5537
5538echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5539echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5540if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543 lt_cv_prog_compiler_rtti_exceptions=no
5544 ac_outfile=conftest.$ac_objext
5545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5546 lt_compiler_flag="-fno-rtti -fno-exceptions"
5547 # Insert the option either (1) after the last *FLAGS variable, or
5548 # (2) before a word containing "conftest.", or (3) at the end.
5549 # Note that $ac_compile itself does not contain backslashes and begins
5550 # with a dollar sign (not a hyphen), so the echo should work correctly.
5551 # The option is referenced via a variable to avoid confusing sed.
5552 lt_compile=`echo "$ac_compile" | $SED \
5553 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5555 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +00005556 (eval echo "\"\$as_me:5556: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005557 (eval "$lt_compile" 2>conftest.err)
5558 ac_status=$?
5559 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +00005560 echo "$as_me:5560: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005561 if (exit $ac_status) && test -s "$ac_outfile"; then
5562 # The compiler can only warn and ignore the option if not recognized
5563 # So say no if there are warnings
5564 if test ! -s conftest.err; then
5565 lt_cv_prog_compiler_rtti_exceptions=yes
5566 fi
5567 fi
5568 $rm conftest*
5569
5570fi
5571echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5572echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5573
5574if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5576else
5577 :
5578fi
5579
5580fi
5581
5582lt_prog_compiler_wl=
5583lt_prog_compiler_pic=
5584lt_prog_compiler_static=
5585
5586echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5587echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005588
drh71eb93e2001-09-28 01:34:43 +00005589 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005590 lt_prog_compiler_wl='-Wl,'
5591 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005592
5593 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005594 aix*)
5595 # All AIX code is PIC.
5596 if test "$host_cpu" = ia64; then
5597 # AIX 5 now supports IA64 processor
5598 lt_prog_compiler_static='-Bstatic'
5599 fi
drh71eb93e2001-09-28 01:34:43 +00005600 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005601
drh71eb93e2001-09-28 01:34:43 +00005602 amigaos*)
5603 # FIXME: we need at least 68020 code to build shared libraries, but
5604 # adding the `-m68020' flag to GCC prevents building anything better,
5605 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005607 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005608
5609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005610 # PIC is the default for these OSes.
5611 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005612
5613 mingw* | pw32* | os2*)
5614 # This hack is so that the source file can tell whether it is being
5615 # built for inclusion in a dll (and should export symbols for example).
5616 lt_prog_compiler_pic='-DDLL_EXPORT'
5617 ;;
5618
drh71eb93e2001-09-28 01:34:43 +00005619 darwin* | rhapsody*)
5620 # PIC is the default on this platform
5621 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005622 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005623 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005624
5625 msdosdjgpp*)
5626 # Just because we use GCC doesn't mean we suddenly get shared libraries
5627 # on systems that don't support them.
5628 lt_prog_compiler_can_build_shared=no
5629 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005630 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005631
drh71eb93e2001-09-28 01:34:43 +00005632 sysv4*MP*)
5633 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005634 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005635 fi
5636 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005637
5638 hpux*)
5639 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5640 # not for PA HP-UX.
5641 case "$host_cpu" in
5642 hppa*64*|ia64*)
5643 # +Z the default
5644 ;;
5645 *)
5646 lt_prog_compiler_pic='-fPIC'
5647 ;;
5648 esac
5649 ;;
5650
drh71eb93e2001-09-28 01:34:43 +00005651 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005652 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005653 ;;
5654 esac
5655 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005656 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005657 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005658 aix*)
5659 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005660 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005661 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005662 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005663 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005665 fi
5666 ;;
5667
a.rottmann9bc8b932004-02-29 15:18:31 +00005668 mingw* | pw32* | os2*)
5669 # This hack is so that the source file can tell whether it is being
5670 # built for inclusion in a dll (and should export symbols for example).
5671 lt_prog_compiler_pic='-DDLL_EXPORT'
5672 ;;
5673
a.rottmann84e63352003-03-24 09:42:16 +00005674 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005675 lt_prog_compiler_wl='-Wl,'
5676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5677 # not for PA HP-UX.
5678 case "$host_cpu" in
5679 hppa*64*|ia64*)
5680 # +Z the default
5681 ;;
5682 *)
5683 lt_prog_compiler_pic='+Z'
5684 ;;
5685 esac
5686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5687 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005688 ;;
5689
5690 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005691 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005692 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005693 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005694 ;;
5695
5696 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005697 lt_prog_compiler_pic='-KPIC'
5698 lt_prog_compiler_static='-Bstatic'
5699 ;;
5700
5701 linux*)
5702 case $CC in
5703 icc* | ecc*)
5704 lt_prog_compiler_wl='-Wl,'
5705 lt_prog_compiler_pic='-KPIC'
5706 lt_prog_compiler_static='-static'
5707 ;;
5708 ccc*)
5709 lt_prog_compiler_wl='-Wl,'
5710 # All Alpha code is PIC.
5711 lt_prog_compiler_static='-non_shared'
5712 ;;
5713 esac
drh71eb93e2001-09-28 01:34:43 +00005714 ;;
5715
5716 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005717 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005718 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005719 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005720 ;;
5721
5722 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005723 lt_prog_compiler_pic='-Kpic'
5724 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005725 ;;
5726
5727 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005728 lt_prog_compiler_wl='-Wl,'
5729 lt_prog_compiler_pic='-KPIC'
5730 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005731 ;;
5732
5733 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005734 lt_prog_compiler_wl='-Qoption ld '
5735 lt_prog_compiler_pic='-PIC'
5736 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005737 ;;
5738
5739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005740 lt_prog_compiler_wl='-Wl,'
5741 lt_prog_compiler_pic='-KPIC'
5742 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005743 ;;
5744
5745 sysv4*MP*)
5746 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005747 lt_prog_compiler_pic='-Kconform_pic'
5748 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005749 fi
5750 ;;
5751
a.rottmann9bc8b932004-02-29 15:18:31 +00005752 uts4*)
5753 lt_prog_compiler_pic='-pic'
5754 lt_prog_compiler_static='-Bstatic'
5755 ;;
5756
drh71eb93e2001-09-28 01:34:43 +00005757 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005758 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005759 ;;
5760 esac
5761 fi
5762
a.rottmann9bc8b932004-02-29 15:18:31 +00005763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5764echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005765
a.rottmann9bc8b932004-02-29 15:18:31 +00005766#
5767# Check to make sure the PIC flag actually works.
5768#
5769if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005770
a.rottmann9bc8b932004-02-29 15:18:31 +00005771echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5772echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5773if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
a.rottmann9bc8b932004-02-29 15:18:31 +00005776 lt_prog_compiler_pic_works=no
5777 ac_outfile=conftest.$ac_objext
5778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5779 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5780 # Insert the option either (1) after the last *FLAGS variable, or
5781 # (2) before a word containing "conftest.", or (3) at the end.
5782 # Note that $ac_compile itself does not contain backslashes and begins
5783 # with a dollar sign (not a hyphen), so the echo should work correctly.
5784 # The option is referenced via a variable to avoid confusing sed.
5785 lt_compile=`echo "$ac_compile" | $SED \
5786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5788 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +00005789 (eval echo "\"\$as_me:5789: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005790 (eval "$lt_compile" 2>conftest.err)
5791 ac_status=$?
5792 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +00005793 echo "$as_me:5793: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005794 if (exit $ac_status) && test -s "$ac_outfile"; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test ! -s conftest.err; then
5798 lt_prog_compiler_pic_works=yes
5799 fi
5800 fi
5801 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005802
a.rottmann9bc8b932004-02-29 15:18:31 +00005803fi
5804echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5805echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005806
a.rottmann9bc8b932004-02-29 15:18:31 +00005807if test x"$lt_prog_compiler_pic_works" = xyes; then
5808 case $lt_prog_compiler_pic in
5809 "" | " "*) ;;
5810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5811 esac
drh71eb93e2001-09-28 01:34:43 +00005812else
a.rottmann9bc8b932004-02-29 15:18:31 +00005813 lt_prog_compiler_pic=
5814 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005815fi
5816
a.rottmann84e63352003-03-24 09:42:16 +00005817fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005818case "$host_os" in
5819 # For platforms which do not support PIC, -DPIC is meaningless:
5820 *djgpp*)
5821 lt_prog_compiler_pic=
5822 ;;
5823 *)
5824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5825 ;;
5826esac
a.rottmann84e63352003-03-24 09:42:16 +00005827
a.rottmann84e63352003-03-24 09:42:16 +00005828echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005830if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
a.rottmann9bc8b932004-02-29 15:18:31 +00005833 lt_cv_prog_compiler_c_o=no
5834 $rm -r conftest 2>/dev/null
5835 mkdir conftest
5836 cd conftest
5837 mkdir out
5838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005839
a.rottmann9bc8b932004-02-29 15:18:31 +00005840 lt_compiler_flag="-o out/conftest2.$ac_objext"
5841 # Insert the option either (1) after the last *FLAGS variable, or
5842 # (2) before a word containing "conftest.", or (3) at the end.
5843 # Note that $ac_compile itself does not contain backslashes and begins
5844 # with a dollar sign (not a hyphen), so the echo should work correctly.
5845 lt_compile=`echo "$ac_compile" | $SED \
5846 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5848 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +00005849 (eval echo "\"\$as_me:5849: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005850 (eval "$lt_compile" 2>out/conftest.err)
5851 ac_status=$?
5852 cat out/conftest.err >&5
drh91636d52005-11-24 23:14:00 +00005853 echo "$as_me:5853: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5855 then
5856 # The compiler can only warn and ignore the option if not recognized
5857 # So say no if there are warnings
5858 if test ! -s out/conftest.err; then
5859 lt_cv_prog_compiler_c_o=yes
5860 fi
5861 fi
5862 chmod u+w .
5863 $rm conftest*
5864 # SGI C++ compiler will create directory out/ii_files/ for
5865 # template instantiation
5866 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5867 $rm out/* && rmdir out
5868 cd ..
5869 rmdir conftest
5870 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005871
5872fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005873echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5874echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005875
a.rottmann84e63352003-03-24 09:42:16 +00005876
drh71eb93e2001-09-28 01:34:43 +00005877hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005878if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005879 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005880 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005881echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5882 hard_links=yes
5883 $rm conftest*
5884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5885 touch conftest.a
5886 ln conftest.a conftest.b 2>&5 || hard_links=no
5887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005888 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005889echo "${ECHO_T}$hard_links" >&6
5890 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005892echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5893 need_locks=warn
5894 fi
5895else
5896 need_locks=no
5897fi
5898
a.rottmann9bc8b932004-02-29 15:18:31 +00005899echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5900echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5901
5902 runpath_var=
5903 allow_undefined_flag=
5904 enable_shared_with_static_runtimes=no
5905 archive_cmds=
5906 archive_expsym_cmds=
5907 old_archive_From_new_cmds=
5908 old_archive_from_expsyms_cmds=
5909 export_dynamic_flag_spec=
5910 whole_archive_flag_spec=
5911 thread_safe_flag_spec=
5912 hardcode_libdir_flag_spec=
5913 hardcode_libdir_flag_spec_ld=
5914 hardcode_libdir_separator=
5915 hardcode_direct=no
5916 hardcode_minus_L=no
5917 hardcode_shlibpath_var=unsupported
5918 link_all_deplibs=unknown
5919 hardcode_automatic=no
5920 module_cmds=
5921 module_expsym_cmds=
5922 always_export_symbols=no
5923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5924 # include_expsyms should be a list of space-separated symbols to be *always*
5925 # included in the symbol list
5926 include_expsyms=
5927 # exclude_expsyms can be an extended regexp of symbols to exclude
5928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5930 # as well as any symbol that contains `d'.
5931 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5933 # platforms (ab)use it in PIC code, but their linkers get confused if
5934 # the symbol is explicitly referenced. Since portable code cannot
5935 # rely on this symbol name, it's probably fine to never include it in
5936 # preloaded symbol tables.
5937 extract_expsyms_cmds=
5938
5939 case $host_os in
5940 cygwin* | mingw* | pw32*)
5941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5942 # When not using gcc, we currently assume that we are using
5943 # Microsoft Visual C++.
5944 if test "$GCC" != yes; then
5945 with_gnu_ld=no
5946 fi
5947 ;;
5948 openbsd*)
5949 with_gnu_ld=no
5950 ;;
5951 esac
5952
5953 ld_shlibs=yes
5954 if test "$with_gnu_ld" = yes; then
5955 # If archive_cmds runs LD, not CC, wlarc should be empty
5956 wlarc='${wl}'
5957
5958 # See if GNU ld supports shared libraries.
5959 case $host_os in
5960 aix3* | aix4* | aix5*)
5961 # On AIX/PPC, the GNU linker is very broken
5962 if test "$host_cpu" != ia64; then
5963 ld_shlibs=no
5964 cat <<EOF 1>&2
5965
5966*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5967*** to be unable to reliably create shared libraries on AIX.
5968*** Therefore, libtool is disabling shared libraries support. If you
5969*** really care for shared libraries, you may want to modify your PATH
5970*** so that a non-GNU linker is found, and then restart.
5971
5972EOF
5973 fi
5974 ;;
5975
5976 amigaos*)
5977 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)'
5978 hardcode_libdir_flag_spec='-L$libdir'
5979 hardcode_minus_L=yes
5980
5981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5982 # that the semantics of dynamic libraries on AmigaOS, at least up
5983 # to version 4, is to share data among multiple programs linked
5984 # with the same dynamic library. Since this doesn't match the
5985 # behavior of shared libraries on other platforms, we can't use
5986 # them.
5987 ld_shlibs=no
5988 ;;
5989
5990 beos*)
5991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5992 allow_undefined_flag=unsupported
5993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5994 # support --undefined. This deserves some investigation. FIXME
5995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5996 else
5997 ld_shlibs=no
5998 fi
5999 ;;
6000
6001 cygwin* | mingw* | pw32*)
6002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6003 # as there is no search path for DLLs.
6004 hardcode_libdir_flag_spec='-L$libdir'
6005 allow_undefined_flag=unsupported
6006 always_export_symbols=no
6007 enable_shared_with_static_runtimes=yes
6008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6009
6010 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6012 # If the export-symbols file already is a .def file (1st line
6013 # is EXPORTS), use it as is; otherwise, prepend...
6014 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6015 cp $export_symbols $output_objdir/$soname.def;
6016 else
6017 echo EXPORTS > $output_objdir/$soname.def;
6018 cat $export_symbols >> $output_objdir/$soname.def;
6019 fi~
6020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6021 else
6022 ld_shlibs=no
6023 fi
6024 ;;
6025
6026 netbsd* | knetbsd*-gnu)
6027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6028 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6029 wlarc=
6030 else
6031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6033 fi
6034 ;;
6035
6036 solaris* | sysv5*)
6037 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6038 ld_shlibs=no
6039 cat <<EOF 1>&2
6040
6041*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6042*** create shared libraries on Solaris systems. Therefore, libtool
6043*** is disabling shared libraries support. We urge you to upgrade GNU
6044*** binutils to release 2.9.1 or newer. Another option is to modify
6045*** your PATH or compiler configuration so that the native linker is
6046*** used, and then restart.
6047
6048EOF
6049 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6052 else
6053 ld_shlibs=no
6054 fi
6055 ;;
6056
6057 sunos4*)
6058 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6059 wlarc=
6060 hardcode_direct=yes
6061 hardcode_shlibpath_var=no
6062 ;;
6063
6064 linux*)
6065 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6066 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6067 archive_cmds="$tmp_archive_cmds"
6068 supports_anon_versioning=no
6069 case `$LD -v 2>/dev/null` in
6070 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6073 *\ 2.11.*) ;; # other 2.11 versions
6074 *) supports_anon_versioning=yes ;;
6075 esac
6076 if test $supports_anon_versioning = yes; then
6077 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6078cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6079$echo "local: *; };" >> $output_objdir/$libname.ver~
6080 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6081 else
6082 archive_expsym_cmds="$tmp_archive_cmds"
6083 fi
6084 else
6085 ld_shlibs=no
6086 fi
6087 ;;
6088
6089 *)
6090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6093 else
6094 ld_shlibs=no
6095 fi
6096 ;;
6097 esac
6098
6099 if test "$ld_shlibs" = yes; then
6100 runpath_var=LD_RUN_PATH
6101 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6102 export_dynamic_flag_spec='${wl}--export-dynamic'
6103 # ancient GNU ld didn't support --whole-archive et. al.
6104 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6105 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6106 else
6107 whole_archive_flag_spec=
6108 fi
6109 fi
6110 else
6111 # PORTME fill in a description of your system's linker (not GNU ld)
6112 case $host_os in
6113 aix3*)
6114 allow_undefined_flag=unsupported
6115 always_export_symbols=yes
6116 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'
6117 # Note: this linker hardcodes the directories in LIBPATH if there
6118 # are no directories specified by -L.
6119 hardcode_minus_L=yes
6120 if test "$GCC" = yes && test -z "$link_static_flag"; then
6121 # Neither direct hardcoding nor static linking is supported with a
6122 # broken collect2.
6123 hardcode_direct=unsupported
6124 fi
6125 ;;
6126
6127 aix4* | aix5*)
6128 if test "$host_cpu" = ia64; then
6129 # On IA64, the linker does run time linking by default, so we don't
6130 # have to do anything special.
6131 aix_use_runtimelinking=no
6132 exp_sym_flag='-Bexport'
6133 no_entry_flag=""
6134 else
6135 # If we're using GNU nm, then we don't want the "-C" option.
6136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6138 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'
6139 else
6140 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'
6141 fi
6142 aix_use_runtimelinking=no
6143
6144 # Test if we are trying to use run time linking or normal
6145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6146 # need to do runtime linking.
6147 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6148 for ld_flag in $LDFLAGS; do
6149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6150 aix_use_runtimelinking=yes
6151 break
6152 fi
6153 done
6154 esac
6155
6156 exp_sym_flag='-bexport'
6157 no_entry_flag='-bnoentry'
6158 fi
6159
6160 # When large executables or shared objects are built, AIX ld can
6161 # have problems creating the table of contents. If linking a library
6162 # or program results in "error TOC overflow" add -mminimal-toc to
6163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6165
6166 archive_cmds=''
6167 hardcode_direct=yes
6168 hardcode_libdir_separator=':'
6169 link_all_deplibs=yes
6170
6171 if test "$GCC" = yes; then
6172 case $host_os in aix4.012|aix4.012.*)
6173 # We only want to do this on AIX 4.2 and lower, the check
6174 # below for broken collect2 doesn't work under 4.3+
6175 collect2name=`${CC} -print-prog-name=collect2`
6176 if test -f "$collect2name" && \
6177 strings "$collect2name" | grep resolve_lib_name >/dev/null
6178 then
6179 # We have reworked collect2
6180 hardcode_direct=yes
6181 else
6182 # We have old collect2
6183 hardcode_direct=unsupported
6184 # It fails to find uninstalled libraries when the uninstalled
6185 # path is not listed in the libpath. Setting hardcode_minus_L
6186 # to unsupported forces relinking
6187 hardcode_minus_L=yes
6188 hardcode_libdir_flag_spec='-L$libdir'
6189 hardcode_libdir_separator=
6190 fi
6191 esac
6192 shared_flag='-shared'
6193 else
6194 # not using gcc
6195 if test "$host_cpu" = ia64; then
6196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6197 # chokes on -Wl,-G. The following line is correct:
6198 shared_flag='-G'
6199 else
6200 if test "$aix_use_runtimelinking" = yes; then
6201 shared_flag='${wl}-G'
6202 else
6203 shared_flag='${wl}-bM:SRE'
6204 fi
6205 fi
6206 fi
6207
6208 # It seems that -bexpall does not export symbols beginning with
6209 # underscore (_), so it is better to generate a list of symbols to export.
6210 always_export_symbols=yes
6211 if test "$aix_use_runtimelinking" = yes; then
6212 # Warning - without using the other runtime loading flags (-brtl),
6213 # -berok will link without error, but may produce a broken library.
6214 allow_undefined_flag='-berok'
6215 # Determine the default libpath from the value encoded in an empty executable.
6216 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006222
a.rottmann84e63352003-03-24 09:42:16 +00006223int
6224main ()
6225{
a.rottmann9bc8b932004-02-29 15:18:31 +00006226
a.rottmann84e63352003-03-24 09:42:16 +00006227 ;
6228 return 0;
6229}
6230_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006231rm -f conftest.$ac_objext conftest$ac_exeext
6232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006234 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006247 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006253
a.rottmann9bc8b932004-02-29 15:18:31 +00006254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6255}'`
6256# Check for a 64-bit object if we didn't find anything.
6257if 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; }
6258}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006259else
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006264rm -f conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006267
a.rottmann9bc8b932004-02-29 15:18:31 +00006268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6269 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"
6270 else
6271 if test "$host_cpu" = ia64; then
6272 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6273 allow_undefined_flag="-z nodefs"
6274 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"
6275 else
6276 # Determine the default libpath from the value encoded in an empty executable.
6277 cat >conftest.$ac_ext <<_ACEOF
6278/* confdefs.h. */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006283
a.rottmann9bc8b932004-02-29 15:18:31 +00006284int
6285main ()
6286{
a.rottmann84e63352003-03-24 09:42:16 +00006287
a.rottmann9bc8b932004-02-29 15:18:31 +00006288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext conftest$ac_exeext
6293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006301 { ac_try='test -z "$ac_c_werror_flag"
6302 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006314
a.rottmann9bc8b932004-02-29 15:18:31 +00006315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6316}'`
6317# Check for a 64-bit object if we didn't find anything.
6318if 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; }
6319}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006320else
a.rottmann9bc8b932004-02-29 15:18:31 +00006321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006323
a.rottmann9bc8b932004-02-29 15:18:31 +00006324fi
6325rm -f conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006328
a.rottmann9bc8b932004-02-29 15:18:31 +00006329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6330 # Warning - without using the other run time loading flags,
6331 # -berok will link without error, but may produce a broken library.
6332 no_undefined_flag=' ${wl}-bernotok'
6333 allow_undefined_flag=' ${wl}-berok'
6334 # -bexpall does not export symbols beginning with underscore (_)
6335 always_export_symbols=yes
6336 # Exported symbols can be pulled into shared objects from archives
6337 whole_archive_flag_spec=' '
6338 archive_cmds_need_lc=yes
6339 # This is similar to how AIX traditionally builds it's shared libraries.
6340 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 +00006341 fi
6342 fi
a.rottmann84e63352003-03-24 09:42:16 +00006343 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006344
6345 amigaos*)
6346 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)'
6347 hardcode_libdir_flag_spec='-L$libdir'
6348 hardcode_minus_L=yes
6349 # see comment about different semantics on the GNU ld section
6350 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006351 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006352
a.rottmann9bc8b932004-02-29 15:18:31 +00006353 bsdi4*)
6354 export_dynamic_flag_spec=-rdynamic
6355 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006356
a.rottmann9bc8b932004-02-29 15:18:31 +00006357 cygwin* | mingw* | pw32*)
6358 # When not using gcc, we currently assume that we are using
6359 # Microsoft Visual C++.
6360 # hardcode_libdir_flag_spec is actually meaningless, as there is
6361 # no search path for DLLs.
6362 hardcode_libdir_flag_spec=' '
6363 allow_undefined_flag=unsupported
6364 # Tell ltmain to make .lib files, not .a files.
6365 libext=lib
6366 # Tell ltmain to make .dll files, not .so files.
6367 shrext=".dll"
6368 # FIXME: Setting linknames here is a bad hack.
6369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6370 # The linker will automatically build a .lib file if we build a DLL.
6371 old_archive_From_new_cmds='true'
6372 # FIXME: Should let the user specify the lib program.
6373 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6374 fix_srcfile_path='`cygpath -w "$srcfile"`'
6375 enable_shared_with_static_runtimes=yes
6376 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006377
a.rottmann9bc8b932004-02-29 15:18:31 +00006378 darwin* | rhapsody*)
6379 if test "$GXX" = yes ; then
6380 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006381 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006382 rhapsody* | darwin1.[012])
6383 allow_undefined_flag='-undefined suppress'
6384 ;;
6385 *) # Darwin 1.3 on
6386 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6387 allow_undefined_flag='-flat_namespace -undefined suppress'
6388 else
6389 case ${MACOSX_DEPLOYMENT_TARGET} in
6390 10.[012])
6391 allow_undefined_flag='-flat_namespace -undefined suppress'
6392 ;;
6393 10.*)
6394 allow_undefined_flag='-undefined dynamic_lookup'
6395 ;;
6396 esac
6397 fi
a.rottmann84e63352003-03-24 09:42:16 +00006398 ;;
6399 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006400 lt_int_apple_cc_single_mod=no
6401 output_verbose_link_cmd='echo'
6402 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6403 lt_int_apple_cc_single_mod=yes
6404 fi
6405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6406 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6407 else
6408 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'
6409 fi
6410 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6412 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6413 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}'
6414 else
6415 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}'
6416 fi
6417 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}'
6418 hardcode_direct=no
6419 hardcode_automatic=yes
6420 hardcode_shlibpath_var=unsupported
6421 whole_archive_flag_spec='-all_load $convenience'
6422 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006423 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006424 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006425 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006426 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006427
a.rottmann9bc8b932004-02-29 15:18:31 +00006428 dgux*)
6429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6430 hardcode_libdir_flag_spec='-L$libdir'
6431 hardcode_shlibpath_var=no
6432 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006433
a.rottmann9bc8b932004-02-29 15:18:31 +00006434 freebsd1*)
6435 ld_shlibs=no
6436 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006437
a.rottmann9bc8b932004-02-29 15:18:31 +00006438 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6439 # support. Future versions do this automatically, but an explicit c++rt0.o
6440 # does not break anything, and helps significantly (at the cost of a little
6441 # extra space).
6442 freebsd2.2*)
6443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6444 hardcode_libdir_flag_spec='-R$libdir'
6445 hardcode_direct=yes
6446 hardcode_shlibpath_var=no
6447 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006448
a.rottmann9bc8b932004-02-29 15:18:31 +00006449 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6450 freebsd2*)
6451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6452 hardcode_direct=yes
6453 hardcode_minus_L=yes
6454 hardcode_shlibpath_var=no
6455 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006456
a.rottmann9bc8b932004-02-29 15:18:31 +00006457 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6458 freebsd* | kfreebsd*-gnu)
6459 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6460 hardcode_libdir_flag_spec='-R$libdir'
6461 hardcode_direct=yes
6462 hardcode_shlibpath_var=no
6463 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006464
a.rottmann9bc8b932004-02-29 15:18:31 +00006465 hpux9*)
6466 if test "$GCC" = yes; then
6467 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'
6468 else
6469 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'
6470 fi
6471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6472 hardcode_libdir_separator=:
6473 hardcode_direct=yes
6474
6475 # hardcode_minus_L: Not really in the search PATH,
6476 # but as the default location of the library.
6477 hardcode_minus_L=yes
6478 export_dynamic_flag_spec='${wl}-E'
6479 ;;
6480
6481 hpux10* | hpux11*)
6482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6483 case "$host_cpu" in
6484 hppa*64*|ia64*)
6485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6486 ;;
6487 *)
6488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6489 ;;
6490 esac
6491 else
6492 case "$host_cpu" in
6493 hppa*64*|ia64*)
6494 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 ;;
6496 *)
6497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6498 ;;
6499 esac
6500 fi
6501 if test "$with_gnu_ld" = no; then
6502 case "$host_cpu" in
6503 hppa*64*)
6504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6505 hardcode_libdir_flag_spec_ld='+b $libdir'
6506 hardcode_libdir_separator=:
6507 hardcode_direct=no
6508 hardcode_shlibpath_var=no
6509 ;;
6510 ia64*)
6511 hardcode_libdir_flag_spec='-L$libdir'
6512 hardcode_direct=no
6513 hardcode_shlibpath_var=no
6514
6515 # hardcode_minus_L: Not really in the search PATH,
6516 # but as the default location of the library.
6517 hardcode_minus_L=yes
6518 ;;
6519 *)
6520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6521 hardcode_libdir_separator=:
6522 hardcode_direct=yes
6523 export_dynamic_flag_spec='${wl}-E'
6524
6525 # hardcode_minus_L: Not really in the search PATH,
6526 # but as the default location of the library.
6527 hardcode_minus_L=yes
6528 ;;
6529 esac
6530 fi
6531 ;;
6532
6533 irix5* | irix6* | nonstopux*)
6534 if test "$GCC" = yes; then
6535 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'
6536 else
6537 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'
6538 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6539 fi
6540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6541 hardcode_libdir_separator=:
6542 link_all_deplibs=yes
6543 ;;
6544
6545 netbsd* | knetbsd*-gnu)
6546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6548 else
6549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6550 fi
6551 hardcode_libdir_flag_spec='-R$libdir'
6552 hardcode_direct=yes
6553 hardcode_shlibpath_var=no
6554 ;;
6555
6556 newsos6)
6557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6558 hardcode_direct=yes
6559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6560 hardcode_libdir_separator=:
6561 hardcode_shlibpath_var=no
6562 ;;
6563
6564 openbsd*)
6565 hardcode_direct=yes
6566 hardcode_shlibpath_var=no
6567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6570 export_dynamic_flag_spec='${wl}-E'
6571 else
6572 case $host_os in
6573 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6575 hardcode_libdir_flag_spec='-R$libdir'
6576 ;;
6577 *)
6578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6580 ;;
6581 esac
6582 fi
6583 ;;
6584
6585 os2*)
6586 hardcode_libdir_flag_spec='-L$libdir'
6587 hardcode_minus_L=yes
6588 allow_undefined_flag=unsupported
6589 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'
6590 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6591 ;;
6592
6593 osf3*)
6594 if test "$GCC" = yes; then
6595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6596 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'
6597 else
6598 allow_undefined_flag=' -expect_unresolved \*'
6599 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'
6600 fi
6601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6602 hardcode_libdir_separator=:
6603 ;;
6604
6605 osf4* | osf5*) # as osf3* with the addition of -msym flag
6606 if test "$GCC" = yes; then
6607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6608 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'
6609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6610 else
6611 allow_undefined_flag=' -expect_unresolved \*'
6612 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'
6613 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6614 $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'
6615
6616 # Both c and cxx compiler support -rpath directly
6617 hardcode_libdir_flag_spec='-rpath $libdir'
6618 fi
6619 hardcode_libdir_separator=:
6620 ;;
6621
6622 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6624 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006625 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006626 runpath_var=LD_RUN_PATH
6627 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006628 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006629
a.rottmann9bc8b932004-02-29 15:18:31 +00006630 solaris*)
6631 no_undefined_flag=' -z text'
6632 if test "$GCC" = yes; then
6633 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6634 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6635 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6636 else
6637 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6638 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6640 fi
6641 hardcode_libdir_flag_spec='-R$libdir'
6642 hardcode_shlibpath_var=no
6643 case $host_os in
6644 solaris2.[0-5] | solaris2.[0-5].*) ;;
6645 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6647 esac
6648 link_all_deplibs=yes
6649 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006650
a.rottmann9bc8b932004-02-29 15:18:31 +00006651 sunos4*)
6652 if test "x$host_vendor" = xsequent; then
6653 # Use $CC to link under sequent, because it throws in some extra .o
6654 # files that make .init and .fini sections work.
6655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6656 else
6657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6658 fi
6659 hardcode_libdir_flag_spec='-L$libdir'
6660 hardcode_direct=yes
6661 hardcode_minus_L=yes
6662 hardcode_shlibpath_var=no
6663 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006664
a.rottmann9bc8b932004-02-29 15:18:31 +00006665 sysv4)
6666 case $host_vendor in
6667 sni)
6668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6669 hardcode_direct=yes # is this really true???
6670 ;;
6671 siemens)
6672 ## LD is ld it makes a PLAMLIB
6673 ## CC just makes a GrossModule.
6674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6675 reload_cmds='$CC -r -o $output$reload_objs'
6676 hardcode_direct=no
6677 ;;
6678 motorola)
6679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6681 ;;
6682 esac
6683 runpath_var='LD_RUN_PATH'
6684 hardcode_shlibpath_var=no
6685 ;;
6686
6687 sysv4.3*)
6688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6689 hardcode_shlibpath_var=no
6690 export_dynamic_flag_spec='-Bexport'
6691 ;;
6692
6693 sysv4*MP*)
6694 if test -d /usr/nec; then
6695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6696 hardcode_shlibpath_var=no
6697 runpath_var=LD_RUN_PATH
6698 hardcode_runpath_var=yes
6699 ld_shlibs=yes
6700 fi
6701 ;;
6702
6703 sysv4.2uw2*)
6704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6705 hardcode_direct=yes
6706 hardcode_minus_L=no
6707 hardcode_shlibpath_var=no
6708 hardcode_runpath_var=yes
6709 runpath_var=LD_RUN_PATH
6710 ;;
6711
6712 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6713 no_undefined_flag='${wl}-z ${wl}text'
6714 if test "$GCC" = yes; then
6715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6716 else
6717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6718 fi
6719 runpath_var='LD_RUN_PATH'
6720 hardcode_shlibpath_var=no
6721 ;;
6722
6723 sysv5*)
6724 no_undefined_flag=' -z text'
6725 # $CC -shared without GNU ld will not create a library from C++
6726 # object files and a static libstdc++, better avoid it by now
6727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6730 hardcode_libdir_flag_spec=
6731 hardcode_shlibpath_var=no
6732 runpath_var='LD_RUN_PATH'
6733 ;;
6734
6735 uts4*)
6736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6737 hardcode_libdir_flag_spec='-L$libdir'
6738 hardcode_shlibpath_var=no
6739 ;;
6740
6741 *)
6742 ld_shlibs=no
6743 ;;
6744 esac
6745 fi
6746
a.rottmann84e63352003-03-24 09:42:16 +00006747echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6748echo "${ECHO_T}$ld_shlibs" >&6
6749test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006750
a.rottmann9bc8b932004-02-29 15:18:31 +00006751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6752if test "$GCC" = yes; then
6753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6754fi
drh71eb93e2001-09-28 01:34:43 +00006755
a.rottmann9bc8b932004-02-29 15:18:31 +00006756#
6757# Do we need to explicitly link libc?
6758#
6759case "x$archive_cmds_need_lc" in
6760x|xyes)
6761 # Assume -lc should be added
6762 archive_cmds_need_lc=yes
6763
6764 if test "$enable_shared" = yes && test "$GCC" = yes; then
6765 case $archive_cmds in
6766 *'~'*)
6767 # FIXME: we may have to deal with multi-command sequences.
6768 ;;
6769 '$CC '*)
6770 # Test whether the compiler implicitly links with -lc since on some
6771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6772 # to ld, don't add -lc before -lgcc.
6773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6774echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6775 $rm conftest*
6776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6777
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } 2>conftest.err; then
6783 soname=conftest
6784 lib=conftest
6785 libobjs=conftest.$ac_objext
6786 deplibs=
6787 wl=$lt_prog_compiler_wl
6788 compiler_flags=-v
6789 linker_flags=-v
6790 verstring=
6791 output_objdir=.
6792 libname=conftest
6793 lt_save_allow_undefined_flag=$allow_undefined_flag
6794 allow_undefined_flag=
6795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6796 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }
6800 then
6801 archive_cmds_need_lc=no
6802 else
6803 archive_cmds_need_lc=yes
6804 fi
6805 allow_undefined_flag=$lt_save_allow_undefined_flag
6806 else
6807 cat conftest.err 1>&5
6808 fi
6809 $rm conftest*
6810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6811echo "${ECHO_T}$archive_cmds_need_lc" >&6
6812 ;;
6813 esac
drh71eb93e2001-09-28 01:34:43 +00006814 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 ;;
6816esac
drh71eb93e2001-09-28 01:34:43 +00006817
a.rottmann84e63352003-03-24 09:42:16 +00006818echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006819echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6820library_names_spec=
6821libname_spec='lib$name'
6822soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006823shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006824postinstall_cmds=
6825postuninstall_cmds=
6826finish_cmds=
6827finish_eval=
6828shlibpath_var=
6829shlibpath_overrides_runpath=unknown
6830version_type=none
6831dynamic_linker="$host_os ld.so"
6832sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006833if test "$GCC" = yes; then
6834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6836 # if the path contains ";" then we assume it to be the separator
6837 # otherwise default to the standard path separator (i.e. ":") - it is
6838 # assumed that no part of a normal pathname contains ";" but that should
6839 # okay in the real world where ";" in dirpaths is itself problematic.
6840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6841 else
6842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6843 fi
6844else
6845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6846fi
6847need_lib_prefix=unknown
6848hardcode_into_libs=no
6849
6850# when you set need_version to no, make sure it does not cause -set_version
6851# flags to be left without arguments
6852need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006853
6854case $host_os in
6855aix3*)
6856 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006858 shlibpath_var=LIBPATH
6859
a.rottmann9bc8b932004-02-29 15:18:31 +00006860 # AIX 3 has no versioning support, so we append a major version to the name.
6861 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006862 ;;
6863
6864aix4* | aix5*)
6865 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006866 need_lib_prefix=no
6867 need_version=no
6868 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006869 if test "$host_cpu" = ia64; then
6870 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006872 shlibpath_var=LD_LIBRARY_PATH
6873 else
6874 # With GCC up to 2.95.x, collect2 would create an import file
6875 # for dependence libraries. The import file would start with
6876 # the line `#! .'. This would cause the generated library to
6877 # depend on `.', always an invalid library. This was fixed in
6878 # development snapshots of GCC prior to 3.0.
6879 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006880 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6882 echo ' yes '
6883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6884 :
6885 else
6886 can_build_shared=no
6887 fi
6888 ;;
drh71eb93e2001-09-28 01:34:43 +00006889 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6891 # soname into executable. Probably we can add versioning support to
6892 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006893 if test "$aix_use_runtimelinking" = yes; then
6894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6895 # instead of lib<name>.a to let people know that these are not
6896 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006898 else
6899 # We preserve .a as extension for shared libraries through AIX4.2
6900 # and later when we are not doing run time linking.
6901 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006903 fi
6904 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006905 fi
6906 ;;
6907
6908amigaos*)
6909 library_names_spec='$libname.ixlibrary $libname.a'
6910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 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 +00006912 ;;
6913
6914beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006916 dynamic_linker="$host_os ld.so"
6917 shlibpath_var=LIBRARY_PATH
6918 ;;
6919
6920bsdi4*)
6921 version_type=linux
6922 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6924 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6926 shlibpath_var=LD_LIBRARY_PATH
6927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6929 # the default ld.so.conf also contains /usr/contrib/lib and
6930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6931 # libtool to hard-code these into programs
6932 ;;
6933
6934cygwin* | mingw* | pw32*)
6935 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006936 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006937 need_version=no
6938 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006939
drh71eb93e2001-09-28 01:34:43 +00006940 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006942 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6944 postinstall_cmds='base_file=`basename \${file}`~
6945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006946 dldir=$destdir/`dirname \$dlpath`~
6947 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006948 $install_prog $dir/$dlname \$dldir/$dlname'
6949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006950 dlpath=$dir/\$dldll~
6951 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006952 shlibpath_overrides_runpath=yes
6953
6954 case $host_os in
6955 cygwin*)
6956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6959 ;;
6960 mingw*)
6961 # MinGW DLLs use traditional 'lib' prefix
6962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6965 # It is most probably a Windows format PATH printed by
6966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6967 # path with ; separators, and with drive letters. We can handle the
6968 # drive letters (cygwin fileutils understands them), so leave them,
6969 # especially as we might pass files found there to a mingw objdump,
6970 # which wouldn't understand a cygwinified path. Ahh.
6971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6972 else
6973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6974 fi
6975 ;;
6976 pw32*)
6977 # pw32 DLLs use 'pw' prefix rather than 'lib'
6978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6979 ;;
6980 esac
drh71eb93e2001-09-28 01:34:43 +00006981 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006982
drh71eb93e2001-09-28 01:34:43 +00006983 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006985 ;;
6986 esac
6987 dynamic_linker='Win32 ld.exe'
6988 # FIXME: first we should search . and the directory the executable is in
6989 shlibpath_var=PATH
6990 ;;
6991
6992darwin* | rhapsody*)
6993 dynamic_linker="$host_os dyld"
6994 version_type=darwin
6995 need_lib_prefix=no
6996 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6998 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00006999 shlibpath_overrides_runpath=yes
7000 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00007001 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7002 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7003 if test "$GCC" = yes; then
7004 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"`
7005 else
7006 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7007 fi
7008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7009 ;;
7010
7011dgux*)
7012 version_type=linux
7013 need_lib_prefix=no
7014 need_version=no
7015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7016 soname_spec='${libname}${release}${shared_ext}$major'
7017 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007018 ;;
7019
a.rottmann84e63352003-03-24 09:42:16 +00007020freebsd1*)
7021 dynamic_linker=no
7022 ;;
7023
a.rottmann9bc8b932004-02-29 15:18:31 +00007024kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007025 version_type=linux
7026 need_lib_prefix=no
7027 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7029 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007030 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007031 shlibpath_overrides_runpath=no
7032 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007033 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007034 ;;
7035
7036freebsd*)
7037 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7038 version_type=freebsd-$objformat
7039 case $version_type in
7040 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007042 need_version=no
7043 need_lib_prefix=no
7044 ;;
7045 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007047 need_version=yes
7048 ;;
7049 esac
7050 shlibpath_var=LD_LIBRARY_PATH
7051 case $host_os in
7052 freebsd2*)
7053 shlibpath_overrides_runpath=yes
7054 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007055 freebsd3.01* | freebsdelf3.01*)
7056 shlibpath_overrides_runpath=yes
7057 hardcode_into_libs=yes
7058 ;;
7059 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007060 shlibpath_overrides_runpath=no
7061 hardcode_into_libs=yes
7062 ;;
7063 esac
7064 ;;
7065
7066gnu*)
7067 version_type=linux
7068 need_lib_prefix=no
7069 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7071 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007072 shlibpath_var=LD_LIBRARY_PATH
7073 hardcode_into_libs=yes
7074 ;;
7075
7076hpux9* | hpux10* | hpux11*)
7077 # Give a soname corresponding to the major version so that dld.sl refuses to
7078 # link against other versions.
7079 version_type=sunos
7080 need_lib_prefix=no
7081 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007082 case "$host_cpu" in
7083 ia64*)
7084 shrext='.so'
7085 hardcode_into_libs=yes
7086 dynamic_linker="$host_os dld.so"
7087 shlibpath_var=LD_LIBRARY_PATH
7088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 if test "X$HPUX_IA64_MODE" = X32; then
7092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7093 else
7094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7095 fi
7096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7097 ;;
7098 hppa*64*)
7099 shrext='.sl'
7100 hardcode_into_libs=yes
7101 dynamic_linker="$host_os dld.sl"
7102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7108 ;;
7109 *)
7110 shrext='.sl'
7111 dynamic_linker="$host_os dld.sl"
7112 shlibpath_var=SHLIB_PATH
7113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7115 soname_spec='${libname}${release}${shared_ext}$major'
7116 ;;
7117 esac
drh71eb93e2001-09-28 01:34:43 +00007118 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7119 postinstall_cmds='chmod 555 $lib'
7120 ;;
7121
a.rottmann84e63352003-03-24 09:42:16 +00007122irix5* | irix6* | nonstopux*)
7123 case $host_os in
7124 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 *)
7126 if test "$lt_cv_prog_gnu_ld" = yes; then
7127 version_type=linux
7128 else
7129 version_type=irix
7130 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007131 esac
drh71eb93e2001-09-28 01:34:43 +00007132 need_lib_prefix=no
7133 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007134 soname_spec='${libname}${release}${shared_ext}$major'
7135 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 +00007136 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007137 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007138 libsuff= shlibsuff=
7139 ;;
7140 *)
7141 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7143 libsuff= shlibsuff= libmagic=32-bit;;
7144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7145 libsuff=32 shlibsuff=N32 libmagic=N32;;
7146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007148 *) libsuff= shlibsuff= libmagic=never-match;;
7149 esac
7150 ;;
7151 esac
7152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7153 shlibpath_overrides_runpath=no
7154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007156 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007157 ;;
7158
7159# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007160linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007161 dynamic_linker=no
7162 ;;
7163
7164# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007165linux*)
drh71eb93e2001-09-28 01:34:43 +00007166 version_type=linux
7167 need_lib_prefix=no
7168 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7172 shlibpath_var=LD_LIBRARY_PATH
7173 shlibpath_overrides_runpath=no
7174 # This implies no fast_install, which is unacceptable.
7175 # Some rework will be needed to allow for fast_install
7176 # before this can be enabled.
7177 hardcode_into_libs=yes
7178
a.rottmann9bc8b932004-02-29 15:18:31 +00007179 # Append ld.so.conf contents to the search path
7180 if test -f /etc/ld.so.conf; then
7181 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7182 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7183 fi
7184
drh71eb93e2001-09-28 01:34:43 +00007185 # We used to test for /lib/ld.so.1 and disable shared libraries on
7186 # powerpc, because MkLinux only supported shared libraries with the
7187 # GNU dynamic linker. Since this was broken with cross compilers,
7188 # most powerpc-linux boxes support dynamic linking these days and
7189 # people can always --disable-shared, the test was removed, and we
7190 # assume the GNU/Linux dynamic linker is in use.
7191 dynamic_linker='GNU/Linux ld.so'
7192 ;;
7193
a.rottmann9bc8b932004-02-29 15:18:31 +00007194knetbsd*-gnu)
7195 version_type=linux
7196 need_lib_prefix=no
7197 need_version=no
7198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7199 soname_spec='${libname}${release}${shared_ext}$major'
7200 shlibpath_var=LD_LIBRARY_PATH
7201 shlibpath_overrides_runpath=no
7202 hardcode_into_libs=yes
7203 dynamic_linker='GNU ld.so'
7204 ;;
7205
drh71eb93e2001-09-28 01:34:43 +00007206netbsd*)
7207 version_type=sunos
7208 need_lib_prefix=no
7209 need_version=no
7210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7213 dynamic_linker='NetBSD (a.out) ld.so'
7214 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7216 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007217 dynamic_linker='NetBSD ld.elf_so'
7218 fi
7219 shlibpath_var=LD_LIBRARY_PATH
7220 shlibpath_overrides_runpath=yes
7221 hardcode_into_libs=yes
7222 ;;
7223
7224newsos6)
7225 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7227 shlibpath_var=LD_LIBRARY_PATH
7228 shlibpath_overrides_runpath=yes
7229 ;;
7230
7231nto-qnx*)
7232 version_type=linux
7233 need_lib_prefix=no
7234 need_version=no
7235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7236 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007237 shlibpath_var=LD_LIBRARY_PATH
7238 shlibpath_overrides_runpath=yes
7239 ;;
7240
drh71eb93e2001-09-28 01:34:43 +00007241openbsd*)
7242 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007243 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 need_version=yes
7245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7247 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007248 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 +00007249 case $host_os in
7250 openbsd2.[89] | openbsd2.[89].*)
7251 shlibpath_overrides_runpath=no
7252 ;;
7253 *)
7254 shlibpath_overrides_runpath=yes
7255 ;;
7256 esac
a.rottmann84e63352003-03-24 09:42:16 +00007257 else
7258 shlibpath_overrides_runpath=yes
7259 fi
drh71eb93e2001-09-28 01:34:43 +00007260 ;;
7261
7262os2*)
7263 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007265 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007267 dynamic_linker='OS/2 ld.exe'
7268 shlibpath_var=LIBPATH
7269 ;;
7270
7271osf3* | osf4* | osf5*)
7272 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007273 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 need_version=no
7275 soname_spec='${libname}${release}${shared_ext}$major'
7276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007277 shlibpath_var=LD_LIBRARY_PATH
7278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7279 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7280 ;;
7281
7282sco3.2v5*)
7283 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007284 soname_spec='${libname}${release}${shared_ext}$major'
7285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007286 shlibpath_var=LD_LIBRARY_PATH
7287 ;;
7288
7289solaris*)
7290 version_type=linux
7291 need_lib_prefix=no
7292 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7294 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007295 shlibpath_var=LD_LIBRARY_PATH
7296 shlibpath_overrides_runpath=yes
7297 hardcode_into_libs=yes
7298 # ldd complains unless libraries are executable
7299 postinstall_cmds='chmod +x $lib'
7300 ;;
7301
7302sunos4*)
7303 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7306 shlibpath_var=LD_LIBRARY_PATH
7307 shlibpath_overrides_runpath=yes
7308 if test "$with_gnu_ld" = yes; then
7309 need_lib_prefix=no
7310 fi
7311 need_version=yes
7312 ;;
7313
7314sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7315 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7317 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007318 shlibpath_var=LD_LIBRARY_PATH
7319 case $host_vendor in
7320 sni)
7321 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007322 need_lib_prefix=no
7323 export_dynamic_flag_spec='${wl}-Blargedynsym'
7324 runpath_var=LD_RUN_PATH
7325 ;;
7326 siemens)
7327 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007328 ;;
7329 motorola)
7330 need_lib_prefix=no
7331 need_version=no
7332 shlibpath_overrides_runpath=no
7333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7334 ;;
7335 esac
7336 ;;
7337
7338sysv4*MP*)
7339 if test -d /usr/nec ;then
7340 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7342 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007343 shlibpath_var=LD_LIBRARY_PATH
7344 fi
7345 ;;
7346
a.rottmann9bc8b932004-02-29 15:18:31 +00007347uts4*)
7348 version_type=linux
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 shlibpath_var=LD_LIBRARY_PATH
7352 ;;
7353
drh71eb93e2001-09-28 01:34:43 +00007354*)
7355 dynamic_linker=no
7356 ;;
7357esac
a.rottmann84e63352003-03-24 09:42:16 +00007358echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007359echo "${ECHO_T}$dynamic_linker" >&6
7360test "$dynamic_linker" = no && can_build_shared=no
7361
a.rottmann9bc8b932004-02-29 15:18:31 +00007362echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7363echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7364hardcode_action=
7365if test -n "$hardcode_libdir_flag_spec" || \
7366 test -n "$runpath_var " || \
7367 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007368
a.rottmann9bc8b932004-02-29 15:18:31 +00007369 # We can hardcode non-existant directories.
7370 if test "$hardcode_direct" != no &&
7371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7372 # have to relink, otherwise we might link with an installed library
7373 # when we should be linking with a yet-to-be-installed one
7374 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7375 test "$hardcode_minus_L" != no; then
7376 # Linking always hardcodes the temporary library directory.
7377 hardcode_action=relink
7378 else
7379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7380 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007381 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007382else
7383 # We cannot hardcode anything, or else we can only hardcode existing
7384 # directories.
7385 hardcode_action=unsupported
7386fi
7387echo "$as_me:$LINENO: result: $hardcode_action" >&5
7388echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007389
7390if test "$hardcode_action" = relink; then
7391 # Fast installation is not supported
7392 enable_fast_install=no
7393elif test "$shlibpath_overrides_runpath" = yes ||
7394 test "$enable_shared" = no; then
7395 # Fast installation is not necessary
7396 enable_fast_install=needless
7397fi
7398
a.rottmann9bc8b932004-02-29 15:18:31 +00007399striplib=
7400old_striplib=
7401echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7402echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7403if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7404 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7405 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7406 echo "$as_me:$LINENO: result: yes" >&5
7407echo "${ECHO_T}yes" >&6
7408else
7409# FIXME - insert some real tests, host_os isn't really good enough
7410 case $host_os in
7411 darwin*)
7412 if test -n "$STRIP" ; then
7413 striplib="$STRIP -x"
7414 echo "$as_me:$LINENO: result: yes" >&5
7415echo "${ECHO_T}yes" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419fi
7420 ;;
7421 *)
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424 ;;
7425 esac
a.rottmann84e63352003-03-24 09:42:16 +00007426fi
7427
drh71eb93e2001-09-28 01:34:43 +00007428if test "x$enable_dlopen" != xyes; then
7429 enable_dlopen=unknown
7430 enable_dlopen_self=unknown
7431 enable_dlopen_self_static=unknown
7432else
7433 lt_cv_dlopen=no
7434 lt_cv_dlopen_libs=
7435
7436 case $host_os in
7437 beos*)
7438 lt_cv_dlopen="load_add_on"
7439 lt_cv_dlopen_libs=
7440 lt_cv_dlopen_self=yes
7441 ;;
7442
a.rottmann9bc8b932004-02-29 15:18:31 +00007443 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007444 lt_cv_dlopen="LoadLibrary"
7445 lt_cv_dlopen_libs=
7446 ;;
7447
a.rottmann9bc8b932004-02-29 15:18:31 +00007448 cygwin*)
7449 lt_cv_dlopen="dlopen"
7450 lt_cv_dlopen_libs=
7451 ;;
7452
7453 darwin*)
7454 # if libdl is installed we need to link against it
7455 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7456echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7457if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460 ac_check_lib_save_LIBS=$LIBS
7461LIBS="-ldl $LIBS"
7462cat >conftest.$ac_ext <<_ACEOF
7463/* confdefs.h. */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h. */
7468
7469/* Override any gcc2 internal prototype to avoid an error. */
7470#ifdef __cplusplus
7471extern "C"
7472#endif
7473/* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7475char dlopen ();
7476int
7477main ()
7478{
7479dlopen ();
7480 ;
7481 return 0;
7482}
7483_ACEOF
7484rm -f conftest.$ac_objext conftest$ac_exeext
7485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486 (eval $ac_link) 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007493 { ac_try='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try='test -s conftest$ac_exeext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 ac_cv_lib_dl_dlopen=yes
7507else
7508 echo "$as_me: failed program was:" >&5
7509sed 's/^/| /' conftest.$ac_ext >&5
7510
7511ac_cv_lib_dl_dlopen=no
7512fi
7513rm -f conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7515LIBS=$ac_check_lib_save_LIBS
7516fi
7517echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7518echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7519if test $ac_cv_lib_dl_dlopen = yes; then
7520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7521else
7522
7523 lt_cv_dlopen="dyld"
7524 lt_cv_dlopen_libs=
7525 lt_cv_dlopen_self=yes
7526
7527fi
7528
7529 ;;
7530
drh71eb93e2001-09-28 01:34:43 +00007531 *)
a.rottmann84e63352003-03-24 09:42:16 +00007532 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007533echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7534if test "${ac_cv_func_shl_load+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007538/* confdefs.h. */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007543/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545#define shl_load innocuous_shl_load
7546
drh71eb93e2001-09-28 01:34:43 +00007547/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007548 which can conflict with char shl_load (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007551
a.rottmann84e63352003-03-24 09:42:16 +00007552#ifdef __STDC__
7553# include <limits.h>
7554#else
7555# include <assert.h>
7556#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007557
7558#undef shl_load
7559
drh71eb93e2001-09-28 01:34:43 +00007560/* Override any gcc2 internal prototype to avoid an error. */
7561#ifdef __cplusplus
7562extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007563{
drh71eb93e2001-09-28 01:34:43 +00007564#endif
7565/* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007568/* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571#if defined (__stub_shl_load) || defined (__stub___shl_load)
7572choke me
7573#else
a.rottmann84e63352003-03-24 09:42:16 +00007574char (*f) () = shl_load;
7575#endif
7576#ifdef __cplusplus
7577}
drh71eb93e2001-09-28 01:34:43 +00007578#endif
7579
a.rottmann84e63352003-03-24 09:42:16 +00007580int
7581main ()
7582{
7583return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007590 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007591 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007596 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007606 (eval $ac_try) 2>&5
7607 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007609 (exit $ac_status); }; }; then
7610 ac_cv_func_shl_load=yes
7611else
7612 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007613sed 's/^/| /' conftest.$ac_ext >&5
7614
drh71eb93e2001-09-28 01:34:43 +00007615ac_cv_func_shl_load=no
7616fi
a.rottmann964dbb12004-02-26 19:47:42 +00007617rm -f conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007619fi
a.rottmann84e63352003-03-24 09:42:16 +00007620echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007621echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7622if test $ac_cv_func_shl_load = yes; then
7623 lt_cv_dlopen="shl_load"
7624else
a.rottmann84e63352003-03-24 09:42:16 +00007625 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007626echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7627if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 ac_check_lib_save_LIBS=$LIBS
7631LIBS="-ldld $LIBS"
7632cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007638
7639/* Override any gcc2 internal prototype to avoid an error. */
7640#ifdef __cplusplus
7641extern "C"
7642#endif
7643/* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7645char shl_load ();
7646int
7647main ()
7648{
7649shl_load ();
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007656 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007657 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007662 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007672 (eval $ac_try) 2>&5
7673 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007675 (exit $ac_status); }; }; then
7676 ac_cv_lib_dld_shl_load=yes
7677else
7678 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007679sed 's/^/| /' conftest.$ac_ext >&5
7680
drh71eb93e2001-09-28 01:34:43 +00007681ac_cv_lib_dld_shl_load=no
7682fi
a.rottmann964dbb12004-02-26 19:47:42 +00007683rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007685LIBS=$ac_check_lib_save_LIBS
7686fi
a.rottmann84e63352003-03-24 09:42:16 +00007687echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007688echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7689if test $ac_cv_lib_dld_shl_load = yes; then
7690 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7691else
a.rottmann84e63352003-03-24 09:42:16 +00007692 echo "$as_me:$LINENO: checking for dlopen" >&5
7693echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7694if test "${ac_cv_func_dlopen+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696else
7697 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007698/* confdefs.h. */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007703/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7705#define dlopen innocuous_dlopen
7706
a.rottmann84e63352003-03-24 09:42:16 +00007707/* System header to define __stub macros and hopefully few prototypes,
7708 which can conflict with char dlopen (); below.
7709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7710 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007711
a.rottmann84e63352003-03-24 09:42:16 +00007712#ifdef __STDC__
7713# include <limits.h>
7714#else
7715# include <assert.h>
7716#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007717
7718#undef dlopen
7719
a.rottmann84e63352003-03-24 09:42:16 +00007720/* Override any gcc2 internal prototype to avoid an error. */
7721#ifdef __cplusplus
7722extern "C"
7723{
7724#endif
7725/* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7727char dlopen ();
7728/* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731#if defined (__stub_dlopen) || defined (__stub___dlopen)
7732choke me
7733#else
7734char (*f) () = dlopen;
7735#endif
7736#ifdef __cplusplus
7737}
7738#endif
7739
7740int
7741main ()
7742{
7743return f != dlopen;
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007750 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007751 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_func_dlopen=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775ac_cv_func_dlopen=no
7776fi
a.rottmann964dbb12004-02-26 19:47:42 +00007777rm -f conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007779fi
7780echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7781echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7782if test $ac_cv_func_dlopen = yes; then
7783 lt_cv_dlopen="dlopen"
7784else
7785 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007786echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7787if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790 ac_check_lib_save_LIBS=$LIBS
7791LIBS="-ldl $LIBS"
7792cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007793/* confdefs.h. */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007798
7799/* Override any gcc2 internal prototype to avoid an error. */
7800#ifdef __cplusplus
7801extern "C"
7802#endif
7803/* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7805char dlopen ();
7806int
7807main ()
7808{
7809dlopen ();
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007816 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007817 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007822 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007832 (eval $ac_try) 2>&5
7833 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007835 (exit $ac_status); }; }; then
7836 ac_cv_lib_dl_dlopen=yes
7837else
7838 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007839sed 's/^/| /' conftest.$ac_ext >&5
7840
drh71eb93e2001-09-28 01:34:43 +00007841ac_cv_lib_dl_dlopen=no
7842fi
a.rottmann964dbb12004-02-26 19:47:42 +00007843rm -f conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007845LIBS=$ac_check_lib_save_LIBS
7846fi
a.rottmann84e63352003-03-24 09:42:16 +00007847echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007848echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7849if test $ac_cv_lib_dl_dlopen = yes; then
7850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7851else
a.rottmann84e63352003-03-24 09:42:16 +00007852 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007853echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7854if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856else
7857 ac_check_lib_save_LIBS=$LIBS
7858LIBS="-lsvld $LIBS"
7859cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007860/* confdefs.h. */
7861_ACEOF
7862cat confdefs.h >>conftest.$ac_ext
7863cat >>conftest.$ac_ext <<_ACEOF
7864/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007865
7866/* Override any gcc2 internal prototype to avoid an error. */
7867#ifdef __cplusplus
7868extern "C"
7869#endif
7870/* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872char dlopen ();
7873int
7874main ()
7875{
7876dlopen ();
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007883 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007884 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007889 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007899 (eval $ac_try) 2>&5
7900 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007902 (exit $ac_status); }; }; then
7903 ac_cv_lib_svld_dlopen=yes
7904else
7905 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007906sed 's/^/| /' conftest.$ac_ext >&5
7907
drh71eb93e2001-09-28 01:34:43 +00007908ac_cv_lib_svld_dlopen=no
7909fi
a.rottmann964dbb12004-02-26 19:47:42 +00007910rm -f conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007912LIBS=$ac_check_lib_save_LIBS
7913fi
a.rottmann84e63352003-03-24 09:42:16 +00007914echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007915echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7916if test $ac_cv_lib_svld_dlopen = yes; then
7917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007918else
7919 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7920echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7921if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 ac_check_lib_save_LIBS=$LIBS
7925LIBS="-ldld $LIBS"
7926cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
7932
7933/* Override any gcc2 internal prototype to avoid an error. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char dld_link ();
7940int
7941main ()
7942{
7943dld_link ();
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007950 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007951 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_dld_dld_link=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007976fi
a.rottmann964dbb12004-02-26 19:47:42 +00007977rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007979LIBS=$ac_check_lib_save_LIBS
7980fi
7981echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7982echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7983if test $ac_cv_lib_dld_dld_link = yes; then
7984 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7985fi
7986
drh71eb93e2001-09-28 01:34:43 +00007987
7988fi
7989
drh71eb93e2001-09-28 01:34:43 +00007990
7991fi
7992
a.rottmann84e63352003-03-24 09:42:16 +00007993
7994fi
7995
7996
7997fi
7998
7999
drh71eb93e2001-09-28 01:34:43 +00008000fi
8001
8002 ;;
8003 esac
8004
8005 if test "x$lt_cv_dlopen" != xno; then
8006 enable_dlopen=yes
8007 else
8008 enable_dlopen=no
8009 fi
8010
8011 case $lt_cv_dlopen in
8012 dlopen)
8013 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008015
8016 save_LDFLAGS="$LDFLAGS"
8017 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8018
8019 save_LIBS="$LIBS"
8020 LIBS="$lt_cv_dlopen_libs $LIBS"
8021
a.rottmann84e63352003-03-24 09:42:16 +00008022 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008023echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8024if test "${lt_cv_dlopen_self+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027 if test "$cross_compiling" = yes; then :
8028 lt_cv_dlopen_self=cross
8029else
a.rottmann9bc8b932004-02-29 15:18:31 +00008030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008031 lt_status=$lt_dlunknown
8032 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +00008033#line 8033 "configure"
drh71eb93e2001-09-28 01:34:43 +00008034#include "confdefs.h"
8035
8036#if HAVE_DLFCN_H
8037#include <dlfcn.h>
8038#endif
8039
8040#include <stdio.h>
8041
8042#ifdef RTLD_GLOBAL
8043# define LT_DLGLOBAL RTLD_GLOBAL
8044#else
8045# ifdef DL_GLOBAL
8046# define LT_DLGLOBAL DL_GLOBAL
8047# else
8048# define LT_DLGLOBAL 0
8049# endif
8050#endif
8051
8052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8053 find out it does not work in some platform. */
8054#ifndef LT_DLLAZY_OR_NOW
8055# ifdef RTLD_LAZY
8056# define LT_DLLAZY_OR_NOW RTLD_LAZY
8057# else
8058# ifdef DL_LAZY
8059# define LT_DLLAZY_OR_NOW DL_LAZY
8060# else
8061# ifdef RTLD_NOW
8062# define LT_DLLAZY_OR_NOW RTLD_NOW
8063# else
8064# ifdef DL_NOW
8065# define LT_DLLAZY_OR_NOW DL_NOW
8066# else
8067# define LT_DLLAZY_OR_NOW 0
8068# endif
8069# endif
8070# endif
8071# endif
8072#endif
8073
8074#ifdef __cplusplus
8075extern "C" void exit (int);
8076#endif
8077
8078void fnord() { int i=42;}
8079int main ()
8080{
8081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8082 int status = $lt_dlunknown;
8083
8084 if (self)
8085 {
8086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8088 /* dlclose (self); */
8089 }
8090
8091 exit (status);
8092}
8093EOF
a.rottmann84e63352003-03-24 09:42:16 +00008094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008095 (eval $ac_link) 2>&5
8096 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008098 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8099 (./conftest; exit; ) 2>/dev/null
8100 lt_status=$?
8101 case x$lt_status in
8102 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8103 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8104 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8105 esac
8106 else :
8107 # compilation failed
8108 lt_cv_dlopen_self=no
8109 fi
8110fi
8111rm -fr conftest*
8112
a.rottmann84e63352003-03-24 09:42:16 +00008113
drh71eb93e2001-09-28 01:34:43 +00008114fi
a.rottmann84e63352003-03-24 09:42:16 +00008115echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008116echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8117
8118 if test "x$lt_cv_dlopen_self" = xyes; then
8119 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008120 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008121echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8122if test "${lt_cv_dlopen_self_static+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 if test "$cross_compiling" = yes; then :
8126 lt_cv_dlopen_self_static=cross
8127else
a.rottmann9bc8b932004-02-29 15:18:31 +00008128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008129 lt_status=$lt_dlunknown
8130 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +00008131#line 8131 "configure"
drh71eb93e2001-09-28 01:34:43 +00008132#include "confdefs.h"
8133
8134#if HAVE_DLFCN_H
8135#include <dlfcn.h>
8136#endif
8137
8138#include <stdio.h>
8139
8140#ifdef RTLD_GLOBAL
8141# define LT_DLGLOBAL RTLD_GLOBAL
8142#else
8143# ifdef DL_GLOBAL
8144# define LT_DLGLOBAL DL_GLOBAL
8145# else
8146# define LT_DLGLOBAL 0
8147# endif
8148#endif
8149
8150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8151 find out it does not work in some platform. */
8152#ifndef LT_DLLAZY_OR_NOW
8153# ifdef RTLD_LAZY
8154# define LT_DLLAZY_OR_NOW RTLD_LAZY
8155# else
8156# ifdef DL_LAZY
8157# define LT_DLLAZY_OR_NOW DL_LAZY
8158# else
8159# ifdef RTLD_NOW
8160# define LT_DLLAZY_OR_NOW RTLD_NOW
8161# else
8162# ifdef DL_NOW
8163# define LT_DLLAZY_OR_NOW DL_NOW
8164# else
8165# define LT_DLLAZY_OR_NOW 0
8166# endif
8167# endif
8168# endif
8169# endif
8170#endif
8171
8172#ifdef __cplusplus
8173extern "C" void exit (int);
8174#endif
8175
8176void fnord() { int i=42;}
8177int main ()
8178{
8179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8180 int status = $lt_dlunknown;
8181
8182 if (self)
8183 {
8184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8186 /* dlclose (self); */
8187 }
8188
8189 exit (status);
8190}
8191EOF
a.rottmann84e63352003-03-24 09:42:16 +00008192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008193 (eval $ac_link) 2>&5
8194 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8197 (./conftest; exit; ) 2>/dev/null
8198 lt_status=$?
8199 case x$lt_status in
8200 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8201 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8202 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8203 esac
8204 else :
8205 # compilation failed
8206 lt_cv_dlopen_self_static=no
8207 fi
8208fi
8209rm -fr conftest*
8210
a.rottmann84e63352003-03-24 09:42:16 +00008211
drh71eb93e2001-09-28 01:34:43 +00008212fi
a.rottmann84e63352003-03-24 09:42:16 +00008213echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008214echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8215 fi
8216
8217 CPPFLAGS="$save_CPPFLAGS"
8218 LDFLAGS="$save_LDFLAGS"
8219 LIBS="$save_LIBS"
8220 ;;
8221 esac
8222
8223 case $lt_cv_dlopen_self in
8224 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8225 *) enable_dlopen_self=unknown ;;
8226 esac
8227
8228 case $lt_cv_dlopen_self_static in
8229 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8230 *) enable_dlopen_self_static=unknown ;;
8231 esac
8232fi
8233
drh71eb93e2001-09-28 01:34:43 +00008234
a.rottmann9bc8b932004-02-29 15:18:31 +00008235# Report which librarie types wil actually be built
8236echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8237echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8238echo "$as_me:$LINENO: result: $can_build_shared" >&5
8239echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008240
a.rottmann9bc8b932004-02-29 15:18:31 +00008241echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8242echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8243test "$can_build_shared" = "no" && enable_shared=no
8244
8245# On AIX, shared libraries and static libraries use the same namespace, and
8246# are all built from PIC.
8247case "$host_os" in
8248aix3*)
8249 test "$enable_shared" = yes && enable_static=no
8250 if test -n "$RANLIB"; then
8251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8252 postinstall_cmds='$RANLIB $lib'
8253 fi
8254 ;;
8255
8256aix4*)
8257 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8258 test "$enable_shared" = yes && enable_static=no
8259 fi
8260 ;;
8261 darwin* | rhapsody*)
8262 if test "$GCC" = yes; then
8263 archive_cmds_need_lc=no
8264 case "$host_os" in
8265 rhapsody* | darwin1.[012])
8266 allow_undefined_flag='-undefined suppress'
8267 ;;
8268 *) # Darwin 1.3 on
8269 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8270 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008271 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 case ${MACOSX_DEPLOYMENT_TARGET} in
8273 10.[012])
8274 allow_undefined_flag='-flat_namespace -undefined suppress'
8275 ;;
8276 10.*)
8277 allow_undefined_flag='-undefined dynamic_lookup'
8278 ;;
8279 esac
a.rottmann84e63352003-03-24 09:42:16 +00008280 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008281 ;;
8282 esac
8283 output_verbose_link_cmd='echo'
8284 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8285 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8287 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}'
8288 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}'
8289 hardcode_direct=no
8290 hardcode_automatic=yes
8291 hardcode_shlibpath_var=unsupported
8292 whole_archive_flag_spec='-all_load $convenience'
8293 link_all_deplibs=yes
8294 else
8295 ld_shlibs=no
8296 fi
a.rottmann84e63352003-03-24 09:42:16 +00008297 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008298esac
8299echo "$as_me:$LINENO: result: $enable_shared" >&5
8300echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008301
a.rottmann9bc8b932004-02-29 15:18:31 +00008302echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8303echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8304# Make sure either enable_shared or enable_static is yes.
8305test "$enable_shared" = yes || enable_static=yes
8306echo "$as_me:$LINENO: result: $enable_static" >&5
8307echo "${ECHO_T}$enable_static" >&6
8308
8309# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008310# libtool distribution, otherwise you forgot to ship ltmain.sh
8311# with your package, and you will get complaints that there are
8312# no rules to generate ltmain.sh.
8313if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008314 # See if we are running on zsh, and set the options which allow our commands through
8315 # without removal of \ escapes.
8316 if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8318 fi
drh71eb93e2001-09-28 01:34:43 +00008319 # Now quote all the things that may contain metacharacters while being
8320 # careful not to overquote the AC_SUBSTed values. We take copies of the
8321 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8323 SED SHELL STRIP \
8324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8326 deplibs_check_method reload_flag reload_cmds need_locks \
8327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8328 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008330 old_postinstall_cmds old_postuninstall_cmds \
8331 compiler \
8332 CC \
8333 LD \
8334 lt_prog_compiler_wl \
8335 lt_prog_compiler_pic \
8336 lt_prog_compiler_static \
8337 lt_prog_compiler_no_builtin_flag \
8338 export_dynamic_flag_spec \
8339 thread_safe_flag_spec \
8340 whole_archive_flag_spec \
8341 enable_shared_with_static_runtimes \
8342 old_archive_cmds \
8343 old_archive_from_new_cmds \
8344 predep_objects \
8345 postdep_objects \
8346 predeps \
8347 postdeps \
8348 compiler_lib_search_path \
8349 archive_cmds \
8350 archive_expsym_cmds \
8351 postinstall_cmds \
8352 postuninstall_cmds \
8353 old_archive_from_expsyms_cmds \
8354 allow_undefined_flag \
8355 no_undefined_flag \
8356 export_symbols_cmds \
8357 hardcode_libdir_flag_spec \
8358 hardcode_libdir_flag_spec_ld \
8359 hardcode_libdir_separator \
8360 hardcode_automatic \
8361 module_cmds \
8362 module_expsym_cmds \
8363 lt_cv_prog_compiler_c_o \
8364 exclude_expsyms \
8365 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008366
8367 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008368 old_archive_cmds | \
8369 old_archive_from_new_cmds | \
8370 archive_cmds | \
8371 archive_expsym_cmds | \
8372 module_cmds | \
8373 module_expsym_cmds | \
8374 old_archive_from_expsyms_cmds | \
8375 export_symbols_cmds | \
8376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008377 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008378 old_postinstall_cmds | old_postuninstall_cmds | \
8379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008380 # Double-quote double-evaled strings.
8381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8382 ;;
8383 *)
8384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8385 ;;
8386 esac
8387 done
8388
a.rottmann9bc8b932004-02-29 15:18:31 +00008389 case $lt_echo in
8390 *'\$0 --fallback-echo"')
8391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8392 ;;
8393 esac
8394
8395cfgfile="${ofile}T"
8396 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8397 $rm -f "$cfgfile"
8398 { echo "$as_me:$LINENO: creating $ofile" >&5
8399echo "$as_me: creating $ofile" >&6;}
8400
8401 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008402#! $SHELL
8403
a.rottmann9bc8b932004-02-29 15:18:31 +00008404# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008405# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8406# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8407#
a.rottmann9bc8b932004-02-29 15:18:31 +00008408# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8409# Free Software Foundation, Inc.
8410#
8411# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008412# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8413#
8414# This program is free software; you can redistribute it and/or modify
8415# it under the terms of the GNU General Public License as published by
8416# the Free Software Foundation; either version 2 of the License, or
8417# (at your option) any later version.
8418#
8419# This program is distributed in the hope that it will be useful, but
8420# WITHOUT ANY WARRANTY; without even the implied warranty of
8421# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8422# General Public License for more details.
8423#
8424# You should have received a copy of the GNU General Public License
8425# along with this program; if not, write to the Free Software
8426# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8427#
8428# As a special exception to the GNU General Public License, if you
8429# distribute this file as part of a program that contains a
8430# configuration script generated by Autoconf, you may include it under
8431# the same distribution terms that you use for the rest of that program.
8432
a.rottmann9bc8b932004-02-29 15:18:31 +00008433# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008434SED=$lt_SED
8435
drh71eb93e2001-09-28 01:34:43 +00008436# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008437Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008438
8439# The HP-UX ksh and POSIX shell print the target directory to stdout
8440# if CDPATH is set.
8441if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8442
a.rottmann9bc8b932004-02-29 15:18:31 +00008443# The names of the tagged configurations supported by this script.
8444available_tags=
8445
drh71eb93e2001-09-28 01:34:43 +00008446# ### BEGIN LIBTOOL CONFIG
8447
8448# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8449
8450# Shell to use when invoking shell scripts.
8451SHELL=$lt_SHELL
8452
8453# Whether or not to build shared libraries.
8454build_libtool_libs=$enable_shared
8455
8456# Whether or not to build static libraries.
8457build_old_libs=$enable_static
8458
8459# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008460build_libtool_need_lc=$archive_cmds_need_lc
8461
8462# Whether or not to disallow shared libs when runtime libs are static
8463allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008464
8465# Whether or not to optimize for fast installation.
8466fast_install=$enable_fast_install
8467
8468# The host system.
8469host_alias=$host_alias
8470host=$host
8471
8472# An echo program that does not interpret backslashes.
8473echo=$lt_echo
8474
8475# The archiver.
8476AR=$lt_AR
8477AR_FLAGS=$lt_AR_FLAGS
8478
a.rottmann9bc8b932004-02-29 15:18:31 +00008479# A C compiler.
8480LTCC=$lt_LTCC
8481
8482# A language-specific compiler.
8483CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008484
8485# Is the compiler the GNU C compiler?
8486with_gcc=$GCC
8487
a.rottmann9bc8b932004-02-29 15:18:31 +00008488# An ERE matcher.
8489EGREP=$lt_EGREP
8490
drh71eb93e2001-09-28 01:34:43 +00008491# The linker used to build libraries.
8492LD=$lt_LD
8493
8494# Whether we need hard or soft links.
8495LN_S=$lt_LN_S
8496
8497# A BSD-compatible nm program.
8498NM=$lt_NM
8499
8500# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008501STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008502
8503# Used to examine libraries when file_magic_cmd begins "file"
8504MAGIC_CMD=$MAGIC_CMD
8505
8506# Used on cygwin: DLL creation program.
8507DLLTOOL="$DLLTOOL"
8508
8509# Used on cygwin: object dumper.
8510OBJDUMP="$OBJDUMP"
8511
8512# Used on cygwin: assembler.
8513AS="$AS"
8514
8515# The name of the directory that contains temporary libtool files.
8516objdir=$objdir
8517
8518# How to create reloadable object files.
8519reload_flag=$lt_reload_flag
8520reload_cmds=$lt_reload_cmds
8521
8522# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008523wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008524
8525# Object file suffix (normally "o").
8526objext="$ac_objext"
8527
8528# Old archive suffix (normally "a").
8529libext="$libext"
8530
a.rottmann9bc8b932004-02-29 15:18:31 +00008531# Shared library suffix (normally ".so").
8532shrext='$shrext'
8533
drh71eb93e2001-09-28 01:34:43 +00008534# Executable file suffix (normally "").
8535exeext="$exeext"
8536
8537# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008538pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008539pic_mode=$pic_mode
8540
a.rottmann9bc8b932004-02-29 15:18:31 +00008541# What is the maximum length of a command?
8542max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008543
a.rottmann9bc8b932004-02-29 15:18:31 +00008544# Does compiler simultaneously support -c and -o options?
8545compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008546
8547# Must we lock files when doing compilation ?
8548need_locks=$lt_need_locks
8549
8550# Do we need the lib prefix for modules?
8551need_lib_prefix=$need_lib_prefix
8552
8553# Do we need a version for libraries?
8554need_version=$need_version
8555
8556# Whether dlopen is supported.
8557dlopen_support=$enable_dlopen
8558
8559# Whether dlopen of programs is supported.
8560dlopen_self=$enable_dlopen_self
8561
8562# Whether dlopen of statically linked programs is supported.
8563dlopen_self_static=$enable_dlopen_self_static
8564
8565# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008566link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008567
8568# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008569no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008570
8571# Compiler flag to allow reflexive dlopens.
8572export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8573
8574# Compiler flag to generate shared objects directly from archives.
8575whole_archive_flag_spec=$lt_whole_archive_flag_spec
8576
8577# Compiler flag to generate thread-safe objects.
8578thread_safe_flag_spec=$lt_thread_safe_flag_spec
8579
8580# Library versioning type.
8581version_type=$version_type
8582
8583# Format of library name prefix.
8584libname_spec=$lt_libname_spec
8585
8586# List of archive names. First name is the real one, the rest are links.
8587# The last name is the one that the linker finds with -lNAME.
8588library_names_spec=$lt_library_names_spec
8589
8590# The coded name of the library, if different from the real name.
8591soname_spec=$lt_soname_spec
8592
8593# Commands used to build and install an old-style archive.
8594RANLIB=$lt_RANLIB
8595old_archive_cmds=$lt_old_archive_cmds
8596old_postinstall_cmds=$lt_old_postinstall_cmds
8597old_postuninstall_cmds=$lt_old_postuninstall_cmds
8598
8599# Create an old-style archive from a shared archive.
8600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8601
8602# Create a temporary old-style archive to link instead of a shared archive.
8603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8604
8605# Commands used to build and install a shared archive.
8606archive_cmds=$lt_archive_cmds
8607archive_expsym_cmds=$lt_archive_expsym_cmds
8608postinstall_cmds=$lt_postinstall_cmds
8609postuninstall_cmds=$lt_postuninstall_cmds
8610
a.rottmann9bc8b932004-02-29 15:18:31 +00008611# Commands used to build a loadable module (assumed same as above if empty)
8612module_cmds=$lt_module_cmds
8613module_expsym_cmds=$lt_module_expsym_cmds
8614
drh71eb93e2001-09-28 01:34:43 +00008615# Commands to strip libraries.
8616old_striplib=$lt_old_striplib
8617striplib=$lt_striplib
8618
a.rottmann9bc8b932004-02-29 15:18:31 +00008619# Dependencies to place before the objects being linked to create a
8620# shared library.
8621predep_objects=$lt_predep_objects
8622
8623# Dependencies to place after the objects being linked to create a
8624# shared library.
8625postdep_objects=$lt_postdep_objects
8626
8627# Dependencies to place before the objects being linked to create a
8628# shared library.
8629predeps=$lt_predeps
8630
8631# Dependencies to place after the objects being linked to create a
8632# shared library.
8633postdeps=$lt_postdeps
8634
8635# The library search path used internally by the compiler when linking
8636# a shared library.
8637compiler_lib_search_path=$lt_compiler_lib_search_path
8638
drh71eb93e2001-09-28 01:34:43 +00008639# Method to check whether dependent libraries are shared objects.
8640deplibs_check_method=$lt_deplibs_check_method
8641
8642# Command to use when deplibs_check_method == file_magic.
8643file_magic_cmd=$lt_file_magic_cmd
8644
8645# Flag that allows shared libraries with undefined symbols to be built.
8646allow_undefined_flag=$lt_allow_undefined_flag
8647
8648# Flag that forces no undefined symbols.
8649no_undefined_flag=$lt_no_undefined_flag
8650
8651# Commands used to finish a libtool library installation in a directory.
8652finish_cmds=$lt_finish_cmds
8653
8654# Same as above, but a single script fragment to be evaled but not shown.
8655finish_eval=$lt_finish_eval
8656
8657# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008658global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008659
8660# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008661global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008662
8663# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008665
8666# This is the shared library runtime path variable.
8667runpath_var=$runpath_var
8668
8669# This is the shared library path variable.
8670shlibpath_var=$shlibpath_var
8671
8672# Is shlibpath searched before the hard-coded library search path?
8673shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8674
8675# How to hardcode a shared library path into an executable.
8676hardcode_action=$hardcode_action
8677
8678# Whether we should hardcode library paths into libraries.
8679hardcode_into_libs=$hardcode_into_libs
8680
8681# Flag to hardcode \$libdir into a binary during linking.
8682# This must work even if \$libdir does not exist.
8683hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8684
a.rottmann9bc8b932004-02-29 15:18:31 +00008685# If ld is used when linking, flag to hardcode \$libdir into
8686# a binary during linking. This must work even if \$libdir does
8687# not exist.
8688hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8689
drh71eb93e2001-09-28 01:34:43 +00008690# Whether we need a single -rpath flag with a separated argument.
8691hardcode_libdir_separator=$lt_hardcode_libdir_separator
8692
a.rottmann9bc8b932004-02-29 15:18:31 +00008693# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008694# resulting binary.
8695hardcode_direct=$hardcode_direct
8696
8697# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8698# resulting binary.
8699hardcode_minus_L=$hardcode_minus_L
8700
8701# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8702# the resulting binary.
8703hardcode_shlibpath_var=$hardcode_shlibpath_var
8704
a.rottmann9bc8b932004-02-29 15:18:31 +00008705# Set to yes if building a shared library automatically hardcodes DIR into the library
8706# and all subsequent libraries and executables linked against it.
8707hardcode_automatic=$hardcode_automatic
8708
drh71eb93e2001-09-28 01:34:43 +00008709# Variables whose values should be saved in libtool wrapper scripts and
8710# restored at relink time.
8711variables_saved_for_relink="$variables_saved_for_relink"
8712
8713# Whether libtool must link a program against all its dependency libraries.
8714link_all_deplibs=$link_all_deplibs
8715
8716# Compile-time system search path for libraries
8717sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8718
8719# Run-time system search path for libraries
8720sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8721
8722# Fix the shell variable \$srcfile for the compiler.
8723fix_srcfile_path="$fix_srcfile_path"
8724
8725# Set to yes if exported symbols are required.
8726always_export_symbols=$always_export_symbols
8727
8728# The commands to list exported symbols.
8729export_symbols_cmds=$lt_export_symbols_cmds
8730
8731# The commands to extract the exported symbol list from a shared archive.
8732extract_expsyms_cmds=$lt_extract_expsyms_cmds
8733
8734# Symbols that should not be listed in the preloaded symbols.
8735exclude_expsyms=$lt_exclude_expsyms
8736
8737# Symbols that must always be exported.
8738include_expsyms=$lt_include_expsyms
8739
8740# ### END LIBTOOL CONFIG
8741
8742__EOF__
8743
a.rottmann9bc8b932004-02-29 15:18:31 +00008744
drh71eb93e2001-09-28 01:34:43 +00008745 case $host_os in
8746 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008747 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008748
8749# AIX sometimes has problems with the GCC collect2 program. For some
8750# reason, if we set the COLLECT_NAMES environment variable, the problems
8751# vanish in a puff of smoke.
8752if test "X${COLLECT_NAMES+set}" != Xset; then
8753 COLLECT_NAMES=
8754 export COLLECT_NAMES
8755fi
8756EOF
8757 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008758 esac
drh71eb93e2001-09-28 01:34:43 +00008759
drh71eb93e2001-09-28 01:34:43 +00008760 # We use sed instead of cat because bash on DJGPP gets confused if
8761 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8762 # text mode, it properly converts lines to CR/LF. This bash problem
8763 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008764 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008765
a.rottmann9bc8b932004-02-29 15:18:31 +00008766 mv -f "$cfgfile" "$ofile" || \
8767 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008768 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008769
8770else
8771 # If there is no Makefile yet, we rely on a make rule to execute
8772 # `config.status --recheck' to rerun these tests and create the
8773 # libtool script then.
8774 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8775 if test -f "$ltmain_in"; then
8776 test -f Makefile && make "$ltmain"
8777 fi
drh71eb93e2001-09-28 01:34:43 +00008778fi
8779
drh71eb93e2001-09-28 01:34:43 +00008780
a.rottmann9bc8b932004-02-29 15:18:31 +00008781ac_ext=c
8782ac_cpp='$CPP $CPPFLAGS'
8783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786
8787CC="$lt_save_CC"
8788
8789
8790# Check whether --with-tags or --without-tags was given.
8791if test "${with_tags+set}" = set; then
8792 withval="$with_tags"
8793 tagnames="$withval"
8794fi;
8795
8796if test -f "$ltmain" && test -n "$tagnames"; then
8797 if test ! -f "${ofile}"; then
8798 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8799echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8800 fi
8801
8802 if test -z "$LTCC"; then
8803 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8804 if test -z "$LTCC"; then
8805 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8806echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8807 else
8808 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8809echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8810 fi
8811 fi
8812
8813 # Extract list of available tagged configurations in $ofile.
8814 # Note that this assumes the entire list is on one line.
8815 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8816
8817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8818 for tagname in $tagnames; do
8819 IFS="$lt_save_ifs"
8820 # Check whether tagname contains only valid characters
8821 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8822 "") ;;
8823 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8824echo "$as_me: error: invalid tag name: $tagname" >&2;}
8825 { (exit 1); exit 1; }; }
8826 ;;
8827 esac
8828
8829 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8830 then
8831 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8832echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8833 { (exit 1); exit 1; }; }
8834 fi
8835
8836 # Update the list of available tags.
8837 if test -n "$tagname"; then
8838 echo appending configuration tag \"$tagname\" to $ofile
8839
8840 case $tagname in
8841 CXX)
8842 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8843 ac_ext=cc
8844ac_cpp='$CXXCPP $CPPFLAGS'
8845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8848
8849
8850
8851
8852archive_cmds_need_lc_CXX=no
8853allow_undefined_flag_CXX=
8854always_export_symbols_CXX=no
8855archive_expsym_cmds_CXX=
8856export_dynamic_flag_spec_CXX=
8857hardcode_direct_CXX=no
8858hardcode_libdir_flag_spec_CXX=
8859hardcode_libdir_flag_spec_ld_CXX=
8860hardcode_libdir_separator_CXX=
8861hardcode_minus_L_CXX=no
8862hardcode_automatic_CXX=no
8863module_cmds_CXX=
8864module_expsym_cmds_CXX=
8865link_all_deplibs_CXX=unknown
8866old_archive_cmds_CXX=$old_archive_cmds
8867no_undefined_flag_CXX=
8868whole_archive_flag_spec_CXX=
8869enable_shared_with_static_runtimes_CXX=no
8870
8871# Dependencies to place before and after the object being linked:
8872predep_objects_CXX=
8873postdep_objects_CXX=
8874predeps_CXX=
8875postdeps_CXX=
8876compiler_lib_search_path_CXX=
8877
8878# Source file extension for C++ test sources.
8879ac_ext=cc
8880
8881# Object file extension for compiled C++ test sources.
8882objext=o
8883objext_CXX=$objext
8884
8885# Code to be used in simple compile tests
8886lt_simple_compile_test_code="int some_variable = 0;\n"
8887
8888# Code to be used in simple link tests
8889lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8890
8891# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8892
8893# If no C compiler was specified, use CC.
8894LTCC=${LTCC-"$CC"}
8895
8896# Allow CC to be a program name with arguments.
8897compiler=$CC
8898
8899
8900# Allow CC to be a program name with arguments.
8901lt_save_CC=$CC
8902lt_save_LD=$LD
8903lt_save_GCC=$GCC
8904GCC=$GXX
8905lt_save_with_gnu_ld=$with_gnu_ld
8906lt_save_path_LD=$lt_cv_path_LD
8907if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8908 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8909else
8910 unset lt_cv_prog_gnu_ld
8911fi
8912if test -n "${lt_cv_path_LDCXX+set}"; then
8913 lt_cv_path_LD=$lt_cv_path_LDCXX
8914else
8915 unset lt_cv_path_LD
8916fi
8917test -z "${LDCXX+set}" || LD=$LDCXX
8918CC=${CXX-"c++"}
8919compiler=$CC
8920compiler_CXX=$CC
8921cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8922
8923# We don't want -fno-exception wen compiling C++ code, so set the
8924# no_builtin_flag separately
8925if test "$GXX" = yes; then
8926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8927else
8928 lt_prog_compiler_no_builtin_flag_CXX=
8929fi
8930
8931if test "$GXX" = yes; then
8932 # Set up default GNU C++ configuration
8933
8934
8935# Check whether --with-gnu-ld or --without-gnu-ld was given.
8936if test "${with_gnu_ld+set}" = set; then
8937 withval="$with_gnu_ld"
8938 test "$withval" = no || with_gnu_ld=yes
8939else
8940 with_gnu_ld=no
8941fi;
8942ac_prog=ld
8943if test "$GCC" = yes; then
8944 # Check if gcc -print-prog-name=ld gives a path.
8945 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8946echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8947 case $host in
8948 *-*-mingw*)
8949 # gcc leaves a trailing carriage return which upsets mingw
8950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8951 *)
8952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8953 esac
8954 case $ac_prog in
8955 # Accept absolute paths.
8956 [\\/]* | ?:[\\/]*)
8957 re_direlt='/[^/][^/]*/\.\./'
8958 # Canonicalize the pathname of ld
8959 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8961 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8962 done
8963 test -z "$LD" && LD="$ac_prog"
8964 ;;
8965 "")
8966 # If it fails, then pretend we aren't using GCC.
8967 ac_prog=ld
8968 ;;
8969 *)
8970 # If it is relative, then search for the first ld in PATH.
8971 with_gnu_ld=unknown
8972 ;;
8973 esac
8974elif test "$with_gnu_ld" = yes; then
8975 echo "$as_me:$LINENO: checking for GNU ld" >&5
8976echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8977else
8978 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8979echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8980fi
8981if test "${lt_cv_path_LD+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984 if test -z "$LD"; then
8985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8986 for ac_dir in $PATH; do
8987 IFS="$lt_save_ifs"
8988 test -z "$ac_dir" && ac_dir=.
8989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8990 lt_cv_path_LD="$ac_dir/$ac_prog"
8991 # Check to see if the program is GNU ld. I'd rather use --version,
8992 # but apparently some GNU ld's only accept -v.
8993 # Break only if it was the GNU/non-GNU ld that we prefer.
8994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8995 *GNU* | *'with BFD'*)
8996 test "$with_gnu_ld" != no && break
8997 ;;
8998 *)
8999 test "$with_gnu_ld" != yes && break
9000 ;;
9001 esac
9002 fi
9003 done
9004 IFS="$lt_save_ifs"
9005else
9006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9007fi
9008fi
9009
9010LD="$lt_cv_path_LD"
9011if test -n "$LD"; then
9012 echo "$as_me:$LINENO: result: $LD" >&5
9013echo "${ECHO_T}$LD" >&6
9014else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017fi
9018test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9019echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9020 { (exit 1); exit 1; }; }
9021echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9022echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9023if test "${lt_cv_prog_gnu_ld+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9027case `$LD -v 2>&1 </dev/null` in
9028*GNU* | *'with BFD'*)
9029 lt_cv_prog_gnu_ld=yes
9030 ;;
9031*)
9032 lt_cv_prog_gnu_ld=no
9033 ;;
9034esac
9035fi
9036echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9037echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9038with_gnu_ld=$lt_cv_prog_gnu_ld
9039
9040
9041
9042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9043 # archiving commands below assume that GNU ld is being used.
9044 if test "$with_gnu_ld" = yes; then
9045 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046 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'
9047
9048 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9050
9051 # If archive_cmds runs LD, not CC, wlarc should be empty
9052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9053 # investigate it a little bit more. (MM)
9054 wlarc='${wl}'
9055
9056 # ancient GNU ld didn't support --whole-archive et. al.
9057 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9058 grep 'no-whole-archive' > /dev/null; then
9059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060 else
9061 whole_archive_flag_spec_CXX=
9062 fi
9063 else
9064 with_gnu_ld=no
9065 wlarc=
9066
9067 # A generic and very simple default shared library creation
9068 # command for GNU C++ for the case where it uses the native
9069 # linker, instead of GNU ld. If possible, this setting should
9070 # overridden to take advantage of the native linker features on
9071 # the platform it is being used on.
9072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9073 fi
9074
9075 # Commands to make compiler produce verbose output that lists
9076 # what "hidden" libraries, object files and flags are used when
9077 # linking a shared library.
9078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9079
9080else
9081 GXX=no
9082 with_gnu_ld=no
9083 wlarc=
9084fi
9085
9086# PORTME: fill in a description of your system's C++ link characteristics
9087echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9088echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9089ld_shlibs_CXX=yes
9090case $host_os in
9091 aix3*)
9092 # FIXME: insert proper C++ library support
9093 ld_shlibs_CXX=no
9094 ;;
9095 aix4* | aix5*)
9096 if test "$host_cpu" = ia64; then
9097 # On IA64, the linker does run time linking by default, so we don't
9098 # have to do anything special.
9099 aix_use_runtimelinking=no
9100 exp_sym_flag='-Bexport'
9101 no_entry_flag=""
9102 else
9103 aix_use_runtimelinking=no
9104
9105 # Test if we are trying to use run time linking or normal
9106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9107 # need to do runtime linking.
9108 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9109 for ld_flag in $LDFLAGS; do
9110 case $ld_flag in
9111 *-brtl*)
9112 aix_use_runtimelinking=yes
9113 break
9114 ;;
9115 esac
9116 done
9117 esac
9118
9119 exp_sym_flag='-bexport'
9120 no_entry_flag='-bnoentry'
9121 fi
9122
9123 # When large executables or shared objects are built, AIX ld can
9124 # have problems creating the table of contents. If linking a library
9125 # or program results in "error TOC overflow" add -mminimal-toc to
9126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9128
9129 archive_cmds_CXX=''
9130 hardcode_direct_CXX=yes
9131 hardcode_libdir_separator_CXX=':'
9132 link_all_deplibs_CXX=yes
9133
9134 if test "$GXX" = yes; then
9135 case $host_os in aix4.012|aix4.012.*)
9136 # We only want to do this on AIX 4.2 and lower, the check
9137 # below for broken collect2 doesn't work under 4.3+
9138 collect2name=`${CC} -print-prog-name=collect2`
9139 if test -f "$collect2name" && \
9140 strings "$collect2name" | grep resolve_lib_name >/dev/null
9141 then
9142 # We have reworked collect2
9143 hardcode_direct_CXX=yes
9144 else
9145 # We have old collect2
9146 hardcode_direct_CXX=unsupported
9147 # It fails to find uninstalled libraries when the uninstalled
9148 # path is not listed in the libpath. Setting hardcode_minus_L
9149 # to unsupported forces relinking
9150 hardcode_minus_L_CXX=yes
9151 hardcode_libdir_flag_spec_CXX='-L$libdir'
9152 hardcode_libdir_separator_CXX=
9153 fi
9154 esac
9155 shared_flag='-shared'
9156 else
9157 # not using gcc
9158 if test "$host_cpu" = ia64; then
9159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9160 # chokes on -Wl,-G. The following line is correct:
9161 shared_flag='-G'
9162 else
9163 if test "$aix_use_runtimelinking" = yes; then
9164 shared_flag='${wl}-G'
9165 else
9166 shared_flag='${wl}-bM:SRE'
9167 fi
9168 fi
9169 fi
9170
9171 # It seems that -bexpall does not export symbols beginning with
9172 # underscore (_), so it is better to generate a list of symbols to export.
9173 always_export_symbols_CXX=yes
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # Warning - without using the other runtime loading flags (-brtl),
9176 # -berok will link without error, but may produce a broken library.
9177 allow_undefined_flag_CXX='-berok'
9178 # Determine the default libpath from the value encoded in an empty executable.
9179 cat >conftest.$ac_ext <<_ACEOF
9180/* confdefs.h. */
9181_ACEOF
9182cat confdefs.h >>conftest.$ac_ext
9183cat >>conftest.$ac_ext <<_ACEOF
9184/* end confdefs.h. */
9185
9186int
9187main ()
9188{
9189
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009203 { ac_try='test -z "$ac_cxx_werror_flag"
9204 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216
9217aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9218}'`
9219# Check for a 64-bit object if we didn't find anything.
9220if 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; }
9221}'`; fi
9222else
9223 echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226fi
9227rm -f conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230
9231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9232
9233 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"
9234 else
9235 if test "$host_cpu" = ia64; then
9236 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9237 allow_undefined_flag_CXX="-z nodefs"
9238 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"
9239 else
9240 # Determine the default libpath from the value encoded in an empty executable.
9241 cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247
9248int
9249main ()
9250{
9251
9252 ;
9253 return 0;
9254}
9255_ACEOF
9256rm -f conftest.$ac_objext conftest$ac_exeext
9257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009265 { ac_try='test -z "$ac_cxx_werror_flag"
9266 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; } &&
9272 { ac_try='test -s conftest$ac_exeext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278
9279aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9280}'`
9281# Check for a 64-bit object if we didn't find anything.
9282if 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; }
9283}'`; fi
9284else
9285 echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288fi
9289rm -f conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9292
9293 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9294 # Warning - without using the other run time loading flags,
9295 # -berok will link without error, but may produce a broken library.
9296 no_undefined_flag_CXX=' ${wl}-bernotok'
9297 allow_undefined_flag_CXX=' ${wl}-berok'
9298 # -bexpall does not export symbols beginning with underscore (_)
9299 always_export_symbols_CXX=yes
9300 # Exported symbols can be pulled into shared objects from archives
9301 whole_archive_flag_spec_CXX=' '
9302 archive_cmds_need_lc_CXX=yes
9303 # This is similar to how AIX traditionally builds it's shared libraries.
9304 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'
9305 fi
9306 fi
9307 ;;
9308 chorus*)
9309 case $cc_basename in
9310 *)
9311 # FIXME: insert proper C++ library support
9312 ld_shlibs_CXX=no
9313 ;;
9314 esac
9315 ;;
9316
9317 cygwin* | mingw* | pw32*)
9318 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9319 # as there is no search path for DLLs.
9320 hardcode_libdir_flag_spec_CXX='-L$libdir'
9321 allow_undefined_flag_CXX=unsupported
9322 always_export_symbols_CXX=no
9323 enable_shared_with_static_runtimes_CXX=yes
9324
9325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9326 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'
9327 # If the export-symbols file already is a .def file (1st line
9328 # is EXPORTS), use it as is; otherwise, prepend...
9329 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9330 cp $export_symbols $output_objdir/$soname.def;
9331 else
9332 echo EXPORTS > $output_objdir/$soname.def;
9333 cat $export_symbols >> $output_objdir/$soname.def;
9334 fi~
9335 $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'
9336 else
9337 ld_shlibs_CXX=no
9338 fi
9339 ;;
9340
9341 darwin* | rhapsody*)
9342 if test "$GXX" = yes; then
9343 archive_cmds_need_lc_CXX=no
9344 case "$host_os" in
9345 rhapsody* | darwin1.[012])
9346 allow_undefined_flag_CXX='-undefined suppress'
9347 ;;
9348 *) # Darwin 1.3 on
9349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9350 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9351 else
9352 case ${MACOSX_DEPLOYMENT_TARGET} in
9353 10.[012])
9354 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9355 ;;
9356 10.*)
9357 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9358 ;;
9359 esac
9360 fi
9361 ;;
9362 esac
9363 lt_int_apple_cc_single_mod=no
9364 output_verbose_link_cmd='echo'
9365 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9366 lt_int_apple_cc_single_mod=yes
9367 fi
9368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9369 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9370 else
9371 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'
9372 fi
9373 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9374
9375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9376 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9377 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}'
9378 else
9379 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}'
9380 fi
9381 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}'
9382 hardcode_direct_CXX=no
9383 hardcode_automatic_CXX=yes
9384 hardcode_shlibpath_var_CXX=unsupported
9385 whole_archive_flag_spec_CXX='-all_load $convenience'
9386 link_all_deplibs_CXX=yes
9387 else
9388 ld_shlibs_CXX=no
9389 fi
9390 ;;
9391
9392 dgux*)
9393 case $cc_basename in
9394 ec++)
9395 # FIXME: insert proper C++ library support
9396 ld_shlibs_CXX=no
9397 ;;
9398 ghcx)
9399 # Green Hills C++ Compiler
9400 # FIXME: insert proper C++ library support
9401 ld_shlibs_CXX=no
9402 ;;
9403 *)
9404 # FIXME: insert proper C++ library support
9405 ld_shlibs_CXX=no
9406 ;;
9407 esac
9408 ;;
9409 freebsd12*)
9410 # C++ shared libraries reported to be fairly broken before switch to ELF
9411 ld_shlibs_CXX=no
9412 ;;
9413 freebsd-elf*)
9414 archive_cmds_need_lc_CXX=no
9415 ;;
9416 freebsd* | kfreebsd*-gnu)
9417 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9418 # conventions
9419 ld_shlibs_CXX=yes
9420 ;;
9421 gnu*)
9422 ;;
9423 hpux9*)
9424 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9425 hardcode_libdir_separator_CXX=:
9426 export_dynamic_flag_spec_CXX='${wl}-E'
9427 hardcode_direct_CXX=yes
9428 hardcode_minus_L_CXX=yes # Not in the search PATH,
9429 # but as the default
9430 # location of the library.
9431
9432 case $cc_basename in
9433 CC)
9434 # FIXME: insert proper C++ library support
9435 ld_shlibs_CXX=no
9436 ;;
9437 aCC)
9438 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'
9439 # Commands to make compiler produce verbose output that lists
9440 # what "hidden" libraries, object files and flags are used when
9441 # linking a shared library.
9442 #
9443 # There doesn't appear to be a way to prevent this compiler from
9444 # explicitly linking system object files so we need to strip them
9445 # from the output so that they don't get included in the library
9446 # dependencies.
9447 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'
9448 ;;
9449 *)
9450 if test "$GXX" = yes; then
9451 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'
9452 else
9453 # FIXME: insert proper C++ library support
9454 ld_shlibs_CXX=no
9455 fi
9456 ;;
9457 esac
9458 ;;
9459 hpux10*|hpux11*)
9460 if test $with_gnu_ld = no; then
9461 case "$host_cpu" in
9462 hppa*64*)
9463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9464 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9465 hardcode_libdir_separator_CXX=:
9466 ;;
9467 ia64*)
9468 hardcode_libdir_flag_spec_CXX='-L$libdir'
9469 ;;
9470 *)
9471 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9472 hardcode_libdir_separator_CXX=:
9473 export_dynamic_flag_spec_CXX='${wl}-E'
9474 ;;
9475 esac
9476 fi
9477 case "$host_cpu" in
9478 hppa*64*)
9479 hardcode_direct_CXX=no
9480 hardcode_shlibpath_var_CXX=no
9481 ;;
9482 ia64*)
9483 hardcode_direct_CXX=no
9484 hardcode_shlibpath_var_CXX=no
9485 hardcode_minus_L_CXX=yes # Not in the search PATH,
9486 # but as the default
9487 # location of the library.
9488 ;;
9489 *)
9490 hardcode_direct_CXX=yes
9491 hardcode_minus_L_CXX=yes # Not in the search PATH,
9492 # but as the default
9493 # location of the library.
9494 ;;
9495 esac
9496
9497 case $cc_basename in
9498 CC)
9499 # FIXME: insert proper C++ library support
9500 ld_shlibs_CXX=no
9501 ;;
9502 aCC)
9503 case "$host_cpu" in
9504 hppa*64*|ia64*)
9505 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9506 ;;
9507 *)
9508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9509 ;;
9510 esac
9511 # Commands to make compiler produce verbose output that lists
9512 # what "hidden" libraries, object files and flags are used when
9513 # linking a shared library.
9514 #
9515 # There doesn't appear to be a way to prevent this compiler from
9516 # explicitly linking system object files so we need to strip them
9517 # from the output so that they don't get included in the library
9518 # dependencies.
9519 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'
9520 ;;
9521 *)
9522 if test "$GXX" = yes; then
9523 if test $with_gnu_ld = no; then
9524 case "$host_cpu" in
9525 ia64*|hppa*64*)
9526 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9527 ;;
9528 *)
9529 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'
9530 ;;
9531 esac
9532 fi
9533 else
9534 # FIXME: insert proper C++ library support
9535 ld_shlibs_CXX=no
9536 fi
9537 ;;
9538 esac
9539 ;;
9540 irix5* | irix6*)
9541 case $cc_basename in
9542 CC)
9543 # SGI C++
9544 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'
9545
9546 # Archives containing C++ object files must be created using
9547 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9548 # necessary to make sure instantiated templates are included
9549 # in the archive.
9550 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9551 ;;
9552 *)
9553 if test "$GXX" = yes; then
9554 if test "$with_gnu_ld" = no; then
9555 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9556 else
9557 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'
9558 fi
9559 fi
9560 link_all_deplibs_CXX=yes
9561 ;;
9562 esac
9563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9564 hardcode_libdir_separator_CXX=:
9565 ;;
9566 linux*)
9567 case $cc_basename in
9568 KCC)
9569 # Kuck and Associates, Inc. (KAI) C++ Compiler
9570
9571 # KCC will only create a shared library if the output file
9572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9573 # to its proper name (with version) after linking.
9574 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'
9575 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'
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9579 #
9580 # There doesn't appear to be a way to prevent this compiler from
9581 # explicitly linking system object files so we need to strip them
9582 # from the output so that they don't get included in the library
9583 # dependencies.
9584 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'
9585
9586 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9588
9589 # Archives containing C++ object files must be created using
9590 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9591 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9592 ;;
9593 icpc)
9594 # Intel C++
9595 with_gnu_ld=yes
9596 archive_cmds_need_lc_CXX=no
9597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598 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'
9599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9601 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9602 ;;
9603 cxx)
9604 # Compaq C++
9605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 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'
9607
9608 runpath_var=LD_RUN_PATH
9609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9610 hardcode_libdir_separator_CXX=:
9611
9612 # Commands to make compiler produce verbose output that lists
9613 # what "hidden" libraries, object files and flags are used when
9614 # linking a shared library.
9615 #
9616 # There doesn't appear to be a way to prevent this compiler from
9617 # explicitly linking system object files so we need to strip them
9618 # from the output so that they don't get included in the library
9619 # dependencies.
9620 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'
9621 ;;
9622 esac
9623 ;;
9624 lynxos*)
9625 # FIXME: insert proper C++ library support
9626 ld_shlibs_CXX=no
9627 ;;
9628 m88k*)
9629 # FIXME: insert proper C++ library support
9630 ld_shlibs_CXX=no
9631 ;;
9632 mvs*)
9633 case $cc_basename in
9634 cxx)
9635 # FIXME: insert proper C++ library support
9636 ld_shlibs_CXX=no
9637 ;;
9638 *)
9639 # FIXME: insert proper C++ library support
9640 ld_shlibs_CXX=no
9641 ;;
9642 esac
9643 ;;
9644 netbsd* | knetbsd*-gnu)
9645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9646 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9647 wlarc=
9648 hardcode_libdir_flag_spec_CXX='-R$libdir'
9649 hardcode_direct_CXX=yes
9650 hardcode_shlibpath_var_CXX=no
9651 fi
9652 # Workaround some broken pre-1.5 toolchains
9653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9654 ;;
9655 osf3*)
9656 case $cc_basename in
9657 KCC)
9658 # Kuck and Associates, Inc. (KAI) C++ Compiler
9659
9660 # KCC will only create a shared library if the output file
9661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9662 # to its proper name (with version) after linking.
9663 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'
9664
9665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9666 hardcode_libdir_separator_CXX=:
9667
9668 # Archives containing C++ object files must be created using
9669 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9670 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9671
9672 ;;
9673 RCC)
9674 # Rational C++ 2.4.1
9675 # FIXME: insert proper C++ library support
9676 ld_shlibs_CXX=no
9677 ;;
9678 cxx)
9679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9680 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'
9681
9682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9683 hardcode_libdir_separator_CXX=:
9684
9685 # Commands to make compiler produce verbose output that lists
9686 # what "hidden" libraries, object files and flags are used when
9687 # linking a shared library.
9688 #
9689 # There doesn't appear to be a way to prevent this compiler from
9690 # explicitly linking system object files so we need to strip them
9691 # from the output so that they don't get included in the library
9692 # dependencies.
9693 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'
9694 ;;
9695 *)
9696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9698 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'
9699
9700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9702
9703 # Commands to make compiler produce verbose output that lists
9704 # what "hidden" libraries, object files and flags are used when
9705 # linking a shared library.
9706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9707
9708 else
9709 # FIXME: insert proper C++ library support
9710 ld_shlibs_CXX=no
9711 fi
9712 ;;
9713 esac
9714 ;;
9715 osf4* | osf5*)
9716 case $cc_basename in
9717 KCC)
9718 # Kuck and Associates, Inc. (KAI) C++ Compiler
9719
9720 # KCC will only create a shared library if the output file
9721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9722 # to its proper name (with version) after linking.
9723 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'
9724
9725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9726 hardcode_libdir_separator_CXX=:
9727
9728 # Archives containing C++ object files must be created using
9729 # the KAI C++ compiler.
9730 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9731 ;;
9732 RCC)
9733 # Rational C++ 2.4.1
9734 # FIXME: insert proper C++ library support
9735 ld_shlibs_CXX=no
9736 ;;
9737 cxx)
9738 allow_undefined_flag_CXX=' -expect_unresolved \*'
9739 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'
9740 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9741 echo "-hidden">> $lib.exp~
9742 $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~
9743 $rm $lib.exp'
9744
9745 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9746 hardcode_libdir_separator_CXX=:
9747
9748 # Commands to make compiler produce verbose output that lists
9749 # what "hidden" libraries, object files and flags are used when
9750 # linking a shared library.
9751 #
9752 # There doesn't appear to be a way to prevent this compiler from
9753 # explicitly linking system object files so we need to strip them
9754 # from the output so that they don't get included in the library
9755 # dependencies.
9756 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'
9757 ;;
9758 *)
9759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9761 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'
9762
9763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9764 hardcode_libdir_separator_CXX=:
9765
9766 # Commands to make compiler produce verbose output that lists
9767 # what "hidden" libraries, object files and flags are used when
9768 # linking a shared library.
9769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9770
9771 else
9772 # FIXME: insert proper C++ library support
9773 ld_shlibs_CXX=no
9774 fi
9775 ;;
9776 esac
9777 ;;
9778 psos*)
9779 # FIXME: insert proper C++ library support
9780 ld_shlibs_CXX=no
9781 ;;
9782 sco*)
9783 archive_cmds_need_lc_CXX=no
9784 case $cc_basename in
9785 CC)
9786 # FIXME: insert proper C++ library support
9787 ld_shlibs_CXX=no
9788 ;;
9789 *)
9790 # FIXME: insert proper C++ library support
9791 ld_shlibs_CXX=no
9792 ;;
9793 esac
9794 ;;
9795 sunos4*)
9796 case $cc_basename in
9797 CC)
9798 # Sun C++ 4.x
9799 # FIXME: insert proper C++ library support
9800 ld_shlibs_CXX=no
9801 ;;
9802 lcc)
9803 # Lucid
9804 # FIXME: insert proper C++ library support
9805 ld_shlibs_CXX=no
9806 ;;
9807 *)
9808 # FIXME: insert proper C++ library support
9809 ld_shlibs_CXX=no
9810 ;;
9811 esac
9812 ;;
9813 solaris*)
9814 case $cc_basename in
9815 CC)
9816 # Sun C++ 4.2, 5.x and Centerline C++
9817 no_undefined_flag_CXX=' -zdefs'
9818 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9819 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9820 $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'
9821
9822 hardcode_libdir_flag_spec_CXX='-R$libdir'
9823 hardcode_shlibpath_var_CXX=no
9824 case $host_os in
9825 solaris2.0-5 | solaris2.0-5.*) ;;
9826 *)
9827 # The C++ compiler is used as linker so we must use $wl
9828 # flag to pass the commands to the underlying system
9829 # linker.
9830 # Supported since Solaris 2.6 (maybe 2.5.1?)
9831 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9832 ;;
9833 esac
9834 link_all_deplibs_CXX=yes
9835
9836 # Commands to make compiler produce verbose output that lists
9837 # what "hidden" libraries, object files and flags are used when
9838 # linking a shared library.
9839 #
9840 # There doesn't appear to be a way to prevent this compiler from
9841 # explicitly linking system object files so we need to strip them
9842 # from the output so that they don't get included in the library
9843 # dependencies.
9844 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'
9845
9846 # Archives containing C++ object files must be created using
9847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9848 # necessary to make sure instantiated templates are included
9849 # in the archive.
9850 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9851 ;;
9852 gcx)
9853 # Green Hills C++ Compiler
9854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9855
9856 # The C++ compiler must be used to create the archive.
9857 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9858 ;;
9859 *)
9860 # GNU C++ compiler with Solaris linker
9861 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9862 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9863 if $CC --version | grep -v '^2\.7' > /dev/null; then
9864 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9865 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9866 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9867
9868 # Commands to make compiler produce verbose output that lists
9869 # what "hidden" libraries, object files and flags are used when
9870 # linking a shared library.
9871 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9872 else
9873 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9874 # platform.
9875 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9876 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9877 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9878
9879 # Commands to make compiler produce verbose output that lists
9880 # what "hidden" libraries, object files and flags are used when
9881 # linking a shared library.
9882 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9883 fi
9884
9885 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9886 fi
9887 ;;
9888 esac
9889 ;;
9890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9891 archive_cmds_need_lc_CXX=no
9892 ;;
9893 tandem*)
9894 case $cc_basename in
9895 NCC)
9896 # NonStop-UX NCC 3.20
9897 # FIXME: insert proper C++ library support
9898 ld_shlibs_CXX=no
9899 ;;
9900 *)
9901 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no
9903 ;;
9904 esac
9905 ;;
9906 vxworks*)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 *)
9911 # FIXME: insert proper C++ library support
9912 ld_shlibs_CXX=no
9913 ;;
9914esac
9915echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9916echo "${ECHO_T}$ld_shlibs_CXX" >&6
9917test "$ld_shlibs_CXX" = no && can_build_shared=no
9918
9919GCC_CXX="$GXX"
9920LD_CXX="$LD"
9921
9922
9923cat > conftest.$ac_ext <<EOF
9924class Foo
9925{
9926public:
9927 Foo (void) { a = 0; }
9928private:
9929 int a;
9930};
9931EOF
9932
9933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; then
9938 # Parse the compiler output and extract the necessary
9939 # objects, libraries and library flags.
9940
9941 # Sentinel used to keep track of whether or not we are before
9942 # the conftest object file.
9943 pre_test_object_deps_done=no
9944
9945 # The `*' in the case matches for architectures that use `case' in
9946 # $output_verbose_cmd can trigger glob expansion during the loop
9947 # eval without this substitution.
9948 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9949
9950 for p in `eval $output_verbose_link_cmd`; do
9951 case $p in
9952
9953 -L* | -R* | -l*)
9954 # Some compilers place space between "-{L,R}" and the path.
9955 # Remove the space.
9956 if test $p = "-L" \
9957 || test $p = "-R"; then
9958 prev=$p
9959 continue
9960 else
9961 prev=
9962 fi
9963
9964 if test "$pre_test_object_deps_done" = no; then
9965 case $p in
9966 -L* | -R*)
9967 # Internal compiler library paths should come after those
9968 # provided the user. The postdeps already come after the
9969 # user supplied libs so there is no need to process them.
9970 if test -z "$compiler_lib_search_path_CXX"; then
9971 compiler_lib_search_path_CXX="${prev}${p}"
9972 else
9973 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9974 fi
9975 ;;
9976 # The "-l" case would never come before the object being
9977 # linked, so don't bother handling this case.
9978 esac
9979 else
9980 if test -z "$postdeps_CXX"; then
9981 postdeps_CXX="${prev}${p}"
9982 else
9983 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9984 fi
9985 fi
9986 ;;
9987
9988 *.$objext)
9989 # This assumes that the test object file only shows up
9990 # once in the compiler output.
9991 if test "$p" = "conftest.$objext"; then
9992 pre_test_object_deps_done=yes
9993 continue
9994 fi
9995
9996 if test "$pre_test_object_deps_done" = no; then
9997 if test -z "$predep_objects_CXX"; then
9998 predep_objects_CXX="$p"
9999 else
10000 predep_objects_CXX="$predep_objects_CXX $p"
10001 fi
10002 else
10003 if test -z "$postdep_objects_CXX"; then
10004 postdep_objects_CXX="$p"
10005 else
10006 postdep_objects_CXX="$postdep_objects_CXX $p"
10007 fi
10008 fi
10009 ;;
10010
10011 *) ;; # Ignore the rest.
10012
10013 esac
10014 done
10015
10016 # Clean up.
10017 rm -f a.out a.exe
10018else
10019 echo "libtool.m4: error: problem compiling CXX test program"
10020fi
10021
10022$rm -f confest.$objext
10023
10024case " $postdeps_CXX " in
10025*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10026esac
10027
10028lt_prog_compiler_wl_CXX=
10029lt_prog_compiler_pic_CXX=
10030lt_prog_compiler_static_CXX=
10031
10032echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10033echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10034
10035 # C++ specific cases for pic, static, wl, etc.
10036 if test "$GXX" = yes; then
10037 lt_prog_compiler_wl_CXX='-Wl,'
10038 lt_prog_compiler_static_CXX='-static'
10039
10040 case $host_os in
10041 aix*)
10042 # All AIX code is PIC.
10043 if test "$host_cpu" = ia64; then
10044 # AIX 5 now supports IA64 processor
10045 lt_prog_compiler_static_CXX='-Bstatic'
10046 fi
10047 ;;
10048 amigaos*)
10049 # FIXME: we need at least 68020 code to build shared libraries, but
10050 # adding the `-m68020' flag to GCC prevents building anything better,
10051 # like `-m68040'.
10052 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10053 ;;
10054 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10055 # PIC is the default for these OSes.
10056 ;;
10057 mingw* | os2* | pw32*)
10058 # This hack is so that the source file can tell whether it is being
10059 # built for inclusion in a dll (and should export symbols for example).
10060 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10061 ;;
10062 darwin* | rhapsody*)
10063 # PIC is the default on this platform
10064 # Common symbols not allowed in MH_DYLIB files
10065 lt_prog_compiler_pic_CXX='-fno-common'
10066 ;;
10067 *djgpp*)
10068 # DJGPP does not support shared libraries at all
10069 lt_prog_compiler_pic_CXX=
10070 ;;
10071 sysv4*MP*)
10072 if test -d /usr/nec; then
10073 lt_prog_compiler_pic_CXX=-Kconform_pic
10074 fi
10075 ;;
10076 hpux*)
10077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10078 # not for PA HP-UX.
10079 case "$host_cpu" in
10080 hppa*64*|ia64*)
10081 ;;
10082 *)
10083 lt_prog_compiler_pic_CXX='-fPIC'
10084 ;;
10085 esac
10086 ;;
10087 *)
10088 lt_prog_compiler_pic_CXX='-fPIC'
10089 ;;
10090 esac
10091 else
10092 case $host_os in
10093 aix4* | aix5*)
10094 # All AIX code is PIC.
10095 if test "$host_cpu" = ia64; then
10096 # AIX 5 now supports IA64 processor
10097 lt_prog_compiler_static_CXX='-Bstatic'
10098 else
10099 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10100 fi
10101 ;;
10102 chorus*)
10103 case $cc_basename in
10104 cxch68)
10105 # Green Hills C++ Compiler
10106 # _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"
10107 ;;
10108 esac
10109 ;;
10110 dgux*)
10111 case $cc_basename in
10112 ec++)
10113 lt_prog_compiler_pic_CXX='-KPIC'
10114 ;;
10115 ghcx)
10116 # Green Hills C++ Compiler
10117 lt_prog_compiler_pic_CXX='-pic'
10118 ;;
10119 *)
10120 ;;
10121 esac
10122 ;;
10123 freebsd* | kfreebsd*-gnu)
10124 # FreeBSD uses GNU C++
10125 ;;
10126 hpux9* | hpux10* | hpux11*)
10127 case $cc_basename in
10128 CC)
10129 lt_prog_compiler_wl_CXX='-Wl,'
10130 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10131 if test "$host_cpu" != ia64; then
10132 lt_prog_compiler_pic_CXX='+Z'
10133 fi
10134 ;;
10135 aCC)
10136 lt_prog_compiler_wl_CXX='-Wl,'
10137 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10138 case "$host_cpu" in
10139 hppa*64*|ia64*)
10140 # +Z the default
10141 ;;
10142 *)
10143 lt_prog_compiler_pic_CXX='+Z'
10144 ;;
10145 esac
10146 ;;
10147 *)
10148 ;;
10149 esac
10150 ;;
10151 irix5* | irix6* | nonstopux*)
10152 case $cc_basename in
10153 CC)
10154 lt_prog_compiler_wl_CXX='-Wl,'
10155 lt_prog_compiler_static_CXX='-non_shared'
10156 # CC pic flag -KPIC is the default.
10157 ;;
10158 *)
10159 ;;
10160 esac
10161 ;;
10162 linux*)
10163 case $cc_basename in
10164 KCC)
10165 # KAI C++ Compiler
10166 lt_prog_compiler_wl_CXX='--backend -Wl,'
10167 lt_prog_compiler_pic_CXX='-fPIC'
10168 ;;
10169 icpc)
10170 # Intel C++
10171 lt_prog_compiler_wl_CXX='-Wl,'
10172 lt_prog_compiler_pic_CXX='-KPIC'
10173 lt_prog_compiler_static_CXX='-static'
10174 ;;
10175 cxx)
10176 # Compaq C++
10177 # Make sure the PIC flag is empty. It appears that all Alpha
10178 # Linux and Compaq Tru64 Unix objects are PIC.
10179 lt_prog_compiler_pic_CXX=
10180 lt_prog_compiler_static_CXX='-non_shared'
10181 ;;
10182 *)
10183 ;;
10184 esac
10185 ;;
10186 lynxos*)
10187 ;;
10188 m88k*)
10189 ;;
10190 mvs*)
10191 case $cc_basename in
10192 cxx)
10193 lt_prog_compiler_pic_CXX='-W c,exportall'
10194 ;;
10195 *)
10196 ;;
10197 esac
10198 ;;
10199 netbsd* | knetbsd*-gnu)
10200 ;;
10201 osf3* | osf4* | osf5*)
10202 case $cc_basename in
10203 KCC)
10204 lt_prog_compiler_wl_CXX='--backend -Wl,'
10205 ;;
10206 RCC)
10207 # Rational C++ 2.4.1
10208 lt_prog_compiler_pic_CXX='-pic'
10209 ;;
10210 cxx)
10211 # Digital/Compaq C++
10212 lt_prog_compiler_wl_CXX='-Wl,'
10213 # Make sure the PIC flag is empty. It appears that all Alpha
10214 # Linux and Compaq Tru64 Unix objects are PIC.
10215 lt_prog_compiler_pic_CXX=
10216 lt_prog_compiler_static_CXX='-non_shared'
10217 ;;
10218 *)
10219 ;;
10220 esac
10221 ;;
10222 psos*)
10223 ;;
10224 sco*)
10225 case $cc_basename in
10226 CC)
10227 lt_prog_compiler_pic_CXX='-fPIC'
10228 ;;
10229 *)
10230 ;;
10231 esac
10232 ;;
10233 solaris*)
10234 case $cc_basename in
10235 CC)
10236 # Sun C++ 4.2, 5.x and Centerline C++
10237 lt_prog_compiler_pic_CXX='-KPIC'
10238 lt_prog_compiler_static_CXX='-Bstatic'
10239 lt_prog_compiler_wl_CXX='-Qoption ld '
10240 ;;
10241 gcx)
10242 # Green Hills C++ Compiler
10243 lt_prog_compiler_pic_CXX='-PIC'
10244 ;;
10245 *)
10246 ;;
10247 esac
10248 ;;
10249 sunos4*)
10250 case $cc_basename in
10251 CC)
10252 # Sun C++ 4.x
10253 lt_prog_compiler_pic_CXX='-pic'
10254 lt_prog_compiler_static_CXX='-Bstatic'
10255 ;;
10256 lcc)
10257 # Lucid
10258 lt_prog_compiler_pic_CXX='-pic'
10259 ;;
10260 *)
10261 ;;
10262 esac
10263 ;;
10264 tandem*)
10265 case $cc_basename in
10266 NCC)
10267 # NonStop-UX NCC 3.20
10268 lt_prog_compiler_pic_CXX='-KPIC'
10269 ;;
10270 *)
10271 ;;
10272 esac
10273 ;;
10274 unixware*)
10275 ;;
10276 vxworks*)
10277 ;;
10278 *)
10279 lt_prog_compiler_can_build_shared_CXX=no
10280 ;;
10281 esac
10282 fi
10283
10284echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10285echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10286
10287#
10288# Check to make sure the PIC flag actually works.
10289#
10290if test -n "$lt_prog_compiler_pic_CXX"; then
10291
10292echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10293echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10294if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296else
10297 lt_prog_compiler_pic_works_CXX=no
10298 ac_outfile=conftest.$ac_objext
10299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10300 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10301 # Insert the option either (1) after the last *FLAGS variable, or
10302 # (2) before a word containing "conftest.", or (3) at the end.
10303 # Note that $ac_compile itself does not contain backslashes and begins
10304 # with a dollar sign (not a hyphen), so the echo should work correctly.
10305 # The option is referenced via a variable to avoid confusing sed.
10306 lt_compile=`echo "$ac_compile" | $SED \
10307 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10309 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000010310 (eval echo "\"\$as_me:10310: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010311 (eval "$lt_compile" 2>conftest.err)
10312 ac_status=$?
10313 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +000010314 echo "$as_me:10314: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010315 if (exit $ac_status) && test -s "$ac_outfile"; then
10316 # The compiler can only warn and ignore the option if not recognized
10317 # So say no if there are warnings
10318 if test ! -s conftest.err; then
10319 lt_prog_compiler_pic_works_CXX=yes
10320 fi
10321 fi
10322 $rm conftest*
10323
10324fi
10325echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10326echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10327
10328if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10329 case $lt_prog_compiler_pic_CXX in
10330 "" | " "*) ;;
10331 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10332 esac
10333else
10334 lt_prog_compiler_pic_CXX=
10335 lt_prog_compiler_can_build_shared_CXX=no
10336fi
10337
10338fi
10339case "$host_os" in
10340 # For platforms which do not support PIC, -DPIC is meaningless:
10341 *djgpp*)
10342 lt_prog_compiler_pic_CXX=
10343 ;;
10344 *)
10345 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10346 ;;
10347esac
10348
10349echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10350echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10351if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354 lt_cv_prog_compiler_c_o_CXX=no
10355 $rm -r conftest 2>/dev/null
10356 mkdir conftest
10357 cd conftest
10358 mkdir out
10359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10360
10361 lt_compiler_flag="-o out/conftest2.$ac_objext"
10362 # Insert the option either (1) after the last *FLAGS variable, or
10363 # (2) before a word containing "conftest.", or (3) at the end.
10364 # Note that $ac_compile itself does not contain backslashes and begins
10365 # with a dollar sign (not a hyphen), so the echo should work correctly.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000010370 (eval echo "\"\$as_me:10370: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010371 (eval "$lt_compile" 2>out/conftest.err)
10372 ac_status=$?
10373 cat out/conftest.err >&5
drh91636d52005-11-24 23:14:00 +000010374 echo "$as_me:10374: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10376 then
10377 # The compiler can only warn and ignore the option if not recognized
10378 # So say no if there are warnings
10379 if test ! -s out/conftest.err; then
10380 lt_cv_prog_compiler_c_o_CXX=yes
10381 fi
10382 fi
10383 chmod u+w .
10384 $rm conftest*
10385 # SGI C++ compiler will create directory out/ii_files/ for
10386 # template instantiation
10387 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10388 $rm out/* && rmdir out
10389 cd ..
10390 rmdir conftest
10391 $rm conftest*
10392
10393fi
10394echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10395echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10396
10397
10398hard_links="nottested"
10399if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10400 # do not overwrite the value of need_locks provided by the user
10401 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10402echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10403 hard_links=yes
10404 $rm conftest*
10405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10406 touch conftest.a
10407 ln conftest.a conftest.b 2>&5 || hard_links=no
10408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10409 echo "$as_me:$LINENO: result: $hard_links" >&5
10410echo "${ECHO_T}$hard_links" >&6
10411 if test "$hard_links" = no; then
10412 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10413echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10414 need_locks=warn
10415 fi
10416else
10417 need_locks=no
10418fi
10419
10420echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10421echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10422
10423 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10424 case $host_os in
10425 aix4* | aix5*)
10426 # If we're using GNU nm, then we don't want the "-C" option.
10427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10428 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10429 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'
10430 else
10431 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'
10432 fi
10433 ;;
10434 pw32*)
10435 export_symbols_cmds_CXX="$ltdll_cmds"
10436 ;;
10437 cygwin* | mingw*)
10438 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10439 ;;
10440 *)
10441 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10442 ;;
10443 esac
10444
10445echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10446echo "${ECHO_T}$ld_shlibs_CXX" >&6
10447test "$ld_shlibs_CXX" = no && can_build_shared=no
10448
10449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10452fi
10453
10454#
10455# Do we need to explicitly link libc?
10456#
10457case "x$archive_cmds_need_lc_CXX" in
10458x|xyes)
10459 # Assume -lc should be added
10460 archive_cmds_need_lc_CXX=yes
10461
10462 if test "$enable_shared" = yes && test "$GCC" = yes; then
10463 case $archive_cmds_CXX in
10464 *'~'*)
10465 # FIXME: we may have to deal with multi-command sequences.
10466 ;;
10467 '$CC '*)
10468 # Test whether the compiler implicitly links with -lc since on some
10469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10470 # to ld, don't add -lc before -lgcc.
10471 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10472echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10473 $rm conftest*
10474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10475
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } 2>conftest.err; then
10481 soname=conftest
10482 lib=conftest
10483 libobjs=conftest.$ac_objext
10484 deplibs=
10485 wl=$lt_prog_compiler_wl_CXX
10486 compiler_flags=-v
10487 linker_flags=-v
10488 verstring=
10489 output_objdir=.
10490 libname=conftest
10491 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10492 allow_undefined_flag_CXX=
10493 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10494 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }
10498 then
10499 archive_cmds_need_lc_CXX=no
10500 else
10501 archive_cmds_need_lc_CXX=yes
10502 fi
10503 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10504 else
10505 cat conftest.err 1>&5
10506 fi
10507 $rm conftest*
10508 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10509echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10510 ;;
10511 esac
10512 fi
10513 ;;
10514esac
10515
10516echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10517echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10518library_names_spec=
10519libname_spec='lib$name'
10520soname_spec=
10521shrext=".so"
10522postinstall_cmds=
10523postuninstall_cmds=
10524finish_cmds=
10525finish_eval=
10526shlibpath_var=
10527shlibpath_overrides_runpath=unknown
10528version_type=none
10529dynamic_linker="$host_os ld.so"
10530sys_lib_dlsearch_path_spec="/lib /usr/lib"
10531if test "$GCC" = yes; then
10532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10533 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10534 # if the path contains ";" then we assume it to be the separator
10535 # otherwise default to the standard path separator (i.e. ":") - it is
10536 # assumed that no part of a normal pathname contains ";" but that should
10537 # okay in the real world where ";" in dirpaths is itself problematic.
10538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10539 else
10540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10541 fi
10542else
10543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10544fi
10545need_lib_prefix=unknown
10546hardcode_into_libs=no
10547
10548# when you set need_version to no, make sure it does not cause -set_version
10549# flags to be left without arguments
10550need_version=unknown
10551
10552case $host_os in
10553aix3*)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10556 shlibpath_var=LIBPATH
10557
10558 # AIX 3 has no versioning support, so we append a major version to the name.
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 ;;
10561
10562aix4* | aix5*)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 hardcode_into_libs=yes
10567 if test "$host_cpu" = ia64; then
10568 # AIX 5 supports IA64
10569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 else
10572 # With GCC up to 2.95.x, collect2 would create an import file
10573 # for dependence libraries. The import file would start with
10574 # the line `#! .'. This would cause the generated library to
10575 # depend on `.', always an invalid library. This was fixed in
10576 # development snapshots of GCC prior to 3.0.
10577 case $host_os in
10578 aix4 | aix4.[01] | aix4.[01].*)
10579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10580 echo ' yes '
10581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10582 :
10583 else
10584 can_build_shared=no
10585 fi
10586 ;;
10587 esac
10588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10589 # soname into executable. Probably we can add versioning support to
10590 # collect2, so additional links can be useful in future.
10591 if test "$aix_use_runtimelinking" = yes; then
10592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10593 # instead of lib<name>.a to let people know that these are not
10594 # typical AIX shared libraries.
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 else
10597 # We preserve .a as extension for shared libraries through AIX4.2
10598 # and later when we are not doing run time linking.
10599 library_names_spec='${libname}${release}.a $libname.a'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 fi
10602 shlibpath_var=LIBPATH
10603 fi
10604 ;;
10605
10606amigaos*)
10607 library_names_spec='$libname.ixlibrary $libname.a'
10608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609 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'
10610 ;;
10611
10612beos*)
10613 library_names_spec='${libname}${shared_ext}'
10614 dynamic_linker="$host_os ld.so"
10615 shlibpath_var=LIBRARY_PATH
10616 ;;
10617
10618bsdi4*)
10619 version_type=linux
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10627 # the default ld.so.conf also contains /usr/contrib/lib and
10628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10629 # libtool to hard-code these into programs
10630 ;;
10631
10632cygwin* | mingw* | pw32*)
10633 version_type=windows
10634 shrext=".dll"
10635 need_version=no
10636 need_lib_prefix=no
10637
10638 case $GCC,$host_os in
10639 yes,cygwin* | yes,mingw* | yes,pw32*)
10640 library_names_spec='$libname.dll.a'
10641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10642 postinstall_cmds='base_file=`basename \${file}`~
10643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10644 dldir=$destdir/`dirname \$dlpath`~
10645 test -d \$dldir || mkdir -p \$dldir~
10646 $install_prog $dir/$dlname \$dldir/$dlname'
10647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10648 dlpath=$dir/\$dldll~
10649 $rm \$dlpath'
10650 shlibpath_overrides_runpath=yes
10651
10652 case $host_os in
10653 cygwin*)
10654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10657 ;;
10658 mingw*)
10659 # MinGW DLLs use traditional 'lib' prefix
10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10662 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10663 # It is most probably a Windows format PATH printed by
10664 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10665 # path with ; separators, and with drive letters. We can handle the
10666 # drive letters (cygwin fileutils understands them), so leave them,
10667 # especially as we might pass files found there to a mingw objdump,
10668 # which wouldn't understand a cygwinified path. Ahh.
10669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10670 else
10671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10672 fi
10673 ;;
10674 pw32*)
10675 # pw32 DLLs use 'pw' prefix rather than 'lib'
10676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10677 ;;
10678 esac
10679 ;;
10680
10681 *)
10682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10683 ;;
10684 esac
10685 dynamic_linker='Win32 ld.exe'
10686 # FIXME: first we should search . and the directory the executable is in
10687 shlibpath_var=PATH
10688 ;;
10689
10690darwin* | rhapsody*)
10691 dynamic_linker="$host_os dyld"
10692 version_type=darwin
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10696 soname_spec='${libname}${release}${major}$shared_ext'
10697 shlibpath_overrides_runpath=yes
10698 shlibpath_var=DYLD_LIBRARY_PATH
10699 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10700 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10701 if test "$GCC" = yes; then
10702 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"`
10703 else
10704 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10705 fi
10706 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10707 ;;
10708
10709dgux*)
10710 version_type=linux
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 ;;
10717
10718freebsd1*)
10719 dynamic_linker=no
10720 ;;
10721
10722kfreebsd*-gnu)
10723 version_type=linux
10724 need_lib_prefix=no
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=no
10730 hardcode_into_libs=yes
10731 dynamic_linker='GNU ld.so'
10732 ;;
10733
10734freebsd*)
10735 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10736 version_type=freebsd-$objformat
10737 case $version_type in
10738 freebsd-elf*)
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10740 need_version=no
10741 need_lib_prefix=no
10742 ;;
10743 freebsd-*)
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10745 need_version=yes
10746 ;;
10747 esac
10748 shlibpath_var=LD_LIBRARY_PATH
10749 case $host_os in
10750 freebsd2*)
10751 shlibpath_overrides_runpath=yes
10752 ;;
10753 freebsd3.01* | freebsdelf3.01*)
10754 shlibpath_overrides_runpath=yes
10755 hardcode_into_libs=yes
10756 ;;
10757 *) # from 3.2 on
10758 shlibpath_overrides_runpath=no
10759 hardcode_into_libs=yes
10760 ;;
10761 esac
10762 ;;
10763
10764gnu*)
10765 version_type=linux
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 hardcode_into_libs=yes
10772 ;;
10773
10774hpux9* | hpux10* | hpux11*)
10775 # Give a soname corresponding to the major version so that dld.sl refuses to
10776 # link against other versions.
10777 version_type=sunos
10778 need_lib_prefix=no
10779 need_version=no
10780 case "$host_cpu" in
10781 ia64*)
10782 shrext='.so'
10783 hardcode_into_libs=yes
10784 dynamic_linker="$host_os dld.so"
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 if test "X$HPUX_IA64_MODE" = X32; then
10790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10791 else
10792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10793 fi
10794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10795 ;;
10796 hppa*64*)
10797 shrext='.sl'
10798 hardcode_into_libs=yes
10799 dynamic_linker="$host_os dld.sl"
10800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10806 ;;
10807 *)
10808 shrext='.sl'
10809 dynamic_linker="$host_os dld.sl"
10810 shlibpath_var=SHLIB_PATH
10811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 ;;
10815 esac
10816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10817 postinstall_cmds='chmod 555 $lib'
10818 ;;
10819
10820irix5* | irix6* | nonstopux*)
10821 case $host_os in
10822 nonstopux*) version_type=nonstopux ;;
10823 *)
10824 if test "$lt_cv_prog_gnu_ld" = yes; then
10825 version_type=linux
10826 else
10827 version_type=irix
10828 fi ;;
10829 esac
10830 need_lib_prefix=no
10831 need_version=no
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10834 case $host_os in
10835 irix5* | nonstopux*)
10836 libsuff= shlibsuff=
10837 ;;
10838 *)
10839 case $LD in # libtool.m4 will add one of these switches to LD
10840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10841 libsuff= shlibsuff= libmagic=32-bit;;
10842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10843 libsuff=32 shlibsuff=N32 libmagic=N32;;
10844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10846 *) libsuff= shlibsuff= libmagic=never-match;;
10847 esac
10848 ;;
10849 esac
10850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10851 shlibpath_overrides_runpath=no
10852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10854 hardcode_into_libs=yes
10855 ;;
10856
10857# No shared lib support for Linux oldld, aout, or coff.
10858linux*oldld* | linux*aout* | linux*coff*)
10859 dynamic_linker=no
10860 ;;
10861
10862# This must be Linux ELF.
10863linux*)
10864 version_type=linux
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=no
10872 # This implies no fast_install, which is unacceptable.
10873 # Some rework will be needed to allow for fast_install
10874 # before this can be enabled.
10875 hardcode_into_libs=yes
10876
10877 # Append ld.so.conf contents to the search path
10878 if test -f /etc/ld.so.conf; then
10879 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10880 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10881 fi
10882
10883 # We used to test for /lib/ld.so.1 and disable shared libraries on
10884 # powerpc, because MkLinux only supported shared libraries with the
10885 # GNU dynamic linker. Since this was broken with cross compilers,
10886 # most powerpc-linux boxes support dynamic linking these days and
10887 # people can always --disable-shared, the test was removed, and we
10888 # assume the GNU/Linux dynamic linker is in use.
10889 dynamic_linker='GNU/Linux ld.so'
10890 ;;
10891
10892knetbsd*-gnu)
10893 version_type=linux
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=no
10900 hardcode_into_libs=yes
10901 dynamic_linker='GNU ld.so'
10902 ;;
10903
10904netbsd*)
10905 version_type=sunos
10906 need_lib_prefix=no
10907 need_version=no
10908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10911 dynamic_linker='NetBSD (a.out) ld.so'
10912 else
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 dynamic_linker='NetBSD ld.elf_so'
10916 fi
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 hardcode_into_libs=yes
10920 ;;
10921
10922newsos6)
10923 version_type=linux
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10927 ;;
10928
10929nto-qnx*)
10930 version_type=linux
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=yes
10937 ;;
10938
10939openbsd*)
10940 version_type=sunos
10941 need_lib_prefix=no
10942 need_version=yes
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10947 case $host_os in
10948 openbsd2.[89] | openbsd2.[89].*)
10949 shlibpath_overrides_runpath=no
10950 ;;
10951 *)
10952 shlibpath_overrides_runpath=yes
10953 ;;
10954 esac
10955 else
10956 shlibpath_overrides_runpath=yes
10957 fi
10958 ;;
10959
10960os2*)
10961 libname_spec='$name'
10962 shrext=".dll"
10963 need_lib_prefix=no
10964 library_names_spec='$libname${shared_ext} $libname.a'
10965 dynamic_linker='OS/2 ld.exe'
10966 shlibpath_var=LIBPATH
10967 ;;
10968
10969osf3* | osf4* | osf5*)
10970 version_type=osf
10971 need_lib_prefix=no
10972 need_version=no
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10978 ;;
10979
10980sco3.2v5*)
10981 version_type=osf
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 ;;
10986
10987solaris*)
10988 version_type=linux
10989 need_lib_prefix=no
10990 need_version=no
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
10995 hardcode_into_libs=yes
10996 # ldd complains unless libraries are executable
10997 postinstall_cmds='chmod +x $lib'
10998 ;;
10999
11000sunos4*)
11001 version_type=sunos
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 if test "$with_gnu_ld" = yes; then
11007 need_lib_prefix=no
11008 fi
11009 need_version=yes
11010 ;;
11011
11012sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11013 version_type=linux
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 case $host_vendor in
11018 sni)
11019 shlibpath_overrides_runpath=no
11020 need_lib_prefix=no
11021 export_dynamic_flag_spec='${wl}-Blargedynsym'
11022 runpath_var=LD_RUN_PATH
11023 ;;
11024 siemens)
11025 need_lib_prefix=no
11026 ;;
11027 motorola)
11028 need_lib_prefix=no
11029 need_version=no
11030 shlibpath_overrides_runpath=no
11031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11032 ;;
11033 esac
11034 ;;
11035
11036sysv4*MP*)
11037 if test -d /usr/nec ;then
11038 version_type=linux
11039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11040 soname_spec='$libname${shared_ext}.$major'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 fi
11043 ;;
11044
11045uts4*)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 ;;
11051
11052*)
11053 dynamic_linker=no
11054 ;;
11055esac
11056echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11057echo "${ECHO_T}$dynamic_linker" >&6
11058test "$dynamic_linker" = no && can_build_shared=no
11059
11060echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11061echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11062hardcode_action_CXX=
11063if test -n "$hardcode_libdir_flag_spec_CXX" || \
11064 test -n "$runpath_var CXX" || \
11065 test "X$hardcode_automatic_CXX"="Xyes" ; then
11066
11067 # We can hardcode non-existant directories.
11068 if test "$hardcode_direct_CXX" != no &&
11069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11070 # have to relink, otherwise we might link with an installed library
11071 # when we should be linking with a yet-to-be-installed one
11072 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11073 test "$hardcode_minus_L_CXX" != no; then
11074 # Linking always hardcodes the temporary library directory.
11075 hardcode_action_CXX=relink
11076 else
11077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11078 hardcode_action_CXX=immediate
11079 fi
11080else
11081 # We cannot hardcode anything, or else we can only hardcode existing
11082 # directories.
11083 hardcode_action_CXX=unsupported
11084fi
11085echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11086echo "${ECHO_T}$hardcode_action_CXX" >&6
11087
11088if test "$hardcode_action_CXX" = relink; then
11089 # Fast installation is not supported
11090 enable_fast_install=no
11091elif test "$shlibpath_overrides_runpath" = yes ||
11092 test "$enable_shared" = no; then
11093 # Fast installation is not necessary
11094 enable_fast_install=needless
11095fi
11096
11097striplib=
11098old_striplib=
11099echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11100echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11101if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11102 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11103 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11104 echo "$as_me:$LINENO: result: yes" >&5
11105echo "${ECHO_T}yes" >&6
11106else
11107# FIXME - insert some real tests, host_os isn't really good enough
11108 case $host_os in
11109 darwin*)
11110 if test -n "$STRIP" ; then
11111 striplib="$STRIP -x"
11112 echo "$as_me:$LINENO: result: yes" >&5
11113echo "${ECHO_T}yes" >&6
11114 else
11115 echo "$as_me:$LINENO: result: no" >&5
11116echo "${ECHO_T}no" >&6
11117fi
11118 ;;
11119 *)
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
11122 ;;
11123 esac
11124fi
11125
11126if test "x$enable_dlopen" != xyes; then
11127 enable_dlopen=unknown
11128 enable_dlopen_self=unknown
11129 enable_dlopen_self_static=unknown
11130else
11131 lt_cv_dlopen=no
11132 lt_cv_dlopen_libs=
11133
11134 case $host_os in
11135 beos*)
11136 lt_cv_dlopen="load_add_on"
11137 lt_cv_dlopen_libs=
11138 lt_cv_dlopen_self=yes
11139 ;;
11140
11141 mingw* | pw32*)
11142 lt_cv_dlopen="LoadLibrary"
11143 lt_cv_dlopen_libs=
11144 ;;
11145
11146 cygwin*)
11147 lt_cv_dlopen="dlopen"
11148 lt_cv_dlopen_libs=
11149 ;;
11150
11151 darwin*)
11152 # if libdl is installed we need to link against it
11153 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11154echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11155if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157else
11158 ac_check_lib_save_LIBS=$LIBS
11159LIBS="-ldl $LIBS"
11160cat >conftest.$ac_ext <<_ACEOF
11161/* confdefs.h. */
11162_ACEOF
11163cat confdefs.h >>conftest.$ac_ext
11164cat >>conftest.$ac_ext <<_ACEOF
11165/* end confdefs.h. */
11166
11167/* Override any gcc2 internal prototype to avoid an error. */
11168#ifdef __cplusplus
11169extern "C"
11170#endif
11171/* We use char because int might match the return type of a gcc2
11172 builtin and then its argument prototype would still apply. */
11173char dlopen ();
11174int
11175main ()
11176{
11177dlopen ();
11178 ;
11179 return 0;
11180}
11181_ACEOF
11182rm -f conftest.$ac_objext conftest$ac_exeext
11183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11184 (eval $ac_link) 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011191 { ac_try='test -z "$ac_cxx_werror_flag"
11192 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_lib_dl_dlopen=yes
11205else
11206 echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209ac_cv_lib_dl_dlopen=no
11210fi
11211rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213LIBS=$ac_check_lib_save_LIBS
11214fi
11215echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11217if test $ac_cv_lib_dl_dlopen = yes; then
11218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11219else
11220
11221 lt_cv_dlopen="dyld"
11222 lt_cv_dlopen_libs=
11223 lt_cv_dlopen_self=yes
11224
11225fi
11226
11227 ;;
11228
11229 *)
11230 echo "$as_me:$LINENO: checking for shl_load" >&5
11231echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11232if test "${ac_cv_func_shl_load+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11243#define shl_load innocuous_shl_load
11244
11245/* System header to define __stub macros and hopefully few prototypes,
11246 which can conflict with char shl_load (); below.
11247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11248 <limits.h> exists even on freestanding compilers. */
11249
11250#ifdef __STDC__
11251# include <limits.h>
11252#else
11253# include <assert.h>
11254#endif
11255
11256#undef shl_load
11257
11258/* Override any gcc2 internal prototype to avoid an error. */
11259#ifdef __cplusplus
11260extern "C"
11261{
11262#endif
11263/* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11265char shl_load ();
11266/* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269#if defined (__stub_shl_load) || defined (__stub___shl_load)
11270choke me
11271#else
11272char (*f) () = shl_load;
11273#endif
11274#ifdef __cplusplus
11275}
11276#endif
11277
11278int
11279main ()
11280{
11281return f != shl_load;
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext conftest$ac_exeext
11287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011295 { ac_try='test -z "$ac_cxx_werror_flag"
11296 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_cv_func_shl_load=yes
11309else
11310 echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313ac_cv_func_shl_load=no
11314fi
11315rm -f conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317fi
11318echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11319echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11320if test $ac_cv_func_shl_load = yes; then
11321 lt_cv_dlopen="shl_load"
11322else
11323 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11324echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11325if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 ac_check_lib_save_LIBS=$LIBS
11329LIBS="-ldld $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336
11337/* Override any gcc2 internal prototype to avoid an error. */
11338#ifdef __cplusplus
11339extern "C"
11340#endif
11341/* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11343char shl_load ();
11344int
11345main ()
11346{
11347shl_load ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354 (eval $ac_link) 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011361 { ac_try='test -z "$ac_cxx_werror_flag"
11362 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } &&
11368 { ac_try='test -s conftest$ac_exeext'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_lib_dld_shl_load=yes
11375else
11376 echo "$as_me: failed program was:" >&5
11377sed 's/^/| /' conftest.$ac_ext >&5
11378
11379ac_cv_lib_dld_shl_load=no
11380fi
11381rm -f conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383LIBS=$ac_check_lib_save_LIBS
11384fi
11385echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11386echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11387if test $ac_cv_lib_dld_shl_load = yes; then
11388 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11389else
11390 echo "$as_me:$LINENO: checking for dlopen" >&5
11391echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11392if test "${ac_cv_func_dlopen+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403#define dlopen innocuous_dlopen
11404
11405/* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char dlopen (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11409
11410#ifdef __STDC__
11411# include <limits.h>
11412#else
11413# include <assert.h>
11414#endif
11415
11416#undef dlopen
11417
11418/* Override any gcc2 internal prototype to avoid an error. */
11419#ifdef __cplusplus
11420extern "C"
11421{
11422#endif
11423/* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11425char dlopen ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined (__stub_dlopen) || defined (__stub___dlopen)
11430choke me
11431#else
11432char (*f) () = dlopen;
11433#endif
11434#ifdef __cplusplus
11435}
11436#endif
11437
11438int
11439main ()
11440{
11441return f != dlopen;
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446rm -f conftest.$ac_objext conftest$ac_exeext
11447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011455 { ac_try='test -z "$ac_cxx_werror_flag"
11456 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest$ac_exeext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_func_dlopen=yes
11469else
11470 echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
11472
11473ac_cv_func_dlopen=no
11474fi
11475rm -f conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477fi
11478echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11479echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11480if test $ac_cv_func_dlopen = yes; then
11481 lt_cv_dlopen="dlopen"
11482else
11483 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11484echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11485if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 ac_check_lib_save_LIBS=$LIBS
11489LIBS="-ldl $LIBS"
11490cat >conftest.$ac_ext <<_ACEOF
11491/* confdefs.h. */
11492_ACEOF
11493cat confdefs.h >>conftest.$ac_ext
11494cat >>conftest.$ac_ext <<_ACEOF
11495/* end confdefs.h. */
11496
11497/* Override any gcc2 internal prototype to avoid an error. */
11498#ifdef __cplusplus
11499extern "C"
11500#endif
11501/* We use char because int might match the return type of a gcc2
11502 builtin and then its argument prototype would still apply. */
11503char dlopen ();
11504int
11505main ()
11506{
11507dlopen ();
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext conftest$ac_exeext
11513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011521 { ac_try='test -z "$ac_cxx_werror_flag"
11522 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_lib_dl_dlopen=yes
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539ac_cv_lib_dl_dlopen=no
11540fi
11541rm -f conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543LIBS=$ac_check_lib_save_LIBS
11544fi
11545echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11546echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11547if test $ac_cv_lib_dl_dlopen = yes; then
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549else
11550 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11551echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11552if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 ac_check_lib_save_LIBS=$LIBS
11556LIBS="-lsvld $LIBS"
11557cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563
11564/* Override any gcc2 internal prototype to avoid an error. */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568/* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11570char dlopen ();
11571int
11572main ()
11573{
11574dlopen ();
11575 ;
11576 return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext conftest$ac_exeext
11580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011588 { ac_try='test -z "$ac_cxx_werror_flag"
11589 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest$ac_exeext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_lib_svld_dlopen=yes
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606ac_cv_lib_svld_dlopen=no
11607fi
11608rm -f conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610LIBS=$ac_check_lib_save_LIBS
11611fi
11612echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11613echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11614if test $ac_cv_lib_svld_dlopen = yes; then
11615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11616else
11617 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11618echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11619if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 ac_check_lib_save_LIBS=$LIBS
11623LIBS="-ldld $LIBS"
11624cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
11630
11631/* Override any gcc2 internal prototype to avoid an error. */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635/* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637char dld_link ();
11638int
11639main ()
11640{
11641dld_link ();
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011655 { ac_try='test -z "$ac_cxx_werror_flag"
11656 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_dld_dld_link=yes
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673ac_cv_lib_dld_dld_link=no
11674fi
11675rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677LIBS=$ac_check_lib_save_LIBS
11678fi
11679echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11680echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11681if test $ac_cv_lib_dld_dld_link = yes; then
11682 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11683fi
11684
11685
11686fi
11687
11688
11689fi
11690
11691
11692fi
11693
11694
11695fi
11696
11697
11698fi
11699
11700 ;;
11701 esac
11702
11703 if test "x$lt_cv_dlopen" != xno; then
11704 enable_dlopen=yes
11705 else
11706 enable_dlopen=no
11707 fi
11708
11709 case $lt_cv_dlopen in
11710 dlopen)
11711 save_CPPFLAGS="$CPPFLAGS"
11712 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11713
11714 save_LDFLAGS="$LDFLAGS"
11715 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11716
11717 save_LIBS="$LIBS"
11718 LIBS="$lt_cv_dlopen_libs $LIBS"
11719
11720 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11721echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11722if test "${lt_cv_dlopen_self+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724else
11725 if test "$cross_compiling" = yes; then :
11726 lt_cv_dlopen_self=cross
11727else
11728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11729 lt_status=$lt_dlunknown
11730 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +000011731#line 11731 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011732#include "confdefs.h"
11733
11734#if HAVE_DLFCN_H
11735#include <dlfcn.h>
11736#endif
11737
11738#include <stdio.h>
11739
11740#ifdef RTLD_GLOBAL
11741# define LT_DLGLOBAL RTLD_GLOBAL
11742#else
11743# ifdef DL_GLOBAL
11744# define LT_DLGLOBAL DL_GLOBAL
11745# else
11746# define LT_DLGLOBAL 0
11747# endif
11748#endif
11749
11750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11751 find out it does not work in some platform. */
11752#ifndef LT_DLLAZY_OR_NOW
11753# ifdef RTLD_LAZY
11754# define LT_DLLAZY_OR_NOW RTLD_LAZY
11755# else
11756# ifdef DL_LAZY
11757# define LT_DLLAZY_OR_NOW DL_LAZY
11758# else
11759# ifdef RTLD_NOW
11760# define LT_DLLAZY_OR_NOW RTLD_NOW
11761# else
11762# ifdef DL_NOW
11763# define LT_DLLAZY_OR_NOW DL_NOW
11764# else
11765# define LT_DLLAZY_OR_NOW 0
11766# endif
11767# endif
11768# endif
11769# endif
11770#endif
11771
11772#ifdef __cplusplus
11773extern "C" void exit (int);
11774#endif
11775
11776void fnord() { int i=42;}
11777int main ()
11778{
11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11780 int status = $lt_dlunknown;
11781
11782 if (self)
11783 {
11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11786 /* dlclose (self); */
11787 }
11788
11789 exit (status);
11790}
11791EOF
11792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11793 (eval $ac_link) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11797 (./conftest; exit; ) 2>/dev/null
11798 lt_status=$?
11799 case x$lt_status in
11800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11803 esac
11804 else :
11805 # compilation failed
11806 lt_cv_dlopen_self=no
11807 fi
11808fi
11809rm -fr conftest*
11810
11811
11812fi
11813echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11814echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11815
11816 if test "x$lt_cv_dlopen_self" = xyes; then
11817 LDFLAGS="$LDFLAGS $link_static_flag"
11818 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11819echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11820if test "${lt_cv_dlopen_self_static+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
11823 if test "$cross_compiling" = yes; then :
11824 lt_cv_dlopen_self_static=cross
11825else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +000011829#line 11829 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011830#include "confdefs.h"
11831
11832#if HAVE_DLFCN_H
11833#include <dlfcn.h>
11834#endif
11835
11836#include <stdio.h>
11837
11838#ifdef RTLD_GLOBAL
11839# define LT_DLGLOBAL RTLD_GLOBAL
11840#else
11841# ifdef DL_GLOBAL
11842# define LT_DLGLOBAL DL_GLOBAL
11843# else
11844# define LT_DLGLOBAL 0
11845# endif
11846#endif
11847
11848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850#ifndef LT_DLLAZY_OR_NOW
11851# ifdef RTLD_LAZY
11852# define LT_DLLAZY_OR_NOW RTLD_LAZY
11853# else
11854# ifdef DL_LAZY
11855# define LT_DLLAZY_OR_NOW DL_LAZY
11856# else
11857# ifdef RTLD_NOW
11858# define LT_DLLAZY_OR_NOW RTLD_NOW
11859# else
11860# ifdef DL_NOW
11861# define LT_DLLAZY_OR_NOW DL_NOW
11862# else
11863# define LT_DLLAZY_OR_NOW 0
11864# endif
11865# endif
11866# endif
11867# endif
11868#endif
11869
11870#ifdef __cplusplus
11871extern "C" void exit (int);
11872#endif
11873
11874void fnord() { int i=42;}
11875int main ()
11876{
11877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11878 int status = $lt_dlunknown;
11879
11880 if (self)
11881 {
11882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 /* dlclose (self); */
11885 }
11886
11887 exit (status);
11888}
11889EOF
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self_static=no
11905 fi
11906fi
11907rm -fr conftest*
11908
11909
11910fi
11911echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11912echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11913 fi
11914
11915 CPPFLAGS="$save_CPPFLAGS"
11916 LDFLAGS="$save_LDFLAGS"
11917 LIBS="$save_LIBS"
11918 ;;
11919 esac
11920
11921 case $lt_cv_dlopen_self in
11922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923 *) enable_dlopen_self=unknown ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self_static in
11927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928 *) enable_dlopen_self_static=unknown ;;
11929 esac
11930fi
11931
11932
11933# The else clause should only fire when bootstrapping the
11934# libtool distribution, otherwise you forgot to ship ltmain.sh
11935# with your package, and you will get complaints that there are
11936# no rules to generate ltmain.sh.
11937if test -f "$ltmain"; then
11938 # See if we are running on zsh, and set the options which allow our commands through
11939 # without removal of \ escapes.
11940 if test -n "${ZSH_VERSION+set}" ; then
11941 setopt NO_GLOB_SUBST
11942 fi
11943 # Now quote all the things that may contain metacharacters while being
11944 # careful not to overquote the AC_SUBSTed values. We take copies of the
11945 # variables and quote the copies for generation of the libtool script.
11946 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11947 SED SHELL STRIP \
11948 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11949 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11950 deplibs_check_method reload_flag reload_cmds need_locks \
11951 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11952 lt_cv_sys_global_symbol_to_c_name_address \
11953 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11954 old_postinstall_cmds old_postuninstall_cmds \
11955 compiler_CXX \
11956 CC_CXX \
11957 LD_CXX \
11958 lt_prog_compiler_wl_CXX \
11959 lt_prog_compiler_pic_CXX \
11960 lt_prog_compiler_static_CXX \
11961 lt_prog_compiler_no_builtin_flag_CXX \
11962 export_dynamic_flag_spec_CXX \
11963 thread_safe_flag_spec_CXX \
11964 whole_archive_flag_spec_CXX \
11965 enable_shared_with_static_runtimes_CXX \
11966 old_archive_cmds_CXX \
11967 old_archive_from_new_cmds_CXX \
11968 predep_objects_CXX \
11969 postdep_objects_CXX \
11970 predeps_CXX \
11971 postdeps_CXX \
11972 compiler_lib_search_path_CXX \
11973 archive_cmds_CXX \
11974 archive_expsym_cmds_CXX \
11975 postinstall_cmds_CXX \
11976 postuninstall_cmds_CXX \
11977 old_archive_from_expsyms_cmds_CXX \
11978 allow_undefined_flag_CXX \
11979 no_undefined_flag_CXX \
11980 export_symbols_cmds_CXX \
11981 hardcode_libdir_flag_spec_CXX \
11982 hardcode_libdir_flag_spec_ld_CXX \
11983 hardcode_libdir_separator_CXX \
11984 hardcode_automatic_CXX \
11985 module_cmds_CXX \
11986 module_expsym_cmds_CXX \
11987 lt_cv_prog_compiler_c_o_CXX \
11988 exclude_expsyms_CXX \
11989 include_expsyms_CXX; do
11990
11991 case $var in
11992 old_archive_cmds_CXX | \
11993 old_archive_from_new_cmds_CXX | \
11994 archive_cmds_CXX | \
11995 archive_expsym_cmds_CXX | \
11996 module_cmds_CXX | \
11997 module_expsym_cmds_CXX | \
11998 old_archive_from_expsyms_cmds_CXX | \
11999 export_symbols_cmds_CXX | \
12000 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12001 postinstall_cmds | postuninstall_cmds | \
12002 old_postinstall_cmds | old_postuninstall_cmds | \
12003 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12004 # Double-quote double-evaled strings.
12005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12006 ;;
12007 *)
12008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12009 ;;
12010 esac
12011 done
12012
12013 case $lt_echo in
12014 *'\$0 --fallback-echo"')
12015 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12016 ;;
12017 esac
12018
12019cfgfile="$ofile"
12020
12021 cat <<__EOF__ >> "$cfgfile"
12022# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12023
12024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12025
12026# Shell to use when invoking shell scripts.
12027SHELL=$lt_SHELL
12028
12029# Whether or not to build shared libraries.
12030build_libtool_libs=$enable_shared
12031
12032# Whether or not to build static libraries.
12033build_old_libs=$enable_static
12034
12035# Whether or not to add -lc for building shared libraries.
12036build_libtool_need_lc=$archive_cmds_need_lc_CXX
12037
12038# Whether or not to disallow shared libs when runtime libs are static
12039allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12040
12041# Whether or not to optimize for fast installation.
12042fast_install=$enable_fast_install
12043
12044# The host system.
12045host_alias=$host_alias
12046host=$host
12047
12048# An echo program that does not interpret backslashes.
12049echo=$lt_echo
12050
12051# The archiver.
12052AR=$lt_AR
12053AR_FLAGS=$lt_AR_FLAGS
12054
12055# A C compiler.
12056LTCC=$lt_LTCC
12057
12058# A language-specific compiler.
12059CC=$lt_compiler_CXX
12060
12061# Is the compiler the GNU C compiler?
12062with_gcc=$GCC_CXX
12063
12064# An ERE matcher.
12065EGREP=$lt_EGREP
12066
12067# The linker used to build libraries.
12068LD=$lt_LD_CXX
12069
12070# Whether we need hard or soft links.
12071LN_S=$lt_LN_S
12072
12073# A BSD-compatible nm program.
12074NM=$lt_NM
12075
12076# A symbol stripping program
12077STRIP=$lt_STRIP
12078
12079# Used to examine libraries when file_magic_cmd begins "file"
12080MAGIC_CMD=$MAGIC_CMD
12081
12082# Used on cygwin: DLL creation program.
12083DLLTOOL="$DLLTOOL"
12084
12085# Used on cygwin: object dumper.
12086OBJDUMP="$OBJDUMP"
12087
12088# Used on cygwin: assembler.
12089AS="$AS"
12090
12091# The name of the directory that contains temporary libtool files.
12092objdir=$objdir
12093
12094# How to create reloadable object files.
12095reload_flag=$lt_reload_flag
12096reload_cmds=$lt_reload_cmds
12097
12098# How to pass a linker flag through the compiler.
12099wl=$lt_lt_prog_compiler_wl_CXX
12100
12101# Object file suffix (normally "o").
12102objext="$ac_objext"
12103
12104# Old archive suffix (normally "a").
12105libext="$libext"
12106
12107# Shared library suffix (normally ".so").
12108shrext='$shrext'
12109
12110# Executable file suffix (normally "").
12111exeext="$exeext"
12112
12113# Additional compiler flags for building library objects.
12114pic_flag=$lt_lt_prog_compiler_pic_CXX
12115pic_mode=$pic_mode
12116
12117# What is the maximum length of a command?
12118max_cmd_len=$lt_cv_sys_max_cmd_len
12119
12120# Does compiler simultaneously support -c and -o options?
12121compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12122
12123# Must we lock files when doing compilation ?
12124need_locks=$lt_need_locks
12125
12126# Do we need the lib prefix for modules?
12127need_lib_prefix=$need_lib_prefix
12128
12129# Do we need a version for libraries?
12130need_version=$need_version
12131
12132# Whether dlopen is supported.
12133dlopen_support=$enable_dlopen
12134
12135# Whether dlopen of programs is supported.
12136dlopen_self=$enable_dlopen_self
12137
12138# Whether dlopen of statically linked programs is supported.
12139dlopen_self_static=$enable_dlopen_self_static
12140
12141# Compiler flag to prevent dynamic linking.
12142link_static_flag=$lt_lt_prog_compiler_static_CXX
12143
12144# Compiler flag to turn off builtin functions.
12145no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12146
12147# Compiler flag to allow reflexive dlopens.
12148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12149
12150# Compiler flag to generate shared objects directly from archives.
12151whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12152
12153# Compiler flag to generate thread-safe objects.
12154thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12155
12156# Library versioning type.
12157version_type=$version_type
12158
12159# Format of library name prefix.
12160libname_spec=$lt_libname_spec
12161
12162# List of archive names. First name is the real one, the rest are links.
12163# The last name is the one that the linker finds with -lNAME.
12164library_names_spec=$lt_library_names_spec
12165
12166# The coded name of the library, if different from the real name.
12167soname_spec=$lt_soname_spec
12168
12169# Commands used to build and install an old-style archive.
12170RANLIB=$lt_RANLIB
12171old_archive_cmds=$lt_old_archive_cmds_CXX
12172old_postinstall_cmds=$lt_old_postinstall_cmds
12173old_postuninstall_cmds=$lt_old_postuninstall_cmds
12174
12175# Create an old-style archive from a shared archive.
12176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12177
12178# Create a temporary old-style archive to link instead of a shared archive.
12179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12180
12181# Commands used to build and install a shared archive.
12182archive_cmds=$lt_archive_cmds_CXX
12183archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12184postinstall_cmds=$lt_postinstall_cmds
12185postuninstall_cmds=$lt_postuninstall_cmds
12186
12187# Commands used to build a loadable module (assumed same as above if empty)
12188module_cmds=$lt_module_cmds_CXX
12189module_expsym_cmds=$lt_module_expsym_cmds_CXX
12190
12191# Commands to strip libraries.
12192old_striplib=$lt_old_striplib
12193striplib=$lt_striplib
12194
12195# Dependencies to place before the objects being linked to create a
12196# shared library.
12197predep_objects=$lt_predep_objects_CXX
12198
12199# Dependencies to place after the objects being linked to create a
12200# shared library.
12201postdep_objects=$lt_postdep_objects_CXX
12202
12203# Dependencies to place before the objects being linked to create a
12204# shared library.
12205predeps=$lt_predeps_CXX
12206
12207# Dependencies to place after the objects being linked to create a
12208# shared library.
12209postdeps=$lt_postdeps_CXX
12210
12211# The library search path used internally by the compiler when linking
12212# a shared library.
12213compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12214
12215# Method to check whether dependent libraries are shared objects.
12216deplibs_check_method=$lt_deplibs_check_method
12217
12218# Command to use when deplibs_check_method == file_magic.
12219file_magic_cmd=$lt_file_magic_cmd
12220
12221# Flag that allows shared libraries with undefined symbols to be built.
12222allow_undefined_flag=$lt_allow_undefined_flag_CXX
12223
12224# Flag that forces no undefined symbols.
12225no_undefined_flag=$lt_no_undefined_flag_CXX
12226
12227# Commands used to finish a libtool library installation in a directory.
12228finish_cmds=$lt_finish_cmds
12229
12230# Same as above, but a single script fragment to be evaled but not shown.
12231finish_eval=$lt_finish_eval
12232
12233# Take the output of nm and produce a listing of raw symbols and C names.
12234global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12235
12236# Transform the output of nm in a proper C declaration
12237global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12238
12239# Transform the output of nm in a C name address pair
12240global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12241
12242# This is the shared library runtime path variable.
12243runpath_var=$runpath_var
12244
12245# This is the shared library path variable.
12246shlibpath_var=$shlibpath_var
12247
12248# Is shlibpath searched before the hard-coded library search path?
12249shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12250
12251# How to hardcode a shared library path into an executable.
12252hardcode_action=$hardcode_action_CXX
12253
12254# Whether we should hardcode library paths into libraries.
12255hardcode_into_libs=$hardcode_into_libs
12256
12257# Flag to hardcode \$libdir into a binary during linking.
12258# This must work even if \$libdir does not exist.
12259hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12260
12261# If ld is used when linking, flag to hardcode \$libdir into
12262# a binary during linking. This must work even if \$libdir does
12263# not exist.
12264hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12265
12266# Whether we need a single -rpath flag with a separated argument.
12267hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12268
12269# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12270# resulting binary.
12271hardcode_direct=$hardcode_direct_CXX
12272
12273# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12274# resulting binary.
12275hardcode_minus_L=$hardcode_minus_L_CXX
12276
12277# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12278# the resulting binary.
12279hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12280
12281# Set to yes if building a shared library automatically hardcodes DIR into the library
12282# and all subsequent libraries and executables linked against it.
12283hardcode_automatic=$hardcode_automatic_CXX
12284
12285# Variables whose values should be saved in libtool wrapper scripts and
12286# restored at relink time.
12287variables_saved_for_relink="$variables_saved_for_relink"
12288
12289# Whether libtool must link a program against all its dependency libraries.
12290link_all_deplibs=$link_all_deplibs_CXX
12291
12292# Compile-time system search path for libraries
12293sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12294
12295# Run-time system search path for libraries
12296sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12297
12298# Fix the shell variable \$srcfile for the compiler.
12299fix_srcfile_path="$fix_srcfile_path_CXX"
12300
12301# Set to yes if exported symbols are required.
12302always_export_symbols=$always_export_symbols_CXX
12303
12304# The commands to list exported symbols.
12305export_symbols_cmds=$lt_export_symbols_cmds_CXX
12306
12307# The commands to extract the exported symbol list from a shared archive.
12308extract_expsyms_cmds=$lt_extract_expsyms_cmds
12309
12310# Symbols that should not be listed in the preloaded symbols.
12311exclude_expsyms=$lt_exclude_expsyms_CXX
12312
12313# Symbols that must always be exported.
12314include_expsyms=$lt_include_expsyms_CXX
12315
12316# ### END LIBTOOL TAG CONFIG: $tagname
12317
12318__EOF__
12319
12320
12321else
12322 # If there is no Makefile yet, we rely on a make rule to execute
12323 # `config.status --recheck' to rerun these tests and create the
12324 # libtool script then.
12325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12326 if test -f "$ltmain_in"; then
12327 test -f Makefile && make "$ltmain"
12328 fi
12329fi
12330
12331
12332ac_ext=c
12333ac_cpp='$CPP $CPPFLAGS'
12334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337
12338CC=$lt_save_CC
12339LDCXX=$LD
12340LD=$lt_save_LD
12341GCC=$lt_save_GCC
12342with_gnu_ldcxx=$with_gnu_ld
12343with_gnu_ld=$lt_save_with_gnu_ld
12344lt_cv_path_LDCXX=$lt_cv_path_LD
12345lt_cv_path_LD=$lt_save_path_LD
12346lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12347lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12348
12349 else
12350 tagname=""
12351 fi
12352 ;;
12353
12354 F77)
12355 if test -n "$F77" && test "X$F77" != "Xno"; then
12356
12357ac_ext=f
12358ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12359ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12361
12362
12363archive_cmds_need_lc_F77=no
12364allow_undefined_flag_F77=
12365always_export_symbols_F77=no
12366archive_expsym_cmds_F77=
12367export_dynamic_flag_spec_F77=
12368hardcode_direct_F77=no
12369hardcode_libdir_flag_spec_F77=
12370hardcode_libdir_flag_spec_ld_F77=
12371hardcode_libdir_separator_F77=
12372hardcode_minus_L_F77=no
12373hardcode_automatic_F77=no
12374module_cmds_F77=
12375module_expsym_cmds_F77=
12376link_all_deplibs_F77=unknown
12377old_archive_cmds_F77=$old_archive_cmds
12378no_undefined_flag_F77=
12379whole_archive_flag_spec_F77=
12380enable_shared_with_static_runtimes_F77=no
12381
12382# Source file extension for f77 test sources.
12383ac_ext=f
12384
12385# Object file extension for compiled f77 test sources.
12386objext=o
12387objext_F77=$objext
12388
12389# Code to be used in simple compile tests
12390lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12391
12392# Code to be used in simple link tests
12393lt_simple_link_test_code=" program t\n end\n"
12394
12395# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12396
12397# If no C compiler was specified, use CC.
12398LTCC=${LTCC-"$CC"}
12399
12400# Allow CC to be a program name with arguments.
12401compiler=$CC
12402
12403
12404# Allow CC to be a program name with arguments.
12405lt_save_CC="$CC"
12406CC=${F77-"f77"}
12407compiler=$CC
12408compiler_F77=$CC
12409cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12410
12411echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12412echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12413echo "$as_me:$LINENO: result: $can_build_shared" >&5
12414echo "${ECHO_T}$can_build_shared" >&6
12415
12416echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12417echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12418test "$can_build_shared" = "no" && enable_shared=no
12419
12420# On AIX, shared libraries and static libraries use the same namespace, and
12421# are all built from PIC.
12422case "$host_os" in
12423aix3*)
12424 test "$enable_shared" = yes && enable_static=no
12425 if test -n "$RANLIB"; then
12426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12427 postinstall_cmds='$RANLIB $lib'
12428 fi
12429 ;;
12430aix4*)
12431 test "$enable_shared" = yes && enable_static=no
12432 ;;
12433esac
12434echo "$as_me:$LINENO: result: $enable_shared" >&5
12435echo "${ECHO_T}$enable_shared" >&6
12436
12437echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12438echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12439# Make sure either enable_shared or enable_static is yes.
12440test "$enable_shared" = yes || enable_static=yes
12441echo "$as_me:$LINENO: result: $enable_static" >&5
12442echo "${ECHO_T}$enable_static" >&6
12443
12444test "$ld_shlibs_F77" = no && can_build_shared=no
12445
12446GCC_F77="$G77"
12447LD_F77="$LD"
12448
12449lt_prog_compiler_wl_F77=
12450lt_prog_compiler_pic_F77=
12451lt_prog_compiler_static_F77=
12452
12453echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12454echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12455
12456 if test "$GCC" = yes; then
12457 lt_prog_compiler_wl_F77='-Wl,'
12458 lt_prog_compiler_static_F77='-static'
12459
12460 case $host_os in
12461 aix*)
12462 # All AIX code is PIC.
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_F77='-Bstatic'
12466 fi
12467 ;;
12468
12469 amigaos*)
12470 # FIXME: we need at least 68020 code to build shared libraries, but
12471 # adding the `-m68020' flag to GCC prevents building anything better,
12472 # like `-m68040'.
12473 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12474 ;;
12475
12476 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12477 # PIC is the default for these OSes.
12478 ;;
12479
12480 mingw* | pw32* | os2*)
12481 # This hack is so that the source file can tell whether it is being
12482 # built for inclusion in a dll (and should export symbols for example).
12483 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12484 ;;
12485
12486 darwin* | rhapsody*)
12487 # PIC is the default on this platform
12488 # Common symbols not allowed in MH_DYLIB files
12489 lt_prog_compiler_pic_F77='-fno-common'
12490 ;;
12491
12492 msdosdjgpp*)
12493 # Just because we use GCC doesn't mean we suddenly get shared libraries
12494 # on systems that don't support them.
12495 lt_prog_compiler_can_build_shared_F77=no
12496 enable_shared=no
12497 ;;
12498
12499 sysv4*MP*)
12500 if test -d /usr/nec; then
12501 lt_prog_compiler_pic_F77=-Kconform_pic
12502 fi
12503 ;;
12504
12505 hpux*)
12506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12507 # not for PA HP-UX.
12508 case "$host_cpu" in
12509 hppa*64*|ia64*)
12510 # +Z the default
12511 ;;
12512 *)
12513 lt_prog_compiler_pic_F77='-fPIC'
12514 ;;
12515 esac
12516 ;;
12517
12518 *)
12519 lt_prog_compiler_pic_F77='-fPIC'
12520 ;;
12521 esac
12522 else
12523 # PORTME Check for flag to pass linker flags through the system compiler.
12524 case $host_os in
12525 aix*)
12526 lt_prog_compiler_wl_F77='-Wl,'
12527 if test "$host_cpu" = ia64; then
12528 # AIX 5 now supports IA64 processor
12529 lt_prog_compiler_static_F77='-Bstatic'
12530 else
12531 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12532 fi
12533 ;;
12534
12535 mingw* | pw32* | os2*)
12536 # This hack is so that the source file can tell whether it is being
12537 # built for inclusion in a dll (and should export symbols for example).
12538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12539 ;;
12540
12541 hpux9* | hpux10* | hpux11*)
12542 lt_prog_compiler_wl_F77='-Wl,'
12543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12544 # not for PA HP-UX.
12545 case "$host_cpu" in
12546 hppa*64*|ia64*)
12547 # +Z the default
12548 ;;
12549 *)
12550 lt_prog_compiler_pic_F77='+Z'
12551 ;;
12552 esac
12553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12554 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12555 ;;
12556
12557 irix5* | irix6* | nonstopux*)
12558 lt_prog_compiler_wl_F77='-Wl,'
12559 # PIC (with -KPIC) is the default.
12560 lt_prog_compiler_static_F77='-non_shared'
12561 ;;
12562
12563 newsos6)
12564 lt_prog_compiler_pic_F77='-KPIC'
12565 lt_prog_compiler_static_F77='-Bstatic'
12566 ;;
12567
12568 linux*)
12569 case $CC in
12570 icc* | ecc*)
12571 lt_prog_compiler_wl_F77='-Wl,'
12572 lt_prog_compiler_pic_F77='-KPIC'
12573 lt_prog_compiler_static_F77='-static'
12574 ;;
12575 ccc*)
12576 lt_prog_compiler_wl_F77='-Wl,'
12577 # All Alpha code is PIC.
12578 lt_prog_compiler_static_F77='-non_shared'
12579 ;;
12580 esac
12581 ;;
12582
12583 osf3* | osf4* | osf5*)
12584 lt_prog_compiler_wl_F77='-Wl,'
12585 # All OSF/1 code is PIC.
12586 lt_prog_compiler_static_F77='-non_shared'
12587 ;;
12588
12589 sco3.2v5*)
12590 lt_prog_compiler_pic_F77='-Kpic'
12591 lt_prog_compiler_static_F77='-dn'
12592 ;;
12593
12594 solaris*)
12595 lt_prog_compiler_wl_F77='-Wl,'
12596 lt_prog_compiler_pic_F77='-KPIC'
12597 lt_prog_compiler_static_F77='-Bstatic'
12598 ;;
12599
12600 sunos4*)
12601 lt_prog_compiler_wl_F77='-Qoption ld '
12602 lt_prog_compiler_pic_F77='-PIC'
12603 lt_prog_compiler_static_F77='-Bstatic'
12604 ;;
12605
12606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12607 lt_prog_compiler_wl_F77='-Wl,'
12608 lt_prog_compiler_pic_F77='-KPIC'
12609 lt_prog_compiler_static_F77='-Bstatic'
12610 ;;
12611
12612 sysv4*MP*)
12613 if test -d /usr/nec ;then
12614 lt_prog_compiler_pic_F77='-Kconform_pic'
12615 lt_prog_compiler_static_F77='-Bstatic'
12616 fi
12617 ;;
12618
12619 uts4*)
12620 lt_prog_compiler_pic_F77='-pic'
12621 lt_prog_compiler_static_F77='-Bstatic'
12622 ;;
12623
12624 *)
12625 lt_prog_compiler_can_build_shared_F77=no
12626 ;;
12627 esac
12628 fi
12629
12630echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12631echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12632
12633#
12634# Check to make sure the PIC flag actually works.
12635#
12636if test -n "$lt_prog_compiler_pic_F77"; then
12637
12638echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12640if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 lt_prog_compiler_pic_works_F77=no
12644 ac_outfile=conftest.$ac_objext
12645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12646 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 # The option is referenced via a variable to avoid confusing sed.
12652 lt_compile=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000012656 (eval echo "\"\$as_me:12656: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012657 (eval "$lt_compile" 2>conftest.err)
12658 ac_status=$?
12659 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +000012660 echo "$as_me:12660: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012661 if (exit $ac_status) && test -s "$ac_outfile"; then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 if test ! -s conftest.err; then
12665 lt_prog_compiler_pic_works_F77=yes
12666 fi
12667 fi
12668 $rm conftest*
12669
12670fi
12671echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12672echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12673
12674if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12675 case $lt_prog_compiler_pic_F77 in
12676 "" | " "*) ;;
12677 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12678 esac
12679else
12680 lt_prog_compiler_pic_F77=
12681 lt_prog_compiler_can_build_shared_F77=no
12682fi
12683
12684fi
12685case "$host_os" in
12686 # For platforms which do not support PIC, -DPIC is meaningless:
12687 *djgpp*)
12688 lt_prog_compiler_pic_F77=
12689 ;;
12690 *)
12691 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12692 ;;
12693esac
12694
12695echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12697if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700 lt_cv_prog_compiler_c_o_F77=no
12701 $rm -r conftest 2>/dev/null
12702 mkdir conftest
12703 cd conftest
12704 mkdir out
12705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12706
12707 lt_compiler_flag="-o out/conftest2.$ac_objext"
12708 # Insert the option either (1) after the last *FLAGS variable, or
12709 # (2) before a word containing "conftest.", or (3) at the end.
12710 # Note that $ac_compile itself does not contain backslashes and begins
12711 # with a dollar sign (not a hyphen), so the echo should work correctly.
12712 lt_compile=`echo "$ac_compile" | $SED \
12713 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12715 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000012716 (eval echo "\"\$as_me:12716: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012717 (eval "$lt_compile" 2>out/conftest.err)
12718 ac_status=$?
12719 cat out/conftest.err >&5
drh91636d52005-11-24 23:14:00 +000012720 echo "$as_me:12720: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12722 then
12723 # The compiler can only warn and ignore the option if not recognized
12724 # So say no if there are warnings
12725 if test ! -s out/conftest.err; then
12726 lt_cv_prog_compiler_c_o_F77=yes
12727 fi
12728 fi
12729 chmod u+w .
12730 $rm conftest*
12731 # SGI C++ compiler will create directory out/ii_files/ for
12732 # template instantiation
12733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12734 $rm out/* && rmdir out
12735 cd ..
12736 rmdir conftest
12737 $rm conftest*
12738
12739fi
12740echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12741echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12742
12743
12744hard_links="nottested"
12745if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12746 # do not overwrite the value of need_locks provided by the user
12747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12748echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12749 hard_links=yes
12750 $rm conftest*
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 touch conftest.a
12753 ln conftest.a conftest.b 2>&5 || hard_links=no
12754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12755 echo "$as_me:$LINENO: result: $hard_links" >&5
12756echo "${ECHO_T}$hard_links" >&6
12757 if test "$hard_links" = no; then
12758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12759echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12760 need_locks=warn
12761 fi
12762else
12763 need_locks=no
12764fi
12765
12766echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12768
12769 runpath_var=
12770 allow_undefined_flag_F77=
12771 enable_shared_with_static_runtimes_F77=no
12772 archive_cmds_F77=
12773 archive_expsym_cmds_F77=
12774 old_archive_From_new_cmds_F77=
12775 old_archive_from_expsyms_cmds_F77=
12776 export_dynamic_flag_spec_F77=
12777 whole_archive_flag_spec_F77=
12778 thread_safe_flag_spec_F77=
12779 hardcode_libdir_flag_spec_F77=
12780 hardcode_libdir_flag_spec_ld_F77=
12781 hardcode_libdir_separator_F77=
12782 hardcode_direct_F77=no
12783 hardcode_minus_L_F77=no
12784 hardcode_shlibpath_var_F77=unsupported
12785 link_all_deplibs_F77=unknown
12786 hardcode_automatic_F77=no
12787 module_cmds_F77=
12788 module_expsym_cmds_F77=
12789 always_export_symbols_F77=no
12790 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12791 # include_expsyms should be a list of space-separated symbols to be *always*
12792 # included in the symbol list
12793 include_expsyms_F77=
12794 # exclude_expsyms can be an extended regexp of symbols to exclude
12795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12797 # as well as any symbol that contains `d'.
12798 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12800 # platforms (ab)use it in PIC code, but their linkers get confused if
12801 # the symbol is explicitly referenced. Since portable code cannot
12802 # rely on this symbol name, it's probably fine to never include it in
12803 # preloaded symbol tables.
12804 extract_expsyms_cmds=
12805
12806 case $host_os in
12807 cygwin* | mingw* | pw32*)
12808 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12809 # When not using gcc, we currently assume that we are using
12810 # Microsoft Visual C++.
12811 if test "$GCC" != yes; then
12812 with_gnu_ld=no
12813 fi
12814 ;;
12815 openbsd*)
12816 with_gnu_ld=no
12817 ;;
12818 esac
12819
12820 ld_shlibs_F77=yes
12821 if test "$with_gnu_ld" = yes; then
12822 # If archive_cmds runs LD, not CC, wlarc should be empty
12823 wlarc='${wl}'
12824
12825 # See if GNU ld supports shared libraries.
12826 case $host_os in
12827 aix3* | aix4* | aix5*)
12828 # On AIX/PPC, the GNU linker is very broken
12829 if test "$host_cpu" != ia64; then
12830 ld_shlibs_F77=no
12831 cat <<EOF 1>&2
12832
12833*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12834*** to be unable to reliably create shared libraries on AIX.
12835*** Therefore, libtool is disabling shared libraries support. If you
12836*** really care for shared libraries, you may want to modify your PATH
12837*** so that a non-GNU linker is found, and then restart.
12838
12839EOF
12840 fi
12841 ;;
12842
12843 amigaos*)
12844 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)'
12845 hardcode_libdir_flag_spec_F77='-L$libdir'
12846 hardcode_minus_L_F77=yes
12847
12848 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12849 # that the semantics of dynamic libraries on AmigaOS, at least up
12850 # to version 4, is to share data among multiple programs linked
12851 # with the same dynamic library. Since this doesn't match the
12852 # behavior of shared libraries on other platforms, we can't use
12853 # them.
12854 ld_shlibs_F77=no
12855 ;;
12856
12857 beos*)
12858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12859 allow_undefined_flag_F77=unsupported
12860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12861 # support --undefined. This deserves some investigation. FIXME
12862 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12863 else
12864 ld_shlibs_F77=no
12865 fi
12866 ;;
12867
12868 cygwin* | mingw* | pw32*)
12869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12870 # as there is no search path for DLLs.
12871 hardcode_libdir_flag_spec_F77='-L$libdir'
12872 allow_undefined_flag_F77=unsupported
12873 always_export_symbols_F77=no
12874 enable_shared_with_static_runtimes_F77=yes
12875 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12876
12877 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12879 # If the export-symbols file already is a .def file (1st line
12880 # is EXPORTS), use it as is; otherwise, prepend...
12881 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12882 cp $export_symbols $output_objdir/$soname.def;
12883 else
12884 echo EXPORTS > $output_objdir/$soname.def;
12885 cat $export_symbols >> $output_objdir/$soname.def;
12886 fi~
12887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888 else
12889 ld_shlibs=no
12890 fi
12891 ;;
12892
12893 netbsd* | knetbsd*-gnu)
12894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12895 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12896 wlarc=
12897 else
12898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12899 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12900 fi
12901 ;;
12902
12903 solaris* | sysv5*)
12904 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12905 ld_shlibs_F77=no
12906 cat <<EOF 1>&2
12907
12908*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12909*** create shared libraries on Solaris systems. Therefore, libtool
12910*** is disabling shared libraries support. We urge you to upgrade GNU
12911*** binutils to release 2.9.1 or newer. Another option is to modify
12912*** your PATH or compiler configuration so that the native linker is
12913*** used, and then restart.
12914
12915EOF
12916 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12917 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12919 else
12920 ld_shlibs_F77=no
12921 fi
12922 ;;
12923
12924 sunos4*)
12925 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12926 wlarc=
12927 hardcode_direct_F77=yes
12928 hardcode_shlibpath_var_F77=no
12929 ;;
12930
12931 linux*)
12932 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12933 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_cmds_F77="$tmp_archive_cmds"
12935 supports_anon_versioning=no
12936 case `$LD -v 2>/dev/null` in
12937 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12940 *\ 2.11.*) ;; # other 2.11 versions
12941 *) supports_anon_versioning=yes ;;
12942 esac
12943 if test $supports_anon_versioning = yes; then
12944 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12945cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12946$echo "local: *; };" >> $output_objdir/$libname.ver~
12947 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12948 else
12949 archive_expsym_cmds_F77="$tmp_archive_cmds"
12950 fi
12951 else
12952 ld_shlibs_F77=no
12953 fi
12954 ;;
12955
12956 *)
12957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12958 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12960 else
12961 ld_shlibs_F77=no
12962 fi
12963 ;;
12964 esac
12965
12966 if test "$ld_shlibs_F77" = yes; then
12967 runpath_var=LD_RUN_PATH
12968 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12969 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12970 # ancient GNU ld didn't support --whole-archive et. al.
12971 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12972 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973 else
12974 whole_archive_flag_spec_F77=
12975 fi
12976 fi
12977 else
12978 # PORTME fill in a description of your system's linker (not GNU ld)
12979 case $host_os in
12980 aix3*)
12981 allow_undefined_flag_F77=unsupported
12982 always_export_symbols_F77=yes
12983 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'
12984 # Note: this linker hardcodes the directories in LIBPATH if there
12985 # are no directories specified by -L.
12986 hardcode_minus_L_F77=yes
12987 if test "$GCC" = yes && test -z "$link_static_flag"; then
12988 # Neither direct hardcoding nor static linking is supported with a
12989 # broken collect2.
12990 hardcode_direct_F77=unsupported
12991 fi
12992 ;;
12993
12994 aix4* | aix5*)
12995 if test "$host_cpu" = ia64; then
12996 # On IA64, the linker does run time linking by default, so we don't
12997 # have to do anything special.
12998 aix_use_runtimelinking=no
12999 exp_sym_flag='-Bexport'
13000 no_entry_flag=""
13001 else
13002 # If we're using GNU nm, then we don't want the "-C" option.
13003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13005 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'
13006 else
13007 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'
13008 fi
13009 aix_use_runtimelinking=no
13010
13011 # Test if we are trying to use run time linking or normal
13012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13013 # need to do runtime linking.
13014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13015 for ld_flag in $LDFLAGS; do
13016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13017 aix_use_runtimelinking=yes
13018 break
13019 fi
13020 done
13021 esac
13022
13023 exp_sym_flag='-bexport'
13024 no_entry_flag='-bnoentry'
13025 fi
13026
13027 # When large executables or shared objects are built, AIX ld can
13028 # have problems creating the table of contents. If linking a library
13029 # or program results in "error TOC overflow" add -mminimal-toc to
13030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13032
13033 archive_cmds_F77=''
13034 hardcode_direct_F77=yes
13035 hardcode_libdir_separator_F77=':'
13036 link_all_deplibs_F77=yes
13037
13038 if test "$GCC" = yes; then
13039 case $host_os in aix4.012|aix4.012.*)
13040 # We only want to do this on AIX 4.2 and lower, the check
13041 # below for broken collect2 doesn't work under 4.3+
13042 collect2name=`${CC} -print-prog-name=collect2`
13043 if test -f "$collect2name" && \
13044 strings "$collect2name" | grep resolve_lib_name >/dev/null
13045 then
13046 # We have reworked collect2
13047 hardcode_direct_F77=yes
13048 else
13049 # We have old collect2
13050 hardcode_direct_F77=unsupported
13051 # It fails to find uninstalled libraries when the uninstalled
13052 # path is not listed in the libpath. Setting hardcode_minus_L
13053 # to unsupported forces relinking
13054 hardcode_minus_L_F77=yes
13055 hardcode_libdir_flag_spec_F77='-L$libdir'
13056 hardcode_libdir_separator_F77=
13057 fi
13058 esac
13059 shared_flag='-shared'
13060 else
13061 # not using gcc
13062 if test "$host_cpu" = ia64; then
13063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13064 # chokes on -Wl,-G. The following line is correct:
13065 shared_flag='-G'
13066 else
13067 if test "$aix_use_runtimelinking" = yes; then
13068 shared_flag='${wl}-G'
13069 else
13070 shared_flag='${wl}-bM:SRE'
13071 fi
13072 fi
13073 fi
13074
13075 # It seems that -bexpall does not export symbols beginning with
13076 # underscore (_), so it is better to generate a list of symbols to export.
13077 always_export_symbols_F77=yes
13078 if test "$aix_use_runtimelinking" = yes; then
13079 # Warning - without using the other runtime loading flags (-brtl),
13080 # -berok will link without error, but may produce a broken library.
13081 allow_undefined_flag_F77='-berok'
13082 # Determine the default libpath from the value encoded in an empty executable.
13083 cat >conftest.$ac_ext <<_ACEOF
13084 program main
13085
13086 end
13087_ACEOF
13088rm -f conftest.$ac_objext conftest$ac_exeext
13089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013097 { ac_try='test -z "$ac_f77_werror_flag"
13098 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest$ac_exeext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110
13111aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13112}'`
13113# Check for a 64-bit object if we didn't find anything.
13114if 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; }
13115}'`; fi
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120fi
13121rm -f conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13124
13125 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13126 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"
13127 else
13128 if test "$host_cpu" = ia64; then
13129 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13130 allow_undefined_flag_F77="-z nodefs"
13131 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"
13132 else
13133 # Determine the default libpath from the value encoded in an empty executable.
13134 cat >conftest.$ac_ext <<_ACEOF
13135 program main
13136
13137 end
13138_ACEOF
13139rm -f conftest.$ac_objext conftest$ac_exeext
13140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141 (eval $ac_link) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013148 { ac_try='test -z "$ac_f77_werror_flag"
13149 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161
13162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13163}'`
13164# Check for a 64-bit object if we didn't find anything.
13165if 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; }
13166}'`; fi
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171fi
13172rm -f conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13175
13176 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13177 # Warning - without using the other run time loading flags,
13178 # -berok will link without error, but may produce a broken library.
13179 no_undefined_flag_F77=' ${wl}-bernotok'
13180 allow_undefined_flag_F77=' ${wl}-berok'
13181 # -bexpall does not export symbols beginning with underscore (_)
13182 always_export_symbols_F77=yes
13183 # Exported symbols can be pulled into shared objects from archives
13184 whole_archive_flag_spec_F77=' '
13185 archive_cmds_need_lc_F77=yes
13186 # This is similar to how AIX traditionally builds it's shared libraries.
13187 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'
13188 fi
13189 fi
13190 ;;
13191
13192 amigaos*)
13193 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)'
13194 hardcode_libdir_flag_spec_F77='-L$libdir'
13195 hardcode_minus_L_F77=yes
13196 # see comment about different semantics on the GNU ld section
13197 ld_shlibs_F77=no
13198 ;;
13199
13200 bsdi4*)
13201 export_dynamic_flag_spec_F77=-rdynamic
13202 ;;
13203
13204 cygwin* | mingw* | pw32*)
13205 # When not using gcc, we currently assume that we are using
13206 # Microsoft Visual C++.
13207 # hardcode_libdir_flag_spec is actually meaningless, as there is
13208 # no search path for DLLs.
13209 hardcode_libdir_flag_spec_F77=' '
13210 allow_undefined_flag_F77=unsupported
13211 # Tell ltmain to make .lib files, not .a files.
13212 libext=lib
13213 # Tell ltmain to make .dll files, not .so files.
13214 shrext=".dll"
13215 # FIXME: Setting linknames here is a bad hack.
13216 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13217 # The linker will automatically build a .lib file if we build a DLL.
13218 old_archive_From_new_cmds_F77='true'
13219 # FIXME: Should let the user specify the lib program.
13220 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13221 fix_srcfile_path='`cygpath -w "$srcfile"`'
13222 enable_shared_with_static_runtimes_F77=yes
13223 ;;
13224
13225 darwin* | rhapsody*)
13226 if test "$GXX" = yes ; then
13227 archive_cmds_need_lc_F77=no
13228 case "$host_os" in
13229 rhapsody* | darwin1.[012])
13230 allow_undefined_flag_F77='-undefined suppress'
13231 ;;
13232 *) # Darwin 1.3 on
13233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13234 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13235 else
13236 case ${MACOSX_DEPLOYMENT_TARGET} in
13237 10.[012])
13238 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13239 ;;
13240 10.*)
13241 allow_undefined_flag_F77='-undefined dynamic_lookup'
13242 ;;
13243 esac
13244 fi
13245 ;;
13246 esac
13247 lt_int_apple_cc_single_mod=no
13248 output_verbose_link_cmd='echo'
13249 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13250 lt_int_apple_cc_single_mod=yes
13251 fi
13252 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13253 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13254 else
13255 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'
13256 fi
13257 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13260 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}'
13261 else
13262 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}'
13263 fi
13264 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}'
13265 hardcode_direct_F77=no
13266 hardcode_automatic_F77=yes
13267 hardcode_shlibpath_var_F77=unsupported
13268 whole_archive_flag_spec_F77='-all_load $convenience'
13269 link_all_deplibs_F77=yes
13270 else
13271 ld_shlibs_F77=no
13272 fi
13273 ;;
13274
13275 dgux*)
13276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13277 hardcode_libdir_flag_spec_F77='-L$libdir'
13278 hardcode_shlibpath_var_F77=no
13279 ;;
13280
13281 freebsd1*)
13282 ld_shlibs_F77=no
13283 ;;
13284
13285 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13286 # support. Future versions do this automatically, but an explicit c++rt0.o
13287 # does not break anything, and helps significantly (at the cost of a little
13288 # extra space).
13289 freebsd2.2*)
13290 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13291 hardcode_libdir_flag_spec_F77='-R$libdir'
13292 hardcode_direct_F77=yes
13293 hardcode_shlibpath_var_F77=no
13294 ;;
13295
13296 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13297 freebsd2*)
13298 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_direct_F77=yes
13300 hardcode_minus_L_F77=yes
13301 hardcode_shlibpath_var_F77=no
13302 ;;
13303
13304 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13305 freebsd* | kfreebsd*-gnu)
13306 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13307 hardcode_libdir_flag_spec_F77='-R$libdir'
13308 hardcode_direct_F77=yes
13309 hardcode_shlibpath_var_F77=no
13310 ;;
13311
13312 hpux9*)
13313 if test "$GCC" = yes; then
13314 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'
13315 else
13316 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'
13317 fi
13318 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13319 hardcode_libdir_separator_F77=:
13320 hardcode_direct_F77=yes
13321
13322 # hardcode_minus_L: Not really in the search PATH,
13323 # but as the default location of the library.
13324 hardcode_minus_L_F77=yes
13325 export_dynamic_flag_spec_F77='${wl}-E'
13326 ;;
13327
13328 hpux10* | hpux11*)
13329 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13330 case "$host_cpu" in
13331 hppa*64*|ia64*)
13332 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 ;;
13334 *)
13335 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13336 ;;
13337 esac
13338 else
13339 case "$host_cpu" in
13340 hppa*64*|ia64*)
13341 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13342 ;;
13343 *)
13344 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13345 ;;
13346 esac
13347 fi
13348 if test "$with_gnu_ld" = no; then
13349 case "$host_cpu" in
13350 hppa*64*)
13351 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13352 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13353 hardcode_libdir_separator_F77=:
13354 hardcode_direct_F77=no
13355 hardcode_shlibpath_var_F77=no
13356 ;;
13357 ia64*)
13358 hardcode_libdir_flag_spec_F77='-L$libdir'
13359 hardcode_direct_F77=no
13360 hardcode_shlibpath_var_F77=no
13361
13362 # hardcode_minus_L: Not really in the search PATH,
13363 # but as the default location of the library.
13364 hardcode_minus_L_F77=yes
13365 ;;
13366 *)
13367 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13368 hardcode_libdir_separator_F77=:
13369 hardcode_direct_F77=yes
13370 export_dynamic_flag_spec_F77='${wl}-E'
13371
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L_F77=yes
13375 ;;
13376 esac
13377 fi
13378 ;;
13379
13380 irix5* | irix6* | nonstopux*)
13381 if test "$GCC" = yes; then
13382 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'
13383 else
13384 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'
13385 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13386 fi
13387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13388 hardcode_libdir_separator_F77=:
13389 link_all_deplibs_F77=yes
13390 ;;
13391
13392 netbsd* | knetbsd*-gnu)
13393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13394 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13395 else
13396 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13397 fi
13398 hardcode_libdir_flag_spec_F77='-R$libdir'
13399 hardcode_direct_F77=yes
13400 hardcode_shlibpath_var_F77=no
13401 ;;
13402
13403 newsos6)
13404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13405 hardcode_direct_F77=yes
13406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13407 hardcode_libdir_separator_F77=:
13408 hardcode_shlibpath_var_F77=no
13409 ;;
13410
13411 openbsd*)
13412 hardcode_direct_F77=yes
13413 hardcode_shlibpath_var_F77=no
13414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13415 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13417 export_dynamic_flag_spec_F77='${wl}-E'
13418 else
13419 case $host_os in
13420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13421 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13422 hardcode_libdir_flag_spec_F77='-R$libdir'
13423 ;;
13424 *)
13425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427 ;;
13428 esac
13429 fi
13430 ;;
13431
13432 os2*)
13433 hardcode_libdir_flag_spec_F77='-L$libdir'
13434 hardcode_minus_L_F77=yes
13435 allow_undefined_flag_F77=unsupported
13436 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'
13437 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13438 ;;
13439
13440 osf3*)
13441 if test "$GCC" = yes; then
13442 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13443 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'
13444 else
13445 allow_undefined_flag_F77=' -expect_unresolved \*'
13446 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'
13447 fi
13448 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13449 hardcode_libdir_separator_F77=:
13450 ;;
13451
13452 osf4* | osf5*) # as osf3* with the addition of -msym flag
13453 if test "$GCC" = yes; then
13454 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13455 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'
13456 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13457 else
13458 allow_undefined_flag_F77=' -expect_unresolved \*'
13459 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'
13460 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~
13461 $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'
13462
13463 # Both c and cxx compiler support -rpath directly
13464 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13465 fi
13466 hardcode_libdir_separator_F77=:
13467 ;;
13468
13469 sco3.2v5*)
13470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_shlibpath_var_F77=no
13472 export_dynamic_flag_spec_F77='${wl}-Bexport'
13473 runpath_var=LD_RUN_PATH
13474 hardcode_runpath_var=yes
13475 ;;
13476
13477 solaris*)
13478 no_undefined_flag_F77=' -z text'
13479 if test "$GCC" = yes; then
13480 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13482 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13483 else
13484 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13485 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13487 fi
13488 hardcode_libdir_flag_spec_F77='-R$libdir'
13489 hardcode_shlibpath_var_F77=no
13490 case $host_os in
13491 solaris2.[0-5] | solaris2.[0-5].*) ;;
13492 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13493 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13494 esac
13495 link_all_deplibs_F77=yes
13496 ;;
13497
13498 sunos4*)
13499 if test "x$host_vendor" = xsequent; then
13500 # Use $CC to link under sequent, because it throws in some extra .o
13501 # files that make .init and .fini sections work.
13502 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13503 else
13504 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13505 fi
13506 hardcode_libdir_flag_spec_F77='-L$libdir'
13507 hardcode_direct_F77=yes
13508 hardcode_minus_L_F77=yes
13509 hardcode_shlibpath_var_F77=no
13510 ;;
13511
13512 sysv4)
13513 case $host_vendor in
13514 sni)
13515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_F77=yes # is this really true???
13517 ;;
13518 siemens)
13519 ## LD is ld it makes a PLAMLIB
13520 ## CC just makes a GrossModule.
13521 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13522 reload_cmds_F77='$CC -r -o $output$reload_objs'
13523 hardcode_direct_F77=no
13524 ;;
13525 motorola)
13526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13528 ;;
13529 esac
13530 runpath_var='LD_RUN_PATH'
13531 hardcode_shlibpath_var_F77=no
13532 ;;
13533
13534 sysv4.3*)
13535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_shlibpath_var_F77=no
13537 export_dynamic_flag_spec_F77='-Bexport'
13538 ;;
13539
13540 sysv4*MP*)
13541 if test -d /usr/nec; then
13542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 hardcode_shlibpath_var_F77=no
13544 runpath_var=LD_RUN_PATH
13545 hardcode_runpath_var=yes
13546 ld_shlibs_F77=yes
13547 fi
13548 ;;
13549
13550 sysv4.2uw2*)
13551 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_direct_F77=yes
13553 hardcode_minus_L_F77=no
13554 hardcode_shlibpath_var_F77=no
13555 hardcode_runpath_var=yes
13556 runpath_var=LD_RUN_PATH
13557 ;;
13558
13559 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13560 no_undefined_flag_F77='${wl}-z ${wl}text'
13561 if test "$GCC" = yes; then
13562 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 else
13564 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13565 fi
13566 runpath_var='LD_RUN_PATH'
13567 hardcode_shlibpath_var_F77=no
13568 ;;
13569
13570 sysv5*)
13571 no_undefined_flag_F77=' -z text'
13572 # $CC -shared without GNU ld will not create a library from C++
13573 # object files and a static libstdc++, better avoid it by now
13574 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13575 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13577 hardcode_libdir_flag_spec_F77=
13578 hardcode_shlibpath_var_F77=no
13579 runpath_var='LD_RUN_PATH'
13580 ;;
13581
13582 uts4*)
13583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13584 hardcode_libdir_flag_spec_F77='-L$libdir'
13585 hardcode_shlibpath_var_F77=no
13586 ;;
13587
13588 *)
13589 ld_shlibs_F77=no
13590 ;;
13591 esac
13592 fi
13593
13594echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13595echo "${ECHO_T}$ld_shlibs_F77" >&6
13596test "$ld_shlibs_F77" = no && can_build_shared=no
13597
13598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13599if test "$GCC" = yes; then
13600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13601fi
13602
13603#
13604# Do we need to explicitly link libc?
13605#
13606case "x$archive_cmds_need_lc_F77" in
13607x|xyes)
13608 # Assume -lc should be added
13609 archive_cmds_need_lc_F77=yes
13610
13611 if test "$enable_shared" = yes && test "$GCC" = yes; then
13612 case $archive_cmds_F77 in
13613 *'~'*)
13614 # FIXME: we may have to deal with multi-command sequences.
13615 ;;
13616 '$CC '*)
13617 # Test whether the compiler implicitly links with -lc since on some
13618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13619 # to ld, don't add -lc before -lgcc.
13620 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13621echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13622 $rm conftest*
13623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13624
13625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } 2>conftest.err; then
13630 soname=conftest
13631 lib=conftest
13632 libobjs=conftest.$ac_objext
13633 deplibs=
13634 wl=$lt_prog_compiler_wl_F77
13635 compiler_flags=-v
13636 linker_flags=-v
13637 verstring=
13638 output_objdir=.
13639 libname=conftest
13640 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13641 allow_undefined_flag_F77=
13642 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13643 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }
13647 then
13648 archive_cmds_need_lc_F77=no
13649 else
13650 archive_cmds_need_lc_F77=yes
13651 fi
13652 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13653 else
13654 cat conftest.err 1>&5
13655 fi
13656 $rm conftest*
13657 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13658echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13659 ;;
13660 esac
13661 fi
13662 ;;
13663esac
13664
13665echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13666echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13667library_names_spec=
13668libname_spec='lib$name'
13669soname_spec=
13670shrext=".so"
13671postinstall_cmds=
13672postuninstall_cmds=
13673finish_cmds=
13674finish_eval=
13675shlibpath_var=
13676shlibpath_overrides_runpath=unknown
13677version_type=none
13678dynamic_linker="$host_os ld.so"
13679sys_lib_dlsearch_path_spec="/lib /usr/lib"
13680if test "$GCC" = yes; then
13681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13682 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13683 # if the path contains ";" then we assume it to be the separator
13684 # otherwise default to the standard path separator (i.e. ":") - it is
13685 # assumed that no part of a normal pathname contains ";" but that should
13686 # okay in the real world where ";" in dirpaths is itself problematic.
13687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13688 else
13689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13690 fi
13691else
13692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13693fi
13694need_lib_prefix=unknown
13695hardcode_into_libs=no
13696
13697# when you set need_version to no, make sure it does not cause -set_version
13698# flags to be left without arguments
13699need_version=unknown
13700
13701case $host_os in
13702aix3*)
13703 version_type=linux
13704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13705 shlibpath_var=LIBPATH
13706
13707 # AIX 3 has no versioning support, so we append a major version to the name.
13708 soname_spec='${libname}${release}${shared_ext}$major'
13709 ;;
13710
13711aix4* | aix5*)
13712 version_type=linux
13713 need_lib_prefix=no
13714 need_version=no
13715 hardcode_into_libs=yes
13716 if test "$host_cpu" = ia64; then
13717 # AIX 5 supports IA64
13718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 else
13721 # With GCC up to 2.95.x, collect2 would create an import file
13722 # for dependence libraries. The import file would start with
13723 # the line `#! .'. This would cause the generated library to
13724 # depend on `.', always an invalid library. This was fixed in
13725 # development snapshots of GCC prior to 3.0.
13726 case $host_os in
13727 aix4 | aix4.[01] | aix4.[01].*)
13728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13729 echo ' yes '
13730 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13731 :
13732 else
13733 can_build_shared=no
13734 fi
13735 ;;
13736 esac
13737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13738 # soname into executable. Probably we can add versioning support to
13739 # collect2, so additional links can be useful in future.
13740 if test "$aix_use_runtimelinking" = yes; then
13741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13742 # instead of lib<name>.a to let people know that these are not
13743 # typical AIX shared libraries.
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 else
13746 # We preserve .a as extension for shared libraries through AIX4.2
13747 # and later when we are not doing run time linking.
13748 library_names_spec='${libname}${release}.a $libname.a'
13749 soname_spec='${libname}${release}${shared_ext}$major'
13750 fi
13751 shlibpath_var=LIBPATH
13752 fi
13753 ;;
13754
13755amigaos*)
13756 library_names_spec='$libname.ixlibrary $libname.a'
13757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13758 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'
13759 ;;
13760
13761beos*)
13762 library_names_spec='${libname}${shared_ext}'
13763 dynamic_linker="$host_os ld.so"
13764 shlibpath_var=LIBRARY_PATH
13765 ;;
13766
13767bsdi4*)
13768 version_type=linux
13769 need_version=no
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13776 # the default ld.so.conf also contains /usr/contrib/lib and
13777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13778 # libtool to hard-code these into programs
13779 ;;
13780
13781cygwin* | mingw* | pw32*)
13782 version_type=windows
13783 shrext=".dll"
13784 need_version=no
13785 need_lib_prefix=no
13786
13787 case $GCC,$host_os in
13788 yes,cygwin* | yes,mingw* | yes,pw32*)
13789 library_names_spec='$libname.dll.a'
13790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13791 postinstall_cmds='base_file=`basename \${file}`~
13792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13793 dldir=$destdir/`dirname \$dlpath`~
13794 test -d \$dldir || mkdir -p \$dldir~
13795 $install_prog $dir/$dlname \$dldir/$dlname'
13796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13797 dlpath=$dir/\$dldll~
13798 $rm \$dlpath'
13799 shlibpath_overrides_runpath=yes
13800
13801 case $host_os in
13802 cygwin*)
13803 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13806 ;;
13807 mingw*)
13808 # MinGW DLLs use traditional 'lib' prefix
13809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13811 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13812 # It is most probably a Windows format PATH printed by
13813 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13814 # path with ; separators, and with drive letters. We can handle the
13815 # drive letters (cygwin fileutils understands them), so leave them,
13816 # especially as we might pass files found there to a mingw objdump,
13817 # which wouldn't understand a cygwinified path. Ahh.
13818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13819 else
13820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13821 fi
13822 ;;
13823 pw32*)
13824 # pw32 DLLs use 'pw' prefix rather than 'lib'
13825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13826 ;;
13827 esac
13828 ;;
13829
13830 *)
13831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13832 ;;
13833 esac
13834 dynamic_linker='Win32 ld.exe'
13835 # FIXME: first we should search . and the directory the executable is in
13836 shlibpath_var=PATH
13837 ;;
13838
13839darwin* | rhapsody*)
13840 dynamic_linker="$host_os dyld"
13841 version_type=darwin
13842 need_lib_prefix=no
13843 need_version=no
13844 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13845 soname_spec='${libname}${release}${major}$shared_ext'
13846 shlibpath_overrides_runpath=yes
13847 shlibpath_var=DYLD_LIBRARY_PATH
13848 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13849 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13850 if test "$GCC" = yes; then
13851 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"`
13852 else
13853 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13854 fi
13855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13856 ;;
13857
13858dgux*)
13859 version_type=linux
13860 need_lib_prefix=no
13861 need_version=no
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13863 soname_spec='${libname}${release}${shared_ext}$major'
13864 shlibpath_var=LD_LIBRARY_PATH
13865 ;;
13866
13867freebsd1*)
13868 dynamic_linker=no
13869 ;;
13870
13871kfreebsd*-gnu)
13872 version_type=linux
13873 need_lib_prefix=no
13874 need_version=no
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=no
13879 hardcode_into_libs=yes
13880 dynamic_linker='GNU ld.so'
13881 ;;
13882
13883freebsd*)
13884 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13885 version_type=freebsd-$objformat
13886 case $version_type in
13887 freebsd-elf*)
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13889 need_version=no
13890 need_lib_prefix=no
13891 ;;
13892 freebsd-*)
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13894 need_version=yes
13895 ;;
13896 esac
13897 shlibpath_var=LD_LIBRARY_PATH
13898 case $host_os in
13899 freebsd2*)
13900 shlibpath_overrides_runpath=yes
13901 ;;
13902 freebsd3.01* | freebsdelf3.01*)
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906 *) # from 3.2 on
13907 shlibpath_overrides_runpath=no
13908 hardcode_into_libs=yes
13909 ;;
13910 esac
13911 ;;
13912
13913gnu*)
13914 version_type=linux
13915 need_lib_prefix=no
13916 need_version=no
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 hardcode_into_libs=yes
13921 ;;
13922
13923hpux9* | hpux10* | hpux11*)
13924 # Give a soname corresponding to the major version so that dld.sl refuses to
13925 # link against other versions.
13926 version_type=sunos
13927 need_lib_prefix=no
13928 need_version=no
13929 case "$host_cpu" in
13930 ia64*)
13931 shrext='.so'
13932 hardcode_into_libs=yes
13933 dynamic_linker="$host_os dld.so"
13934 shlibpath_var=LD_LIBRARY_PATH
13935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 if test "X$HPUX_IA64_MODE" = X32; then
13939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13940 else
13941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13942 fi
13943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13944 ;;
13945 hppa*64*)
13946 shrext='.sl'
13947 hardcode_into_libs=yes
13948 dynamic_linker="$host_os dld.sl"
13949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13955 ;;
13956 *)
13957 shrext='.sl'
13958 dynamic_linker="$host_os dld.sl"
13959 shlibpath_var=SHLIB_PATH
13960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 ;;
13964 esac
13965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13966 postinstall_cmds='chmod 555 $lib'
13967 ;;
13968
13969irix5* | irix6* | nonstopux*)
13970 case $host_os in
13971 nonstopux*) version_type=nonstopux ;;
13972 *)
13973 if test "$lt_cv_prog_gnu_ld" = yes; then
13974 version_type=linux
13975 else
13976 version_type=irix
13977 fi ;;
13978 esac
13979 need_lib_prefix=no
13980 need_version=no
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13983 case $host_os in
13984 irix5* | nonstopux*)
13985 libsuff= shlibsuff=
13986 ;;
13987 *)
13988 case $LD in # libtool.m4 will add one of these switches to LD
13989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13990 libsuff= shlibsuff= libmagic=32-bit;;
13991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13992 libsuff=32 shlibsuff=N32 libmagic=N32;;
13993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13995 *) libsuff= shlibsuff= libmagic=never-match;;
13996 esac
13997 ;;
13998 esac
13999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14000 shlibpath_overrides_runpath=no
14001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14003 hardcode_into_libs=yes
14004 ;;
14005
14006# No shared lib support for Linux oldld, aout, or coff.
14007linux*oldld* | linux*aout* | linux*coff*)
14008 dynamic_linker=no
14009 ;;
14010
14011# This must be Linux ELF.
14012linux*)
14013 version_type=linux
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=no
14021 # This implies no fast_install, which is unacceptable.
14022 # Some rework will be needed to allow for fast_install
14023 # before this can be enabled.
14024 hardcode_into_libs=yes
14025
14026 # Append ld.so.conf contents to the search path
14027 if test -f /etc/ld.so.conf; then
14028 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14029 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14030 fi
14031
14032 # We used to test for /lib/ld.so.1 and disable shared libraries on
14033 # powerpc, because MkLinux only supported shared libraries with the
14034 # GNU dynamic linker. Since this was broken with cross compilers,
14035 # most powerpc-linux boxes support dynamic linking these days and
14036 # people can always --disable-shared, the test was removed, and we
14037 # assume the GNU/Linux dynamic linker is in use.
14038 dynamic_linker='GNU/Linux ld.so'
14039 ;;
14040
14041knetbsd*-gnu)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 shlibpath_var=LD_LIBRARY_PATH
14048 shlibpath_overrides_runpath=no
14049 hardcode_into_libs=yes
14050 dynamic_linker='GNU ld.so'
14051 ;;
14052
14053netbsd*)
14054 version_type=sunos
14055 need_lib_prefix=no
14056 need_version=no
14057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14060 dynamic_linker='NetBSD (a.out) ld.so'
14061 else
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 dynamic_linker='NetBSD ld.elf_so'
14065 fi
14066 shlibpath_var=LD_LIBRARY_PATH
14067 shlibpath_overrides_runpath=yes
14068 hardcode_into_libs=yes
14069 ;;
14070
14071newsos6)
14072 version_type=linux
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 ;;
14077
14078nto-qnx*)
14079 version_type=linux
14080 need_lib_prefix=no
14081 need_version=no
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 shlibpath_overrides_runpath=yes
14086 ;;
14087
14088openbsd*)
14089 version_type=sunos
14090 need_lib_prefix=no
14091 need_version=yes
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14094 shlibpath_var=LD_LIBRARY_PATH
14095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14096 case $host_os in
14097 openbsd2.[89] | openbsd2.[89].*)
14098 shlibpath_overrides_runpath=no
14099 ;;
14100 *)
14101 shlibpath_overrides_runpath=yes
14102 ;;
14103 esac
14104 else
14105 shlibpath_overrides_runpath=yes
14106 fi
14107 ;;
14108
14109os2*)
14110 libname_spec='$name'
14111 shrext=".dll"
14112 need_lib_prefix=no
14113 library_names_spec='$libname${shared_ext} $libname.a'
14114 dynamic_linker='OS/2 ld.exe'
14115 shlibpath_var=LIBPATH
14116 ;;
14117
14118osf3* | osf4* | osf5*)
14119 version_type=osf
14120 need_lib_prefix=no
14121 need_version=no
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14127 ;;
14128
14129sco3.2v5*)
14130 version_type=osf
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 ;;
14135
14136solaris*)
14137 version_type=linux
14138 need_lib_prefix=no
14139 need_version=no
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=yes
14144 hardcode_into_libs=yes
14145 # ldd complains unless libraries are executable
14146 postinstall_cmds='chmod +x $lib'
14147 ;;
14148
14149sunos4*)
14150 version_type=sunos
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14153 shlibpath_var=LD_LIBRARY_PATH
14154 shlibpath_overrides_runpath=yes
14155 if test "$with_gnu_ld" = yes; then
14156 need_lib_prefix=no
14157 fi
14158 need_version=yes
14159 ;;
14160
14161sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14162 version_type=linux
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 shlibpath_var=LD_LIBRARY_PATH
14166 case $host_vendor in
14167 sni)
14168 shlibpath_overrides_runpath=no
14169 need_lib_prefix=no
14170 export_dynamic_flag_spec='${wl}-Blargedynsym'
14171 runpath_var=LD_RUN_PATH
14172 ;;
14173 siemens)
14174 need_lib_prefix=no
14175 ;;
14176 motorola)
14177 need_lib_prefix=no
14178 need_version=no
14179 shlibpath_overrides_runpath=no
14180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14181 ;;
14182 esac
14183 ;;
14184
14185sysv4*MP*)
14186 if test -d /usr/nec ;then
14187 version_type=linux
14188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14189 soname_spec='$libname${shared_ext}.$major'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 fi
14192 ;;
14193
14194uts4*)
14195 version_type=linux
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 ;;
14200
14201*)
14202 dynamic_linker=no
14203 ;;
14204esac
14205echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14206echo "${ECHO_T}$dynamic_linker" >&6
14207test "$dynamic_linker" = no && can_build_shared=no
14208
14209echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14210echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14211hardcode_action_F77=
14212if test -n "$hardcode_libdir_flag_spec_F77" || \
14213 test -n "$runpath_var F77" || \
14214 test "X$hardcode_automatic_F77"="Xyes" ; then
14215
14216 # We can hardcode non-existant directories.
14217 if test "$hardcode_direct_F77" != no &&
14218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14219 # have to relink, otherwise we might link with an installed library
14220 # when we should be linking with a yet-to-be-installed one
14221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14222 test "$hardcode_minus_L_F77" != no; then
14223 # Linking always hardcodes the temporary library directory.
14224 hardcode_action_F77=relink
14225 else
14226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14227 hardcode_action_F77=immediate
14228 fi
14229else
14230 # We cannot hardcode anything, or else we can only hardcode existing
14231 # directories.
14232 hardcode_action_F77=unsupported
14233fi
14234echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14235echo "${ECHO_T}$hardcode_action_F77" >&6
14236
14237if test "$hardcode_action_F77" = relink; then
14238 # Fast installation is not supported
14239 enable_fast_install=no
14240elif test "$shlibpath_overrides_runpath" = yes ||
14241 test "$enable_shared" = no; then
14242 # Fast installation is not necessary
14243 enable_fast_install=needless
14244fi
14245
14246striplib=
14247old_striplib=
14248echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14249echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14250if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14253 echo "$as_me:$LINENO: result: yes" >&5
14254echo "${ECHO_T}yes" >&6
14255else
14256# FIXME - insert some real tests, host_os isn't really good enough
14257 case $host_os in
14258 darwin*)
14259 if test -n "$STRIP" ; then
14260 striplib="$STRIP -x"
14261 echo "$as_me:$LINENO: result: yes" >&5
14262echo "${ECHO_T}yes" >&6
14263 else
14264 echo "$as_me:$LINENO: result: no" >&5
14265echo "${ECHO_T}no" >&6
14266fi
14267 ;;
14268 *)
14269 echo "$as_me:$LINENO: result: no" >&5
14270echo "${ECHO_T}no" >&6
14271 ;;
14272 esac
14273fi
14274
14275
14276
14277# The else clause should only fire when bootstrapping the
14278# libtool distribution, otherwise you forgot to ship ltmain.sh
14279# with your package, and you will get complaints that there are
14280# no rules to generate ltmain.sh.
14281if test -f "$ltmain"; then
14282 # See if we are running on zsh, and set the options which allow our commands through
14283 # without removal of \ escapes.
14284 if test -n "${ZSH_VERSION+set}" ; then
14285 setopt NO_GLOB_SUBST
14286 fi
14287 # Now quote all the things that may contain metacharacters while being
14288 # careful not to overquote the AC_SUBSTed values. We take copies of the
14289 # variables and quote the copies for generation of the libtool script.
14290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14291 SED SHELL STRIP \
14292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14294 deplibs_check_method reload_flag reload_cmds need_locks \
14295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14296 lt_cv_sys_global_symbol_to_c_name_address \
14297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14298 old_postinstall_cmds old_postuninstall_cmds \
14299 compiler_F77 \
14300 CC_F77 \
14301 LD_F77 \
14302 lt_prog_compiler_wl_F77 \
14303 lt_prog_compiler_pic_F77 \
14304 lt_prog_compiler_static_F77 \
14305 lt_prog_compiler_no_builtin_flag_F77 \
14306 export_dynamic_flag_spec_F77 \
14307 thread_safe_flag_spec_F77 \
14308 whole_archive_flag_spec_F77 \
14309 enable_shared_with_static_runtimes_F77 \
14310 old_archive_cmds_F77 \
14311 old_archive_from_new_cmds_F77 \
14312 predep_objects_F77 \
14313 postdep_objects_F77 \
14314 predeps_F77 \
14315 postdeps_F77 \
14316 compiler_lib_search_path_F77 \
14317 archive_cmds_F77 \
14318 archive_expsym_cmds_F77 \
14319 postinstall_cmds_F77 \
14320 postuninstall_cmds_F77 \
14321 old_archive_from_expsyms_cmds_F77 \
14322 allow_undefined_flag_F77 \
14323 no_undefined_flag_F77 \
14324 export_symbols_cmds_F77 \
14325 hardcode_libdir_flag_spec_F77 \
14326 hardcode_libdir_flag_spec_ld_F77 \
14327 hardcode_libdir_separator_F77 \
14328 hardcode_automatic_F77 \
14329 module_cmds_F77 \
14330 module_expsym_cmds_F77 \
14331 lt_cv_prog_compiler_c_o_F77 \
14332 exclude_expsyms_F77 \
14333 include_expsyms_F77; do
14334
14335 case $var in
14336 old_archive_cmds_F77 | \
14337 old_archive_from_new_cmds_F77 | \
14338 archive_cmds_F77 | \
14339 archive_expsym_cmds_F77 | \
14340 module_cmds_F77 | \
14341 module_expsym_cmds_F77 | \
14342 old_archive_from_expsyms_cmds_F77 | \
14343 export_symbols_cmds_F77 | \
14344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14345 postinstall_cmds | postuninstall_cmds | \
14346 old_postinstall_cmds | old_postuninstall_cmds | \
14347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14348 # Double-quote double-evaled strings.
14349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14350 ;;
14351 *)
14352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14353 ;;
14354 esac
14355 done
14356
14357 case $lt_echo in
14358 *'\$0 --fallback-echo"')
14359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14360 ;;
14361 esac
14362
14363cfgfile="$ofile"
14364
14365 cat <<__EOF__ >> "$cfgfile"
14366# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14367
14368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14369
14370# Shell to use when invoking shell scripts.
14371SHELL=$lt_SHELL
14372
14373# Whether or not to build shared libraries.
14374build_libtool_libs=$enable_shared
14375
14376# Whether or not to build static libraries.
14377build_old_libs=$enable_static
14378
14379# Whether or not to add -lc for building shared libraries.
14380build_libtool_need_lc=$archive_cmds_need_lc_F77
14381
14382# Whether or not to disallow shared libs when runtime libs are static
14383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14384
14385# Whether or not to optimize for fast installation.
14386fast_install=$enable_fast_install
14387
14388# The host system.
14389host_alias=$host_alias
14390host=$host
14391
14392# An echo program that does not interpret backslashes.
14393echo=$lt_echo
14394
14395# The archiver.
14396AR=$lt_AR
14397AR_FLAGS=$lt_AR_FLAGS
14398
14399# A C compiler.
14400LTCC=$lt_LTCC
14401
14402# A language-specific compiler.
14403CC=$lt_compiler_F77
14404
14405# Is the compiler the GNU C compiler?
14406with_gcc=$GCC_F77
14407
14408# An ERE matcher.
14409EGREP=$lt_EGREP
14410
14411# The linker used to build libraries.
14412LD=$lt_LD_F77
14413
14414# Whether we need hard or soft links.
14415LN_S=$lt_LN_S
14416
14417# A BSD-compatible nm program.
14418NM=$lt_NM
14419
14420# A symbol stripping program
14421STRIP=$lt_STRIP
14422
14423# Used to examine libraries when file_magic_cmd begins "file"
14424MAGIC_CMD=$MAGIC_CMD
14425
14426# Used on cygwin: DLL creation program.
14427DLLTOOL="$DLLTOOL"
14428
14429# Used on cygwin: object dumper.
14430OBJDUMP="$OBJDUMP"
14431
14432# Used on cygwin: assembler.
14433AS="$AS"
14434
14435# The name of the directory that contains temporary libtool files.
14436objdir=$objdir
14437
14438# How to create reloadable object files.
14439reload_flag=$lt_reload_flag
14440reload_cmds=$lt_reload_cmds
14441
14442# How to pass a linker flag through the compiler.
14443wl=$lt_lt_prog_compiler_wl_F77
14444
14445# Object file suffix (normally "o").
14446objext="$ac_objext"
14447
14448# Old archive suffix (normally "a").
14449libext="$libext"
14450
14451# Shared library suffix (normally ".so").
14452shrext='$shrext'
14453
14454# Executable file suffix (normally "").
14455exeext="$exeext"
14456
14457# Additional compiler flags for building library objects.
14458pic_flag=$lt_lt_prog_compiler_pic_F77
14459pic_mode=$pic_mode
14460
14461# What is the maximum length of a command?
14462max_cmd_len=$lt_cv_sys_max_cmd_len
14463
14464# Does compiler simultaneously support -c and -o options?
14465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14466
14467# Must we lock files when doing compilation ?
14468need_locks=$lt_need_locks
14469
14470# Do we need the lib prefix for modules?
14471need_lib_prefix=$need_lib_prefix
14472
14473# Do we need a version for libraries?
14474need_version=$need_version
14475
14476# Whether dlopen is supported.
14477dlopen_support=$enable_dlopen
14478
14479# Whether dlopen of programs is supported.
14480dlopen_self=$enable_dlopen_self
14481
14482# Whether dlopen of statically linked programs is supported.
14483dlopen_self_static=$enable_dlopen_self_static
14484
14485# Compiler flag to prevent dynamic linking.
14486link_static_flag=$lt_lt_prog_compiler_static_F77
14487
14488# Compiler flag to turn off builtin functions.
14489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14490
14491# Compiler flag to allow reflexive dlopens.
14492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14493
14494# Compiler flag to generate shared objects directly from archives.
14495whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14496
14497# Compiler flag to generate thread-safe objects.
14498thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14499
14500# Library versioning type.
14501version_type=$version_type
14502
14503# Format of library name prefix.
14504libname_spec=$lt_libname_spec
14505
14506# List of archive names. First name is the real one, the rest are links.
14507# The last name is the one that the linker finds with -lNAME.
14508library_names_spec=$lt_library_names_spec
14509
14510# The coded name of the library, if different from the real name.
14511soname_spec=$lt_soname_spec
14512
14513# Commands used to build and install an old-style archive.
14514RANLIB=$lt_RANLIB
14515old_archive_cmds=$lt_old_archive_cmds_F77
14516old_postinstall_cmds=$lt_old_postinstall_cmds
14517old_postuninstall_cmds=$lt_old_postuninstall_cmds
14518
14519# Create an old-style archive from a shared archive.
14520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14521
14522# Create a temporary old-style archive to link instead of a shared archive.
14523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14524
14525# Commands used to build and install a shared archive.
14526archive_cmds=$lt_archive_cmds_F77
14527archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14528postinstall_cmds=$lt_postinstall_cmds
14529postuninstall_cmds=$lt_postuninstall_cmds
14530
14531# Commands used to build a loadable module (assumed same as above if empty)
14532module_cmds=$lt_module_cmds_F77
14533module_expsym_cmds=$lt_module_expsym_cmds_F77
14534
14535# Commands to strip libraries.
14536old_striplib=$lt_old_striplib
14537striplib=$lt_striplib
14538
14539# Dependencies to place before the objects being linked to create a
14540# shared library.
14541predep_objects=$lt_predep_objects_F77
14542
14543# Dependencies to place after the objects being linked to create a
14544# shared library.
14545postdep_objects=$lt_postdep_objects_F77
14546
14547# Dependencies to place before the objects being linked to create a
14548# shared library.
14549predeps=$lt_predeps_F77
14550
14551# Dependencies to place after the objects being linked to create a
14552# shared library.
14553postdeps=$lt_postdeps_F77
14554
14555# The library search path used internally by the compiler when linking
14556# a shared library.
14557compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14558
14559# Method to check whether dependent libraries are shared objects.
14560deplibs_check_method=$lt_deplibs_check_method
14561
14562# Command to use when deplibs_check_method == file_magic.
14563file_magic_cmd=$lt_file_magic_cmd
14564
14565# Flag that allows shared libraries with undefined symbols to be built.
14566allow_undefined_flag=$lt_allow_undefined_flag_F77
14567
14568# Flag that forces no undefined symbols.
14569no_undefined_flag=$lt_no_undefined_flag_F77
14570
14571# Commands used to finish a libtool library installation in a directory.
14572finish_cmds=$lt_finish_cmds
14573
14574# Same as above, but a single script fragment to be evaled but not shown.
14575finish_eval=$lt_finish_eval
14576
14577# Take the output of nm and produce a listing of raw symbols and C names.
14578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14579
14580# Transform the output of nm in a proper C declaration
14581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14582
14583# Transform the output of nm in a C name address pair
14584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14585
14586# This is the shared library runtime path variable.
14587runpath_var=$runpath_var
14588
14589# This is the shared library path variable.
14590shlibpath_var=$shlibpath_var
14591
14592# Is shlibpath searched before the hard-coded library search path?
14593shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14594
14595# How to hardcode a shared library path into an executable.
14596hardcode_action=$hardcode_action_F77
14597
14598# Whether we should hardcode library paths into libraries.
14599hardcode_into_libs=$hardcode_into_libs
14600
14601# Flag to hardcode \$libdir into a binary during linking.
14602# This must work even if \$libdir does not exist.
14603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14604
14605# If ld is used when linking, flag to hardcode \$libdir into
14606# a binary during linking. This must work even if \$libdir does
14607# not exist.
14608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14609
14610# Whether we need a single -rpath flag with a separated argument.
14611hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14612
14613# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14614# resulting binary.
14615hardcode_direct=$hardcode_direct_F77
14616
14617# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14618# resulting binary.
14619hardcode_minus_L=$hardcode_minus_L_F77
14620
14621# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14622# the resulting binary.
14623hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14624
14625# Set to yes if building a shared library automatically hardcodes DIR into the library
14626# and all subsequent libraries and executables linked against it.
14627hardcode_automatic=$hardcode_automatic_F77
14628
14629# Variables whose values should be saved in libtool wrapper scripts and
14630# restored at relink time.
14631variables_saved_for_relink="$variables_saved_for_relink"
14632
14633# Whether libtool must link a program against all its dependency libraries.
14634link_all_deplibs=$link_all_deplibs_F77
14635
14636# Compile-time system search path for libraries
14637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14638
14639# Run-time system search path for libraries
14640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14641
14642# Fix the shell variable \$srcfile for the compiler.
14643fix_srcfile_path="$fix_srcfile_path_F77"
14644
14645# Set to yes if exported symbols are required.
14646always_export_symbols=$always_export_symbols_F77
14647
14648# The commands to list exported symbols.
14649export_symbols_cmds=$lt_export_symbols_cmds_F77
14650
14651# The commands to extract the exported symbol list from a shared archive.
14652extract_expsyms_cmds=$lt_extract_expsyms_cmds
14653
14654# Symbols that should not be listed in the preloaded symbols.
14655exclude_expsyms=$lt_exclude_expsyms_F77
14656
14657# Symbols that must always be exported.
14658include_expsyms=$lt_include_expsyms_F77
14659
14660# ### END LIBTOOL TAG CONFIG: $tagname
14661
14662__EOF__
14663
14664
14665else
14666 # If there is no Makefile yet, we rely on a make rule to execute
14667 # `config.status --recheck' to rerun these tests and create the
14668 # libtool script then.
14669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14670 if test -f "$ltmain_in"; then
14671 test -f Makefile && make "$ltmain"
14672 fi
14673fi
14674
14675
14676ac_ext=c
14677ac_cpp='$CPP $CPPFLAGS'
14678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14680ac_compiler_gnu=$ac_cv_c_compiler_gnu
14681
14682CC="$lt_save_CC"
14683
14684 else
14685 tagname=""
14686 fi
14687 ;;
14688
14689 GCJ)
14690 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14691
14692
14693
14694# Source file extension for Java test sources.
14695ac_ext=java
14696
14697# Object file extension for compiled Java test sources.
14698objext=o
14699objext_GCJ=$objext
14700
14701# Code to be used in simple compile tests
14702lt_simple_compile_test_code="class foo {}\n"
14703
14704# Code to be used in simple link tests
14705lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14706
14707# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14708
14709# If no C compiler was specified, use CC.
14710LTCC=${LTCC-"$CC"}
14711
14712# Allow CC to be a program name with arguments.
14713compiler=$CC
14714
14715
14716# Allow CC to be a program name with arguments.
14717lt_save_CC="$CC"
14718CC=${GCJ-"gcj"}
14719compiler=$CC
14720compiler_GCJ=$CC
14721
14722# GCJ did not exist at the time GCC didn't implicitly link libc in.
14723archive_cmds_need_lc_GCJ=no
14724
14725
14726lt_prog_compiler_no_builtin_flag_GCJ=
14727
14728if test "$GCC" = yes; then
14729 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14730
14731
14732echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14733echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14734if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737 lt_cv_prog_compiler_rtti_exceptions=no
14738 ac_outfile=conftest.$ac_objext
14739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14740 lt_compiler_flag="-fno-rtti -fno-exceptions"
14741 # Insert the option either (1) after the last *FLAGS variable, or
14742 # (2) before a word containing "conftest.", or (3) at the end.
14743 # Note that $ac_compile itself does not contain backslashes and begins
14744 # with a dollar sign (not a hyphen), so the echo should work correctly.
14745 # The option is referenced via a variable to avoid confusing sed.
14746 lt_compile=`echo "$ac_compile" | $SED \
14747 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14749 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000014750 (eval echo "\"\$as_me:14750: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014751 (eval "$lt_compile" 2>conftest.err)
14752 ac_status=$?
14753 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +000014754 echo "$as_me:14754: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014755 if (exit $ac_status) && test -s "$ac_outfile"; then
14756 # The compiler can only warn and ignore the option if not recognized
14757 # So say no if there are warnings
14758 if test ! -s conftest.err; then
14759 lt_cv_prog_compiler_rtti_exceptions=yes
14760 fi
14761 fi
14762 $rm conftest*
14763
14764fi
14765echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14766echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14767
14768if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14769 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14770else
14771 :
14772fi
14773
14774fi
14775
14776lt_prog_compiler_wl_GCJ=
14777lt_prog_compiler_pic_GCJ=
14778lt_prog_compiler_static_GCJ=
14779
14780echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14781echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14782
14783 if test "$GCC" = yes; then
14784 lt_prog_compiler_wl_GCJ='-Wl,'
14785 lt_prog_compiler_static_GCJ='-static'
14786
14787 case $host_os in
14788 aix*)
14789 # All AIX code is PIC.
14790 if test "$host_cpu" = ia64; then
14791 # AIX 5 now supports IA64 processor
14792 lt_prog_compiler_static_GCJ='-Bstatic'
14793 fi
14794 ;;
14795
14796 amigaos*)
14797 # FIXME: we need at least 68020 code to build shared libraries, but
14798 # adding the `-m68020' flag to GCC prevents building anything better,
14799 # like `-m68040'.
14800 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14801 ;;
14802
14803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14804 # PIC is the default for these OSes.
14805 ;;
14806
14807 mingw* | pw32* | os2*)
14808 # This hack is so that the source file can tell whether it is being
14809 # built for inclusion in a dll (and should export symbols for example).
14810 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14811 ;;
14812
14813 darwin* | rhapsody*)
14814 # PIC is the default on this platform
14815 # Common symbols not allowed in MH_DYLIB files
14816 lt_prog_compiler_pic_GCJ='-fno-common'
14817 ;;
14818
14819 msdosdjgpp*)
14820 # Just because we use GCC doesn't mean we suddenly get shared libraries
14821 # on systems that don't support them.
14822 lt_prog_compiler_can_build_shared_GCJ=no
14823 enable_shared=no
14824 ;;
14825
14826 sysv4*MP*)
14827 if test -d /usr/nec; then
14828 lt_prog_compiler_pic_GCJ=-Kconform_pic
14829 fi
14830 ;;
14831
14832 hpux*)
14833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14834 # not for PA HP-UX.
14835 case "$host_cpu" in
14836 hppa*64*|ia64*)
14837 # +Z the default
14838 ;;
14839 *)
14840 lt_prog_compiler_pic_GCJ='-fPIC'
14841 ;;
14842 esac
14843 ;;
14844
14845 *)
14846 lt_prog_compiler_pic_GCJ='-fPIC'
14847 ;;
14848 esac
14849 else
14850 # PORTME Check for flag to pass linker flags through the system compiler.
14851 case $host_os in
14852 aix*)
14853 lt_prog_compiler_wl_GCJ='-Wl,'
14854 if test "$host_cpu" = ia64; then
14855 # AIX 5 now supports IA64 processor
14856 lt_prog_compiler_static_GCJ='-Bstatic'
14857 else
14858 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14859 fi
14860 ;;
14861
14862 mingw* | pw32* | os2*)
14863 # This hack is so that the source file can tell whether it is being
14864 # built for inclusion in a dll (and should export symbols for example).
14865 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14866 ;;
14867
14868 hpux9* | hpux10* | hpux11*)
14869 lt_prog_compiler_wl_GCJ='-Wl,'
14870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14871 # not for PA HP-UX.
14872 case "$host_cpu" in
14873 hppa*64*|ia64*)
14874 # +Z the default
14875 ;;
14876 *)
14877 lt_prog_compiler_pic_GCJ='+Z'
14878 ;;
14879 esac
14880 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14881 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14882 ;;
14883
14884 irix5* | irix6* | nonstopux*)
14885 lt_prog_compiler_wl_GCJ='-Wl,'
14886 # PIC (with -KPIC) is the default.
14887 lt_prog_compiler_static_GCJ='-non_shared'
14888 ;;
14889
14890 newsos6)
14891 lt_prog_compiler_pic_GCJ='-KPIC'
14892 lt_prog_compiler_static_GCJ='-Bstatic'
14893 ;;
14894
14895 linux*)
14896 case $CC in
14897 icc* | ecc*)
14898 lt_prog_compiler_wl_GCJ='-Wl,'
14899 lt_prog_compiler_pic_GCJ='-KPIC'
14900 lt_prog_compiler_static_GCJ='-static'
14901 ;;
14902 ccc*)
14903 lt_prog_compiler_wl_GCJ='-Wl,'
14904 # All Alpha code is PIC.
14905 lt_prog_compiler_static_GCJ='-non_shared'
14906 ;;
14907 esac
14908 ;;
14909
14910 osf3* | osf4* | osf5*)
14911 lt_prog_compiler_wl_GCJ='-Wl,'
14912 # All OSF/1 code is PIC.
14913 lt_prog_compiler_static_GCJ='-non_shared'
14914 ;;
14915
14916 sco3.2v5*)
14917 lt_prog_compiler_pic_GCJ='-Kpic'
14918 lt_prog_compiler_static_GCJ='-dn'
14919 ;;
14920
14921 solaris*)
14922 lt_prog_compiler_wl_GCJ='-Wl,'
14923 lt_prog_compiler_pic_GCJ='-KPIC'
14924 lt_prog_compiler_static_GCJ='-Bstatic'
14925 ;;
14926
14927 sunos4*)
14928 lt_prog_compiler_wl_GCJ='-Qoption ld '
14929 lt_prog_compiler_pic_GCJ='-PIC'
14930 lt_prog_compiler_static_GCJ='-Bstatic'
14931 ;;
14932
14933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14934 lt_prog_compiler_wl_GCJ='-Wl,'
14935 lt_prog_compiler_pic_GCJ='-KPIC'
14936 lt_prog_compiler_static_GCJ='-Bstatic'
14937 ;;
14938
14939 sysv4*MP*)
14940 if test -d /usr/nec ;then
14941 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14942 lt_prog_compiler_static_GCJ='-Bstatic'
14943 fi
14944 ;;
14945
14946 uts4*)
14947 lt_prog_compiler_pic_GCJ='-pic'
14948 lt_prog_compiler_static_GCJ='-Bstatic'
14949 ;;
14950
14951 *)
14952 lt_prog_compiler_can_build_shared_GCJ=no
14953 ;;
14954 esac
14955 fi
14956
14957echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14958echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14959
14960#
14961# Check to make sure the PIC flag actually works.
14962#
14963if test -n "$lt_prog_compiler_pic_GCJ"; then
14964
14965echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14966echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14967if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969else
14970 lt_prog_compiler_pic_works_GCJ=no
14971 ac_outfile=conftest.$ac_objext
14972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14973 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 # The option is referenced via a variable to avoid confusing sed.
14979 lt_compile=`echo "$ac_compile" | $SED \
14980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000014983 (eval echo "\"\$as_me:14983: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014984 (eval "$lt_compile" 2>conftest.err)
14985 ac_status=$?
14986 cat conftest.err >&5
drh91636d52005-11-24 23:14:00 +000014987 echo "$as_me:14987: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014988 if (exit $ac_status) && test -s "$ac_outfile"; then
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
14991 if test ! -s conftest.err; then
14992 lt_prog_compiler_pic_works_GCJ=yes
14993 fi
14994 fi
14995 $rm conftest*
14996
14997fi
14998echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14999echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15000
15001if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15002 case $lt_prog_compiler_pic_GCJ in
15003 "" | " "*) ;;
15004 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15005 esac
15006else
15007 lt_prog_compiler_pic_GCJ=
15008 lt_prog_compiler_can_build_shared_GCJ=no
15009fi
15010
15011fi
15012case "$host_os" in
15013 # For platforms which do not support PIC, -DPIC is meaningless:
15014 *djgpp*)
15015 lt_prog_compiler_pic_GCJ=
15016 ;;
15017 *)
15018 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15019 ;;
15020esac
15021
15022echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15023echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15024if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
15027 lt_cv_prog_compiler_c_o_GCJ=no
15028 $rm -r conftest 2>/dev/null
15029 mkdir conftest
15030 cd conftest
15031 mkdir out
15032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15033
15034 lt_compiler_flag="-o out/conftest2.$ac_objext"
15035 # Insert the option either (1) after the last *FLAGS variable, or
15036 # (2) before a word containing "conftest.", or (3) at the end.
15037 # Note that $ac_compile itself does not contain backslashes and begins
15038 # with a dollar sign (not a hyphen), so the echo should work correctly.
15039 lt_compile=`echo "$ac_compile" | $SED \
15040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15042 -e 's:$: $lt_compiler_flag:'`
drh91636d52005-11-24 23:14:00 +000015043 (eval echo "\"\$as_me:15043: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015044 (eval "$lt_compile" 2>out/conftest.err)
15045 ac_status=$?
15046 cat out/conftest.err >&5
drh91636d52005-11-24 23:14:00 +000015047 echo "$as_me:15047: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15049 then
15050 # The compiler can only warn and ignore the option if not recognized
15051 # So say no if there are warnings
15052 if test ! -s out/conftest.err; then
15053 lt_cv_prog_compiler_c_o_GCJ=yes
15054 fi
15055 fi
15056 chmod u+w .
15057 $rm conftest*
15058 # SGI C++ compiler will create directory out/ii_files/ for
15059 # template instantiation
15060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15061 $rm out/* && rmdir out
15062 cd ..
15063 rmdir conftest
15064 $rm conftest*
15065
15066fi
15067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15068echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15069
15070
15071hard_links="nottested"
15072if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15073 # do not overwrite the value of need_locks provided by the user
15074 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15075echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15076 hard_links=yes
15077 $rm conftest*
15078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15079 touch conftest.a
15080 ln conftest.a conftest.b 2>&5 || hard_links=no
15081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15082 echo "$as_me:$LINENO: result: $hard_links" >&5
15083echo "${ECHO_T}$hard_links" >&6
15084 if test "$hard_links" = no; then
15085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15086echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15087 need_locks=warn
15088 fi
15089else
15090 need_locks=no
15091fi
15092
15093echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15094echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15095
15096 runpath_var=
15097 allow_undefined_flag_GCJ=
15098 enable_shared_with_static_runtimes_GCJ=no
15099 archive_cmds_GCJ=
15100 archive_expsym_cmds_GCJ=
15101 old_archive_From_new_cmds_GCJ=
15102 old_archive_from_expsyms_cmds_GCJ=
15103 export_dynamic_flag_spec_GCJ=
15104 whole_archive_flag_spec_GCJ=
15105 thread_safe_flag_spec_GCJ=
15106 hardcode_libdir_flag_spec_GCJ=
15107 hardcode_libdir_flag_spec_ld_GCJ=
15108 hardcode_libdir_separator_GCJ=
15109 hardcode_direct_GCJ=no
15110 hardcode_minus_L_GCJ=no
15111 hardcode_shlibpath_var_GCJ=unsupported
15112 link_all_deplibs_GCJ=unknown
15113 hardcode_automatic_GCJ=no
15114 module_cmds_GCJ=
15115 module_expsym_cmds_GCJ=
15116 always_export_symbols_GCJ=no
15117 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15118 # include_expsyms should be a list of space-separated symbols to be *always*
15119 # included in the symbol list
15120 include_expsyms_GCJ=
15121 # exclude_expsyms can be an extended regexp of symbols to exclude
15122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15124 # as well as any symbol that contains `d'.
15125 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15127 # platforms (ab)use it in PIC code, but their linkers get confused if
15128 # the symbol is explicitly referenced. Since portable code cannot
15129 # rely on this symbol name, it's probably fine to never include it in
15130 # preloaded symbol tables.
15131 extract_expsyms_cmds=
15132
15133 case $host_os in
15134 cygwin* | mingw* | pw32*)
15135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15136 # When not using gcc, we currently assume that we are using
15137 # Microsoft Visual C++.
15138 if test "$GCC" != yes; then
15139 with_gnu_ld=no
15140 fi
15141 ;;
15142 openbsd*)
15143 with_gnu_ld=no
15144 ;;
15145 esac
15146
15147 ld_shlibs_GCJ=yes
15148 if test "$with_gnu_ld" = yes; then
15149 # If archive_cmds runs LD, not CC, wlarc should be empty
15150 wlarc='${wl}'
15151
15152 # See if GNU ld supports shared libraries.
15153 case $host_os in
15154 aix3* | aix4* | aix5*)
15155 # On AIX/PPC, the GNU linker is very broken
15156 if test "$host_cpu" != ia64; then
15157 ld_shlibs_GCJ=no
15158 cat <<EOF 1>&2
15159
15160*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15161*** to be unable to reliably create shared libraries on AIX.
15162*** Therefore, libtool is disabling shared libraries support. If you
15163*** really care for shared libraries, you may want to modify your PATH
15164*** so that a non-GNU linker is found, and then restart.
15165
15166EOF
15167 fi
15168 ;;
15169
15170 amigaos*)
15171 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)'
15172 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15173 hardcode_minus_L_GCJ=yes
15174
15175 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15176 # that the semantics of dynamic libraries on AmigaOS, at least up
15177 # to version 4, is to share data among multiple programs linked
15178 # with the same dynamic library. Since this doesn't match the
15179 # behavior of shared libraries on other platforms, we can't use
15180 # them.
15181 ld_shlibs_GCJ=no
15182 ;;
15183
15184 beos*)
15185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186 allow_undefined_flag_GCJ=unsupported
15187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15188 # support --undefined. This deserves some investigation. FIXME
15189 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 else
15191 ld_shlibs_GCJ=no
15192 fi
15193 ;;
15194
15195 cygwin* | mingw* | pw32*)
15196 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15197 # as there is no search path for DLLs.
15198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15199 allow_undefined_flag_GCJ=unsupported
15200 always_export_symbols_GCJ=no
15201 enable_shared_with_static_runtimes_GCJ=yes
15202 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15203
15204 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15206 # If the export-symbols file already is a .def file (1st line
15207 # is EXPORTS), use it as is; otherwise, prepend...
15208 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15209 cp $export_symbols $output_objdir/$soname.def;
15210 else
15211 echo EXPORTS > $output_objdir/$soname.def;
15212 cat $export_symbols >> $output_objdir/$soname.def;
15213 fi~
15214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15215 else
15216 ld_shlibs=no
15217 fi
15218 ;;
15219
15220 netbsd* | knetbsd*-gnu)
15221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15222 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15223 wlarc=
15224 else
15225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15227 fi
15228 ;;
15229
15230 solaris* | sysv5*)
15231 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15232 ld_shlibs_GCJ=no
15233 cat <<EOF 1>&2
15234
15235*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15236*** create shared libraries on Solaris systems. Therefore, libtool
15237*** is disabling shared libraries support. We urge you to upgrade GNU
15238*** binutils to release 2.9.1 or newer. Another option is to modify
15239*** your PATH or compiler configuration so that the native linker is
15240*** used, and then restart.
15241
15242EOF
15243 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15246 else
15247 ld_shlibs_GCJ=no
15248 fi
15249 ;;
15250
15251 sunos4*)
15252 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15253 wlarc=
15254 hardcode_direct_GCJ=yes
15255 hardcode_shlibpath_var_GCJ=no
15256 ;;
15257
15258 linux*)
15259 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15260 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15261 archive_cmds_GCJ="$tmp_archive_cmds"
15262 supports_anon_versioning=no
15263 case `$LD -v 2>/dev/null` in
15264 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15267 *\ 2.11.*) ;; # other 2.11 versions
15268 *) supports_anon_versioning=yes ;;
15269 esac
15270 if test $supports_anon_versioning = yes; then
15271 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15272cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15273$echo "local: *; };" >> $output_objdir/$libname.ver~
15274 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15275 else
15276 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15277 fi
15278 else
15279 ld_shlibs_GCJ=no
15280 fi
15281 ;;
15282
15283 *)
15284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15285 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15286 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15287 else
15288 ld_shlibs_GCJ=no
15289 fi
15290 ;;
15291 esac
15292
15293 if test "$ld_shlibs_GCJ" = yes; then
15294 runpath_var=LD_RUN_PATH
15295 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15296 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15297 # ancient GNU ld didn't support --whole-archive et. al.
15298 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15300 else
15301 whole_archive_flag_spec_GCJ=
15302 fi
15303 fi
15304 else
15305 # PORTME fill in a description of your system's linker (not GNU ld)
15306 case $host_os in
15307 aix3*)
15308 allow_undefined_flag_GCJ=unsupported
15309 always_export_symbols_GCJ=yes
15310 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'
15311 # Note: this linker hardcodes the directories in LIBPATH if there
15312 # are no directories specified by -L.
15313 hardcode_minus_L_GCJ=yes
15314 if test "$GCC" = yes && test -z "$link_static_flag"; then
15315 # Neither direct hardcoding nor static linking is supported with a
15316 # broken collect2.
15317 hardcode_direct_GCJ=unsupported
15318 fi
15319 ;;
15320
15321 aix4* | aix5*)
15322 if test "$host_cpu" = ia64; then
15323 # On IA64, the linker does run time linking by default, so we don't
15324 # have to do anything special.
15325 aix_use_runtimelinking=no
15326 exp_sym_flag='-Bexport'
15327 no_entry_flag=""
15328 else
15329 # If we're using GNU nm, then we don't want the "-C" option.
15330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15332 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'
15333 else
15334 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'
15335 fi
15336 aix_use_runtimelinking=no
15337
15338 # Test if we are trying to use run time linking or normal
15339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15340 # need to do runtime linking.
15341 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15342 for ld_flag in $LDFLAGS; do
15343 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15344 aix_use_runtimelinking=yes
15345 break
15346 fi
15347 done
15348 esac
15349
15350 exp_sym_flag='-bexport'
15351 no_entry_flag='-bnoentry'
15352 fi
15353
15354 # When large executables or shared objects are built, AIX ld can
15355 # have problems creating the table of contents. If linking a library
15356 # or program results in "error TOC overflow" add -mminimal-toc to
15357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15359
15360 archive_cmds_GCJ=''
15361 hardcode_direct_GCJ=yes
15362 hardcode_libdir_separator_GCJ=':'
15363 link_all_deplibs_GCJ=yes
15364
15365 if test "$GCC" = yes; then
15366 case $host_os in aix4.012|aix4.012.*)
15367 # We only want to do this on AIX 4.2 and lower, the check
15368 # below for broken collect2 doesn't work under 4.3+
15369 collect2name=`${CC} -print-prog-name=collect2`
15370 if test -f "$collect2name" && \
15371 strings "$collect2name" | grep resolve_lib_name >/dev/null
15372 then
15373 # We have reworked collect2
15374 hardcode_direct_GCJ=yes
15375 else
15376 # We have old collect2
15377 hardcode_direct_GCJ=unsupported
15378 # It fails to find uninstalled libraries when the uninstalled
15379 # path is not listed in the libpath. Setting hardcode_minus_L
15380 # to unsupported forces relinking
15381 hardcode_minus_L_GCJ=yes
15382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15383 hardcode_libdir_separator_GCJ=
15384 fi
15385 esac
15386 shared_flag='-shared'
15387 else
15388 # not using gcc
15389 if test "$host_cpu" = ia64; then
15390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15391 # chokes on -Wl,-G. The following line is correct:
15392 shared_flag='-G'
15393 else
15394 if test "$aix_use_runtimelinking" = yes; then
15395 shared_flag='${wl}-G'
15396 else
15397 shared_flag='${wl}-bM:SRE'
15398 fi
15399 fi
15400 fi
15401
15402 # It seems that -bexpall does not export symbols beginning with
15403 # underscore (_), so it is better to generate a list of symbols to export.
15404 always_export_symbols_GCJ=yes
15405 if test "$aix_use_runtimelinking" = yes; then
15406 # Warning - without using the other runtime loading flags (-brtl),
15407 # -berok will link without error, but may produce a broken library.
15408 allow_undefined_flag_GCJ='-berok'
15409 # Determine the default libpath from the value encoded in an empty executable.
15410 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
15416
15417int
15418main ()
15419{
15420
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext conftest$ac_exeext
15426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447
15448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15449}'`
15450# Check for a 64-bit object if we didn't find anything.
15451if 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; }
15452}'`; fi
15453else
15454 echo "$as_me: failed program was:" >&5
15455sed 's/^/| /' conftest.$ac_ext >&5
15456
15457fi
15458rm -f conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15461
15462 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15463 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"
15464 else
15465 if test "$host_cpu" = ia64; then
15466 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15467 allow_undefined_flag_GCJ="-z nodefs"
15468 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"
15469 else
15470 # Determine the default libpath from the value encoded in an empty executable.
15471 cat >conftest.$ac_ext <<_ACEOF
15472/* confdefs.h. */
15473_ACEOF
15474cat confdefs.h >>conftest.$ac_ext
15475cat >>conftest.$ac_ext <<_ACEOF
15476/* end confdefs.h. */
15477
15478int
15479main ()
15480{
15481
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext conftest$ac_exeext
15487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015495 { ac_try='test -z "$ac_c_werror_flag"
15496 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508
15509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15510}'`
15511# Check for a 64-bit object if we didn't find anything.
15512if 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; }
15513}'`; fi
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518fi
15519rm -f conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15522
15523 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15524 # Warning - without using the other run time loading flags,
15525 # -berok will link without error, but may produce a broken library.
15526 no_undefined_flag_GCJ=' ${wl}-bernotok'
15527 allow_undefined_flag_GCJ=' ${wl}-berok'
15528 # -bexpall does not export symbols beginning with underscore (_)
15529 always_export_symbols_GCJ=yes
15530 # Exported symbols can be pulled into shared objects from archives
15531 whole_archive_flag_spec_GCJ=' '
15532 archive_cmds_need_lc_GCJ=yes
15533 # This is similar to how AIX traditionally builds it's shared libraries.
15534 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'
15535 fi
15536 fi
15537 ;;
15538
15539 amigaos*)
15540 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)'
15541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15542 hardcode_minus_L_GCJ=yes
15543 # see comment about different semantics on the GNU ld section
15544 ld_shlibs_GCJ=no
15545 ;;
15546
15547 bsdi4*)
15548 export_dynamic_flag_spec_GCJ=-rdynamic
15549 ;;
15550
15551 cygwin* | mingw* | pw32*)
15552 # When not using gcc, we currently assume that we are using
15553 # Microsoft Visual C++.
15554 # hardcode_libdir_flag_spec is actually meaningless, as there is
15555 # no search path for DLLs.
15556 hardcode_libdir_flag_spec_GCJ=' '
15557 allow_undefined_flag_GCJ=unsupported
15558 # Tell ltmain to make .lib files, not .a files.
15559 libext=lib
15560 # Tell ltmain to make .dll files, not .so files.
15561 shrext=".dll"
15562 # FIXME: Setting linknames here is a bad hack.
15563 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15564 # The linker will automatically build a .lib file if we build a DLL.
15565 old_archive_From_new_cmds_GCJ='true'
15566 # FIXME: Should let the user specify the lib program.
15567 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15568 fix_srcfile_path='`cygpath -w "$srcfile"`'
15569 enable_shared_with_static_runtimes_GCJ=yes
15570 ;;
15571
15572 darwin* | rhapsody*)
15573 if test "$GXX" = yes ; then
15574 archive_cmds_need_lc_GCJ=no
15575 case "$host_os" in
15576 rhapsody* | darwin1.[012])
15577 allow_undefined_flag_GCJ='-undefined suppress'
15578 ;;
15579 *) # Darwin 1.3 on
15580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15581 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15582 else
15583 case ${MACOSX_DEPLOYMENT_TARGET} in
15584 10.[012])
15585 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15586 ;;
15587 10.*)
15588 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15589 ;;
15590 esac
15591 fi
15592 ;;
15593 esac
15594 lt_int_apple_cc_single_mod=no
15595 output_verbose_link_cmd='echo'
15596 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15597 lt_int_apple_cc_single_mod=yes
15598 fi
15599 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15600 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15601 else
15602 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'
15603 fi
15604 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15607 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}'
15608 else
15609 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}'
15610 fi
15611 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}'
15612 hardcode_direct_GCJ=no
15613 hardcode_automatic_GCJ=yes
15614 hardcode_shlibpath_var_GCJ=unsupported
15615 whole_archive_flag_spec_GCJ='-all_load $convenience'
15616 link_all_deplibs_GCJ=yes
15617 else
15618 ld_shlibs_GCJ=no
15619 fi
15620 ;;
15621
15622 dgux*)
15623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15625 hardcode_shlibpath_var_GCJ=no
15626 ;;
15627
15628 freebsd1*)
15629 ld_shlibs_GCJ=no
15630 ;;
15631
15632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15633 # support. Future versions do this automatically, but an explicit c++rt0.o
15634 # does not break anything, and helps significantly (at the cost of a little
15635 # extra space).
15636 freebsd2.2*)
15637 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15639 hardcode_direct_GCJ=yes
15640 hardcode_shlibpath_var_GCJ=no
15641 ;;
15642
15643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15644 freebsd2*)
15645 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_direct_GCJ=yes
15647 hardcode_minus_L_GCJ=yes
15648 hardcode_shlibpath_var_GCJ=no
15649 ;;
15650
15651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15652 freebsd* | kfreebsd*-gnu)
15653 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15654 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15655 hardcode_direct_GCJ=yes
15656 hardcode_shlibpath_var_GCJ=no
15657 ;;
15658
15659 hpux9*)
15660 if test "$GCC" = yes; then
15661 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'
15662 else
15663 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'
15664 fi
15665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15666 hardcode_libdir_separator_GCJ=:
15667 hardcode_direct_GCJ=yes
15668
15669 # hardcode_minus_L: Not really in the search PATH,
15670 # but as the default location of the library.
15671 hardcode_minus_L_GCJ=yes
15672 export_dynamic_flag_spec_GCJ='${wl}-E'
15673 ;;
15674
15675 hpux10* | hpux11*)
15676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15677 case "$host_cpu" in
15678 hppa*64*|ia64*)
15679 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 ;;
15681 *)
15682 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15683 ;;
15684 esac
15685 else
15686 case "$host_cpu" in
15687 hppa*64*|ia64*)
15688 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15689 ;;
15690 *)
15691 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15692 ;;
15693 esac
15694 fi
15695 if test "$with_gnu_ld" = no; then
15696 case "$host_cpu" in
15697 hppa*64*)
15698 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15699 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15700 hardcode_libdir_separator_GCJ=:
15701 hardcode_direct_GCJ=no
15702 hardcode_shlibpath_var_GCJ=no
15703 ;;
15704 ia64*)
15705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15706 hardcode_direct_GCJ=no
15707 hardcode_shlibpath_var_GCJ=no
15708
15709 # hardcode_minus_L: Not really in the search PATH,
15710 # but as the default location of the library.
15711 hardcode_minus_L_GCJ=yes
15712 ;;
15713 *)
15714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_separator_GCJ=:
15716 hardcode_direct_GCJ=yes
15717 export_dynamic_flag_spec_GCJ='${wl}-E'
15718
15719 # hardcode_minus_L: Not really in the search PATH,
15720 # but as the default location of the library.
15721 hardcode_minus_L_GCJ=yes
15722 ;;
15723 esac
15724 fi
15725 ;;
15726
15727 irix5* | irix6* | nonstopux*)
15728 if test "$GCC" = yes; then
15729 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'
15730 else
15731 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'
15732 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15733 fi
15734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_GCJ=:
15736 link_all_deplibs_GCJ=yes
15737 ;;
15738
15739 netbsd* | knetbsd*-gnu)
15740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15742 else
15743 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15744 fi
15745 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15746 hardcode_direct_GCJ=yes
15747 hardcode_shlibpath_var_GCJ=no
15748 ;;
15749
15750 newsos6)
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_direct_GCJ=yes
15753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15754 hardcode_libdir_separator_GCJ=:
15755 hardcode_shlibpath_var_GCJ=no
15756 ;;
15757
15758 openbsd*)
15759 hardcode_direct_GCJ=yes
15760 hardcode_shlibpath_var_GCJ=no
15761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15762 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15764 export_dynamic_flag_spec_GCJ='${wl}-E'
15765 else
15766 case $host_os in
15767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15770 ;;
15771 *)
15772 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15774 ;;
15775 esac
15776 fi
15777 ;;
15778
15779 os2*)
15780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781 hardcode_minus_L_GCJ=yes
15782 allow_undefined_flag_GCJ=unsupported
15783 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'
15784 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15785 ;;
15786
15787 osf3*)
15788 if test "$GCC" = yes; then
15789 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15790 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'
15791 else
15792 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15793 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'
15794 fi
15795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15796 hardcode_libdir_separator_GCJ=:
15797 ;;
15798
15799 osf4* | osf5*) # as osf3* with the addition of -msym flag
15800 if test "$GCC" = yes; then
15801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15804 else
15805 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15806 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'
15807 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~
15808 $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'
15809
15810 # Both c and cxx compiler support -rpath directly
15811 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15812 fi
15813 hardcode_libdir_separator_GCJ=:
15814 ;;
15815
15816 sco3.2v5*)
15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_shlibpath_var_GCJ=no
15819 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15820 runpath_var=LD_RUN_PATH
15821 hardcode_runpath_var=yes
15822 ;;
15823
15824 solaris*)
15825 no_undefined_flag_GCJ=' -z text'
15826 if test "$GCC" = yes; then
15827 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15828 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15830 else
15831 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15834 fi
15835 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15836 hardcode_shlibpath_var_GCJ=no
15837 case $host_os in
15838 solaris2.[0-5] | solaris2.[0-5].*) ;;
15839 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15840 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15841 esac
15842 link_all_deplibs_GCJ=yes
15843 ;;
15844
15845 sunos4*)
15846 if test "x$host_vendor" = xsequent; then
15847 # Use $CC to link under sequent, because it throws in some extra .o
15848 # files that make .init and .fini sections work.
15849 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15850 else
15851 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15852 fi
15853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15854 hardcode_direct_GCJ=yes
15855 hardcode_minus_L_GCJ=yes
15856 hardcode_shlibpath_var_GCJ=no
15857 ;;
15858
15859 sysv4)
15860 case $host_vendor in
15861 sni)
15862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863 hardcode_direct_GCJ=yes # is this really true???
15864 ;;
15865 siemens)
15866 ## LD is ld it makes a PLAMLIB
15867 ## CC just makes a GrossModule.
15868 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15869 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15870 hardcode_direct_GCJ=no
15871 ;;
15872 motorola)
15873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15875 ;;
15876 esac
15877 runpath_var='LD_RUN_PATH'
15878 hardcode_shlibpath_var_GCJ=no
15879 ;;
15880
15881 sysv4.3*)
15882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 hardcode_shlibpath_var_GCJ=no
15884 export_dynamic_flag_spec_GCJ='-Bexport'
15885 ;;
15886
15887 sysv4*MP*)
15888 if test -d /usr/nec; then
15889 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 hardcode_shlibpath_var_GCJ=no
15891 runpath_var=LD_RUN_PATH
15892 hardcode_runpath_var=yes
15893 ld_shlibs_GCJ=yes
15894 fi
15895 ;;
15896
15897 sysv4.2uw2*)
15898 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct_GCJ=yes
15900 hardcode_minus_L_GCJ=no
15901 hardcode_shlibpath_var_GCJ=no
15902 hardcode_runpath_var=yes
15903 runpath_var=LD_RUN_PATH
15904 ;;
15905
15906 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15907 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15908 if test "$GCC" = yes; then
15909 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 else
15911 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 fi
15913 runpath_var='LD_RUN_PATH'
15914 hardcode_shlibpath_var_GCJ=no
15915 ;;
15916
15917 sysv5*)
15918 no_undefined_flag_GCJ=' -z text'
15919 # $CC -shared without GNU ld will not create a library from C++
15920 # object files and a static libstdc++, better avoid it by now
15921 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15924 hardcode_libdir_flag_spec_GCJ=
15925 hardcode_shlibpath_var_GCJ=no
15926 runpath_var='LD_RUN_PATH'
15927 ;;
15928
15929 uts4*)
15930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15932 hardcode_shlibpath_var_GCJ=no
15933 ;;
15934
15935 *)
15936 ld_shlibs_GCJ=no
15937 ;;
15938 esac
15939 fi
15940
15941echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15942echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15943test "$ld_shlibs_GCJ" = no && can_build_shared=no
15944
15945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15946if test "$GCC" = yes; then
15947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15948fi
15949
15950#
15951# Do we need to explicitly link libc?
15952#
15953case "x$archive_cmds_need_lc_GCJ" in
15954x|xyes)
15955 # Assume -lc should be added
15956 archive_cmds_need_lc_GCJ=yes
15957
15958 if test "$enable_shared" = yes && test "$GCC" = yes; then
15959 case $archive_cmds_GCJ in
15960 *'~'*)
15961 # FIXME: we may have to deal with multi-command sequences.
15962 ;;
15963 '$CC '*)
15964 # Test whether the compiler implicitly links with -lc since on some
15965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966 # to ld, don't add -lc before -lgcc.
15967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15969 $rm conftest*
15970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15971
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } 2>conftest.err; then
15977 soname=conftest
15978 lib=conftest
15979 libobjs=conftest.$ac_objext
15980 deplibs=
15981 wl=$lt_prog_compiler_wl_GCJ
15982 compiler_flags=-v
15983 linker_flags=-v
15984 verstring=
15985 output_objdir=.
15986 libname=conftest
15987 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15988 allow_undefined_flag_GCJ=
15989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15990 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }
15994 then
15995 archive_cmds_need_lc_GCJ=no
15996 else
15997 archive_cmds_need_lc_GCJ=yes
15998 fi
15999 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16000 else
16001 cat conftest.err 1>&5
16002 fi
16003 $rm conftest*
16004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16005echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16006 ;;
16007 esac
16008 fi
16009 ;;
16010esac
16011
16012echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16014library_names_spec=
16015libname_spec='lib$name'
16016soname_spec=
16017shrext=".so"
16018postinstall_cmds=
16019postuninstall_cmds=
16020finish_cmds=
16021finish_eval=
16022shlibpath_var=
16023shlibpath_overrides_runpath=unknown
16024version_type=none
16025dynamic_linker="$host_os ld.so"
16026sys_lib_dlsearch_path_spec="/lib /usr/lib"
16027if test "$GCC" = yes; then
16028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16030 # if the path contains ";" then we assume it to be the separator
16031 # otherwise default to the standard path separator (i.e. ":") - it is
16032 # assumed that no part of a normal pathname contains ";" but that should
16033 # okay in the real world where ";" in dirpaths is itself problematic.
16034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16035 else
16036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16037 fi
16038else
16039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16040fi
16041need_lib_prefix=unknown
16042hardcode_into_libs=no
16043
16044# when you set need_version to no, make sure it does not cause -set_version
16045# flags to be left without arguments
16046need_version=unknown
16047
16048case $host_os in
16049aix3*)
16050 version_type=linux
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16052 shlibpath_var=LIBPATH
16053
16054 # AIX 3 has no versioning support, so we append a major version to the name.
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 ;;
16057
16058aix4* | aix5*)
16059 version_type=linux
16060 need_lib_prefix=no
16061 need_version=no
16062 hardcode_into_libs=yes
16063 if test "$host_cpu" = ia64; then
16064 # AIX 5 supports IA64
16065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 else
16068 # With GCC up to 2.95.x, collect2 would create an import file
16069 # for dependence libraries. The import file would start with
16070 # the line `#! .'. This would cause the generated library to
16071 # depend on `.', always an invalid library. This was fixed in
16072 # development snapshots of GCC prior to 3.0.
16073 case $host_os in
16074 aix4 | aix4.[01] | aix4.[01].*)
16075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16076 echo ' yes '
16077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16078 :
16079 else
16080 can_build_shared=no
16081 fi
16082 ;;
16083 esac
16084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16085 # soname into executable. Probably we can add versioning support to
16086 # collect2, so additional links can be useful in future.
16087 if test "$aix_use_runtimelinking" = yes; then
16088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16089 # instead of lib<name>.a to let people know that these are not
16090 # typical AIX shared libraries.
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 else
16093 # We preserve .a as extension for shared libraries through AIX4.2
16094 # and later when we are not doing run time linking.
16095 library_names_spec='${libname}${release}.a $libname.a'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 fi
16098 shlibpath_var=LIBPATH
16099 fi
16100 ;;
16101
16102amigaos*)
16103 library_names_spec='$libname.ixlibrary $libname.a'
16104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16105 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'
16106 ;;
16107
16108beos*)
16109 library_names_spec='${libname}${shared_ext}'
16110 dynamic_linker="$host_os ld.so"
16111 shlibpath_var=LIBRARY_PATH
16112 ;;
16113
16114bsdi4*)
16115 version_type=linux
16116 need_version=no
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16123 # the default ld.so.conf also contains /usr/contrib/lib and
16124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16125 # libtool to hard-code these into programs
16126 ;;
16127
16128cygwin* | mingw* | pw32*)
16129 version_type=windows
16130 shrext=".dll"
16131 need_version=no
16132 need_lib_prefix=no
16133
16134 case $GCC,$host_os in
16135 yes,cygwin* | yes,mingw* | yes,pw32*)
16136 library_names_spec='$libname.dll.a'
16137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16138 postinstall_cmds='base_file=`basename \${file}`~
16139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16140 dldir=$destdir/`dirname \$dlpath`~
16141 test -d \$dldir || mkdir -p \$dldir~
16142 $install_prog $dir/$dlname \$dldir/$dlname'
16143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16144 dlpath=$dir/\$dldll~
16145 $rm \$dlpath'
16146 shlibpath_overrides_runpath=yes
16147
16148 case $host_os in
16149 cygwin*)
16150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16152 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16153 ;;
16154 mingw*)
16155 # MinGW DLLs use traditional 'lib' prefix
16156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16159 # It is most probably a Windows format PATH printed by
16160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16161 # path with ; separators, and with drive letters. We can handle the
16162 # drive letters (cygwin fileutils understands them), so leave them,
16163 # especially as we might pass files found there to a mingw objdump,
16164 # which wouldn't understand a cygwinified path. Ahh.
16165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16166 else
16167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16168 fi
16169 ;;
16170 pw32*)
16171 # pw32 DLLs use 'pw' prefix rather than 'lib'
16172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16173 ;;
16174 esac
16175 ;;
16176
16177 *)
16178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16179 ;;
16180 esac
16181 dynamic_linker='Win32 ld.exe'
16182 # FIXME: first we should search . and the directory the executable is in
16183 shlibpath_var=PATH
16184 ;;
16185
16186darwin* | rhapsody*)
16187 dynamic_linker="$host_os dyld"
16188 version_type=darwin
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16192 soname_spec='${libname}${release}${major}$shared_ext'
16193 shlibpath_overrides_runpath=yes
16194 shlibpath_var=DYLD_LIBRARY_PATH
16195 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16197 if test "$GCC" = yes; then
16198 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"`
16199 else
16200 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16201 fi
16202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16203 ;;
16204
16205dgux*)
16206 version_type=linux
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 ;;
16213
16214freebsd1*)
16215 dynamic_linker=no
16216 ;;
16217
16218kfreebsd*-gnu)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=no
16226 hardcode_into_libs=yes
16227 dynamic_linker='GNU ld.so'
16228 ;;
16229
16230freebsd*)
16231 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16232 version_type=freebsd-$objformat
16233 case $version_type in
16234 freebsd-elf*)
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16236 need_version=no
16237 need_lib_prefix=no
16238 ;;
16239 freebsd-*)
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16241 need_version=yes
16242 ;;
16243 esac
16244 shlibpath_var=LD_LIBRARY_PATH
16245 case $host_os in
16246 freebsd2*)
16247 shlibpath_overrides_runpath=yes
16248 ;;
16249 freebsd3.01* | freebsdelf3.01*)
16250 shlibpath_overrides_runpath=yes
16251 hardcode_into_libs=yes
16252 ;;
16253 *) # from 3.2 on
16254 shlibpath_overrides_runpath=no
16255 hardcode_into_libs=yes
16256 ;;
16257 esac
16258 ;;
16259
16260gnu*)
16261 version_type=linux
16262 need_lib_prefix=no
16263 need_version=no
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 hardcode_into_libs=yes
16268 ;;
16269
16270hpux9* | hpux10* | hpux11*)
16271 # Give a soname corresponding to the major version so that dld.sl refuses to
16272 # link against other versions.
16273 version_type=sunos
16274 need_lib_prefix=no
16275 need_version=no
16276 case "$host_cpu" in
16277 ia64*)
16278 shrext='.so'
16279 hardcode_into_libs=yes
16280 dynamic_linker="$host_os dld.so"
16281 shlibpath_var=LD_LIBRARY_PATH
16282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 if test "X$HPUX_IA64_MODE" = X32; then
16286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16287 else
16288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16289 fi
16290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16291 ;;
16292 hppa*64*)
16293 shrext='.sl'
16294 hardcode_into_libs=yes
16295 dynamic_linker="$host_os dld.sl"
16296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16302 ;;
16303 *)
16304 shrext='.sl'
16305 dynamic_linker="$host_os dld.sl"
16306 shlibpath_var=SHLIB_PATH
16307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 ;;
16311 esac
16312 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16313 postinstall_cmds='chmod 555 $lib'
16314 ;;
16315
16316irix5* | irix6* | nonstopux*)
16317 case $host_os in
16318 nonstopux*) version_type=nonstopux ;;
16319 *)
16320 if test "$lt_cv_prog_gnu_ld" = yes; then
16321 version_type=linux
16322 else
16323 version_type=irix
16324 fi ;;
16325 esac
16326 need_lib_prefix=no
16327 need_version=no
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16330 case $host_os in
16331 irix5* | nonstopux*)
16332 libsuff= shlibsuff=
16333 ;;
16334 *)
16335 case $LD in # libtool.m4 will add one of these switches to LD
16336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16337 libsuff= shlibsuff= libmagic=32-bit;;
16338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16339 libsuff=32 shlibsuff=N32 libmagic=N32;;
16340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16342 *) libsuff= shlibsuff= libmagic=never-match;;
16343 esac
16344 ;;
16345 esac
16346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16347 shlibpath_overrides_runpath=no
16348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16350 hardcode_into_libs=yes
16351 ;;
16352
16353# No shared lib support for Linux oldld, aout, or coff.
16354linux*oldld* | linux*aout* | linux*coff*)
16355 dynamic_linker=no
16356 ;;
16357
16358# This must be Linux ELF.
16359linux*)
16360 version_type=linux
16361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 shlibpath_overrides_runpath=no
16368 # This implies no fast_install, which is unacceptable.
16369 # Some rework will be needed to allow for fast_install
16370 # before this can be enabled.
16371 hardcode_into_libs=yes
16372
16373 # Append ld.so.conf contents to the search path
16374 if test -f /etc/ld.so.conf; then
16375 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16376 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16377 fi
16378
16379 # We used to test for /lib/ld.so.1 and disable shared libraries on
16380 # powerpc, because MkLinux only supported shared libraries with the
16381 # GNU dynamic linker. Since this was broken with cross compilers,
16382 # most powerpc-linux boxes support dynamic linking these days and
16383 # people can always --disable-shared, the test was removed, and we
16384 # assume the GNU/Linux dynamic linker is in use.
16385 dynamic_linker='GNU/Linux ld.so'
16386 ;;
16387
16388knetbsd*-gnu)
16389 version_type=linux
16390 need_lib_prefix=no
16391 need_version=no
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=no
16396 hardcode_into_libs=yes
16397 dynamic_linker='GNU ld.so'
16398 ;;
16399
16400netbsd*)
16401 version_type=sunos
16402 need_lib_prefix=no
16403 need_version=no
16404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16407 dynamic_linker='NetBSD (a.out) ld.so'
16408 else
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 dynamic_linker='NetBSD ld.elf_so'
16412 fi
16413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=yes
16415 hardcode_into_libs=yes
16416 ;;
16417
16418newsos6)
16419 version_type=linux
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 ;;
16424
16425nto-qnx*)
16426 version_type=linux
16427 need_lib_prefix=no
16428 need_version=no
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 shlibpath_overrides_runpath=yes
16433 ;;
16434
16435openbsd*)
16436 version_type=sunos
16437 need_lib_prefix=no
16438 need_version=yes
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16443 case $host_os in
16444 openbsd2.[89] | openbsd2.[89].*)
16445 shlibpath_overrides_runpath=no
16446 ;;
16447 *)
16448 shlibpath_overrides_runpath=yes
16449 ;;
16450 esac
16451 else
16452 shlibpath_overrides_runpath=yes
16453 fi
16454 ;;
16455
16456os2*)
16457 libname_spec='$name'
16458 shrext=".dll"
16459 need_lib_prefix=no
16460 library_names_spec='$libname${shared_ext} $libname.a'
16461 dynamic_linker='OS/2 ld.exe'
16462 shlibpath_var=LIBPATH
16463 ;;
16464
16465osf3* | osf4* | osf5*)
16466 version_type=osf
16467 need_lib_prefix=no
16468 need_version=no
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16473 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16474 ;;
16475
16476sco3.2v5*)
16477 version_type=osf
16478 soname_spec='${libname}${release}${shared_ext}$major'
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 ;;
16482
16483solaris*)
16484 version_type=linux
16485 need_lib_prefix=no
16486 need_version=no
16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16488 soname_spec='${libname}${release}${shared_ext}$major'
16489 shlibpath_var=LD_LIBRARY_PATH
16490 shlibpath_overrides_runpath=yes
16491 hardcode_into_libs=yes
16492 # ldd complains unless libraries are executable
16493 postinstall_cmds='chmod +x $lib'
16494 ;;
16495
16496sunos4*)
16497 version_type=sunos
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 if test "$with_gnu_ld" = yes; then
16503 need_lib_prefix=no
16504 fi
16505 need_version=yes
16506 ;;
16507
16508sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16509 version_type=linux
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 case $host_vendor in
16514 sni)
16515 shlibpath_overrides_runpath=no
16516 need_lib_prefix=no
16517 export_dynamic_flag_spec='${wl}-Blargedynsym'
16518 runpath_var=LD_RUN_PATH
16519 ;;
16520 siemens)
16521 need_lib_prefix=no
16522 ;;
16523 motorola)
16524 need_lib_prefix=no
16525 need_version=no
16526 shlibpath_overrides_runpath=no
16527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16528 ;;
16529 esac
16530 ;;
16531
16532sysv4*MP*)
16533 if test -d /usr/nec ;then
16534 version_type=linux
16535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16536 soname_spec='$libname${shared_ext}.$major'
16537 shlibpath_var=LD_LIBRARY_PATH
16538 fi
16539 ;;
16540
16541uts4*)
16542 version_type=linux
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 ;;
16547
16548*)
16549 dynamic_linker=no
16550 ;;
16551esac
16552echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16553echo "${ECHO_T}$dynamic_linker" >&6
16554test "$dynamic_linker" = no && can_build_shared=no
16555
16556echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16557echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16558hardcode_action_GCJ=
16559if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16560 test -n "$runpath_var GCJ" || \
16561 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16562
16563 # We can hardcode non-existant directories.
16564 if test "$hardcode_direct_GCJ" != no &&
16565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16566 # have to relink, otherwise we might link with an installed library
16567 # when we should be linking with a yet-to-be-installed one
16568 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16569 test "$hardcode_minus_L_GCJ" != no; then
16570 # Linking always hardcodes the temporary library directory.
16571 hardcode_action_GCJ=relink
16572 else
16573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16574 hardcode_action_GCJ=immediate
16575 fi
16576else
16577 # We cannot hardcode anything, or else we can only hardcode existing
16578 # directories.
16579 hardcode_action_GCJ=unsupported
16580fi
16581echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16582echo "${ECHO_T}$hardcode_action_GCJ" >&6
16583
16584if test "$hardcode_action_GCJ" = relink; then
16585 # Fast installation is not supported
16586 enable_fast_install=no
16587elif test "$shlibpath_overrides_runpath" = yes ||
16588 test "$enable_shared" = no; then
16589 # Fast installation is not necessary
16590 enable_fast_install=needless
16591fi
16592
16593striplib=
16594old_striplib=
16595echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16596echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16597if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16598 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16599 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16600 echo "$as_me:$LINENO: result: yes" >&5
16601echo "${ECHO_T}yes" >&6
16602else
16603# FIXME - insert some real tests, host_os isn't really good enough
16604 case $host_os in
16605 darwin*)
16606 if test -n "$STRIP" ; then
16607 striplib="$STRIP -x"
16608 echo "$as_me:$LINENO: result: yes" >&5
16609echo "${ECHO_T}yes" >&6
16610 else
16611 echo "$as_me:$LINENO: result: no" >&5
16612echo "${ECHO_T}no" >&6
16613fi
16614 ;;
16615 *)
16616 echo "$as_me:$LINENO: result: no" >&5
16617echo "${ECHO_T}no" >&6
16618 ;;
16619 esac
16620fi
16621
16622if test "x$enable_dlopen" != xyes; then
16623 enable_dlopen=unknown
16624 enable_dlopen_self=unknown
16625 enable_dlopen_self_static=unknown
16626else
16627 lt_cv_dlopen=no
16628 lt_cv_dlopen_libs=
16629
16630 case $host_os in
16631 beos*)
16632 lt_cv_dlopen="load_add_on"
16633 lt_cv_dlopen_libs=
16634 lt_cv_dlopen_self=yes
16635 ;;
16636
16637 mingw* | pw32*)
16638 lt_cv_dlopen="LoadLibrary"
16639 lt_cv_dlopen_libs=
16640 ;;
16641
16642 cygwin*)
16643 lt_cv_dlopen="dlopen"
16644 lt_cv_dlopen_libs=
16645 ;;
16646
16647 darwin*)
16648 # if libdl is installed we need to link against it
16649 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16650echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16651if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653else
16654 ac_check_lib_save_LIBS=$LIBS
16655LIBS="-ldl $LIBS"
16656cat >conftest.$ac_ext <<_ACEOF
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662
16663/* Override any gcc2 internal prototype to avoid an error. */
16664#ifdef __cplusplus
16665extern "C"
16666#endif
16667/* We use char because int might match the return type of a gcc2
16668 builtin and then its argument prototype would still apply. */
16669char dlopen ();
16670int
16671main ()
16672{
16673dlopen ();
16674 ;
16675 return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext conftest$ac_exeext
16679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16680 (eval $ac_link) 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016687 { ac_try='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_lib_dl_dlopen=yes
16701else
16702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
16705ac_cv_lib_dl_dlopen=no
16706fi
16707rm -f conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
16709LIBS=$ac_check_lib_save_LIBS
16710fi
16711echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16712echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16713if test $ac_cv_lib_dl_dlopen = yes; then
16714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16715else
16716
16717 lt_cv_dlopen="dyld"
16718 lt_cv_dlopen_libs=
16719 lt_cv_dlopen_self=yes
16720
16721fi
16722
16723 ;;
16724
16725 *)
16726 echo "$as_me:$LINENO: checking for shl_load" >&5
16727echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16728if test "${ac_cv_func_shl_load+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16739#define shl_load innocuous_shl_load
16740
16741/* System header to define __stub macros and hopefully few prototypes,
16742 which can conflict with char shl_load (); below.
16743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16744 <limits.h> exists even on freestanding compilers. */
16745
16746#ifdef __STDC__
16747# include <limits.h>
16748#else
16749# include <assert.h>
16750#endif
16751
16752#undef shl_load
16753
16754/* Override any gcc2 internal prototype to avoid an error. */
16755#ifdef __cplusplus
16756extern "C"
16757{
16758#endif
16759/* We use char because int might match the return type of a gcc2
16760 builtin and then its argument prototype would still apply. */
16761char shl_load ();
16762/* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765#if defined (__stub_shl_load) || defined (__stub___shl_load)
16766choke me
16767#else
16768char (*f) () = shl_load;
16769#endif
16770#ifdef __cplusplus
16771}
16772#endif
16773
16774int
16775main ()
16776{
16777return f != shl_load;
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext conftest$ac_exeext
16783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_func_shl_load=yes
16805else
16806 echo "$as_me: failed program was:" >&5
16807sed 's/^/| /' conftest.$ac_ext >&5
16808
16809ac_cv_func_shl_load=no
16810fi
16811rm -f conftest.err conftest.$ac_objext \
16812 conftest$ac_exeext conftest.$ac_ext
16813fi
16814echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16815echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16816if test $ac_cv_func_shl_load = yes; then
16817 lt_cv_dlopen="shl_load"
16818else
16819 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16820echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16821if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 ac_check_lib_save_LIBS=$LIBS
16825LIBS="-ldld $LIBS"
16826cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832
16833/* Override any gcc2 internal prototype to avoid an error. */
16834#ifdef __cplusplus
16835extern "C"
16836#endif
16837/* We use char because int might match the return type of a gcc2
16838 builtin and then its argument prototype would still apply. */
16839char shl_load ();
16840int
16841main ()
16842{
16843shl_load ();
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848rm -f conftest.$ac_objext conftest$ac_exeext
16849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016857 { ac_try='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_cv_lib_dld_shl_load=yes
16871else
16872 echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875ac_cv_lib_dld_shl_load=no
16876fi
16877rm -f conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16883if test $ac_cv_lib_dld_shl_load = yes; then
16884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16885else
16886 echo "$as_me:$LINENO: checking for dlopen" >&5
16887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16888if test "${ac_cv_func_dlopen+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 cat >conftest.$ac_ext <<_ACEOF
16892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
16897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16899#define dlopen innocuous_dlopen
16900
16901/* System header to define __stub macros and hopefully few prototypes,
16902 which can conflict with char dlopen (); below.
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904 <limits.h> exists even on freestanding compilers. */
16905
16906#ifdef __STDC__
16907# include <limits.h>
16908#else
16909# include <assert.h>
16910#endif
16911
16912#undef dlopen
16913
16914/* Override any gcc2 internal prototype to avoid an error. */
16915#ifdef __cplusplus
16916extern "C"
16917{
16918#endif
16919/* We use char because int might match the return type of a gcc2
16920 builtin and then its argument prototype would still apply. */
16921char dlopen ();
16922/* The GNU C library defines this for functions which it implements
16923 to always fail with ENOSYS. Some functions are actually named
16924 something starting with __ and the normal name is an alias. */
16925#if defined (__stub_dlopen) || defined (__stub___dlopen)
16926choke me
16927#else
16928char (*f) () = dlopen;
16929#endif
16930#ifdef __cplusplus
16931}
16932#endif
16933
16934int
16935main ()
16936{
16937return f != dlopen;
16938 ;
16939 return 0;
16940}
16941_ACEOF
16942rm -f conftest.$ac_objext conftest$ac_exeext
16943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16944 (eval $ac_link) 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016951 { ac_try='test -z "$ac_c_werror_flag"
16952 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest$ac_exeext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_func_dlopen=yes
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969ac_cv_func_dlopen=no
16970fi
16971rm -f conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973fi
16974echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16975echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16976if test $ac_cv_func_dlopen = yes; then
16977 lt_cv_dlopen="dlopen"
16978else
16979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 ac_check_lib_save_LIBS=$LIBS
16985LIBS="-ldl $LIBS"
16986cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992
16993/* Override any gcc2 internal prototype to avoid an error. */
16994#ifdef __cplusplus
16995extern "C"
16996#endif
16997/* We use char because int might match the return type of a gcc2
16998 builtin and then its argument prototype would still apply. */
16999char dlopen ();
17000int
17001main ()
17002{
17003dlopen ();
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008rm -f conftest.$ac_objext conftest$ac_exeext
17009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010 (eval $ac_link) 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest$ac_exeext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_lib_dl_dlopen=yes
17031else
17032 echo "$as_me: failed program was:" >&5
17033sed 's/^/| /' conftest.$ac_ext >&5
17034
17035ac_cv_lib_dl_dlopen=no
17036fi
17037rm -f conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17039LIBS=$ac_check_lib_save_LIBS
17040fi
17041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17043if test $ac_cv_lib_dl_dlopen = yes; then
17044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17045else
17046 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17047echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17048if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17050else
17051 ac_check_lib_save_LIBS=$LIBS
17052LIBS="-lsvld $LIBS"
17053cat >conftest.$ac_ext <<_ACEOF
17054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
17059
17060/* Override any gcc2 internal prototype to avoid an error. */
17061#ifdef __cplusplus
17062extern "C"
17063#endif
17064/* We use char because int might match the return type of a gcc2
17065 builtin and then its argument prototype would still apply. */
17066char dlopen ();
17067int
17068main ()
17069{
17070dlopen ();
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext conftest$ac_exeext
17076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_lib_svld_dlopen=yes
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102ac_cv_lib_svld_dlopen=no
17103fi
17104rm -f conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106LIBS=$ac_check_lib_save_LIBS
17107fi
17108echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17109echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17110if test $ac_cv_lib_svld_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17112else
17113 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17114echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17115if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 ac_check_lib_save_LIBS=$LIBS
17119LIBS="-ldld $LIBS"
17120cat >conftest.$ac_ext <<_ACEOF
17121/* confdefs.h. */
17122_ACEOF
17123cat confdefs.h >>conftest.$ac_ext
17124cat >>conftest.$ac_ext <<_ACEOF
17125/* end confdefs.h. */
17126
17127/* Override any gcc2 internal prototype to avoid an error. */
17128#ifdef __cplusplus
17129extern "C"
17130#endif
17131/* We use char because int might match the return type of a gcc2
17132 builtin and then its argument prototype would still apply. */
17133char dld_link ();
17134int
17135main ()
17136{
17137dld_link ();
17138 ;
17139 return 0;
17140}
17141_ACEOF
17142rm -f conftest.$ac_objext conftest$ac_exeext
17143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17144 (eval $ac_link) 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017151 { ac_try='test -z "$ac_c_werror_flag"
17152 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_lib_dld_dld_link=yes
17165else
17166 echo "$as_me: failed program was:" >&5
17167sed 's/^/| /' conftest.$ac_ext >&5
17168
17169ac_cv_lib_dld_dld_link=no
17170fi
17171rm -f conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173LIBS=$ac_check_lib_save_LIBS
17174fi
17175echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17176echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17177if test $ac_cv_lib_dld_dld_link = yes; then
17178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17179fi
17180
17181
17182fi
17183
17184
17185fi
17186
17187
17188fi
17189
17190
17191fi
17192
17193
17194fi
17195
17196 ;;
17197 esac
17198
17199 if test "x$lt_cv_dlopen" != xno; then
17200 enable_dlopen=yes
17201 else
17202 enable_dlopen=no
17203 fi
17204
17205 case $lt_cv_dlopen in
17206 dlopen)
17207 save_CPPFLAGS="$CPPFLAGS"
17208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17209
17210 save_LDFLAGS="$LDFLAGS"
17211 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17212
17213 save_LIBS="$LIBS"
17214 LIBS="$lt_cv_dlopen_libs $LIBS"
17215
17216 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17217echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17218if test "${lt_cv_dlopen_self+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 if test "$cross_compiling" = yes; then :
17222 lt_cv_dlopen_self=cross
17223else
17224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17225 lt_status=$lt_dlunknown
17226 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +000017227#line 17227 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017228#include "confdefs.h"
17229
17230#if HAVE_DLFCN_H
17231#include <dlfcn.h>
17232#endif
17233
17234#include <stdio.h>
17235
17236#ifdef RTLD_GLOBAL
17237# define LT_DLGLOBAL RTLD_GLOBAL
17238#else
17239# ifdef DL_GLOBAL
17240# define LT_DLGLOBAL DL_GLOBAL
17241# else
17242# define LT_DLGLOBAL 0
17243# endif
17244#endif
17245
17246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17247 find out it does not work in some platform. */
17248#ifndef LT_DLLAZY_OR_NOW
17249# ifdef RTLD_LAZY
17250# define LT_DLLAZY_OR_NOW RTLD_LAZY
17251# else
17252# ifdef DL_LAZY
17253# define LT_DLLAZY_OR_NOW DL_LAZY
17254# else
17255# ifdef RTLD_NOW
17256# define LT_DLLAZY_OR_NOW RTLD_NOW
17257# else
17258# ifdef DL_NOW
17259# define LT_DLLAZY_OR_NOW DL_NOW
17260# else
17261# define LT_DLLAZY_OR_NOW 0
17262# endif
17263# endif
17264# endif
17265# endif
17266#endif
17267
17268#ifdef __cplusplus
17269extern "C" void exit (int);
17270#endif
17271
17272void fnord() { int i=42;}
17273int main ()
17274{
17275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17276 int status = $lt_dlunknown;
17277
17278 if (self)
17279 {
17280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17282 /* dlclose (self); */
17283 }
17284
17285 exit (status);
17286}
17287EOF
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17293 (./conftest; exit; ) 2>/dev/null
17294 lt_status=$?
17295 case x$lt_status in
17296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17298 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17299 esac
17300 else :
17301 # compilation failed
17302 lt_cv_dlopen_self=no
17303 fi
17304fi
17305rm -fr conftest*
17306
17307
17308fi
17309echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17310echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17311
17312 if test "x$lt_cv_dlopen_self" = xyes; then
17313 LDFLAGS="$LDFLAGS $link_static_flag"
17314 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17315echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17316if test "${lt_cv_dlopen_self_static+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319 if test "$cross_compiling" = yes; then :
17320 lt_cv_dlopen_self_static=cross
17321else
17322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17323 lt_status=$lt_dlunknown
17324 cat > conftest.$ac_ext <<EOF
drh91636d52005-11-24 23:14:00 +000017325#line 17325 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017326#include "confdefs.h"
17327
17328#if HAVE_DLFCN_H
17329#include <dlfcn.h>
17330#endif
17331
17332#include <stdio.h>
17333
17334#ifdef RTLD_GLOBAL
17335# define LT_DLGLOBAL RTLD_GLOBAL
17336#else
17337# ifdef DL_GLOBAL
17338# define LT_DLGLOBAL DL_GLOBAL
17339# else
17340# define LT_DLGLOBAL 0
17341# endif
17342#endif
17343
17344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17345 find out it does not work in some platform. */
17346#ifndef LT_DLLAZY_OR_NOW
17347# ifdef RTLD_LAZY
17348# define LT_DLLAZY_OR_NOW RTLD_LAZY
17349# else
17350# ifdef DL_LAZY
17351# define LT_DLLAZY_OR_NOW DL_LAZY
17352# else
17353# ifdef RTLD_NOW
17354# define LT_DLLAZY_OR_NOW RTLD_NOW
17355# else
17356# ifdef DL_NOW
17357# define LT_DLLAZY_OR_NOW DL_NOW
17358# else
17359# define LT_DLLAZY_OR_NOW 0
17360# endif
17361# endif
17362# endif
17363# endif
17364#endif
17365
17366#ifdef __cplusplus
17367extern "C" void exit (int);
17368#endif
17369
17370void fnord() { int i=42;}
17371int main ()
17372{
17373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17374 int status = $lt_dlunknown;
17375
17376 if (self)
17377 {
17378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17380 /* dlclose (self); */
17381 }
17382
17383 exit (status);
17384}
17385EOF
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17391 (./conftest; exit; ) 2>/dev/null
17392 lt_status=$?
17393 case x$lt_status in
17394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17396 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17397 esac
17398 else :
17399 # compilation failed
17400 lt_cv_dlopen_self_static=no
17401 fi
17402fi
17403rm -fr conftest*
17404
17405
17406fi
17407echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17408echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17409 fi
17410
17411 CPPFLAGS="$save_CPPFLAGS"
17412 LDFLAGS="$save_LDFLAGS"
17413 LIBS="$save_LIBS"
17414 ;;
17415 esac
17416
17417 case $lt_cv_dlopen_self in
17418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17419 *) enable_dlopen_self=unknown ;;
17420 esac
17421
17422 case $lt_cv_dlopen_self_static in
17423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17424 *) enable_dlopen_self_static=unknown ;;
17425 esac
17426fi
17427
17428
17429# The else clause should only fire when bootstrapping the
17430# libtool distribution, otherwise you forgot to ship ltmain.sh
17431# with your package, and you will get complaints that there are
17432# no rules to generate ltmain.sh.
17433if test -f "$ltmain"; then
17434 # See if we are running on zsh, and set the options which allow our commands through
17435 # without removal of \ escapes.
17436 if test -n "${ZSH_VERSION+set}" ; then
17437 setopt NO_GLOB_SUBST
17438 fi
17439 # Now quote all the things that may contain metacharacters while being
17440 # careful not to overquote the AC_SUBSTed values. We take copies of the
17441 # variables and quote the copies for generation of the libtool script.
17442 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17443 SED SHELL STRIP \
17444 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17445 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17446 deplibs_check_method reload_flag reload_cmds need_locks \
17447 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17448 lt_cv_sys_global_symbol_to_c_name_address \
17449 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17450 old_postinstall_cmds old_postuninstall_cmds \
17451 compiler_GCJ \
17452 CC_GCJ \
17453 LD_GCJ \
17454 lt_prog_compiler_wl_GCJ \
17455 lt_prog_compiler_pic_GCJ \
17456 lt_prog_compiler_static_GCJ \
17457 lt_prog_compiler_no_builtin_flag_GCJ \
17458 export_dynamic_flag_spec_GCJ \
17459 thread_safe_flag_spec_GCJ \
17460 whole_archive_flag_spec_GCJ \
17461 enable_shared_with_static_runtimes_GCJ \
17462 old_archive_cmds_GCJ \
17463 old_archive_from_new_cmds_GCJ \
17464 predep_objects_GCJ \
17465 postdep_objects_GCJ \
17466 predeps_GCJ \
17467 postdeps_GCJ \
17468 compiler_lib_search_path_GCJ \
17469 archive_cmds_GCJ \
17470 archive_expsym_cmds_GCJ \
17471 postinstall_cmds_GCJ \
17472 postuninstall_cmds_GCJ \
17473 old_archive_from_expsyms_cmds_GCJ \
17474 allow_undefined_flag_GCJ \
17475 no_undefined_flag_GCJ \
17476 export_symbols_cmds_GCJ \
17477 hardcode_libdir_flag_spec_GCJ \
17478 hardcode_libdir_flag_spec_ld_GCJ \
17479 hardcode_libdir_separator_GCJ \
17480 hardcode_automatic_GCJ \
17481 module_cmds_GCJ \
17482 module_expsym_cmds_GCJ \
17483 lt_cv_prog_compiler_c_o_GCJ \
17484 exclude_expsyms_GCJ \
17485 include_expsyms_GCJ; do
17486
17487 case $var in
17488 old_archive_cmds_GCJ | \
17489 old_archive_from_new_cmds_GCJ | \
17490 archive_cmds_GCJ | \
17491 archive_expsym_cmds_GCJ | \
17492 module_cmds_GCJ | \
17493 module_expsym_cmds_GCJ | \
17494 old_archive_from_expsyms_cmds_GCJ | \
17495 export_symbols_cmds_GCJ | \
17496 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17497 postinstall_cmds | postuninstall_cmds | \
17498 old_postinstall_cmds | old_postuninstall_cmds | \
17499 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17500 # Double-quote double-evaled strings.
17501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17502 ;;
17503 *)
17504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17505 ;;
17506 esac
17507 done
17508
17509 case $lt_echo in
17510 *'\$0 --fallback-echo"')
17511 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17512 ;;
17513 esac
17514
17515cfgfile="$ofile"
17516
17517 cat <<__EOF__ >> "$cfgfile"
17518# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17519
17520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17521
17522# Shell to use when invoking shell scripts.
17523SHELL=$lt_SHELL
17524
17525# Whether or not to build shared libraries.
17526build_libtool_libs=$enable_shared
17527
17528# Whether or not to build static libraries.
17529build_old_libs=$enable_static
17530
17531# Whether or not to add -lc for building shared libraries.
17532build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17533
17534# Whether or not to disallow shared libs when runtime libs are static
17535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17536
17537# Whether or not to optimize for fast installation.
17538fast_install=$enable_fast_install
17539
17540# The host system.
17541host_alias=$host_alias
17542host=$host
17543
17544# An echo program that does not interpret backslashes.
17545echo=$lt_echo
17546
17547# The archiver.
17548AR=$lt_AR
17549AR_FLAGS=$lt_AR_FLAGS
17550
17551# A C compiler.
17552LTCC=$lt_LTCC
17553
17554# A language-specific compiler.
17555CC=$lt_compiler_GCJ
17556
17557# Is the compiler the GNU C compiler?
17558with_gcc=$GCC_GCJ
17559
17560# An ERE matcher.
17561EGREP=$lt_EGREP
17562
17563# The linker used to build libraries.
17564LD=$lt_LD_GCJ
17565
17566# Whether we need hard or soft links.
17567LN_S=$lt_LN_S
17568
17569# A BSD-compatible nm program.
17570NM=$lt_NM
17571
17572# A symbol stripping program
17573STRIP=$lt_STRIP
17574
17575# Used to examine libraries when file_magic_cmd begins "file"
17576MAGIC_CMD=$MAGIC_CMD
17577
17578# Used on cygwin: DLL creation program.
17579DLLTOOL="$DLLTOOL"
17580
17581# Used on cygwin: object dumper.
17582OBJDUMP="$OBJDUMP"
17583
17584# Used on cygwin: assembler.
17585AS="$AS"
17586
17587# The name of the directory that contains temporary libtool files.
17588objdir=$objdir
17589
17590# How to create reloadable object files.
17591reload_flag=$lt_reload_flag
17592reload_cmds=$lt_reload_cmds
17593
17594# How to pass a linker flag through the compiler.
17595wl=$lt_lt_prog_compiler_wl_GCJ
17596
17597# Object file suffix (normally "o").
17598objext="$ac_objext"
17599
17600# Old archive suffix (normally "a").
17601libext="$libext"
17602
17603# Shared library suffix (normally ".so").
17604shrext='$shrext'
17605
17606# Executable file suffix (normally "").
17607exeext="$exeext"
17608
17609# Additional compiler flags for building library objects.
17610pic_flag=$lt_lt_prog_compiler_pic_GCJ
17611pic_mode=$pic_mode
17612
17613# What is the maximum length of a command?
17614max_cmd_len=$lt_cv_sys_max_cmd_len
17615
17616# Does compiler simultaneously support -c and -o options?
17617compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17618
17619# Must we lock files when doing compilation ?
17620need_locks=$lt_need_locks
17621
17622# Do we need the lib prefix for modules?
17623need_lib_prefix=$need_lib_prefix
17624
17625# Do we need a version for libraries?
17626need_version=$need_version
17627
17628# Whether dlopen is supported.
17629dlopen_support=$enable_dlopen
17630
17631# Whether dlopen of programs is supported.
17632dlopen_self=$enable_dlopen_self
17633
17634# Whether dlopen of statically linked programs is supported.
17635dlopen_self_static=$enable_dlopen_self_static
17636
17637# Compiler flag to prevent dynamic linking.
17638link_static_flag=$lt_lt_prog_compiler_static_GCJ
17639
17640# Compiler flag to turn off builtin functions.
17641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17642
17643# Compiler flag to allow reflexive dlopens.
17644export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17645
17646# Compiler flag to generate shared objects directly from archives.
17647whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17648
17649# Compiler flag to generate thread-safe objects.
17650thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17651
17652# Library versioning type.
17653version_type=$version_type
17654
17655# Format of library name prefix.
17656libname_spec=$lt_libname_spec
17657
17658# List of archive names. First name is the real one, the rest are links.
17659# The last name is the one that the linker finds with -lNAME.
17660library_names_spec=$lt_library_names_spec
17661
17662# The coded name of the library, if different from the real name.
17663soname_spec=$lt_soname_spec
17664
17665# Commands used to build and install an old-style archive.
17666RANLIB=$lt_RANLIB
17667old_archive_cmds=$lt_old_archive_cmds_GCJ
17668old_postinstall_cmds=$lt_old_postinstall_cmds
17669old_postuninstall_cmds=$lt_old_postuninstall_cmds
17670
17671# Create an old-style archive from a shared archive.
17672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17673
17674# Create a temporary old-style archive to link instead of a shared archive.
17675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17676
17677# Commands used to build and install a shared archive.
17678archive_cmds=$lt_archive_cmds_GCJ
17679archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17680postinstall_cmds=$lt_postinstall_cmds
17681postuninstall_cmds=$lt_postuninstall_cmds
17682
17683# Commands used to build a loadable module (assumed same as above if empty)
17684module_cmds=$lt_module_cmds_GCJ
17685module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17686
17687# Commands to strip libraries.
17688old_striplib=$lt_old_striplib
17689striplib=$lt_striplib
17690
17691# Dependencies to place before the objects being linked to create a
17692# shared library.
17693predep_objects=$lt_predep_objects_GCJ
17694
17695# Dependencies to place after the objects being linked to create a
17696# shared library.
17697postdep_objects=$lt_postdep_objects_GCJ
17698
17699# Dependencies to place before the objects being linked to create a
17700# shared library.
17701predeps=$lt_predeps_GCJ
17702
17703# Dependencies to place after the objects being linked to create a
17704# shared library.
17705postdeps=$lt_postdeps_GCJ
17706
17707# The library search path used internally by the compiler when linking
17708# a shared library.
17709compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17710
17711# Method to check whether dependent libraries are shared objects.
17712deplibs_check_method=$lt_deplibs_check_method
17713
17714# Command to use when deplibs_check_method == file_magic.
17715file_magic_cmd=$lt_file_magic_cmd
17716
17717# Flag that allows shared libraries with undefined symbols to be built.
17718allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17719
17720# Flag that forces no undefined symbols.
17721no_undefined_flag=$lt_no_undefined_flag_GCJ
17722
17723# Commands used to finish a libtool library installation in a directory.
17724finish_cmds=$lt_finish_cmds
17725
17726# Same as above, but a single script fragment to be evaled but not shown.
17727finish_eval=$lt_finish_eval
17728
17729# Take the output of nm and produce a listing of raw symbols and C names.
17730global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17731
17732# Transform the output of nm in a proper C declaration
17733global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17734
17735# Transform the output of nm in a C name address pair
17736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17737
17738# This is the shared library runtime path variable.
17739runpath_var=$runpath_var
17740
17741# This is the shared library path variable.
17742shlibpath_var=$shlibpath_var
17743
17744# Is shlibpath searched before the hard-coded library search path?
17745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17746
17747# How to hardcode a shared library path into an executable.
17748hardcode_action=$hardcode_action_GCJ
17749
17750# Whether we should hardcode library paths into libraries.
17751hardcode_into_libs=$hardcode_into_libs
17752
17753# Flag to hardcode \$libdir into a binary during linking.
17754# This must work even if \$libdir does not exist.
17755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17756
17757# If ld is used when linking, flag to hardcode \$libdir into
17758# a binary during linking. This must work even if \$libdir does
17759# not exist.
17760hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17761
17762# Whether we need a single -rpath flag with a separated argument.
17763hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17764
17765# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17766# resulting binary.
17767hardcode_direct=$hardcode_direct_GCJ
17768
17769# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17770# resulting binary.
17771hardcode_minus_L=$hardcode_minus_L_GCJ
17772
17773# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17774# the resulting binary.
17775hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17776
17777# Set to yes if building a shared library automatically hardcodes DIR into the library
17778# and all subsequent libraries and executables linked against it.
17779hardcode_automatic=$hardcode_automatic_GCJ
17780
17781# Variables whose values should be saved in libtool wrapper scripts and
17782# restored at relink time.
17783variables_saved_for_relink="$variables_saved_for_relink"
17784
17785# Whether libtool must link a program against all its dependency libraries.
17786link_all_deplibs=$link_all_deplibs_GCJ
17787
17788# Compile-time system search path for libraries
17789sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17790
17791# Run-time system search path for libraries
17792sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17793
17794# Fix the shell variable \$srcfile for the compiler.
17795fix_srcfile_path="$fix_srcfile_path_GCJ"
17796
17797# Set to yes if exported symbols are required.
17798always_export_symbols=$always_export_symbols_GCJ
17799
17800# The commands to list exported symbols.
17801export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17802
17803# The commands to extract the exported symbol list from a shared archive.
17804extract_expsyms_cmds=$lt_extract_expsyms_cmds
17805
17806# Symbols that should not be listed in the preloaded symbols.
17807exclude_expsyms=$lt_exclude_expsyms_GCJ
17808
17809# Symbols that must always be exported.
17810include_expsyms=$lt_include_expsyms_GCJ
17811
17812# ### END LIBTOOL TAG CONFIG: $tagname
17813
17814__EOF__
17815
17816
17817else
17818 # If there is no Makefile yet, we rely on a make rule to execute
17819 # `config.status --recheck' to rerun these tests and create the
17820 # libtool script then.
17821 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17822 if test -f "$ltmain_in"; then
17823 test -f Makefile && make "$ltmain"
17824 fi
17825fi
17826
17827
17828ac_ext=c
17829ac_cpp='$CPP $CPPFLAGS'
17830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17832ac_compiler_gnu=$ac_cv_c_compiler_gnu
17833
17834CC="$lt_save_CC"
17835
17836 else
17837 tagname=""
17838 fi
17839 ;;
17840
17841 RC)
17842
17843
17844
17845# Source file extension for RC test sources.
17846ac_ext=rc
17847
17848# Object file extension for compiled RC test sources.
17849objext=o
17850objext_RC=$objext
17851
17852# Code to be used in simple compile tests
17853lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17854
17855# Code to be used in simple link tests
17856lt_simple_link_test_code="$lt_simple_compile_test_code"
17857
17858# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17859
17860# If no C compiler was specified, use CC.
17861LTCC=${LTCC-"$CC"}
17862
17863# Allow CC to be a program name with arguments.
17864compiler=$CC
17865
17866
17867# Allow CC to be a program name with arguments.
17868lt_save_CC="$CC"
17869CC=${RC-"windres"}
17870compiler=$CC
17871compiler_RC=$CC
17872lt_cv_prog_compiler_c_o_RC=yes
17873
17874# The else clause should only fire when bootstrapping the
17875# libtool distribution, otherwise you forgot to ship ltmain.sh
17876# with your package, and you will get complaints that there are
17877# no rules to generate ltmain.sh.
17878if test -f "$ltmain"; then
17879 # See if we are running on zsh, and set the options which allow our commands through
17880 # without removal of \ escapes.
17881 if test -n "${ZSH_VERSION+set}" ; then
17882 setopt NO_GLOB_SUBST
17883 fi
17884 # Now quote all the things that may contain metacharacters while being
17885 # careful not to overquote the AC_SUBSTed values. We take copies of the
17886 # variables and quote the copies for generation of the libtool script.
17887 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17888 SED SHELL STRIP \
17889 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17890 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17891 deplibs_check_method reload_flag reload_cmds need_locks \
17892 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17893 lt_cv_sys_global_symbol_to_c_name_address \
17894 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17895 old_postinstall_cmds old_postuninstall_cmds \
17896 compiler_RC \
17897 CC_RC \
17898 LD_RC \
17899 lt_prog_compiler_wl_RC \
17900 lt_prog_compiler_pic_RC \
17901 lt_prog_compiler_static_RC \
17902 lt_prog_compiler_no_builtin_flag_RC \
17903 export_dynamic_flag_spec_RC \
17904 thread_safe_flag_spec_RC \
17905 whole_archive_flag_spec_RC \
17906 enable_shared_with_static_runtimes_RC \
17907 old_archive_cmds_RC \
17908 old_archive_from_new_cmds_RC \
17909 predep_objects_RC \
17910 postdep_objects_RC \
17911 predeps_RC \
17912 postdeps_RC \
17913 compiler_lib_search_path_RC \
17914 archive_cmds_RC \
17915 archive_expsym_cmds_RC \
17916 postinstall_cmds_RC \
17917 postuninstall_cmds_RC \
17918 old_archive_from_expsyms_cmds_RC \
17919 allow_undefined_flag_RC \
17920 no_undefined_flag_RC \
17921 export_symbols_cmds_RC \
17922 hardcode_libdir_flag_spec_RC \
17923 hardcode_libdir_flag_spec_ld_RC \
17924 hardcode_libdir_separator_RC \
17925 hardcode_automatic_RC \
17926 module_cmds_RC \
17927 module_expsym_cmds_RC \
17928 lt_cv_prog_compiler_c_o_RC \
17929 exclude_expsyms_RC \
17930 include_expsyms_RC; do
17931
17932 case $var in
17933 old_archive_cmds_RC | \
17934 old_archive_from_new_cmds_RC | \
17935 archive_cmds_RC | \
17936 archive_expsym_cmds_RC | \
17937 module_cmds_RC | \
17938 module_expsym_cmds_RC | \
17939 old_archive_from_expsyms_cmds_RC | \
17940 export_symbols_cmds_RC | \
17941 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17942 postinstall_cmds | postuninstall_cmds | \
17943 old_postinstall_cmds | old_postuninstall_cmds | \
17944 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17945 # Double-quote double-evaled strings.
17946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17947 ;;
17948 *)
17949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17950 ;;
17951 esac
17952 done
17953
17954 case $lt_echo in
17955 *'\$0 --fallback-echo"')
17956 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17957 ;;
17958 esac
17959
17960cfgfile="$ofile"
17961
17962 cat <<__EOF__ >> "$cfgfile"
17963# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17964
17965# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17966
17967# Shell to use when invoking shell scripts.
17968SHELL=$lt_SHELL
17969
17970# Whether or not to build shared libraries.
17971build_libtool_libs=$enable_shared
17972
17973# Whether or not to build static libraries.
17974build_old_libs=$enable_static
17975
17976# Whether or not to add -lc for building shared libraries.
17977build_libtool_need_lc=$archive_cmds_need_lc_RC
17978
17979# Whether or not to disallow shared libs when runtime libs are static
17980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17981
17982# Whether or not to optimize for fast installation.
17983fast_install=$enable_fast_install
17984
17985# The host system.
17986host_alias=$host_alias
17987host=$host
17988
17989# An echo program that does not interpret backslashes.
17990echo=$lt_echo
17991
17992# The archiver.
17993AR=$lt_AR
17994AR_FLAGS=$lt_AR_FLAGS
17995
17996# A C compiler.
17997LTCC=$lt_LTCC
17998
17999# A language-specific compiler.
18000CC=$lt_compiler_RC
18001
18002# Is the compiler the GNU C compiler?
18003with_gcc=$GCC_RC
18004
18005# An ERE matcher.
18006EGREP=$lt_EGREP
18007
18008# The linker used to build libraries.
18009LD=$lt_LD_RC
18010
18011# Whether we need hard or soft links.
18012LN_S=$lt_LN_S
18013
18014# A BSD-compatible nm program.
18015NM=$lt_NM
18016
18017# A symbol stripping program
18018STRIP=$lt_STRIP
18019
18020# Used to examine libraries when file_magic_cmd begins "file"
18021MAGIC_CMD=$MAGIC_CMD
18022
18023# Used on cygwin: DLL creation program.
18024DLLTOOL="$DLLTOOL"
18025
18026# Used on cygwin: object dumper.
18027OBJDUMP="$OBJDUMP"
18028
18029# Used on cygwin: assembler.
18030AS="$AS"
18031
18032# The name of the directory that contains temporary libtool files.
18033objdir=$objdir
18034
18035# How to create reloadable object files.
18036reload_flag=$lt_reload_flag
18037reload_cmds=$lt_reload_cmds
18038
18039# How to pass a linker flag through the compiler.
18040wl=$lt_lt_prog_compiler_wl_RC
18041
18042# Object file suffix (normally "o").
18043objext="$ac_objext"
18044
18045# Old archive suffix (normally "a").
18046libext="$libext"
18047
18048# Shared library suffix (normally ".so").
18049shrext='$shrext'
18050
18051# Executable file suffix (normally "").
18052exeext="$exeext"
18053
18054# Additional compiler flags for building library objects.
18055pic_flag=$lt_lt_prog_compiler_pic_RC
18056pic_mode=$pic_mode
18057
18058# What is the maximum length of a command?
18059max_cmd_len=$lt_cv_sys_max_cmd_len
18060
18061# Does compiler simultaneously support -c and -o options?
18062compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18063
18064# Must we lock files when doing compilation ?
18065need_locks=$lt_need_locks
18066
18067# Do we need the lib prefix for modules?
18068need_lib_prefix=$need_lib_prefix
18069
18070# Do we need a version for libraries?
18071need_version=$need_version
18072
18073# Whether dlopen is supported.
18074dlopen_support=$enable_dlopen
18075
18076# Whether dlopen of programs is supported.
18077dlopen_self=$enable_dlopen_self
18078
18079# Whether dlopen of statically linked programs is supported.
18080dlopen_self_static=$enable_dlopen_self_static
18081
18082# Compiler flag to prevent dynamic linking.
18083link_static_flag=$lt_lt_prog_compiler_static_RC
18084
18085# Compiler flag to turn off builtin functions.
18086no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18087
18088# Compiler flag to allow reflexive dlopens.
18089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18090
18091# Compiler flag to generate shared objects directly from archives.
18092whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18093
18094# Compiler flag to generate thread-safe objects.
18095thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18096
18097# Library versioning type.
18098version_type=$version_type
18099
18100# Format of library name prefix.
18101libname_spec=$lt_libname_spec
18102
18103# List of archive names. First name is the real one, the rest are links.
18104# The last name is the one that the linker finds with -lNAME.
18105library_names_spec=$lt_library_names_spec
18106
18107# The coded name of the library, if different from the real name.
18108soname_spec=$lt_soname_spec
18109
18110# Commands used to build and install an old-style archive.
18111RANLIB=$lt_RANLIB
18112old_archive_cmds=$lt_old_archive_cmds_RC
18113old_postinstall_cmds=$lt_old_postinstall_cmds
18114old_postuninstall_cmds=$lt_old_postuninstall_cmds
18115
18116# Create an old-style archive from a shared archive.
18117old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18118
18119# Create a temporary old-style archive to link instead of a shared archive.
18120old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18121
18122# Commands used to build and install a shared archive.
18123archive_cmds=$lt_archive_cmds_RC
18124archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18125postinstall_cmds=$lt_postinstall_cmds
18126postuninstall_cmds=$lt_postuninstall_cmds
18127
18128# Commands used to build a loadable module (assumed same as above if empty)
18129module_cmds=$lt_module_cmds_RC
18130module_expsym_cmds=$lt_module_expsym_cmds_RC
18131
18132# Commands to strip libraries.
18133old_striplib=$lt_old_striplib
18134striplib=$lt_striplib
18135
18136# Dependencies to place before the objects being linked to create a
18137# shared library.
18138predep_objects=$lt_predep_objects_RC
18139
18140# Dependencies to place after the objects being linked to create a
18141# shared library.
18142postdep_objects=$lt_postdep_objects_RC
18143
18144# Dependencies to place before the objects being linked to create a
18145# shared library.
18146predeps=$lt_predeps_RC
18147
18148# Dependencies to place after the objects being linked to create a
18149# shared library.
18150postdeps=$lt_postdeps_RC
18151
18152# The library search path used internally by the compiler when linking
18153# a shared library.
18154compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18155
18156# Method to check whether dependent libraries are shared objects.
18157deplibs_check_method=$lt_deplibs_check_method
18158
18159# Command to use when deplibs_check_method == file_magic.
18160file_magic_cmd=$lt_file_magic_cmd
18161
18162# Flag that allows shared libraries with undefined symbols to be built.
18163allow_undefined_flag=$lt_allow_undefined_flag_RC
18164
18165# Flag that forces no undefined symbols.
18166no_undefined_flag=$lt_no_undefined_flag_RC
18167
18168# Commands used to finish a libtool library installation in a directory.
18169finish_cmds=$lt_finish_cmds
18170
18171# Same as above, but a single script fragment to be evaled but not shown.
18172finish_eval=$lt_finish_eval
18173
18174# Take the output of nm and produce a listing of raw symbols and C names.
18175global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18176
18177# Transform the output of nm in a proper C declaration
18178global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18179
18180# Transform the output of nm in a C name address pair
18181global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18182
18183# This is the shared library runtime path variable.
18184runpath_var=$runpath_var
18185
18186# This is the shared library path variable.
18187shlibpath_var=$shlibpath_var
18188
18189# Is shlibpath searched before the hard-coded library search path?
18190shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18191
18192# How to hardcode a shared library path into an executable.
18193hardcode_action=$hardcode_action_RC
18194
18195# Whether we should hardcode library paths into libraries.
18196hardcode_into_libs=$hardcode_into_libs
18197
18198# Flag to hardcode \$libdir into a binary during linking.
18199# This must work even if \$libdir does not exist.
18200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18201
18202# If ld is used when linking, flag to hardcode \$libdir into
18203# a binary during linking. This must work even if \$libdir does
18204# not exist.
18205hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18206
18207# Whether we need a single -rpath flag with a separated argument.
18208hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18209
18210# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18211# resulting binary.
18212hardcode_direct=$hardcode_direct_RC
18213
18214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18215# resulting binary.
18216hardcode_minus_L=$hardcode_minus_L_RC
18217
18218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18219# the resulting binary.
18220hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18221
18222# Set to yes if building a shared library automatically hardcodes DIR into the library
18223# and all subsequent libraries and executables linked against it.
18224hardcode_automatic=$hardcode_automatic_RC
18225
18226# Variables whose values should be saved in libtool wrapper scripts and
18227# restored at relink time.
18228variables_saved_for_relink="$variables_saved_for_relink"
18229
18230# Whether libtool must link a program against all its dependency libraries.
18231link_all_deplibs=$link_all_deplibs_RC
18232
18233# Compile-time system search path for libraries
18234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18235
18236# Run-time system search path for libraries
18237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18238
18239# Fix the shell variable \$srcfile for the compiler.
18240fix_srcfile_path="$fix_srcfile_path_RC"
18241
18242# Set to yes if exported symbols are required.
18243always_export_symbols=$always_export_symbols_RC
18244
18245# The commands to list exported symbols.
18246export_symbols_cmds=$lt_export_symbols_cmds_RC
18247
18248# The commands to extract the exported symbol list from a shared archive.
18249extract_expsyms_cmds=$lt_extract_expsyms_cmds
18250
18251# Symbols that should not be listed in the preloaded symbols.
18252exclude_expsyms=$lt_exclude_expsyms_RC
18253
18254# Symbols that must always be exported.
18255include_expsyms=$lt_include_expsyms_RC
18256
18257# ### END LIBTOOL TAG CONFIG: $tagname
18258
18259__EOF__
18260
18261
18262else
18263 # If there is no Makefile yet, we rely on a make rule to execute
18264 # `config.status --recheck' to rerun these tests and create the
18265 # libtool script then.
18266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18267 if test -f "$ltmain_in"; then
18268 test -f Makefile && make "$ltmain"
18269 fi
18270fi
18271
18272
18273ac_ext=c
18274ac_cpp='$CPP $CPPFLAGS'
18275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18277ac_compiler_gnu=$ac_cv_c_compiler_gnu
18278
18279CC="$lt_save_CC"
18280
18281 ;;
18282
18283 *)
18284 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18285echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18286 { (exit 1); exit 1; }; }
18287 ;;
18288 esac
18289
18290 # Append the new tag name to the list of available tags.
18291 if test -n "$tagname" ; then
18292 available_tags="$available_tags $tagname"
18293 fi
18294 fi
18295 done
18296 IFS="$lt_save_ifs"
18297
18298 # Now substitute the updated list of available tags.
18299 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18300 mv "${ofile}T" "$ofile"
18301 chmod +x "$ofile"
18302 else
18303 rm -f "${ofile}T"
18304 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18305echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18306 { (exit 1); exit 1; }; }
18307 fi
18308fi
drh71eb93e2001-09-28 01:34:43 +000018309
drh71eb93e2001-09-28 01:34:43 +000018310
drh71eb93e2001-09-28 01:34:43 +000018311
18312# This can be used to rebuild libtool when needed
18313LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18314
18315# Always use our own libtool.
18316LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18317
18318# Prevent multiple expansion
18319
a.rottmann84e63352003-03-24 09:42:16 +000018320
a.rottmann9bc8b932004-02-29 15:18:31 +000018321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
drh71eb93e2001-09-28 01:34:43 +000018339# Find a good install program. We prefer a C program (faster),
18340# so one script is as good as another. But avoid the broken or
18341# incompatible versions:
18342# SysV /etc/install, /usr/sbin/install
18343# SunOS /usr/etc/install
18344# IRIX /sbin/install
18345# AIX /bin/install
18346# AmigaOS /C/install, which installs bootblocks on floppy discs
18347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018350# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018351# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018352echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18353echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018354if test -z "$INSTALL"; then
18355if test "${ac_cv_path_install+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357else
a.rottmann84e63352003-03-24 09:42:16 +000018358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18359for as_dir in $PATH
18360do
18361 IFS=$as_save_IFS
18362 test -z "$as_dir" && as_dir=.
18363 # Account for people who put trailing slashes in PATH elements.
18364case $as_dir/ in
18365 ./ | .// | /cC/* | \
18366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018368 /usr/ucb/* ) ;;
18369 *)
18370 # OSF1 and SCO ODT 3.0 have their own names for install.
18371 # Don't use installbsd from OSF since it installs stuff as root
18372 # by default.
18373 for ac_prog in ginstall scoinst install; do
18374 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18376 if test $ac_prog = install &&
18377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18378 # AIX install. It has an incompatible calling convention.
18379 :
18380 elif test $ac_prog = install &&
18381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18382 # program-specific install script used by HP pwplus--don't use.
18383 :
18384 else
18385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18386 break 3
18387 fi
18388 fi
drh71eb93e2001-09-28 01:34:43 +000018389 done
a.rottmann84e63352003-03-24 09:42:16 +000018390 done
18391 ;;
18392esac
18393done
18394
drh71eb93e2001-09-28 01:34:43 +000018395
18396fi
18397 if test "${ac_cv_path_install+set}" = set; then
18398 INSTALL=$ac_cv_path_install
18399 else
18400 # As a last resort, use the slow shell script. We don't cache a
18401 # path for INSTALL within a source directory, because that will
18402 # break other packages using the cache if that directory is
18403 # removed, or if the path is relative.
18404 INSTALL=$ac_install_sh
18405 fi
18406fi
a.rottmann84e63352003-03-24 09:42:16 +000018407echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018408echo "${ECHO_T}$INSTALL" >&6
18409
18410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18411# It thinks the first close brace ends the variable substitution.
18412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18413
18414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18415
18416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18417
a.rottmann84e63352003-03-24 09:42:16 +000018418
drh75897232000-05-29 14:26:00 +000018419#########
18420# Set up an appropriate program prefix
18421#
18422if test "$program_prefix" = "NONE"; then
18423 program_prefix=""
18424fi
18425
a.rottmann84e63352003-03-24 09:42:16 +000018426
drh4b2266a2004-11-27 15:52:16 +000018427VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18428echo "Version set to $VERSION"
18429
18430RELEASE=`cat $srcdir/VERSION`
18431echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018432
danielk197799ba19e2005-02-05 07:33:34 +000018433VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018434 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018435 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018436echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018437
drh26d0e2a2005-07-06 13:51:27 +000018438
drh75897232000-05-29 14:26:00 +000018439#########
18440# Check to see if the --with-hints=FILE option is used. If there is none,
18441# then check for a files named "$host.hints" and ../$hosts.hints where
18442# $host is the hostname of the build system. If still no hints are
18443# found, try looking in $system.hints and ../$system.hints where
18444# $system is the result of uname -s.
18445#
drh71eb93e2001-09-28 01:34:43 +000018446
drh75897232000-05-29 14:26:00 +000018447# Check whether --with-hints or --without-hints was given.
18448if test "${with_hints+set}" = set; then
18449 withval="$with_hints"
18450 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018451fi;
drh75897232000-05-29 14:26:00 +000018452if test "$hints" = ""; then
18453 host=`hostname | sed 's/\..*//'`
18454 if test -r $host.hints; then
18455 hints=$host.hints
18456 else
18457 if test -r ../$host.hints; then
18458 hints=../$host.hints
18459 fi
18460 fi
18461fi
18462if test "$hints" = ""; then
18463 sys=`uname -s`
18464 if test -r $sys.hints; then
18465 hints=$sys.hints
18466 else
18467 if test -r ../$sys.hints; then
18468 hints=../$sys.hints
18469 fi
18470 fi
18471fi
18472if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018473 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018474echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018475 . $hints
18476fi
18477
18478#########
18479# Locate a compiler for the build machine. This compiler should
18480# generate command-line programs that run on the build machine.
18481#
18482default_build_cflags="-g"
18483if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018484 ac_ext=c
18485ac_cpp='$CPP $CPPFLAGS'
18486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489if test -n "$ac_tool_prefix"; then
18490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18491set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018492echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18494if test "${ac_cv_prog_CC+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018496else
18497 if test -n "$CC"; then
18498 ac_cv_prog_CC="$CC" # Let the user override the test.
18499else
a.rottmann84e63352003-03-24 09:42:16 +000018500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501for as_dir in $PATH
18502do
18503 IFS=$as_save_IFS
18504 test -z "$as_dir" && as_dir=.
18505 for ac_exec_ext in '' $ac_executable_extensions; do
18506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18509 break 2
18510 fi
18511done
drh71eb93e2001-09-28 01:34:43 +000018512done
18513
drh75897232000-05-29 14:26:00 +000018514fi
18515fi
drh71eb93e2001-09-28 01:34:43 +000018516CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018517if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018518 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018519echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018520else
a.rottmann84e63352003-03-24 09:42:16 +000018521 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018522echo "${ECHO_T}no" >&6
18523fi
18524
18525fi
18526if test -z "$ac_cv_prog_CC"; then
18527 ac_ct_CC=$CC
18528 # Extract the first word of "gcc", so it can be a program name with args.
18529set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018530echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534else
18535 if test -n "$ac_ct_CC"; then
18536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18537else
a.rottmann84e63352003-03-24 09:42:16 +000018538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539for as_dir in $PATH
18540do
18541 IFS=$as_save_IFS
18542 test -z "$as_dir" && as_dir=.
18543 for ac_exec_ext in '' $ac_executable_extensions; do
18544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18545 ac_cv_prog_ac_ct_CC="gcc"
18546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18547 break 2
18548 fi
18549done
drh71eb93e2001-09-28 01:34:43 +000018550done
18551
18552fi
18553fi
18554ac_ct_CC=$ac_cv_prog_ac_ct_CC
18555if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018557echo "${ECHO_T}$ac_ct_CC" >&6
18558else
a.rottmann84e63352003-03-24 09:42:16 +000018559 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018560echo "${ECHO_T}no" >&6
18561fi
18562
18563 CC=$ac_ct_CC
18564else
18565 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018566fi
18567
18568if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018569 if test -n "$ac_tool_prefix"; then
18570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18571set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018572echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18574if test "${ac_cv_prog_CC+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018576else
18577 if test -n "$CC"; then
18578 ac_cv_prog_CC="$CC" # Let the user override the test.
18579else
a.rottmann84e63352003-03-24 09:42:16 +000018580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18581for as_dir in $PATH
18582do
18583 IFS=$as_save_IFS
18584 test -z "$as_dir" && as_dir=.
18585 for ac_exec_ext in '' $ac_executable_extensions; do
18586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18587 ac_cv_prog_CC="${ac_tool_prefix}cc"
18588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18589 break 2
18590 fi
18591done
drh71eb93e2001-09-28 01:34:43 +000018592done
18593
18594fi
18595fi
18596CC=$ac_cv_prog_CC
18597if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018598 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018599echo "${ECHO_T}$CC" >&6
18600else
a.rottmann84e63352003-03-24 09:42:16 +000018601 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018602echo "${ECHO_T}no" >&6
18603fi
18604
18605fi
18606if test -z "$ac_cv_prog_CC"; then
18607 ac_ct_CC=$CC
18608 # Extract the first word of "cc", so it can be a program name with args.
18609set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018610echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614else
18615 if test -n "$ac_ct_CC"; then
18616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18617else
a.rottmann84e63352003-03-24 09:42:16 +000018618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619for as_dir in $PATH
18620do
18621 IFS=$as_save_IFS
18622 test -z "$as_dir" && as_dir=.
18623 for ac_exec_ext in '' $ac_executable_extensions; do
18624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625 ac_cv_prog_ac_ct_CC="cc"
18626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627 break 2
18628 fi
18629done
drh71eb93e2001-09-28 01:34:43 +000018630done
18631
18632fi
18633fi
18634ac_ct_CC=$ac_cv_prog_ac_ct_CC
18635if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018636 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018637echo "${ECHO_T}$ac_ct_CC" >&6
18638else
a.rottmann84e63352003-03-24 09:42:16 +000018639 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018640echo "${ECHO_T}no" >&6
18641fi
18642
18643 CC=$ac_ct_CC
18644else
18645 CC="$ac_cv_prog_CC"
18646fi
18647
18648fi
18649if test -z "$CC"; then
18650 # Extract the first word of "cc", so it can be a program name with args.
18651set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018652echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18654if test "${ac_cv_prog_CC+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 if test -n "$CC"; then
18658 ac_cv_prog_CC="$CC" # Let the user override the test.
18659else
drh75897232000-05-29 14:26:00 +000018660 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662for as_dir in $PATH
18663do
18664 IFS=$as_save_IFS
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18669 ac_prog_rejected=yes
18670 continue
18671 fi
18672 ac_cv_prog_CC="cc"
18673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18674 break 2
18675 fi
18676done
drh71eb93e2001-09-28 01:34:43 +000018677done
18678
drh75897232000-05-29 14:26:00 +000018679if test $ac_prog_rejected = yes; then
18680 # We found a bogon in the path, so make sure we never use it.
18681 set dummy $ac_cv_prog_CC
18682 shift
drh71eb93e2001-09-28 01:34:43 +000018683 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018684 # We chose a different compiler from the bogus one.
18685 # However, it has the same basename, so the bogon will be chosen
18686 # first if we set CC to just the basename; use the full file name.
18687 shift
a.rottmann84e63352003-03-24 09:42:16 +000018688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018689 fi
18690fi
18691fi
18692fi
drh71eb93e2001-09-28 01:34:43 +000018693CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018694if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018695 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018696echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018697else
a.rottmann84e63352003-03-24 09:42:16 +000018698 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018699echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018700fi
18701
drh71eb93e2001-09-28 01:34:43 +000018702fi
18703if test -z "$CC"; then
18704 if test -n "$ac_tool_prefix"; then
18705 for ac_prog in cl
18706 do
18707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018709echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18711if test "${ac_cv_prog_CC+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018713else
18714 if test -n "$CC"; then
18715 ac_cv_prog_CC="$CC" # Let the user override the test.
18716else
a.rottmann84e63352003-03-24 09:42:16 +000018717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718for as_dir in $PATH
18719do
18720 IFS=$as_save_IFS
18721 test -z "$as_dir" && as_dir=.
18722 for ac_exec_ext in '' $ac_executable_extensions; do
18723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18726 break 2
18727 fi
18728done
drh71eb93e2001-09-28 01:34:43 +000018729done
18730
drh75897232000-05-29 14:26:00 +000018731fi
18732fi
drh71eb93e2001-09-28 01:34:43 +000018733CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018734if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018735 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018736echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018737else
a.rottmann84e63352003-03-24 09:42:16 +000018738 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018739echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018740fi
18741
drh71eb93e2001-09-28 01:34:43 +000018742 test -n "$CC" && break
18743 done
18744fi
18745if test -z "$CC"; then
18746 ac_ct_CC=$CC
18747 for ac_prog in cl
18748do
18749 # Extract the first word of "$ac_prog", so it can be a program name with args.
18750set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018751echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755else
18756 if test -n "$ac_ct_CC"; then
18757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18758else
a.rottmann84e63352003-03-24 09:42:16 +000018759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760for as_dir in $PATH
18761do
18762 IFS=$as_save_IFS
18763 test -z "$as_dir" && as_dir=.
18764 for ac_exec_ext in '' $ac_executable_extensions; do
18765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18766 ac_cv_prog_ac_ct_CC="$ac_prog"
18767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18768 break 2
18769 fi
18770done
drh71eb93e2001-09-28 01:34:43 +000018771done
drh75897232000-05-29 14:26:00 +000018772
drh71eb93e2001-09-28 01:34:43 +000018773fi
18774fi
18775ac_ct_CC=$ac_cv_prog_ac_ct_CC
18776if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018778echo "${ECHO_T}$ac_ct_CC" >&6
18779else
a.rottmann84e63352003-03-24 09:42:16 +000018780 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018781echo "${ECHO_T}no" >&6
18782fi
drh75897232000-05-29 14:26:00 +000018783
drh71eb93e2001-09-28 01:34:43 +000018784 test -n "$ac_ct_CC" && break
18785done
drh75897232000-05-29 14:26:00 +000018786
drh71eb93e2001-09-28 01:34:43 +000018787 CC=$ac_ct_CC
18788fi
18789
18790fi
18791
a.rottmann84e63352003-03-24 09:42:16 +000018792
18793test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18794See \`config.log' for more details." >&5
18795echo "$as_me: error: no acceptable C compiler found in \$PATH
18796See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018797 { (exit 1); exit 1; }; }
18798
18799# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018800echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018801 "checking for C compiler version" >&5
18802ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018803{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018804 (eval $ac_compiler --version </dev/null >&5) 2>&5
18805 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018807 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018808{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018809 (eval $ac_compiler -v </dev/null >&5) 2>&5
18810 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018812 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018813{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018814 (eval $ac_compiler -V </dev/null >&5) 2>&5
18815 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018817 (exit $ac_status); }
18818
a.rottmann84e63352003-03-24 09:42:16 +000018819echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018820echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18821if test "${ac_cv_c_compiler_gnu+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823else
18824 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018830
drh71eb93e2001-09-28 01:34:43 +000018831int
18832main ()
18833{
18834#ifndef __GNUC__
18835 choke me
drh75897232000-05-29 14:26:00 +000018836#endif
drh75897232000-05-29 14:26:00 +000018837
drh71eb93e2001-09-28 01:34:43 +000018838 ;
18839 return 0;
18840}
18841_ACEOF
18842rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018844 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018845 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018846 grep -v '^ *+' conftest.er1 >conftest.err
18847 rm -f conftest.er1
18848 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018850 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018851 { ac_try='test -z "$ac_c_werror_flag"
18852 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018860 (eval $ac_try) 2>&5
18861 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018863 (exit $ac_status); }; }; then
18864 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018865else
drh71eb93e2001-09-28 01:34:43 +000018866 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018867sed 's/^/| /' conftest.$ac_ext >&5
18868
drh71eb93e2001-09-28 01:34:43 +000018869ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018870fi
a.rottmann964dbb12004-02-26 19:47:42 +000018871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018872ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018873
drh71eb93e2001-09-28 01:34:43 +000018874fi
a.rottmann84e63352003-03-24 09:42:16 +000018875echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018876echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18877GCC=`test $ac_compiler_gnu = yes && echo yes`
18878ac_test_CFLAGS=${CFLAGS+set}
18879ac_save_CFLAGS=$CFLAGS
18880CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018881echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018882echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18883if test "${ac_cv_prog_cc_g+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018885else
drh71eb93e2001-09-28 01:34:43 +000018886 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018892
18893int
18894main ()
18895{
18896
18897 ;
18898 return 0;
18899}
18900_ACEOF
18901rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018903 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018904 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018909 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018910 { ac_try='test -z "$ac_c_werror_flag"
18911 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; } &&
18917 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018919 (eval $ac_try) 2>&5
18920 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018922 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018923 ac_cv_prog_cc_g=yes
18924else
drh71eb93e2001-09-28 01:34:43 +000018925 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018926sed 's/^/| /' conftest.$ac_ext >&5
18927
drh71eb93e2001-09-28 01:34:43 +000018928ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018929fi
a.rottmann964dbb12004-02-26 19:47:42 +000018930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018931fi
a.rottmann84e63352003-03-24 09:42:16 +000018932echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018933echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018934if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018935 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018936elif test $ac_cv_prog_cc_g = yes; then
18937 if test "$GCC" = yes; then
18938 CFLAGS="-g -O2"
18939 else
18940 CFLAGS="-g"
18941 fi
18942else
18943 if test "$GCC" = yes; then
18944 CFLAGS="-O2"
18945 else
18946 CFLAGS=
18947 fi
18948fi
a.rottmann84e63352003-03-24 09:42:16 +000018949echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18950echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18951if test "${ac_cv_prog_cc_stdc+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953else
18954 ac_cv_prog_cc_stdc=no
18955ac_save_CC=$CC
18956cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962#include <stdarg.h>
18963#include <stdio.h>
18964#include <sys/types.h>
18965#include <sys/stat.h>
18966/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18967struct buf { int x; };
18968FILE * (*rcsopen) (struct buf *, struct stat *, int);
18969static char *e (p, i)
18970 char **p;
18971 int i;
18972{
18973 return p[i];
18974}
18975static char *f (char * (*g) (char **, int), char **p, ...)
18976{
18977 char *s;
18978 va_list v;
18979 va_start (v,p);
18980 s = g (p, va_arg (v,int));
18981 va_end (v);
18982 return s;
18983}
a.rottmann964dbb12004-02-26 19:47:42 +000018984
18985/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18986 function prototypes and stuff, but not '\xHH' hex character constants.
18987 These don't provoke an error unfortunately, instead are silently treated
18988 as 'x'. The following induces an error, until -std1 is added to get
18989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18990 array size at least. It's necessary to write '\x00'==0 to get something
18991 that's true only with -std1. */
18992int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18993
a.rottmann84e63352003-03-24 09:42:16 +000018994int test (int i, double x);
18995struct s1 {int (*f) (int a);};
18996struct s2 {int (*f) (double a);};
18997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18998int argc;
18999char **argv;
19000int
19001main ()
19002{
19003return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19004 ;
19005 return 0;
19006}
19007_ACEOF
19008# Don't try gcc -ansi; that turns off useful extensions and
19009# breaks some systems' header files.
19010# AIX -qlanglvl=ansi
19011# Ultrix and OSF/1 -std1
19012# HP-UX 10.20 and later -Ae
19013# HP-UX older versions -Aa -D_HPUX_SOURCE
19014# SVR4 -Xc -D__EXTENSIONS__
19015for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19016do
19017 CC="$ac_save_CC $ac_arg"
19018 rm -f conftest.$ac_objext
19019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019020 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019021 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_prog_cc_stdc=$ac_arg
19041break
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046fi
a.rottmann964dbb12004-02-26 19:47:42 +000019047rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019048done
19049rm -f conftest.$ac_ext conftest.$ac_objext
19050CC=$ac_save_CC
19051
19052fi
19053
19054case "x$ac_cv_prog_cc_stdc" in
19055 x|xno)
19056 echo "$as_me:$LINENO: result: none needed" >&5
19057echo "${ECHO_T}none needed" >&6 ;;
19058 *)
19059 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19060echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19061 CC="$CC $ac_cv_prog_cc_stdc" ;;
19062esac
19063
drh71eb93e2001-09-28 01:34:43 +000019064# Some people use a C++ compiler to compile C. Since we use `exit',
19065# in C++ we need to declare it. In case someone uses the same compiler
19066# for both compiling C and C++ we need to have the C++ compiler decide
19067# the declaration of exit, since it's the most demanding environment.
19068cat >conftest.$ac_ext <<_ACEOF
19069#ifndef __cplusplus
19070 choke me
19071#endif
19072_ACEOF
19073rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019075 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019076 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019081 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019091 (eval $ac_try) 2>&5
19092 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019094 (exit $ac_status); }; }; then
19095 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019096 '' \
drh71eb93e2001-09-28 01:34:43 +000019097 'extern "C" void std::exit (int) throw (); using std::exit;' \
19098 'extern "C" void std::exit (int); using std::exit;' \
19099 'extern "C" void exit (int) throw ();' \
19100 'extern "C" void exit (int);' \
19101 'void exit (int);'
19102do
19103 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019109$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019110#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019111int
19112main ()
19113{
19114exit (42);
19115 ;
19116 return 0;
19117}
19118_ACEOF
19119rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019121 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019122 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019127 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019137 (eval $ac_try) 2>&5
19138 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019140 (exit $ac_status); }; }; then
19141 :
19142else
19143 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019144sed 's/^/| /' conftest.$ac_ext >&5
19145
drh71eb93e2001-09-28 01:34:43 +000019146continue
19147fi
a.rottmann964dbb12004-02-26 19:47:42 +000019148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019149 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019155$ac_declaration
19156int
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 break
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 +000019191fi
a.rottmann964dbb12004-02-26 19:47:42 +000019192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019193done
19194rm -f conftest*
19195if test -n "$ac_declaration"; then
19196 echo '#ifdef __cplusplus' >>confdefs.h
19197 echo $ac_declaration >>confdefs.h
19198 echo '#endif' >>confdefs.h
19199fi
19200
19201else
19202 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019203sed 's/^/| /' conftest.$ac_ext >&5
19204
drh71eb93e2001-09-28 01:34:43 +000019205fi
a.rottmann964dbb12004-02-26 19:47:42 +000019206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019207ac_ext=c
19208ac_cpp='$CPP $CPPFLAGS'
19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019212
xdong28f79f72003-09-23 00:35:21 +000019213 if test "$cross_compiling" = "yes"; then
19214 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19215echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19216 { (exit 1); exit 1; }; }
19217 fi
drh75897232000-05-29 14:26:00 +000019218 BUILD_CC=$CC
19219 default_build_cflags=$CFLAGS
19220else
19221 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019222 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019223echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019224 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019225 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019226echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019227fi
a.rottmann84e63352003-03-24 09:42:16 +000019228echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019229echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019230if test "$config_BUILD_CFLAGS" != ""; then
19231 CFLAGS=$config_BUILD_CFLAGS
19232 BUILD_CFLAGS=$config_BUILD_CFLAGS
19233else
19234 BUILD_CFLAGS=$default_build_cflags
19235fi
a.rottmann84e63352003-03-24 09:42:16 +000019236echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019237echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019238if test "$config_BUILD_LIBS" != ""; then
19239 BUILD_LIBS=$config_BUILD_LIBS
19240fi
19241
a.rottmann84e63352003-03-24 09:42:16 +000019242
19243
19244
drh75897232000-05-29 14:26:00 +000019245##########
19246# Locate a compiler that converts C code into *.o files that run on
19247# the target machine.
19248#
a.rottmann84e63352003-03-24 09:42:16 +000019249echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019250echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019251if test "$config_TARGET_CC" != ""; then
19252 TARGET_CC=$config_TARGET_CC
19253else
19254 TARGET_CC=$BUILD_CC
19255fi
a.rottmann84e63352003-03-24 09:42:16 +000019256echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019257echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019258echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019259echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019260if test "$config_TARGET_CFLAGS" != ""; then
19261 TARGET_CFLAGS=$config_TARGET_CFLAGS
19262else
19263 TARGET_CFLAGS=$BUILD_CFLAGS
19264fi
a.rottmann84e63352003-03-24 09:42:16 +000019265echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019266echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019267echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019268echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019269if test "$config_TARGET_LINK" = ""; then
19270 TARGET_LINK=$TARGET_CC
19271else
19272 TARGET_LINK=$config_TARGET_LINK
19273fi
a.rottmann84e63352003-03-24 09:42:16 +000019274echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019275echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019276echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019277echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019278if test "$config_TARGET_TFLAGS" != ""; then
19279 TARGET_TFLAGS=$config_TARGET_TFLAGS
19280else
19281 TARGET_TFLAGS=$BUILD_CFLAGS
19282fi
19283if test "$config_TARGET_RANLIB" != ""; then
19284 TARGET_RANLIB=$config_TARGET_RANLIB
19285else
drh71eb93e2001-09-28 01:34:43 +000019286 if test -n "$ac_tool_prefix"; then
19287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19288set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019289echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19291if test "${ac_cv_prog_RANLIB+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019293else
19294 if test -n "$RANLIB"; then
19295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19296else
a.rottmann84e63352003-03-24 09:42:16 +000019297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19298for as_dir in $PATH
19299do
19300 IFS=$as_save_IFS
19301 test -z "$as_dir" && as_dir=.
19302 for ac_exec_ext in '' $ac_executable_extensions; do
19303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19306 break 2
19307 fi
19308done
drh71eb93e2001-09-28 01:34:43 +000019309done
19310
drh75897232000-05-29 14:26:00 +000019311fi
19312fi
drh71eb93e2001-09-28 01:34:43 +000019313RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019314if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019315 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019316echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019317else
a.rottmann84e63352003-03-24 09:42:16 +000019318 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019319echo "${ECHO_T}no" >&6
19320fi
19321
19322fi
19323if test -z "$ac_cv_prog_RANLIB"; then
19324 ac_ct_RANLIB=$RANLIB
19325 # Extract the first word of "ranlib", so it can be a program name with args.
19326set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019327echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19329if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332 if test -n "$ac_ct_RANLIB"; then
19333 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19334else
a.rottmann84e63352003-03-24 09:42:16 +000019335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19336for as_dir in $PATH
19337do
19338 IFS=$as_save_IFS
19339 test -z "$as_dir" && as_dir=.
19340 for ac_exec_ext in '' $ac_executable_extensions; do
19341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19342 ac_cv_prog_ac_ct_RANLIB="ranlib"
19343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19344 break 2
19345 fi
19346done
drh71eb93e2001-09-28 01:34:43 +000019347done
19348
19349 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19350fi
19351fi
19352ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19353if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019354 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019355echo "${ECHO_T}$ac_ct_RANLIB" >&6
19356else
a.rottmann84e63352003-03-24 09:42:16 +000019357 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019358echo "${ECHO_T}no" >&6
19359fi
19360
19361 RANLIB=$ac_ct_RANLIB
19362else
19363 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019364fi
19365
19366 TARGET_RANLIB=$RANLIB
19367fi
19368if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019369 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019370else
19371 TARGET_AR='ar cr'
19372fi
a.rottmann84e63352003-03-24 09:42:16 +000019373echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019374echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019375
a.rottmann84e63352003-03-24 09:42:16 +000019376
19377
19378
19379
19380
19381
drh75897232000-05-29 14:26:00 +000019382# Set the $cross variable if we are cross-compiling. Make
19383# it 0 if we are not.
19384#
a.rottmann84e63352003-03-24 09:42:16 +000019385echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019386echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019387if test "$BUILD_CC" = "$TARGET_CC"; then
19388 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019389 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019390echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019391else
19392 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019393 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019394echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019395fi
19396
drh297ecf12001-04-05 15:57:13 +000019397##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019398# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019399#
dougcurrie0f290bf2004-06-21 18:57:29 +000019400# Check whether --enable-threadsafe or --disable-threadsafe was given.
19401if test "${enable_threadsafe+set}" = set; then
19402 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019403
drh297ecf12001-04-05 15:57:13 +000019404else
dougcurrie0f290bf2004-06-21 18:57:29 +000019405 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019406fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019407echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19408echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19409if test "$enable_threadsafe" = "no"; then
19410 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019411 echo "$as_me:$LINENO: result: no" >&5
19412echo "${ECHO_T}no" >&6
19413else
dougcurrie0f290bf2004-06-21 18:57:29 +000019414 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019415 echo "$as_me:$LINENO: result: yes" >&5
19416echo "${ECHO_T}yes" >&6
19417fi
19418
a.rottmann964dbb12004-02-26 19:47:42 +000019419
dougcurrie65623c72004-09-20 14:57:23 +000019420if test "$THREADSAFE" = "1"; then
19421 LIBS=""
19422
19423echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19424echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19425if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19427else
19428 ac_check_lib_save_LIBS=$LIBS
19429LIBS="-lpthread $LIBS"
19430cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436
19437/* Override any gcc2 internal prototype to avoid an error. */
19438#ifdef __cplusplus
19439extern "C"
19440#endif
19441/* We use char because int might match the return type of a gcc2
19442 builtin and then its argument prototype would still apply. */
19443char pthread_create ();
19444int
19445main ()
19446{
19447pthread_create ();
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext conftest$ac_exeext
19453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_lib_pthread_pthread_create=yes
19475else
19476 echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
19479ac_cv_lib_pthread_pthread_create=no
19480fi
19481rm -f conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483LIBS=$ac_check_lib_save_LIBS
19484fi
19485echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19486echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19487if test $ac_cv_lib_pthread_pthread_create = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489#define HAVE_LIBPTHREAD 1
19490_ACEOF
19491
19492 LIBS="-lpthread $LIBS"
19493
19494fi
19495
19496 TARGET_THREAD_LIB="$LIBS"
19497 LIBS=""
19498else
19499 TARGET_THREAD_LIB=""
19500fi
19501
19502
xdong28f79f72003-09-23 00:35:21 +000019503##########
drh91636d52005-11-24 23:14:00 +000019504# Do we want to allow a connection created in one thread to be used
19505# in another thread. This does not work on many Linux systems (ex: RedHat 9)
19506# due to bugs in the threading implementations. This is thus off by default.
19507#
19508# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
19509if test "${enable_cross_thread_connections+set}" = set; then
19510 enableval="$enable_cross_thread_connections"
19511
19512else
19513 enable_xthreadconnect=no
19514fi;
19515echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19516echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
19517if test "$enable_xthreadconnect" = "no"; then
19518 XTHREADCONNECT=''
19519 echo "$as_me:$LINENO: result: no" >&5
19520echo "${ECHO_T}no" >&6
19521else
19522 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
19523 echo "$as_me:$LINENO: result: yes" >&5
19524echo "${ECHO_T}yes" >&6
19525fi
19526
19527
19528##########
xdong28f79f72003-09-23 00:35:21 +000019529# Do we want to support release
19530#
19531# Check whether --enable-releasemode or --disable-releasemode was given.
19532if test "${enable_releasemode+set}" = set; then
19533 enableval="$enable_releasemode"
19534
19535else
19536 enable_releasemode=no
19537fi;
19538echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19539echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19540if test "$enable_releasemode" = "no"; then
19541 ALLOWRELEASE=""
19542 echo "$as_me:$LINENO: result: no" >&5
19543echo "${ECHO_T}no" >&6
19544else
19545 ALLOWRELEASE="-release `cat VERSION`"
19546 echo "$as_me:$LINENO: result: yes" >&5
19547echo "${ECHO_T}yes" >&6
19548fi
paulb0208cc2003-04-13 18:26:49 +000019549
a.rottmann964dbb12004-02-26 19:47:42 +000019550
paulb0208cc2003-04-13 18:26:49 +000019551##########
19552# Do we want temporary databases in memory
19553#
dougcurrie0f290bf2004-06-21 18:57:29 +000019554# Check whether --enable-tempstore or --disable-tempstore was given.
19555if test "${enable_tempstore+set}" = set; then
19556 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019557
19558else
drh54414bb2005-10-10 00:05:50 +000019559 enable_tempstore=no
paulb0208cc2003-04-13 18:26:49 +000019560fi;
19561echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19562echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019563case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019564 never )
paul2dc96f92003-04-20 11:46:34 +000019565 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019566 echo "$as_me:$LINENO: result: never" >&5
19567echo "${ECHO_T}never" >&6
19568 ;;
19569 no )
paul2dc96f92003-04-20 11:46:34 +000019570 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019571 echo "$as_me:$LINENO: result: no" >&5
19572echo "${ECHO_T}no" >&6
19573 ;;
19574 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019575 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019576 echo "$as_me:$LINENO: result: always" >&5
19577echo "${ECHO_T}always" >&6
19578 ;;
drh54414bb2005-10-10 00:05:50 +000019579 yes )
19580 TEMP_STORE=3
19581 echo "$as_me:$LINENO: result: always" >&5
19582echo "${ECHO_T}always" >&6
19583 ;;
paulb0208cc2003-04-13 18:26:49 +000019584 * )
drh54414bb2005-10-10 00:05:50 +000019585 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019586 echo "$as_me:$LINENO: result: yes" >&5
19587echo "${ECHO_T}yes" >&6
19588 ;;
19589esac
19590
19591
19592
drh75897232000-05-29 14:26:00 +000019593###########
19594# Lots of things are different if we are compiling for Windows using
19595# the CYGWIN environment. So check for that special case and handle
19596# things accordingly.
19597#
a.rottmann84e63352003-03-24 09:42:16 +000019598echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019599echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019600if test "$config_BUILD_EXEEXT" = ".exe"; then
19601 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019602 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019603echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019604else
a.rottmann84e63352003-03-24 09:42:16 +000019605 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019606echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019607fi
19608if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019609
19610case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019611 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019612 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019613esac
drh75897232000-05-29 14:26:00 +000019614
drh75897232000-05-29 14:26:00 +000019615fi
19616if test "$CYGWIN" = "yes"; then
19617 BUILD_EXEEXT=.exe
19618else
dougcurrie6194a5f2003-12-19 20:09:51 +000019619 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019620fi
19621if test "$cross" = "0"; then
19622 TARGET_EXEEXT=$BUILD_EXEEXT
19623else
19624 TARGET_EXEEXT=$config_TARGET_EXEEXT
19625fi
19626if test "$TARGET_EXEEXT" = ".exe"; then
19627 OS_UNIX=0
19628 OS_WIN=1
19629 tclsubdir=win
dougcurrie0f290bf2004-06-21 18:57:29 +000019630 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
drh75897232000-05-29 14:26:00 +000019631else
19632 OS_UNIX=1
19633 OS_WIN=0
19634 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019635 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019636fi
drh75897232000-05-29 14:26:00 +000019637
a.rottmann84e63352003-03-24 09:42:16 +000019638
19639
19640
19641
19642
drh75897232000-05-29 14:26:00 +000019643##########
19644# Extract generic linker options from the environment.
19645#
19646if test "$config_TARGET_LIBS" != ""; then
19647 TARGET_LIBS=$config_TARGET_LIBS
19648else
19649 TARGET_LIBS=""
19650fi
19651
a.rottmann84e63352003-03-24 09:42:16 +000019652
drh75897232000-05-29 14:26:00 +000019653##########
drh7b5717e2004-11-25 13:50:01 +000019654# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019655#
drh7b5717e2004-11-25 13:50:01 +000019656# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19657# macros in the in the tcl.m4 file of the standard TCL distribution.
19658# Those macros could not be used directly since we have to make some
19659# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019660#
drh7b5717e2004-11-25 13:50:01 +000019661# Check whether --enable-tcl or --disable-tcl was given.
19662if test "${enable_tcl+set}" = set; then
19663 enableval="$enable_tcl"
19664 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019665else
drh7b5717e2004-11-25 13:50:01 +000019666 use_tcl=yes
19667fi;
19668if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019669
drh7b5717e2004-11-25 13:50:01 +000019670# Check whether --with-tcl or --without-tcl was given.
19671if test "${with_tcl+set}" = set; then
19672 withval="$with_tcl"
19673 with_tclconfig=${withval}
19674fi;
19675 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19676echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19677 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
a.rottmann84e63352003-03-24 09:42:16 +000019680
drh7b5717e2004-11-25 13:50:01 +000019681 # First check to see if --with-tcl was specified.
19682 if test x"${with_tclconfig}" != x ; then
19683 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19684 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19685 else
19686 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19687echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019688 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019689 fi
19690 fi
19691 # then check for a private Tcl installation
19692 if test x"${ac_cv_c_tclconfig}" = x ; then
19693 for i in \
19694 ../tcl \
19695 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19696 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19697 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19698 ../../tcl \
19699 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19700 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19701 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19702 ../../../tcl \
19703 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19704 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19705 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19706 do
19707 if test -f "$i/unix/tclConfig.sh" ; then
19708 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19709 break
19710 fi
19711 done
19712 fi
19713
19714 # check in a few common install locations
19715 if test x"${ac_cv_c_tclconfig}" = x ; then
19716 for i in \
19717 `ls -d ${libdir} 2>/dev/null` \
19718 `ls -d /usr/local/lib 2>/dev/null` \
19719 `ls -d /usr/contrib/lib 2>/dev/null` \
19720 `ls -d /usr/lib 2>/dev/null`
19721 do
19722 if test -f "$i/tclConfig.sh" ; then
19723 ac_cv_c_tclconfig=`(cd $i; pwd)`
19724 break
19725 fi
19726 done
19727 fi
19728
19729 # check in a few other private locations
19730 if test x"${ac_cv_c_tclconfig}" = x ; then
19731 for i in \
19732 ${srcdir}/../tcl \
19733 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19734 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19735 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19736 do
19737 if test -f "$i/unix/tclConfig.sh" ; then
19738 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19739 break
19740 fi
19741 done
19742 fi
19743
drh75897232000-05-29 14:26:00 +000019744fi
19745
drh7b5717e2004-11-25 13:50:01 +000019746
19747 if test x"${ac_cv_c_tclconfig}" = x ; then
19748 use_tcl=no
19749 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19750echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19751 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19752echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19753 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19754echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19755 else
19756 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19757 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19758echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
19759
19760 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19761echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
19762 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19763 echo "$as_me:$LINENO: result: loading" >&5
19764echo "${ECHO_T}loading" >&6
19765 . $TCL_BIN_DIR/tclConfig.sh
19766 else
19767 echo "$as_me:$LINENO: result: file not found" >&5
19768echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000019769 fi
drh7b5717e2004-11-25 13:50:01 +000019770
19771 #
19772 # If the TCL_BIN_DIR is the build directory (not the install directory),
19773 # then set the common variable name to the value of the build variables.
19774 # For example, the variable TCL_LIB_SPEC will be set to the value
19775 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19776 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19777 # installed and uninstalled version of Tcl.
19778 #
19779
19780 if test -f $TCL_BIN_DIR/Makefile ; then
19781 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19782 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19783 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19784 fi
19785
19786 #
19787 # eval is required to do the TCL_DBGX substitution
19788 #
19789
19790 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19791 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19792 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19793
19794 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19795 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19796 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811 fi
drh75897232000-05-29 14:26:00 +000019812fi
drh7b5717e2004-11-25 13:50:01 +000019813if test "${use_tcl}" = "no" ; then
19814 HAVE_TCL=""
19815else
19816 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019817fi
drh75897232000-05-29 14:26:00 +000019818
a.rottmann84e63352003-03-24 09:42:16 +000019819
drh75897232000-05-29 14:26:00 +000019820##########
19821# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019822# that use "readline()" library.
19823#
19824if test "$config_TARGET_READLINE_LIBS" != ""; then
19825 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
19826else
19827 CC=$TARGET_CC
19828 LIBS=""
paul38372372003-04-22 08:04:49 +000019829 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19830echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
19831if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019832 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019833else
drh71eb93e2001-09-28 01:34:43 +000019834 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019835ac_cv_search_tgetent=no
19836cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019837/* confdefs.h. */
19838_ACEOF
19839cat confdefs.h >>conftest.$ac_ext
19840cat >>conftest.$ac_ext <<_ACEOF
19841/* end confdefs.h. */
19842
19843/* Override any gcc2 internal prototype to avoid an error. */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847/* We use char because int might match the return type of a gcc2
19848 builtin and then its argument prototype would still apply. */
19849char tgetent ();
19850int
19851main ()
19852{
19853tgetent ();
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext conftest$ac_exeext
19859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019860 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019861 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_search_tgetent="none required"
19881else
19882 echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
19885fi
a.rottmann964dbb12004-02-26 19:47:42 +000019886rm -f conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019888if test "$ac_cv_search_tgetent" = no; then
19889 for ac_lib in readline ncurses curses termcap; do
19890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19891 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
19897
19898/* Override any gcc2 internal prototype to avoid an error. */
19899#ifdef __cplusplus
19900extern "C"
19901#endif
19902/* We use char because int might match the return type of a gcc2
19903 builtin and then its argument prototype would still apply. */
19904char tgetent ();
19905int
19906main ()
19907{
19908tgetent ();
19909 ;
19910 return 0;
19911}
19912_ACEOF
19913rm -f conftest.$ac_objext conftest$ac_exeext
19914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019915 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019916 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019922 { ac_try='test -z "$ac_c_werror_flag"
19923 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_search_tgetent="-l$ac_lib"
19936break
19937else
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941fi
a.rottmann964dbb12004-02-26 19:47:42 +000019942rm -f conftest.err conftest.$ac_objext \
19943 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019944 done
19945fi
19946LIBS=$ac_func_search_save_LIBS
19947fi
19948echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19949echo "${ECHO_T}$ac_cv_search_tgetent" >&6
19950if test "$ac_cv_search_tgetent" != no; then
19951 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
19952
19953fi
19954
19955
19956echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19957echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
19958if test "${ac_cv_lib_readline_readline+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19960else
19961 ac_check_lib_save_LIBS=$LIBS
19962LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019963cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019964/* confdefs.h. */
19965_ACEOF
19966cat confdefs.h >>conftest.$ac_ext
19967cat >>conftest.$ac_ext <<_ACEOF
19968/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019969
drh71eb93e2001-09-28 01:34:43 +000019970/* Override any gcc2 internal prototype to avoid an error. */
19971#ifdef __cplusplus
19972extern "C"
19973#endif
19974/* We use char because int might match the return type of a gcc2
19975 builtin and then its argument prototype would still apply. */
19976char readline ();
19977int
19978main ()
19979{
19980readline ();
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019987 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019988 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019993 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020003 (eval $ac_try) 2>&5
20004 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020006 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000020007 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020008else
drh71eb93e2001-09-28 01:34:43 +000020009 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020010sed 's/^/| /' conftest.$ac_ext >&5
20011
paul38372372003-04-22 08:04:49 +000020012ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020013fi
a.rottmann964dbb12004-02-26 19:47:42 +000020014rm -f conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020016LIBS=$ac_check_lib_save_LIBS
20017fi
20018echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20019echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20020if test $ac_cv_lib_readline_readline = yes; then
20021 cat >>confdefs.h <<_ACEOF
20022#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000020023_ACEOF
drh75897232000-05-29 14:26:00 +000020024
paul38372372003-04-22 08:04:49 +000020025 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020026
drh75897232000-05-29 14:26:00 +000020027fi
20028
drh75897232000-05-29 14:26:00 +000020029 TARGET_READLINE_LIBS="$LIBS"
20030fi
20031
a.rottmann84e63352003-03-24 09:42:16 +000020032
drh75897232000-05-29 14:26:00 +000020033##########
20034# Figure out where to get the READLINE header files.
20035#
a.rottmann84e63352003-03-24 09:42:16 +000020036echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020037echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020038found=no
20039if test "$config_TARGET_READLINE_INC" != ""; then
20040 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20041 found=yes
20042fi
20043if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020044 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020045echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020046else
a.rottmann84e63352003-03-24 09:42:16 +000020047 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020048echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020049 if test "${ac_cv_header_readline_h+set}" = set; then
20050 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020051echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20052if test "${ac_cv_header_readline_h+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020054fi
20055echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20056echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020057else
a.rottmann84e63352003-03-24 09:42:16 +000020058 # Is the header compilable?
20059echo "$as_me:$LINENO: checking readline.h usability" >&5
20060echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20061cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020062/* confdefs.h. */
20063_ACEOF
20064cat confdefs.h >>conftest.$ac_ext
20065cat >>conftest.$ac_ext <<_ACEOF
20066/* end confdefs.h. */
20067$ac_includes_default
drh75897232000-05-29 14:26:00 +000020068#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020069_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020070rm -f conftest.$ac_objext
20071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020072 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020073 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020079 { ac_try='test -z "$ac_c_werror_flag"
20080 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082 (eval $ac_try) 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; } &&
20086 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_header_compiler=yes
20093else
20094 echo "$as_me: failed program was:" >&5
20095sed 's/^/| /' conftest.$ac_ext >&5
20096
20097ac_header_compiler=no
20098fi
a.rottmann964dbb12004-02-26 19:47:42 +000020099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20101echo "${ECHO_T}$ac_header_compiler" >&6
20102
20103# Is the header present?
20104echo "$as_me:$LINENO: checking readline.h presence" >&5
20105echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20106cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112#include <readline.h>
20113_ACEOF
20114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20116 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020117 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020118 rm -f conftest.er1
20119 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020121 (exit $ac_status); } >/dev/null; then
20122 if test -s conftest.err; then
20123 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020125 else
20126 ac_cpp_err=
20127 fi
drh75897232000-05-29 14:26:00 +000020128else
drh71eb93e2001-09-28 01:34:43 +000020129 ac_cpp_err=yes
20130fi
20131if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020132 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020133else
20134 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020138fi
drh71eb93e2001-09-28 01:34:43 +000020139rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20141echo "${ECHO_T}$ac_header_preproc" >&6
20142
20143# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20145 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020146 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20147echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020148 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20149echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20150 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020151 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020152 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020153 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20154echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020155 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20156echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20158echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20160echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020161 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20162echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020163 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20164echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020165 (
20166 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020167## ------------------------------------------ ##
20168## Report this to the AC_PACKAGE_NAME lists. ##
20169## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020170_ASBOX
20171 ) |
20172 sed "s/^/$as_me: WARNING: /" >&2
20173 ;;
20174esac
20175echo "$as_me:$LINENO: checking for readline.h" >&5
20176echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20177if test "${ac_cv_header_readline_h+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020181fi
a.rottmann84e63352003-03-24 09:42:16 +000020182echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020183echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020184
20185fi
drh71eb93e2001-09-28 01:34:43 +000020186if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020187 found=yes
drh75897232000-05-29 14:26:00 +000020188fi
20189
a.rottmann84e63352003-03-24 09:42:16 +000020190
drh75897232000-05-29 14:26:00 +000020191fi
20192if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020193 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020194 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020195echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020196echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20197if eval "test \"\${$as_ac_File+set}\" = set"; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020199else
20200 test "$cross_compiling" = yes &&
20201 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20202echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20203 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020204if test -r "$dir/include/readline.h"; then
20205 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020206else
drh71eb93e2001-09-28 01:34:43 +000020207 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020208fi
20209fi
a.rottmann84e63352003-03-24 09:42:16 +000020210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020211echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20212if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020213 found=yes
drh75897232000-05-29 14:26:00 +000020214fi
20215
20216 if test "$found" = "yes"; then
20217 TARGET_READLINE_INC="-I$dir/include"
20218 break
20219 fi
drh71eb93e2001-09-28 01:34:43 +000020220 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020221echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020222echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20223if eval "test \"\${$as_ac_File+set}\" = set"; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020225else
20226 test "$cross_compiling" = yes &&
20227 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20228echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20229 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020230if test -r "$dir/include/readline/readline.h"; then
20231 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020232else
drh71eb93e2001-09-28 01:34:43 +000020233 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020234fi
20235fi
a.rottmann84e63352003-03-24 09:42:16 +000020236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020237echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20238if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020239 found=yes
drh75897232000-05-29 14:26:00 +000020240fi
20241
20242 if test "$found" = "yes"; then
20243 TARGET_READLINE_INC="-I$dir/include/readline"
20244 break
20245 fi
20246 done
20247fi
20248if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020249 if test "$TARGET_READLINE_LIBS" = ""; then
20250 TARGET_HAVE_READLINE=0
20251 else
20252 TARGET_HAVE_READLINE=1
20253 fi
drh75897232000-05-29 14:26:00 +000020254else
20255 TARGET_HAVE_READLINE=0
20256fi
20257
a.rottmann84e63352003-03-24 09:42:16 +000020258
20259
drh75897232000-05-29 14:26:00 +000020260#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020261# check for debug enabled
20262# Check whether --enable-debug or --disable-debug was given.
20263if test "${enable_debug+set}" = set; then
20264 enableval="$enable_debug"
20265 use_debug=$enableval
20266else
20267 use_debug=no
20268fi;
20269if test "${use_debug}" = "yes" ; then
20270 TARGET_DEBUG=""
20271else
20272 TARGET_DEBUG="-DNDEBUG"
20273fi
20274
20275
20276#########
drh2dfbbca2000-07-28 14:32:48 +000020277# Figure out whether or not we have a "usleep()" function.
20278#
a.rottmann84e63352003-03-24 09:42:16 +000020279echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020280echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20281if test "${ac_cv_func_usleep+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020283else
drh71eb93e2001-09-28 01:34:43 +000020284 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020285/* confdefs.h. */
20286_ACEOF
20287cat confdefs.h >>conftest.$ac_ext
20288cat >>conftest.$ac_ext <<_ACEOF
20289/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020290/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292#define usleep innocuous_usleep
20293
drh2dfbbca2000-07-28 14:32:48 +000020294/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020295 which can conflict with char usleep (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020298
a.rottmann84e63352003-03-24 09:42:16 +000020299#ifdef __STDC__
20300# include <limits.h>
20301#else
20302# include <assert.h>
20303#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020304
20305#undef usleep
20306
drh2dfbbca2000-07-28 14:32:48 +000020307/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020308#ifdef __cplusplus
20309extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020310{
drh71eb93e2001-09-28 01:34:43 +000020311#endif
drh2dfbbca2000-07-28 14:32:48 +000020312/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020313 builtin and then its argument prototype would still apply. */
20314char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020315/* The GNU C library defines this for functions which it implements
20316 to always fail with ENOSYS. Some functions are actually named
20317 something starting with __ and the normal name is an alias. */
20318#if defined (__stub_usleep) || defined (__stub___usleep)
20319choke me
20320#else
a.rottmann84e63352003-03-24 09:42:16 +000020321char (*f) () = usleep;
20322#endif
20323#ifdef __cplusplus
20324}
drh2dfbbca2000-07-28 14:32:48 +000020325#endif
20326
a.rottmann84e63352003-03-24 09:42:16 +000020327int
20328main ()
20329{
20330return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020331 ;
20332 return 0;
20333}
20334_ACEOF
20335rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020337 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020338 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020343 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020353 (eval $ac_try) 2>&5
20354 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020356 (exit $ac_status); }; }; then
20357 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020358else
drh71eb93e2001-09-28 01:34:43 +000020359 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020360sed 's/^/| /' conftest.$ac_ext >&5
20361
drh71eb93e2001-09-28 01:34:43 +000020362ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020363fi
a.rottmann964dbb12004-02-26 19:47:42 +000020364rm -f conftest.err conftest.$ac_objext \
20365 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020366fi
a.rottmann84e63352003-03-24 09:42:16 +000020367echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020368echo "${ECHO_T}$ac_cv_func_usleep" >&6
20369if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020370 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020371fi
20372
a.rottmann84e63352003-03-24 09:42:16 +000020373
drhaf6edf52005-10-04 18:38:49 +000020374#--------------------------------------------------------------------
20375# Redefine fdatasync as fsync on systems that lack fdatasync
20376#--------------------------------------------------------------------
20377
20378echo "$as_me:$LINENO: checking for fdatasync" >&5
20379echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
20380if test "${ac_cv_func_fdatasync+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
20389/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20391#define fdatasync innocuous_fdatasync
20392
20393/* System header to define __stub macros and hopefully few prototypes,
20394 which can conflict with char fdatasync (); below.
20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396 <limits.h> exists even on freestanding compilers. */
20397
20398#ifdef __STDC__
20399# include <limits.h>
20400#else
20401# include <assert.h>
20402#endif
20403
20404#undef fdatasync
20405
20406/* Override any gcc2 internal prototype to avoid an error. */
20407#ifdef __cplusplus
20408extern "C"
20409{
20410#endif
20411/* We use char because int might match the return type of a gcc2
20412 builtin and then its argument prototype would still apply. */
20413char fdatasync ();
20414/* The GNU C library defines this for functions which it implements
20415 to always fail with ENOSYS. Some functions are actually named
20416 something starting with __ and the normal name is an alias. */
20417#if defined (__stub_fdatasync) || defined (__stub___fdatasync)
20418choke me
20419#else
20420char (*f) () = fdatasync;
20421#endif
20422#ifdef __cplusplus
20423}
20424#endif
20425
20426int
20427main ()
20428{
20429return f != fdatasync;
20430 ;
20431 return 0;
20432}
20433_ACEOF
20434rm -f conftest.$ac_objext conftest$ac_exeext
20435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436 (eval $ac_link) 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest$ac_exeext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_func_fdatasync=yes
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461ac_cv_func_fdatasync=no
20462fi
20463rm -f conftest.err conftest.$ac_objext \
20464 conftest$ac_exeext conftest.$ac_ext
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20467echo "${ECHO_T}$ac_cv_func_fdatasync" >&6
20468if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020469 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020470fi
20471
20472
drh2dfbbca2000-07-28 14:32:48 +000020473#########
drh75897232000-05-29 14:26:00 +000020474# Generate the output files.
20475#
dougcurrie12b34442004-07-19 03:24:59 +000020476 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020477cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020478# This file is a shell script that caches the results of configure
20479# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020480# scripts and configure runs, see configure's option --config-cache.
20481# It is not useful on other systems. If it contains results you don't
20482# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020483#
drh71eb93e2001-09-28 01:34:43 +000020484# config.status only pays attention to the cache file if you give it
20485# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020486#
a.rottmann84e63352003-03-24 09:42:16 +000020487# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020488# loading this file, other *unset* `ac_cv_foo' will be assigned the
20489# following values.
20490
20491_ACEOF
20492
drh75897232000-05-29 14:26:00 +000020493# The following way of writing the cache mishandles newlines in values,
20494# but we know of no workaround that is simple, portable, and efficient.
20495# So, don't put newlines in cache variables' values.
20496# Ultrix sh set writes to stderr and can't be redirected directly,
20497# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020498{
20499 (set) 2>&1 |
20500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20501 *ac_space=\ *)
20502 # `set' does not quote correctly, so add quotes (double-quote
20503 # substitution turns \\\\ into \\, and sed turns \\ into \).
20504 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020505 "s/'/'\\\\''/g;
20506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020507 ;;
20508 *)
20509 # `set' quotes correctly as required by POSIX, so do not add quotes.
20510 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020511 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020512 ;;
20513 esac;
20514} |
20515 sed '
20516 t clear
20517 : clear
20518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20519 t end
20520 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20521 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020522if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020523 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020524 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20525 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020526 else
20527 echo "not updating unwritable cache $cache_file"
20528 fi
20529fi
20530rm -f confcache
20531
drh75897232000-05-29 14:26:00 +000020532test "x$prefix" = xNONE && prefix=$ac_default_prefix
20533# Let make expand exec_prefix.
20534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20535
drh71eb93e2001-09-28 01:34:43 +000020536# VPATH may cause trouble with some makes, so we remove $(srcdir),
20537# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20538# trailing colons and then remove the whole line if VPATH becomes empty
20539# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020540if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020541 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020542s/:*\$(srcdir):*/:/;
20543s/:*\${srcdir}:*/:/;
20544s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020545s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020546s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020547s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020548}'
drh75897232000-05-29 14:26:00 +000020549fi
20550
drh75897232000-05-29 14:26:00 +000020551# Transform confdefs.h into DEFS.
20552# Protect against shell expansion while executing Makefile rules.
20553# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020554#
20555# If the first sed substitution is executed (which looks for macros that
20556# take arguments), then we branch to the quote section. Otherwise,
20557# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020558cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020559t clear
20560: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020561s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020562t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020563s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020564t quote
20565d
20566: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020567s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020568s,\[,\\&,g
20569s,\],\\&,g
20570s,\$,$$,g
20571p
a.rottmann84e63352003-03-24 09:42:16 +000020572_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020573# We use echo to avoid assuming a particular line-breaking character.
20574# The extra dot is to prevent the shell from consuming trailing
20575# line-breaks from the sub-command output. A line-break within
20576# single-quotes doesn't work because, if this script is created in a
20577# platform that uses two characters for line-breaks (e.g., DOS), tr
20578# would break.
20579ac_LF_and_DOT=`echo; echo .`
20580DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20581rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020582
a.rottmann84e63352003-03-24 09:42:16 +000020583
20584ac_libobjs=
20585ac_ltlibobjs=
20586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20587 # 1. Remove the extension, and $U if already installed.
20588 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020589 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020590 # 2. Add them.
20591 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20592 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20593done
20594LIBOBJS=$ac_libobjs
20595
20596LTLIBOBJS=$ac_ltlibobjs
20597
20598
20599
drh75897232000-05-29 14:26:00 +000020600: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020601ac_clean_files_save=$ac_clean_files
20602ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020603{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020604echo "$as_me: creating $CONFIG_STATUS" >&6;}
20605cat >$CONFIG_STATUS <<_ACEOF
20606#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020607# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020608# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020609# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020610# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020611
drh71eb93e2001-09-28 01:34:43 +000020612debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020613ac_cs_recheck=false
20614ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020615SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020616_ACEOF
drh75897232000-05-29 14:26:00 +000020617
drh71eb93e2001-09-28 01:34:43 +000020618cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020619## --------------------- ##
20620## M4sh Initialization. ##
20621## --------------------- ##
20622
drh71eb93e2001-09-28 01:34:43 +000020623# Be Bourne compatible
20624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20625 emulate sh
20626 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020627 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20628 # is contrary to our usage. Disable this feature.
20629 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020630elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20631 set -o posix
drh75897232000-05-29 14:26:00 +000020632fi
a.rottmann964dbb12004-02-26 19:47:42 +000020633DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020634
a.rottmann84e63352003-03-24 09:42:16 +000020635# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020636if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020637 as_unset=unset
20638else
20639 as_unset=false
20640fi
20641
20642
20643# Work around bugs in pre-3.0 UWIN ksh.
20644$as_unset ENV MAIL MAILPATH
20645PS1='$ '
20646PS2='> '
20647PS4='+ '
20648
20649# NLS nuisances.
20650for as_var in \
20651 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20652 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20653 LC_TELEPHONE LC_TIME
20654do
a.rottmann964dbb12004-02-26 19:47:42 +000020655 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020656 eval $as_var=C; export $as_var
20657 else
20658 $as_unset $as_var
20659 fi
20660done
20661
20662# Required to use basename.
20663if expr a : '\(a\)' >/dev/null 2>&1; then
20664 as_expr=expr
20665else
20666 as_expr=false
20667fi
20668
20669if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20670 as_basename=basename
20671else
20672 as_basename=false
20673fi
20674
20675
drh71eb93e2001-09-28 01:34:43 +000020676# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020677as_me=`$as_basename "$0" ||
20678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20679 X"$0" : 'X\(//\)$' \| \
20680 X"$0" : 'X\(/\)$' \| \
20681 . : '\(.\)' 2>/dev/null ||
20682echo X/"$0" |
20683 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20684 /^X\/\(\/\/\)$/{ s//\1/; q; }
20685 /^X\/\(\/\).*/{ s//\1/; q; }
20686 s/.*/./; q'`
20687
20688
20689# PATH needs CR, and LINENO needs CR and PATH.
20690# Avoid depending upon Character Ranges.
20691as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20692as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20693as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20694as_cr_digits='0123456789'
20695as_cr_alnum=$as_cr_Letters$as_cr_digits
20696
20697# The user is always right.
20698if test "${PATH_SEPARATOR+set}" != set; then
20699 echo "#! /bin/sh" >conf$$.sh
20700 echo "exit 0" >>conf$$.sh
20701 chmod +x conf$$.sh
20702 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20703 PATH_SEPARATOR=';'
20704 else
20705 PATH_SEPARATOR=:
20706 fi
20707 rm -f conf$$.sh
20708fi
20709
20710
20711 as_lineno_1=$LINENO
20712 as_lineno_2=$LINENO
20713 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20714 test "x$as_lineno_1" != "x$as_lineno_2" &&
20715 test "x$as_lineno_3" = "x$as_lineno_2" || {
20716 # Find who we are. Look in the path if we contain no path at all
20717 # relative or not.
20718 case $0 in
20719 *[\\/]* ) as_myself=$0 ;;
20720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20721for as_dir in $PATH
20722do
20723 IFS=$as_save_IFS
20724 test -z "$as_dir" && as_dir=.
20725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20726done
20727
20728 ;;
20729 esac
20730 # We did not find ourselves, most probably we were run as `sh COMMAND'
20731 # in which case we are not to be found in the path.
20732 if test "x$as_myself" = x; then
20733 as_myself=$0
20734 fi
20735 if test ! -f "$as_myself"; then
20736 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20737echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20738 { (exit 1); exit 1; }; }
20739 fi
20740 case $CONFIG_SHELL in
20741 '')
20742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20743for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20744do
20745 IFS=$as_save_IFS
20746 test -z "$as_dir" && as_dir=.
20747 for as_base in sh bash ksh sh5; do
20748 case $as_dir in
20749 /*)
20750 if ("$as_dir/$as_base" -c '
20751 as_lineno_1=$LINENO
20752 as_lineno_2=$LINENO
20753 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20754 test "x$as_lineno_1" != "x$as_lineno_2" &&
20755 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20756 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20757 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20758 CONFIG_SHELL=$as_dir/$as_base
20759 export CONFIG_SHELL
20760 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20761 fi;;
20762 esac
20763 done
20764done
20765;;
20766 esac
20767
20768 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20769 # uniformly replaced by the line number. The first 'sed' inserts a
20770 # line-number line before each line; the second 'sed' does the real
20771 # work. The second script uses 'N' to pair each line-number line
20772 # with the numbered line, and appends trailing '-' during
20773 # substitution so that $LINENO is not a special case at line end.
20774 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20775 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20776 sed '=' <$as_myself |
20777 sed '
20778 N
20779 s,$,-,
20780 : loop
20781 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20782 t loop
20783 s,-$,,
20784 s,^['$as_cr_digits']*\n,,
20785 ' >$as_me.lineno &&
20786 chmod +x $as_me.lineno ||
20787 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20788echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20789 { (exit 1); exit 1; }; }
20790
20791 # Don't try to exec as it changes $[0], causing all sort of problems
20792 # (the dirname of $[0] is not the place where we might find the
20793 # original and so on. Autoconf is especially sensible to this).
20794 . ./$as_me.lineno
20795 # Exit status is that of the last command.
20796 exit
20797}
20798
20799
20800case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20801 *c*,-n*) ECHO_N= ECHO_C='
20802' ECHO_T=' ' ;;
20803 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20804 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20805esac
drh71eb93e2001-09-28 01:34:43 +000020806
20807if expr a : '\(a\)' >/dev/null 2>&1; then
20808 as_expr=expr
20809else
20810 as_expr=false
20811fi
20812
20813rm -f conf$$ conf$$.exe conf$$.file
20814echo >conf$$.file
20815if ln -s conf$$.file conf$$ 2>/dev/null; then
20816 # We could just check for DJGPP; but this test a) works b) is more generic
20817 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20818 if test -f conf$$.exe; then
20819 # Don't use ln at all; we don't have any links
20820 as_ln_s='cp -p'
20821 else
20822 as_ln_s='ln -s'
20823 fi
20824elif ln conf$$.file conf$$ 2>/dev/null; then
20825 as_ln_s=ln
20826else
20827 as_ln_s='cp -p'
20828fi
20829rm -f conf$$ conf$$.exe conf$$.file
20830
a.rottmann84e63352003-03-24 09:42:16 +000020831if mkdir -p . 2>/dev/null; then
20832 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020833else
a.rottmann964dbb12004-02-26 19:47:42 +000020834 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020835 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020836fi
20837
a.rottmann84e63352003-03-24 09:42:16 +000020838as_executable_p="test -f"
20839
20840# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020841as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020842
20843# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020844as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020845
drh71eb93e2001-09-28 01:34:43 +000020846
20847# IFS
20848# We need space, tab and new line, in precisely that order.
20849as_nl='
20850'
20851IFS=" $as_nl"
20852
20853# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000020854$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000020855
20856exec 6>&1
20857
a.rottmann84e63352003-03-24 09:42:16 +000020858# Open the log real soon, to keep \$[0] and so on meaningful, and to
20859# report actual input values of CONFIG_FILES etc. instead of their
20860# values after options handling. Logging --version etc. is OK.
20861exec 5>>config.log
20862{
20863 echo
20864 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20865## Running $as_me. ##
20866_ASBOX
20867} >&5
20868cat >&5 <<_CSEOF
20869
20870This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000020871generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020872
20873 CONFIG_FILES = $CONFIG_FILES
20874 CONFIG_HEADERS = $CONFIG_HEADERS
20875 CONFIG_LINKS = $CONFIG_LINKS
20876 CONFIG_COMMANDS = $CONFIG_COMMANDS
20877 $ $0 $@
20878
20879_CSEOF
20880echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20881echo >&5
drh71eb93e2001-09-28 01:34:43 +000020882_ACEOF
20883
20884# Files that config.status was made for.
20885if test -n "$ac_config_files"; then
20886 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20887fi
20888
20889if test -n "$ac_config_headers"; then
20890 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20891fi
20892
20893if test -n "$ac_config_links"; then
20894 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20895fi
20896
20897if test -n "$ac_config_commands"; then
20898 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20899fi
20900
a.rottmann84e63352003-03-24 09:42:16 +000020901cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020902
20903ac_cs_usage="\
20904\`$as_me' instantiates files from templates according to the
20905current configuration.
20906
20907Usage: $0 [OPTIONS] [FILE]...
20908
20909 -h, --help print this help, then exit
20910 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020911 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020912 -d, --debug don't remove temporary files
20913 --recheck update $as_me by reconfiguring in the same conditions
20914 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020915 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020916
20917Configuration files:
20918$config_files
20919
20920Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000020921_ACEOF
drh75897232000-05-29 14:26:00 +000020922
a.rottmann84e63352003-03-24 09:42:16 +000020923cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020924ac_cs_version="\\
20925config.status
a.rottmann964dbb12004-02-26 19:47:42 +000020926configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000020927 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000020928
a.rottmann964dbb12004-02-26 19:47:42 +000020929Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000020930This config.status script is free software; the Free Software Foundation
20931gives unlimited permission to copy, distribute and modify it."
20932srcdir=$srcdir
20933INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000020934_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020935
a.rottmann84e63352003-03-24 09:42:16 +000020936cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020937# If no file are specified by the user, then we need to provide default
20938# value. By we need to know if files were specified by the user.
20939ac_need_defaults=:
20940while test $# != 0
20941do
20942 case $1 in
20943 --*=*)
20944 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20945 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000020946 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000020947 ;;
a.rottmann84e63352003-03-24 09:42:16 +000020948 -*)
20949 ac_option=$1
20950 ac_optarg=$2
20951 ac_shift=shift
20952 ;;
drh71eb93e2001-09-28 01:34:43 +000020953 *) # This is not an option, so the user has probably given explicit
20954 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020955 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000020956 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000020957 esac
20958
a.rottmann84e63352003-03-24 09:42:16 +000020959 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000020960 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000020961_ACEOF
20962cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000020964 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000020965 --version | --vers* | -V )
20966 echo "$ac_cs_version"; exit 0 ;;
20967 --he | --h)
20968 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000020969 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000020970Try \`$0 --help' for more information." >&5
20971echo "$as_me: error: ambiguous option: $1
20972Try \`$0 --help' for more information." >&2;}
20973 { (exit 1); exit 1; }; };;
20974 --help | --hel | -h )
20975 echo "$ac_cs_usage"; exit 0 ;;
20976 --debug | --d* | -d )
20977 debug=: ;;
20978 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020979 $ac_shift
20980 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020981 ac_need_defaults=false;;
20982 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000020983 $ac_shift
20984 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020985 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000020986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20988 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020989
drh71eb93e2001-09-28 01:34:43 +000020990 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000020991 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000020992Try \`$0 --help' for more information." >&5
20993echo "$as_me: error: unrecognized option: $1
20994Try \`$0 --help' for more information." >&2;}
20995 { (exit 1); exit 1; }; } ;;
20996
20997 *) ac_config_targets="$ac_config_targets $1" ;;
20998
20999 esac
21000 shift
21001done
21002
a.rottmann84e63352003-03-24 09:42:16 +000021003ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021004
a.rottmann84e63352003-03-24 09:42:16 +000021005if $ac_cs_silent; then
21006 exec 6>/dev/null
21007 ac_configure_extra_args="$ac_configure_extra_args --silent"
21008fi
drh71eb93e2001-09-28 01:34:43 +000021009
21010_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021011cat >>$CONFIG_STATUS <<_ACEOF
21012if \$ac_cs_recheck; then
21013 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21014 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21015fi
drh71eb93e2001-09-28 01:34:43 +000021016
a.rottmann84e63352003-03-24 09:42:16 +000021017_ACEOF
21018
21019
21020
21021
21022
21023cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021024for ac_config_target in $ac_config_targets
21025do
21026 case "$ac_config_target" in
21027 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000021028 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000021029 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000021030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021031echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21032 { (exit 1); exit 1; }; };;
21033 esac
21034done
21035
21036# If the user did not use the arguments to specify the items to instantiate,
21037# then the envvar interface is used. Set only those that are not.
21038# We use the long form for the default assignment because of an extremely
21039# bizarre bug on SunOS 4.1.3.
21040if $ac_need_defaults; then
21041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21042fi
21043
a.rottmann84e63352003-03-24 09:42:16 +000021044# Have a temporary directory for convenience. Make it in the build tree
21045# simply because there is no reason to put it here, and in addition,
21046# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000021047# Create a temporary directory, and hook for its removal unless debugging.
21048$debug ||
21049{
21050 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21051 trap '{ (exit 1); exit 1; }' 1 2 13 15
21052}
21053
21054# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021055
drh71eb93e2001-09-28 01:34:43 +000021056{
a.rottmann84e63352003-03-24 09:42:16 +000021057 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021058 test -n "$tmp" && test -d "$tmp"
21059} ||
21060{
a.rottmann84e63352003-03-24 09:42:16 +000021061 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000021062 (umask 077 && mkdir $tmp)
21063} ||
21064{
a.rottmann84e63352003-03-24 09:42:16 +000021065 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021066 { (exit 1); exit 1; }
21067}
21068
a.rottmann84e63352003-03-24 09:42:16 +000021069_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021070
a.rottmann84e63352003-03-24 09:42:16 +000021071cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021072
21073#
21074# CONFIG_FILES section.
21075#
21076
21077# No need to generate the scripts if there are no CONFIG_FILES.
21078# This happens for instance when ./config.status config.h
21079if test -n "\$CONFIG_FILES"; then
21080 # Protect against being on the right side of a sed subst in config.status.
21081 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21082 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21083s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021084s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21085s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21086s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21087s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21088s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21089s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000021090s,@exec_prefix@,$exec_prefix,;t t
21091s,@prefix@,$prefix,;t t
21092s,@program_transform_name@,$program_transform_name,;t t
21093s,@bindir@,$bindir,;t t
21094s,@sbindir@,$sbindir,;t t
21095s,@libexecdir@,$libexecdir,;t t
21096s,@datadir@,$datadir,;t t
21097s,@sysconfdir@,$sysconfdir,;t t
21098s,@sharedstatedir@,$sharedstatedir,;t t
21099s,@localstatedir@,$localstatedir,;t t
21100s,@libdir@,$libdir,;t t
21101s,@includedir@,$includedir,;t t
21102s,@oldincludedir@,$oldincludedir,;t t
21103s,@infodir@,$infodir,;t t
21104s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000021105s,@build_alias@,$build_alias,;t t
21106s,@host_alias@,$host_alias,;t t
21107s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021108s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000021109s,@ECHO_C@,$ECHO_C,;t t
21110s,@ECHO_N@,$ECHO_N,;t t
21111s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000021112s,@LIBS@,$LIBS,;t t
21113s,@build@,$build,;t t
21114s,@build_cpu@,$build_cpu,;t t
21115s,@build_vendor@,$build_vendor,;t t
21116s,@build_os@,$build_os,;t t
21117s,@host@,$host,;t t
21118s,@host_cpu@,$host_cpu,;t t
21119s,@host_vendor@,$host_vendor,;t t
21120s,@host_os@,$host_os,;t t
21121s,@CC@,$CC,;t t
21122s,@CFLAGS@,$CFLAGS,;t t
21123s,@LDFLAGS@,$LDFLAGS,;t t
21124s,@CPPFLAGS@,$CPPFLAGS,;t t
21125s,@ac_ct_CC@,$ac_ct_CC,;t t
21126s,@EXEEXT@,$EXEEXT,;t t
21127s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021128s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000021129s,@LN_S@,$LN_S,;t t
21130s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021131s,@AR@,$AR,;t t
21132s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021133s,@RANLIB@,$RANLIB,;t t
21134s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21135s,@STRIP@,$STRIP,;t t
21136s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21137s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021138s,@CXX@,$CXX,;t t
21139s,@CXXFLAGS@,$CXXFLAGS,;t t
21140s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21141s,@CXXCPP@,$CXXCPP,;t t
21142s,@F77@,$F77,;t t
21143s,@FFLAGS@,$FFLAGS,;t t
21144s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021145s,@LIBTOOL@,$LIBTOOL,;t t
21146s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21147s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21148s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21149s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021150s,@VERSION@,$VERSION,;t t
drh4b2266a2004-11-27 15:52:16 +000021151s,@RELEASE@,$RELEASE,;t t
drh26d0e2a2005-07-06 13:51:27 +000021152s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
drh71eb93e2001-09-28 01:34:43 +000021153s,@BUILD_CC@,$BUILD_CC,;t t
21154s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21155s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21156s,@TARGET_CC@,$TARGET_CC,;t t
21157s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21158s,@TARGET_LINK@,$TARGET_LINK,;t t
21159s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21160s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21161s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021162s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021163s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
drh91636d52005-11-24 23:14:00 +000021164s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
xdong28f79f72003-09-23 00:35:21 +000021165s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021166s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021167s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21168s,@OS_UNIX@,$OS_UNIX,;t t
21169s,@OS_WIN@,$OS_WIN,;t t
21170s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
21171s,@TARGET_LIBS@,$TARGET_LIBS,;t t
drh7b5717e2004-11-25 13:50:01 +000021172s,@TCL_VERSION@,$TCL_VERSION,;t t
21173s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21174s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21175s,@TCL_LIBS@,$TCL_LIBS,;t t
21176s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
21177s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21178s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21179s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21180s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21181s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21182s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21183s,@HAVE_TCL@,$HAVE_TCL,;t t
drh71eb93e2001-09-28 01:34:43 +000021184s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21185s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21186s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
tpoindex9d9f76c2005-01-03 21:28:56 +000021187s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021188s,@LIBOBJS@,$LIBOBJS,;t t
21189s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021190CEOF
21191
a.rottmann84e63352003-03-24 09:42:16 +000021192_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021193
a.rottmann84e63352003-03-24 09:42:16 +000021194 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021195 # Split the substitutions into bite-sized pieces for seds with
21196 # small command number limits, like on Digital OSF/1 and HP-UX.
21197 ac_max_sed_lines=48
21198 ac_sed_frag=1 # Number of current file.
21199 ac_beg=1 # First line for current file.
21200 ac_end=$ac_max_sed_lines # Line after last line for current file.
21201 ac_more_lines=:
21202 ac_sed_cmds=
21203 while $ac_more_lines; do
21204 if test $ac_beg -gt 1; then
21205 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21206 else
21207 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21208 fi
21209 if test ! -s $tmp/subs.frag; then
21210 ac_more_lines=false
21211 else
21212 # The purpose of the label and of the branching condition is to
21213 # speed up the sed processing (if there are no `@' at all, there
21214 # is no need to browse any of the substitutions).
21215 # These are the two extra sed commands mentioned above.
21216 (echo ':t
21217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21218 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021219 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021220 else
a.rottmann964dbb12004-02-26 19:47:42 +000021221 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021222 fi
21223 ac_sed_frag=`expr $ac_sed_frag + 1`
21224 ac_beg=$ac_end
21225 ac_end=`expr $ac_end + $ac_max_sed_lines`
21226 fi
21227 done
21228 if test -z "$ac_sed_cmds"; then
21229 ac_sed_cmds=cat
21230 fi
21231fi # test -n "$CONFIG_FILES"
21232
a.rottmann84e63352003-03-24 09:42:16 +000021233_ACEOF
21234cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021235for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21237 case $ac_file in
21238 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021239 cat >$tmp/stdin
21240 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021242 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021244 * ) ac_file_in=$ac_file.in ;;
21245 esac
21246
21247 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021248 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021250 X"$ac_file" : 'X\(//\)[^/]' \| \
21251 X"$ac_file" : 'X\(//\)$' \| \
21252 X"$ac_file" : 'X\(/\)' \| \
21253 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021254echo X"$ac_file" |
21255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21257 /^X\(\/\/\)$/{ s//\1/; q; }
21258 /^X\(\/\).*/{ s//\1/; q; }
21259 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021260 { if $as_mkdir_p; then
21261 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021262 else
a.rottmann84e63352003-03-24 09:42:16 +000021263 as_dir="$ac_dir"
21264 as_dirs=
21265 while test ! -d "$as_dir"; do
21266 as_dirs="$as_dir $as_dirs"
21267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021269 X"$as_dir" : 'X\(//\)[^/]' \| \
21270 X"$as_dir" : 'X\(//\)$' \| \
21271 X"$as_dir" : 'X\(/\)' \| \
21272 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021273echo X"$as_dir" |
21274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21276 /^X\(\/\/\)$/{ s//\1/; q; }
21277 /^X\(\/\).*/{ s//\1/; q; }
21278 s/.*/./; q'`
21279 done
21280 test ! -n "$as_dirs" || mkdir $as_dirs
21281 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21282echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21283 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021284
a.rottmann84e63352003-03-24 09:42:16 +000021285 ac_builddir=.
21286
21287if test "$ac_dir" != .; then
21288 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21289 # A "../" for each directory in $ac_dir_suffix.
21290 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21291else
21292 ac_dir_suffix= ac_top_builddir=
21293fi
21294
21295case $srcdir in
21296 .) # No --srcdir option. We are building in place.
21297 ac_srcdir=.
21298 if test -z "$ac_top_builddir"; then
21299 ac_top_srcdir=.
21300 else
21301 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21302 fi ;;
21303 [\\/]* | ?:[\\/]* ) # Absolute path.
21304 ac_srcdir=$srcdir$ac_dir_suffix;
21305 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021306 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021307 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21308 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21309esac
a.rottmann964dbb12004-02-26 19:47:42 +000021310
21311# Do not use `cd foo && pwd` to compute absolute paths, because
21312# the directories may not exist.
21313case `pwd` in
21314.) ac_abs_builddir="$ac_dir";;
21315*)
21316 case "$ac_dir" in
21317 .) ac_abs_builddir=`pwd`;;
21318 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21319 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21320 esac;;
21321esac
21322case $ac_abs_builddir in
21323.) ac_abs_top_builddir=${ac_top_builddir}.;;
21324*)
21325 case ${ac_top_builddir}. in
21326 .) ac_abs_top_builddir=$ac_abs_builddir;;
21327 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21328 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21329 esac;;
21330esac
21331case $ac_abs_builddir in
21332.) ac_abs_srcdir=$ac_srcdir;;
21333*)
21334 case $ac_srcdir in
21335 .) ac_abs_srcdir=$ac_abs_builddir;;
21336 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21337 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21338 esac;;
21339esac
21340case $ac_abs_builddir in
21341.) ac_abs_top_srcdir=$ac_top_srcdir;;
21342*)
21343 case $ac_top_srcdir in
21344 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21345 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21346 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21347 esac;;
21348esac
a.rottmann84e63352003-03-24 09:42:16 +000021349
drh75897232000-05-29 14:26:00 +000021350
drh71eb93e2001-09-28 01:34:43 +000021351 case $INSTALL in
21352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021353 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021354 esac
21355
dougcurrie0f290bf2004-06-21 18:57:29 +000021356 if test x"$ac_file" != x-; then
21357 { echo "$as_me:$LINENO: creating $ac_file" >&5
21358echo "$as_me: creating $ac_file" >&6;}
21359 rm -f "$ac_file"
21360 fi
drh71eb93e2001-09-28 01:34:43 +000021361 # Let's still pretend it is `configure' which instantiates (i.e., don't
21362 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021363 # /* config.h. Generated by config.status. */
21364 if test x"$ac_file" = x-; then
21365 configure_input=
21366 else
21367 configure_input="$ac_file. "
21368 fi
21369 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021370 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021371
drh71eb93e2001-09-28 01:34:43 +000021372 # First look for the input files in the build tree, otherwise in the
21373 # src tree.
21374 ac_file_inputs=`IFS=:
21375 for f in $ac_file_in; do
21376 case $f in
21377 -) echo $tmp/stdin ;;
21378 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021379 # Absolute (can't be DOS-style, as IFS=:)
21380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021381echo "$as_me: error: cannot find input file: $f" >&2;}
21382 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021383 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021384 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021385 if test -f "$f"; then
21386 # Build tree
21387 echo "$f"
21388 elif test -f "$srcdir/$f"; then
21389 # Source tree
21390 echo "$srcdir/$f"
21391 else
21392 # /dev/null tree
21393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021394echo "$as_me: error: cannot find input file: $f" >&2;}
21395 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021396 fi;;
drh71eb93e2001-09-28 01:34:43 +000021397 esac
21398 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021399_ACEOF
21400cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021401 sed "$ac_vpsub
21402$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021403_ACEOF
21404cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021405:t
21406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21407s,@configure_input@,$configure_input,;t t
21408s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021409s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021410s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021411s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21412s,@builddir@,$ac_builddir,;t t
21413s,@abs_builddir@,$ac_abs_builddir,;t t
21414s,@top_builddir@,$ac_top_builddir,;t t
21415s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021416s,@INSTALL@,$ac_INSTALL,;t t
21417" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21418 rm -f $tmp/stdin
21419 if test x"$ac_file" != x-; then
21420 mv $tmp/out $ac_file
21421 else
21422 cat $tmp/out
21423 rm -f $tmp/out
21424 fi
drh75897232000-05-29 14:26:00 +000021425
drh71eb93e2001-09-28 01:34:43 +000021426done
a.rottmann84e63352003-03-24 09:42:16 +000021427_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021428
a.rottmann84e63352003-03-24 09:42:16 +000021429cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021430
21431{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021432_ACEOF
drh75897232000-05-29 14:26:00 +000021433chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021434ac_clean_files=$ac_clean_files_save
21435
a.rottmann84e63352003-03-24 09:42:16 +000021436
drh71eb93e2001-09-28 01:34:43 +000021437# configure is writing to config.log, and then calls config.status.
21438# config.status does its own redirection, appending to config.log.
21439# Unfortunately, on DOS this fails, as config.log is still kept open
21440# by configure, so config.status won't be able to write to it; its
21441# output is simply discarded. So we exec the FD to /dev/null,
21442# effectively closing config.log, so it can be properly (re)opened and
21443# appended to by config.status. When coming back to configure, we
21444# need to make the FD available again.
21445if test "$no_create" != yes; then
21446 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021447 ac_config_status_args=
21448 test "$silent" = yes &&
21449 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021450 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021452 exec 5>>config.log
21453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21454 # would make configure fail if this is the last instruction.
21455 $ac_cs_success || { (exit 1); exit 1; }
21456fi
drh75897232000-05-29 14:26:00 +000021457