blob: 4d3a736ad00404fd8518b24dc26d6345be002f2a [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
drh26d0e2a2005-07-06 13:51:27 +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 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
xdong28f79f72003-09-23 00:35:21 +00001029 --enable-releasemode Support libtool link to release mode
dougcurrie0f290bf2004-06-21 18:57:29 +00001030 --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always)
drh7b5717e2004-11-25 13:50:01 +00001031 --disable-tcl do not build TCL extension
tpoindex9d9f76c2005-01-03 21:28:56 +00001032 --enable-debug enable debugging & verbose explain
drh71eb93e2001-09-28 01:34:43 +00001033
1034Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1039 both]
1040 --with-tags[=TAGS]
1041 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001042 --with-hints=FILE Read configuration options from FILE
drhb571b452004-12-10 02:20:27 +00001043 --with-tcl=DIR directory containing tcl configuration (tclConfig.sh)
drh71eb93e2001-09-28 01:34:43 +00001044
1045Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001058
1059Use these variables to override the choices made by `configure' or to help
1060it to find libraries and programs with nonstandard names/locations.
1061
a.rottmann84e63352003-03-24 09:42:16 +00001062_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001063fi
1064
1065if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001071
a.rottmann84e63352003-03-24 09:42:16 +00001072if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076else
1077 ac_dir_suffix= ac_top_builddir=
1078fi
drh71eb93e2001-09-28 01:34:43 +00001079
a.rottmann84e63352003-03-24 09:42:16 +00001080case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094esac
a.rottmann964dbb12004-02-26 19:47:42 +00001095
1096# Do not use `cd foo && pwd` to compute absolute paths, because
1097# the directories may not exist.
1098case `pwd` in
1099.) ac_abs_builddir="$ac_dir";;
1100*)
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106esac
1107case $ac_abs_builddir in
1108.) ac_abs_top_builddir=${ac_top_builddir}.;;
1109*)
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_srcdir=$ac_srcdir;;
1118*)
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_srcdir=$ac_top_srcdir;;
1127*)
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133esac
a.rottmann84e63352003-03-24 09:42:16 +00001134
1135 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001136 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001137 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001138 echo
a.rottmann84e63352003-03-24 09:42:16 +00001139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001141 echo
a.rottmann84e63352003-03-24 09:42:16 +00001142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001144 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001145 echo
1146 $ac_configure --help
1147 else
a.rottmann84e63352003-03-24 09:42:16 +00001148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001149 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001150 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001151 done
1152fi
1153
1154test -n "$ac_init_help" && exit 0
1155if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001156 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001157
a.rottmann964dbb12004-02-26 19:47:42 +00001158Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001159This configure script is free software; the Free Software Foundation
1160gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001161_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001162 exit 0
1163fi
1164exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001165cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001166This file contains any messages produced by compilers while
1167running configure, to aid debugging if configure makes a mistake.
1168
1169It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001170generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001171
1172 $ $0 $@
1173
a.rottmann84e63352003-03-24 09:42:16 +00001174_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001175{
1176cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001177## --------- ##
1178## Platform. ##
1179## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001180
1181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185uname -v = `(uname -v) 2>/dev/null || echo unknown`
1186
1187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1189
1190/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1197
drh71eb93e2001-09-28 01:34:43 +00001198_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001199
1200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201for as_dir in $PATH
1202do
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206done
1207
drh71eb93e2001-09-28 01:34:43 +00001208} >&5
1209
a.rottmann84e63352003-03-24 09:42:16 +00001210cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001211
a.rottmann84e63352003-03-24 09:42:16 +00001212
1213## ----------- ##
1214## Core tests. ##
1215## ----------- ##
1216
1217_ACEOF
1218
drh71eb93e2001-09-28 01:34:43 +00001219
1220# Keep a trace of the command line.
1221# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001222# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001223# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001224# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001225ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001226ac_configure_args0=
1227ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001228ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001229ac_must_keep_next=false
1230for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001231do
a.rottmann84e63352003-03-24 09:42:16 +00001232 for ac_arg
1233 do
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1244 2)
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001247 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001248 else
a.rottmann964dbb12004-02-26 19:47:42 +00001249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1257 ;;
1258 -* ) ac_must_keep_next=true ;;
1259 esac
a.rottmann84e63352003-03-24 09:42:16 +00001260 fi
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1264 ;;
1265 esac
1266 done
drh71eb93e2001-09-28 01:34:43 +00001267done
a.rottmann84e63352003-03-24 09:42:16 +00001268$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001270
1271# When interrupted or exit'd, cleanup temporary files, and complete
1272# config.log. We remove comments because anyway the quotes in there
1273# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001274# WARNING: Be sure not to use single quotes in there, as some shells,
1275# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001276trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001278 {
1279 echo
1280
1281 cat <<\_ASBOX
1282## ---------------- ##
1283## Cache variables. ##
1284## ---------------- ##
1285_ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001288{
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001295 ;;
1296 *)
1297 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001299 ;;
1300 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001301}
1302 echo
1303
1304 cat <<\_ASBOX
1305## ----------------- ##
1306## Output variables. ##
1307## ----------------- ##
1308_ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1311 do
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1316
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319## ------------- ##
1320## Output files. ##
1321## ------------- ##
1322_ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1325 do
1326 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001327 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001328 done | sort
1329 echo
1330 fi
1331
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334## ----------- ##
1335## confdefs.h. ##
1336## ----------- ##
1337_ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1341 fi
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001346 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001348 exit $exit_status
1349 ' 0
1350for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352done
1353ac_signal=0
1354
1355# confdefs.h avoids OS command line length limits that DEFS can exceed.
1356rm -rf conftest* confdefs.h
1357# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358echo >confdefs.h
1359
a.rottmann84e63352003-03-24 09:42:16 +00001360# Predefined preprocessor variables.
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_NAME "$PACKAGE_NAME"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_VERSION "$PACKAGE_VERSION"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_STRING "$PACKAGE_STRING"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384_ACEOF
1385
1386
drh71eb93e2001-09-28 01:34:43 +00001387# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001388# Prefer explicitly selected file to automatically selected ones.
1389if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1394 fi
1395fi
1396for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001399echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001400 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001401 . "$ac_site_file"
1402 fi
1403done
1404
1405if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001410echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1415 fi
drh75897232000-05-29 14:26:00 +00001416else
a.rottmann84e63352003-03-24 09:42:16 +00001417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001418echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1420fi
1421
1422# Check that the precious variables saved in the cache have kept the same
1423# value.
1424ac_cache_corrupted=false
1425for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001434echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001438echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1441 *)
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001444echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001446echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001448echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001449 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001450 fi;;
1451 esac
a.rottmann84e63352003-03-24 09:42:16 +00001452 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001462 esac
1463 fi
1464done
1465if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001471fi
1472
1473ac_ext=c
drh75897232000-05-29 14:26:00 +00001474ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001478
a.rottmann84e63352003-03-24 09:42:16 +00001479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
drh75897232000-05-29 14:26:00 +00001497
1498# The following RCS revision string applies to configure.in
drh26d0e2a2005-07-06 13:51:27 +00001499# $Revision: 1.31 $
drh75897232000-05-29 14:26:00 +00001500
1501#########
drh71eb93e2001-09-28 01:34:43 +00001502# Programs needed
drh75897232000-05-29 14:26:00 +00001503#
drh71eb93e2001-09-28 01:34:43 +00001504# Check whether --enable-shared or --disable-shared was given.
1505if test "${enable_shared+set}" = set; then
1506 enableval="$enable_shared"
1507 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001508 case $enableval in
1509 yes) enable_shared=yes ;;
1510 no) enable_shared=no ;;
1511 *)
1512 enable_shared=no
1513 # Look at the argument we got. We use all the common list separators.
1514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1515 for pkg in $enableval; do
1516 IFS="$lt_save_ifs"
1517 if test "X$pkg" = "X$p"; then
1518 enable_shared=yes
1519 fi
1520 done
1521 IFS="$lt_save_ifs"
1522 ;;
1523 esac
drh71eb93e2001-09-28 01:34:43 +00001524else
1525 enable_shared=yes
1526fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001527
drh71eb93e2001-09-28 01:34:43 +00001528# Check whether --enable-static or --disable-static was given.
1529if test "${enable_static+set}" = set; then
1530 enableval="$enable_static"
1531 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001532 case $enableval in
1533 yes) enable_static=yes ;;
1534 no) enable_static=no ;;
1535 *)
1536 enable_static=no
1537 # Look at the argument we got. We use all the common list separators.
1538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1539 for pkg in $enableval; do
1540 IFS="$lt_save_ifs"
1541 if test "X$pkg" = "X$p"; then
1542 enable_static=yes
1543 fi
1544 done
1545 IFS="$lt_save_ifs"
1546 ;;
1547 esac
drh71eb93e2001-09-28 01:34:43 +00001548else
1549 enable_static=yes
1550fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001551
drh71eb93e2001-09-28 01:34:43 +00001552# Check whether --enable-fast-install or --disable-fast-install was given.
1553if test "${enable_fast_install+set}" = set; then
1554 enableval="$enable_fast_install"
1555 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001556 case $enableval in
1557 yes) enable_fast_install=yes ;;
1558 no) enable_fast_install=no ;;
1559 *)
1560 enable_fast_install=no
1561 # Look at the argument we got. We use all the common list separators.
1562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1563 for pkg in $enableval; do
1564 IFS="$lt_save_ifs"
1565 if test "X$pkg" = "X$p"; then
1566 enable_fast_install=yes
1567 fi
1568 done
1569 IFS="$lt_save_ifs"
1570 ;;
1571 esac
drh71eb93e2001-09-28 01:34:43 +00001572else
1573 enable_fast_install=yes
1574fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001575
drh71eb93e2001-09-28 01:34:43 +00001576ac_aux_dir=
1577for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1578 if test -f $ac_dir/install-sh; then
1579 ac_aux_dir=$ac_dir
1580 ac_install_sh="$ac_aux_dir/install-sh -c"
1581 break
1582 elif test -f $ac_dir/install.sh; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/install.sh -c"
1585 break
1586 elif test -f $ac_dir/shtool; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/shtool install -c"
1589 break
1590 fi
1591done
1592if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001593 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001594echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1595 { (exit 1); exit 1; }; }
1596fi
1597ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1598ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1599ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1600
1601# Make sure we can run config.sub.
1602$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001603 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001604echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1605 { (exit 1); exit 1; }; }
1606
a.rottmann84e63352003-03-24 09:42:16 +00001607echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001608echo $ECHO_N "checking build system type... $ECHO_C" >&6
1609if test "${ac_cv_build+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 ac_cv_build_alias=$build_alias
1613test -z "$ac_cv_build_alias" &&
1614 ac_cv_build_alias=`$ac_config_guess`
1615test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001616 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001617echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1618 { (exit 1); exit 1; }; }
1619ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001622 { (exit 1); exit 1; }; }
1623
1624fi
a.rottmann84e63352003-03-24 09:42:16 +00001625echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001626echo "${ECHO_T}$ac_cv_build" >&6
1627build=$ac_cv_build
1628build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
a.rottmann84e63352003-03-24 09:42:16 +00001632
1633echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001634echo $ECHO_N "checking host system type... $ECHO_C" >&6
1635if test "${ac_cv_host+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_host_alias=$host_alias
1639test -z "$ac_cv_host_alias" &&
1640 ac_cv_host_alias=$ac_cv_build_alias
1641ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001643echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
a.rottmann84e63352003-03-24 09:42:16 +00001647echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001648echo "${ECHO_T}$ac_cv_host" >&6
1649host=$ac_cv_host
1650host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
a.rottmann84e63352003-03-24 09:42:16 +00001654
drh71eb93e2001-09-28 01:34:43 +00001655ac_ext=c
1656ac_cpp='$CPP $CPPFLAGS'
1657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1662set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001663echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1670else
a.rottmann84e63352003-03-24 09:42:16 +00001671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682done
drh71eb93e2001-09-28 01:34:43 +00001683done
1684
1685fi
1686fi
1687CC=$ac_cv_prog_CC
1688if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001689 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001690echo "${ECHO_T}$CC" >&6
1691else
a.rottmann84e63352003-03-24 09:42:16 +00001692 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001693echo "${ECHO_T}no" >&6
1694fi
1695
1696fi
1697if test -z "$ac_cv_prog_CC"; then
1698 ac_ct_CC=$CC
1699 # Extract the first word of "gcc", so it can be a program name with args.
1700set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001701echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
a.rottmann84e63352003-03-24 09:42:16 +00001709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="gcc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
drh71eb93e2001-09-28 01:34:43 +00001721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
a.rottmann84e63352003-03-24 09:42:16 +00001730 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001731echo "${ECHO_T}no" >&6
1732fi
1733
1734 CC=$ac_ct_CC
1735else
1736 CC="$ac_cv_prog_CC"
1737fi
1738
1739if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1742set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001743echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1750else
a.rottmann84e63352003-03-24 09:42:16 +00001751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="${ac_tool_prefix}cc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1761 fi
1762done
drh71eb93e2001-09-28 01:34:43 +00001763done
1764
1765fi
1766fi
1767CC=$ac_cv_prog_CC
1768if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001769 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001770echo "${ECHO_T}$CC" >&6
1771else
a.rottmann84e63352003-03-24 09:42:16 +00001772 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001773echo "${ECHO_T}no" >&6
1774fi
1775
1776fi
1777if test -z "$ac_cv_prog_CC"; then
1778 ac_ct_CC=$CC
1779 # Extract the first word of "cc", so it can be a program name with args.
1780set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001781echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786 if test -n "$ac_ct_CC"; then
1787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788else
a.rottmann84e63352003-03-24 09:42:16 +00001789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH
1791do
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_ac_ct_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800done
drh71eb93e2001-09-28 01:34:43 +00001801done
1802
1803fi
1804fi
1805ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001808echo "${ECHO_T}$ac_ct_CC" >&6
1809else
a.rottmann84e63352003-03-24 09:42:16 +00001810 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001811echo "${ECHO_T}no" >&6
1812fi
1813
1814 CC=$ac_ct_CC
1815else
1816 CC="$ac_cv_prog_CC"
1817fi
1818
1819fi
1820if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001823echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1841 continue
1842 fi
1843 ac_cv_prog_CC="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847done
drh71eb93e2001-09-28 01:34:43 +00001848done
1849
1850if test $ac_prog_rejected = yes; then
1851 # We found a bogon in the path, so make sure we never use it.
1852 set dummy $ac_cv_prog_CC
1853 shift
1854 if test $# != 0; then
1855 # We chose a different compiler from the bogus one.
1856 # However, it has the same basename, so the bogon will be chosen
1857 # first if we set CC to just the basename; use the full file name.
1858 shift
a.rottmann84e63352003-03-24 09:42:16 +00001859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001860 fi
1861fi
1862fi
1863fi
1864CC=$ac_cv_prog_CC
1865if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001866 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001867echo "${ECHO_T}$CC" >&6
1868else
a.rottmann84e63352003-03-24 09:42:16 +00001869 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001870echo "${ECHO_T}no" >&6
1871fi
1872
1873fi
1874if test -z "$CC"; then
1875 if test -n "$ac_tool_prefix"; then
1876 for ac_prog in cl
1877 do
1878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001880echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887else
a.rottmann84e63352003-03-24 09:42:16 +00001888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899done
drh71eb93e2001-09-28 01:34:43 +00001900done
1901
1902fi
1903fi
1904CC=$ac_cv_prog_CC
1905if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001906 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001907echo "${ECHO_T}$CC" >&6
1908else
a.rottmann84e63352003-03-24 09:42:16 +00001909 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001910echo "${ECHO_T}no" >&6
1911fi
1912
1913 test -n "$CC" && break
1914 done
1915fi
1916if test -z "$CC"; then
1917 ac_ct_CC=$CC
1918 for ac_prog in cl
1919do
1920 # Extract the first word of "$ac_prog", so it can be a program name with args.
1921set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001922echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929else
a.rottmann84e63352003-03-24 09:42:16 +00001930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941done
drh71eb93e2001-09-28 01:34:43 +00001942done
1943
1944fi
1945fi
1946ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001949echo "${ECHO_T}$ac_ct_CC" >&6
1950else
a.rottmann84e63352003-03-24 09:42:16 +00001951 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001952echo "${ECHO_T}no" >&6
1953fi
1954
1955 test -n "$ac_ct_CC" && break
1956done
1957
1958 CC=$ac_ct_CC
1959fi
1960
1961fi
1962
a.rottmann84e63352003-03-24 09:42:16 +00001963
1964test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1965See \`config.log' for more details." >&5
1966echo "$as_me: error: no acceptable C compiler found in \$PATH
1967See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001968 { (exit 1); exit 1; }; }
1969
1970# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001971echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001972 "checking for C compiler version" >&5
1973ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001975 (eval $ac_compiler --version </dev/null >&5) 2>&5
1976 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001978 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001980 (eval $ac_compiler -v </dev/null >&5) 2>&5
1981 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001983 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001985 (eval $ac_compiler -V </dev/null >&5) 2>&5
1986 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001988 (exit $ac_status); }
1989
1990cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001991/* confdefs.h. */
1992_ACEOF
1993cat confdefs.h >>conftest.$ac_ext
1994cat >>conftest.$ac_ext <<_ACEOF
1995/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001996
1997int
1998main ()
1999{
2000
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002006ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002007# Try to create an executable without -o first, disregard a.out.
2008# It will help us diagnose broken compilers, and finding out an intuition
2009# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002010echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2011echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002012ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002013if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002014 (eval $ac_link_default) 2>&5
2015 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002017 (exit $ac_status); }; then
2018 # Find the output, starting from the most likely. This scheme is
2019# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002021
2022# Be careful to initialize this variable, since it used to be cached.
2023# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2024ac_cv_exeext=
2025# b.out is created by i960 compilers.
2026for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2027do
2028 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002029 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002031 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002032 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002033 # This is the source file.
2034 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002035 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002036 # We found the default executable, but exeext='' is most
2037 # certainly right.
2038 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002039 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041 # FIXME: I believe we export ac_cv_exeext for Libtool,
2042 # but it would be cool to find out if it's true. Does anybody
2043 # maintain Libtool? --akim.
2044 export ac_cv_exeext
2045 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002046 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002047 break;;
drh71eb93e2001-09-28 01:34:43 +00002048 esac
2049done
2050else
2051 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: C compiler cannot create executables
2057See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002058 { (exit 77); exit 77; }; }
2059fi
2060
2061ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002062echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002063echo "${ECHO_T}$ac_file" >&6
2064
2065# Check the compiler produces executables we can run. If not, either
2066# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002067echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002068echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2069# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2070# If not cross compiling, check that we can run a simple program.
2071if test "$cross_compiling" != yes; then
2072 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002074 (eval $ac_try) 2>&5
2075 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002077 (exit $ac_status); }; }; then
2078 cross_compiling=no
2079 else
2080 if test "$cross_compiling" = maybe; then
2081 cross_compiling=yes
2082 else
a.rottmann84e63352003-03-24 09:42:16 +00002083 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2084If you meant to cross compile, use \`--host'.
2085See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002086echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002087If you meant to cross compile, use \`--host'.
2088See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002089 { (exit 1); exit 1; }; }
2090 fi
2091 fi
2092fi
a.rottmann84e63352003-03-24 09:42:16 +00002093echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002094echo "${ECHO_T}yes" >&6
2095
a.rottmann84e63352003-03-24 09:42:16 +00002096rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002097ac_clean_files=$ac_clean_files_save
2098# Check the compiler produces executables we can run. If not, either
2099# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002100echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002101echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002102echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002103echo "${ECHO_T}$cross_compiling" >&6
2104
a.rottmann84e63352003-03-24 09:42:16 +00002105echo "$as_me:$LINENO: checking for suffix of executables" >&5
2106echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002108 (eval $ac_link) 2>&5
2109 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002111 (exit $ac_status); }; then
2112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2114# work properly (i.e., refer to `conftest.exe'), while it won't with
2115# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002116for ac_file in conftest.exe conftest conftest.*; do
2117 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002118 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002121 export ac_cv_exeext
2122 break;;
drh71eb93e2001-09-28 01:34:43 +00002123 * ) break;;
2124 esac
2125done
2126else
a.rottmann84e63352003-03-24 09:42:16 +00002127 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2128See \`config.log' for more details." >&5
2129echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2130See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002131 { (exit 1); exit 1; }; }
2132fi
2133
2134rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002135echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002136echo "${ECHO_T}$ac_cv_exeext" >&6
2137
2138rm -f conftest.$ac_ext
2139EXEEXT=$ac_cv_exeext
2140ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002141echo "$as_me:$LINENO: checking for suffix of object files" >&5
2142echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002143if test "${ac_cv_objext+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002147/* confdefs.h. */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002152
2153int
2154main ()
2155{
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002163 (eval $ac_compile) 2>&5
2164 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002166 (exit $ac_status); }; then
2167 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2168 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2171 break;;
2172 esac
2173done
2174else
2175 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2179See \`config.log' for more details." >&5
2180echo "$as_me: error: cannot compute suffix of object files: cannot compile
2181See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002182 { (exit 1); exit 1; }; }
2183fi
2184
2185rm -f conftest.$ac_cv_objext conftest.$ac_ext
2186fi
a.rottmann84e63352003-03-24 09:42:16 +00002187echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002188echo "${ECHO_T}$ac_cv_objext" >&6
2189OBJEXT=$ac_cv_objext
2190ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002191echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002192echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2193if test "${ac_cv_c_compiler_gnu+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002202
2203int
2204main ()
2205{
2206#ifndef __GNUC__
2207 choke me
2208#endif
2209
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002216 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002217 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002222 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002232 (eval $ac_try) 2>&5
2233 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002235 (exit $ac_status); }; }; then
2236 ac_compiler_gnu=yes
2237else
2238 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002239sed 's/^/| /' conftest.$ac_ext >&5
2240
drh71eb93e2001-09-28 01:34:43 +00002241ac_compiler_gnu=no
2242fi
a.rottmann964dbb12004-02-26 19:47:42 +00002243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002244ac_cv_c_compiler_gnu=$ac_compiler_gnu
2245
2246fi
a.rottmann84e63352003-03-24 09:42:16 +00002247echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002248echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2249GCC=`test $ac_compiler_gnu = yes && echo yes`
2250ac_test_CFLAGS=${CFLAGS+set}
2251ac_save_CFLAGS=$CFLAGS
2252CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002253echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002254echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2255if test "${ac_cv_prog_cc_g+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002259/* confdefs.h. */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002264
2265int
2266main ()
2267{
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002275 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002276 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002277 grep -v '^ *+' conftest.er1 >conftest.err
2278 rm -f conftest.er1
2279 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002281 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002282 { ac_try='test -z "$ac_c_werror_flag"
2283 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; } &&
2289 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002291 (eval $ac_try) 2>&5
2292 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002294 (exit $ac_status); }; }; then
2295 ac_cv_prog_cc_g=yes
2296else
2297 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002298sed 's/^/| /' conftest.$ac_ext >&5
2299
drh71eb93e2001-09-28 01:34:43 +00002300ac_cv_prog_cc_g=no
2301fi
a.rottmann964dbb12004-02-26 19:47:42 +00002302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002303fi
a.rottmann84e63352003-03-24 09:42:16 +00002304echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002305echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2306if test "$ac_test_CFLAGS" = set; then
2307 CFLAGS=$ac_save_CFLAGS
2308elif test $ac_cv_prog_cc_g = yes; then
2309 if test "$GCC" = yes; then
2310 CFLAGS="-g -O2"
2311 else
2312 CFLAGS="-g"
2313 fi
2314else
2315 if test "$GCC" = yes; then
2316 CFLAGS="-O2"
2317 else
2318 CFLAGS=
2319 fi
2320fi
a.rottmann84e63352003-03-24 09:42:16 +00002321echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2322echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2323if test "${ac_cv_prog_cc_stdc+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 ac_cv_prog_cc_stdc=no
2327ac_save_CC=$CC
2328cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */
2334#include <stdarg.h>
2335#include <stdio.h>
2336#include <sys/types.h>
2337#include <sys/stat.h>
2338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2339struct buf { int x; };
2340FILE * (*rcsopen) (struct buf *, struct stat *, int);
2341static char *e (p, i)
2342 char **p;
2343 int i;
2344{
2345 return p[i];
2346}
2347static char *f (char * (*g) (char **, int), char **p, ...)
2348{
2349 char *s;
2350 va_list v;
2351 va_start (v,p);
2352 s = g (p, va_arg (v,int));
2353 va_end (v);
2354 return s;
2355}
a.rottmann964dbb12004-02-26 19:47:42 +00002356
2357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2358 function prototypes and stuff, but not '\xHH' hex character constants.
2359 These don't provoke an error unfortunately, instead are silently treated
2360 as 'x'. The following induces an error, until -std1 is added to get
2361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2362 array size at least. It's necessary to write '\x00'==0 to get something
2363 that's true only with -std1. */
2364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2365
a.rottmann84e63352003-03-24 09:42:16 +00002366int test (int i, double x);
2367struct s1 {int (*f) (int a);};
2368struct s2 {int (*f) (double a);};
2369int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2370int argc;
2371char **argv;
2372int
2373main ()
2374{
2375return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380# Don't try gcc -ansi; that turns off useful extensions and
2381# breaks some systems' header files.
2382# AIX -qlanglvl=ansi
2383# Ultrix and OSF/1 -std1
2384# HP-UX 10.20 and later -Ae
2385# HP-UX older versions -Aa -D_HPUX_SOURCE
2386# SVR4 -Xc -D__EXTENSIONS__
2387for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2388do
2389 CC="$ac_save_CC $ac_arg"
2390 rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002392 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002393 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_prog_cc_stdc=$ac_arg
2413break
2414else
2415 echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418fi
a.rottmann964dbb12004-02-26 19:47:42 +00002419rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002420done
2421rm -f conftest.$ac_ext conftest.$ac_objext
2422CC=$ac_save_CC
2423
2424fi
2425
2426case "x$ac_cv_prog_cc_stdc" in
2427 x|xno)
2428 echo "$as_me:$LINENO: result: none needed" >&5
2429echo "${ECHO_T}none needed" >&6 ;;
2430 *)
2431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2432echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2433 CC="$CC $ac_cv_prog_cc_stdc" ;;
2434esac
2435
drh71eb93e2001-09-28 01:34:43 +00002436# Some people use a C++ compiler to compile C. Since we use `exit',
2437# in C++ we need to declare it. In case someone uses the same compiler
2438# for both compiling C and C++ we need to have the C++ compiler decide
2439# the declaration of exit, since it's the most demanding environment.
2440cat >conftest.$ac_ext <<_ACEOF
2441#ifndef __cplusplus
2442 choke me
2443#endif
2444_ACEOF
2445rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002447 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002448 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002453 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002463 (eval $ac_try) 2>&5
2464 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002466 (exit $ac_status); }; }; then
2467 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002468 '' \
drh71eb93e2001-09-28 01:34:43 +00002469 'extern "C" void std::exit (int) throw (); using std::exit;' \
2470 'extern "C" void std::exit (int); using std::exit;' \
2471 'extern "C" void exit (int) throw ();' \
2472 'extern "C" void exit (int);' \
2473 'void exit (int);'
2474do
2475 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002481$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002482#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002483int
2484main ()
2485{
2486exit (42);
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002493 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002494 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002499 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002509 (eval $ac_try) 2>&5
2510 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002512 (exit $ac_status); }; }; then
2513 :
2514else
2515 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002516sed 's/^/| /' conftest.$ac_ext >&5
2517
drh71eb93e2001-09-28 01:34:43 +00002518continue
2519fi
a.rottmann964dbb12004-02-26 19:47:42 +00002520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002521 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002527$ac_declaration
2528int
2529main ()
2530{
2531exit (42);
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002538 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002539 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002544 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002554 (eval $ac_try) 2>&5
2555 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002557 (exit $ac_status); }; }; then
2558 break
2559else
2560 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002561sed 's/^/| /' conftest.$ac_ext >&5
2562
drh71eb93e2001-09-28 01:34:43 +00002563fi
a.rottmann964dbb12004-02-26 19:47:42 +00002564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002565done
2566rm -f conftest*
2567if test -n "$ac_declaration"; then
2568 echo '#ifdef __cplusplus' >>confdefs.h
2569 echo $ac_declaration >>confdefs.h
2570 echo '#endif' >>confdefs.h
2571fi
2572
2573else
2574 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002575sed 's/^/| /' conftest.$ac_ext >&5
2576
drh71eb93e2001-09-28 01:34:43 +00002577fi
a.rottmann964dbb12004-02-26 19:47:42 +00002578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002579ac_ext=c
2580ac_cpp='$CPP $CPPFLAGS'
2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
a.rottmann9bc8b932004-02-29 15:18:31 +00002585echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2586echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2587if test "${lt_cv_path_SED+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590 # Loop through the user's path and test for sed and gsed.
2591# Then use that list of sed's as ones to test for truncation.
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for lt_ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2600 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2601 fi
2602 done
2603 done
2604done
2605lt_ac_max=0
2606lt_ac_count=0
2607# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2608# along with /bin/sed that truncates output.
2609for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2610 test ! -f $lt_ac_sed && break
2611 cat /dev/null > conftest.in
2612 lt_ac_count=0
2613 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2614 # Check for GNU sed and select it if it is found.
2615 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2616 lt_cv_path_SED=$lt_ac_sed
2617 break
2618 fi
2619 while true; do
2620 cat conftest.in conftest.in >conftest.tmp
2621 mv conftest.tmp conftest.in
2622 cp conftest.in conftest.nl
2623 echo >>conftest.nl
2624 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2625 cmp -s conftest.out conftest.nl || break
2626 # 10000 chars as input seems more than enough
2627 test $lt_ac_count -gt 10 && break
2628 lt_ac_count=`expr $lt_ac_count + 1`
2629 if test $lt_ac_count -gt $lt_ac_max; then
2630 lt_ac_max=$lt_ac_count
2631 lt_cv_path_SED=$lt_ac_sed
2632 fi
2633 done
2634done
2635SED=$lt_cv_path_SED
2636
a.rottmann84e63352003-03-24 09:42:16 +00002637fi
2638
a.rottmann9bc8b932004-02-29 15:18:31 +00002639echo "$as_me:$LINENO: result: $SED" >&5
2640echo "${ECHO_T}$SED" >&6
2641
2642echo "$as_me:$LINENO: checking for egrep" >&5
2643echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2644if test "${ac_cv_prog_egrep+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2648 then ac_cv_prog_egrep='grep -E'
2649 else ac_cv_prog_egrep='egrep'
2650 fi
2651fi
2652echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2653echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2654 EGREP=$ac_cv_prog_egrep
2655
2656
a.rottmann84e63352003-03-24 09:42:16 +00002657
drh71eb93e2001-09-28 01:34:43 +00002658# Check whether --with-gnu-ld or --without-gnu-ld was given.
2659if test "${with_gnu_ld+set}" = set; then
2660 withval="$with_gnu_ld"
2661 test "$withval" = no || with_gnu_ld=yes
2662else
2663 with_gnu_ld=no
2664fi;
2665ac_prog=ld
2666if test "$GCC" = yes; then
2667 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002668 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2669echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002670 case $host in
2671 *-*-mingw*)
2672 # gcc leaves a trailing carriage return which upsets mingw
2673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2674 *)
2675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2676 esac
2677 case $ac_prog in
2678 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002679 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002680 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002681 # Canonicalize the pathname of ld
2682 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002684 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002685 done
2686 test -z "$LD" && LD="$ac_prog"
2687 ;;
2688 "")
2689 # If it fails, then pretend we aren't using GCC.
2690 ac_prog=ld
2691 ;;
2692 *)
2693 # If it is relative, then search for the first ld in PATH.
2694 with_gnu_ld=unknown
2695 ;;
2696 esac
2697elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002698 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002699echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2700else
a.rottmann84e63352003-03-24 09:42:16 +00002701 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002702echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2703fi
2704if test "${lt_cv_path_LD+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706else
2707 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002709 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002710 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002711 test -z "$ac_dir" && ac_dir=.
2712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2713 lt_cv_path_LD="$ac_dir/$ac_prog"
2714 # Check to see if the program is GNU ld. I'd rather use --version,
2715 # but apparently some GNU ld's only accept -v.
2716 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2718 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002719 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002720 ;;
2721 *)
drh71eb93e2001-09-28 01:34:43 +00002722 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002723 ;;
2724 esac
drh71eb93e2001-09-28 01:34:43 +00002725 fi
2726 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002727 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002728else
2729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2730fi
2731fi
2732
2733LD="$lt_cv_path_LD"
2734if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002735 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002736echo "${ECHO_T}$LD" >&6
2737else
a.rottmann84e63352003-03-24 09:42:16 +00002738 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002739echo "${ECHO_T}no" >&6
2740fi
a.rottmann84e63352003-03-24 09:42:16 +00002741test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002742echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2743 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002744echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002745echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2746if test "${lt_cv_prog_gnu_ld+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002750case `$LD -v 2>&1 </dev/null` in
2751*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002752 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002753 ;;
2754*)
drh71eb93e2001-09-28 01:34:43 +00002755 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002756 ;;
2757esac
drh71eb93e2001-09-28 01:34:43 +00002758fi
a.rottmann84e63352003-03-24 09:42:16 +00002759echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002760echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2761with_gnu_ld=$lt_cv_prog_gnu_ld
2762
a.rottmann84e63352003-03-24 09:42:16 +00002763
2764echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002765echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2766if test "${lt_cv_ld_reload_flag+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 lt_cv_ld_reload_flag='-r'
2770fi
a.rottmann84e63352003-03-24 09:42:16 +00002771echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002772echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2773reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002774case $reload_flag in
2775"" | " "*) ;;
2776*) reload_flag=" $reload_flag" ;;
2777esac
2778reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002779
a.rottmann84e63352003-03-24 09:42:16 +00002780echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002781echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2782if test "${lt_cv_path_NM+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 if test -n "$NM"; then
2786 # Let the user override the test.
2787 lt_cv_path_NM="$NM"
2788else
a.rottmann9bc8b932004-02-29 15:18:31 +00002789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002790 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002791 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002792 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002793 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2794 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002795 # Check to see if the nm accepts a BSD-compat flag.
2796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2797 # nm: unknown option "B" ignored
2798 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002799 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2800 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002801 lt_cv_path_NM="$tmp_nm -B"
2802 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002803 ;;
2804 *)
2805 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2806 */dev/null*)
2807 lt_cv_path_NM="$tmp_nm -p"
2808 break
2809 ;;
2810 *)
2811 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2812 continue # so that we can try to find one that supports BSD flags
2813 ;;
2814 esac
2815 esac
drh71eb93e2001-09-28 01:34:43 +00002816 fi
2817 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002818 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002819 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2820fi
2821fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002822echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2823echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002824NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002825
2826echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002827echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2828LN_S=$as_ln_s
2829if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002830 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002831echo "${ECHO_T}yes" >&6
2832else
a.rottmann84e63352003-03-24 09:42:16 +00002833 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002834echo "${ECHO_T}no, using $LN_S" >&6
2835fi
2836
a.rottmann84e63352003-03-24 09:42:16 +00002837echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2838echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002839if test "${lt_cv_deplibs_check_method+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842 lt_cv_file_magic_cmd='$MAGIC_CMD'
2843lt_cv_file_magic_test_file=
2844lt_cv_deplibs_check_method='unknown'
2845# Need to set the preceding variable on all platforms that support
2846# interlibrary dependencies.
2847# 'none' -- dependencies not supported.
2848# `unknown' -- same as none, but documents that we really don't know.
2849# 'pass_all' -- all dependencies passed with no checks.
2850# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002851# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002852# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002853# If you have `file' or equivalent on your system and you're not sure
2854# whether `pass_all' will *always* work, you probably want this one.
2855
2856case $host_os in
2857aix4* | aix5*)
2858 lt_cv_deplibs_check_method=pass_all
2859 ;;
2860
2861beos*)
2862 lt_cv_deplibs_check_method=pass_all
2863 ;;
2864
2865bsdi4*)
2866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2867 lt_cv_file_magic_cmd='/usr/bin/file -L'
2868 lt_cv_file_magic_test_file=/shlib/libc.so
2869 ;;
2870
a.rottmann9bc8b932004-02-29 15:18:31 +00002871cygwin*)
2872 # win32_libid is a shell function defined in ltmain.sh
2873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2874 lt_cv_file_magic_cmd='win32_libid'
2875 ;;
2876
2877mingw* | pw32*)
2878 # Base MSYS/MinGW do not provide the 'file' command needed by
2879 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2881 lt_cv_file_magic_cmd='$OBJDUMP -f'
2882 ;;
2883
2884darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002885 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002886 ;;
2887
a.rottmann9bc8b932004-02-29 15:18:31 +00002888freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2890 case $host_cpu in
2891 i*86 )
2892 # Not sure whether the presence of OpenBSD here was a mistake.
2893 # Let's accept both of them until this is cleared up.
2894 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2895 lt_cv_file_magic_cmd=/usr/bin/file
2896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2897 ;;
2898 esac
2899 else
2900 lt_cv_deplibs_check_method=pass_all
2901 fi
2902 ;;
2903
2904gnu*)
2905 lt_cv_deplibs_check_method=pass_all
2906 ;;
2907
a.rottmann9bc8b932004-02-29 15:18:31 +00002908hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002909 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002910 case "$host_cpu" in
2911 ia64*)
2912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2914 ;;
2915 hppa*64*)
2916 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]'
2917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2918 ;;
2919 *)
2920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2922 ;;
2923 esac
drh71eb93e2001-09-28 01:34:43 +00002924 ;;
2925
a.rottmann84e63352003-03-24 09:42:16 +00002926irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002927 case $LD in
2928 *-32|*"-32 ") libmagic=32-bit;;
2929 *-n32|*"-n32 ") libmagic=N32;;
2930 *-64|*"-64 ") libmagic=64-bit;;
2931 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002932 esac
drh71eb93e2001-09-28 01:34:43 +00002933 lt_cv_deplibs_check_method=pass_all
2934 ;;
2935
2936# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002937linux*)
2938 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002939 ;;
2940
a.rottmann9bc8b932004-02-29 15:18:31 +00002941netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002942 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002944 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002946 fi
2947 ;;
2948
2949newos6*)
2950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2951 lt_cv_file_magic_cmd=/usr/bin/file
2952 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2953 ;;
2954
a.rottmann9bc8b932004-02-29 15:18:31 +00002955nto-qnx*)
2956 lt_cv_deplibs_check_method=unknown
2957 ;;
2958
a.rottmann84e63352003-03-24 09:42:16 +00002959openbsd*)
2960 lt_cv_file_magic_cmd=/usr/bin/file
2961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2964 else
2965 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2966 fi
drh71eb93e2001-09-28 01:34:43 +00002967 ;;
2968
2969osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002970 lt_cv_deplibs_check_method=pass_all
2971 ;;
2972
2973sco3.2v5*)
2974 lt_cv_deplibs_check_method=pass_all
2975 ;;
2976
2977solaris*)
2978 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002979 ;;
2980
drh71eb93e2001-09-28 01:34:43 +00002981sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2982 case $host_vendor in
2983 motorola)
2984 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]'
2985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2986 ;;
2987 ncr)
2988 lt_cv_deplibs_check_method=pass_all
2989 ;;
2990 sequent)
2991 lt_cv_file_magic_cmd='/bin/file'
2992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2993 ;;
2994 sni)
2995 lt_cv_file_magic_cmd='/bin/file'
2996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2997 lt_cv_file_magic_test_file=/lib/libc.so
2998 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002999 siemens)
3000 lt_cv_deplibs_check_method=pass_all
3001 ;;
drh71eb93e2001-09-28 01:34:43 +00003002 esac
3003 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003004
3005sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3006 lt_cv_deplibs_check_method=pass_all
3007 ;;
drh71eb93e2001-09-28 01:34:43 +00003008esac
3009
3010fi
a.rottmann84e63352003-03-24 09:42:16 +00003011echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003012echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3013file_magic_cmd=$lt_cv_file_magic_cmd
3014deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003015test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003016
drh71eb93e2001-09-28 01:34:43 +00003017
drh71eb93e2001-09-28 01:34:43 +00003018
drh71eb93e2001-09-28 01:34:43 +00003019
a.rottmann9bc8b932004-02-29 15:18:31 +00003020# If no C compiler was specified, use CC.
3021LTCC=${LTCC-"$CC"}
3022
3023# Allow CC to be a program name with arguments.
3024compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003025
drh71eb93e2001-09-28 01:34:43 +00003026
a.rottmann9bc8b932004-02-29 15:18:31 +00003027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3028if test "${enable_libtool_lock+set}" = set; then
3029 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003030
a.rottmann9bc8b932004-02-29 15:18:31 +00003031fi;
3032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003033
a.rottmann9bc8b932004-02-29 15:18:31 +00003034# Some flags need to be propagated to the compiler or linker for good
3035# libtool support.
3036case $host in
3037ia64-*-hpux*)
3038 # Find out which ABI we are using.
3039 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003041 (eval $ac_compile) 2>&5
3042 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003044 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003045 case `/usr/bin/file conftest.$ac_objext` in
3046 *ELF-32*)
3047 HPUX_IA64_MODE="32"
3048 ;;
3049 *ELF-64*)
3050 HPUX_IA64_MODE="64"
3051 ;;
3052 esac
3053 fi
3054 rm -rf conftest*
3055 ;;
3056*-*-irix6*)
3057 # Find out which ABI we are using.
tpoindex9d9f76c2005-01-03 21:28:56 +00003058 echo '#line 3058 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003061 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003063 (exit $ac_status); }; then
3064 if test "$lt_cv_prog_gnu_ld" = yes; then
3065 case `/usr/bin/file conftest.$ac_objext` in
3066 *32-bit*)
3067 LD="${LD-ld} -melf32bsmip"
3068 ;;
3069 *N32*)
3070 LD="${LD-ld} -melf32bmipn32"
3071 ;;
3072 *64-bit*)
3073 LD="${LD-ld} -melf64bmip"
3074 ;;
3075 esac
3076 else
3077 case `/usr/bin/file conftest.$ac_objext` in
3078 *32-bit*)
3079 LD="${LD-ld} -32"
3080 ;;
3081 *N32*)
3082 LD="${LD-ld} -n32"
3083 ;;
3084 *64-bit*)
3085 LD="${LD-ld} -64"
3086 ;;
3087 esac
3088 fi
3089 fi
3090 rm -rf conftest*
3091 ;;
drh71eb93e2001-09-28 01:34:43 +00003092
a.rottmann9bc8b932004-02-29 15:18:31 +00003093x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3094 # Find out which ABI we are using.
3095 echo 'int i;' > conftest.$ac_ext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 case "`/usr/bin/file conftest.o`" in
3102 *32-bit*)
3103 case $host in
3104 x86_64-*linux*)
3105 LD="${LD-ld} -m elf_i386"
3106 ;;
3107 ppc64-*linux*|powerpc64-*linux*)
3108 LD="${LD-ld} -m elf32ppclinux"
3109 ;;
3110 s390x-*linux*)
3111 LD="${LD-ld} -m elf_s390"
3112 ;;
3113 sparc64-*linux*)
3114 LD="${LD-ld} -m elf32_sparc"
3115 ;;
3116 esac
3117 ;;
3118 *64-bit*)
3119 case $host in
3120 x86_64-*linux*)
3121 LD="${LD-ld} -m elf_x86_64"
3122 ;;
3123 ppc*-*linux*|powerpc*-*linux*)
3124 LD="${LD-ld} -m elf64ppc"
3125 ;;
3126 s390*-*linux*)
3127 LD="${LD-ld} -m elf64_s390"
3128 ;;
3129 sparc*-*linux*)
3130 LD="${LD-ld} -m elf64_sparc"
3131 ;;
3132 esac
3133 ;;
3134 esac
3135 fi
3136 rm -rf conftest*
3137 ;;
drh71eb93e2001-09-28 01:34:43 +00003138
a.rottmann9bc8b932004-02-29 15:18:31 +00003139*-*-sco3.2v5*)
3140 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3141 SAVE_CFLAGS="$CFLAGS"
3142 CFLAGS="$CFLAGS -belf"
3143 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3144echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3145if test "${lt_cv_cc_needs_belf+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003153
a.rottmann9bc8b932004-02-29 15:18:31 +00003154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003160
a.rottmann9bc8b932004-02-29 15:18:31 +00003161int
3162main ()
drh71eb93e2001-09-28 01:34:43 +00003163{
drh71eb93e2001-09-28 01:34:43 +00003164
a.rottmann9bc8b932004-02-29 15:18:31 +00003165 ;
3166 return 0;
drh71eb93e2001-09-28 01:34:43 +00003167}
a.rottmann9bc8b932004-02-29 15:18:31 +00003168_ACEOF
3169rm -f conftest.$ac_objext conftest$ac_exeext
3170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003178 { ac_try='test -z "$ac_c_werror_flag"
3179 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003182 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003192else
a.rottmann9bc8b932004-02-29 15:18:31 +00003193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003197fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003198rm -f conftest.err conftest.$ac_objext \
3199 conftest$ac_exeext conftest.$ac_ext
3200 ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
drh71eb93e2001-09-28 01:34:43 +00003206fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003207echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3208echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3211 CFLAGS="$SAVE_CFLAGS"
3212 fi
3213 ;;
3214
3215esac
3216
3217need_locks="$enable_libtool_lock"
3218
drh71eb93e2001-09-28 01:34:43 +00003219
a.rottmann84e63352003-03-24 09:42:16 +00003220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3226echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3227# On Suns, sometimes $CPP names a directory.
3228if test -n "$CPP" && test -d "$CPP"; then
3229 CPP=
3230fi
3231if test -z "$CPP"; then
3232 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
a.rottmann84e63352003-03-24 09:42:16 +00003235 # Double quotes because CPP needs to be expanded
3236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3237 do
3238 ac_preproc_ok=false
3239for ac_c_preproc_warn_flag in '' yes
3240do
3241 # Use a header file that comes with gcc, so configuring glibc
3242 # with a fresh cross-compiler works.
3243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 # <limits.h> exists even on freestanding compilers.
3245 # On the NeXT, cc -E runs the code through the compiler's parser,
3246 # not just through cpp. "Syntax error" is here to catch this case.
3247 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#ifdef __STDC__
3254# include <limits.h>
3255#else
3256# include <assert.h>
3257#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003258 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003259_ACEOF
3260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003271 else
3272 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003273 fi
a.rottmann84e63352003-03-24 09:42:16 +00003274else
3275 ac_cpp_err=yes
3276fi
3277if test -z "$ac_cpp_err"; then
3278 :
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 # Broken: fails on valid input.
3284continue
3285fi
3286rm -f conftest.err conftest.$ac_ext
3287
3288 # OK, works on sane cases. Now check whether non-existent headers
3289 # can be detected and how.
3290 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003291/* confdefs.h. */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h. */
3296#include <ac_nonexistent.h>
3297_ACEOF
3298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003309 else
3310 ac_cpp_err=
3311 fi
3312else
3313 ac_cpp_err=yes
3314fi
3315if test -z "$ac_cpp_err"; then
3316 # Broken: success on invalid input.
3317continue
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 # Passes both tests.
3323ac_preproc_ok=:
3324break
3325fi
3326rm -f conftest.err conftest.$ac_ext
3327
3328done
3329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330rm -f conftest.err conftest.$ac_ext
3331if $ac_preproc_ok; then
3332 break
3333fi
3334
3335 done
3336 ac_cv_prog_CPP=$CPP
3337
3338fi
3339 CPP=$ac_cv_prog_CPP
3340else
3341 ac_cv_prog_CPP=$CPP
3342fi
3343echo "$as_me:$LINENO: result: $CPP" >&5
3344echo "${ECHO_T}$CPP" >&6
3345ac_preproc_ok=false
3346for ac_c_preproc_warn_flag in '' yes
3347do
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
3360#ifdef __STDC__
3361# include <limits.h>
3362#else
3363# include <assert.h>
3364#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003365 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003366_ACEOF
3367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003378 else
3379 ac_cpp_err=
3380 fi
3381else
3382 ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385 :
3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 # Broken: fails on valid input.
3391continue
3392fi
3393rm -f conftest.err conftest.$ac_ext
3394
3395 # OK, works on sane cases. Now check whether non-existent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003416 else
3417 ac_cpp_err=
3418 fi
3419else
3420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423 # Broken: success on invalid input.
3424continue
3425else
3426 echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
3433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
3438if $ac_preproc_ok; then
3439 :
3440else
3441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&5
3443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
a.rottmann84e63352003-03-24 09:42:16 +00003455echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3456echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3457if test "${ac_cv_header_stdc+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <stdlib.h>
3467#include <stdarg.h>
3468#include <string.h>
3469#include <float.h>
3470
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003481 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003482 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_header_stdc=yes
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506ac_cv_header_stdc=no
3507fi
a.rottmann964dbb12004-02-26 19:47:42 +00003508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003509
3510if test $ac_cv_header_stdc = yes; then
3511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3512 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518#include <string.h>
3519
3520_ACEOF
3521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3522 $EGREP "memchr" >/dev/null 2>&1; then
3523 :
3524else
3525 ac_cv_header_stdc=no
3526fi
3527rm -f conftest*
3528
3529fi
3530
3531if test $ac_cv_header_stdc = yes; then
3532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3533 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539#include <stdlib.h>
3540
3541_ACEOF
3542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 $EGREP "free" >/dev/null 2>&1; then
3544 :
3545else
3546 ac_cv_header_stdc=no
3547fi
3548rm -f conftest*
3549
3550fi
3551
3552if test $ac_cv_header_stdc = yes; then
3553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3554 if test "$cross_compiling" = yes; then
3555 :
3556else
3557 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#include <ctype.h>
3564#if ((' ' & 0x0FF) == 0x020)
3565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3567#else
3568# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003569 (('a' <= (c) && (c) <= 'i') \
3570 || ('j' <= (c) && (c) <= 'r') \
3571 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003572# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3573#endif
3574
3575#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3576int
3577main ()
3578{
3579 int i;
3580 for (i = 0; i < 256; i++)
3581 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003582 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003583 exit(2);
3584 exit (0);
3585}
3586_ACEOF
3587rm -f conftest$ac_exeext
3588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3589 (eval $ac_link) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 :
3599else
3600 echo "$as_me: program exited with status $ac_status" >&5
3601echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604( exit $ac_status )
3605ac_cv_header_stdc=no
3606fi
a.rottmann964dbb12004-02-26 19:47:42 +00003607rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003608fi
3609fi
3610fi
3611echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3612echo "${ECHO_T}$ac_cv_header_stdc" >&6
3613if test $ac_cv_header_stdc = yes; then
3614
3615cat >>confdefs.h <<\_ACEOF
3616#define STDC_HEADERS 1
3617_ACEOF
3618
3619fi
3620
3621# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003632 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003633do
3634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635echo "$as_me:$LINENO: checking for $ac_header" >&5
3636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637if eval "test \"\${$as_ac_Header+set}\" = set"; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
3640 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_includes_default
3647
3648#include <$ac_header>
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003652 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003653 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 eval "$as_ac_Header=yes"
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677eval "$as_ac_Header=no"
3678fi
a.rottmann964dbb12004-02-26 19:47:42 +00003679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003680fi
3681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3683if test `eval echo '${'$as_ac_Header'}'` = yes; then
3684 cat >>confdefs.h <<_ACEOF
3685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3686_ACEOF
3687
3688fi
3689
3690done
3691
3692
3693
3694for ac_header in dlfcn.h
3695do
3696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3697if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo "$as_me:$LINENO: checking for $ac_header" >&5
3699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3700if eval "test \"\${$as_ac_Header+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702fi
3703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3705else
3706 # Is the header compilable?
3707echo "$as_me:$LINENO: checking $ac_header usability" >&5
3708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3709cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003710/* confdefs.h. */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h. */
3715$ac_includes_default
3716#include <$ac_header>
3717_ACEOF
3718rm -f conftest.$ac_objext
3719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003720 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003721 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003727 { ac_try='test -z "$ac_c_werror_flag"
3728 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_header_compiler=yes
3741else
3742 echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745ac_header_compiler=no
3746fi
a.rottmann964dbb12004-02-26 19:47:42 +00003747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3749echo "${ECHO_T}$ac_header_compiler" >&6
3750
3751# Is the header present?
3752echo "$as_me:$LINENO: checking $ac_header presence" >&5
3753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3754cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003755/* confdefs.h. */
3756_ACEOF
3757cat confdefs.h >>conftest.$ac_ext
3758cat >>conftest.$ac_ext <<_ACEOF
3759/* end confdefs.h. */
3760#include <$ac_header>
3761_ACEOF
3762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } >/dev/null; then
3770 if test -s conftest.err; then
3771 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003773 else
3774 ac_cpp_err=
3775 fi
3776else
3777 ac_cpp_err=yes
3778fi
3779if test -z "$ac_cpp_err"; then
3780 ac_header_preproc=yes
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 ac_header_preproc=no
3786fi
3787rm -f conftest.err conftest.$ac_ext
3788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3789echo "${ECHO_T}$ac_header_preproc" >&6
3790
3791# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3793 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3798 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003799 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003800 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003813 (
3814 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003815## ------------------------------------------ ##
3816## Report this to the AC_PACKAGE_NAME lists. ##
3817## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003818_ASBOX
3819 ) |
3820 sed "s/^/$as_me: WARNING: /" >&2
3821 ;;
drh71eb93e2001-09-28 01:34:43 +00003822esac
a.rottmann84e63352003-03-24 09:42:16 +00003823echo "$as_me:$LINENO: checking for $ac_header" >&5
3824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
a.rottmann964dbb12004-02-26 19:47:42 +00003828 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003829fi
3830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832
3833fi
3834if test `eval echo '${'$as_ac_Header'}'` = yes; then
3835 cat >>confdefs.h <<_ACEOF
3836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3837_ACEOF
3838
3839fi
3840
drh71eb93e2001-09-28 01:34:43 +00003841done
3842
a.rottmann9bc8b932004-02-29 15:18:31 +00003843ac_ext=cc
3844ac_cpp='$CXXCPP $CPPFLAGS'
3845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3848if test -n "$ac_tool_prefix"; then
3849 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3850 do
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
a.rottmann9bc8b932004-02-29 15:18:31 +00003858 if test -n "$CXX"; then
3859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873done
drh71eb93e2001-09-28 01:34:43 +00003874
drh71eb93e2001-09-28 01:34:43 +00003875fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003876fi
3877CXX=$ac_cv_prog_CXX
3878if test -n "$CXX"; then
3879 echo "$as_me:$LINENO: result: $CXX" >&5
3880echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003881else
a.rottmann84e63352003-03-24 09:42:16 +00003882 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003883echo "${ECHO_T}no" >&6
3884fi
3885
a.rottmann9bc8b932004-02-29 15:18:31 +00003886 test -n "$CXX" && break
3887 done
3888fi
3889if test -z "$CXX"; then
3890 ac_ct_CXX=$CXX
3891 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3892do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
3895echo "$as_me:$LINENO: checking for $ac_word" >&5
3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
a.rottmann9bc8b932004-02-29 15:18:31 +00003900 if test -n "$ac_ct_CXX"; then
3901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_CXX="$ac_prog"
3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914done
3915done
drh71eb93e2001-09-28 01:34:43 +00003916
drh71eb93e2001-09-28 01:34:43 +00003917fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003918fi
3919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3920if test -n "$ac_ct_CXX"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3922echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003923else
a.rottmann84e63352003-03-24 09:42:16 +00003924 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003925echo "${ECHO_T}no" >&6
3926fi
3927
a.rottmann9bc8b932004-02-29 15:18:31 +00003928 test -n "$ac_ct_CXX" && break
3929done
3930test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3931
3932 CXX=$ac_ct_CXX
3933fi
3934
3935
3936# Provide some information about the compiler.
3937echo "$as_me:$LINENO:" \
3938 "checking for C++ compiler version" >&5
3939ac_compiler=`set X $ac_compile; echo $2`
3940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3941 (eval $ac_compiler --version </dev/null >&5) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3946 (eval $ac_compiler -v </dev/null >&5) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }
3950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3951 (eval $ac_compiler -V </dev/null >&5) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }
3955
3956echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3957echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3958if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h. */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h. */
3967
3968int
3969main ()
3970{
3971#ifndef __GNUC__
3972 choke me
3973#endif
3974
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003988 { ac_try='test -z "$ac_cxx_werror_flag"
3989 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_compiler_gnu=yes
4002else
4003 echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006ac_compiler_gnu=no
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4014GXX=`test $ac_compiler_gnu = yes && echo yes`
4015ac_test_CXXFLAGS=${CXXFLAGS+set}
4016ac_save_CXXFLAGS=$CXXFLAGS
4017CXXFLAGS="-g"
4018echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4019echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4020if test "${ac_cv_prog_cxx_g+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029
4030int
4031main ()
4032{
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004047 { ac_try='test -z "$ac_cxx_werror_flag"
4048 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_prog_cxx_g=yes
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065ac_cv_prog_cxx_g=no
4066fi
4067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068fi
4069echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4070echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4071if test "$ac_test_CXXFLAGS" = set; then
4072 CXXFLAGS=$ac_save_CXXFLAGS
4073elif test $ac_cv_prog_cxx_g = yes; then
4074 if test "$GXX" = yes; then
4075 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004076 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004077 CXXFLAGS="-g"
4078 fi
4079else
4080 if test "$GXX" = yes; then
4081 CXXFLAGS="-O2"
4082 else
4083 CXXFLAGS=
4084 fi
4085fi
4086for ac_declaration in \
4087 '' \
4088 'extern "C" void std::exit (int) throw (); using std::exit;' \
4089 'extern "C" void std::exit (int); using std::exit;' \
4090 'extern "C" void exit (int) throw ();' \
4091 'extern "C" void exit (int);' \
4092 'void exit (int);'
4093do
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100$ac_declaration
4101#include <stdlib.h>
4102int
4103main ()
4104{
4105exit (42);
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004119 { ac_try='test -z "$ac_cxx_werror_flag"
4120 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 :
4133else
4134 echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137continue
4138fi
4139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146$ac_declaration
4147int
4148main ()
4149{
4150exit (42);
4151 ;
4152 return 0;
4153}
4154_ACEOF
4155rm -f conftest.$ac_objext
4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004164 { ac_try='test -z "$ac_cxx_werror_flag"
4165 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 break
4178else
4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182fi
4183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4184done
4185rm -f conftest*
4186if test -n "$ac_declaration"; then
4187 echo '#ifdef __cplusplus' >>confdefs.h
4188 echo $ac_declaration >>confdefs.h
4189 echo '#endif' >>confdefs.h
4190fi
4191
4192ac_ext=cc
4193ac_cpp='$CXXCPP $CPPFLAGS'
4194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4197
4198ac_ext=cc
4199ac_cpp='$CXXCPP $CPPFLAGS'
4200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4203echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4204echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4205if test -z "$CXXCPP"; then
4206 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 # Double quotes because CXXCPP needs to be expanded
4210 for CXXCPP in "$CXX -E" "/lib/cpp"
4211 do
4212 ac_preproc_ok=false
4213for ac_cxx_preproc_warn_flag in '' yes
4214do
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
4227#ifdef __STDC__
4228# include <limits.h>
4229#else
4230# include <assert.h>
4231#endif
4232 Syntax error
4233_ACEOF
4234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null; then
4242 if test -s conftest.err; then
4243 ac_cpp_err=$ac_cxx_preproc_warn_flag
4244 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4245 else
4246 ac_cpp_err=
4247 fi
4248else
4249 ac_cpp_err=yes
4250fi
4251if test -z "$ac_cpp_err"; then
4252 :
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # Broken: fails on valid input.
4258continue
4259fi
4260rm -f conftest.err conftest.$ac_ext
4261
4262 # OK, works on sane cases. Now check whether non-existent headers
4263 # can be detected and how.
4264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270#include <ac_nonexistent.h>
4271_ACEOF
4272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_cxx_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4283 else
4284 ac_cpp_err=
4285 fi
4286else
4287 ac_cpp_err=yes
4288fi
4289if test -z "$ac_cpp_err"; then
4290 # Broken: success on invalid input.
4291continue
4292else
4293 echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 # Passes both tests.
4297ac_preproc_ok=:
4298break
4299fi
4300rm -f conftest.err conftest.$ac_ext
4301
4302done
4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304rm -f conftest.err conftest.$ac_ext
4305if $ac_preproc_ok; then
4306 break
4307fi
4308
4309 done
4310 ac_cv_prog_CXXCPP=$CXXCPP
4311
4312fi
4313 CXXCPP=$ac_cv_prog_CXXCPP
4314else
4315 ac_cv_prog_CXXCPP=$CXXCPP
4316fi
4317echo "$as_me:$LINENO: result: $CXXCPP" >&5
4318echo "${ECHO_T}$CXXCPP" >&6
4319ac_preproc_ok=false
4320for ac_cxx_preproc_warn_flag in '' yes
4321do
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
4334#ifdef __STDC__
4335# include <limits.h>
4336#else
4337# include <assert.h>
4338#endif
4339 Syntax error
4340_ACEOF
4341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null; then
4349 if test -s conftest.err; then
4350 ac_cpp_err=$ac_cxx_preproc_warn_flag
4351 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4352 else
4353 ac_cpp_err=
4354 fi
4355else
4356 ac_cpp_err=yes
4357fi
4358if test -z "$ac_cpp_err"; then
4359 :
4360else
4361 echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 # Broken: fails on valid input.
4365continue
4366fi
4367rm -f conftest.err conftest.$ac_ext
4368
4369 # OK, works on sane cases. Now check whether non-existent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
4377#include <ac_nonexistent.h>
4378_ACEOF
4379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_cxx_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4390 else
4391 ac_cpp_err=
4392 fi
4393else
4394 ac_cpp_err=yes
4395fi
4396if test -z "$ac_cpp_err"; then
4397 # Broken: success on invalid input.
4398continue
4399else
4400 echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 # Passes both tests.
4404ac_preproc_ok=:
4405break
4406fi
4407rm -f conftest.err conftest.$ac_ext
4408
4409done
4410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411rm -f conftest.err conftest.$ac_ext
4412if $ac_preproc_ok; then
4413 :
4414else
4415 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4416See \`config.log' for more details." >&5
4417echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4418See \`config.log' for more details." >&2;}
4419 { (exit 1); exit 1; }; }
4420fi
4421
4422ac_ext=cc
4423ac_cpp='$CXXCPP $CPPFLAGS'
4424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4427
4428
4429ac_ext=f
4430ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4431ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4433if test -n "$ac_tool_prefix"; then
4434 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4435 do
4436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440if test "${ac_cv_prog_F77+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 if test -n "$F77"; then
4444 ac_cv_prog_F77="$F77" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458done
4459
4460fi
4461fi
4462F77=$ac_cv_prog_F77
4463if test -n "$F77"; then
4464 echo "$as_me:$LINENO: result: $F77" >&5
4465echo "${ECHO_T}$F77" >&6
4466else
4467 echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
4469fi
4470
4471 test -n "$F77" && break
4472 done
4473fi
4474if test -z "$F77"; then
4475 ac_ct_F77=$F77
4476 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4477do
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479set dummy $ac_prog; ac_word=$2
4480echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485 if test -n "$ac_ct_F77"; then
4486 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4487else
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_F77="$ac_prog"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499done
4500done
4501
4502fi
4503fi
4504ac_ct_F77=$ac_cv_prog_ac_ct_F77
4505if test -n "$ac_ct_F77"; then
4506 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4507echo "${ECHO_T}$ac_ct_F77" >&6
4508else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511fi
4512
4513 test -n "$ac_ct_F77" && break
4514done
4515
4516 F77=$ac_ct_F77
4517fi
4518
4519
4520# Provide some information about the compiler.
tpoindex9d9f76c2005-01-03 21:28:56 +00004521echo "$as_me:4521:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004522 "checking for Fortran 77 compiler version" >&5
4523ac_compiler=`set X $ac_compile; echo $2`
4524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4525 (eval $ac_compiler --version </dev/null >&5) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }
4529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4530 (eval $ac_compiler -v </dev/null >&5) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }
4534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4535 (eval $ac_compiler -V </dev/null >&5) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }
4539rm -f a.out
4540
4541# If we don't use `.F' as extension, the preprocessor is not run on the
4542# input file. (Note that this only needs to work for GNU compilers.)
4543ac_save_ext=$ac_ext
4544ac_ext=F
4545echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4546echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4547if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550 cat >conftest.$ac_ext <<_ACEOF
4551 program main
4552#ifndef __GNUC__
4553 choke me
4554#endif
4555
4556 end
4557_ACEOF
4558rm -f conftest.$ac_objext
4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004567 { ac_try='test -z "$ac_f77_werror_flag"
4568 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_compiler_gnu=yes
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585ac_compiler_gnu=no
4586fi
4587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4589
4590fi
4591echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4592echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4593ac_ext=$ac_save_ext
4594ac_test_FFLAGS=${FFLAGS+set}
4595ac_save_FFLAGS=$FFLAGS
4596FFLAGS=
4597echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4598echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4599if test "${ac_cv_prog_f77_g+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602 FFLAGS=-g
4603cat >conftest.$ac_ext <<_ACEOF
4604 program main
4605
4606 end
4607_ACEOF
4608rm -f conftest.$ac_objext
4609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004617 { ac_try='test -z "$ac_f77_werror_flag"
4618 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_cv_prog_f77_g=yes
4631else
4632 echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
4635ac_cv_prog_f77_g=no
4636fi
4637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638
4639fi
4640echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4641echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4642if test "$ac_test_FFLAGS" = set; then
4643 FFLAGS=$ac_save_FFLAGS
4644elif test $ac_cv_prog_f77_g = yes; then
4645 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4646 FFLAGS="-g -O2"
4647 else
4648 FFLAGS="-g"
4649 fi
4650else
4651 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4652 FFLAGS="-O2"
4653 else
4654 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004655 fi
4656fi
4657
a.rottmann9bc8b932004-02-29 15:18:31 +00004658G77=`test $ac_compiler_gnu = yes && echo yes`
4659ac_ext=c
4660ac_cpp='$CPP $CPPFLAGS'
4661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664
4665
4666
4667# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4668
4669# find the maximum length of command line arguments
4670echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4671echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4672if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675 i=0
4676 testring="ABCD"
4677
4678 case $build_os in
4679 msdosdjgpp*)
4680 # On DJGPP, this test can blow up pretty badly due to problems in libc
4681 # (any single argument exceeding 2000 bytes causes a buffer overrun
4682 # during glob expansion). Even if it were fixed, the result of this
4683 # check would be larger than it should be.
4684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4685 ;;
4686
4687 gnu*)
4688 # Under GNU Hurd, this test is not required because there is
4689 # no limit to the length of command line arguments.
4690 # Libtool will interpret -1 as no limit whatsoever
4691 lt_cv_sys_max_cmd_len=-1;
4692 ;;
4693
4694 cygwin* | mingw*)
4695 # On Win9x/ME, this test blows up -- it succeeds, but takes
4696 # about 5 minutes as the teststring grows exponentially.
4697 # Worse, since 9x/ME are not pre-emptively multitasking,
4698 # you end up with a "frozen" computer, even though with patience
4699 # the test eventually succeeds (with a max line length of 256k).
4700 # Instead, let's just punt: use the minimum linelength reported by
4701 # all of the supported platforms: 8192 (on NT/2K/XP).
4702 lt_cv_sys_max_cmd_len=8192;
4703 ;;
4704
4705 amigaos*)
4706 # On AmigaOS with pdksh, this test takes hours, literally.
4707 # So we just punt and use a minimum line length of 8192.
4708 lt_cv_sys_max_cmd_len=8192;
4709 ;;
4710
4711 *)
4712 # If test is not a shell built-in, we'll probably end up computing a
4713 # maximum length that is only half of the actual maximum length, but
4714 # we can't tell.
4715 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4716 = "XX$testring") >/dev/null 2>&1 &&
4717 new_result=`expr "X$testring" : ".*" 2>&1` &&
4718 lt_cv_sys_max_cmd_len=$new_result &&
4719 test $i != 17 # 1/2 MB should be enough
4720 do
4721 i=`expr $i + 1`
4722 testring=$testring$testring
4723 done
4724 testring=
4725 # Add a significant safety factor because C++ compilers can tack on massive
4726 # amounts of additional arguments before passing them to the linker.
4727 # It appears as though 1/2 is a usable value.
4728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4729 ;;
4730 esac
4731
4732fi
4733
4734if test -n $lt_cv_sys_max_cmd_len ; then
4735 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4736echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4737else
4738 echo "$as_me:$LINENO: result: none" >&5
4739echo "${ECHO_T}none" >&6
4740fi
4741
4742
4743
4744
4745# Check for command to grab the raw symbol name followed by C symbol from nm.
4746echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4747echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4748if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751
4752# These are sane defaults that work on at least a few old systems.
4753# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4754
4755# Character class describing NM global symbol codes.
4756symcode='[BCDEGRST]'
4757
4758# Regexp to match symbols that can be accessed directly from C.
4759sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4760
4761# Transform the above into a raw symbol and a C symbol.
4762symxfrm='\1 \2\3 \3'
4763
4764# Transform an extracted symbol line into a proper C declaration
4765lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4766
4767# Transform an extracted symbol line into symbol name and symbol address
4768lt_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'"
4769
4770# Define system-specific variables.
4771case $host_os in
4772aix*)
4773 symcode='[BCDT]'
4774 ;;
4775cygwin* | mingw* | pw32*)
4776 symcode='[ABCDGISTW]'
4777 ;;
4778hpux*) # Its linker distinguishes data from code symbols
4779 if test "$host_cpu" = ia64; then
4780 symcode='[ABCDEGRST]'
4781 fi
4782 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4783 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'"
4784 ;;
4785irix* | nonstopux*)
4786 symcode='[BCDEGRST]'
4787 ;;
4788osf*)
4789 symcode='[BCDEGQRST]'
4790 ;;
4791solaris* | sysv5*)
4792 symcode='[BDRT]'
4793 ;;
4794sysv4)
4795 symcode='[DFNSTU]'
4796 ;;
4797esac
4798
4799# Handle CRLF in mingw tool chain
4800opt_cr=
4801case $build_os in
4802mingw*)
4803 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4804 ;;
4805esac
4806
4807# If we're using GNU nm, then use its standard symbol codes.
4808case `$NM -V 2>&1` in
4809*GNU* | *'with BFD'*)
4810 symcode='[ABCDGIRSTW]' ;;
4811esac
4812
4813# Try without a prefix undercore, then with it.
4814for ac_symprfx in "" "_"; do
4815
4816 # Write the raw and C identifiers.
4817 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4818
4819 # Check to see that the pipe works correctly.
4820 pipe_works=no
4821
4822 rm -f conftest*
4823 cat > conftest.$ac_ext <<EOF
4824#ifdef __cplusplus
4825extern "C" {
4826#endif
4827char nm_test_var;
4828void nm_test_func(){}
4829#ifdef __cplusplus
4830}
4831#endif
4832int main(){nm_test_var='a';nm_test_func();return(0);}
4833EOF
4834
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
4840 # Now try to grab the symbols.
4841 nlist=conftest.nm
4842 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4843 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && test -s "$nlist"; then
4847 # Try sorting and uniquifying the output.
4848 if sort "$nlist" | uniq > "$nlist"T; then
4849 mv -f "$nlist"T "$nlist"
4850 else
4851 rm -f "$nlist"T
4852 fi
4853
4854 # Make sure that we snagged all the symbols we need.
4855 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4856 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4857 cat <<EOF > conftest.$ac_ext
4858#ifdef __cplusplus
4859extern "C" {
4860#endif
4861
4862EOF
4863 # Now generate the symbol file.
4864 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4865
4866 cat <<EOF >> conftest.$ac_ext
4867#if defined (__STDC__) && __STDC__
4868# define lt_ptr_t void *
4869#else
4870# define lt_ptr_t char *
4871# define const
4872#endif
4873
4874/* The mapping between symbol names and symbols. */
4875const struct {
4876 const char *name;
4877 lt_ptr_t address;
4878}
4879lt_preloaded_symbols[] =
4880{
4881EOF
4882 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4883 cat <<\EOF >> conftest.$ac_ext
4884 {0, (lt_ptr_t) 0}
4885};
4886
4887#ifdef __cplusplus
4888}
4889#endif
4890EOF
4891 # Now try linking the two files.
4892 mv conftest.$ac_objext conftstm.$ac_objext
4893 lt_save_LIBS="$LIBS"
4894 lt_save_CFLAGS="$CFLAGS"
4895 LIBS="conftstm.$ac_objext"
4896 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898 (eval $ac_link) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4902 pipe_works=yes
4903 fi
4904 LIBS="$lt_save_LIBS"
4905 CFLAGS="$lt_save_CFLAGS"
4906 else
4907 echo "cannot find nm_test_func in $nlist" >&5
4908 fi
4909 else
4910 echo "cannot find nm_test_var in $nlist" >&5
4911 fi
4912 else
4913 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4914 fi
4915 else
4916 echo "$progname: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 fi
4919 rm -f conftest* conftst*
4920
4921 # Do not use the global_symbol_pipe unless it works.
4922 if test "$pipe_works" = yes; then
4923 break
4924 else
4925 lt_cv_sys_global_symbol_pipe=
4926 fi
4927done
4928
4929fi
4930
4931if test -z "$lt_cv_sys_global_symbol_pipe"; then
4932 lt_cv_sys_global_symbol_to_cdecl=
4933fi
4934if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4935 echo "$as_me:$LINENO: result: failed" >&5
4936echo "${ECHO_T}failed" >&6
4937else
4938 echo "$as_me:$LINENO: result: ok" >&5
4939echo "${ECHO_T}ok" >&6
4940fi
4941
4942echo "$as_me:$LINENO: checking for objdir" >&5
4943echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4944if test "${lt_cv_objdir+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 rm -f .libs 2>/dev/null
4948mkdir .libs 2>/dev/null
4949if test -d .libs; then
4950 lt_cv_objdir=.libs
4951else
4952 # MS-DOS does not allow filenames that begin with a dot.
4953 lt_cv_objdir=_libs
4954fi
4955rmdir .libs 2>/dev/null
4956fi
4957echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4958echo "${ECHO_T}$lt_cv_objdir" >&6
4959objdir=$lt_cv_objdir
4960
4961
4962
4963
4964
4965case $host_os in
4966aix3*)
4967 # AIX sometimes has problems with the GCC collect2 program. For some
4968 # reason, if we set the COLLECT_NAMES environment variable, the problems
4969 # vanish in a puff of smoke.
4970 if test "X${COLLECT_NAMES+set}" != Xset; then
4971 COLLECT_NAMES=
4972 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004973 fi
4974 ;;
4975esac
4976
a.rottmann9bc8b932004-02-29 15:18:31 +00004977# Sed substitution that helps us do robust quoting. It backslashifies
4978# metacharacters that are still active within double-quoted strings.
4979Xsed='sed -e s/^X//'
4980sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4981
4982# Same as above, but do not quote variable references.
4983double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4984
4985# Sed substitution to delay expansion of an escaped shell variable in a
4986# double_quote_subst'ed string.
4987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4988
4989# Sed substitution to avoid accidental globbing in evaled expressions
4990no_glob_subst='s/\*/\\\*/g'
4991
4992# Constants:
4993rm="rm -f"
4994
4995# Global variables:
4996default_ofile=libtool
4997can_build_shared=yes
4998
4999# All known linkers require a `.a' archive for static linking (except M$VC,
5000# which needs '.lib').
5001libext=a
5002ltmain="$ac_aux_dir/ltmain.sh"
5003ofile="$default_ofile"
5004with_gnu_ld="$lt_cv_prog_gnu_ld"
5005
5006if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5008set dummy ${ac_tool_prefix}ar; ac_word=$2
5009echo "$as_me:$LINENO: checking for $ac_word" >&5
5010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5011if test "${ac_cv_prog_AR+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014 if test -n "$AR"; then
5015 ac_cv_prog_AR="$AR" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_AR="${ac_tool_prefix}ar"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028done
5029done
5030
5031fi
5032fi
5033AR=$ac_cv_prog_AR
5034if test -n "$AR"; then
5035 echo "$as_me:$LINENO: result: $AR" >&5
5036echo "${ECHO_T}$AR" >&6
5037else
5038 echo "$as_me:$LINENO: result: no" >&5
5039echo "${ECHO_T}no" >&6
5040fi
5041
5042fi
5043if test -z "$ac_cv_prog_AR"; then
5044 ac_ct_AR=$AR
5045 # Extract the first word of "ar", so it can be a program name with args.
5046set dummy ar; ac_word=$2
5047echo "$as_me:$LINENO: checking for $ac_word" >&5
5048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5049if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 if test -n "$ac_ct_AR"; then
5053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_ac_ct_AR="ar"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066done
5067done
5068
5069 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5070fi
5071fi
5072ac_ct_AR=$ac_cv_prog_ac_ct_AR
5073if test -n "$ac_ct_AR"; then
5074 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5075echo "${ECHO_T}$ac_ct_AR" >&6
5076else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079fi
5080
5081 AR=$ac_ct_AR
5082else
5083 AR="$ac_cv_prog_AR"
5084fi
5085
a.rottmann84e63352003-03-24 09:42:16 +00005086if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5088set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_prog_RANLIB+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 if test -n "$RANLIB"; then
5095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108done
5109done
5110
5111fi
5112fi
5113RANLIB=$ac_cv_prog_RANLIB
5114if test -n "$RANLIB"; then
5115 echo "$as_me:$LINENO: result: $RANLIB" >&5
5116echo "${ECHO_T}$RANLIB" >&6
5117else
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
5120fi
5121
5122fi
5123if test -z "$ac_cv_prog_RANLIB"; then
5124 ac_ct_RANLIB=$RANLIB
5125 # Extract the first word of "ranlib", so it can be a program name with args.
5126set dummy ranlib; ac_word=$2
5127echo "$as_me:$LINENO: checking for $ac_word" >&5
5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132 if test -n "$ac_ct_RANLIB"; then
5133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_RANLIB="ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146done
5147done
5148
5149 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5150fi
5151fi
5152ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5153if test -n "$ac_ct_RANLIB"; then
5154 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5155echo "${ECHO_T}$ac_ct_RANLIB" >&6
5156else
5157 echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6
5159fi
5160
5161 RANLIB=$ac_ct_RANLIB
5162else
5163 RANLIB="$ac_cv_prog_RANLIB"
5164fi
5165
5166if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}strip; ac_word=$2
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171if test "${ac_cv_prog_STRIP+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 if test -n "$STRIP"; then
5175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190
5191fi
5192fi
5193STRIP=$ac_cv_prog_STRIP
5194if test -n "$STRIP"; then
5195 echo "$as_me:$LINENO: result: $STRIP" >&5
5196echo "${ECHO_T}$STRIP" >&6
5197else
5198 echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
5200fi
5201
5202fi
5203if test -z "$ac_cv_prog_STRIP"; then
5204 ac_ct_STRIP=$STRIP
5205 # Extract the first word of "strip", so it can be a program name with args.
5206set dummy strip; ac_word=$2
5207echo "$as_me:$LINENO: checking for $ac_word" >&5
5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212 if test -n "$ac_ct_STRIP"; then
5213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_STRIP="strip"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226done
5227done
5228
5229 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5230fi
5231fi
5232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5233if test -n "$ac_ct_STRIP"; then
5234 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5235echo "${ECHO_T}$ac_ct_STRIP" >&6
5236else
5237 echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6
5239fi
5240
5241 STRIP=$ac_ct_STRIP
5242else
5243 STRIP="$ac_cv_prog_STRIP"
5244fi
5245
5246
a.rottmann84e63352003-03-24 09:42:16 +00005247old_CC="$CC"
5248old_CFLAGS="$CFLAGS"
5249
5250# Set sane defaults for various variables
5251test -z "$AR" && AR=ar
5252test -z "$AR_FLAGS" && AR_FLAGS=cru
5253test -z "$AS" && AS=as
5254test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005255test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005256test -z "$DLLTOOL" && DLLTOOL=dlltool
5257test -z "$LD" && LD=ld
5258test -z "$LN_S" && LN_S="ln -s"
5259test -z "$MAGIC_CMD" && MAGIC_CMD=file
5260test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005261test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005262test -z "$OBJDUMP" && OBJDUMP=objdump
5263test -z "$RANLIB" && RANLIB=:
5264test -z "$STRIP" && STRIP=:
5265test -z "$ac_objext" && ac_objext=o
5266
a.rottmann84e63352003-03-24 09:42:16 +00005267# Determine commands to create old-style static archives.
5268old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5269old_postinstall_cmds='chmod 644 $oldlib'
5270old_postuninstall_cmds=
5271
5272if test -n "$RANLIB"; then
5273 case $host_os in
5274 openbsd*)
5275 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5276 ;;
5277 *)
5278 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5279 ;;
5280 esac
5281 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5282fi
5283
a.rottmann9bc8b932004-02-29 15:18:31 +00005284# Only perform the check for file, if the check method requires it
5285case $deplibs_check_method in
5286file_magic*)
5287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5288 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5289echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5290if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005292else
a.rottmann9bc8b932004-02-29 15:18:31 +00005293 case $MAGIC_CMD in
5294[\\/*] | ?:[\\/]*)
5295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5296 ;;
5297*)
5298 lt_save_MAGIC_CMD="$MAGIC_CMD"
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5301 for ac_dir in $ac_dummy; do
5302 IFS="$lt_save_ifs"
5303 test -z "$ac_dir" && ac_dir=.
5304 if test -f $ac_dir/${ac_tool_prefix}file; then
5305 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5306 if test -n "$file_magic_test_file"; then
5307 case $deplibs_check_method in
5308 "file_magic "*)
5309 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5312 $EGREP "$file_magic_regex" > /dev/null; then
5313 :
5314 else
5315 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005316
a.rottmann9bc8b932004-02-29 15:18:31 +00005317*** Warning: the command libtool uses to detect shared libraries,
5318*** $file_magic_cmd, produces output that libtool cannot recognize.
5319*** The result is that libtool may fail to recognize shared libraries
5320*** as such. This will affect the creation of libtool libraries that
5321*** depend on shared libraries, but programs linked with such libtool
5322*** libraries will work regardless of this problem. Nevertheless, you
5323*** may want to report the problem to your system manager and/or to
5324*** bug-libtool@gnu.org
5325
5326EOF
5327 fi ;;
5328 esac
5329 fi
5330 break
5331 fi
5332 done
5333 IFS="$lt_save_ifs"
5334 MAGIC_CMD="$lt_save_MAGIC_CMD"
5335 ;;
5336esac
5337fi
5338
5339MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5340if test -n "$MAGIC_CMD"; then
5341 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5342echo "${ECHO_T}$MAGIC_CMD" >&6
5343else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346fi
5347
5348if test -z "$lt_cv_path_MAGIC_CMD"; then
5349 if test -n "$ac_tool_prefix"; then
5350 echo "$as_me:$LINENO: checking for file" >&5
5351echo $ECHO_N "checking for file... $ECHO_C" >&6
5352if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 case $MAGIC_CMD in
5356[\\/*] | ?:[\\/]*)
5357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5358 ;;
5359*)
5360 lt_save_MAGIC_CMD="$MAGIC_CMD"
5361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5363 for ac_dir in $ac_dummy; do
5364 IFS="$lt_save_ifs"
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f $ac_dir/file; then
5367 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5368 if test -n "$file_magic_test_file"; then
5369 case $deplibs_check_method in
5370 "file_magic "*)
5371 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5374 $EGREP "$file_magic_regex" > /dev/null; then
5375 :
5376 else
5377 cat <<EOF 1>&2
5378
5379*** Warning: the command libtool uses to detect shared libraries,
5380*** $file_magic_cmd, produces output that libtool cannot recognize.
5381*** The result is that libtool may fail to recognize shared libraries
5382*** as such. This will affect the creation of libtool libraries that
5383*** depend on shared libraries, but programs linked with such libtool
5384*** libraries will work regardless of this problem. Nevertheless, you
5385*** may want to report the problem to your system manager and/or to
5386*** bug-libtool@gnu.org
5387
5388EOF
5389 fi ;;
5390 esac
5391 fi
5392 break
5393 fi
5394 done
5395 IFS="$lt_save_ifs"
5396 MAGIC_CMD="$lt_save_MAGIC_CMD"
5397 ;;
5398esac
5399fi
5400
5401MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5402if test -n "$MAGIC_CMD"; then
5403 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5404echo "${ECHO_T}$MAGIC_CMD" >&6
5405else
5406 echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410 else
5411 MAGIC_CMD=:
5412 fi
5413fi
5414
5415 fi
5416 ;;
5417esac
5418
5419enable_dlopen=no
5420enable_win32_dll=no
5421
5422# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5423if test "${enable_libtool_lock+set}" = set; then
5424 enableval="$enable_libtool_lock"
5425
5426fi;
5427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005428
5429
drh71eb93e2001-09-28 01:34:43 +00005430# Check whether --with-pic or --without-pic was given.
5431if test "${with_pic+set}" = set; then
5432 withval="$with_pic"
5433 pic_mode="$withval"
5434else
5435 pic_mode=default
5436fi;
5437test -z "$pic_mode" && pic_mode=default
5438
a.rottmann9bc8b932004-02-29 15:18:31 +00005439# Use C for the default configuration in the libtool script
5440tagname=
5441lt_save_CC="$CC"
5442ac_ext=c
5443ac_cpp='$CPP $CPPFLAGS'
5444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446ac_compiler_gnu=$ac_cv_c_compiler_gnu
5447
5448
5449# Source file extension for C test sources.
5450ac_ext=c
5451
5452# Object file extension for compiled C test sources.
5453objext=o
5454objext=$objext
5455
5456# Code to be used in simple compile tests
5457lt_simple_compile_test_code="int some_variable = 0;\n"
5458
5459# Code to be used in simple link tests
5460lt_simple_link_test_code='int main(){return(0);}\n'
5461
5462
5463# If no C compiler was specified, use CC.
5464LTCC=${LTCC-"$CC"}
5465
5466# Allow CC to be a program name with arguments.
5467compiler=$CC
5468
5469
5470#
5471# Check for any special shared library compilation flags.
5472#
5473lt_prog_cc_shlib=
5474if test "$GCC" = no; then
5475 case $host_os in
5476 sco3.2v5*)
5477 lt_prog_cc_shlib='-belf'
5478 ;;
5479 esac
5480fi
5481if test -n "$lt_prog_cc_shlib"; then
5482 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5483echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5484 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5485 else
5486 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5487echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5488 lt_cv_prog_cc_can_build_shared=no
5489 fi
5490fi
5491
5492
5493#
5494# Check to make sure the static flag actually works.
5495#
5496echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5497echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5498if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
a.rottmann9bc8b932004-02-29 15:18:31 +00005501 lt_prog_compiler_static_works=no
5502 save_LDFLAGS="$LDFLAGS"
5503 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5504 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5506 # The compiler can only warn and ignore the option if not recognized
5507 # So say no if there are warnings
5508 if test -s conftest.err; then
5509 # Append any errors to the config.log.
5510 cat conftest.err 1>&5
5511 else
5512 lt_prog_compiler_static_works=yes
5513 fi
5514 fi
5515 $rm conftest*
5516 LDFLAGS="$save_LDFLAGS"
5517
5518fi
5519echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5520echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5521
5522if test x"$lt_prog_compiler_static_works" = xyes; then
5523 :
5524else
5525 lt_prog_compiler_static=
5526fi
5527
5528
5529
5530
5531lt_prog_compiler_no_builtin_flag=
5532
5533if test "$GCC" = yes; then
5534 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5535
5536
5537echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5538echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5539if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542 lt_cv_prog_compiler_rtti_exceptions=no
5543 ac_outfile=conftest.$ac_objext
5544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5545 lt_compiler_flag="-fno-rtti -fno-exceptions"
5546 # Insert the option either (1) after the last *FLAGS variable, or
5547 # (2) before a word containing "conftest.", or (3) at the end.
5548 # Note that $ac_compile itself does not contain backslashes and begins
5549 # with a dollar sign (not a hyphen), so the echo should work correctly.
5550 # The option is referenced via a variable to avoid confusing sed.
5551 lt_compile=`echo "$ac_compile" | $SED \
5552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5554 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +00005555 (eval echo "\"\$as_me:5555: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005556 (eval "$lt_compile" 2>conftest.err)
5557 ac_status=$?
5558 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +00005559 echo "$as_me:5559: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005560 if (exit $ac_status) && test -s "$ac_outfile"; then
5561 # The compiler can only warn and ignore the option if not recognized
5562 # So say no if there are warnings
5563 if test ! -s conftest.err; then
5564 lt_cv_prog_compiler_rtti_exceptions=yes
5565 fi
5566 fi
5567 $rm conftest*
5568
5569fi
5570echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5571echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5572
5573if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5575else
5576 :
5577fi
5578
5579fi
5580
5581lt_prog_compiler_wl=
5582lt_prog_compiler_pic=
5583lt_prog_compiler_static=
5584
5585echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5586echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005587
drh71eb93e2001-09-28 01:34:43 +00005588 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005589 lt_prog_compiler_wl='-Wl,'
5590 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005591
5592 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005593 aix*)
5594 # All AIX code is PIC.
5595 if test "$host_cpu" = ia64; then
5596 # AIX 5 now supports IA64 processor
5597 lt_prog_compiler_static='-Bstatic'
5598 fi
drh71eb93e2001-09-28 01:34:43 +00005599 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005600
drh71eb93e2001-09-28 01:34:43 +00005601 amigaos*)
5602 # FIXME: we need at least 68020 code to build shared libraries, but
5603 # adding the `-m68020' flag to GCC prevents building anything better,
5604 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005606 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005607
5608 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005609 # PIC is the default for these OSes.
5610 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005611
5612 mingw* | pw32* | os2*)
5613 # This hack is so that the source file can tell whether it is being
5614 # built for inclusion in a dll (and should export symbols for example).
5615 lt_prog_compiler_pic='-DDLL_EXPORT'
5616 ;;
5617
drh71eb93e2001-09-28 01:34:43 +00005618 darwin* | rhapsody*)
5619 # PIC is the default on this platform
5620 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005621 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005622 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005623
5624 msdosdjgpp*)
5625 # Just because we use GCC doesn't mean we suddenly get shared libraries
5626 # on systems that don't support them.
5627 lt_prog_compiler_can_build_shared=no
5628 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005629 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005630
drh71eb93e2001-09-28 01:34:43 +00005631 sysv4*MP*)
5632 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005633 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005634 fi
5635 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005636
5637 hpux*)
5638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5639 # not for PA HP-UX.
5640 case "$host_cpu" in
5641 hppa*64*|ia64*)
5642 # +Z the default
5643 ;;
5644 *)
5645 lt_prog_compiler_pic='-fPIC'
5646 ;;
5647 esac
5648 ;;
5649
drh71eb93e2001-09-28 01:34:43 +00005650 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005651 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005652 ;;
5653 esac
5654 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005655 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005656 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005657 aix*)
5658 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005659 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005660 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005661 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005662 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005663 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005664 fi
5665 ;;
5666
a.rottmann9bc8b932004-02-29 15:18:31 +00005667 mingw* | pw32* | os2*)
5668 # This hack is so that the source file can tell whether it is being
5669 # built for inclusion in a dll (and should export symbols for example).
5670 lt_prog_compiler_pic='-DDLL_EXPORT'
5671 ;;
5672
a.rottmann84e63352003-03-24 09:42:16 +00005673 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005674 lt_prog_compiler_wl='-Wl,'
5675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5676 # not for PA HP-UX.
5677 case "$host_cpu" in
5678 hppa*64*|ia64*)
5679 # +Z the default
5680 ;;
5681 *)
5682 lt_prog_compiler_pic='+Z'
5683 ;;
5684 esac
5685 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5686 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005687 ;;
5688
5689 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005690 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005691 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005692 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005693 ;;
5694
5695 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005696 lt_prog_compiler_pic='-KPIC'
5697 lt_prog_compiler_static='-Bstatic'
5698 ;;
5699
5700 linux*)
5701 case $CC in
5702 icc* | ecc*)
5703 lt_prog_compiler_wl='-Wl,'
5704 lt_prog_compiler_pic='-KPIC'
5705 lt_prog_compiler_static='-static'
5706 ;;
5707 ccc*)
5708 lt_prog_compiler_wl='-Wl,'
5709 # All Alpha code is PIC.
5710 lt_prog_compiler_static='-non_shared'
5711 ;;
5712 esac
drh71eb93e2001-09-28 01:34:43 +00005713 ;;
5714
5715 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005716 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005717 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005718 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005719 ;;
5720
5721 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005722 lt_prog_compiler_pic='-Kpic'
5723 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005724 ;;
5725
5726 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005727 lt_prog_compiler_wl='-Wl,'
5728 lt_prog_compiler_pic='-KPIC'
5729 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005730 ;;
5731
5732 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005733 lt_prog_compiler_wl='-Qoption ld '
5734 lt_prog_compiler_pic='-PIC'
5735 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005736 ;;
5737
5738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005739 lt_prog_compiler_wl='-Wl,'
5740 lt_prog_compiler_pic='-KPIC'
5741 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005742 ;;
5743
5744 sysv4*MP*)
5745 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005746 lt_prog_compiler_pic='-Kconform_pic'
5747 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005748 fi
5749 ;;
5750
a.rottmann9bc8b932004-02-29 15:18:31 +00005751 uts4*)
5752 lt_prog_compiler_pic='-pic'
5753 lt_prog_compiler_static='-Bstatic'
5754 ;;
5755
drh71eb93e2001-09-28 01:34:43 +00005756 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005757 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005758 ;;
5759 esac
5760 fi
5761
a.rottmann9bc8b932004-02-29 15:18:31 +00005762echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5763echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005764
a.rottmann9bc8b932004-02-29 15:18:31 +00005765#
5766# Check to make sure the PIC flag actually works.
5767#
5768if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005769
a.rottmann9bc8b932004-02-29 15:18:31 +00005770echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5771echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5772if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
a.rottmann9bc8b932004-02-29 15:18:31 +00005775 lt_prog_compiler_pic_works=no
5776 ac_outfile=conftest.$ac_objext
5777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5779 # Insert the option either (1) after the last *FLAGS variable, or
5780 # (2) before a word containing "conftest.", or (3) at the end.
5781 # Note that $ac_compile itself does not contain backslashes and begins
5782 # with a dollar sign (not a hyphen), so the echo should work correctly.
5783 # The option is referenced via a variable to avoid confusing sed.
5784 lt_compile=`echo "$ac_compile" | $SED \
5785 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5787 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +00005788 (eval echo "\"\$as_me:5788: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005789 (eval "$lt_compile" 2>conftest.err)
5790 ac_status=$?
5791 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +00005792 echo "$as_me:5792: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005793 if (exit $ac_status) && test -s "$ac_outfile"; then
5794 # The compiler can only warn and ignore the option if not recognized
5795 # So say no if there are warnings
5796 if test ! -s conftest.err; then
5797 lt_prog_compiler_pic_works=yes
5798 fi
5799 fi
5800 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005801
a.rottmann9bc8b932004-02-29 15:18:31 +00005802fi
5803echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5804echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005805
a.rottmann9bc8b932004-02-29 15:18:31 +00005806if test x"$lt_prog_compiler_pic_works" = xyes; then
5807 case $lt_prog_compiler_pic in
5808 "" | " "*) ;;
5809 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5810 esac
drh71eb93e2001-09-28 01:34:43 +00005811else
a.rottmann9bc8b932004-02-29 15:18:31 +00005812 lt_prog_compiler_pic=
5813 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005814fi
5815
a.rottmann84e63352003-03-24 09:42:16 +00005816fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005817case "$host_os" in
5818 # For platforms which do not support PIC, -DPIC is meaningless:
5819 *djgpp*)
5820 lt_prog_compiler_pic=
5821 ;;
5822 *)
5823 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5824 ;;
5825esac
a.rottmann84e63352003-03-24 09:42:16 +00005826
a.rottmann84e63352003-03-24 09:42:16 +00005827echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005828echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005829if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
a.rottmann9bc8b932004-02-29 15:18:31 +00005832 lt_cv_prog_compiler_c_o=no
5833 $rm -r conftest 2>/dev/null
5834 mkdir conftest
5835 cd conftest
5836 mkdir out
5837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005838
a.rottmann9bc8b932004-02-29 15:18:31 +00005839 lt_compiler_flag="-o out/conftest2.$ac_objext"
5840 # Insert the option either (1) after the last *FLAGS variable, or
5841 # (2) before a word containing "conftest.", or (3) at the end.
5842 # Note that $ac_compile itself does not contain backslashes and begins
5843 # with a dollar sign (not a hyphen), so the echo should work correctly.
5844 lt_compile=`echo "$ac_compile" | $SED \
5845 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5847 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +00005848 (eval echo "\"\$as_me:5848: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005849 (eval "$lt_compile" 2>out/conftest.err)
5850 ac_status=$?
5851 cat out/conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +00005852 echo "$as_me:5852: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5854 then
5855 # The compiler can only warn and ignore the option if not recognized
5856 # So say no if there are warnings
5857 if test ! -s out/conftest.err; then
5858 lt_cv_prog_compiler_c_o=yes
5859 fi
5860 fi
5861 chmod u+w .
5862 $rm conftest*
5863 # SGI C++ compiler will create directory out/ii_files/ for
5864 # template instantiation
5865 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5866 $rm out/* && rmdir out
5867 cd ..
5868 rmdir conftest
5869 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005870
5871fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005872echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5873echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005874
a.rottmann84e63352003-03-24 09:42:16 +00005875
drh71eb93e2001-09-28 01:34:43 +00005876hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005877if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005878 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005879 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005880echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5881 hard_links=yes
5882 $rm conftest*
5883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5884 touch conftest.a
5885 ln conftest.a conftest.b 2>&5 || hard_links=no
5886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005887 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005888echo "${ECHO_T}$hard_links" >&6
5889 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005890 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005891echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5892 need_locks=warn
5893 fi
5894else
5895 need_locks=no
5896fi
5897
a.rottmann9bc8b932004-02-29 15:18:31 +00005898echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5899echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5900
5901 runpath_var=
5902 allow_undefined_flag=
5903 enable_shared_with_static_runtimes=no
5904 archive_cmds=
5905 archive_expsym_cmds=
5906 old_archive_From_new_cmds=
5907 old_archive_from_expsyms_cmds=
5908 export_dynamic_flag_spec=
5909 whole_archive_flag_spec=
5910 thread_safe_flag_spec=
5911 hardcode_libdir_flag_spec=
5912 hardcode_libdir_flag_spec_ld=
5913 hardcode_libdir_separator=
5914 hardcode_direct=no
5915 hardcode_minus_L=no
5916 hardcode_shlibpath_var=unsupported
5917 link_all_deplibs=unknown
5918 hardcode_automatic=no
5919 module_cmds=
5920 module_expsym_cmds=
5921 always_export_symbols=no
5922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5923 # include_expsyms should be a list of space-separated symbols to be *always*
5924 # included in the symbol list
5925 include_expsyms=
5926 # exclude_expsyms can be an extended regexp of symbols to exclude
5927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5929 # as well as any symbol that contains `d'.
5930 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5932 # platforms (ab)use it in PIC code, but their linkers get confused if
5933 # the symbol is explicitly referenced. Since portable code cannot
5934 # rely on this symbol name, it's probably fine to never include it in
5935 # preloaded symbol tables.
5936 extract_expsyms_cmds=
5937
5938 case $host_os in
5939 cygwin* | mingw* | pw32*)
5940 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5941 # When not using gcc, we currently assume that we are using
5942 # Microsoft Visual C++.
5943 if test "$GCC" != yes; then
5944 with_gnu_ld=no
5945 fi
5946 ;;
5947 openbsd*)
5948 with_gnu_ld=no
5949 ;;
5950 esac
5951
5952 ld_shlibs=yes
5953 if test "$with_gnu_ld" = yes; then
5954 # If archive_cmds runs LD, not CC, wlarc should be empty
5955 wlarc='${wl}'
5956
5957 # See if GNU ld supports shared libraries.
5958 case $host_os in
5959 aix3* | aix4* | aix5*)
5960 # On AIX/PPC, the GNU linker is very broken
5961 if test "$host_cpu" != ia64; then
5962 ld_shlibs=no
5963 cat <<EOF 1>&2
5964
5965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5966*** to be unable to reliably create shared libraries on AIX.
5967*** Therefore, libtool is disabling shared libraries support. If you
5968*** really care for shared libraries, you may want to modify your PATH
5969*** so that a non-GNU linker is found, and then restart.
5970
5971EOF
5972 fi
5973 ;;
5974
5975 amigaos*)
5976 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)'
5977 hardcode_libdir_flag_spec='-L$libdir'
5978 hardcode_minus_L=yes
5979
5980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5981 # that the semantics of dynamic libraries on AmigaOS, at least up
5982 # to version 4, is to share data among multiple programs linked
5983 # with the same dynamic library. Since this doesn't match the
5984 # behavior of shared libraries on other platforms, we can't use
5985 # them.
5986 ld_shlibs=no
5987 ;;
5988
5989 beos*)
5990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5991 allow_undefined_flag=unsupported
5992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5993 # support --undefined. This deserves some investigation. FIXME
5994 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5995 else
5996 ld_shlibs=no
5997 fi
5998 ;;
5999
6000 cygwin* | mingw* | pw32*)
6001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6002 # as there is no search path for DLLs.
6003 hardcode_libdir_flag_spec='-L$libdir'
6004 allow_undefined_flag=unsupported
6005 always_export_symbols=no
6006 enable_shared_with_static_runtimes=yes
6007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6008
6009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6011 # If the export-symbols file already is a .def file (1st line
6012 # is EXPORTS), use it as is; otherwise, prepend...
6013 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6014 cp $export_symbols $output_objdir/$soname.def;
6015 else
6016 echo EXPORTS > $output_objdir/$soname.def;
6017 cat $export_symbols >> $output_objdir/$soname.def;
6018 fi~
6019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6020 else
6021 ld_shlibs=no
6022 fi
6023 ;;
6024
6025 netbsd* | knetbsd*-gnu)
6026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6027 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6028 wlarc=
6029 else
6030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6032 fi
6033 ;;
6034
6035 solaris* | sysv5*)
6036 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6037 ld_shlibs=no
6038 cat <<EOF 1>&2
6039
6040*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6041*** create shared libraries on Solaris systems. Therefore, libtool
6042*** is disabling shared libraries support. We urge you to upgrade GNU
6043*** binutils to release 2.9.1 or newer. Another option is to modify
6044*** your PATH or compiler configuration so that the native linker is
6045*** used, and then restart.
6046
6047EOF
6048 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6051 else
6052 ld_shlibs=no
6053 fi
6054 ;;
6055
6056 sunos4*)
6057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6058 wlarc=
6059 hardcode_direct=yes
6060 hardcode_shlibpath_var=no
6061 ;;
6062
6063 linux*)
6064 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6065 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6066 archive_cmds="$tmp_archive_cmds"
6067 supports_anon_versioning=no
6068 case `$LD -v 2>/dev/null` in
6069 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6070 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6071 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6072 *\ 2.11.*) ;; # other 2.11 versions
6073 *) supports_anon_versioning=yes ;;
6074 esac
6075 if test $supports_anon_versioning = yes; then
6076 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6077cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6078$echo "local: *; };" >> $output_objdir/$libname.ver~
6079 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6080 else
6081 archive_expsym_cmds="$tmp_archive_cmds"
6082 fi
6083 else
6084 ld_shlibs=no
6085 fi
6086 ;;
6087
6088 *)
6089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6092 else
6093 ld_shlibs=no
6094 fi
6095 ;;
6096 esac
6097
6098 if test "$ld_shlibs" = yes; then
6099 runpath_var=LD_RUN_PATH
6100 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6101 export_dynamic_flag_spec='${wl}--export-dynamic'
6102 # ancient GNU ld didn't support --whole-archive et. al.
6103 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6104 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6105 else
6106 whole_archive_flag_spec=
6107 fi
6108 fi
6109 else
6110 # PORTME fill in a description of your system's linker (not GNU ld)
6111 case $host_os in
6112 aix3*)
6113 allow_undefined_flag=unsupported
6114 always_export_symbols=yes
6115 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'
6116 # Note: this linker hardcodes the directories in LIBPATH if there
6117 # are no directories specified by -L.
6118 hardcode_minus_L=yes
6119 if test "$GCC" = yes && test -z "$link_static_flag"; then
6120 # Neither direct hardcoding nor static linking is supported with a
6121 # broken collect2.
6122 hardcode_direct=unsupported
6123 fi
6124 ;;
6125
6126 aix4* | aix5*)
6127 if test "$host_cpu" = ia64; then
6128 # On IA64, the linker does run time linking by default, so we don't
6129 # have to do anything special.
6130 aix_use_runtimelinking=no
6131 exp_sym_flag='-Bexport'
6132 no_entry_flag=""
6133 else
6134 # If we're using GNU nm, then we don't want the "-C" option.
6135 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6136 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6137 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'
6138 else
6139 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'
6140 fi
6141 aix_use_runtimelinking=no
6142
6143 # Test if we are trying to use run time linking or normal
6144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6145 # need to do runtime linking.
6146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6147 for ld_flag in $LDFLAGS; do
6148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6149 aix_use_runtimelinking=yes
6150 break
6151 fi
6152 done
6153 esac
6154
6155 exp_sym_flag='-bexport'
6156 no_entry_flag='-bnoentry'
6157 fi
6158
6159 # When large executables or shared objects are built, AIX ld can
6160 # have problems creating the table of contents. If linking a library
6161 # or program results in "error TOC overflow" add -mminimal-toc to
6162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6164
6165 archive_cmds=''
6166 hardcode_direct=yes
6167 hardcode_libdir_separator=':'
6168 link_all_deplibs=yes
6169
6170 if test "$GCC" = yes; then
6171 case $host_os in aix4.012|aix4.012.*)
6172 # We only want to do this on AIX 4.2 and lower, the check
6173 # below for broken collect2 doesn't work under 4.3+
6174 collect2name=`${CC} -print-prog-name=collect2`
6175 if test -f "$collect2name" && \
6176 strings "$collect2name" | grep resolve_lib_name >/dev/null
6177 then
6178 # We have reworked collect2
6179 hardcode_direct=yes
6180 else
6181 # We have old collect2
6182 hardcode_direct=unsupported
6183 # It fails to find uninstalled libraries when the uninstalled
6184 # path is not listed in the libpath. Setting hardcode_minus_L
6185 # to unsupported forces relinking
6186 hardcode_minus_L=yes
6187 hardcode_libdir_flag_spec='-L$libdir'
6188 hardcode_libdir_separator=
6189 fi
6190 esac
6191 shared_flag='-shared'
6192 else
6193 # not using gcc
6194 if test "$host_cpu" = ia64; then
6195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6196 # chokes on -Wl,-G. The following line is correct:
6197 shared_flag='-G'
6198 else
6199 if test "$aix_use_runtimelinking" = yes; then
6200 shared_flag='${wl}-G'
6201 else
6202 shared_flag='${wl}-bM:SRE'
6203 fi
6204 fi
6205 fi
6206
6207 # It seems that -bexpall does not export symbols beginning with
6208 # underscore (_), so it is better to generate a list of symbols to export.
6209 always_export_symbols=yes
6210 if test "$aix_use_runtimelinking" = yes; then
6211 # Warning - without using the other runtime loading flags (-brtl),
6212 # -berok will link without error, but may produce a broken library.
6213 allow_undefined_flag='-berok'
6214 # Determine the default libpath from the value encoded in an empty executable.
6215 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006221
a.rottmann84e63352003-03-24 09:42:16 +00006222int
6223main ()
6224{
a.rottmann9bc8b932004-02-29 15:18:31 +00006225
a.rottmann84e63352003-03-24 09:42:16 +00006226 ;
6227 return 0;
6228}
6229_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006230rm -f conftest.$ac_objext conftest$ac_exeext
6231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006233 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006246 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006252
a.rottmann9bc8b932004-02-29 15:18:31 +00006253aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6254}'`
6255# Check for a 64-bit object if we didn't find anything.
6256if 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; }
6257}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006258else
6259 echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006263rm -f conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006266
a.rottmann9bc8b932004-02-29 15:18:31 +00006267 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6268 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"
6269 else
6270 if test "$host_cpu" = ia64; then
6271 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6272 allow_undefined_flag="-z nodefs"
6273 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"
6274 else
6275 # Determine the default libpath from the value encoded in an empty executable.
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006282
a.rottmann9bc8b932004-02-29 15:18:31 +00006283int
6284main ()
6285{
a.rottmann84e63352003-03-24 09:42:16 +00006286
a.rottmann9bc8b932004-02-29 15:18:31 +00006287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext conftest$ac_exeext
6292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006300 { ac_try='test -z "$ac_c_werror_flag"
6301 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006313
a.rottmann9bc8b932004-02-29 15:18:31 +00006314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6315}'`
6316# Check for a 64-bit object if we didn't find anything.
6317if 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; }
6318}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006319else
a.rottmann9bc8b932004-02-29 15:18:31 +00006320 echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006322
a.rottmann9bc8b932004-02-29 15:18:31 +00006323fi
6324rm -f conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006327
a.rottmann9bc8b932004-02-29 15:18:31 +00006328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6329 # Warning - without using the other run time loading flags,
6330 # -berok will link without error, but may produce a broken library.
6331 no_undefined_flag=' ${wl}-bernotok'
6332 allow_undefined_flag=' ${wl}-berok'
6333 # -bexpall does not export symbols beginning with underscore (_)
6334 always_export_symbols=yes
6335 # Exported symbols can be pulled into shared objects from archives
6336 whole_archive_flag_spec=' '
6337 archive_cmds_need_lc=yes
6338 # This is similar to how AIX traditionally builds it's shared libraries.
6339 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 +00006340 fi
6341 fi
a.rottmann84e63352003-03-24 09:42:16 +00006342 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006343
6344 amigaos*)
6345 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)'
6346 hardcode_libdir_flag_spec='-L$libdir'
6347 hardcode_minus_L=yes
6348 # see comment about different semantics on the GNU ld section
6349 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006350 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006351
a.rottmann9bc8b932004-02-29 15:18:31 +00006352 bsdi4*)
6353 export_dynamic_flag_spec=-rdynamic
6354 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006355
a.rottmann9bc8b932004-02-29 15:18:31 +00006356 cygwin* | mingw* | pw32*)
6357 # When not using gcc, we currently assume that we are using
6358 # Microsoft Visual C++.
6359 # hardcode_libdir_flag_spec is actually meaningless, as there is
6360 # no search path for DLLs.
6361 hardcode_libdir_flag_spec=' '
6362 allow_undefined_flag=unsupported
6363 # Tell ltmain to make .lib files, not .a files.
6364 libext=lib
6365 # Tell ltmain to make .dll files, not .so files.
6366 shrext=".dll"
6367 # FIXME: Setting linknames here is a bad hack.
6368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6369 # The linker will automatically build a .lib file if we build a DLL.
6370 old_archive_From_new_cmds='true'
6371 # FIXME: Should let the user specify the lib program.
6372 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6373 fix_srcfile_path='`cygpath -w "$srcfile"`'
6374 enable_shared_with_static_runtimes=yes
6375 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006376
a.rottmann9bc8b932004-02-29 15:18:31 +00006377 darwin* | rhapsody*)
6378 if test "$GXX" = yes ; then
6379 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006380 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006381 rhapsody* | darwin1.[012])
6382 allow_undefined_flag='-undefined suppress'
6383 ;;
6384 *) # Darwin 1.3 on
6385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6386 allow_undefined_flag='-flat_namespace -undefined suppress'
6387 else
6388 case ${MACOSX_DEPLOYMENT_TARGET} in
6389 10.[012])
6390 allow_undefined_flag='-flat_namespace -undefined suppress'
6391 ;;
6392 10.*)
6393 allow_undefined_flag='-undefined dynamic_lookup'
6394 ;;
6395 esac
6396 fi
a.rottmann84e63352003-03-24 09:42:16 +00006397 ;;
6398 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006399 lt_int_apple_cc_single_mod=no
6400 output_verbose_link_cmd='echo'
6401 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6402 lt_int_apple_cc_single_mod=yes
6403 fi
6404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6405 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6406 else
6407 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'
6408 fi
6409 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6411 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6412 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}'
6413 else
6414 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}'
6415 fi
6416 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}'
6417 hardcode_direct=no
6418 hardcode_automatic=yes
6419 hardcode_shlibpath_var=unsupported
6420 whole_archive_flag_spec='-all_load $convenience'
6421 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006422 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006423 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006424 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006425 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006426
a.rottmann9bc8b932004-02-29 15:18:31 +00006427 dgux*)
6428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6429 hardcode_libdir_flag_spec='-L$libdir'
6430 hardcode_shlibpath_var=no
6431 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006432
a.rottmann9bc8b932004-02-29 15:18:31 +00006433 freebsd1*)
6434 ld_shlibs=no
6435 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006436
a.rottmann9bc8b932004-02-29 15:18:31 +00006437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6438 # support. Future versions do this automatically, but an explicit c++rt0.o
6439 # does not break anything, and helps significantly (at the cost of a little
6440 # extra space).
6441 freebsd2.2*)
6442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6443 hardcode_libdir_flag_spec='-R$libdir'
6444 hardcode_direct=yes
6445 hardcode_shlibpath_var=no
6446 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006447
a.rottmann9bc8b932004-02-29 15:18:31 +00006448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6449 freebsd2*)
6450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6451 hardcode_direct=yes
6452 hardcode_minus_L=yes
6453 hardcode_shlibpath_var=no
6454 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006455
a.rottmann9bc8b932004-02-29 15:18:31 +00006456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6457 freebsd* | kfreebsd*-gnu)
6458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6459 hardcode_libdir_flag_spec='-R$libdir'
6460 hardcode_direct=yes
6461 hardcode_shlibpath_var=no
6462 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006463
a.rottmann9bc8b932004-02-29 15:18:31 +00006464 hpux9*)
6465 if test "$GCC" = yes; then
6466 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'
6467 else
6468 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'
6469 fi
6470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6471 hardcode_libdir_separator=:
6472 hardcode_direct=yes
6473
6474 # hardcode_minus_L: Not really in the search PATH,
6475 # but as the default location of the library.
6476 hardcode_minus_L=yes
6477 export_dynamic_flag_spec='${wl}-E'
6478 ;;
6479
6480 hpux10* | hpux11*)
6481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6482 case "$host_cpu" in
6483 hppa*64*|ia64*)
6484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6485 ;;
6486 *)
6487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6488 ;;
6489 esac
6490 else
6491 case "$host_cpu" in
6492 hppa*64*|ia64*)
6493 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6494 ;;
6495 *)
6496 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6497 ;;
6498 esac
6499 fi
6500 if test "$with_gnu_ld" = no; then
6501 case "$host_cpu" in
6502 hppa*64*)
6503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6504 hardcode_libdir_flag_spec_ld='+b $libdir'
6505 hardcode_libdir_separator=:
6506 hardcode_direct=no
6507 hardcode_shlibpath_var=no
6508 ;;
6509 ia64*)
6510 hardcode_libdir_flag_spec='-L$libdir'
6511 hardcode_direct=no
6512 hardcode_shlibpath_var=no
6513
6514 # hardcode_minus_L: Not really in the search PATH,
6515 # but as the default location of the library.
6516 hardcode_minus_L=yes
6517 ;;
6518 *)
6519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6520 hardcode_libdir_separator=:
6521 hardcode_direct=yes
6522 export_dynamic_flag_spec='${wl}-E'
6523
6524 # hardcode_minus_L: Not really in the search PATH,
6525 # but as the default location of the library.
6526 hardcode_minus_L=yes
6527 ;;
6528 esac
6529 fi
6530 ;;
6531
6532 irix5* | irix6* | nonstopux*)
6533 if test "$GCC" = yes; then
6534 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'
6535 else
6536 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'
6537 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6538 fi
6539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6540 hardcode_libdir_separator=:
6541 link_all_deplibs=yes
6542 ;;
6543
6544 netbsd* | knetbsd*-gnu)
6545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6547 else
6548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6549 fi
6550 hardcode_libdir_flag_spec='-R$libdir'
6551 hardcode_direct=yes
6552 hardcode_shlibpath_var=no
6553 ;;
6554
6555 newsos6)
6556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6557 hardcode_direct=yes
6558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6559 hardcode_libdir_separator=:
6560 hardcode_shlibpath_var=no
6561 ;;
6562
6563 openbsd*)
6564 hardcode_direct=yes
6565 hardcode_shlibpath_var=no
6566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6569 export_dynamic_flag_spec='${wl}-E'
6570 else
6571 case $host_os in
6572 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6574 hardcode_libdir_flag_spec='-R$libdir'
6575 ;;
6576 *)
6577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6579 ;;
6580 esac
6581 fi
6582 ;;
6583
6584 os2*)
6585 hardcode_libdir_flag_spec='-L$libdir'
6586 hardcode_minus_L=yes
6587 allow_undefined_flag=unsupported
6588 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'
6589 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6590 ;;
6591
6592 osf3*)
6593 if test "$GCC" = yes; then
6594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6595 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'
6596 else
6597 allow_undefined_flag=' -expect_unresolved \*'
6598 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'
6599 fi
6600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6601 hardcode_libdir_separator=:
6602 ;;
6603
6604 osf4* | osf5*) # as osf3* with the addition of -msym flag
6605 if test "$GCC" = yes; then
6606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6607 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'
6608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6609 else
6610 allow_undefined_flag=' -expect_unresolved \*'
6611 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'
6612 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6613 $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'
6614
6615 # Both c and cxx compiler support -rpath directly
6616 hardcode_libdir_flag_spec='-rpath $libdir'
6617 fi
6618 hardcode_libdir_separator=:
6619 ;;
6620
6621 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006624 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006625 runpath_var=LD_RUN_PATH
6626 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006627 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006628
a.rottmann9bc8b932004-02-29 15:18:31 +00006629 solaris*)
6630 no_undefined_flag=' -z text'
6631 if test "$GCC" = yes; then
6632 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6634 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6635 else
6636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6639 fi
6640 hardcode_libdir_flag_spec='-R$libdir'
6641 hardcode_shlibpath_var=no
6642 case $host_os in
6643 solaris2.[0-5] | solaris2.[0-5].*) ;;
6644 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6646 esac
6647 link_all_deplibs=yes
6648 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006649
a.rottmann9bc8b932004-02-29 15:18:31 +00006650 sunos4*)
6651 if test "x$host_vendor" = xsequent; then
6652 # Use $CC to link under sequent, because it throws in some extra .o
6653 # files that make .init and .fini sections work.
6654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6655 else
6656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6657 fi
6658 hardcode_libdir_flag_spec='-L$libdir'
6659 hardcode_direct=yes
6660 hardcode_minus_L=yes
6661 hardcode_shlibpath_var=no
6662 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006663
a.rottmann9bc8b932004-02-29 15:18:31 +00006664 sysv4)
6665 case $host_vendor in
6666 sni)
6667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6668 hardcode_direct=yes # is this really true???
6669 ;;
6670 siemens)
6671 ## LD is ld it makes a PLAMLIB
6672 ## CC just makes a GrossModule.
6673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6674 reload_cmds='$CC -r -o $output$reload_objs'
6675 hardcode_direct=no
6676 ;;
6677 motorola)
6678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6680 ;;
6681 esac
6682 runpath_var='LD_RUN_PATH'
6683 hardcode_shlibpath_var=no
6684 ;;
6685
6686 sysv4.3*)
6687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6688 hardcode_shlibpath_var=no
6689 export_dynamic_flag_spec='-Bexport'
6690 ;;
6691
6692 sysv4*MP*)
6693 if test -d /usr/nec; then
6694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6695 hardcode_shlibpath_var=no
6696 runpath_var=LD_RUN_PATH
6697 hardcode_runpath_var=yes
6698 ld_shlibs=yes
6699 fi
6700 ;;
6701
6702 sysv4.2uw2*)
6703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6704 hardcode_direct=yes
6705 hardcode_minus_L=no
6706 hardcode_shlibpath_var=no
6707 hardcode_runpath_var=yes
6708 runpath_var=LD_RUN_PATH
6709 ;;
6710
6711 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6712 no_undefined_flag='${wl}-z ${wl}text'
6713 if test "$GCC" = yes; then
6714 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6715 else
6716 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6717 fi
6718 runpath_var='LD_RUN_PATH'
6719 hardcode_shlibpath_var=no
6720 ;;
6721
6722 sysv5*)
6723 no_undefined_flag=' -z text'
6724 # $CC -shared without GNU ld will not create a library from C++
6725 # object files and a static libstdc++, better avoid it by now
6726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6729 hardcode_libdir_flag_spec=
6730 hardcode_shlibpath_var=no
6731 runpath_var='LD_RUN_PATH'
6732 ;;
6733
6734 uts4*)
6735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6736 hardcode_libdir_flag_spec='-L$libdir'
6737 hardcode_shlibpath_var=no
6738 ;;
6739
6740 *)
6741 ld_shlibs=no
6742 ;;
6743 esac
6744 fi
6745
a.rottmann84e63352003-03-24 09:42:16 +00006746echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6747echo "${ECHO_T}$ld_shlibs" >&6
6748test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006749
a.rottmann9bc8b932004-02-29 15:18:31 +00006750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6751if test "$GCC" = yes; then
6752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6753fi
drh71eb93e2001-09-28 01:34:43 +00006754
a.rottmann9bc8b932004-02-29 15:18:31 +00006755#
6756# Do we need to explicitly link libc?
6757#
6758case "x$archive_cmds_need_lc" in
6759x|xyes)
6760 # Assume -lc should be added
6761 archive_cmds_need_lc=yes
6762
6763 if test "$enable_shared" = yes && test "$GCC" = yes; then
6764 case $archive_cmds in
6765 *'~'*)
6766 # FIXME: we may have to deal with multi-command sequences.
6767 ;;
6768 '$CC '*)
6769 # Test whether the compiler implicitly links with -lc since on some
6770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6771 # to ld, don't add -lc before -lgcc.
6772 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6773echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6774 $rm conftest*
6775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6776
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } 2>conftest.err; then
6782 soname=conftest
6783 lib=conftest
6784 libobjs=conftest.$ac_objext
6785 deplibs=
6786 wl=$lt_prog_compiler_wl
6787 compiler_flags=-v
6788 linker_flags=-v
6789 verstring=
6790 output_objdir=.
6791 libname=conftest
6792 lt_save_allow_undefined_flag=$allow_undefined_flag
6793 allow_undefined_flag=
6794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6795 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }
6799 then
6800 archive_cmds_need_lc=no
6801 else
6802 archive_cmds_need_lc=yes
6803 fi
6804 allow_undefined_flag=$lt_save_allow_undefined_flag
6805 else
6806 cat conftest.err 1>&5
6807 fi
6808 $rm conftest*
6809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6810echo "${ECHO_T}$archive_cmds_need_lc" >&6
6811 ;;
6812 esac
drh71eb93e2001-09-28 01:34:43 +00006813 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 ;;
6815esac
drh71eb93e2001-09-28 01:34:43 +00006816
a.rottmann84e63352003-03-24 09:42:16 +00006817echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006818echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6819library_names_spec=
6820libname_spec='lib$name'
6821soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006822shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006823postinstall_cmds=
6824postuninstall_cmds=
6825finish_cmds=
6826finish_eval=
6827shlibpath_var=
6828shlibpath_overrides_runpath=unknown
6829version_type=none
6830dynamic_linker="$host_os ld.so"
6831sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006832if test "$GCC" = yes; then
6833 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6834 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6835 # if the path contains ";" then we assume it to be the separator
6836 # otherwise default to the standard path separator (i.e. ":") - it is
6837 # assumed that no part of a normal pathname contains ";" but that should
6838 # okay in the real world where ";" in dirpaths is itself problematic.
6839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6840 else
6841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6842 fi
6843else
6844 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6845fi
6846need_lib_prefix=unknown
6847hardcode_into_libs=no
6848
6849# when you set need_version to no, make sure it does not cause -set_version
6850# flags to be left without arguments
6851need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006852
6853case $host_os in
6854aix3*)
6855 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006857 shlibpath_var=LIBPATH
6858
a.rottmann9bc8b932004-02-29 15:18:31 +00006859 # AIX 3 has no versioning support, so we append a major version to the name.
6860 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006861 ;;
6862
6863aix4* | aix5*)
6864 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006865 need_lib_prefix=no
6866 need_version=no
6867 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006868 if test "$host_cpu" = ia64; then
6869 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006871 shlibpath_var=LD_LIBRARY_PATH
6872 else
6873 # With GCC up to 2.95.x, collect2 would create an import file
6874 # for dependence libraries. The import file would start with
6875 # the line `#! .'. This would cause the generated library to
6876 # depend on `.', always an invalid library. This was fixed in
6877 # development snapshots of GCC prior to 3.0.
6878 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006879 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6881 echo ' yes '
6882 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6883 :
6884 else
6885 can_build_shared=no
6886 fi
6887 ;;
drh71eb93e2001-09-28 01:34:43 +00006888 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6890 # soname into executable. Probably we can add versioning support to
6891 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006892 if test "$aix_use_runtimelinking" = yes; then
6893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6894 # instead of lib<name>.a to let people know that these are not
6895 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006897 else
6898 # We preserve .a as extension for shared libraries through AIX4.2
6899 # and later when we are not doing run time linking.
6900 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006901 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006902 fi
6903 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006904 fi
6905 ;;
6906
6907amigaos*)
6908 library_names_spec='$libname.ixlibrary $libname.a'
6909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 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 +00006911 ;;
6912
6913beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006914 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006915 dynamic_linker="$host_os ld.so"
6916 shlibpath_var=LIBRARY_PATH
6917 ;;
6918
6919bsdi4*)
6920 version_type=linux
6921 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6923 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6928 # the default ld.so.conf also contains /usr/contrib/lib and
6929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6930 # libtool to hard-code these into programs
6931 ;;
6932
6933cygwin* | mingw* | pw32*)
6934 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006936 need_version=no
6937 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006938
drh71eb93e2001-09-28 01:34:43 +00006939 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006940 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006941 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6943 postinstall_cmds='base_file=`basename \${file}`~
6944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006945 dldir=$destdir/`dirname \$dlpath`~
6946 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006947 $install_prog $dir/$dlname \$dldir/$dlname'
6948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006949 dlpath=$dir/\$dldll~
6950 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006951 shlibpath_overrides_runpath=yes
6952
6953 case $host_os in
6954 cygwin*)
6955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6958 ;;
6959 mingw*)
6960 # MinGW DLLs use traditional 'lib' prefix
6961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6964 # It is most probably a Windows format PATH printed by
6965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6966 # path with ; separators, and with drive letters. We can handle the
6967 # drive letters (cygwin fileutils understands them), so leave them,
6968 # especially as we might pass files found there to a mingw objdump,
6969 # which wouldn't understand a cygwinified path. Ahh.
6970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6971 else
6972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6973 fi
6974 ;;
6975 pw32*)
6976 # pw32 DLLs use 'pw' prefix rather than 'lib'
6977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6978 ;;
6979 esac
drh71eb93e2001-09-28 01:34:43 +00006980 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006981
drh71eb93e2001-09-28 01:34:43 +00006982 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006984 ;;
6985 esac
6986 dynamic_linker='Win32 ld.exe'
6987 # FIXME: first we should search . and the directory the executable is in
6988 shlibpath_var=PATH
6989 ;;
6990
6991darwin* | rhapsody*)
6992 dynamic_linker="$host_os dyld"
6993 version_type=darwin
6994 need_lib_prefix=no
6995 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6997 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00006998 shlibpath_overrides_runpath=yes
6999 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00007000 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7002 if test "$GCC" = yes; then
7003 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"`
7004 else
7005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7006 fi
7007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7008 ;;
7009
7010dgux*)
7011 version_type=linux
7012 need_lib_prefix=no
7013 need_version=no
7014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7015 soname_spec='${libname}${release}${shared_ext}$major'
7016 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007017 ;;
7018
a.rottmann84e63352003-03-24 09:42:16 +00007019freebsd1*)
7020 dynamic_linker=no
7021 ;;
7022
a.rottmann9bc8b932004-02-29 15:18:31 +00007023kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007024 version_type=linux
7025 need_lib_prefix=no
7026 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7028 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007029 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007030 shlibpath_overrides_runpath=no
7031 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007033 ;;
7034
7035freebsd*)
7036 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7037 version_type=freebsd-$objformat
7038 case $version_type in
7039 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007041 need_version=no
7042 need_lib_prefix=no
7043 ;;
7044 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007046 need_version=yes
7047 ;;
7048 esac
7049 shlibpath_var=LD_LIBRARY_PATH
7050 case $host_os in
7051 freebsd2*)
7052 shlibpath_overrides_runpath=yes
7053 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007054 freebsd3.01* | freebsdelf3.01*)
7055 shlibpath_overrides_runpath=yes
7056 hardcode_into_libs=yes
7057 ;;
7058 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007059 shlibpath_overrides_runpath=no
7060 hardcode_into_libs=yes
7061 ;;
7062 esac
7063 ;;
7064
7065gnu*)
7066 version_type=linux
7067 need_lib_prefix=no
7068 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7070 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007071 shlibpath_var=LD_LIBRARY_PATH
7072 hardcode_into_libs=yes
7073 ;;
7074
7075hpux9* | hpux10* | hpux11*)
7076 # Give a soname corresponding to the major version so that dld.sl refuses to
7077 # link against other versions.
7078 version_type=sunos
7079 need_lib_prefix=no
7080 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007081 case "$host_cpu" in
7082 ia64*)
7083 shrext='.so'
7084 hardcode_into_libs=yes
7085 dynamic_linker="$host_os dld.so"
7086 shlibpath_var=LD_LIBRARY_PATH
7087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089 soname_spec='${libname}${release}${shared_ext}$major'
7090 if test "X$HPUX_IA64_MODE" = X32; then
7091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7092 else
7093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7094 fi
7095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7096 ;;
7097 hppa*64*)
7098 shrext='.sl'
7099 hardcode_into_libs=yes
7100 dynamic_linker="$host_os dld.sl"
7101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7104 soname_spec='${libname}${release}${shared_ext}$major'
7105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7107 ;;
7108 *)
7109 shrext='.sl'
7110 dynamic_linker="$host_os dld.sl"
7111 shlibpath_var=SHLIB_PATH
7112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7114 soname_spec='${libname}${release}${shared_ext}$major'
7115 ;;
7116 esac
drh71eb93e2001-09-28 01:34:43 +00007117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7118 postinstall_cmds='chmod 555 $lib'
7119 ;;
7120
a.rottmann84e63352003-03-24 09:42:16 +00007121irix5* | irix6* | nonstopux*)
7122 case $host_os in
7123 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007124 *)
7125 if test "$lt_cv_prog_gnu_ld" = yes; then
7126 version_type=linux
7127 else
7128 version_type=irix
7129 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007130 esac
drh71eb93e2001-09-28 01:34:43 +00007131 need_lib_prefix=no
7132 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 soname_spec='${libname}${release}${shared_ext}$major'
7134 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 +00007135 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007136 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007137 libsuff= shlibsuff=
7138 ;;
7139 *)
7140 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7142 libsuff= shlibsuff= libmagic=32-bit;;
7143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7144 libsuff=32 shlibsuff=N32 libmagic=N32;;
7145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007147 *) libsuff= shlibsuff= libmagic=never-match;;
7148 esac
7149 ;;
7150 esac
7151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7152 shlibpath_overrides_runpath=no
7153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007155 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007156 ;;
7157
7158# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007159linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007160 dynamic_linker=no
7161 ;;
7162
7163# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007164linux*)
drh71eb93e2001-09-28 01:34:43 +00007165 version_type=linux
7166 need_lib_prefix=no
7167 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7169 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7171 shlibpath_var=LD_LIBRARY_PATH
7172 shlibpath_overrides_runpath=no
7173 # This implies no fast_install, which is unacceptable.
7174 # Some rework will be needed to allow for fast_install
7175 # before this can be enabled.
7176 hardcode_into_libs=yes
7177
a.rottmann9bc8b932004-02-29 15:18:31 +00007178 # Append ld.so.conf contents to the search path
7179 if test -f /etc/ld.so.conf; then
7180 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7181 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7182 fi
7183
drh71eb93e2001-09-28 01:34:43 +00007184 # We used to test for /lib/ld.so.1 and disable shared libraries on
7185 # powerpc, because MkLinux only supported shared libraries with the
7186 # GNU dynamic linker. Since this was broken with cross compilers,
7187 # most powerpc-linux boxes support dynamic linking these days and
7188 # people can always --disable-shared, the test was removed, and we
7189 # assume the GNU/Linux dynamic linker is in use.
7190 dynamic_linker='GNU/Linux ld.so'
7191 ;;
7192
a.rottmann9bc8b932004-02-29 15:18:31 +00007193knetbsd*-gnu)
7194 version_type=linux
7195 need_lib_prefix=no
7196 need_version=no
7197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7198 soname_spec='${libname}${release}${shared_ext}$major'
7199 shlibpath_var=LD_LIBRARY_PATH
7200 shlibpath_overrides_runpath=no
7201 hardcode_into_libs=yes
7202 dynamic_linker='GNU ld.so'
7203 ;;
7204
drh71eb93e2001-09-28 01:34:43 +00007205netbsd*)
7206 version_type=sunos
7207 need_lib_prefix=no
7208 need_version=no
7209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7212 dynamic_linker='NetBSD (a.out) ld.so'
7213 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7215 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007216 dynamic_linker='NetBSD ld.elf_so'
7217 fi
7218 shlibpath_var=LD_LIBRARY_PATH
7219 shlibpath_overrides_runpath=yes
7220 hardcode_into_libs=yes
7221 ;;
7222
7223newsos6)
7224 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7226 shlibpath_var=LD_LIBRARY_PATH
7227 shlibpath_overrides_runpath=yes
7228 ;;
7229
7230nto-qnx*)
7231 version_type=linux
7232 need_lib_prefix=no
7233 need_version=no
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7235 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007236 shlibpath_var=LD_LIBRARY_PATH
7237 shlibpath_overrides_runpath=yes
7238 ;;
7239
drh71eb93e2001-09-28 01:34:43 +00007240openbsd*)
7241 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007242 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 need_version=yes
7244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7246 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007247 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 +00007248 case $host_os in
7249 openbsd2.[89] | openbsd2.[89].*)
7250 shlibpath_overrides_runpath=no
7251 ;;
7252 *)
7253 shlibpath_overrides_runpath=yes
7254 ;;
7255 esac
a.rottmann84e63352003-03-24 09:42:16 +00007256 else
7257 shlibpath_overrides_runpath=yes
7258 fi
drh71eb93e2001-09-28 01:34:43 +00007259 ;;
7260
7261os2*)
7262 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007264 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007266 dynamic_linker='OS/2 ld.exe'
7267 shlibpath_var=LIBPATH
7268 ;;
7269
7270osf3* | osf4* | osf5*)
7271 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007272 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 need_version=no
7274 soname_spec='${libname}${release}${shared_ext}$major'
7275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007276 shlibpath_var=LD_LIBRARY_PATH
7277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7279 ;;
7280
7281sco3.2v5*)
7282 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 soname_spec='${libname}${release}${shared_ext}$major'
7284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007285 shlibpath_var=LD_LIBRARY_PATH
7286 ;;
7287
7288solaris*)
7289 version_type=linux
7290 need_lib_prefix=no
7291 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7293 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007294 shlibpath_var=LD_LIBRARY_PATH
7295 shlibpath_overrides_runpath=yes
7296 hardcode_into_libs=yes
7297 # ldd complains unless libraries are executable
7298 postinstall_cmds='chmod +x $lib'
7299 ;;
7300
7301sunos4*)
7302 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7305 shlibpath_var=LD_LIBRARY_PATH
7306 shlibpath_overrides_runpath=yes
7307 if test "$with_gnu_ld" = yes; then
7308 need_lib_prefix=no
7309 fi
7310 need_version=yes
7311 ;;
7312
7313sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7314 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007317 shlibpath_var=LD_LIBRARY_PATH
7318 case $host_vendor in
7319 sni)
7320 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007321 need_lib_prefix=no
7322 export_dynamic_flag_spec='${wl}-Blargedynsym'
7323 runpath_var=LD_RUN_PATH
7324 ;;
7325 siemens)
7326 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007327 ;;
7328 motorola)
7329 need_lib_prefix=no
7330 need_version=no
7331 shlibpath_overrides_runpath=no
7332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7333 ;;
7334 esac
7335 ;;
7336
7337sysv4*MP*)
7338 if test -d /usr/nec ;then
7339 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7341 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007342 shlibpath_var=LD_LIBRARY_PATH
7343 fi
7344 ;;
7345
a.rottmann9bc8b932004-02-29 15:18:31 +00007346uts4*)
7347 version_type=linux
7348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7349 soname_spec='${libname}${release}${shared_ext}$major'
7350 shlibpath_var=LD_LIBRARY_PATH
7351 ;;
7352
drh71eb93e2001-09-28 01:34:43 +00007353*)
7354 dynamic_linker=no
7355 ;;
7356esac
a.rottmann84e63352003-03-24 09:42:16 +00007357echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007358echo "${ECHO_T}$dynamic_linker" >&6
7359test "$dynamic_linker" = no && can_build_shared=no
7360
a.rottmann9bc8b932004-02-29 15:18:31 +00007361echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7362echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7363hardcode_action=
7364if test -n "$hardcode_libdir_flag_spec" || \
7365 test -n "$runpath_var " || \
7366 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007367
a.rottmann9bc8b932004-02-29 15:18:31 +00007368 # We can hardcode non-existant directories.
7369 if test "$hardcode_direct" != no &&
7370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7371 # have to relink, otherwise we might link with an installed library
7372 # when we should be linking with a yet-to-be-installed one
7373 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7374 test "$hardcode_minus_L" != no; then
7375 # Linking always hardcodes the temporary library directory.
7376 hardcode_action=relink
7377 else
7378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7379 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007380 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007381else
7382 # We cannot hardcode anything, or else we can only hardcode existing
7383 # directories.
7384 hardcode_action=unsupported
7385fi
7386echo "$as_me:$LINENO: result: $hardcode_action" >&5
7387echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007388
7389if test "$hardcode_action" = relink; then
7390 # Fast installation is not supported
7391 enable_fast_install=no
7392elif test "$shlibpath_overrides_runpath" = yes ||
7393 test "$enable_shared" = no; then
7394 # Fast installation is not necessary
7395 enable_fast_install=needless
7396fi
7397
a.rottmann9bc8b932004-02-29 15:18:31 +00007398striplib=
7399old_striplib=
7400echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7401echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7402if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7405 echo "$as_me:$LINENO: result: yes" >&5
7406echo "${ECHO_T}yes" >&6
7407else
7408# FIXME - insert some real tests, host_os isn't really good enough
7409 case $host_os in
7410 darwin*)
7411 if test -n "$STRIP" ; then
7412 striplib="$STRIP -x"
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
7419 ;;
7420 *)
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423 ;;
7424 esac
a.rottmann84e63352003-03-24 09:42:16 +00007425fi
7426
drh71eb93e2001-09-28 01:34:43 +00007427if test "x$enable_dlopen" != xyes; then
7428 enable_dlopen=unknown
7429 enable_dlopen_self=unknown
7430 enable_dlopen_self_static=unknown
7431else
7432 lt_cv_dlopen=no
7433 lt_cv_dlopen_libs=
7434
7435 case $host_os in
7436 beos*)
7437 lt_cv_dlopen="load_add_on"
7438 lt_cv_dlopen_libs=
7439 lt_cv_dlopen_self=yes
7440 ;;
7441
a.rottmann9bc8b932004-02-29 15:18:31 +00007442 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007443 lt_cv_dlopen="LoadLibrary"
7444 lt_cv_dlopen_libs=
7445 ;;
7446
a.rottmann9bc8b932004-02-29 15:18:31 +00007447 cygwin*)
7448 lt_cv_dlopen="dlopen"
7449 lt_cv_dlopen_libs=
7450 ;;
7451
7452 darwin*)
7453 # if libdl is installed we need to link against it
7454 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7455echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7456if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 ac_check_lib_save_LIBS=$LIBS
7460LIBS="-ldl $LIBS"
7461cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h. */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h. */
7467
7468/* Override any gcc2 internal prototype to avoid an error. */
7469#ifdef __cplusplus
7470extern "C"
7471#endif
7472/* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474char dlopen ();
7475int
7476main ()
7477{
7478dlopen ();
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext conftest$ac_exeext
7484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_dl_dlopen=yes
7506else
7507 echo "$as_me: failed program was:" >&5
7508sed 's/^/| /' conftest.$ac_ext >&5
7509
7510ac_cv_lib_dl_dlopen=no
7511fi
7512rm -f conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514LIBS=$ac_check_lib_save_LIBS
7515fi
7516echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7517echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7518if test $ac_cv_lib_dl_dlopen = yes; then
7519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7520else
7521
7522 lt_cv_dlopen="dyld"
7523 lt_cv_dlopen_libs=
7524 lt_cv_dlopen_self=yes
7525
7526fi
7527
7528 ;;
7529
drh71eb93e2001-09-28 01:34:43 +00007530 *)
a.rottmann84e63352003-03-24 09:42:16 +00007531 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007532echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7533if test "${ac_cv_func_shl_load+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007542/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7544#define shl_load innocuous_shl_load
7545
drh71eb93e2001-09-28 01:34:43 +00007546/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007547 which can conflict with char shl_load (); below.
7548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7549 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007550
a.rottmann84e63352003-03-24 09:42:16 +00007551#ifdef __STDC__
7552# include <limits.h>
7553#else
7554# include <assert.h>
7555#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007556
7557#undef shl_load
7558
drh71eb93e2001-09-28 01:34:43 +00007559/* Override any gcc2 internal prototype to avoid an error. */
7560#ifdef __cplusplus
7561extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007562{
drh71eb93e2001-09-28 01:34:43 +00007563#endif
7564/* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007567/* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570#if defined (__stub_shl_load) || defined (__stub___shl_load)
7571choke me
7572#else
a.rottmann84e63352003-03-24 09:42:16 +00007573char (*f) () = shl_load;
7574#endif
7575#ifdef __cplusplus
7576}
drh71eb93e2001-09-28 01:34:43 +00007577#endif
7578
a.rottmann84e63352003-03-24 09:42:16 +00007579int
7580main ()
7581{
7582return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007583 ;
7584 return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007589 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007590 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007595 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007596 { ac_try='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007605 (eval $ac_try) 2>&5
7606 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007608 (exit $ac_status); }; }; then
7609 ac_cv_func_shl_load=yes
7610else
7611 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007612sed 's/^/| /' conftest.$ac_ext >&5
7613
drh71eb93e2001-09-28 01:34:43 +00007614ac_cv_func_shl_load=no
7615fi
a.rottmann964dbb12004-02-26 19:47:42 +00007616rm -f conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007618fi
a.rottmann84e63352003-03-24 09:42:16 +00007619echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007620echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7621if test $ac_cv_func_shl_load = yes; then
7622 lt_cv_dlopen="shl_load"
7623else
a.rottmann84e63352003-03-24 09:42:16 +00007624 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007625echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7626if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629 ac_check_lib_save_LIBS=$LIBS
7630LIBS="-ldld $LIBS"
7631cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007632/* confdefs.h. */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007637
7638/* Override any gcc2 internal prototype to avoid an error. */
7639#ifdef __cplusplus
7640extern "C"
7641#endif
7642/* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7644char shl_load ();
7645int
7646main ()
7647{
7648shl_load ();
7649 ;
7650 return 0;
7651}
7652_ACEOF
7653rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007655 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007656 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007661 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007671 (eval $ac_try) 2>&5
7672 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007674 (exit $ac_status); }; }; then
7675 ac_cv_lib_dld_shl_load=yes
7676else
7677 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007678sed 's/^/| /' conftest.$ac_ext >&5
7679
drh71eb93e2001-09-28 01:34:43 +00007680ac_cv_lib_dld_shl_load=no
7681fi
a.rottmann964dbb12004-02-26 19:47:42 +00007682rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007684LIBS=$ac_check_lib_save_LIBS
7685fi
a.rottmann84e63352003-03-24 09:42:16 +00007686echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007687echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7688if test $ac_cv_lib_dld_shl_load = yes; then
7689 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7690else
a.rottmann84e63352003-03-24 09:42:16 +00007691 echo "$as_me:$LINENO: checking for dlopen" >&5
7692echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7693if test "${ac_cv_func_dlopen+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007697/* confdefs.h. */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007702/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7704#define dlopen innocuous_dlopen
7705
a.rottmann84e63352003-03-24 09:42:16 +00007706/* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char dlopen (); below.
7708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007710
a.rottmann84e63352003-03-24 09:42:16 +00007711#ifdef __STDC__
7712# include <limits.h>
7713#else
7714# include <assert.h>
7715#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007716
7717#undef dlopen
7718
a.rottmann84e63352003-03-24 09:42:16 +00007719/* Override any gcc2 internal prototype to avoid an error. */
7720#ifdef __cplusplus
7721extern "C"
7722{
7723#endif
7724/* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7726char dlopen ();
7727/* The GNU C library defines this for functions which it implements
7728 to always fail with ENOSYS. Some functions are actually named
7729 something starting with __ and the normal name is an alias. */
7730#if defined (__stub_dlopen) || defined (__stub___dlopen)
7731choke me
7732#else
7733char (*f) () = dlopen;
7734#endif
7735#ifdef __cplusplus
7736}
7737#endif
7738
7739int
7740main ()
7741{
7742return f != dlopen;
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest.$ac_objext conftest$ac_exeext
7748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007749 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007750 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_func_dlopen=yes
7770else
7771 echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
7774ac_cv_func_dlopen=no
7775fi
a.rottmann964dbb12004-02-26 19:47:42 +00007776rm -f conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007778fi
7779echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7780echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7781if test $ac_cv_func_dlopen = yes; then
7782 lt_cv_dlopen="dlopen"
7783else
7784 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007785echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7786if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 ac_check_lib_save_LIBS=$LIBS
7790LIBS="-ldl $LIBS"
7791cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007797
7798/* Override any gcc2 internal prototype to avoid an error. */
7799#ifdef __cplusplus
7800extern "C"
7801#endif
7802/* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804char dlopen ();
7805int
7806main ()
7807{
7808dlopen ();
7809 ;
7810 return 0;
7811}
7812_ACEOF
7813rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007815 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007816 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007821 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007831 (eval $ac_try) 2>&5
7832 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007834 (exit $ac_status); }; }; then
7835 ac_cv_lib_dl_dlopen=yes
7836else
7837 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007838sed 's/^/| /' conftest.$ac_ext >&5
7839
drh71eb93e2001-09-28 01:34:43 +00007840ac_cv_lib_dl_dlopen=no
7841fi
a.rottmann964dbb12004-02-26 19:47:42 +00007842rm -f conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007844LIBS=$ac_check_lib_save_LIBS
7845fi
a.rottmann84e63352003-03-24 09:42:16 +00007846echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007847echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7848if test $ac_cv_lib_dl_dlopen = yes; then
7849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7850else
a.rottmann84e63352003-03-24 09:42:16 +00007851 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007852echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7853if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 ac_check_lib_save_LIBS=$LIBS
7857LIBS="-lsvld $LIBS"
7858cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007864
7865/* Override any gcc2 internal prototype to avoid an error. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char dlopen ();
7872int
7873main ()
7874{
7875dlopen ();
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007882 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007883 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007888 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007898 (eval $ac_try) 2>&5
7899 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007901 (exit $ac_status); }; }; then
7902 ac_cv_lib_svld_dlopen=yes
7903else
7904 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007905sed 's/^/| /' conftest.$ac_ext >&5
7906
drh71eb93e2001-09-28 01:34:43 +00007907ac_cv_lib_svld_dlopen=no
7908fi
a.rottmann964dbb12004-02-26 19:47:42 +00007909rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007911LIBS=$ac_check_lib_save_LIBS
7912fi
a.rottmann84e63352003-03-24 09:42:16 +00007913echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007914echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7915if test $ac_cv_lib_svld_dlopen = yes; then
7916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007917else
7918 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7919echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7920if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923 ac_check_lib_save_LIBS=$LIBS
7924LIBS="-ldld $LIBS"
7925cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
7931
7932/* Override any gcc2 internal prototype to avoid an error. */
7933#ifdef __cplusplus
7934extern "C"
7935#endif
7936/* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938char dld_link ();
7939int
7940main ()
7941{
7942dld_link ();
7943 ;
7944 return 0;
7945}
7946_ACEOF
7947rm -f conftest.$ac_objext conftest$ac_exeext
7948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007949 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007950 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007956 { ac_try='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_lib_dld_dld_link=yes
7970else
7971 echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007975fi
a.rottmann964dbb12004-02-26 19:47:42 +00007976rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007978LIBS=$ac_check_lib_save_LIBS
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7981echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7982if test $ac_cv_lib_dld_dld_link = yes; then
7983 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7984fi
7985
drh71eb93e2001-09-28 01:34:43 +00007986
7987fi
7988
drh71eb93e2001-09-28 01:34:43 +00007989
7990fi
7991
a.rottmann84e63352003-03-24 09:42:16 +00007992
7993fi
7994
7995
7996fi
7997
7998
drh71eb93e2001-09-28 01:34:43 +00007999fi
8000
8001 ;;
8002 esac
8003
8004 if test "x$lt_cv_dlopen" != xno; then
8005 enable_dlopen=yes
8006 else
8007 enable_dlopen=no
8008 fi
8009
8010 case $lt_cv_dlopen in
8011 dlopen)
8012 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008013 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008014
8015 save_LDFLAGS="$LDFLAGS"
8016 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8017
8018 save_LIBS="$LIBS"
8019 LIBS="$lt_cv_dlopen_libs $LIBS"
8020
a.rottmann84e63352003-03-24 09:42:16 +00008021 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008022echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8023if test "${lt_cv_dlopen_self+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 if test "$cross_compiling" = yes; then :
8027 lt_cv_dlopen_self=cross
8028else
a.rottmann9bc8b932004-02-29 15:18:31 +00008029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008030 lt_status=$lt_dlunknown
8031 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +00008032#line 8032 "configure"
drh71eb93e2001-09-28 01:34:43 +00008033#include "confdefs.h"
8034
8035#if HAVE_DLFCN_H
8036#include <dlfcn.h>
8037#endif
8038
8039#include <stdio.h>
8040
8041#ifdef RTLD_GLOBAL
8042# define LT_DLGLOBAL RTLD_GLOBAL
8043#else
8044# ifdef DL_GLOBAL
8045# define LT_DLGLOBAL DL_GLOBAL
8046# else
8047# define LT_DLGLOBAL 0
8048# endif
8049#endif
8050
8051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8052 find out it does not work in some platform. */
8053#ifndef LT_DLLAZY_OR_NOW
8054# ifdef RTLD_LAZY
8055# define LT_DLLAZY_OR_NOW RTLD_LAZY
8056# else
8057# ifdef DL_LAZY
8058# define LT_DLLAZY_OR_NOW DL_LAZY
8059# else
8060# ifdef RTLD_NOW
8061# define LT_DLLAZY_OR_NOW RTLD_NOW
8062# else
8063# ifdef DL_NOW
8064# define LT_DLLAZY_OR_NOW DL_NOW
8065# else
8066# define LT_DLLAZY_OR_NOW 0
8067# endif
8068# endif
8069# endif
8070# endif
8071#endif
8072
8073#ifdef __cplusplus
8074extern "C" void exit (int);
8075#endif
8076
8077void fnord() { int i=42;}
8078int main ()
8079{
8080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8081 int status = $lt_dlunknown;
8082
8083 if (self)
8084 {
8085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8087 /* dlclose (self); */
8088 }
8089
8090 exit (status);
8091}
8092EOF
a.rottmann84e63352003-03-24 09:42:16 +00008093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008094 (eval $ac_link) 2>&5
8095 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8098 (./conftest; exit; ) 2>/dev/null
8099 lt_status=$?
8100 case x$lt_status in
8101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8103 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8104 esac
8105 else :
8106 # compilation failed
8107 lt_cv_dlopen_self=no
8108 fi
8109fi
8110rm -fr conftest*
8111
a.rottmann84e63352003-03-24 09:42:16 +00008112
drh71eb93e2001-09-28 01:34:43 +00008113fi
a.rottmann84e63352003-03-24 09:42:16 +00008114echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008115echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8116
8117 if test "x$lt_cv_dlopen_self" = xyes; then
8118 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008119 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008120echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8121if test "${lt_cv_dlopen_self_static+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 if test "$cross_compiling" = yes; then :
8125 lt_cv_dlopen_self_static=cross
8126else
a.rottmann9bc8b932004-02-29 15:18:31 +00008127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008128 lt_status=$lt_dlunknown
8129 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +00008130#line 8130 "configure"
drh71eb93e2001-09-28 01:34:43 +00008131#include "confdefs.h"
8132
8133#if HAVE_DLFCN_H
8134#include <dlfcn.h>
8135#endif
8136
8137#include <stdio.h>
8138
8139#ifdef RTLD_GLOBAL
8140# define LT_DLGLOBAL RTLD_GLOBAL
8141#else
8142# ifdef DL_GLOBAL
8143# define LT_DLGLOBAL DL_GLOBAL
8144# else
8145# define LT_DLGLOBAL 0
8146# endif
8147#endif
8148
8149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8150 find out it does not work in some platform. */
8151#ifndef LT_DLLAZY_OR_NOW
8152# ifdef RTLD_LAZY
8153# define LT_DLLAZY_OR_NOW RTLD_LAZY
8154# else
8155# ifdef DL_LAZY
8156# define LT_DLLAZY_OR_NOW DL_LAZY
8157# else
8158# ifdef RTLD_NOW
8159# define LT_DLLAZY_OR_NOW RTLD_NOW
8160# else
8161# ifdef DL_NOW
8162# define LT_DLLAZY_OR_NOW DL_NOW
8163# else
8164# define LT_DLLAZY_OR_NOW 0
8165# endif
8166# endif
8167# endif
8168# endif
8169#endif
8170
8171#ifdef __cplusplus
8172extern "C" void exit (int);
8173#endif
8174
8175void fnord() { int i=42;}
8176int main ()
8177{
8178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8179 int status = $lt_dlunknown;
8180
8181 if (self)
8182 {
8183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8185 /* dlclose (self); */
8186 }
8187
8188 exit (status);
8189}
8190EOF
a.rottmann84e63352003-03-24 09:42:16 +00008191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008192 (eval $ac_link) 2>&5
8193 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8196 (./conftest; exit; ) 2>/dev/null
8197 lt_status=$?
8198 case x$lt_status in
8199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8201 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8202 esac
8203 else :
8204 # compilation failed
8205 lt_cv_dlopen_self_static=no
8206 fi
8207fi
8208rm -fr conftest*
8209
a.rottmann84e63352003-03-24 09:42:16 +00008210
drh71eb93e2001-09-28 01:34:43 +00008211fi
a.rottmann84e63352003-03-24 09:42:16 +00008212echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008213echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8214 fi
8215
8216 CPPFLAGS="$save_CPPFLAGS"
8217 LDFLAGS="$save_LDFLAGS"
8218 LIBS="$save_LIBS"
8219 ;;
8220 esac
8221
8222 case $lt_cv_dlopen_self in
8223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8224 *) enable_dlopen_self=unknown ;;
8225 esac
8226
8227 case $lt_cv_dlopen_self_static in
8228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8229 *) enable_dlopen_self_static=unknown ;;
8230 esac
8231fi
8232
drh71eb93e2001-09-28 01:34:43 +00008233
a.rottmann9bc8b932004-02-29 15:18:31 +00008234# Report which librarie types wil actually be built
8235echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8236echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8237echo "$as_me:$LINENO: result: $can_build_shared" >&5
8238echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008239
a.rottmann9bc8b932004-02-29 15:18:31 +00008240echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8241echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8242test "$can_build_shared" = "no" && enable_shared=no
8243
8244# On AIX, shared libraries and static libraries use the same namespace, and
8245# are all built from PIC.
8246case "$host_os" in
8247aix3*)
8248 test "$enable_shared" = yes && enable_static=no
8249 if test -n "$RANLIB"; then
8250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8251 postinstall_cmds='$RANLIB $lib'
8252 fi
8253 ;;
8254
8255aix4*)
8256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8257 test "$enable_shared" = yes && enable_static=no
8258 fi
8259 ;;
8260 darwin* | rhapsody*)
8261 if test "$GCC" = yes; then
8262 archive_cmds_need_lc=no
8263 case "$host_os" in
8264 rhapsody* | darwin1.[012])
8265 allow_undefined_flag='-undefined suppress'
8266 ;;
8267 *) # Darwin 1.3 on
8268 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8269 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008270 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 case ${MACOSX_DEPLOYMENT_TARGET} in
8272 10.[012])
8273 allow_undefined_flag='-flat_namespace -undefined suppress'
8274 ;;
8275 10.*)
8276 allow_undefined_flag='-undefined dynamic_lookup'
8277 ;;
8278 esac
a.rottmann84e63352003-03-24 09:42:16 +00008279 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 ;;
8281 esac
8282 output_verbose_link_cmd='echo'
8283 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8284 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8286 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}'
8287 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}'
8288 hardcode_direct=no
8289 hardcode_automatic=yes
8290 hardcode_shlibpath_var=unsupported
8291 whole_archive_flag_spec='-all_load $convenience'
8292 link_all_deplibs=yes
8293 else
8294 ld_shlibs=no
8295 fi
a.rottmann84e63352003-03-24 09:42:16 +00008296 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008297esac
8298echo "$as_me:$LINENO: result: $enable_shared" >&5
8299echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008300
a.rottmann9bc8b932004-02-29 15:18:31 +00008301echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8302echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8303# Make sure either enable_shared or enable_static is yes.
8304test "$enable_shared" = yes || enable_static=yes
8305echo "$as_me:$LINENO: result: $enable_static" >&5
8306echo "${ECHO_T}$enable_static" >&6
8307
8308# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008309# libtool distribution, otherwise you forgot to ship ltmain.sh
8310# with your package, and you will get complaints that there are
8311# no rules to generate ltmain.sh.
8312if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008313 # See if we are running on zsh, and set the options which allow our commands through
8314 # without removal of \ escapes.
8315 if test -n "${ZSH_VERSION+set}" ; then
8316 setopt NO_GLOB_SUBST
8317 fi
drh71eb93e2001-09-28 01:34:43 +00008318 # Now quote all the things that may contain metacharacters while being
8319 # careful not to overquote the AC_SUBSTed values. We take copies of the
8320 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8322 SED SHELL STRIP \
8323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8325 deplibs_check_method reload_flag reload_cmds need_locks \
8326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8327 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008329 old_postinstall_cmds old_postuninstall_cmds \
8330 compiler \
8331 CC \
8332 LD \
8333 lt_prog_compiler_wl \
8334 lt_prog_compiler_pic \
8335 lt_prog_compiler_static \
8336 lt_prog_compiler_no_builtin_flag \
8337 export_dynamic_flag_spec \
8338 thread_safe_flag_spec \
8339 whole_archive_flag_spec \
8340 enable_shared_with_static_runtimes \
8341 old_archive_cmds \
8342 old_archive_from_new_cmds \
8343 predep_objects \
8344 postdep_objects \
8345 predeps \
8346 postdeps \
8347 compiler_lib_search_path \
8348 archive_cmds \
8349 archive_expsym_cmds \
8350 postinstall_cmds \
8351 postuninstall_cmds \
8352 old_archive_from_expsyms_cmds \
8353 allow_undefined_flag \
8354 no_undefined_flag \
8355 export_symbols_cmds \
8356 hardcode_libdir_flag_spec \
8357 hardcode_libdir_flag_spec_ld \
8358 hardcode_libdir_separator \
8359 hardcode_automatic \
8360 module_cmds \
8361 module_expsym_cmds \
8362 lt_cv_prog_compiler_c_o \
8363 exclude_expsyms \
8364 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008365
8366 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008367 old_archive_cmds | \
8368 old_archive_from_new_cmds | \
8369 archive_cmds | \
8370 archive_expsym_cmds | \
8371 module_cmds | \
8372 module_expsym_cmds | \
8373 old_archive_from_expsyms_cmds | \
8374 export_symbols_cmds | \
8375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008376 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008377 old_postinstall_cmds | old_postuninstall_cmds | \
8378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008379 # Double-quote double-evaled strings.
8380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8381 ;;
8382 *)
8383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8384 ;;
8385 esac
8386 done
8387
a.rottmann9bc8b932004-02-29 15:18:31 +00008388 case $lt_echo in
8389 *'\$0 --fallback-echo"')
8390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8391 ;;
8392 esac
8393
8394cfgfile="${ofile}T"
8395 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8396 $rm -f "$cfgfile"
8397 { echo "$as_me:$LINENO: creating $ofile" >&5
8398echo "$as_me: creating $ofile" >&6;}
8399
8400 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008401#! $SHELL
8402
a.rottmann9bc8b932004-02-29 15:18:31 +00008403# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008404# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8405# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8406#
a.rottmann9bc8b932004-02-29 15:18:31 +00008407# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8408# Free Software Foundation, Inc.
8409#
8410# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008411# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8412#
8413# This program is free software; you can redistribute it and/or modify
8414# it under the terms of the GNU General Public License as published by
8415# the Free Software Foundation; either version 2 of the License, or
8416# (at your option) any later version.
8417#
8418# This program is distributed in the hope that it will be useful, but
8419# WITHOUT ANY WARRANTY; without even the implied warranty of
8420# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8421# General Public License for more details.
8422#
8423# You should have received a copy of the GNU General Public License
8424# along with this program; if not, write to the Free Software
8425# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8426#
8427# As a special exception to the GNU General Public License, if you
8428# distribute this file as part of a program that contains a
8429# configuration script generated by Autoconf, you may include it under
8430# the same distribution terms that you use for the rest of that program.
8431
a.rottmann9bc8b932004-02-29 15:18:31 +00008432# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008433SED=$lt_SED
8434
drh71eb93e2001-09-28 01:34:43 +00008435# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008436Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008437
8438# The HP-UX ksh and POSIX shell print the target directory to stdout
8439# if CDPATH is set.
8440if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8441
a.rottmann9bc8b932004-02-29 15:18:31 +00008442# The names of the tagged configurations supported by this script.
8443available_tags=
8444
drh71eb93e2001-09-28 01:34:43 +00008445# ### BEGIN LIBTOOL CONFIG
8446
8447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8448
8449# Shell to use when invoking shell scripts.
8450SHELL=$lt_SHELL
8451
8452# Whether or not to build shared libraries.
8453build_libtool_libs=$enable_shared
8454
8455# Whether or not to build static libraries.
8456build_old_libs=$enable_static
8457
8458# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008459build_libtool_need_lc=$archive_cmds_need_lc
8460
8461# Whether or not to disallow shared libs when runtime libs are static
8462allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008463
8464# Whether or not to optimize for fast installation.
8465fast_install=$enable_fast_install
8466
8467# The host system.
8468host_alias=$host_alias
8469host=$host
8470
8471# An echo program that does not interpret backslashes.
8472echo=$lt_echo
8473
8474# The archiver.
8475AR=$lt_AR
8476AR_FLAGS=$lt_AR_FLAGS
8477
a.rottmann9bc8b932004-02-29 15:18:31 +00008478# A C compiler.
8479LTCC=$lt_LTCC
8480
8481# A language-specific compiler.
8482CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008483
8484# Is the compiler the GNU C compiler?
8485with_gcc=$GCC
8486
a.rottmann9bc8b932004-02-29 15:18:31 +00008487# An ERE matcher.
8488EGREP=$lt_EGREP
8489
drh71eb93e2001-09-28 01:34:43 +00008490# The linker used to build libraries.
8491LD=$lt_LD
8492
8493# Whether we need hard or soft links.
8494LN_S=$lt_LN_S
8495
8496# A BSD-compatible nm program.
8497NM=$lt_NM
8498
8499# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008500STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008501
8502# Used to examine libraries when file_magic_cmd begins "file"
8503MAGIC_CMD=$MAGIC_CMD
8504
8505# Used on cygwin: DLL creation program.
8506DLLTOOL="$DLLTOOL"
8507
8508# Used on cygwin: object dumper.
8509OBJDUMP="$OBJDUMP"
8510
8511# Used on cygwin: assembler.
8512AS="$AS"
8513
8514# The name of the directory that contains temporary libtool files.
8515objdir=$objdir
8516
8517# How to create reloadable object files.
8518reload_flag=$lt_reload_flag
8519reload_cmds=$lt_reload_cmds
8520
8521# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008522wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008523
8524# Object file suffix (normally "o").
8525objext="$ac_objext"
8526
8527# Old archive suffix (normally "a").
8528libext="$libext"
8529
a.rottmann9bc8b932004-02-29 15:18:31 +00008530# Shared library suffix (normally ".so").
8531shrext='$shrext'
8532
drh71eb93e2001-09-28 01:34:43 +00008533# Executable file suffix (normally "").
8534exeext="$exeext"
8535
8536# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008537pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008538pic_mode=$pic_mode
8539
a.rottmann9bc8b932004-02-29 15:18:31 +00008540# What is the maximum length of a command?
8541max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008542
a.rottmann9bc8b932004-02-29 15:18:31 +00008543# Does compiler simultaneously support -c and -o options?
8544compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008545
8546# Must we lock files when doing compilation ?
8547need_locks=$lt_need_locks
8548
8549# Do we need the lib prefix for modules?
8550need_lib_prefix=$need_lib_prefix
8551
8552# Do we need a version for libraries?
8553need_version=$need_version
8554
8555# Whether dlopen is supported.
8556dlopen_support=$enable_dlopen
8557
8558# Whether dlopen of programs is supported.
8559dlopen_self=$enable_dlopen_self
8560
8561# Whether dlopen of statically linked programs is supported.
8562dlopen_self_static=$enable_dlopen_self_static
8563
8564# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008565link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008566
8567# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008568no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008569
8570# Compiler flag to allow reflexive dlopens.
8571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8572
8573# Compiler flag to generate shared objects directly from archives.
8574whole_archive_flag_spec=$lt_whole_archive_flag_spec
8575
8576# Compiler flag to generate thread-safe objects.
8577thread_safe_flag_spec=$lt_thread_safe_flag_spec
8578
8579# Library versioning type.
8580version_type=$version_type
8581
8582# Format of library name prefix.
8583libname_spec=$lt_libname_spec
8584
8585# List of archive names. First name is the real one, the rest are links.
8586# The last name is the one that the linker finds with -lNAME.
8587library_names_spec=$lt_library_names_spec
8588
8589# The coded name of the library, if different from the real name.
8590soname_spec=$lt_soname_spec
8591
8592# Commands used to build and install an old-style archive.
8593RANLIB=$lt_RANLIB
8594old_archive_cmds=$lt_old_archive_cmds
8595old_postinstall_cmds=$lt_old_postinstall_cmds
8596old_postuninstall_cmds=$lt_old_postuninstall_cmds
8597
8598# Create an old-style archive from a shared archive.
8599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8600
8601# Create a temporary old-style archive to link instead of a shared archive.
8602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8603
8604# Commands used to build and install a shared archive.
8605archive_cmds=$lt_archive_cmds
8606archive_expsym_cmds=$lt_archive_expsym_cmds
8607postinstall_cmds=$lt_postinstall_cmds
8608postuninstall_cmds=$lt_postuninstall_cmds
8609
a.rottmann9bc8b932004-02-29 15:18:31 +00008610# Commands used to build a loadable module (assumed same as above if empty)
8611module_cmds=$lt_module_cmds
8612module_expsym_cmds=$lt_module_expsym_cmds
8613
drh71eb93e2001-09-28 01:34:43 +00008614# Commands to strip libraries.
8615old_striplib=$lt_old_striplib
8616striplib=$lt_striplib
8617
a.rottmann9bc8b932004-02-29 15:18:31 +00008618# Dependencies to place before the objects being linked to create a
8619# shared library.
8620predep_objects=$lt_predep_objects
8621
8622# Dependencies to place after the objects being linked to create a
8623# shared library.
8624postdep_objects=$lt_postdep_objects
8625
8626# Dependencies to place before the objects being linked to create a
8627# shared library.
8628predeps=$lt_predeps
8629
8630# Dependencies to place after the objects being linked to create a
8631# shared library.
8632postdeps=$lt_postdeps
8633
8634# The library search path used internally by the compiler when linking
8635# a shared library.
8636compiler_lib_search_path=$lt_compiler_lib_search_path
8637
drh71eb93e2001-09-28 01:34:43 +00008638# Method to check whether dependent libraries are shared objects.
8639deplibs_check_method=$lt_deplibs_check_method
8640
8641# Command to use when deplibs_check_method == file_magic.
8642file_magic_cmd=$lt_file_magic_cmd
8643
8644# Flag that allows shared libraries with undefined symbols to be built.
8645allow_undefined_flag=$lt_allow_undefined_flag
8646
8647# Flag that forces no undefined symbols.
8648no_undefined_flag=$lt_no_undefined_flag
8649
8650# Commands used to finish a libtool library installation in a directory.
8651finish_cmds=$lt_finish_cmds
8652
8653# Same as above, but a single script fragment to be evaled but not shown.
8654finish_eval=$lt_finish_eval
8655
8656# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008657global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008658
8659# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008660global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008661
8662# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008663global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008664
8665# This is the shared library runtime path variable.
8666runpath_var=$runpath_var
8667
8668# This is the shared library path variable.
8669shlibpath_var=$shlibpath_var
8670
8671# Is shlibpath searched before the hard-coded library search path?
8672shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8673
8674# How to hardcode a shared library path into an executable.
8675hardcode_action=$hardcode_action
8676
8677# Whether we should hardcode library paths into libraries.
8678hardcode_into_libs=$hardcode_into_libs
8679
8680# Flag to hardcode \$libdir into a binary during linking.
8681# This must work even if \$libdir does not exist.
8682hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8683
a.rottmann9bc8b932004-02-29 15:18:31 +00008684# If ld is used when linking, flag to hardcode \$libdir into
8685# a binary during linking. This must work even if \$libdir does
8686# not exist.
8687hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8688
drh71eb93e2001-09-28 01:34:43 +00008689# Whether we need a single -rpath flag with a separated argument.
8690hardcode_libdir_separator=$lt_hardcode_libdir_separator
8691
a.rottmann9bc8b932004-02-29 15:18:31 +00008692# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008693# resulting binary.
8694hardcode_direct=$hardcode_direct
8695
8696# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8697# resulting binary.
8698hardcode_minus_L=$hardcode_minus_L
8699
8700# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8701# the resulting binary.
8702hardcode_shlibpath_var=$hardcode_shlibpath_var
8703
a.rottmann9bc8b932004-02-29 15:18:31 +00008704# Set to yes if building a shared library automatically hardcodes DIR into the library
8705# and all subsequent libraries and executables linked against it.
8706hardcode_automatic=$hardcode_automatic
8707
drh71eb93e2001-09-28 01:34:43 +00008708# Variables whose values should be saved in libtool wrapper scripts and
8709# restored at relink time.
8710variables_saved_for_relink="$variables_saved_for_relink"
8711
8712# Whether libtool must link a program against all its dependency libraries.
8713link_all_deplibs=$link_all_deplibs
8714
8715# Compile-time system search path for libraries
8716sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8717
8718# Run-time system search path for libraries
8719sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8720
8721# Fix the shell variable \$srcfile for the compiler.
8722fix_srcfile_path="$fix_srcfile_path"
8723
8724# Set to yes if exported symbols are required.
8725always_export_symbols=$always_export_symbols
8726
8727# The commands to list exported symbols.
8728export_symbols_cmds=$lt_export_symbols_cmds
8729
8730# The commands to extract the exported symbol list from a shared archive.
8731extract_expsyms_cmds=$lt_extract_expsyms_cmds
8732
8733# Symbols that should not be listed in the preloaded symbols.
8734exclude_expsyms=$lt_exclude_expsyms
8735
8736# Symbols that must always be exported.
8737include_expsyms=$lt_include_expsyms
8738
8739# ### END LIBTOOL CONFIG
8740
8741__EOF__
8742
a.rottmann9bc8b932004-02-29 15:18:31 +00008743
drh71eb93e2001-09-28 01:34:43 +00008744 case $host_os in
8745 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008746 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008747
8748# AIX sometimes has problems with the GCC collect2 program. For some
8749# reason, if we set the COLLECT_NAMES environment variable, the problems
8750# vanish in a puff of smoke.
8751if test "X${COLLECT_NAMES+set}" != Xset; then
8752 COLLECT_NAMES=
8753 export COLLECT_NAMES
8754fi
8755EOF
8756 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008757 esac
drh71eb93e2001-09-28 01:34:43 +00008758
drh71eb93e2001-09-28 01:34:43 +00008759 # We use sed instead of cat because bash on DJGPP gets confused if
8760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8761 # text mode, it properly converts lines to CR/LF. This bash problem
8762 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008763 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008764
a.rottmann9bc8b932004-02-29 15:18:31 +00008765 mv -f "$cfgfile" "$ofile" || \
8766 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008767 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008768
8769else
8770 # If there is no Makefile yet, we rely on a make rule to execute
8771 # `config.status --recheck' to rerun these tests and create the
8772 # libtool script then.
8773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8774 if test -f "$ltmain_in"; then
8775 test -f Makefile && make "$ltmain"
8776 fi
drh71eb93e2001-09-28 01:34:43 +00008777fi
8778
drh71eb93e2001-09-28 01:34:43 +00008779
a.rottmann9bc8b932004-02-29 15:18:31 +00008780ac_ext=c
8781ac_cpp='$CPP $CPPFLAGS'
8782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784ac_compiler_gnu=$ac_cv_c_compiler_gnu
8785
8786CC="$lt_save_CC"
8787
8788
8789# Check whether --with-tags or --without-tags was given.
8790if test "${with_tags+set}" = set; then
8791 withval="$with_tags"
8792 tagnames="$withval"
8793fi;
8794
8795if test -f "$ltmain" && test -n "$tagnames"; then
8796 if test ! -f "${ofile}"; then
8797 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8798echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8799 fi
8800
8801 if test -z "$LTCC"; then
8802 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8803 if test -z "$LTCC"; then
8804 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8805echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8806 else
8807 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8808echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8809 fi
8810 fi
8811
8812 # Extract list of available tagged configurations in $ofile.
8813 # Note that this assumes the entire list is on one line.
8814 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8815
8816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8817 for tagname in $tagnames; do
8818 IFS="$lt_save_ifs"
8819 # Check whether tagname contains only valid characters
8820 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8821 "") ;;
8822 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8823echo "$as_me: error: invalid tag name: $tagname" >&2;}
8824 { (exit 1); exit 1; }; }
8825 ;;
8826 esac
8827
8828 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8829 then
8830 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8831echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8832 { (exit 1); exit 1; }; }
8833 fi
8834
8835 # Update the list of available tags.
8836 if test -n "$tagname"; then
8837 echo appending configuration tag \"$tagname\" to $ofile
8838
8839 case $tagname in
8840 CXX)
8841 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8842 ac_ext=cc
8843ac_cpp='$CXXCPP $CPPFLAGS'
8844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8847
8848
8849
8850
8851archive_cmds_need_lc_CXX=no
8852allow_undefined_flag_CXX=
8853always_export_symbols_CXX=no
8854archive_expsym_cmds_CXX=
8855export_dynamic_flag_spec_CXX=
8856hardcode_direct_CXX=no
8857hardcode_libdir_flag_spec_CXX=
8858hardcode_libdir_flag_spec_ld_CXX=
8859hardcode_libdir_separator_CXX=
8860hardcode_minus_L_CXX=no
8861hardcode_automatic_CXX=no
8862module_cmds_CXX=
8863module_expsym_cmds_CXX=
8864link_all_deplibs_CXX=unknown
8865old_archive_cmds_CXX=$old_archive_cmds
8866no_undefined_flag_CXX=
8867whole_archive_flag_spec_CXX=
8868enable_shared_with_static_runtimes_CXX=no
8869
8870# Dependencies to place before and after the object being linked:
8871predep_objects_CXX=
8872postdep_objects_CXX=
8873predeps_CXX=
8874postdeps_CXX=
8875compiler_lib_search_path_CXX=
8876
8877# Source file extension for C++ test sources.
8878ac_ext=cc
8879
8880# Object file extension for compiled C++ test sources.
8881objext=o
8882objext_CXX=$objext
8883
8884# Code to be used in simple compile tests
8885lt_simple_compile_test_code="int some_variable = 0;\n"
8886
8887# Code to be used in simple link tests
8888lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8889
8890# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8891
8892# If no C compiler was specified, use CC.
8893LTCC=${LTCC-"$CC"}
8894
8895# Allow CC to be a program name with arguments.
8896compiler=$CC
8897
8898
8899# Allow CC to be a program name with arguments.
8900lt_save_CC=$CC
8901lt_save_LD=$LD
8902lt_save_GCC=$GCC
8903GCC=$GXX
8904lt_save_with_gnu_ld=$with_gnu_ld
8905lt_save_path_LD=$lt_cv_path_LD
8906if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8907 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8908else
8909 unset lt_cv_prog_gnu_ld
8910fi
8911if test -n "${lt_cv_path_LDCXX+set}"; then
8912 lt_cv_path_LD=$lt_cv_path_LDCXX
8913else
8914 unset lt_cv_path_LD
8915fi
8916test -z "${LDCXX+set}" || LD=$LDCXX
8917CC=${CXX-"c++"}
8918compiler=$CC
8919compiler_CXX=$CC
8920cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8921
8922# We don't want -fno-exception wen compiling C++ code, so set the
8923# no_builtin_flag separately
8924if test "$GXX" = yes; then
8925 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8926else
8927 lt_prog_compiler_no_builtin_flag_CXX=
8928fi
8929
8930if test "$GXX" = yes; then
8931 # Set up default GNU C++ configuration
8932
8933
8934# Check whether --with-gnu-ld or --without-gnu-ld was given.
8935if test "${with_gnu_ld+set}" = set; then
8936 withval="$with_gnu_ld"
8937 test "$withval" = no || with_gnu_ld=yes
8938else
8939 with_gnu_ld=no
8940fi;
8941ac_prog=ld
8942if test "$GCC" = yes; then
8943 # Check if gcc -print-prog-name=ld gives a path.
8944 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8945echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8946 case $host in
8947 *-*-mingw*)
8948 # gcc leaves a trailing carriage return which upsets mingw
8949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8950 *)
8951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8952 esac
8953 case $ac_prog in
8954 # Accept absolute paths.
8955 [\\/]* | ?:[\\/]*)
8956 re_direlt='/[^/][^/]*/\.\./'
8957 # Canonicalize the pathname of ld
8958 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8960 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8961 done
8962 test -z "$LD" && LD="$ac_prog"
8963 ;;
8964 "")
8965 # If it fails, then pretend we aren't using GCC.
8966 ac_prog=ld
8967 ;;
8968 *)
8969 # If it is relative, then search for the first ld in PATH.
8970 with_gnu_ld=unknown
8971 ;;
8972 esac
8973elif test "$with_gnu_ld" = yes; then
8974 echo "$as_me:$LINENO: checking for GNU ld" >&5
8975echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8976else
8977 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8978echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8979fi
8980if test "${lt_cv_path_LD+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983 if test -z "$LD"; then
8984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8985 for ac_dir in $PATH; do
8986 IFS="$lt_save_ifs"
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8989 lt_cv_path_LD="$ac_dir/$ac_prog"
8990 # Check to see if the program is GNU ld. I'd rather use --version,
8991 # but apparently some GNU ld's only accept -v.
8992 # Break only if it was the GNU/non-GNU ld that we prefer.
8993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8994 *GNU* | *'with BFD'*)
8995 test "$with_gnu_ld" != no && break
8996 ;;
8997 *)
8998 test "$with_gnu_ld" != yes && break
8999 ;;
9000 esac
9001 fi
9002 done
9003 IFS="$lt_save_ifs"
9004else
9005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9006fi
9007fi
9008
9009LD="$lt_cv_path_LD"
9010if test -n "$LD"; then
9011 echo "$as_me:$LINENO: result: $LD" >&5
9012echo "${ECHO_T}$LD" >&6
9013else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016fi
9017test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9018echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9019 { (exit 1); exit 1; }; }
9020echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9021echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9022if test "${lt_cv_prog_gnu_ld+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9026case `$LD -v 2>&1 </dev/null` in
9027*GNU* | *'with BFD'*)
9028 lt_cv_prog_gnu_ld=yes
9029 ;;
9030*)
9031 lt_cv_prog_gnu_ld=no
9032 ;;
9033esac
9034fi
9035echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9036echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9037with_gnu_ld=$lt_cv_prog_gnu_ld
9038
9039
9040
9041 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9042 # archiving commands below assume that GNU ld is being used.
9043 if test "$with_gnu_ld" = yes; then
9044 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 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'
9046
9047 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9049
9050 # If archive_cmds runs LD, not CC, wlarc should be empty
9051 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9052 # investigate it a little bit more. (MM)
9053 wlarc='${wl}'
9054
9055 # ancient GNU ld didn't support --whole-archive et. al.
9056 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9057 grep 'no-whole-archive' > /dev/null; then
9058 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9059 else
9060 whole_archive_flag_spec_CXX=
9061 fi
9062 else
9063 with_gnu_ld=no
9064 wlarc=
9065
9066 # A generic and very simple default shared library creation
9067 # command for GNU C++ for the case where it uses the native
9068 # linker, instead of GNU ld. If possible, this setting should
9069 # overridden to take advantage of the native linker features on
9070 # the platform it is being used on.
9071 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9072 fi
9073
9074 # Commands to make compiler produce verbose output that lists
9075 # what "hidden" libraries, object files and flags are used when
9076 # linking a shared library.
9077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9078
9079else
9080 GXX=no
9081 with_gnu_ld=no
9082 wlarc=
9083fi
9084
9085# PORTME: fill in a description of your system's C++ link characteristics
9086echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9087echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9088ld_shlibs_CXX=yes
9089case $host_os in
9090 aix3*)
9091 # FIXME: insert proper C++ library support
9092 ld_shlibs_CXX=no
9093 ;;
9094 aix4* | aix5*)
9095 if test "$host_cpu" = ia64; then
9096 # On IA64, the linker does run time linking by default, so we don't
9097 # have to do anything special.
9098 aix_use_runtimelinking=no
9099 exp_sym_flag='-Bexport'
9100 no_entry_flag=""
9101 else
9102 aix_use_runtimelinking=no
9103
9104 # Test if we are trying to use run time linking or normal
9105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9106 # need to do runtime linking.
9107 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9108 for ld_flag in $LDFLAGS; do
9109 case $ld_flag in
9110 *-brtl*)
9111 aix_use_runtimelinking=yes
9112 break
9113 ;;
9114 esac
9115 done
9116 esac
9117
9118 exp_sym_flag='-bexport'
9119 no_entry_flag='-bnoentry'
9120 fi
9121
9122 # When large executables or shared objects are built, AIX ld can
9123 # have problems creating the table of contents. If linking a library
9124 # or program results in "error TOC overflow" add -mminimal-toc to
9125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9127
9128 archive_cmds_CXX=''
9129 hardcode_direct_CXX=yes
9130 hardcode_libdir_separator_CXX=':'
9131 link_all_deplibs_CXX=yes
9132
9133 if test "$GXX" = yes; then
9134 case $host_os in aix4.012|aix4.012.*)
9135 # We only want to do this on AIX 4.2 and lower, the check
9136 # below for broken collect2 doesn't work under 4.3+
9137 collect2name=`${CC} -print-prog-name=collect2`
9138 if test -f "$collect2name" && \
9139 strings "$collect2name" | grep resolve_lib_name >/dev/null
9140 then
9141 # We have reworked collect2
9142 hardcode_direct_CXX=yes
9143 else
9144 # We have old collect2
9145 hardcode_direct_CXX=unsupported
9146 # It fails to find uninstalled libraries when the uninstalled
9147 # path is not listed in the libpath. Setting hardcode_minus_L
9148 # to unsupported forces relinking
9149 hardcode_minus_L_CXX=yes
9150 hardcode_libdir_flag_spec_CXX='-L$libdir'
9151 hardcode_libdir_separator_CXX=
9152 fi
9153 esac
9154 shared_flag='-shared'
9155 else
9156 # not using gcc
9157 if test "$host_cpu" = ia64; then
9158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9159 # chokes on -Wl,-G. The following line is correct:
9160 shared_flag='-G'
9161 else
9162 if test "$aix_use_runtimelinking" = yes; then
9163 shared_flag='${wl}-G'
9164 else
9165 shared_flag='${wl}-bM:SRE'
9166 fi
9167 fi
9168 fi
9169
9170 # It seems that -bexpall does not export symbols beginning with
9171 # underscore (_), so it is better to generate a list of symbols to export.
9172 always_export_symbols_CXX=yes
9173 if test "$aix_use_runtimelinking" = yes; then
9174 # Warning - without using the other runtime loading flags (-brtl),
9175 # -berok will link without error, but may produce a broken library.
9176 allow_undefined_flag_CXX='-berok'
9177 # Determine the default libpath from the value encoded in an empty executable.
9178 cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h. */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h. */
9184
9185int
9186main ()
9187{
9188
9189 ;
9190 return 0;
9191}
9192_ACEOF
9193rm -f conftest.$ac_objext conftest$ac_exeext
9194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215
9216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9217}'`
9218# Check for a 64-bit object if we didn't find anything.
9219if 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; }
9220}'`; fi
9221else
9222 echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
9225fi
9226rm -f conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229
9230 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9231
9232 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"
9233 else
9234 if test "$host_cpu" = ia64; then
9235 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9236 allow_undefined_flag_CXX="-z nodefs"
9237 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"
9238 else
9239 # Determine the default libpath from the value encoded in an empty executable.
9240 cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
9246
9247int
9248main ()
9249{
9250
9251 ;
9252 return 0;
9253}
9254_ACEOF
9255rm -f conftest.$ac_objext conftest$ac_exeext
9256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009264 { ac_try='test -z "$ac_cxx_werror_flag"
9265 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277
9278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9279}'`
9280# Check for a 64-bit object if we didn't find anything.
9281if 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; }
9282}'`; fi
9283else
9284 echo "$as_me: failed program was:" >&5
9285sed 's/^/| /' conftest.$ac_ext >&5
9286
9287fi
9288rm -f conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9291
9292 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9293 # Warning - without using the other run time loading flags,
9294 # -berok will link without error, but may produce a broken library.
9295 no_undefined_flag_CXX=' ${wl}-bernotok'
9296 allow_undefined_flag_CXX=' ${wl}-berok'
9297 # -bexpall does not export symbols beginning with underscore (_)
9298 always_export_symbols_CXX=yes
9299 # Exported symbols can be pulled into shared objects from archives
9300 whole_archive_flag_spec_CXX=' '
9301 archive_cmds_need_lc_CXX=yes
9302 # This is similar to how AIX traditionally builds it's shared libraries.
9303 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'
9304 fi
9305 fi
9306 ;;
9307 chorus*)
9308 case $cc_basename in
9309 *)
9310 # FIXME: insert proper C++ library support
9311 ld_shlibs_CXX=no
9312 ;;
9313 esac
9314 ;;
9315
9316 cygwin* | mingw* | pw32*)
9317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9318 # as there is no search path for DLLs.
9319 hardcode_libdir_flag_spec_CXX='-L$libdir'
9320 allow_undefined_flag_CXX=unsupported
9321 always_export_symbols_CXX=no
9322 enable_shared_with_static_runtimes_CXX=yes
9323
9324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9325 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'
9326 # If the export-symbols file already is a .def file (1st line
9327 # is EXPORTS), use it as is; otherwise, prepend...
9328 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9329 cp $export_symbols $output_objdir/$soname.def;
9330 else
9331 echo EXPORTS > $output_objdir/$soname.def;
9332 cat $export_symbols >> $output_objdir/$soname.def;
9333 fi~
9334 $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'
9335 else
9336 ld_shlibs_CXX=no
9337 fi
9338 ;;
9339
9340 darwin* | rhapsody*)
9341 if test "$GXX" = yes; then
9342 archive_cmds_need_lc_CXX=no
9343 case "$host_os" in
9344 rhapsody* | darwin1.[012])
9345 allow_undefined_flag_CXX='-undefined suppress'
9346 ;;
9347 *) # Darwin 1.3 on
9348 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9349 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9350 else
9351 case ${MACOSX_DEPLOYMENT_TARGET} in
9352 10.[012])
9353 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9354 ;;
9355 10.*)
9356 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9357 ;;
9358 esac
9359 fi
9360 ;;
9361 esac
9362 lt_int_apple_cc_single_mod=no
9363 output_verbose_link_cmd='echo'
9364 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9365 lt_int_apple_cc_single_mod=yes
9366 fi
9367 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9368 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9369 else
9370 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'
9371 fi
9372 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9373
9374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9375 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9376 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}'
9377 else
9378 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}'
9379 fi
9380 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}'
9381 hardcode_direct_CXX=no
9382 hardcode_automatic_CXX=yes
9383 hardcode_shlibpath_var_CXX=unsupported
9384 whole_archive_flag_spec_CXX='-all_load $convenience'
9385 link_all_deplibs_CXX=yes
9386 else
9387 ld_shlibs_CXX=no
9388 fi
9389 ;;
9390
9391 dgux*)
9392 case $cc_basename in
9393 ec++)
9394 # FIXME: insert proper C++ library support
9395 ld_shlibs_CXX=no
9396 ;;
9397 ghcx)
9398 # Green Hills C++ Compiler
9399 # FIXME: insert proper C++ library support
9400 ld_shlibs_CXX=no
9401 ;;
9402 *)
9403 # FIXME: insert proper C++ library support
9404 ld_shlibs_CXX=no
9405 ;;
9406 esac
9407 ;;
9408 freebsd12*)
9409 # C++ shared libraries reported to be fairly broken before switch to ELF
9410 ld_shlibs_CXX=no
9411 ;;
9412 freebsd-elf*)
9413 archive_cmds_need_lc_CXX=no
9414 ;;
9415 freebsd* | kfreebsd*-gnu)
9416 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9417 # conventions
9418 ld_shlibs_CXX=yes
9419 ;;
9420 gnu*)
9421 ;;
9422 hpux9*)
9423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9424 hardcode_libdir_separator_CXX=:
9425 export_dynamic_flag_spec_CXX='${wl}-E'
9426 hardcode_direct_CXX=yes
9427 hardcode_minus_L_CXX=yes # Not in the search PATH,
9428 # but as the default
9429 # location of the library.
9430
9431 case $cc_basename in
9432 CC)
9433 # FIXME: insert proper C++ library support
9434 ld_shlibs_CXX=no
9435 ;;
9436 aCC)
9437 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'
9438 # Commands to make compiler produce verbose output that lists
9439 # what "hidden" libraries, object files and flags are used when
9440 # linking a shared library.
9441 #
9442 # There doesn't appear to be a way to prevent this compiler from
9443 # explicitly linking system object files so we need to strip them
9444 # from the output so that they don't get included in the library
9445 # dependencies.
9446 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'
9447 ;;
9448 *)
9449 if test "$GXX" = yes; then
9450 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'
9451 else
9452 # FIXME: insert proper C++ library support
9453 ld_shlibs_CXX=no
9454 fi
9455 ;;
9456 esac
9457 ;;
9458 hpux10*|hpux11*)
9459 if test $with_gnu_ld = no; then
9460 case "$host_cpu" in
9461 hppa*64*)
9462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9463 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9464 hardcode_libdir_separator_CXX=:
9465 ;;
9466 ia64*)
9467 hardcode_libdir_flag_spec_CXX='-L$libdir'
9468 ;;
9469 *)
9470 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator_CXX=:
9472 export_dynamic_flag_spec_CXX='${wl}-E'
9473 ;;
9474 esac
9475 fi
9476 case "$host_cpu" in
9477 hppa*64*)
9478 hardcode_direct_CXX=no
9479 hardcode_shlibpath_var_CXX=no
9480 ;;
9481 ia64*)
9482 hardcode_direct_CXX=no
9483 hardcode_shlibpath_var_CXX=no
9484 hardcode_minus_L_CXX=yes # Not in the search PATH,
9485 # but as the default
9486 # location of the library.
9487 ;;
9488 *)
9489 hardcode_direct_CXX=yes
9490 hardcode_minus_L_CXX=yes # Not in the search PATH,
9491 # but as the default
9492 # location of the library.
9493 ;;
9494 esac
9495
9496 case $cc_basename in
9497 CC)
9498 # FIXME: insert proper C++ library support
9499 ld_shlibs_CXX=no
9500 ;;
9501 aCC)
9502 case "$host_cpu" in
9503 hppa*64*|ia64*)
9504 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9505 ;;
9506 *)
9507 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9508 ;;
9509 esac
9510 # Commands to make compiler produce verbose output that lists
9511 # what "hidden" libraries, object files and flags are used when
9512 # linking a shared library.
9513 #
9514 # There doesn't appear to be a way to prevent this compiler from
9515 # explicitly linking system object files so we need to strip them
9516 # from the output so that they don't get included in the library
9517 # dependencies.
9518 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'
9519 ;;
9520 *)
9521 if test "$GXX" = yes; then
9522 if test $with_gnu_ld = no; then
9523 case "$host_cpu" in
9524 ia64*|hppa*64*)
9525 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9526 ;;
9527 *)
9528 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'
9529 ;;
9530 esac
9531 fi
9532 else
9533 # FIXME: insert proper C++ library support
9534 ld_shlibs_CXX=no
9535 fi
9536 ;;
9537 esac
9538 ;;
9539 irix5* | irix6*)
9540 case $cc_basename in
9541 CC)
9542 # SGI C++
9543 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'
9544
9545 # Archives containing C++ object files must be created using
9546 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9547 # necessary to make sure instantiated templates are included
9548 # in the archive.
9549 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9550 ;;
9551 *)
9552 if test "$GXX" = yes; then
9553 if test "$with_gnu_ld" = no; then
9554 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'
9555 else
9556 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'
9557 fi
9558 fi
9559 link_all_deplibs_CXX=yes
9560 ;;
9561 esac
9562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9563 hardcode_libdir_separator_CXX=:
9564 ;;
9565 linux*)
9566 case $cc_basename in
9567 KCC)
9568 # Kuck and Associates, Inc. (KAI) C++ Compiler
9569
9570 # KCC will only create a shared library if the output file
9571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9572 # to its proper name (with version) after linking.
9573 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'
9574 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'
9575 # Commands to make compiler produce verbose output that lists
9576 # what "hidden" libraries, object files and flags are used when
9577 # linking a shared library.
9578 #
9579 # There doesn't appear to be a way to prevent this compiler from
9580 # explicitly linking system object files so we need to strip them
9581 # from the output so that they don't get included in the library
9582 # dependencies.
9583 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'
9584
9585 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9586 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9587
9588 # Archives containing C++ object files must be created using
9589 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9590 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9591 ;;
9592 icpc)
9593 # Intel C++
9594 with_gnu_ld=yes
9595 archive_cmds_need_lc_CXX=no
9596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 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'
9598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9600 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9601 ;;
9602 cxx)
9603 # Compaq C++
9604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9605 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'
9606
9607 runpath_var=LD_RUN_PATH
9608 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9609 hardcode_libdir_separator_CXX=:
9610
9611 # Commands to make compiler produce verbose output that lists
9612 # what "hidden" libraries, object files and flags are used when
9613 # linking a shared library.
9614 #
9615 # There doesn't appear to be a way to prevent this compiler from
9616 # explicitly linking system object files so we need to strip them
9617 # from the output so that they don't get included in the library
9618 # dependencies.
9619 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'
9620 ;;
9621 esac
9622 ;;
9623 lynxos*)
9624 # FIXME: insert proper C++ library support
9625 ld_shlibs_CXX=no
9626 ;;
9627 m88k*)
9628 # FIXME: insert proper C++ library support
9629 ld_shlibs_CXX=no
9630 ;;
9631 mvs*)
9632 case $cc_basename in
9633 cxx)
9634 # FIXME: insert proper C++ library support
9635 ld_shlibs_CXX=no
9636 ;;
9637 *)
9638 # FIXME: insert proper C++ library support
9639 ld_shlibs_CXX=no
9640 ;;
9641 esac
9642 ;;
9643 netbsd* | knetbsd*-gnu)
9644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9645 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9646 wlarc=
9647 hardcode_libdir_flag_spec_CXX='-R$libdir'
9648 hardcode_direct_CXX=yes
9649 hardcode_shlibpath_var_CXX=no
9650 fi
9651 # Workaround some broken pre-1.5 toolchains
9652 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9653 ;;
9654 osf3*)
9655 case $cc_basename in
9656 KCC)
9657 # Kuck and Associates, Inc. (KAI) C++ Compiler
9658
9659 # KCC will only create a shared library if the output file
9660 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9661 # to its proper name (with version) after linking.
9662 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'
9663
9664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9665 hardcode_libdir_separator_CXX=:
9666
9667 # Archives containing C++ object files must be created using
9668 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9669 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9670
9671 ;;
9672 RCC)
9673 # Rational C++ 2.4.1
9674 # FIXME: insert proper C++ library support
9675 ld_shlibs_CXX=no
9676 ;;
9677 cxx)
9678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9679 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'
9680
9681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9682 hardcode_libdir_separator_CXX=:
9683
9684 # Commands to make compiler produce verbose output that lists
9685 # what "hidden" libraries, object files and flags are used when
9686 # linking a shared library.
9687 #
9688 # There doesn't appear to be a way to prevent this compiler from
9689 # explicitly linking system object files so we need to strip them
9690 # from the output so that they don't get included in the library
9691 # dependencies.
9692 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9693 ;;
9694 *)
9695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9696 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9697 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9698
9699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9700 hardcode_libdir_separator_CXX=:
9701
9702 # Commands to make compiler produce verbose output that lists
9703 # what "hidden" libraries, object files and flags are used when
9704 # linking a shared library.
9705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9706
9707 else
9708 # FIXME: insert proper C++ library support
9709 ld_shlibs_CXX=no
9710 fi
9711 ;;
9712 esac
9713 ;;
9714 osf4* | osf5*)
9715 case $cc_basename in
9716 KCC)
9717 # Kuck and Associates, Inc. (KAI) C++ Compiler
9718
9719 # KCC will only create a shared library if the output file
9720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9721 # to its proper name (with version) after linking.
9722 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'
9723
9724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9725 hardcode_libdir_separator_CXX=:
9726
9727 # Archives containing C++ object files must be created using
9728 # the KAI C++ compiler.
9729 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9730 ;;
9731 RCC)
9732 # Rational C++ 2.4.1
9733 # FIXME: insert proper C++ library support
9734 ld_shlibs_CXX=no
9735 ;;
9736 cxx)
9737 allow_undefined_flag_CXX=' -expect_unresolved \*'
9738 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'
9739 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9740 echo "-hidden">> $lib.exp~
9741 $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~
9742 $rm $lib.exp'
9743
9744 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9745 hardcode_libdir_separator_CXX=:
9746
9747 # Commands to make compiler produce verbose output that lists
9748 # what "hidden" libraries, object files and flags are used when
9749 # linking a shared library.
9750 #
9751 # There doesn't appear to be a way to prevent this compiler from
9752 # explicitly linking system object files so we need to strip them
9753 # from the output so that they don't get included in the library
9754 # dependencies.
9755 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'
9756 ;;
9757 *)
9758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9760 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'
9761
9762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9763 hardcode_libdir_separator_CXX=:
9764
9765 # Commands to make compiler produce verbose output that lists
9766 # what "hidden" libraries, object files and flags are used when
9767 # linking a shared library.
9768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9769
9770 else
9771 # FIXME: insert proper C++ library support
9772 ld_shlibs_CXX=no
9773 fi
9774 ;;
9775 esac
9776 ;;
9777 psos*)
9778 # FIXME: insert proper C++ library support
9779 ld_shlibs_CXX=no
9780 ;;
9781 sco*)
9782 archive_cmds_need_lc_CXX=no
9783 case $cc_basename in
9784 CC)
9785 # FIXME: insert proper C++ library support
9786 ld_shlibs_CXX=no
9787 ;;
9788 *)
9789 # FIXME: insert proper C++ library support
9790 ld_shlibs_CXX=no
9791 ;;
9792 esac
9793 ;;
9794 sunos4*)
9795 case $cc_basename in
9796 CC)
9797 # Sun C++ 4.x
9798 # FIXME: insert proper C++ library support
9799 ld_shlibs_CXX=no
9800 ;;
9801 lcc)
9802 # Lucid
9803 # FIXME: insert proper C++ library support
9804 ld_shlibs_CXX=no
9805 ;;
9806 *)
9807 # FIXME: insert proper C++ library support
9808 ld_shlibs_CXX=no
9809 ;;
9810 esac
9811 ;;
9812 solaris*)
9813 case $cc_basename in
9814 CC)
9815 # Sun C++ 4.2, 5.x and Centerline C++
9816 no_undefined_flag_CXX=' -zdefs'
9817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9818 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9819 $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'
9820
9821 hardcode_libdir_flag_spec_CXX='-R$libdir'
9822 hardcode_shlibpath_var_CXX=no
9823 case $host_os in
9824 solaris2.0-5 | solaris2.0-5.*) ;;
9825 *)
9826 # The C++ compiler is used as linker so we must use $wl
9827 # flag to pass the commands to the underlying system
9828 # linker.
9829 # Supported since Solaris 2.6 (maybe 2.5.1?)
9830 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9831 ;;
9832 esac
9833 link_all_deplibs_CXX=yes
9834
9835 # Commands to make compiler produce verbose output that lists
9836 # what "hidden" libraries, object files and flags are used when
9837 # linking a shared library.
9838 #
9839 # There doesn't appear to be a way to prevent this compiler from
9840 # explicitly linking system object files so we need to strip them
9841 # from the output so that they don't get included in the library
9842 # dependencies.
9843 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'
9844
9845 # Archives containing C++ object files must be created using
9846 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9847 # necessary to make sure instantiated templates are included
9848 # in the archive.
9849 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9850 ;;
9851 gcx)
9852 # Green Hills C++ Compiler
9853 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9854
9855 # The C++ compiler must be used to create the archive.
9856 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9857 ;;
9858 *)
9859 # GNU C++ compiler with Solaris linker
9860 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9861 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9862 if $CC --version | grep -v '^2\.7' > /dev/null; then
9863 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9864 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9865 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9866
9867 # Commands to make compiler produce verbose output that lists
9868 # what "hidden" libraries, object files and flags are used when
9869 # linking a shared library.
9870 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9871 else
9872 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9873 # platform.
9874 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9875 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9876 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9877
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9882 fi
9883
9884 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9885 fi
9886 ;;
9887 esac
9888 ;;
9889 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9890 archive_cmds_need_lc_CXX=no
9891 ;;
9892 tandem*)
9893 case $cc_basename in
9894 NCC)
9895 # NonStop-UX NCC 3.20
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 *)
9900 # FIXME: insert proper C++ library support
9901 ld_shlibs_CXX=no
9902 ;;
9903 esac
9904 ;;
9905 vxworks*)
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 *)
9910 # FIXME: insert proper C++ library support
9911 ld_shlibs_CXX=no
9912 ;;
9913esac
9914echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9915echo "${ECHO_T}$ld_shlibs_CXX" >&6
9916test "$ld_shlibs_CXX" = no && can_build_shared=no
9917
9918GCC_CXX="$GXX"
9919LD_CXX="$LD"
9920
9921
9922cat > conftest.$ac_ext <<EOF
9923class Foo
9924{
9925public:
9926 Foo (void) { a = 0; }
9927private:
9928 int a;
9929};
9930EOF
9931
9932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; then
9937 # Parse the compiler output and extract the necessary
9938 # objects, libraries and library flags.
9939
9940 # Sentinel used to keep track of whether or not we are before
9941 # the conftest object file.
9942 pre_test_object_deps_done=no
9943
9944 # The `*' in the case matches for architectures that use `case' in
9945 # $output_verbose_cmd can trigger glob expansion during the loop
9946 # eval without this substitution.
9947 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9948
9949 for p in `eval $output_verbose_link_cmd`; do
9950 case $p in
9951
9952 -L* | -R* | -l*)
9953 # Some compilers place space between "-{L,R}" and the path.
9954 # Remove the space.
9955 if test $p = "-L" \
9956 || test $p = "-R"; then
9957 prev=$p
9958 continue
9959 else
9960 prev=
9961 fi
9962
9963 if test "$pre_test_object_deps_done" = no; then
9964 case $p in
9965 -L* | -R*)
9966 # Internal compiler library paths should come after those
9967 # provided the user. The postdeps already come after the
9968 # user supplied libs so there is no need to process them.
9969 if test -z "$compiler_lib_search_path_CXX"; then
9970 compiler_lib_search_path_CXX="${prev}${p}"
9971 else
9972 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9973 fi
9974 ;;
9975 # The "-l" case would never come before the object being
9976 # linked, so don't bother handling this case.
9977 esac
9978 else
9979 if test -z "$postdeps_CXX"; then
9980 postdeps_CXX="${prev}${p}"
9981 else
9982 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9983 fi
9984 fi
9985 ;;
9986
9987 *.$objext)
9988 # This assumes that the test object file only shows up
9989 # once in the compiler output.
9990 if test "$p" = "conftest.$objext"; then
9991 pre_test_object_deps_done=yes
9992 continue
9993 fi
9994
9995 if test "$pre_test_object_deps_done" = no; then
9996 if test -z "$predep_objects_CXX"; then
9997 predep_objects_CXX="$p"
9998 else
9999 predep_objects_CXX="$predep_objects_CXX $p"
10000 fi
10001 else
10002 if test -z "$postdep_objects_CXX"; then
10003 postdep_objects_CXX="$p"
10004 else
10005 postdep_objects_CXX="$postdep_objects_CXX $p"
10006 fi
10007 fi
10008 ;;
10009
10010 *) ;; # Ignore the rest.
10011
10012 esac
10013 done
10014
10015 # Clean up.
10016 rm -f a.out a.exe
10017else
10018 echo "libtool.m4: error: problem compiling CXX test program"
10019fi
10020
10021$rm -f confest.$objext
10022
10023case " $postdeps_CXX " in
10024*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10025esac
10026
10027lt_prog_compiler_wl_CXX=
10028lt_prog_compiler_pic_CXX=
10029lt_prog_compiler_static_CXX=
10030
10031echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10032echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10033
10034 # C++ specific cases for pic, static, wl, etc.
10035 if test "$GXX" = yes; then
10036 lt_prog_compiler_wl_CXX='-Wl,'
10037 lt_prog_compiler_static_CXX='-static'
10038
10039 case $host_os in
10040 aix*)
10041 # All AIX code is PIC.
10042 if test "$host_cpu" = ia64; then
10043 # AIX 5 now supports IA64 processor
10044 lt_prog_compiler_static_CXX='-Bstatic'
10045 fi
10046 ;;
10047 amigaos*)
10048 # FIXME: we need at least 68020 code to build shared libraries, but
10049 # adding the `-m68020' flag to GCC prevents building anything better,
10050 # like `-m68040'.
10051 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10052 ;;
10053 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10054 # PIC is the default for these OSes.
10055 ;;
10056 mingw* | os2* | pw32*)
10057 # This hack is so that the source file can tell whether it is being
10058 # built for inclusion in a dll (and should export symbols for example).
10059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10060 ;;
10061 darwin* | rhapsody*)
10062 # PIC is the default on this platform
10063 # Common symbols not allowed in MH_DYLIB files
10064 lt_prog_compiler_pic_CXX='-fno-common'
10065 ;;
10066 *djgpp*)
10067 # DJGPP does not support shared libraries at all
10068 lt_prog_compiler_pic_CXX=
10069 ;;
10070 sysv4*MP*)
10071 if test -d /usr/nec; then
10072 lt_prog_compiler_pic_CXX=-Kconform_pic
10073 fi
10074 ;;
10075 hpux*)
10076 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10077 # not for PA HP-UX.
10078 case "$host_cpu" in
10079 hppa*64*|ia64*)
10080 ;;
10081 *)
10082 lt_prog_compiler_pic_CXX='-fPIC'
10083 ;;
10084 esac
10085 ;;
10086 *)
10087 lt_prog_compiler_pic_CXX='-fPIC'
10088 ;;
10089 esac
10090 else
10091 case $host_os in
10092 aix4* | aix5*)
10093 # All AIX code is PIC.
10094 if test "$host_cpu" = ia64; then
10095 # AIX 5 now supports IA64 processor
10096 lt_prog_compiler_static_CXX='-Bstatic'
10097 else
10098 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10099 fi
10100 ;;
10101 chorus*)
10102 case $cc_basename in
10103 cxch68)
10104 # Green Hills C++ Compiler
10105 # _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"
10106 ;;
10107 esac
10108 ;;
10109 dgux*)
10110 case $cc_basename in
10111 ec++)
10112 lt_prog_compiler_pic_CXX='-KPIC'
10113 ;;
10114 ghcx)
10115 # Green Hills C++ Compiler
10116 lt_prog_compiler_pic_CXX='-pic'
10117 ;;
10118 *)
10119 ;;
10120 esac
10121 ;;
10122 freebsd* | kfreebsd*-gnu)
10123 # FreeBSD uses GNU C++
10124 ;;
10125 hpux9* | hpux10* | hpux11*)
10126 case $cc_basename in
10127 CC)
10128 lt_prog_compiler_wl_CXX='-Wl,'
10129 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10130 if test "$host_cpu" != ia64; then
10131 lt_prog_compiler_pic_CXX='+Z'
10132 fi
10133 ;;
10134 aCC)
10135 lt_prog_compiler_wl_CXX='-Wl,'
10136 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10137 case "$host_cpu" in
10138 hppa*64*|ia64*)
10139 # +Z the default
10140 ;;
10141 *)
10142 lt_prog_compiler_pic_CXX='+Z'
10143 ;;
10144 esac
10145 ;;
10146 *)
10147 ;;
10148 esac
10149 ;;
10150 irix5* | irix6* | nonstopux*)
10151 case $cc_basename in
10152 CC)
10153 lt_prog_compiler_wl_CXX='-Wl,'
10154 lt_prog_compiler_static_CXX='-non_shared'
10155 # CC pic flag -KPIC is the default.
10156 ;;
10157 *)
10158 ;;
10159 esac
10160 ;;
10161 linux*)
10162 case $cc_basename in
10163 KCC)
10164 # KAI C++ Compiler
10165 lt_prog_compiler_wl_CXX='--backend -Wl,'
10166 lt_prog_compiler_pic_CXX='-fPIC'
10167 ;;
10168 icpc)
10169 # Intel C++
10170 lt_prog_compiler_wl_CXX='-Wl,'
10171 lt_prog_compiler_pic_CXX='-KPIC'
10172 lt_prog_compiler_static_CXX='-static'
10173 ;;
10174 cxx)
10175 # Compaq C++
10176 # Make sure the PIC flag is empty. It appears that all Alpha
10177 # Linux and Compaq Tru64 Unix objects are PIC.
10178 lt_prog_compiler_pic_CXX=
10179 lt_prog_compiler_static_CXX='-non_shared'
10180 ;;
10181 *)
10182 ;;
10183 esac
10184 ;;
10185 lynxos*)
10186 ;;
10187 m88k*)
10188 ;;
10189 mvs*)
10190 case $cc_basename in
10191 cxx)
10192 lt_prog_compiler_pic_CXX='-W c,exportall'
10193 ;;
10194 *)
10195 ;;
10196 esac
10197 ;;
10198 netbsd* | knetbsd*-gnu)
10199 ;;
10200 osf3* | osf4* | osf5*)
10201 case $cc_basename in
10202 KCC)
10203 lt_prog_compiler_wl_CXX='--backend -Wl,'
10204 ;;
10205 RCC)
10206 # Rational C++ 2.4.1
10207 lt_prog_compiler_pic_CXX='-pic'
10208 ;;
10209 cxx)
10210 # Digital/Compaq C++
10211 lt_prog_compiler_wl_CXX='-Wl,'
10212 # Make sure the PIC flag is empty. It appears that all Alpha
10213 # Linux and Compaq Tru64 Unix objects are PIC.
10214 lt_prog_compiler_pic_CXX=
10215 lt_prog_compiler_static_CXX='-non_shared'
10216 ;;
10217 *)
10218 ;;
10219 esac
10220 ;;
10221 psos*)
10222 ;;
10223 sco*)
10224 case $cc_basename in
10225 CC)
10226 lt_prog_compiler_pic_CXX='-fPIC'
10227 ;;
10228 *)
10229 ;;
10230 esac
10231 ;;
10232 solaris*)
10233 case $cc_basename in
10234 CC)
10235 # Sun C++ 4.2, 5.x and Centerline C++
10236 lt_prog_compiler_pic_CXX='-KPIC'
10237 lt_prog_compiler_static_CXX='-Bstatic'
10238 lt_prog_compiler_wl_CXX='-Qoption ld '
10239 ;;
10240 gcx)
10241 # Green Hills C++ Compiler
10242 lt_prog_compiler_pic_CXX='-PIC'
10243 ;;
10244 *)
10245 ;;
10246 esac
10247 ;;
10248 sunos4*)
10249 case $cc_basename in
10250 CC)
10251 # Sun C++ 4.x
10252 lt_prog_compiler_pic_CXX='-pic'
10253 lt_prog_compiler_static_CXX='-Bstatic'
10254 ;;
10255 lcc)
10256 # Lucid
10257 lt_prog_compiler_pic_CXX='-pic'
10258 ;;
10259 *)
10260 ;;
10261 esac
10262 ;;
10263 tandem*)
10264 case $cc_basename in
10265 NCC)
10266 # NonStop-UX NCC 3.20
10267 lt_prog_compiler_pic_CXX='-KPIC'
10268 ;;
10269 *)
10270 ;;
10271 esac
10272 ;;
10273 unixware*)
10274 ;;
10275 vxworks*)
10276 ;;
10277 *)
10278 lt_prog_compiler_can_build_shared_CXX=no
10279 ;;
10280 esac
10281 fi
10282
10283echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10284echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10285
10286#
10287# Check to make sure the PIC flag actually works.
10288#
10289if test -n "$lt_prog_compiler_pic_CXX"; then
10290
10291echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10292echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10293if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296 lt_prog_compiler_pic_works_CXX=no
10297 ac_outfile=conftest.$ac_objext
10298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10299 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10300 # Insert the option either (1) after the last *FLAGS variable, or
10301 # (2) before a word containing "conftest.", or (3) at the end.
10302 # Note that $ac_compile itself does not contain backslashes and begins
10303 # with a dollar sign (not a hyphen), so the echo should work correctly.
10304 # The option is referenced via a variable to avoid confusing sed.
10305 lt_compile=`echo "$ac_compile" | $SED \
10306 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10308 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000010309 (eval echo "\"\$as_me:10309: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010310 (eval "$lt_compile" 2>conftest.err)
10311 ac_status=$?
10312 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000010313 echo "$as_me:10313: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010314 if (exit $ac_status) && test -s "$ac_outfile"; then
10315 # The compiler can only warn and ignore the option if not recognized
10316 # So say no if there are warnings
10317 if test ! -s conftest.err; then
10318 lt_prog_compiler_pic_works_CXX=yes
10319 fi
10320 fi
10321 $rm conftest*
10322
10323fi
10324echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10325echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10326
10327if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10328 case $lt_prog_compiler_pic_CXX in
10329 "" | " "*) ;;
10330 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10331 esac
10332else
10333 lt_prog_compiler_pic_CXX=
10334 lt_prog_compiler_can_build_shared_CXX=no
10335fi
10336
10337fi
10338case "$host_os" in
10339 # For platforms which do not support PIC, -DPIC is meaningless:
10340 *djgpp*)
10341 lt_prog_compiler_pic_CXX=
10342 ;;
10343 *)
10344 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10345 ;;
10346esac
10347
10348echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10350if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 lt_cv_prog_compiler_c_o_CXX=no
10354 $rm -r conftest 2>/dev/null
10355 mkdir conftest
10356 cd conftest
10357 mkdir out
10358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10359
10360 lt_compiler_flag="-o out/conftest2.$ac_objext"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 lt_compile=`echo "$ac_compile" | $SED \
10366 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10368 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000010369 (eval echo "\"\$as_me:10369: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010370 (eval "$lt_compile" 2>out/conftest.err)
10371 ac_status=$?
10372 cat out/conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000010373 echo "$as_me:10373: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10375 then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings
10378 if test ! -s out/conftest.err; then
10379 lt_cv_prog_compiler_c_o_CXX=yes
10380 fi
10381 fi
10382 chmod u+w .
10383 $rm conftest*
10384 # SGI C++ compiler will create directory out/ii_files/ for
10385 # template instantiation
10386 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10387 $rm out/* && rmdir out
10388 cd ..
10389 rmdir conftest
10390 $rm conftest*
10391
10392fi
10393echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10394echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10395
10396
10397hard_links="nottested"
10398if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10399 # do not overwrite the value of need_locks provided by the user
10400 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10401echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10402 hard_links=yes
10403 $rm conftest*
10404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10405 touch conftest.a
10406 ln conftest.a conftest.b 2>&5 || hard_links=no
10407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10408 echo "$as_me:$LINENO: result: $hard_links" >&5
10409echo "${ECHO_T}$hard_links" >&6
10410 if test "$hard_links" = no; then
10411 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10412echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10413 need_locks=warn
10414 fi
10415else
10416 need_locks=no
10417fi
10418
10419echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10420echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10421
10422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10423 case $host_os in
10424 aix4* | aix5*)
10425 # If we're using GNU nm, then we don't want the "-C" option.
10426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10428 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'
10429 else
10430 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'
10431 fi
10432 ;;
10433 pw32*)
10434 export_symbols_cmds_CXX="$ltdll_cmds"
10435 ;;
10436 cygwin* | mingw*)
10437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10438 ;;
10439 *)
10440 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10441 ;;
10442 esac
10443
10444echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10445echo "${ECHO_T}$ld_shlibs_CXX" >&6
10446test "$ld_shlibs_CXX" = no && can_build_shared=no
10447
10448variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10449if test "$GCC" = yes; then
10450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10451fi
10452
10453#
10454# Do we need to explicitly link libc?
10455#
10456case "x$archive_cmds_need_lc_CXX" in
10457x|xyes)
10458 # Assume -lc should be added
10459 archive_cmds_need_lc_CXX=yes
10460
10461 if test "$enable_shared" = yes && test "$GCC" = yes; then
10462 case $archive_cmds_CXX in
10463 *'~'*)
10464 # FIXME: we may have to deal with multi-command sequences.
10465 ;;
10466 '$CC '*)
10467 # Test whether the compiler implicitly links with -lc since on some
10468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10469 # to ld, don't add -lc before -lgcc.
10470 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10471echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10472 $rm conftest*
10473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10474
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } 2>conftest.err; then
10480 soname=conftest
10481 lib=conftest
10482 libobjs=conftest.$ac_objext
10483 deplibs=
10484 wl=$lt_prog_compiler_wl_CXX
10485 compiler_flags=-v
10486 linker_flags=-v
10487 verstring=
10488 output_objdir=.
10489 libname=conftest
10490 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10491 allow_undefined_flag_CXX=
10492 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10493 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }
10497 then
10498 archive_cmds_need_lc_CXX=no
10499 else
10500 archive_cmds_need_lc_CXX=yes
10501 fi
10502 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10503 else
10504 cat conftest.err 1>&5
10505 fi
10506 $rm conftest*
10507 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10508echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10509 ;;
10510 esac
10511 fi
10512 ;;
10513esac
10514
10515echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10516echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10517library_names_spec=
10518libname_spec='lib$name'
10519soname_spec=
10520shrext=".so"
10521postinstall_cmds=
10522postuninstall_cmds=
10523finish_cmds=
10524finish_eval=
10525shlibpath_var=
10526shlibpath_overrides_runpath=unknown
10527version_type=none
10528dynamic_linker="$host_os ld.so"
10529sys_lib_dlsearch_path_spec="/lib /usr/lib"
10530if test "$GCC" = yes; then
10531 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10532 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10533 # if the path contains ";" then we assume it to be the separator
10534 # otherwise default to the standard path separator (i.e. ":") - it is
10535 # assumed that no part of a normal pathname contains ";" but that should
10536 # okay in the real world where ";" in dirpaths is itself problematic.
10537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10538 else
10539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10540 fi
10541else
10542 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10543fi
10544need_lib_prefix=unknown
10545hardcode_into_libs=no
10546
10547# when you set need_version to no, make sure it does not cause -set_version
10548# flags to be left without arguments
10549need_version=unknown
10550
10551case $host_os in
10552aix3*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10555 shlibpath_var=LIBPATH
10556
10557 # AIX 3 has no versioning support, so we append a major version to the name.
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 ;;
10560
10561aix4* | aix5*)
10562 version_type=linux
10563 need_lib_prefix=no
10564 need_version=no
10565 hardcode_into_libs=yes
10566 if test "$host_cpu" = ia64; then
10567 # AIX 5 supports IA64
10568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 else
10571 # With GCC up to 2.95.x, collect2 would create an import file
10572 # for dependence libraries. The import file would start with
10573 # the line `#! .'. This would cause the generated library to
10574 # depend on `.', always an invalid library. This was fixed in
10575 # development snapshots of GCC prior to 3.0.
10576 case $host_os in
10577 aix4 | aix4.[01] | aix4.[01].*)
10578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10579 echo ' yes '
10580 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10581 :
10582 else
10583 can_build_shared=no
10584 fi
10585 ;;
10586 esac
10587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10588 # soname into executable. Probably we can add versioning support to
10589 # collect2, so additional links can be useful in future.
10590 if test "$aix_use_runtimelinking" = yes; then
10591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10592 # instead of lib<name>.a to let people know that these are not
10593 # typical AIX shared libraries.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 else
10596 # We preserve .a as extension for shared libraries through AIX4.2
10597 # and later when we are not doing run time linking.
10598 library_names_spec='${libname}${release}.a $libname.a'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 fi
10601 shlibpath_var=LIBPATH
10602 fi
10603 ;;
10604
10605amigaos*)
10606 library_names_spec='$libname.ixlibrary $libname.a'
10607 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10608 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'
10609 ;;
10610
10611beos*)
10612 library_names_spec='${libname}${shared_ext}'
10613 dynamic_linker="$host_os ld.so"
10614 shlibpath_var=LIBRARY_PATH
10615 ;;
10616
10617bsdi4*)
10618 version_type=linux
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10626 # the default ld.so.conf also contains /usr/contrib/lib and
10627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10628 # libtool to hard-code these into programs
10629 ;;
10630
10631cygwin* | mingw* | pw32*)
10632 version_type=windows
10633 shrext=".dll"
10634 need_version=no
10635 need_lib_prefix=no
10636
10637 case $GCC,$host_os in
10638 yes,cygwin* | yes,mingw* | yes,pw32*)
10639 library_names_spec='$libname.dll.a'
10640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10641 postinstall_cmds='base_file=`basename \${file}`~
10642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10643 dldir=$destdir/`dirname \$dlpath`~
10644 test -d \$dldir || mkdir -p \$dldir~
10645 $install_prog $dir/$dlname \$dldir/$dlname'
10646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647 dlpath=$dir/\$dldll~
10648 $rm \$dlpath'
10649 shlibpath_overrides_runpath=yes
10650
10651 case $host_os in
10652 cygwin*)
10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10656 ;;
10657 mingw*)
10658 # MinGW DLLs use traditional 'lib' prefix
10659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10662 # It is most probably a Windows format PATH printed by
10663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10664 # path with ; separators, and with drive letters. We can handle the
10665 # drive letters (cygwin fileutils understands them), so leave them,
10666 # especially as we might pass files found there to a mingw objdump,
10667 # which wouldn't understand a cygwinified path. Ahh.
10668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10669 else
10670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10671 fi
10672 ;;
10673 pw32*)
10674 # pw32 DLLs use 'pw' prefix rather than 'lib'
10675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10676 ;;
10677 esac
10678 ;;
10679
10680 *)
10681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10682 ;;
10683 esac
10684 dynamic_linker='Win32 ld.exe'
10685 # FIXME: first we should search . and the directory the executable is in
10686 shlibpath_var=PATH
10687 ;;
10688
10689darwin* | rhapsody*)
10690 dynamic_linker="$host_os dyld"
10691 version_type=darwin
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10695 soname_spec='${libname}${release}${major}$shared_ext'
10696 shlibpath_overrides_runpath=yes
10697 shlibpath_var=DYLD_LIBRARY_PATH
10698 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10700 if test "$GCC" = yes; then
10701 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"`
10702 else
10703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10704 fi
10705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706 ;;
10707
10708dgux*)
10709 version_type=linux
10710 need_lib_prefix=no
10711 need_version=no
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 ;;
10716
10717freebsd1*)
10718 dynamic_linker=no
10719 ;;
10720
10721kfreebsd*-gnu)
10722 version_type=linux
10723 need_lib_prefix=no
10724 need_version=no
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=no
10729 hardcode_into_libs=yes
10730 dynamic_linker='GNU ld.so'
10731 ;;
10732
10733freebsd*)
10734 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10735 version_type=freebsd-$objformat
10736 case $version_type in
10737 freebsd-elf*)
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10739 need_version=no
10740 need_lib_prefix=no
10741 ;;
10742 freebsd-*)
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10744 need_version=yes
10745 ;;
10746 esac
10747 shlibpath_var=LD_LIBRARY_PATH
10748 case $host_os in
10749 freebsd2*)
10750 shlibpath_overrides_runpath=yes
10751 ;;
10752 freebsd3.01* | freebsdelf3.01*)
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 ;;
10756 *) # from 3.2 on
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10759 ;;
10760 esac
10761 ;;
10762
10763gnu*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 hardcode_into_libs=yes
10771 ;;
10772
10773hpux9* | hpux10* | hpux11*)
10774 # Give a soname corresponding to the major version so that dld.sl refuses to
10775 # link against other versions.
10776 version_type=sunos
10777 need_lib_prefix=no
10778 need_version=no
10779 case "$host_cpu" in
10780 ia64*)
10781 shrext='.so'
10782 hardcode_into_libs=yes
10783 dynamic_linker="$host_os dld.so"
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 if test "X$HPUX_IA64_MODE" = X32; then
10789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10790 else
10791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10792 fi
10793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10794 ;;
10795 hppa*64*)
10796 shrext='.sl'
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10805 ;;
10806 *)
10807 shrext='.sl'
10808 dynamic_linker="$host_os dld.sl"
10809 shlibpath_var=SHLIB_PATH
10810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 ;;
10814 esac
10815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10816 postinstall_cmds='chmod 555 $lib'
10817 ;;
10818
10819irix5* | irix6* | nonstopux*)
10820 case $host_os in
10821 nonstopux*) version_type=nonstopux ;;
10822 *)
10823 if test "$lt_cv_prog_gnu_ld" = yes; then
10824 version_type=linux
10825 else
10826 version_type=irix
10827 fi ;;
10828 esac
10829 need_lib_prefix=no
10830 need_version=no
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 case $host_os in
10834 irix5* | nonstopux*)
10835 libsuff= shlibsuff=
10836 ;;
10837 *)
10838 case $LD in # libtool.m4 will add one of these switches to LD
10839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10840 libsuff= shlibsuff= libmagic=32-bit;;
10841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10842 libsuff=32 shlibsuff=N32 libmagic=N32;;
10843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10845 *) libsuff= shlibsuff= libmagic=never-match;;
10846 esac
10847 ;;
10848 esac
10849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10853 hardcode_into_libs=yes
10854 ;;
10855
10856# No shared lib support for Linux oldld, aout, or coff.
10857linux*oldld* | linux*aout* | linux*coff*)
10858 dynamic_linker=no
10859 ;;
10860
10861# This must be Linux ELF.
10862linux*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=no
10871 # This implies no fast_install, which is unacceptable.
10872 # Some rework will be needed to allow for fast_install
10873 # before this can be enabled.
10874 hardcode_into_libs=yes
10875
10876 # Append ld.so.conf contents to the search path
10877 if test -f /etc/ld.so.conf; then
10878 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10879 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10880 fi
10881
10882 # We used to test for /lib/ld.so.1 and disable shared libraries on
10883 # powerpc, because MkLinux only supported shared libraries with the
10884 # GNU dynamic linker. Since this was broken with cross compilers,
10885 # most powerpc-linux boxes support dynamic linking these days and
10886 # people can always --disable-shared, the test was removed, and we
10887 # assume the GNU/Linux dynamic linker is in use.
10888 dynamic_linker='GNU/Linux ld.so'
10889 ;;
10890
10891knetbsd*-gnu)
10892 version_type=linux
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10900 dynamic_linker='GNU ld.so'
10901 ;;
10902
10903netbsd*)
10904 version_type=sunos
10905 need_lib_prefix=no
10906 need_version=no
10907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910 dynamic_linker='NetBSD (a.out) ld.so'
10911 else
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 dynamic_linker='NetBSD ld.elf_so'
10915 fi
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 hardcode_into_libs=yes
10919 ;;
10920
10921newsos6)
10922 version_type=linux
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=yes
10926 ;;
10927
10928nto-qnx*)
10929 version_type=linux
10930 need_lib_prefix=no
10931 need_version=no
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937
10938openbsd*)
10939 version_type=sunos
10940 need_lib_prefix=no
10941 need_version=yes
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946 case $host_os in
10947 openbsd2.[89] | openbsd2.[89].*)
10948 shlibpath_overrides_runpath=no
10949 ;;
10950 *)
10951 shlibpath_overrides_runpath=yes
10952 ;;
10953 esac
10954 else
10955 shlibpath_overrides_runpath=yes
10956 fi
10957 ;;
10958
10959os2*)
10960 libname_spec='$name'
10961 shrext=".dll"
10962 need_lib_prefix=no
10963 library_names_spec='$libname${shared_ext} $libname.a'
10964 dynamic_linker='OS/2 ld.exe'
10965 shlibpath_var=LIBPATH
10966 ;;
10967
10968osf3* | osf4* | osf5*)
10969 version_type=osf
10970 need_lib_prefix=no
10971 need_version=no
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10977 ;;
10978
10979sco3.2v5*)
10980 version_type=osf
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 ;;
10985
10986solaris*)
10987 version_type=linux
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 hardcode_into_libs=yes
10995 # ldd complains unless libraries are executable
10996 postinstall_cmds='chmod +x $lib'
10997 ;;
10998
10999sunos4*)
11000 version_type=sunos
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes
11005 if test "$with_gnu_ld" = yes; then
11006 need_lib_prefix=no
11007 fi
11008 need_version=yes
11009 ;;
11010
11011sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11012 version_type=linux
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 case $host_vendor in
11017 sni)
11018 shlibpath_overrides_runpath=no
11019 need_lib_prefix=no
11020 export_dynamic_flag_spec='${wl}-Blargedynsym'
11021 runpath_var=LD_RUN_PATH
11022 ;;
11023 siemens)
11024 need_lib_prefix=no
11025 ;;
11026 motorola)
11027 need_lib_prefix=no
11028 need_version=no
11029 shlibpath_overrides_runpath=no
11030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11031 ;;
11032 esac
11033 ;;
11034
11035sysv4*MP*)
11036 if test -d /usr/nec ;then
11037 version_type=linux
11038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11039 soname_spec='$libname${shared_ext}.$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 fi
11042 ;;
11043
11044uts4*)
11045 version_type=linux
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 ;;
11050
11051*)
11052 dynamic_linker=no
11053 ;;
11054esac
11055echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11056echo "${ECHO_T}$dynamic_linker" >&6
11057test "$dynamic_linker" = no && can_build_shared=no
11058
11059echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11061hardcode_action_CXX=
11062if test -n "$hardcode_libdir_flag_spec_CXX" || \
11063 test -n "$runpath_var CXX" || \
11064 test "X$hardcode_automatic_CXX"="Xyes" ; then
11065
11066 # We can hardcode non-existant directories.
11067 if test "$hardcode_direct_CXX" != no &&
11068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11069 # have to relink, otherwise we might link with an installed library
11070 # when we should be linking with a yet-to-be-installed one
11071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11072 test "$hardcode_minus_L_CXX" != no; then
11073 # Linking always hardcodes the temporary library directory.
11074 hardcode_action_CXX=relink
11075 else
11076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11077 hardcode_action_CXX=immediate
11078 fi
11079else
11080 # We cannot hardcode anything, or else we can only hardcode existing
11081 # directories.
11082 hardcode_action_CXX=unsupported
11083fi
11084echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11085echo "${ECHO_T}$hardcode_action_CXX" >&6
11086
11087if test "$hardcode_action_CXX" = relink; then
11088 # Fast installation is not supported
11089 enable_fast_install=no
11090elif test "$shlibpath_overrides_runpath" = yes ||
11091 test "$enable_shared" = no; then
11092 # Fast installation is not necessary
11093 enable_fast_install=needless
11094fi
11095
11096striplib=
11097old_striplib=
11098echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11099echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11100if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11103 echo "$as_me:$LINENO: result: yes" >&5
11104echo "${ECHO_T}yes" >&6
11105else
11106# FIXME - insert some real tests, host_os isn't really good enough
11107 case $host_os in
11108 darwin*)
11109 if test -n "$STRIP" ; then
11110 striplib="$STRIP -x"
11111 echo "$as_me:$LINENO: result: yes" >&5
11112echo "${ECHO_T}yes" >&6
11113 else
11114 echo "$as_me:$LINENO: result: no" >&5
11115echo "${ECHO_T}no" >&6
11116fi
11117 ;;
11118 *)
11119 echo "$as_me:$LINENO: result: no" >&5
11120echo "${ECHO_T}no" >&6
11121 ;;
11122 esac
11123fi
11124
11125if test "x$enable_dlopen" != xyes; then
11126 enable_dlopen=unknown
11127 enable_dlopen_self=unknown
11128 enable_dlopen_self_static=unknown
11129else
11130 lt_cv_dlopen=no
11131 lt_cv_dlopen_libs=
11132
11133 case $host_os in
11134 beos*)
11135 lt_cv_dlopen="load_add_on"
11136 lt_cv_dlopen_libs=
11137 lt_cv_dlopen_self=yes
11138 ;;
11139
11140 mingw* | pw32*)
11141 lt_cv_dlopen="LoadLibrary"
11142 lt_cv_dlopen_libs=
11143 ;;
11144
11145 cygwin*)
11146 lt_cv_dlopen="dlopen"
11147 lt_cv_dlopen_libs=
11148 ;;
11149
11150 darwin*)
11151 # if libdl is installed we need to link against it
11152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156else
11157 ac_check_lib_save_LIBS=$LIBS
11158LIBS="-ldl $LIBS"
11159cat >conftest.$ac_ext <<_ACEOF
11160/* confdefs.h. */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
11165
11166/* Override any gcc2 internal prototype to avoid an error. */
11167#ifdef __cplusplus
11168extern "C"
11169#endif
11170/* We use char because int might match the return type of a gcc2
11171 builtin and then its argument prototype would still apply. */
11172char dlopen ();
11173int
11174main ()
11175{
11176dlopen ();
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181rm -f conftest.$ac_objext conftest$ac_exeext
11182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183 (eval $ac_link) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011190 { ac_try='test -z "$ac_cxx_werror_flag"
11191 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 ac_cv_lib_dl_dlopen=yes
11204else
11205 echo "$as_me: failed program was:" >&5
11206sed 's/^/| /' conftest.$ac_ext >&5
11207
11208ac_cv_lib_dl_dlopen=no
11209fi
11210rm -f conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212LIBS=$ac_check_lib_save_LIBS
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11215echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11216if test $ac_cv_lib_dl_dlopen = yes; then
11217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11218else
11219
11220 lt_cv_dlopen="dyld"
11221 lt_cv_dlopen_libs=
11222 lt_cv_dlopen_self=yes
11223
11224fi
11225
11226 ;;
11227
11228 *)
11229 echo "$as_me:$LINENO: checking for shl_load" >&5
11230echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11231if test "${ac_cv_func_shl_load+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242#define shl_load innocuous_shl_load
11243
11244/* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char shl_load (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
11248
11249#ifdef __STDC__
11250# include <limits.h>
11251#else
11252# include <assert.h>
11253#endif
11254
11255#undef shl_load
11256
11257/* Override any gcc2 internal prototype to avoid an error. */
11258#ifdef __cplusplus
11259extern "C"
11260{
11261#endif
11262/* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11264char shl_load ();
11265/* The GNU C library defines this for functions which it implements
11266 to always fail with ENOSYS. Some functions are actually named
11267 something starting with __ and the normal name is an alias. */
11268#if defined (__stub_shl_load) || defined (__stub___shl_load)
11269choke me
11270#else
11271char (*f) () = shl_load;
11272#endif
11273#ifdef __cplusplus
11274}
11275#endif
11276
11277int
11278main ()
11279{
11280return f != shl_load;
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext conftest$ac_exeext
11286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011294 { ac_try='test -z "$ac_cxx_werror_flag"
11295 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest$ac_exeext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_cv_func_shl_load=yes
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312ac_cv_func_shl_load=no
11313fi
11314rm -f conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316fi
11317echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11318echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11319if test $ac_cv_func_shl_load = yes; then
11320 lt_cv_dlopen="shl_load"
11321else
11322 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11323echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11324if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 ac_check_lib_save_LIBS=$LIBS
11328LIBS="-ldld $LIBS"
11329cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335
11336/* Override any gcc2 internal prototype to avoid an error. */
11337#ifdef __cplusplus
11338extern "C"
11339#endif
11340/* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11342char shl_load ();
11343int
11344main ()
11345{
11346shl_load ();
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351rm -f conftest.$ac_objext conftest$ac_exeext
11352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011360 { ac_try='test -z "$ac_cxx_werror_flag"
11361 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; } &&
11367 { ac_try='test -s conftest$ac_exeext'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
11373 ac_cv_lib_dld_shl_load=yes
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378ac_cv_lib_dld_shl_load=no
11379fi
11380rm -f conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11382LIBS=$ac_check_lib_save_LIBS
11383fi
11384echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11385echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11386if test $ac_cv_lib_dld_shl_load = yes; then
11387 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11388else
11389 echo "$as_me:$LINENO: checking for dlopen" >&5
11390echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11391if test "${ac_cv_func_dlopen+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402#define dlopen innocuous_dlopen
11403
11404/* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char dlopen (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11408
11409#ifdef __STDC__
11410# include <limits.h>
11411#else
11412# include <assert.h>
11413#endif
11414
11415#undef dlopen
11416
11417/* Override any gcc2 internal prototype to avoid an error. */
11418#ifdef __cplusplus
11419extern "C"
11420{
11421#endif
11422/* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424char dlopen ();
11425/* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428#if defined (__stub_dlopen) || defined (__stub___dlopen)
11429choke me
11430#else
11431char (*f) () = dlopen;
11432#endif
11433#ifdef __cplusplus
11434}
11435#endif
11436
11437int
11438main ()
11439{
11440return f != dlopen;
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext conftest$ac_exeext
11446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011454 { ac_try='test -z "$ac_cxx_werror_flag"
11455 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_func_dlopen=yes
11468else
11469 echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
11471
11472ac_cv_func_dlopen=no
11473fi
11474rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476fi
11477echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11478echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11479if test $ac_cv_func_dlopen = yes; then
11480 lt_cv_dlopen="dlopen"
11481else
11482 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11483echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11484if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486else
11487 ac_check_lib_save_LIBS=$LIBS
11488LIBS="-ldl $LIBS"
11489cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
11495
11496/* Override any gcc2 internal prototype to avoid an error. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500/* We use char because int might match the return type of a gcc2
11501 builtin and then its argument prototype would still apply. */
11502char dlopen ();
11503int
11504main ()
11505{
11506dlopen ();
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext conftest$ac_exeext
11512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011520 { ac_try='test -z "$ac_cxx_werror_flag"
11521 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_cv_lib_dl_dlopen=yes
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538ac_cv_lib_dl_dlopen=no
11539fi
11540rm -f conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542LIBS=$ac_check_lib_save_LIBS
11543fi
11544echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11545echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11546if test $ac_cv_lib_dl_dlopen = yes; then
11547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11548else
11549 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11550echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11551if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554 ac_check_lib_save_LIBS=$LIBS
11555LIBS="-lsvld $LIBS"
11556cat >conftest.$ac_ext <<_ACEOF
11557/* confdefs.h. */
11558_ACEOF
11559cat confdefs.h >>conftest.$ac_ext
11560cat >>conftest.$ac_ext <<_ACEOF
11561/* end confdefs.h. */
11562
11563/* Override any gcc2 internal prototype to avoid an error. */
11564#ifdef __cplusplus
11565extern "C"
11566#endif
11567/* We use char because int might match the return type of a gcc2
11568 builtin and then its argument prototype would still apply. */
11569char dlopen ();
11570int
11571main ()
11572{
11573dlopen ();
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578rm -f conftest.$ac_objext conftest$ac_exeext
11579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011587 { ac_try='test -z "$ac_cxx_werror_flag"
11588 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest$ac_exeext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 ac_cv_lib_svld_dlopen=yes
11601else
11602 echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605ac_cv_lib_svld_dlopen=no
11606fi
11607rm -f conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609LIBS=$ac_check_lib_save_LIBS
11610fi
11611echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11612echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11613if test $ac_cv_lib_svld_dlopen = yes; then
11614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11615else
11616 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11617echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11618if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-ldld $LIBS"
11623cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629
11630/* Override any gcc2 internal prototype to avoid an error. */
11631#ifdef __cplusplus
11632extern "C"
11633#endif
11634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636char dld_link ();
11637int
11638main ()
11639{
11640dld_link ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011654 { ac_try='test -z "$ac_cxx_werror_flag"
11655 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_lib_dld_dld_link=yes
11668else
11669 echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672ac_cv_lib_dld_dld_link=no
11673fi
11674rm -f conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11679echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11680if test $ac_cv_lib_dld_dld_link = yes; then
11681 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11682fi
11683
11684
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699 ;;
11700 esac
11701
11702 if test "x$lt_cv_dlopen" != xno; then
11703 enable_dlopen=yes
11704 else
11705 enable_dlopen=no
11706 fi
11707
11708 case $lt_cv_dlopen in
11709 dlopen)
11710 save_CPPFLAGS="$CPPFLAGS"
11711 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11712
11713 save_LDFLAGS="$LDFLAGS"
11714 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
11716 save_LIBS="$LIBS"
11717 LIBS="$lt_cv_dlopen_libs $LIBS"
11718
11719 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11720echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11721if test "${lt_cv_dlopen_self+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 if test "$cross_compiling" = yes; then :
11725 lt_cv_dlopen_self=cross
11726else
11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728 lt_status=$lt_dlunknown
11729 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +000011730#line 11730 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011731#include "confdefs.h"
11732
11733#if HAVE_DLFCN_H
11734#include <dlfcn.h>
11735#endif
11736
11737#include <stdio.h>
11738
11739#ifdef RTLD_GLOBAL
11740# define LT_DLGLOBAL RTLD_GLOBAL
11741#else
11742# ifdef DL_GLOBAL
11743# define LT_DLGLOBAL DL_GLOBAL
11744# else
11745# define LT_DLGLOBAL 0
11746# endif
11747#endif
11748
11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750 find out it does not work in some platform. */
11751#ifndef LT_DLLAZY_OR_NOW
11752# ifdef RTLD_LAZY
11753# define LT_DLLAZY_OR_NOW RTLD_LAZY
11754# else
11755# ifdef DL_LAZY
11756# define LT_DLLAZY_OR_NOW DL_LAZY
11757# else
11758# ifdef RTLD_NOW
11759# define LT_DLLAZY_OR_NOW RTLD_NOW
11760# else
11761# ifdef DL_NOW
11762# define LT_DLLAZY_OR_NOW DL_NOW
11763# else
11764# define LT_DLLAZY_OR_NOW 0
11765# endif
11766# endif
11767# endif
11768# endif
11769#endif
11770
11771#ifdef __cplusplus
11772extern "C" void exit (int);
11773#endif
11774
11775void fnord() { int i=42;}
11776int main ()
11777{
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11780
11781 if (self)
11782 {
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11784 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785 /* dlclose (self); */
11786 }
11787
11788 exit (status);
11789}
11790EOF
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11796 (./conftest; exit; ) 2>/dev/null
11797 lt_status=$?
11798 case x$lt_status in
11799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11802 esac
11803 else :
11804 # compilation failed
11805 lt_cv_dlopen_self=no
11806 fi
11807fi
11808rm -fr conftest*
11809
11810
11811fi
11812echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11813echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11814
11815 if test "x$lt_cv_dlopen_self" = xyes; then
11816 LDFLAGS="$LDFLAGS $link_static_flag"
11817 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11818echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11819if test "${lt_cv_dlopen_self_static+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 if test "$cross_compiling" = yes; then :
11823 lt_cv_dlopen_self_static=cross
11824else
11825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11826 lt_status=$lt_dlunknown
11827 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +000011828#line 11828 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011829#include "confdefs.h"
11830
11831#if HAVE_DLFCN_H
11832#include <dlfcn.h>
11833#endif
11834
11835#include <stdio.h>
11836
11837#ifdef RTLD_GLOBAL
11838# define LT_DLGLOBAL RTLD_GLOBAL
11839#else
11840# ifdef DL_GLOBAL
11841# define LT_DLGLOBAL DL_GLOBAL
11842# else
11843# define LT_DLGLOBAL 0
11844# endif
11845#endif
11846
11847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11848 find out it does not work in some platform. */
11849#ifndef LT_DLLAZY_OR_NOW
11850# ifdef RTLD_LAZY
11851# define LT_DLLAZY_OR_NOW RTLD_LAZY
11852# else
11853# ifdef DL_LAZY
11854# define LT_DLLAZY_OR_NOW DL_LAZY
11855# else
11856# ifdef RTLD_NOW
11857# define LT_DLLAZY_OR_NOW RTLD_NOW
11858# else
11859# ifdef DL_NOW
11860# define LT_DLLAZY_OR_NOW DL_NOW
11861# else
11862# define LT_DLLAZY_OR_NOW 0
11863# endif
11864# endif
11865# endif
11866# endif
11867#endif
11868
11869#ifdef __cplusplus
11870extern "C" void exit (int);
11871#endif
11872
11873void fnord() { int i=42;}
11874int main ()
11875{
11876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877 int status = $lt_dlunknown;
11878
11879 if (self)
11880 {
11881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11882 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11883 /* dlclose (self); */
11884 }
11885
11886 exit (status);
11887}
11888EOF
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11894 (./conftest; exit; ) 2>/dev/null
11895 lt_status=$?
11896 case x$lt_status in
11897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11900 esac
11901 else :
11902 # compilation failed
11903 lt_cv_dlopen_self_static=no
11904 fi
11905fi
11906rm -fr conftest*
11907
11908
11909fi
11910echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11911echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11912 fi
11913
11914 CPPFLAGS="$save_CPPFLAGS"
11915 LDFLAGS="$save_LDFLAGS"
11916 LIBS="$save_LIBS"
11917 ;;
11918 esac
11919
11920 case $lt_cv_dlopen_self in
11921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11922 *) enable_dlopen_self=unknown ;;
11923 esac
11924
11925 case $lt_cv_dlopen_self_static in
11926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11927 *) enable_dlopen_self_static=unknown ;;
11928 esac
11929fi
11930
11931
11932# The else clause should only fire when bootstrapping the
11933# libtool distribution, otherwise you forgot to ship ltmain.sh
11934# with your package, and you will get complaints that there are
11935# no rules to generate ltmain.sh.
11936if test -f "$ltmain"; then
11937 # See if we are running on zsh, and set the options which allow our commands through
11938 # without removal of \ escapes.
11939 if test -n "${ZSH_VERSION+set}" ; then
11940 setopt NO_GLOB_SUBST
11941 fi
11942 # Now quote all the things that may contain metacharacters while being
11943 # careful not to overquote the AC_SUBSTed values. We take copies of the
11944 # variables and quote the copies for generation of the libtool script.
11945 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11946 SED SHELL STRIP \
11947 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949 deplibs_check_method reload_flag reload_cmds need_locks \
11950 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951 lt_cv_sys_global_symbol_to_c_name_address \
11952 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953 old_postinstall_cmds old_postuninstall_cmds \
11954 compiler_CXX \
11955 CC_CXX \
11956 LD_CXX \
11957 lt_prog_compiler_wl_CXX \
11958 lt_prog_compiler_pic_CXX \
11959 lt_prog_compiler_static_CXX \
11960 lt_prog_compiler_no_builtin_flag_CXX \
11961 export_dynamic_flag_spec_CXX \
11962 thread_safe_flag_spec_CXX \
11963 whole_archive_flag_spec_CXX \
11964 enable_shared_with_static_runtimes_CXX \
11965 old_archive_cmds_CXX \
11966 old_archive_from_new_cmds_CXX \
11967 predep_objects_CXX \
11968 postdep_objects_CXX \
11969 predeps_CXX \
11970 postdeps_CXX \
11971 compiler_lib_search_path_CXX \
11972 archive_cmds_CXX \
11973 archive_expsym_cmds_CXX \
11974 postinstall_cmds_CXX \
11975 postuninstall_cmds_CXX \
11976 old_archive_from_expsyms_cmds_CXX \
11977 allow_undefined_flag_CXX \
11978 no_undefined_flag_CXX \
11979 export_symbols_cmds_CXX \
11980 hardcode_libdir_flag_spec_CXX \
11981 hardcode_libdir_flag_spec_ld_CXX \
11982 hardcode_libdir_separator_CXX \
11983 hardcode_automatic_CXX \
11984 module_cmds_CXX \
11985 module_expsym_cmds_CXX \
11986 lt_cv_prog_compiler_c_o_CXX \
11987 exclude_expsyms_CXX \
11988 include_expsyms_CXX; do
11989
11990 case $var in
11991 old_archive_cmds_CXX | \
11992 old_archive_from_new_cmds_CXX | \
11993 archive_cmds_CXX | \
11994 archive_expsym_cmds_CXX | \
11995 module_cmds_CXX | \
11996 module_expsym_cmds_CXX | \
11997 old_archive_from_expsyms_cmds_CXX | \
11998 export_symbols_cmds_CXX | \
11999 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000 postinstall_cmds | postuninstall_cmds | \
12001 old_postinstall_cmds | old_postuninstall_cmds | \
12002 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003 # Double-quote double-evaled strings.
12004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005 ;;
12006 *)
12007 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12008 ;;
12009 esac
12010 done
12011
12012 case $lt_echo in
12013 *'\$0 --fallback-echo"')
12014 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12015 ;;
12016 esac
12017
12018cfgfile="$ofile"
12019
12020 cat <<__EOF__ >> "$cfgfile"
12021# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12022
12023# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12024
12025# Shell to use when invoking shell scripts.
12026SHELL=$lt_SHELL
12027
12028# Whether or not to build shared libraries.
12029build_libtool_libs=$enable_shared
12030
12031# Whether or not to build static libraries.
12032build_old_libs=$enable_static
12033
12034# Whether or not to add -lc for building shared libraries.
12035build_libtool_need_lc=$archive_cmds_need_lc_CXX
12036
12037# Whether or not to disallow shared libs when runtime libs are static
12038allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12039
12040# Whether or not to optimize for fast installation.
12041fast_install=$enable_fast_install
12042
12043# The host system.
12044host_alias=$host_alias
12045host=$host
12046
12047# An echo program that does not interpret backslashes.
12048echo=$lt_echo
12049
12050# The archiver.
12051AR=$lt_AR
12052AR_FLAGS=$lt_AR_FLAGS
12053
12054# A C compiler.
12055LTCC=$lt_LTCC
12056
12057# A language-specific compiler.
12058CC=$lt_compiler_CXX
12059
12060# Is the compiler the GNU C compiler?
12061with_gcc=$GCC_CXX
12062
12063# An ERE matcher.
12064EGREP=$lt_EGREP
12065
12066# The linker used to build libraries.
12067LD=$lt_LD_CXX
12068
12069# Whether we need hard or soft links.
12070LN_S=$lt_LN_S
12071
12072# A BSD-compatible nm program.
12073NM=$lt_NM
12074
12075# A symbol stripping program
12076STRIP=$lt_STRIP
12077
12078# Used to examine libraries when file_magic_cmd begins "file"
12079MAGIC_CMD=$MAGIC_CMD
12080
12081# Used on cygwin: DLL creation program.
12082DLLTOOL="$DLLTOOL"
12083
12084# Used on cygwin: object dumper.
12085OBJDUMP="$OBJDUMP"
12086
12087# Used on cygwin: assembler.
12088AS="$AS"
12089
12090# The name of the directory that contains temporary libtool files.
12091objdir=$objdir
12092
12093# How to create reloadable object files.
12094reload_flag=$lt_reload_flag
12095reload_cmds=$lt_reload_cmds
12096
12097# How to pass a linker flag through the compiler.
12098wl=$lt_lt_prog_compiler_wl_CXX
12099
12100# Object file suffix (normally "o").
12101objext="$ac_objext"
12102
12103# Old archive suffix (normally "a").
12104libext="$libext"
12105
12106# Shared library suffix (normally ".so").
12107shrext='$shrext'
12108
12109# Executable file suffix (normally "").
12110exeext="$exeext"
12111
12112# Additional compiler flags for building library objects.
12113pic_flag=$lt_lt_prog_compiler_pic_CXX
12114pic_mode=$pic_mode
12115
12116# What is the maximum length of a command?
12117max_cmd_len=$lt_cv_sys_max_cmd_len
12118
12119# Does compiler simultaneously support -c and -o options?
12120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12121
12122# Must we lock files when doing compilation ?
12123need_locks=$lt_need_locks
12124
12125# Do we need the lib prefix for modules?
12126need_lib_prefix=$need_lib_prefix
12127
12128# Do we need a version for libraries?
12129need_version=$need_version
12130
12131# Whether dlopen is supported.
12132dlopen_support=$enable_dlopen
12133
12134# Whether dlopen of programs is supported.
12135dlopen_self=$enable_dlopen_self
12136
12137# Whether dlopen of statically linked programs is supported.
12138dlopen_self_static=$enable_dlopen_self_static
12139
12140# Compiler flag to prevent dynamic linking.
12141link_static_flag=$lt_lt_prog_compiler_static_CXX
12142
12143# Compiler flag to turn off builtin functions.
12144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12145
12146# Compiler flag to allow reflexive dlopens.
12147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12148
12149# Compiler flag to generate shared objects directly from archives.
12150whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12151
12152# Compiler flag to generate thread-safe objects.
12153thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12154
12155# Library versioning type.
12156version_type=$version_type
12157
12158# Format of library name prefix.
12159libname_spec=$lt_libname_spec
12160
12161# List of archive names. First name is the real one, the rest are links.
12162# The last name is the one that the linker finds with -lNAME.
12163library_names_spec=$lt_library_names_spec
12164
12165# The coded name of the library, if different from the real name.
12166soname_spec=$lt_soname_spec
12167
12168# Commands used to build and install an old-style archive.
12169RANLIB=$lt_RANLIB
12170old_archive_cmds=$lt_old_archive_cmds_CXX
12171old_postinstall_cmds=$lt_old_postinstall_cmds
12172old_postuninstall_cmds=$lt_old_postuninstall_cmds
12173
12174# Create an old-style archive from a shared archive.
12175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12176
12177# Create a temporary old-style archive to link instead of a shared archive.
12178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12179
12180# Commands used to build and install a shared archive.
12181archive_cmds=$lt_archive_cmds_CXX
12182archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12183postinstall_cmds=$lt_postinstall_cmds
12184postuninstall_cmds=$lt_postuninstall_cmds
12185
12186# Commands used to build a loadable module (assumed same as above if empty)
12187module_cmds=$lt_module_cmds_CXX
12188module_expsym_cmds=$lt_module_expsym_cmds_CXX
12189
12190# Commands to strip libraries.
12191old_striplib=$lt_old_striplib
12192striplib=$lt_striplib
12193
12194# Dependencies to place before the objects being linked to create a
12195# shared library.
12196predep_objects=$lt_predep_objects_CXX
12197
12198# Dependencies to place after the objects being linked to create a
12199# shared library.
12200postdep_objects=$lt_postdep_objects_CXX
12201
12202# Dependencies to place before the objects being linked to create a
12203# shared library.
12204predeps=$lt_predeps_CXX
12205
12206# Dependencies to place after the objects being linked to create a
12207# shared library.
12208postdeps=$lt_postdeps_CXX
12209
12210# The library search path used internally by the compiler when linking
12211# a shared library.
12212compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12213
12214# Method to check whether dependent libraries are shared objects.
12215deplibs_check_method=$lt_deplibs_check_method
12216
12217# Command to use when deplibs_check_method == file_magic.
12218file_magic_cmd=$lt_file_magic_cmd
12219
12220# Flag that allows shared libraries with undefined symbols to be built.
12221allow_undefined_flag=$lt_allow_undefined_flag_CXX
12222
12223# Flag that forces no undefined symbols.
12224no_undefined_flag=$lt_no_undefined_flag_CXX
12225
12226# Commands used to finish a libtool library installation in a directory.
12227finish_cmds=$lt_finish_cmds
12228
12229# Same as above, but a single script fragment to be evaled but not shown.
12230finish_eval=$lt_finish_eval
12231
12232# Take the output of nm and produce a listing of raw symbols and C names.
12233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12234
12235# Transform the output of nm in a proper C declaration
12236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12237
12238# Transform the output of nm in a C name address pair
12239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12240
12241# This is the shared library runtime path variable.
12242runpath_var=$runpath_var
12243
12244# This is the shared library path variable.
12245shlibpath_var=$shlibpath_var
12246
12247# Is shlibpath searched before the hard-coded library search path?
12248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12249
12250# How to hardcode a shared library path into an executable.
12251hardcode_action=$hardcode_action_CXX
12252
12253# Whether we should hardcode library paths into libraries.
12254hardcode_into_libs=$hardcode_into_libs
12255
12256# Flag to hardcode \$libdir into a binary during linking.
12257# This must work even if \$libdir does not exist.
12258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12259
12260# If ld is used when linking, flag to hardcode \$libdir into
12261# a binary during linking. This must work even if \$libdir does
12262# not exist.
12263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12264
12265# Whether we need a single -rpath flag with a separated argument.
12266hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12267
12268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12269# resulting binary.
12270hardcode_direct=$hardcode_direct_CXX
12271
12272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12273# resulting binary.
12274hardcode_minus_L=$hardcode_minus_L_CXX
12275
12276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12277# the resulting binary.
12278hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12279
12280# Set to yes if building a shared library automatically hardcodes DIR into the library
12281# and all subsequent libraries and executables linked against it.
12282hardcode_automatic=$hardcode_automatic_CXX
12283
12284# Variables whose values should be saved in libtool wrapper scripts and
12285# restored at relink time.
12286variables_saved_for_relink="$variables_saved_for_relink"
12287
12288# Whether libtool must link a program against all its dependency libraries.
12289link_all_deplibs=$link_all_deplibs_CXX
12290
12291# Compile-time system search path for libraries
12292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12293
12294# Run-time system search path for libraries
12295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12296
12297# Fix the shell variable \$srcfile for the compiler.
12298fix_srcfile_path="$fix_srcfile_path_CXX"
12299
12300# Set to yes if exported symbols are required.
12301always_export_symbols=$always_export_symbols_CXX
12302
12303# The commands to list exported symbols.
12304export_symbols_cmds=$lt_export_symbols_cmds_CXX
12305
12306# The commands to extract the exported symbol list from a shared archive.
12307extract_expsyms_cmds=$lt_extract_expsyms_cmds
12308
12309# Symbols that should not be listed in the preloaded symbols.
12310exclude_expsyms=$lt_exclude_expsyms_CXX
12311
12312# Symbols that must always be exported.
12313include_expsyms=$lt_include_expsyms_CXX
12314
12315# ### END LIBTOOL TAG CONFIG: $tagname
12316
12317__EOF__
12318
12319
12320else
12321 # If there is no Makefile yet, we rely on a make rule to execute
12322 # `config.status --recheck' to rerun these tests and create the
12323 # libtool script then.
12324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12325 if test -f "$ltmain_in"; then
12326 test -f Makefile && make "$ltmain"
12327 fi
12328fi
12329
12330
12331ac_ext=c
12332ac_cpp='$CPP $CPPFLAGS'
12333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335ac_compiler_gnu=$ac_cv_c_compiler_gnu
12336
12337CC=$lt_save_CC
12338LDCXX=$LD
12339LD=$lt_save_LD
12340GCC=$lt_save_GCC
12341with_gnu_ldcxx=$with_gnu_ld
12342with_gnu_ld=$lt_save_with_gnu_ld
12343lt_cv_path_LDCXX=$lt_cv_path_LD
12344lt_cv_path_LD=$lt_save_path_LD
12345lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12346lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12347
12348 else
12349 tagname=""
12350 fi
12351 ;;
12352
12353 F77)
12354 if test -n "$F77" && test "X$F77" != "Xno"; then
12355
12356ac_ext=f
12357ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12358ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12360
12361
12362archive_cmds_need_lc_F77=no
12363allow_undefined_flag_F77=
12364always_export_symbols_F77=no
12365archive_expsym_cmds_F77=
12366export_dynamic_flag_spec_F77=
12367hardcode_direct_F77=no
12368hardcode_libdir_flag_spec_F77=
12369hardcode_libdir_flag_spec_ld_F77=
12370hardcode_libdir_separator_F77=
12371hardcode_minus_L_F77=no
12372hardcode_automatic_F77=no
12373module_cmds_F77=
12374module_expsym_cmds_F77=
12375link_all_deplibs_F77=unknown
12376old_archive_cmds_F77=$old_archive_cmds
12377no_undefined_flag_F77=
12378whole_archive_flag_spec_F77=
12379enable_shared_with_static_runtimes_F77=no
12380
12381# Source file extension for f77 test sources.
12382ac_ext=f
12383
12384# Object file extension for compiled f77 test sources.
12385objext=o
12386objext_F77=$objext
12387
12388# Code to be used in simple compile tests
12389lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12390
12391# Code to be used in simple link tests
12392lt_simple_link_test_code=" program t\n end\n"
12393
12394# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12395
12396# If no C compiler was specified, use CC.
12397LTCC=${LTCC-"$CC"}
12398
12399# Allow CC to be a program name with arguments.
12400compiler=$CC
12401
12402
12403# Allow CC to be a program name with arguments.
12404lt_save_CC="$CC"
12405CC=${F77-"f77"}
12406compiler=$CC
12407compiler_F77=$CC
12408cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12409
12410echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12411echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12412echo "$as_me:$LINENO: result: $can_build_shared" >&5
12413echo "${ECHO_T}$can_build_shared" >&6
12414
12415echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12416echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12417test "$can_build_shared" = "no" && enable_shared=no
12418
12419# On AIX, shared libraries and static libraries use the same namespace, and
12420# are all built from PIC.
12421case "$host_os" in
12422aix3*)
12423 test "$enable_shared" = yes && enable_static=no
12424 if test -n "$RANLIB"; then
12425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12426 postinstall_cmds='$RANLIB $lib'
12427 fi
12428 ;;
12429aix4*)
12430 test "$enable_shared" = yes && enable_static=no
12431 ;;
12432esac
12433echo "$as_me:$LINENO: result: $enable_shared" >&5
12434echo "${ECHO_T}$enable_shared" >&6
12435
12436echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12437echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12438# Make sure either enable_shared or enable_static is yes.
12439test "$enable_shared" = yes || enable_static=yes
12440echo "$as_me:$LINENO: result: $enable_static" >&5
12441echo "${ECHO_T}$enable_static" >&6
12442
12443test "$ld_shlibs_F77" = no && can_build_shared=no
12444
12445GCC_F77="$G77"
12446LD_F77="$LD"
12447
12448lt_prog_compiler_wl_F77=
12449lt_prog_compiler_pic_F77=
12450lt_prog_compiler_static_F77=
12451
12452echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12453echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12454
12455 if test "$GCC" = yes; then
12456 lt_prog_compiler_wl_F77='-Wl,'
12457 lt_prog_compiler_static_F77='-static'
12458
12459 case $host_os in
12460 aix*)
12461 # All AIX code is PIC.
12462 if test "$host_cpu" = ia64; then
12463 # AIX 5 now supports IA64 processor
12464 lt_prog_compiler_static_F77='-Bstatic'
12465 fi
12466 ;;
12467
12468 amigaos*)
12469 # FIXME: we need at least 68020 code to build shared libraries, but
12470 # adding the `-m68020' flag to GCC prevents building anything better,
12471 # like `-m68040'.
12472 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12473 ;;
12474
12475 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12476 # PIC is the default for these OSes.
12477 ;;
12478
12479 mingw* | pw32* | os2*)
12480 # This hack is so that the source file can tell whether it is being
12481 # built for inclusion in a dll (and should export symbols for example).
12482 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12483 ;;
12484
12485 darwin* | rhapsody*)
12486 # PIC is the default on this platform
12487 # Common symbols not allowed in MH_DYLIB files
12488 lt_prog_compiler_pic_F77='-fno-common'
12489 ;;
12490
12491 msdosdjgpp*)
12492 # Just because we use GCC doesn't mean we suddenly get shared libraries
12493 # on systems that don't support them.
12494 lt_prog_compiler_can_build_shared_F77=no
12495 enable_shared=no
12496 ;;
12497
12498 sysv4*MP*)
12499 if test -d /usr/nec; then
12500 lt_prog_compiler_pic_F77=-Kconform_pic
12501 fi
12502 ;;
12503
12504 hpux*)
12505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12506 # not for PA HP-UX.
12507 case "$host_cpu" in
12508 hppa*64*|ia64*)
12509 # +Z the default
12510 ;;
12511 *)
12512 lt_prog_compiler_pic_F77='-fPIC'
12513 ;;
12514 esac
12515 ;;
12516
12517 *)
12518 lt_prog_compiler_pic_F77='-fPIC'
12519 ;;
12520 esac
12521 else
12522 # PORTME Check for flag to pass linker flags through the system compiler.
12523 case $host_os in
12524 aix*)
12525 lt_prog_compiler_wl_F77='-Wl,'
12526 if test "$host_cpu" = ia64; then
12527 # AIX 5 now supports IA64 processor
12528 lt_prog_compiler_static_F77='-Bstatic'
12529 else
12530 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12531 fi
12532 ;;
12533
12534 mingw* | pw32* | os2*)
12535 # This hack is so that the source file can tell whether it is being
12536 # built for inclusion in a dll (and should export symbols for example).
12537 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12538 ;;
12539
12540 hpux9* | hpux10* | hpux11*)
12541 lt_prog_compiler_wl_F77='-Wl,'
12542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12543 # not for PA HP-UX.
12544 case "$host_cpu" in
12545 hppa*64*|ia64*)
12546 # +Z the default
12547 ;;
12548 *)
12549 lt_prog_compiler_pic_F77='+Z'
12550 ;;
12551 esac
12552 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12553 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12554 ;;
12555
12556 irix5* | irix6* | nonstopux*)
12557 lt_prog_compiler_wl_F77='-Wl,'
12558 # PIC (with -KPIC) is the default.
12559 lt_prog_compiler_static_F77='-non_shared'
12560 ;;
12561
12562 newsos6)
12563 lt_prog_compiler_pic_F77='-KPIC'
12564 lt_prog_compiler_static_F77='-Bstatic'
12565 ;;
12566
12567 linux*)
12568 case $CC in
12569 icc* | ecc*)
12570 lt_prog_compiler_wl_F77='-Wl,'
12571 lt_prog_compiler_pic_F77='-KPIC'
12572 lt_prog_compiler_static_F77='-static'
12573 ;;
12574 ccc*)
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 # All Alpha code is PIC.
12577 lt_prog_compiler_static_F77='-non_shared'
12578 ;;
12579 esac
12580 ;;
12581
12582 osf3* | osf4* | osf5*)
12583 lt_prog_compiler_wl_F77='-Wl,'
12584 # All OSF/1 code is PIC.
12585 lt_prog_compiler_static_F77='-non_shared'
12586 ;;
12587
12588 sco3.2v5*)
12589 lt_prog_compiler_pic_F77='-Kpic'
12590 lt_prog_compiler_static_F77='-dn'
12591 ;;
12592
12593 solaris*)
12594 lt_prog_compiler_wl_F77='-Wl,'
12595 lt_prog_compiler_pic_F77='-KPIC'
12596 lt_prog_compiler_static_F77='-Bstatic'
12597 ;;
12598
12599 sunos4*)
12600 lt_prog_compiler_wl_F77='-Qoption ld '
12601 lt_prog_compiler_pic_F77='-PIC'
12602 lt_prog_compiler_static_F77='-Bstatic'
12603 ;;
12604
12605 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12606 lt_prog_compiler_wl_F77='-Wl,'
12607 lt_prog_compiler_pic_F77='-KPIC'
12608 lt_prog_compiler_static_F77='-Bstatic'
12609 ;;
12610
12611 sysv4*MP*)
12612 if test -d /usr/nec ;then
12613 lt_prog_compiler_pic_F77='-Kconform_pic'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 fi
12616 ;;
12617
12618 uts4*)
12619 lt_prog_compiler_pic_F77='-pic'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 ;;
12622
12623 *)
12624 lt_prog_compiler_can_build_shared_F77=no
12625 ;;
12626 esac
12627 fi
12628
12629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12630echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12631
12632#
12633# Check to make sure the PIC flag actually works.
12634#
12635if test -n "$lt_prog_compiler_pic_F77"; then
12636
12637echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12639if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641else
12642 lt_prog_compiler_pic_works_F77=no
12643 ac_outfile=conftest.$ac_objext
12644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12645 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12646 # Insert the option either (1) after the last *FLAGS variable, or
12647 # (2) before a word containing "conftest.", or (3) at the end.
12648 # Note that $ac_compile itself does not contain backslashes and begins
12649 # with a dollar sign (not a hyphen), so the echo should work correctly.
12650 # The option is referenced via a variable to avoid confusing sed.
12651 lt_compile=`echo "$ac_compile" | $SED \
12652 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12654 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000012655 (eval echo "\"\$as_me:12655: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012656 (eval "$lt_compile" 2>conftest.err)
12657 ac_status=$?
12658 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000012659 echo "$as_me:12659: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012660 if (exit $ac_status) && test -s "$ac_outfile"; then
12661 # The compiler can only warn and ignore the option if not recognized
12662 # So say no if there are warnings
12663 if test ! -s conftest.err; then
12664 lt_prog_compiler_pic_works_F77=yes
12665 fi
12666 fi
12667 $rm conftest*
12668
12669fi
12670echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12671echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12672
12673if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12674 case $lt_prog_compiler_pic_F77 in
12675 "" | " "*) ;;
12676 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12677 esac
12678else
12679 lt_prog_compiler_pic_F77=
12680 lt_prog_compiler_can_build_shared_F77=no
12681fi
12682
12683fi
12684case "$host_os" in
12685 # For platforms which do not support PIC, -DPIC is meaningless:
12686 *djgpp*)
12687 lt_prog_compiler_pic_F77=
12688 ;;
12689 *)
12690 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12691 ;;
12692esac
12693
12694echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12695echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12696if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699 lt_cv_prog_compiler_c_o_F77=no
12700 $rm -r conftest 2>/dev/null
12701 mkdir conftest
12702 cd conftest
12703 mkdir out
12704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12705
12706 lt_compiler_flag="-o out/conftest2.$ac_objext"
12707 # Insert the option either (1) after the last *FLAGS variable, or
12708 # (2) before a word containing "conftest.", or (3) at the end.
12709 # Note that $ac_compile itself does not contain backslashes and begins
12710 # with a dollar sign (not a hyphen), so the echo should work correctly.
12711 lt_compile=`echo "$ac_compile" | $SED \
12712 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12714 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000012715 (eval echo "\"\$as_me:12715: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012716 (eval "$lt_compile" 2>out/conftest.err)
12717 ac_status=$?
12718 cat out/conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000012719 echo "$as_me:12719: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12721 then
12722 # The compiler can only warn and ignore the option if not recognized
12723 # So say no if there are warnings
12724 if test ! -s out/conftest.err; then
12725 lt_cv_prog_compiler_c_o_F77=yes
12726 fi
12727 fi
12728 chmod u+w .
12729 $rm conftest*
12730 # SGI C++ compiler will create directory out/ii_files/ for
12731 # template instantiation
12732 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12733 $rm out/* && rmdir out
12734 cd ..
12735 rmdir conftest
12736 $rm conftest*
12737
12738fi
12739echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12740echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12741
12742
12743hard_links="nottested"
12744if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12745 # do not overwrite the value of need_locks provided by the user
12746 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12747echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12748 hard_links=yes
12749 $rm conftest*
12750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12751 touch conftest.a
12752 ln conftest.a conftest.b 2>&5 || hard_links=no
12753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12754 echo "$as_me:$LINENO: result: $hard_links" >&5
12755echo "${ECHO_T}$hard_links" >&6
12756 if test "$hard_links" = no; then
12757 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12758echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12759 need_locks=warn
12760 fi
12761else
12762 need_locks=no
12763fi
12764
12765echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12766echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12767
12768 runpath_var=
12769 allow_undefined_flag_F77=
12770 enable_shared_with_static_runtimes_F77=no
12771 archive_cmds_F77=
12772 archive_expsym_cmds_F77=
12773 old_archive_From_new_cmds_F77=
12774 old_archive_from_expsyms_cmds_F77=
12775 export_dynamic_flag_spec_F77=
12776 whole_archive_flag_spec_F77=
12777 thread_safe_flag_spec_F77=
12778 hardcode_libdir_flag_spec_F77=
12779 hardcode_libdir_flag_spec_ld_F77=
12780 hardcode_libdir_separator_F77=
12781 hardcode_direct_F77=no
12782 hardcode_minus_L_F77=no
12783 hardcode_shlibpath_var_F77=unsupported
12784 link_all_deplibs_F77=unknown
12785 hardcode_automatic_F77=no
12786 module_cmds_F77=
12787 module_expsym_cmds_F77=
12788 always_export_symbols_F77=no
12789 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12790 # include_expsyms should be a list of space-separated symbols to be *always*
12791 # included in the symbol list
12792 include_expsyms_F77=
12793 # exclude_expsyms can be an extended regexp of symbols to exclude
12794 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12795 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12796 # as well as any symbol that contains `d'.
12797 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12798 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12799 # platforms (ab)use it in PIC code, but their linkers get confused if
12800 # the symbol is explicitly referenced. Since portable code cannot
12801 # rely on this symbol name, it's probably fine to never include it in
12802 # preloaded symbol tables.
12803 extract_expsyms_cmds=
12804
12805 case $host_os in
12806 cygwin* | mingw* | pw32*)
12807 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12808 # When not using gcc, we currently assume that we are using
12809 # Microsoft Visual C++.
12810 if test "$GCC" != yes; then
12811 with_gnu_ld=no
12812 fi
12813 ;;
12814 openbsd*)
12815 with_gnu_ld=no
12816 ;;
12817 esac
12818
12819 ld_shlibs_F77=yes
12820 if test "$with_gnu_ld" = yes; then
12821 # If archive_cmds runs LD, not CC, wlarc should be empty
12822 wlarc='${wl}'
12823
12824 # See if GNU ld supports shared libraries.
12825 case $host_os in
12826 aix3* | aix4* | aix5*)
12827 # On AIX/PPC, the GNU linker is very broken
12828 if test "$host_cpu" != ia64; then
12829 ld_shlibs_F77=no
12830 cat <<EOF 1>&2
12831
12832*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12833*** to be unable to reliably create shared libraries on AIX.
12834*** Therefore, libtool is disabling shared libraries support. If you
12835*** really care for shared libraries, you may want to modify your PATH
12836*** so that a non-GNU linker is found, and then restart.
12837
12838EOF
12839 fi
12840 ;;
12841
12842 amigaos*)
12843 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)'
12844 hardcode_libdir_flag_spec_F77='-L$libdir'
12845 hardcode_minus_L_F77=yes
12846
12847 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12848 # that the semantics of dynamic libraries on AmigaOS, at least up
12849 # to version 4, is to share data among multiple programs linked
12850 # with the same dynamic library. Since this doesn't match the
12851 # behavior of shared libraries on other platforms, we can't use
12852 # them.
12853 ld_shlibs_F77=no
12854 ;;
12855
12856 beos*)
12857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12858 allow_undefined_flag_F77=unsupported
12859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12860 # support --undefined. This deserves some investigation. FIXME
12861 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 else
12863 ld_shlibs_F77=no
12864 fi
12865 ;;
12866
12867 cygwin* | mingw* | pw32*)
12868 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12869 # as there is no search path for DLLs.
12870 hardcode_libdir_flag_spec_F77='-L$libdir'
12871 allow_undefined_flag_F77=unsupported
12872 always_export_symbols_F77=no
12873 enable_shared_with_static_runtimes_F77=yes
12874 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12875
12876 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12878 # If the export-symbols file already is a .def file (1st line
12879 # is EXPORTS), use it as is; otherwise, prepend...
12880 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12881 cp $export_symbols $output_objdir/$soname.def;
12882 else
12883 echo EXPORTS > $output_objdir/$soname.def;
12884 cat $export_symbols >> $output_objdir/$soname.def;
12885 fi~
12886 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12887 else
12888 ld_shlibs=no
12889 fi
12890 ;;
12891
12892 netbsd* | knetbsd*-gnu)
12893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12894 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12895 wlarc=
12896 else
12897 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899 fi
12900 ;;
12901
12902 solaris* | sysv5*)
12903 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12904 ld_shlibs_F77=no
12905 cat <<EOF 1>&2
12906
12907*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12908*** create shared libraries on Solaris systems. Therefore, libtool
12909*** is disabling shared libraries support. We urge you to upgrade GNU
12910*** binutils to release 2.9.1 or newer. Another option is to modify
12911*** your PATH or compiler configuration so that the native linker is
12912*** used, and then restart.
12913
12914EOF
12915 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12918 else
12919 ld_shlibs_F77=no
12920 fi
12921 ;;
12922
12923 sunos4*)
12924 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12925 wlarc=
12926 hardcode_direct_F77=yes
12927 hardcode_shlibpath_var_F77=no
12928 ;;
12929
12930 linux*)
12931 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12932 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933 archive_cmds_F77="$tmp_archive_cmds"
12934 supports_anon_versioning=no
12935 case `$LD -v 2>/dev/null` in
12936 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12939 *\ 2.11.*) ;; # other 2.11 versions
12940 *) supports_anon_versioning=yes ;;
12941 esac
12942 if test $supports_anon_versioning = yes; then
12943 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12944cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12945$echo "local: *; };" >> $output_objdir/$libname.ver~
12946 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12947 else
12948 archive_expsym_cmds_F77="$tmp_archive_cmds"
12949 fi
12950 else
12951 ld_shlibs_F77=no
12952 fi
12953 ;;
12954
12955 *)
12956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959 else
12960 ld_shlibs_F77=no
12961 fi
12962 ;;
12963 esac
12964
12965 if test "$ld_shlibs_F77" = yes; then
12966 runpath_var=LD_RUN_PATH
12967 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12968 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12969 # ancient GNU ld didn't support --whole-archive et. al.
12970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12971 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12972 else
12973 whole_archive_flag_spec_F77=
12974 fi
12975 fi
12976 else
12977 # PORTME fill in a description of your system's linker (not GNU ld)
12978 case $host_os in
12979 aix3*)
12980 allow_undefined_flag_F77=unsupported
12981 always_export_symbols_F77=yes
12982 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'
12983 # Note: this linker hardcodes the directories in LIBPATH if there
12984 # are no directories specified by -L.
12985 hardcode_minus_L_F77=yes
12986 if test "$GCC" = yes && test -z "$link_static_flag"; then
12987 # Neither direct hardcoding nor static linking is supported with a
12988 # broken collect2.
12989 hardcode_direct_F77=unsupported
12990 fi
12991 ;;
12992
12993 aix4* | aix5*)
12994 if test "$host_cpu" = ia64; then
12995 # On IA64, the linker does run time linking by default, so we don't
12996 # have to do anything special.
12997 aix_use_runtimelinking=no
12998 exp_sym_flag='-Bexport'
12999 no_entry_flag=""
13000 else
13001 # If we're using GNU nm, then we don't want the "-C" option.
13002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13004 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'
13005 else
13006 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'
13007 fi
13008 aix_use_runtimelinking=no
13009
13010 # Test if we are trying to use run time linking or normal
13011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13012 # need to do runtime linking.
13013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13014 for ld_flag in $LDFLAGS; do
13015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13016 aix_use_runtimelinking=yes
13017 break
13018 fi
13019 done
13020 esac
13021
13022 exp_sym_flag='-bexport'
13023 no_entry_flag='-bnoentry'
13024 fi
13025
13026 # When large executables or shared objects are built, AIX ld can
13027 # have problems creating the table of contents. If linking a library
13028 # or program results in "error TOC overflow" add -mminimal-toc to
13029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13031
13032 archive_cmds_F77=''
13033 hardcode_direct_F77=yes
13034 hardcode_libdir_separator_F77=':'
13035 link_all_deplibs_F77=yes
13036
13037 if test "$GCC" = yes; then
13038 case $host_os in aix4.012|aix4.012.*)
13039 # We only want to do this on AIX 4.2 and lower, the check
13040 # below for broken collect2 doesn't work under 4.3+
13041 collect2name=`${CC} -print-prog-name=collect2`
13042 if test -f "$collect2name" && \
13043 strings "$collect2name" | grep resolve_lib_name >/dev/null
13044 then
13045 # We have reworked collect2
13046 hardcode_direct_F77=yes
13047 else
13048 # We have old collect2
13049 hardcode_direct_F77=unsupported
13050 # It fails to find uninstalled libraries when the uninstalled
13051 # path is not listed in the libpath. Setting hardcode_minus_L
13052 # to unsupported forces relinking
13053 hardcode_minus_L_F77=yes
13054 hardcode_libdir_flag_spec_F77='-L$libdir'
13055 hardcode_libdir_separator_F77=
13056 fi
13057 esac
13058 shared_flag='-shared'
13059 else
13060 # not using gcc
13061 if test "$host_cpu" = ia64; then
13062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063 # chokes on -Wl,-G. The following line is correct:
13064 shared_flag='-G'
13065 else
13066 if test "$aix_use_runtimelinking" = yes; then
13067 shared_flag='${wl}-G'
13068 else
13069 shared_flag='${wl}-bM:SRE'
13070 fi
13071 fi
13072 fi
13073
13074 # It seems that -bexpall does not export symbols beginning with
13075 # underscore (_), so it is better to generate a list of symbols to export.
13076 always_export_symbols_F77=yes
13077 if test "$aix_use_runtimelinking" = yes; then
13078 # Warning - without using the other runtime loading flags (-brtl),
13079 # -berok will link without error, but may produce a broken library.
13080 allow_undefined_flag_F77='-berok'
13081 # Determine the default libpath from the value encoded in an empty executable.
13082 cat >conftest.$ac_ext <<_ACEOF
13083 program main
13084
13085 end
13086_ACEOF
13087rm -f conftest.$ac_objext conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013096 { ac_try='test -z "$ac_f77_werror_flag"
13097 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109
13110aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13111}'`
13112# Check for a 64-bit object if we didn't find anything.
13113if 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; }
13114}'`; fi
13115else
13116 echo "$as_me: failed program was:" >&5
13117sed 's/^/| /' conftest.$ac_ext >&5
13118
13119fi
13120rm -f conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13123
13124 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13125 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"
13126 else
13127 if test "$host_cpu" = ia64; then
13128 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13129 allow_undefined_flag_F77="-z nodefs"
13130 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"
13131 else
13132 # Determine the default libpath from the value encoded in an empty executable.
13133 cat >conftest.$ac_ext <<_ACEOF
13134 program main
13135
13136 end
13137_ACEOF
13138rm -f conftest.$ac_objext conftest$ac_exeext
13139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013147 { ac_try='test -z "$ac_f77_werror_flag"
13148 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160
13161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13162}'`
13163# Check for a 64-bit object if we didn't find anything.
13164if 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; }
13165}'`; fi
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170fi
13171rm -f conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13174
13175 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13176 # Warning - without using the other run time loading flags,
13177 # -berok will link without error, but may produce a broken library.
13178 no_undefined_flag_F77=' ${wl}-bernotok'
13179 allow_undefined_flag_F77=' ${wl}-berok'
13180 # -bexpall does not export symbols beginning with underscore (_)
13181 always_export_symbols_F77=yes
13182 # Exported symbols can be pulled into shared objects from archives
13183 whole_archive_flag_spec_F77=' '
13184 archive_cmds_need_lc_F77=yes
13185 # This is similar to how AIX traditionally builds it's shared libraries.
13186 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'
13187 fi
13188 fi
13189 ;;
13190
13191 amigaos*)
13192 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)'
13193 hardcode_libdir_flag_spec_F77='-L$libdir'
13194 hardcode_minus_L_F77=yes
13195 # see comment about different semantics on the GNU ld section
13196 ld_shlibs_F77=no
13197 ;;
13198
13199 bsdi4*)
13200 export_dynamic_flag_spec_F77=-rdynamic
13201 ;;
13202
13203 cygwin* | mingw* | pw32*)
13204 # When not using gcc, we currently assume that we are using
13205 # Microsoft Visual C++.
13206 # hardcode_libdir_flag_spec is actually meaningless, as there is
13207 # no search path for DLLs.
13208 hardcode_libdir_flag_spec_F77=' '
13209 allow_undefined_flag_F77=unsupported
13210 # Tell ltmain to make .lib files, not .a files.
13211 libext=lib
13212 # Tell ltmain to make .dll files, not .so files.
13213 shrext=".dll"
13214 # FIXME: Setting linknames here is a bad hack.
13215 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13216 # The linker will automatically build a .lib file if we build a DLL.
13217 old_archive_From_new_cmds_F77='true'
13218 # FIXME: Should let the user specify the lib program.
13219 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13220 fix_srcfile_path='`cygpath -w "$srcfile"`'
13221 enable_shared_with_static_runtimes_F77=yes
13222 ;;
13223
13224 darwin* | rhapsody*)
13225 if test "$GXX" = yes ; then
13226 archive_cmds_need_lc_F77=no
13227 case "$host_os" in
13228 rhapsody* | darwin1.[012])
13229 allow_undefined_flag_F77='-undefined suppress'
13230 ;;
13231 *) # Darwin 1.3 on
13232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13233 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13234 else
13235 case ${MACOSX_DEPLOYMENT_TARGET} in
13236 10.[012])
13237 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13238 ;;
13239 10.*)
13240 allow_undefined_flag_F77='-undefined dynamic_lookup'
13241 ;;
13242 esac
13243 fi
13244 ;;
13245 esac
13246 lt_int_apple_cc_single_mod=no
13247 output_verbose_link_cmd='echo'
13248 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13249 lt_int_apple_cc_single_mod=yes
13250 fi
13251 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13252 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13253 else
13254 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'
13255 fi
13256 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13259 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}'
13260 else
13261 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}'
13262 fi
13263 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}'
13264 hardcode_direct_F77=no
13265 hardcode_automatic_F77=yes
13266 hardcode_shlibpath_var_F77=unsupported
13267 whole_archive_flag_spec_F77='-all_load $convenience'
13268 link_all_deplibs_F77=yes
13269 else
13270 ld_shlibs_F77=no
13271 fi
13272 ;;
13273
13274 dgux*)
13275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13276 hardcode_libdir_flag_spec_F77='-L$libdir'
13277 hardcode_shlibpath_var_F77=no
13278 ;;
13279
13280 freebsd1*)
13281 ld_shlibs_F77=no
13282 ;;
13283
13284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13285 # support. Future versions do this automatically, but an explicit c++rt0.o
13286 # does not break anything, and helps significantly (at the cost of a little
13287 # extra space).
13288 freebsd2.2*)
13289 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13290 hardcode_libdir_flag_spec_F77='-R$libdir'
13291 hardcode_direct_F77=yes
13292 hardcode_shlibpath_var_F77=no
13293 ;;
13294
13295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13296 freebsd2*)
13297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_direct_F77=yes
13299 hardcode_minus_L_F77=yes
13300 hardcode_shlibpath_var_F77=no
13301 ;;
13302
13303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13304 freebsd* | kfreebsd*-gnu)
13305 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13306 hardcode_libdir_flag_spec_F77='-R$libdir'
13307 hardcode_direct_F77=yes
13308 hardcode_shlibpath_var_F77=no
13309 ;;
13310
13311 hpux9*)
13312 if test "$GCC" = yes; then
13313 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'
13314 else
13315 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'
13316 fi
13317 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13318 hardcode_libdir_separator_F77=:
13319 hardcode_direct_F77=yes
13320
13321 # hardcode_minus_L: Not really in the search PATH,
13322 # but as the default location of the library.
13323 hardcode_minus_L_F77=yes
13324 export_dynamic_flag_spec_F77='${wl}-E'
13325 ;;
13326
13327 hpux10* | hpux11*)
13328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13329 case "$host_cpu" in
13330 hppa*64*|ia64*)
13331 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 *)
13334 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13335 ;;
13336 esac
13337 else
13338 case "$host_cpu" in
13339 hppa*64*|ia64*)
13340 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13341 ;;
13342 *)
13343 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13344 ;;
13345 esac
13346 fi
13347 if test "$with_gnu_ld" = no; then
13348 case "$host_cpu" in
13349 hppa*64*)
13350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13351 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13352 hardcode_libdir_separator_F77=:
13353 hardcode_direct_F77=no
13354 hardcode_shlibpath_var_F77=no
13355 ;;
13356 ia64*)
13357 hardcode_libdir_flag_spec_F77='-L$libdir'
13358 hardcode_direct_F77=no
13359 hardcode_shlibpath_var_F77=no
13360
13361 # hardcode_minus_L: Not really in the search PATH,
13362 # but as the default location of the library.
13363 hardcode_minus_L_F77=yes
13364 ;;
13365 *)
13366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13367 hardcode_libdir_separator_F77=:
13368 hardcode_direct_F77=yes
13369 export_dynamic_flag_spec_F77='${wl}-E'
13370
13371 # hardcode_minus_L: Not really in the search PATH,
13372 # but as the default location of the library.
13373 hardcode_minus_L_F77=yes
13374 ;;
13375 esac
13376 fi
13377 ;;
13378
13379 irix5* | irix6* | nonstopux*)
13380 if test "$GCC" = yes; then
13381 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'
13382 else
13383 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'
13384 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13385 fi
13386 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13387 hardcode_libdir_separator_F77=:
13388 link_all_deplibs_F77=yes
13389 ;;
13390
13391 netbsd* | knetbsd*-gnu)
13392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13393 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13394 else
13395 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13396 fi
13397 hardcode_libdir_flag_spec_F77='-R$libdir'
13398 hardcode_direct_F77=yes
13399 hardcode_shlibpath_var_F77=no
13400 ;;
13401
13402 newsos6)
13403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404 hardcode_direct_F77=yes
13405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13406 hardcode_libdir_separator_F77=:
13407 hardcode_shlibpath_var_F77=no
13408 ;;
13409
13410 openbsd*)
13411 hardcode_direct_F77=yes
13412 hardcode_shlibpath_var_F77=no
13413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13415 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13416 export_dynamic_flag_spec_F77='${wl}-E'
13417 else
13418 case $host_os in
13419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13421 hardcode_libdir_flag_spec_F77='-R$libdir'
13422 ;;
13423 *)
13424 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13425 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13426 ;;
13427 esac
13428 fi
13429 ;;
13430
13431 os2*)
13432 hardcode_libdir_flag_spec_F77='-L$libdir'
13433 hardcode_minus_L_F77=yes
13434 allow_undefined_flag_F77=unsupported
13435 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'
13436 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13437 ;;
13438
13439 osf3*)
13440 if test "$GCC" = yes; then
13441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13442 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'
13443 else
13444 allow_undefined_flag_F77=' -expect_unresolved \*'
13445 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'
13446 fi
13447 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13448 hardcode_libdir_separator_F77=:
13449 ;;
13450
13451 osf4* | osf5*) # as osf3* with the addition of -msym flag
13452 if test "$GCC" = yes; then
13453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13454 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'
13455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13456 else
13457 allow_undefined_flag_F77=' -expect_unresolved \*'
13458 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'
13459 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~
13460 $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'
13461
13462 # Both c and cxx compiler support -rpath directly
13463 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13464 fi
13465 hardcode_libdir_separator_F77=:
13466 ;;
13467
13468 sco3.2v5*)
13469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_shlibpath_var_F77=no
13471 export_dynamic_flag_spec_F77='${wl}-Bexport'
13472 runpath_var=LD_RUN_PATH
13473 hardcode_runpath_var=yes
13474 ;;
13475
13476 solaris*)
13477 no_undefined_flag_F77=' -z text'
13478 if test "$GCC" = yes; then
13479 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13481 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13482 else
13483 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13486 fi
13487 hardcode_libdir_flag_spec_F77='-R$libdir'
13488 hardcode_shlibpath_var_F77=no
13489 case $host_os in
13490 solaris2.[0-5] | solaris2.[0-5].*) ;;
13491 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13492 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13493 esac
13494 link_all_deplibs_F77=yes
13495 ;;
13496
13497 sunos4*)
13498 if test "x$host_vendor" = xsequent; then
13499 # Use $CC to link under sequent, because it throws in some extra .o
13500 # files that make .init and .fini sections work.
13501 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13502 else
13503 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13504 fi
13505 hardcode_libdir_flag_spec_F77='-L$libdir'
13506 hardcode_direct_F77=yes
13507 hardcode_minus_L_F77=yes
13508 hardcode_shlibpath_var_F77=no
13509 ;;
13510
13511 sysv4)
13512 case $host_vendor in
13513 sni)
13514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13515 hardcode_direct_F77=yes # is this really true???
13516 ;;
13517 siemens)
13518 ## LD is ld it makes a PLAMLIB
13519 ## CC just makes a GrossModule.
13520 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13521 reload_cmds_F77='$CC -r -o $output$reload_objs'
13522 hardcode_direct_F77=no
13523 ;;
13524 motorola)
13525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13527 ;;
13528 esac
13529 runpath_var='LD_RUN_PATH'
13530 hardcode_shlibpath_var_F77=no
13531 ;;
13532
13533 sysv4.3*)
13534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_shlibpath_var_F77=no
13536 export_dynamic_flag_spec_F77='-Bexport'
13537 ;;
13538
13539 sysv4*MP*)
13540 if test -d /usr/nec; then
13541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13542 hardcode_shlibpath_var_F77=no
13543 runpath_var=LD_RUN_PATH
13544 hardcode_runpath_var=yes
13545 ld_shlibs_F77=yes
13546 fi
13547 ;;
13548
13549 sysv4.2uw2*)
13550 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_direct_F77=yes
13552 hardcode_minus_L_F77=no
13553 hardcode_shlibpath_var_F77=no
13554 hardcode_runpath_var=yes
13555 runpath_var=LD_RUN_PATH
13556 ;;
13557
13558 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13559 no_undefined_flag_F77='${wl}-z ${wl}text'
13560 if test "$GCC" = yes; then
13561 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13562 else
13563 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 fi
13565 runpath_var='LD_RUN_PATH'
13566 hardcode_shlibpath_var_F77=no
13567 ;;
13568
13569 sysv5*)
13570 no_undefined_flag_F77=' -z text'
13571 # $CC -shared without GNU ld will not create a library from C++
13572 # object files and a static libstdc++, better avoid it by now
13573 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13574 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13576 hardcode_libdir_flag_spec_F77=
13577 hardcode_shlibpath_var_F77=no
13578 runpath_var='LD_RUN_PATH'
13579 ;;
13580
13581 uts4*)
13582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_libdir_flag_spec_F77='-L$libdir'
13584 hardcode_shlibpath_var_F77=no
13585 ;;
13586
13587 *)
13588 ld_shlibs_F77=no
13589 ;;
13590 esac
13591 fi
13592
13593echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13594echo "${ECHO_T}$ld_shlibs_F77" >&6
13595test "$ld_shlibs_F77" = no && can_build_shared=no
13596
13597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13598if test "$GCC" = yes; then
13599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13600fi
13601
13602#
13603# Do we need to explicitly link libc?
13604#
13605case "x$archive_cmds_need_lc_F77" in
13606x|xyes)
13607 # Assume -lc should be added
13608 archive_cmds_need_lc_F77=yes
13609
13610 if test "$enable_shared" = yes && test "$GCC" = yes; then
13611 case $archive_cmds_F77 in
13612 *'~'*)
13613 # FIXME: we may have to deal with multi-command sequences.
13614 ;;
13615 '$CC '*)
13616 # Test whether the compiler implicitly links with -lc since on some
13617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13618 # to ld, don't add -lc before -lgcc.
13619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13620echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13621 $rm conftest*
13622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13623
13624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625 (eval $ac_compile) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } 2>conftest.err; then
13629 soname=conftest
13630 lib=conftest
13631 libobjs=conftest.$ac_objext
13632 deplibs=
13633 wl=$lt_prog_compiler_wl_F77
13634 compiler_flags=-v
13635 linker_flags=-v
13636 verstring=
13637 output_objdir=.
13638 libname=conftest
13639 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13640 allow_undefined_flag_F77=
13641 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13642 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }
13646 then
13647 archive_cmds_need_lc_F77=no
13648 else
13649 archive_cmds_need_lc_F77=yes
13650 fi
13651 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13652 else
13653 cat conftest.err 1>&5
13654 fi
13655 $rm conftest*
13656 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13657echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13658 ;;
13659 esac
13660 fi
13661 ;;
13662esac
13663
13664echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13665echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13666library_names_spec=
13667libname_spec='lib$name'
13668soname_spec=
13669shrext=".so"
13670postinstall_cmds=
13671postuninstall_cmds=
13672finish_cmds=
13673finish_eval=
13674shlibpath_var=
13675shlibpath_overrides_runpath=unknown
13676version_type=none
13677dynamic_linker="$host_os ld.so"
13678sys_lib_dlsearch_path_spec="/lib /usr/lib"
13679if test "$GCC" = yes; then
13680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13681 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13682 # if the path contains ";" then we assume it to be the separator
13683 # otherwise default to the standard path separator (i.e. ":") - it is
13684 # assumed that no part of a normal pathname contains ";" but that should
13685 # okay in the real world where ";" in dirpaths is itself problematic.
13686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13687 else
13688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13689 fi
13690else
13691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13692fi
13693need_lib_prefix=unknown
13694hardcode_into_libs=no
13695
13696# when you set need_version to no, make sure it does not cause -set_version
13697# flags to be left without arguments
13698need_version=unknown
13699
13700case $host_os in
13701aix3*)
13702 version_type=linux
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13704 shlibpath_var=LIBPATH
13705
13706 # AIX 3 has no versioning support, so we append a major version to the name.
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 ;;
13709
13710aix4* | aix5*)
13711 version_type=linux
13712 need_lib_prefix=no
13713 need_version=no
13714 hardcode_into_libs=yes
13715 if test "$host_cpu" = ia64; then
13716 # AIX 5 supports IA64
13717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 else
13720 # With GCC up to 2.95.x, collect2 would create an import file
13721 # for dependence libraries. The import file would start with
13722 # the line `#! .'. This would cause the generated library to
13723 # depend on `.', always an invalid library. This was fixed in
13724 # development snapshots of GCC prior to 3.0.
13725 case $host_os in
13726 aix4 | aix4.[01] | aix4.[01].*)
13727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13728 echo ' yes '
13729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13730 :
13731 else
13732 can_build_shared=no
13733 fi
13734 ;;
13735 esac
13736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13737 # soname into executable. Probably we can add versioning support to
13738 # collect2, so additional links can be useful in future.
13739 if test "$aix_use_runtimelinking" = yes; then
13740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13741 # instead of lib<name>.a to let people know that these are not
13742 # typical AIX shared libraries.
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 else
13745 # We preserve .a as extension for shared libraries through AIX4.2
13746 # and later when we are not doing run time linking.
13747 library_names_spec='${libname}${release}.a $libname.a'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 fi
13750 shlibpath_var=LIBPATH
13751 fi
13752 ;;
13753
13754amigaos*)
13755 library_names_spec='$libname.ixlibrary $libname.a'
13756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13757 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'
13758 ;;
13759
13760beos*)
13761 library_names_spec='${libname}${shared_ext}'
13762 dynamic_linker="$host_os ld.so"
13763 shlibpath_var=LIBRARY_PATH
13764 ;;
13765
13766bsdi4*)
13767 version_type=linux
13768 need_version=no
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770 soname_spec='${libname}${release}${shared_ext}$major'
13771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13775 # the default ld.so.conf also contains /usr/contrib/lib and
13776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13777 # libtool to hard-code these into programs
13778 ;;
13779
13780cygwin* | mingw* | pw32*)
13781 version_type=windows
13782 shrext=".dll"
13783 need_version=no
13784 need_lib_prefix=no
13785
13786 case $GCC,$host_os in
13787 yes,cygwin* | yes,mingw* | yes,pw32*)
13788 library_names_spec='$libname.dll.a'
13789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13790 postinstall_cmds='base_file=`basename \${file}`~
13791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13792 dldir=$destdir/`dirname \$dlpath`~
13793 test -d \$dldir || mkdir -p \$dldir~
13794 $install_prog $dir/$dlname \$dldir/$dlname'
13795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13796 dlpath=$dir/\$dldll~
13797 $rm \$dlpath'
13798 shlibpath_overrides_runpath=yes
13799
13800 case $host_os in
13801 cygwin*)
13802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13805 ;;
13806 mingw*)
13807 # MinGW DLLs use traditional 'lib' prefix
13808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13811 # It is most probably a Windows format PATH printed by
13812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13813 # path with ; separators, and with drive letters. We can handle the
13814 # drive letters (cygwin fileutils understands them), so leave them,
13815 # especially as we might pass files found there to a mingw objdump,
13816 # which wouldn't understand a cygwinified path. Ahh.
13817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13818 else
13819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13820 fi
13821 ;;
13822 pw32*)
13823 # pw32 DLLs use 'pw' prefix rather than 'lib'
13824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13825 ;;
13826 esac
13827 ;;
13828
13829 *)
13830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13831 ;;
13832 esac
13833 dynamic_linker='Win32 ld.exe'
13834 # FIXME: first we should search . and the directory the executable is in
13835 shlibpath_var=PATH
13836 ;;
13837
13838darwin* | rhapsody*)
13839 dynamic_linker="$host_os dyld"
13840 version_type=darwin
13841 need_lib_prefix=no
13842 need_version=no
13843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13844 soname_spec='${libname}${release}${major}$shared_ext'
13845 shlibpath_overrides_runpath=yes
13846 shlibpath_var=DYLD_LIBRARY_PATH
13847 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13848 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13849 if test "$GCC" = yes; then
13850 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"`
13851 else
13852 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13853 fi
13854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13855 ;;
13856
13857dgux*)
13858 version_type=linux
13859 need_lib_prefix=no
13860 need_version=no
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13862 soname_spec='${libname}${release}${shared_ext}$major'
13863 shlibpath_var=LD_LIBRARY_PATH
13864 ;;
13865
13866freebsd1*)
13867 dynamic_linker=no
13868 ;;
13869
13870kfreebsd*-gnu)
13871 version_type=linux
13872 need_lib_prefix=no
13873 need_version=no
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13875 soname_spec='${libname}${release}${shared_ext}$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13879 dynamic_linker='GNU ld.so'
13880 ;;
13881
13882freebsd*)
13883 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13884 version_type=freebsd-$objformat
13885 case $version_type in
13886 freebsd-elf*)
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13888 need_version=no
13889 need_lib_prefix=no
13890 ;;
13891 freebsd-*)
13892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13893 need_version=yes
13894 ;;
13895 esac
13896 shlibpath_var=LD_LIBRARY_PATH
13897 case $host_os in
13898 freebsd2*)
13899 shlibpath_overrides_runpath=yes
13900 ;;
13901 freebsd3.01* | freebsdelf3.01*)
13902 shlibpath_overrides_runpath=yes
13903 hardcode_into_libs=yes
13904 ;;
13905 *) # from 3.2 on
13906 shlibpath_overrides_runpath=no
13907 hardcode_into_libs=yes
13908 ;;
13909 esac
13910 ;;
13911
13912gnu*)
13913 version_type=linux
13914 need_lib_prefix=no
13915 need_version=no
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 shlibpath_var=LD_LIBRARY_PATH
13919 hardcode_into_libs=yes
13920 ;;
13921
13922hpux9* | hpux10* | hpux11*)
13923 # Give a soname corresponding to the major version so that dld.sl refuses to
13924 # link against other versions.
13925 version_type=sunos
13926 need_lib_prefix=no
13927 need_version=no
13928 case "$host_cpu" in
13929 ia64*)
13930 shrext='.so'
13931 hardcode_into_libs=yes
13932 dynamic_linker="$host_os dld.so"
13933 shlibpath_var=LD_LIBRARY_PATH
13934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13936 soname_spec='${libname}${release}${shared_ext}$major'
13937 if test "X$HPUX_IA64_MODE" = X32; then
13938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13939 else
13940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13941 fi
13942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13943 ;;
13944 hppa*64*)
13945 shrext='.sl'
13946 hardcode_into_libs=yes
13947 dynamic_linker="$host_os dld.sl"
13948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13954 ;;
13955 *)
13956 shrext='.sl'
13957 dynamic_linker="$host_os dld.sl"
13958 shlibpath_var=SHLIB_PATH
13959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 ;;
13963 esac
13964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13965 postinstall_cmds='chmod 555 $lib'
13966 ;;
13967
13968irix5* | irix6* | nonstopux*)
13969 case $host_os in
13970 nonstopux*) version_type=nonstopux ;;
13971 *)
13972 if test "$lt_cv_prog_gnu_ld" = yes; then
13973 version_type=linux
13974 else
13975 version_type=irix
13976 fi ;;
13977 esac
13978 need_lib_prefix=no
13979 need_version=no
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13982 case $host_os in
13983 irix5* | nonstopux*)
13984 libsuff= shlibsuff=
13985 ;;
13986 *)
13987 case $LD in # libtool.m4 will add one of these switches to LD
13988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13989 libsuff= shlibsuff= libmagic=32-bit;;
13990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13991 libsuff=32 shlibsuff=N32 libmagic=N32;;
13992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13994 *) libsuff= shlibsuff= libmagic=never-match;;
13995 esac
13996 ;;
13997 esac
13998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13999 shlibpath_overrides_runpath=no
14000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14002 hardcode_into_libs=yes
14003 ;;
14004
14005# No shared lib support for Linux oldld, aout, or coff.
14006linux*oldld* | linux*aout* | linux*coff*)
14007 dynamic_linker=no
14008 ;;
14009
14010# This must be Linux ELF.
14011linux*)
14012 version_type=linux
14013 need_lib_prefix=no
14014 need_version=no
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=no
14020 # This implies no fast_install, which is unacceptable.
14021 # Some rework will be needed to allow for fast_install
14022 # before this can be enabled.
14023 hardcode_into_libs=yes
14024
14025 # Append ld.so.conf contents to the search path
14026 if test -f /etc/ld.so.conf; then
14027 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14028 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14029 fi
14030
14031 # We used to test for /lib/ld.so.1 and disable shared libraries on
14032 # powerpc, because MkLinux only supported shared libraries with the
14033 # GNU dynamic linker. Since this was broken with cross compilers,
14034 # most powerpc-linux boxes support dynamic linking these days and
14035 # people can always --disable-shared, the test was removed, and we
14036 # assume the GNU/Linux dynamic linker is in use.
14037 dynamic_linker='GNU/Linux ld.so'
14038 ;;
14039
14040knetbsd*-gnu)
14041 version_type=linux
14042 need_lib_prefix=no
14043 need_version=no
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=no
14048 hardcode_into_libs=yes
14049 dynamic_linker='GNU ld.so'
14050 ;;
14051
14052netbsd*)
14053 version_type=sunos
14054 need_lib_prefix=no
14055 need_version=no
14056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059 dynamic_linker='NetBSD (a.out) ld.so'
14060 else
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 dynamic_linker='NetBSD ld.elf_so'
14064 fi
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes
14067 hardcode_into_libs=yes
14068 ;;
14069
14070newsos6)
14071 version_type=linux
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14075 ;;
14076
14077nto-qnx*)
14078 version_type=linux
14079 need_lib_prefix=no
14080 need_version=no
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 soname_spec='${libname}${release}${shared_ext}$major'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 ;;
14086
14087openbsd*)
14088 version_type=sunos
14089 need_lib_prefix=no
14090 need_version=yes
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095 case $host_os in
14096 openbsd2.[89] | openbsd2.[89].*)
14097 shlibpath_overrides_runpath=no
14098 ;;
14099 *)
14100 shlibpath_overrides_runpath=yes
14101 ;;
14102 esac
14103 else
14104 shlibpath_overrides_runpath=yes
14105 fi
14106 ;;
14107
14108os2*)
14109 libname_spec='$name'
14110 shrext=".dll"
14111 need_lib_prefix=no
14112 library_names_spec='$libname${shared_ext} $libname.a'
14113 dynamic_linker='OS/2 ld.exe'
14114 shlibpath_var=LIBPATH
14115 ;;
14116
14117osf3* | osf4* | osf5*)
14118 version_type=osf
14119 need_lib_prefix=no
14120 need_version=no
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14126 ;;
14127
14128sco3.2v5*)
14129 version_type=osf
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 ;;
14134
14135solaris*)
14136 version_type=linux
14137 need_lib_prefix=no
14138 need_version=no
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 hardcode_into_libs=yes
14144 # ldd complains unless libraries are executable
14145 postinstall_cmds='chmod +x $lib'
14146 ;;
14147
14148sunos4*)
14149 version_type=sunos
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=yes
14154 if test "$with_gnu_ld" = yes; then
14155 need_lib_prefix=no
14156 fi
14157 need_version=yes
14158 ;;
14159
14160sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 case $host_vendor in
14166 sni)
14167 shlibpath_overrides_runpath=no
14168 need_lib_prefix=no
14169 export_dynamic_flag_spec='${wl}-Blargedynsym'
14170 runpath_var=LD_RUN_PATH
14171 ;;
14172 siemens)
14173 need_lib_prefix=no
14174 ;;
14175 motorola)
14176 need_lib_prefix=no
14177 need_version=no
14178 shlibpath_overrides_runpath=no
14179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14180 ;;
14181 esac
14182 ;;
14183
14184sysv4*MP*)
14185 if test -d /usr/nec ;then
14186 version_type=linux
14187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14188 soname_spec='$libname${shared_ext}.$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 fi
14191 ;;
14192
14193uts4*)
14194 version_type=linux
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 ;;
14199
14200*)
14201 dynamic_linker=no
14202 ;;
14203esac
14204echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14205echo "${ECHO_T}$dynamic_linker" >&6
14206test "$dynamic_linker" = no && can_build_shared=no
14207
14208echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14209echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14210hardcode_action_F77=
14211if test -n "$hardcode_libdir_flag_spec_F77" || \
14212 test -n "$runpath_var F77" || \
14213 test "X$hardcode_automatic_F77"="Xyes" ; then
14214
14215 # We can hardcode non-existant directories.
14216 if test "$hardcode_direct_F77" != no &&
14217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14218 # have to relink, otherwise we might link with an installed library
14219 # when we should be linking with a yet-to-be-installed one
14220 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14221 test "$hardcode_minus_L_F77" != no; then
14222 # Linking always hardcodes the temporary library directory.
14223 hardcode_action_F77=relink
14224 else
14225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14226 hardcode_action_F77=immediate
14227 fi
14228else
14229 # We cannot hardcode anything, or else we can only hardcode existing
14230 # directories.
14231 hardcode_action_F77=unsupported
14232fi
14233echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14234echo "${ECHO_T}$hardcode_action_F77" >&6
14235
14236if test "$hardcode_action_F77" = relink; then
14237 # Fast installation is not supported
14238 enable_fast_install=no
14239elif test "$shlibpath_overrides_runpath" = yes ||
14240 test "$enable_shared" = no; then
14241 # Fast installation is not necessary
14242 enable_fast_install=needless
14243fi
14244
14245striplib=
14246old_striplib=
14247echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14248echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14249if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14251 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14252 echo "$as_me:$LINENO: result: yes" >&5
14253echo "${ECHO_T}yes" >&6
14254else
14255# FIXME - insert some real tests, host_os isn't really good enough
14256 case $host_os in
14257 darwin*)
14258 if test -n "$STRIP" ; then
14259 striplib="$STRIP -x"
14260 echo "$as_me:$LINENO: result: yes" >&5
14261echo "${ECHO_T}yes" >&6
14262 else
14263 echo "$as_me:$LINENO: result: no" >&5
14264echo "${ECHO_T}no" >&6
14265fi
14266 ;;
14267 *)
14268 echo "$as_me:$LINENO: result: no" >&5
14269echo "${ECHO_T}no" >&6
14270 ;;
14271 esac
14272fi
14273
14274
14275
14276# The else clause should only fire when bootstrapping the
14277# libtool distribution, otherwise you forgot to ship ltmain.sh
14278# with your package, and you will get complaints that there are
14279# no rules to generate ltmain.sh.
14280if test -f "$ltmain"; then
14281 # See if we are running on zsh, and set the options which allow our commands through
14282 # without removal of \ escapes.
14283 if test -n "${ZSH_VERSION+set}" ; then
14284 setopt NO_GLOB_SUBST
14285 fi
14286 # Now quote all the things that may contain metacharacters while being
14287 # careful not to overquote the AC_SUBSTed values. We take copies of the
14288 # variables and quote the copies for generation of the libtool script.
14289 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14290 SED SHELL STRIP \
14291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14293 deplibs_check_method reload_flag reload_cmds need_locks \
14294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14295 lt_cv_sys_global_symbol_to_c_name_address \
14296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14297 old_postinstall_cmds old_postuninstall_cmds \
14298 compiler_F77 \
14299 CC_F77 \
14300 LD_F77 \
14301 lt_prog_compiler_wl_F77 \
14302 lt_prog_compiler_pic_F77 \
14303 lt_prog_compiler_static_F77 \
14304 lt_prog_compiler_no_builtin_flag_F77 \
14305 export_dynamic_flag_spec_F77 \
14306 thread_safe_flag_spec_F77 \
14307 whole_archive_flag_spec_F77 \
14308 enable_shared_with_static_runtimes_F77 \
14309 old_archive_cmds_F77 \
14310 old_archive_from_new_cmds_F77 \
14311 predep_objects_F77 \
14312 postdep_objects_F77 \
14313 predeps_F77 \
14314 postdeps_F77 \
14315 compiler_lib_search_path_F77 \
14316 archive_cmds_F77 \
14317 archive_expsym_cmds_F77 \
14318 postinstall_cmds_F77 \
14319 postuninstall_cmds_F77 \
14320 old_archive_from_expsyms_cmds_F77 \
14321 allow_undefined_flag_F77 \
14322 no_undefined_flag_F77 \
14323 export_symbols_cmds_F77 \
14324 hardcode_libdir_flag_spec_F77 \
14325 hardcode_libdir_flag_spec_ld_F77 \
14326 hardcode_libdir_separator_F77 \
14327 hardcode_automatic_F77 \
14328 module_cmds_F77 \
14329 module_expsym_cmds_F77 \
14330 lt_cv_prog_compiler_c_o_F77 \
14331 exclude_expsyms_F77 \
14332 include_expsyms_F77; do
14333
14334 case $var in
14335 old_archive_cmds_F77 | \
14336 old_archive_from_new_cmds_F77 | \
14337 archive_cmds_F77 | \
14338 archive_expsym_cmds_F77 | \
14339 module_cmds_F77 | \
14340 module_expsym_cmds_F77 | \
14341 old_archive_from_expsyms_cmds_F77 | \
14342 export_symbols_cmds_F77 | \
14343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14344 postinstall_cmds | postuninstall_cmds | \
14345 old_postinstall_cmds | old_postuninstall_cmds | \
14346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14347 # Double-quote double-evaled strings.
14348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14349 ;;
14350 *)
14351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14352 ;;
14353 esac
14354 done
14355
14356 case $lt_echo in
14357 *'\$0 --fallback-echo"')
14358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14359 ;;
14360 esac
14361
14362cfgfile="$ofile"
14363
14364 cat <<__EOF__ >> "$cfgfile"
14365# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14366
14367# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14368
14369# Shell to use when invoking shell scripts.
14370SHELL=$lt_SHELL
14371
14372# Whether or not to build shared libraries.
14373build_libtool_libs=$enable_shared
14374
14375# Whether or not to build static libraries.
14376build_old_libs=$enable_static
14377
14378# Whether or not to add -lc for building shared libraries.
14379build_libtool_need_lc=$archive_cmds_need_lc_F77
14380
14381# Whether or not to disallow shared libs when runtime libs are static
14382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14383
14384# Whether or not to optimize for fast installation.
14385fast_install=$enable_fast_install
14386
14387# The host system.
14388host_alias=$host_alias
14389host=$host
14390
14391# An echo program that does not interpret backslashes.
14392echo=$lt_echo
14393
14394# The archiver.
14395AR=$lt_AR
14396AR_FLAGS=$lt_AR_FLAGS
14397
14398# A C compiler.
14399LTCC=$lt_LTCC
14400
14401# A language-specific compiler.
14402CC=$lt_compiler_F77
14403
14404# Is the compiler the GNU C compiler?
14405with_gcc=$GCC_F77
14406
14407# An ERE matcher.
14408EGREP=$lt_EGREP
14409
14410# The linker used to build libraries.
14411LD=$lt_LD_F77
14412
14413# Whether we need hard or soft links.
14414LN_S=$lt_LN_S
14415
14416# A BSD-compatible nm program.
14417NM=$lt_NM
14418
14419# A symbol stripping program
14420STRIP=$lt_STRIP
14421
14422# Used to examine libraries when file_magic_cmd begins "file"
14423MAGIC_CMD=$MAGIC_CMD
14424
14425# Used on cygwin: DLL creation program.
14426DLLTOOL="$DLLTOOL"
14427
14428# Used on cygwin: object dumper.
14429OBJDUMP="$OBJDUMP"
14430
14431# Used on cygwin: assembler.
14432AS="$AS"
14433
14434# The name of the directory that contains temporary libtool files.
14435objdir=$objdir
14436
14437# How to create reloadable object files.
14438reload_flag=$lt_reload_flag
14439reload_cmds=$lt_reload_cmds
14440
14441# How to pass a linker flag through the compiler.
14442wl=$lt_lt_prog_compiler_wl_F77
14443
14444# Object file suffix (normally "o").
14445objext="$ac_objext"
14446
14447# Old archive suffix (normally "a").
14448libext="$libext"
14449
14450# Shared library suffix (normally ".so").
14451shrext='$shrext'
14452
14453# Executable file suffix (normally "").
14454exeext="$exeext"
14455
14456# Additional compiler flags for building library objects.
14457pic_flag=$lt_lt_prog_compiler_pic_F77
14458pic_mode=$pic_mode
14459
14460# What is the maximum length of a command?
14461max_cmd_len=$lt_cv_sys_max_cmd_len
14462
14463# Does compiler simultaneously support -c and -o options?
14464compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14465
14466# Must we lock files when doing compilation ?
14467need_locks=$lt_need_locks
14468
14469# Do we need the lib prefix for modules?
14470need_lib_prefix=$need_lib_prefix
14471
14472# Do we need a version for libraries?
14473need_version=$need_version
14474
14475# Whether dlopen is supported.
14476dlopen_support=$enable_dlopen
14477
14478# Whether dlopen of programs is supported.
14479dlopen_self=$enable_dlopen_self
14480
14481# Whether dlopen of statically linked programs is supported.
14482dlopen_self_static=$enable_dlopen_self_static
14483
14484# Compiler flag to prevent dynamic linking.
14485link_static_flag=$lt_lt_prog_compiler_static_F77
14486
14487# Compiler flag to turn off builtin functions.
14488no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14489
14490# Compiler flag to allow reflexive dlopens.
14491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14492
14493# Compiler flag to generate shared objects directly from archives.
14494whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14495
14496# Compiler flag to generate thread-safe objects.
14497thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14498
14499# Library versioning type.
14500version_type=$version_type
14501
14502# Format of library name prefix.
14503libname_spec=$lt_libname_spec
14504
14505# List of archive names. First name is the real one, the rest are links.
14506# The last name is the one that the linker finds with -lNAME.
14507library_names_spec=$lt_library_names_spec
14508
14509# The coded name of the library, if different from the real name.
14510soname_spec=$lt_soname_spec
14511
14512# Commands used to build and install an old-style archive.
14513RANLIB=$lt_RANLIB
14514old_archive_cmds=$lt_old_archive_cmds_F77
14515old_postinstall_cmds=$lt_old_postinstall_cmds
14516old_postuninstall_cmds=$lt_old_postuninstall_cmds
14517
14518# Create an old-style archive from a shared archive.
14519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14520
14521# Create a temporary old-style archive to link instead of a shared archive.
14522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14523
14524# Commands used to build and install a shared archive.
14525archive_cmds=$lt_archive_cmds_F77
14526archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14527postinstall_cmds=$lt_postinstall_cmds
14528postuninstall_cmds=$lt_postuninstall_cmds
14529
14530# Commands used to build a loadable module (assumed same as above if empty)
14531module_cmds=$lt_module_cmds_F77
14532module_expsym_cmds=$lt_module_expsym_cmds_F77
14533
14534# Commands to strip libraries.
14535old_striplib=$lt_old_striplib
14536striplib=$lt_striplib
14537
14538# Dependencies to place before the objects being linked to create a
14539# shared library.
14540predep_objects=$lt_predep_objects_F77
14541
14542# Dependencies to place after the objects being linked to create a
14543# shared library.
14544postdep_objects=$lt_postdep_objects_F77
14545
14546# Dependencies to place before the objects being linked to create a
14547# shared library.
14548predeps=$lt_predeps_F77
14549
14550# Dependencies to place after the objects being linked to create a
14551# shared library.
14552postdeps=$lt_postdeps_F77
14553
14554# The library search path used internally by the compiler when linking
14555# a shared library.
14556compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14557
14558# Method to check whether dependent libraries are shared objects.
14559deplibs_check_method=$lt_deplibs_check_method
14560
14561# Command to use when deplibs_check_method == file_magic.
14562file_magic_cmd=$lt_file_magic_cmd
14563
14564# Flag that allows shared libraries with undefined symbols to be built.
14565allow_undefined_flag=$lt_allow_undefined_flag_F77
14566
14567# Flag that forces no undefined symbols.
14568no_undefined_flag=$lt_no_undefined_flag_F77
14569
14570# Commands used to finish a libtool library installation in a directory.
14571finish_cmds=$lt_finish_cmds
14572
14573# Same as above, but a single script fragment to be evaled but not shown.
14574finish_eval=$lt_finish_eval
14575
14576# Take the output of nm and produce a listing of raw symbols and C names.
14577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14578
14579# Transform the output of nm in a proper C declaration
14580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14581
14582# Transform the output of nm in a C name address pair
14583global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14584
14585# This is the shared library runtime path variable.
14586runpath_var=$runpath_var
14587
14588# This is the shared library path variable.
14589shlibpath_var=$shlibpath_var
14590
14591# Is shlibpath searched before the hard-coded library search path?
14592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14593
14594# How to hardcode a shared library path into an executable.
14595hardcode_action=$hardcode_action_F77
14596
14597# Whether we should hardcode library paths into libraries.
14598hardcode_into_libs=$hardcode_into_libs
14599
14600# Flag to hardcode \$libdir into a binary during linking.
14601# This must work even if \$libdir does not exist.
14602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14603
14604# If ld is used when linking, flag to hardcode \$libdir into
14605# a binary during linking. This must work even if \$libdir does
14606# not exist.
14607hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14608
14609# Whether we need a single -rpath flag with a separated argument.
14610hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14611
14612# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14613# resulting binary.
14614hardcode_direct=$hardcode_direct_F77
14615
14616# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14617# resulting binary.
14618hardcode_minus_L=$hardcode_minus_L_F77
14619
14620# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14621# the resulting binary.
14622hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14623
14624# Set to yes if building a shared library automatically hardcodes DIR into the library
14625# and all subsequent libraries and executables linked against it.
14626hardcode_automatic=$hardcode_automatic_F77
14627
14628# Variables whose values should be saved in libtool wrapper scripts and
14629# restored at relink time.
14630variables_saved_for_relink="$variables_saved_for_relink"
14631
14632# Whether libtool must link a program against all its dependency libraries.
14633link_all_deplibs=$link_all_deplibs_F77
14634
14635# Compile-time system search path for libraries
14636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14637
14638# Run-time system search path for libraries
14639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14640
14641# Fix the shell variable \$srcfile for the compiler.
14642fix_srcfile_path="$fix_srcfile_path_F77"
14643
14644# Set to yes if exported symbols are required.
14645always_export_symbols=$always_export_symbols_F77
14646
14647# The commands to list exported symbols.
14648export_symbols_cmds=$lt_export_symbols_cmds_F77
14649
14650# The commands to extract the exported symbol list from a shared archive.
14651extract_expsyms_cmds=$lt_extract_expsyms_cmds
14652
14653# Symbols that should not be listed in the preloaded symbols.
14654exclude_expsyms=$lt_exclude_expsyms_F77
14655
14656# Symbols that must always be exported.
14657include_expsyms=$lt_include_expsyms_F77
14658
14659# ### END LIBTOOL TAG CONFIG: $tagname
14660
14661__EOF__
14662
14663
14664else
14665 # If there is no Makefile yet, we rely on a make rule to execute
14666 # `config.status --recheck' to rerun these tests and create the
14667 # libtool script then.
14668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14669 if test -f "$ltmain_in"; then
14670 test -f Makefile && make "$ltmain"
14671 fi
14672fi
14673
14674
14675ac_ext=c
14676ac_cpp='$CPP $CPPFLAGS'
14677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14679ac_compiler_gnu=$ac_cv_c_compiler_gnu
14680
14681CC="$lt_save_CC"
14682
14683 else
14684 tagname=""
14685 fi
14686 ;;
14687
14688 GCJ)
14689 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14690
14691
14692
14693# Source file extension for Java test sources.
14694ac_ext=java
14695
14696# Object file extension for compiled Java test sources.
14697objext=o
14698objext_GCJ=$objext
14699
14700# Code to be used in simple compile tests
14701lt_simple_compile_test_code="class foo {}\n"
14702
14703# Code to be used in simple link tests
14704lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14705
14706# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14707
14708# If no C compiler was specified, use CC.
14709LTCC=${LTCC-"$CC"}
14710
14711# Allow CC to be a program name with arguments.
14712compiler=$CC
14713
14714
14715# Allow CC to be a program name with arguments.
14716lt_save_CC="$CC"
14717CC=${GCJ-"gcj"}
14718compiler=$CC
14719compiler_GCJ=$CC
14720
14721# GCJ did not exist at the time GCC didn't implicitly link libc in.
14722archive_cmds_need_lc_GCJ=no
14723
14724
14725lt_prog_compiler_no_builtin_flag_GCJ=
14726
14727if test "$GCC" = yes; then
14728 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14729
14730
14731echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14732echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14733if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735else
14736 lt_cv_prog_compiler_rtti_exceptions=no
14737 ac_outfile=conftest.$ac_objext
14738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14739 lt_compiler_flag="-fno-rtti -fno-exceptions"
14740 # Insert the option either (1) after the last *FLAGS variable, or
14741 # (2) before a word containing "conftest.", or (3) at the end.
14742 # Note that $ac_compile itself does not contain backslashes and begins
14743 # with a dollar sign (not a hyphen), so the echo should work correctly.
14744 # The option is referenced via a variable to avoid confusing sed.
14745 lt_compile=`echo "$ac_compile" | $SED \
14746 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000014749 (eval echo "\"\$as_me:14749: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014750 (eval "$lt_compile" 2>conftest.err)
14751 ac_status=$?
14752 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000014753 echo "$as_me:14753: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014754 if (exit $ac_status) && test -s "$ac_outfile"; then
14755 # The compiler can only warn and ignore the option if not recognized
14756 # So say no if there are warnings
14757 if test ! -s conftest.err; then
14758 lt_cv_prog_compiler_rtti_exceptions=yes
14759 fi
14760 fi
14761 $rm conftest*
14762
14763fi
14764echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14765echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14766
14767if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14768 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14769else
14770 :
14771fi
14772
14773fi
14774
14775lt_prog_compiler_wl_GCJ=
14776lt_prog_compiler_pic_GCJ=
14777lt_prog_compiler_static_GCJ=
14778
14779echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14780echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14781
14782 if test "$GCC" = yes; then
14783 lt_prog_compiler_wl_GCJ='-Wl,'
14784 lt_prog_compiler_static_GCJ='-static'
14785
14786 case $host_os in
14787 aix*)
14788 # All AIX code is PIC.
14789 if test "$host_cpu" = ia64; then
14790 # AIX 5 now supports IA64 processor
14791 lt_prog_compiler_static_GCJ='-Bstatic'
14792 fi
14793 ;;
14794
14795 amigaos*)
14796 # FIXME: we need at least 68020 code to build shared libraries, but
14797 # adding the `-m68020' flag to GCC prevents building anything better,
14798 # like `-m68040'.
14799 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14800 ;;
14801
14802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14803 # PIC is the default for these OSes.
14804 ;;
14805
14806 mingw* | pw32* | os2*)
14807 # This hack is so that the source file can tell whether it is being
14808 # built for inclusion in a dll (and should export symbols for example).
14809 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14810 ;;
14811
14812 darwin* | rhapsody*)
14813 # PIC is the default on this platform
14814 # Common symbols not allowed in MH_DYLIB files
14815 lt_prog_compiler_pic_GCJ='-fno-common'
14816 ;;
14817
14818 msdosdjgpp*)
14819 # Just because we use GCC doesn't mean we suddenly get shared libraries
14820 # on systems that don't support them.
14821 lt_prog_compiler_can_build_shared_GCJ=no
14822 enable_shared=no
14823 ;;
14824
14825 sysv4*MP*)
14826 if test -d /usr/nec; then
14827 lt_prog_compiler_pic_GCJ=-Kconform_pic
14828 fi
14829 ;;
14830
14831 hpux*)
14832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14833 # not for PA HP-UX.
14834 case "$host_cpu" in
14835 hppa*64*|ia64*)
14836 # +Z the default
14837 ;;
14838 *)
14839 lt_prog_compiler_pic_GCJ='-fPIC'
14840 ;;
14841 esac
14842 ;;
14843
14844 *)
14845 lt_prog_compiler_pic_GCJ='-fPIC'
14846 ;;
14847 esac
14848 else
14849 # PORTME Check for flag to pass linker flags through the system compiler.
14850 case $host_os in
14851 aix*)
14852 lt_prog_compiler_wl_GCJ='-Wl,'
14853 if test "$host_cpu" = ia64; then
14854 # AIX 5 now supports IA64 processor
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14856 else
14857 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14858 fi
14859 ;;
14860
14861 mingw* | pw32* | os2*)
14862 # This hack is so that the source file can tell whether it is being
14863 # built for inclusion in a dll (and should export symbols for example).
14864 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14865 ;;
14866
14867 hpux9* | hpux10* | hpux11*)
14868 lt_prog_compiler_wl_GCJ='-Wl,'
14869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14870 # not for PA HP-UX.
14871 case "$host_cpu" in
14872 hppa*64*|ia64*)
14873 # +Z the default
14874 ;;
14875 *)
14876 lt_prog_compiler_pic_GCJ='+Z'
14877 ;;
14878 esac
14879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14880 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14881 ;;
14882
14883 irix5* | irix6* | nonstopux*)
14884 lt_prog_compiler_wl_GCJ='-Wl,'
14885 # PIC (with -KPIC) is the default.
14886 lt_prog_compiler_static_GCJ='-non_shared'
14887 ;;
14888
14889 newsos6)
14890 lt_prog_compiler_pic_GCJ='-KPIC'
14891 lt_prog_compiler_static_GCJ='-Bstatic'
14892 ;;
14893
14894 linux*)
14895 case $CC in
14896 icc* | ecc*)
14897 lt_prog_compiler_wl_GCJ='-Wl,'
14898 lt_prog_compiler_pic_GCJ='-KPIC'
14899 lt_prog_compiler_static_GCJ='-static'
14900 ;;
14901 ccc*)
14902 lt_prog_compiler_wl_GCJ='-Wl,'
14903 # All Alpha code is PIC.
14904 lt_prog_compiler_static_GCJ='-non_shared'
14905 ;;
14906 esac
14907 ;;
14908
14909 osf3* | osf4* | osf5*)
14910 lt_prog_compiler_wl_GCJ='-Wl,'
14911 # All OSF/1 code is PIC.
14912 lt_prog_compiler_static_GCJ='-non_shared'
14913 ;;
14914
14915 sco3.2v5*)
14916 lt_prog_compiler_pic_GCJ='-Kpic'
14917 lt_prog_compiler_static_GCJ='-dn'
14918 ;;
14919
14920 solaris*)
14921 lt_prog_compiler_wl_GCJ='-Wl,'
14922 lt_prog_compiler_pic_GCJ='-KPIC'
14923 lt_prog_compiler_static_GCJ='-Bstatic'
14924 ;;
14925
14926 sunos4*)
14927 lt_prog_compiler_wl_GCJ='-Qoption ld '
14928 lt_prog_compiler_pic_GCJ='-PIC'
14929 lt_prog_compiler_static_GCJ='-Bstatic'
14930 ;;
14931
14932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14933 lt_prog_compiler_wl_GCJ='-Wl,'
14934 lt_prog_compiler_pic_GCJ='-KPIC'
14935 lt_prog_compiler_static_GCJ='-Bstatic'
14936 ;;
14937
14938 sysv4*MP*)
14939 if test -d /usr/nec ;then
14940 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14941 lt_prog_compiler_static_GCJ='-Bstatic'
14942 fi
14943 ;;
14944
14945 uts4*)
14946 lt_prog_compiler_pic_GCJ='-pic'
14947 lt_prog_compiler_static_GCJ='-Bstatic'
14948 ;;
14949
14950 *)
14951 lt_prog_compiler_can_build_shared_GCJ=no
14952 ;;
14953 esac
14954 fi
14955
14956echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14957echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14958
14959#
14960# Check to make sure the PIC flag actually works.
14961#
14962if test -n "$lt_prog_compiler_pic_GCJ"; then
14963
14964echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14965echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14966if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else
14969 lt_prog_compiler_pic_works_GCJ=no
14970 ac_outfile=conftest.$ac_objext
14971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14972 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14973 # Insert the option either (1) after the last *FLAGS variable, or
14974 # (2) before a word containing "conftest.", or (3) at the end.
14975 # Note that $ac_compile itself does not contain backslashes and begins
14976 # with a dollar sign (not a hyphen), so the echo should work correctly.
14977 # The option is referenced via a variable to avoid confusing sed.
14978 lt_compile=`echo "$ac_compile" | $SED \
14979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000014982 (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014983 (eval "$lt_compile" 2>conftest.err)
14984 ac_status=$?
14985 cat conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000014986 echo "$as_me:14986: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014987 if (exit $ac_status) && test -s "$ac_outfile"; then
14988 # The compiler can only warn and ignore the option if not recognized
14989 # So say no if there are warnings
14990 if test ! -s conftest.err; then
14991 lt_prog_compiler_pic_works_GCJ=yes
14992 fi
14993 fi
14994 $rm conftest*
14995
14996fi
14997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14998echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14999
15000if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15001 case $lt_prog_compiler_pic_GCJ in
15002 "" | " "*) ;;
15003 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15004 esac
15005else
15006 lt_prog_compiler_pic_GCJ=
15007 lt_prog_compiler_can_build_shared_GCJ=no
15008fi
15009
15010fi
15011case "$host_os" in
15012 # For platforms which do not support PIC, -DPIC is meaningless:
15013 *djgpp*)
15014 lt_prog_compiler_pic_GCJ=
15015 ;;
15016 *)
15017 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15018 ;;
15019esac
15020
15021echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15022echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15023if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025else
15026 lt_cv_prog_compiler_c_o_GCJ=no
15027 $rm -r conftest 2>/dev/null
15028 mkdir conftest
15029 cd conftest
15030 mkdir out
15031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15032
15033 lt_compiler_flag="-o out/conftest2.$ac_objext"
15034 # Insert the option either (1) after the last *FLAGS variable, or
15035 # (2) before a word containing "conftest.", or (3) at the end.
15036 # Note that $ac_compile itself does not contain backslashes and begins
15037 # with a dollar sign (not a hyphen), so the echo should work correctly.
15038 lt_compile=`echo "$ac_compile" | $SED \
15039 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15041 -e 's:$: $lt_compiler_flag:'`
tpoindex9d9f76c2005-01-03 21:28:56 +000015042 (eval echo "\"\$as_me:15042: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015043 (eval "$lt_compile" 2>out/conftest.err)
15044 ac_status=$?
15045 cat out/conftest.err >&5
tpoindex9d9f76c2005-01-03 21:28:56 +000015046 echo "$as_me:15046: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15048 then
15049 # The compiler can only warn and ignore the option if not recognized
15050 # So say no if there are warnings
15051 if test ! -s out/conftest.err; then
15052 lt_cv_prog_compiler_c_o_GCJ=yes
15053 fi
15054 fi
15055 chmod u+w .
15056 $rm conftest*
15057 # SGI C++ compiler will create directory out/ii_files/ for
15058 # template instantiation
15059 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15060 $rm out/* && rmdir out
15061 cd ..
15062 rmdir conftest
15063 $rm conftest*
15064
15065fi
15066echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15067echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15068
15069
15070hard_links="nottested"
15071if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15072 # do not overwrite the value of need_locks provided by the user
15073 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15074echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15075 hard_links=yes
15076 $rm conftest*
15077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15078 touch conftest.a
15079 ln conftest.a conftest.b 2>&5 || hard_links=no
15080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15081 echo "$as_me:$LINENO: result: $hard_links" >&5
15082echo "${ECHO_T}$hard_links" >&6
15083 if test "$hard_links" = no; then
15084 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15085echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15086 need_locks=warn
15087 fi
15088else
15089 need_locks=no
15090fi
15091
15092echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15093echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15094
15095 runpath_var=
15096 allow_undefined_flag_GCJ=
15097 enable_shared_with_static_runtimes_GCJ=no
15098 archive_cmds_GCJ=
15099 archive_expsym_cmds_GCJ=
15100 old_archive_From_new_cmds_GCJ=
15101 old_archive_from_expsyms_cmds_GCJ=
15102 export_dynamic_flag_spec_GCJ=
15103 whole_archive_flag_spec_GCJ=
15104 thread_safe_flag_spec_GCJ=
15105 hardcode_libdir_flag_spec_GCJ=
15106 hardcode_libdir_flag_spec_ld_GCJ=
15107 hardcode_libdir_separator_GCJ=
15108 hardcode_direct_GCJ=no
15109 hardcode_minus_L_GCJ=no
15110 hardcode_shlibpath_var_GCJ=unsupported
15111 link_all_deplibs_GCJ=unknown
15112 hardcode_automatic_GCJ=no
15113 module_cmds_GCJ=
15114 module_expsym_cmds_GCJ=
15115 always_export_symbols_GCJ=no
15116 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15117 # include_expsyms should be a list of space-separated symbols to be *always*
15118 # included in the symbol list
15119 include_expsyms_GCJ=
15120 # exclude_expsyms can be an extended regexp of symbols to exclude
15121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15123 # as well as any symbol that contains `d'.
15124 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15126 # platforms (ab)use it in PIC code, but their linkers get confused if
15127 # the symbol is explicitly referenced. Since portable code cannot
15128 # rely on this symbol name, it's probably fine to never include it in
15129 # preloaded symbol tables.
15130 extract_expsyms_cmds=
15131
15132 case $host_os in
15133 cygwin* | mingw* | pw32*)
15134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15135 # When not using gcc, we currently assume that we are using
15136 # Microsoft Visual C++.
15137 if test "$GCC" != yes; then
15138 with_gnu_ld=no
15139 fi
15140 ;;
15141 openbsd*)
15142 with_gnu_ld=no
15143 ;;
15144 esac
15145
15146 ld_shlibs_GCJ=yes
15147 if test "$with_gnu_ld" = yes; then
15148 # If archive_cmds runs LD, not CC, wlarc should be empty
15149 wlarc='${wl}'
15150
15151 # See if GNU ld supports shared libraries.
15152 case $host_os in
15153 aix3* | aix4* | aix5*)
15154 # On AIX/PPC, the GNU linker is very broken
15155 if test "$host_cpu" != ia64; then
15156 ld_shlibs_GCJ=no
15157 cat <<EOF 1>&2
15158
15159*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15160*** to be unable to reliably create shared libraries on AIX.
15161*** Therefore, libtool is disabling shared libraries support. If you
15162*** really care for shared libraries, you may want to modify your PATH
15163*** so that a non-GNU linker is found, and then restart.
15164
15165EOF
15166 fi
15167 ;;
15168
15169 amigaos*)
15170 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)'
15171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15172 hardcode_minus_L_GCJ=yes
15173
15174 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15175 # that the semantics of dynamic libraries on AmigaOS, at least up
15176 # to version 4, is to share data among multiple programs linked
15177 # with the same dynamic library. Since this doesn't match the
15178 # behavior of shared libraries on other platforms, we can't use
15179 # them.
15180 ld_shlibs_GCJ=no
15181 ;;
15182
15183 beos*)
15184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15185 allow_undefined_flag_GCJ=unsupported
15186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15187 # support --undefined. This deserves some investigation. FIXME
15188 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 else
15190 ld_shlibs_GCJ=no
15191 fi
15192 ;;
15193
15194 cygwin* | mingw* | pw32*)
15195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15196 # as there is no search path for DLLs.
15197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15198 allow_undefined_flag_GCJ=unsupported
15199 always_export_symbols_GCJ=no
15200 enable_shared_with_static_runtimes_GCJ=yes
15201 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15202
15203 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15205 # If the export-symbols file already is a .def file (1st line
15206 # is EXPORTS), use it as is; otherwise, prepend...
15207 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15208 cp $export_symbols $output_objdir/$soname.def;
15209 else
15210 echo EXPORTS > $output_objdir/$soname.def;
15211 cat $export_symbols >> $output_objdir/$soname.def;
15212 fi~
15213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15214 else
15215 ld_shlibs=no
15216 fi
15217 ;;
15218
15219 netbsd* | knetbsd*-gnu)
15220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15221 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15222 wlarc=
15223 else
15224 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15226 fi
15227 ;;
15228
15229 solaris* | sysv5*)
15230 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15231 ld_shlibs_GCJ=no
15232 cat <<EOF 1>&2
15233
15234*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15235*** create shared libraries on Solaris systems. Therefore, libtool
15236*** is disabling shared libraries support. We urge you to upgrade GNU
15237*** binutils to release 2.9.1 or newer. Another option is to modify
15238*** your PATH or compiler configuration so that the native linker is
15239*** used, and then restart.
15240
15241EOF
15242 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15243 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245 else
15246 ld_shlibs_GCJ=no
15247 fi
15248 ;;
15249
15250 sunos4*)
15251 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15252 wlarc=
15253 hardcode_direct_GCJ=yes
15254 hardcode_shlibpath_var_GCJ=no
15255 ;;
15256
15257 linux*)
15258 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15259 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15260 archive_cmds_GCJ="$tmp_archive_cmds"
15261 supports_anon_versioning=no
15262 case `$LD -v 2>/dev/null` in
15263 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15266 *\ 2.11.*) ;; # other 2.11 versions
15267 *) supports_anon_versioning=yes ;;
15268 esac
15269 if test $supports_anon_versioning = yes; then
15270 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15271cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15272$echo "local: *; };" >> $output_objdir/$libname.ver~
15273 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15274 else
15275 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15276 fi
15277 else
15278 ld_shlibs_GCJ=no
15279 fi
15280 ;;
15281
15282 *)
15283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15286 else
15287 ld_shlibs_GCJ=no
15288 fi
15289 ;;
15290 esac
15291
15292 if test "$ld_shlibs_GCJ" = yes; then
15293 runpath_var=LD_RUN_PATH
15294 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15295 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15296 # ancient GNU ld didn't support --whole-archive et. al.
15297 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15298 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15299 else
15300 whole_archive_flag_spec_GCJ=
15301 fi
15302 fi
15303 else
15304 # PORTME fill in a description of your system's linker (not GNU ld)
15305 case $host_os in
15306 aix3*)
15307 allow_undefined_flag_GCJ=unsupported
15308 always_export_symbols_GCJ=yes
15309 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'
15310 # Note: this linker hardcodes the directories in LIBPATH if there
15311 # are no directories specified by -L.
15312 hardcode_minus_L_GCJ=yes
15313 if test "$GCC" = yes && test -z "$link_static_flag"; then
15314 # Neither direct hardcoding nor static linking is supported with a
15315 # broken collect2.
15316 hardcode_direct_GCJ=unsupported
15317 fi
15318 ;;
15319
15320 aix4* | aix5*)
15321 if test "$host_cpu" = ia64; then
15322 # On IA64, the linker does run time linking by default, so we don't
15323 # have to do anything special.
15324 aix_use_runtimelinking=no
15325 exp_sym_flag='-Bexport'
15326 no_entry_flag=""
15327 else
15328 # If we're using GNU nm, then we don't want the "-C" option.
15329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15331 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'
15332 else
15333 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'
15334 fi
15335 aix_use_runtimelinking=no
15336
15337 # Test if we are trying to use run time linking or normal
15338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15339 # need to do runtime linking.
15340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15341 for ld_flag in $LDFLAGS; do
15342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15343 aix_use_runtimelinking=yes
15344 break
15345 fi
15346 done
15347 esac
15348
15349 exp_sym_flag='-bexport'
15350 no_entry_flag='-bnoentry'
15351 fi
15352
15353 # When large executables or shared objects are built, AIX ld can
15354 # have problems creating the table of contents. If linking a library
15355 # or program results in "error TOC overflow" add -mminimal-toc to
15356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15358
15359 archive_cmds_GCJ=''
15360 hardcode_direct_GCJ=yes
15361 hardcode_libdir_separator_GCJ=':'
15362 link_all_deplibs_GCJ=yes
15363
15364 if test "$GCC" = yes; then
15365 case $host_os in aix4.012|aix4.012.*)
15366 # We only want to do this on AIX 4.2 and lower, the check
15367 # below for broken collect2 doesn't work under 4.3+
15368 collect2name=`${CC} -print-prog-name=collect2`
15369 if test -f "$collect2name" && \
15370 strings "$collect2name" | grep resolve_lib_name >/dev/null
15371 then
15372 # We have reworked collect2
15373 hardcode_direct_GCJ=yes
15374 else
15375 # We have old collect2
15376 hardcode_direct_GCJ=unsupported
15377 # It fails to find uninstalled libraries when the uninstalled
15378 # path is not listed in the libpath. Setting hardcode_minus_L
15379 # to unsupported forces relinking
15380 hardcode_minus_L_GCJ=yes
15381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15382 hardcode_libdir_separator_GCJ=
15383 fi
15384 esac
15385 shared_flag='-shared'
15386 else
15387 # not using gcc
15388 if test "$host_cpu" = ia64; then
15389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15390 # chokes on -Wl,-G. The following line is correct:
15391 shared_flag='-G'
15392 else
15393 if test "$aix_use_runtimelinking" = yes; then
15394 shared_flag='${wl}-G'
15395 else
15396 shared_flag='${wl}-bM:SRE'
15397 fi
15398 fi
15399 fi
15400
15401 # It seems that -bexpall does not export symbols beginning with
15402 # underscore (_), so it is better to generate a list of symbols to export.
15403 always_export_symbols_GCJ=yes
15404 if test "$aix_use_runtimelinking" = yes; then
15405 # Warning - without using the other runtime loading flags (-brtl),
15406 # -berok will link without error, but may produce a broken library.
15407 allow_undefined_flag_GCJ='-berok'
15408 # Determine the default libpath from the value encoded in an empty executable.
15409 cat >conftest.$ac_ext <<_ACEOF
15410/* confdefs.h. */
15411_ACEOF
15412cat confdefs.h >>conftest.$ac_ext
15413cat >>conftest.$ac_ext <<_ACEOF
15414/* end confdefs.h. */
15415
15416int
15417main ()
15418{
15419
15420 ;
15421 return 0;
15422}
15423_ACEOF
15424rm -f conftest.$ac_objext conftest$ac_exeext
15425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426 (eval $ac_link) 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest$ac_exeext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446
15447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15448}'`
15449# Check for a 64-bit object if we didn't find anything.
15450if 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; }
15451}'`; fi
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456fi
15457rm -f conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460
15461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15462 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"
15463 else
15464 if test "$host_cpu" = ia64; then
15465 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15466 allow_undefined_flag_GCJ="-z nodefs"
15467 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"
15468 else
15469 # Determine the default libpath from the value encoded in an empty executable.
15470 cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476
15477int
15478main ()
15479{
15480
15481 ;
15482 return 0;
15483}
15484_ACEOF
15485rm -f conftest.$ac_objext conftest$ac_exeext
15486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015494 { ac_try='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507
15508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15509}'`
15510# Check for a 64-bit object if we didn't find anything.
15511if 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; }
15512}'`; fi
15513else
15514 echo "$as_me: failed program was:" >&5
15515sed 's/^/| /' conftest.$ac_ext >&5
15516
15517fi
15518rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15521
15522 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15523 # Warning - without using the other run time loading flags,
15524 # -berok will link without error, but may produce a broken library.
15525 no_undefined_flag_GCJ=' ${wl}-bernotok'
15526 allow_undefined_flag_GCJ=' ${wl}-berok'
15527 # -bexpall does not export symbols beginning with underscore (_)
15528 always_export_symbols_GCJ=yes
15529 # Exported symbols can be pulled into shared objects from archives
15530 whole_archive_flag_spec_GCJ=' '
15531 archive_cmds_need_lc_GCJ=yes
15532 # This is similar to how AIX traditionally builds it's shared libraries.
15533 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'
15534 fi
15535 fi
15536 ;;
15537
15538 amigaos*)
15539 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)'
15540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15541 hardcode_minus_L_GCJ=yes
15542 # see comment about different semantics on the GNU ld section
15543 ld_shlibs_GCJ=no
15544 ;;
15545
15546 bsdi4*)
15547 export_dynamic_flag_spec_GCJ=-rdynamic
15548 ;;
15549
15550 cygwin* | mingw* | pw32*)
15551 # When not using gcc, we currently assume that we are using
15552 # Microsoft Visual C++.
15553 # hardcode_libdir_flag_spec is actually meaningless, as there is
15554 # no search path for DLLs.
15555 hardcode_libdir_flag_spec_GCJ=' '
15556 allow_undefined_flag_GCJ=unsupported
15557 # Tell ltmain to make .lib files, not .a files.
15558 libext=lib
15559 # Tell ltmain to make .dll files, not .so files.
15560 shrext=".dll"
15561 # FIXME: Setting linknames here is a bad hack.
15562 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15563 # The linker will automatically build a .lib file if we build a DLL.
15564 old_archive_From_new_cmds_GCJ='true'
15565 # FIXME: Should let the user specify the lib program.
15566 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15567 fix_srcfile_path='`cygpath -w "$srcfile"`'
15568 enable_shared_with_static_runtimes_GCJ=yes
15569 ;;
15570
15571 darwin* | rhapsody*)
15572 if test "$GXX" = yes ; then
15573 archive_cmds_need_lc_GCJ=no
15574 case "$host_os" in
15575 rhapsody* | darwin1.[012])
15576 allow_undefined_flag_GCJ='-undefined suppress'
15577 ;;
15578 *) # Darwin 1.3 on
15579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15580 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15581 else
15582 case ${MACOSX_DEPLOYMENT_TARGET} in
15583 10.[012])
15584 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15585 ;;
15586 10.*)
15587 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15588 ;;
15589 esac
15590 fi
15591 ;;
15592 esac
15593 lt_int_apple_cc_single_mod=no
15594 output_verbose_link_cmd='echo'
15595 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15596 lt_int_apple_cc_single_mod=yes
15597 fi
15598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15599 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15600 else
15601 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'
15602 fi
15603 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15605 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15606 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}'
15607 else
15608 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}'
15609 fi
15610 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}'
15611 hardcode_direct_GCJ=no
15612 hardcode_automatic_GCJ=yes
15613 hardcode_shlibpath_var_GCJ=unsupported
15614 whole_archive_flag_spec_GCJ='-all_load $convenience'
15615 link_all_deplibs_GCJ=yes
15616 else
15617 ld_shlibs_GCJ=no
15618 fi
15619 ;;
15620
15621 dgux*)
15622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15623 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15624 hardcode_shlibpath_var_GCJ=no
15625 ;;
15626
15627 freebsd1*)
15628 ld_shlibs_GCJ=no
15629 ;;
15630
15631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15632 # support. Future versions do this automatically, but an explicit c++rt0.o
15633 # does not break anything, and helps significantly (at the cost of a little
15634 # extra space).
15635 freebsd2.2*)
15636 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15638 hardcode_direct_GCJ=yes
15639 hardcode_shlibpath_var_GCJ=no
15640 ;;
15641
15642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15643 freebsd2*)
15644 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15645 hardcode_direct_GCJ=yes
15646 hardcode_minus_L_GCJ=yes
15647 hardcode_shlibpath_var_GCJ=no
15648 ;;
15649
15650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15651 freebsd* | kfreebsd*-gnu)
15652 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15654 hardcode_direct_GCJ=yes
15655 hardcode_shlibpath_var_GCJ=no
15656 ;;
15657
15658 hpux9*)
15659 if test "$GCC" = yes; then
15660 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'
15661 else
15662 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'
15663 fi
15664 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15665 hardcode_libdir_separator_GCJ=:
15666 hardcode_direct_GCJ=yes
15667
15668 # hardcode_minus_L: Not really in the search PATH,
15669 # but as the default location of the library.
15670 hardcode_minus_L_GCJ=yes
15671 export_dynamic_flag_spec_GCJ='${wl}-E'
15672 ;;
15673
15674 hpux10* | hpux11*)
15675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15676 case "$host_cpu" in
15677 hppa*64*|ia64*)
15678 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 ;;
15680 *)
15681 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15682 ;;
15683 esac
15684 else
15685 case "$host_cpu" in
15686 hppa*64*|ia64*)
15687 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 ;;
15689 *)
15690 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15691 ;;
15692 esac
15693 fi
15694 if test "$with_gnu_ld" = no; then
15695 case "$host_cpu" in
15696 hppa*64*)
15697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15698 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15699 hardcode_libdir_separator_GCJ=:
15700 hardcode_direct_GCJ=no
15701 hardcode_shlibpath_var_GCJ=no
15702 ;;
15703 ia64*)
15704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705 hardcode_direct_GCJ=no
15706 hardcode_shlibpath_var_GCJ=no
15707
15708 # hardcode_minus_L: Not really in the search PATH,
15709 # but as the default location of the library.
15710 hardcode_minus_L_GCJ=yes
15711 ;;
15712 *)
15713 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15714 hardcode_libdir_separator_GCJ=:
15715 hardcode_direct_GCJ=yes
15716 export_dynamic_flag_spec_GCJ='${wl}-E'
15717
15718 # hardcode_minus_L: Not really in the search PATH,
15719 # but as the default location of the library.
15720 hardcode_minus_L_GCJ=yes
15721 ;;
15722 esac
15723 fi
15724 ;;
15725
15726 irix5* | irix6* | nonstopux*)
15727 if test "$GCC" = yes; then
15728 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'
15729 else
15730 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'
15731 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15732 fi
15733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15734 hardcode_libdir_separator_GCJ=:
15735 link_all_deplibs_GCJ=yes
15736 ;;
15737
15738 netbsd* | knetbsd*-gnu)
15739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15741 else
15742 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15743 fi
15744 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15745 hardcode_direct_GCJ=yes
15746 hardcode_shlibpath_var_GCJ=no
15747 ;;
15748
15749 newsos6)
15750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_direct_GCJ=yes
15752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15753 hardcode_libdir_separator_GCJ=:
15754 hardcode_shlibpath_var_GCJ=no
15755 ;;
15756
15757 openbsd*)
15758 hardcode_direct_GCJ=yes
15759 hardcode_shlibpath_var_GCJ=no
15760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15761 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15763 export_dynamic_flag_spec_GCJ='${wl}-E'
15764 else
15765 case $host_os in
15766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15767 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15769 ;;
15770 *)
15771 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15773 ;;
15774 esac
15775 fi
15776 ;;
15777
15778 os2*)
15779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15780 hardcode_minus_L_GCJ=yes
15781 allow_undefined_flag_GCJ=unsupported
15782 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'
15783 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15784 ;;
15785
15786 osf3*)
15787 if test "$GCC" = yes; then
15788 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15789 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'
15790 else
15791 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15792 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'
15793 fi
15794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15795 hardcode_libdir_separator_GCJ=:
15796 ;;
15797
15798 osf4* | osf5*) # as osf3* with the addition of -msym flag
15799 if test "$GCC" = yes; then
15800 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15801 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'
15802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15803 else
15804 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15805 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'
15806 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~
15807 $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'
15808
15809 # Both c and cxx compiler support -rpath directly
15810 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15811 fi
15812 hardcode_libdir_separator_GCJ=:
15813 ;;
15814
15815 sco3.2v5*)
15816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_shlibpath_var_GCJ=no
15818 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15819 runpath_var=LD_RUN_PATH
15820 hardcode_runpath_var=yes
15821 ;;
15822
15823 solaris*)
15824 no_undefined_flag_GCJ=' -z text'
15825 if test "$GCC" = yes; then
15826 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15829 else
15830 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15833 fi
15834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15835 hardcode_shlibpath_var_GCJ=no
15836 case $host_os in
15837 solaris2.[0-5] | solaris2.[0-5].*) ;;
15838 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15839 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15840 esac
15841 link_all_deplibs_GCJ=yes
15842 ;;
15843
15844 sunos4*)
15845 if test "x$host_vendor" = xsequent; then
15846 # Use $CC to link under sequent, because it throws in some extra .o
15847 # files that make .init and .fini sections work.
15848 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15849 else
15850 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15851 fi
15852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15853 hardcode_direct_GCJ=yes
15854 hardcode_minus_L_GCJ=yes
15855 hardcode_shlibpath_var_GCJ=no
15856 ;;
15857
15858 sysv4)
15859 case $host_vendor in
15860 sni)
15861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_direct_GCJ=yes # is this really true???
15863 ;;
15864 siemens)
15865 ## LD is ld it makes a PLAMLIB
15866 ## CC just makes a GrossModule.
15867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15868 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15869 hardcode_direct_GCJ=no
15870 ;;
15871 motorola)
15872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15874 ;;
15875 esac
15876 runpath_var='LD_RUN_PATH'
15877 hardcode_shlibpath_var_GCJ=no
15878 ;;
15879
15880 sysv4.3*)
15881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_shlibpath_var_GCJ=no
15883 export_dynamic_flag_spec_GCJ='-Bexport'
15884 ;;
15885
15886 sysv4*MP*)
15887 if test -d /usr/nec; then
15888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_shlibpath_var_GCJ=no
15890 runpath_var=LD_RUN_PATH
15891 hardcode_runpath_var=yes
15892 ld_shlibs_GCJ=yes
15893 fi
15894 ;;
15895
15896 sysv4.2uw2*)
15897 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_direct_GCJ=yes
15899 hardcode_minus_L_GCJ=no
15900 hardcode_shlibpath_var_GCJ=no
15901 hardcode_runpath_var=yes
15902 runpath_var=LD_RUN_PATH
15903 ;;
15904
15905 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15906 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15907 if test "$GCC" = yes; then
15908 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 else
15910 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 fi
15912 runpath_var='LD_RUN_PATH'
15913 hardcode_shlibpath_var_GCJ=no
15914 ;;
15915
15916 sysv5*)
15917 no_undefined_flag_GCJ=' -z text'
15918 # $CC -shared without GNU ld will not create a library from C++
15919 # object files and a static libstdc++, better avoid it by now
15920 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15923 hardcode_libdir_flag_spec_GCJ=
15924 hardcode_shlibpath_var_GCJ=no
15925 runpath_var='LD_RUN_PATH'
15926 ;;
15927
15928 uts4*)
15929 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15930 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15931 hardcode_shlibpath_var_GCJ=no
15932 ;;
15933
15934 *)
15935 ld_shlibs_GCJ=no
15936 ;;
15937 esac
15938 fi
15939
15940echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15941echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15942test "$ld_shlibs_GCJ" = no && can_build_shared=no
15943
15944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15945if test "$GCC" = yes; then
15946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15947fi
15948
15949#
15950# Do we need to explicitly link libc?
15951#
15952case "x$archive_cmds_need_lc_GCJ" in
15953x|xyes)
15954 # Assume -lc should be added
15955 archive_cmds_need_lc_GCJ=yes
15956
15957 if test "$enable_shared" = yes && test "$GCC" = yes; then
15958 case $archive_cmds_GCJ in
15959 *'~'*)
15960 # FIXME: we may have to deal with multi-command sequences.
15961 ;;
15962 '$CC '*)
15963 # Test whether the compiler implicitly links with -lc since on some
15964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15965 # to ld, don't add -lc before -lgcc.
15966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15968 $rm conftest*
15969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15970
15971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15972 (eval $ac_compile) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } 2>conftest.err; then
15976 soname=conftest
15977 lib=conftest
15978 libobjs=conftest.$ac_objext
15979 deplibs=
15980 wl=$lt_prog_compiler_wl_GCJ
15981 compiler_flags=-v
15982 linker_flags=-v
15983 verstring=
15984 output_objdir=.
15985 libname=conftest
15986 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15987 allow_undefined_flag_GCJ=
15988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15989 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }
15993 then
15994 archive_cmds_need_lc_GCJ=no
15995 else
15996 archive_cmds_need_lc_GCJ=yes
15997 fi
15998 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15999 else
16000 cat conftest.err 1>&5
16001 fi
16002 $rm conftest*
16003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16004echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16005 ;;
16006 esac
16007 fi
16008 ;;
16009esac
16010
16011echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16012echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16013library_names_spec=
16014libname_spec='lib$name'
16015soname_spec=
16016shrext=".so"
16017postinstall_cmds=
16018postuninstall_cmds=
16019finish_cmds=
16020finish_eval=
16021shlibpath_var=
16022shlibpath_overrides_runpath=unknown
16023version_type=none
16024dynamic_linker="$host_os ld.so"
16025sys_lib_dlsearch_path_spec="/lib /usr/lib"
16026if test "$GCC" = yes; then
16027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16029 # if the path contains ";" then we assume it to be the separator
16030 # otherwise default to the standard path separator (i.e. ":") - it is
16031 # assumed that no part of a normal pathname contains ";" but that should
16032 # okay in the real world where ";" in dirpaths is itself problematic.
16033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16034 else
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16036 fi
16037else
16038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16039fi
16040need_lib_prefix=unknown
16041hardcode_into_libs=no
16042
16043# when you set need_version to no, make sure it does not cause -set_version
16044# flags to be left without arguments
16045need_version=unknown
16046
16047case $host_os in
16048aix3*)
16049 version_type=linux
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16051 shlibpath_var=LIBPATH
16052
16053 # AIX 3 has no versioning support, so we append a major version to the name.
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 ;;
16056
16057aix4* | aix5*)
16058 version_type=linux
16059 need_lib_prefix=no
16060 need_version=no
16061 hardcode_into_libs=yes
16062 if test "$host_cpu" = ia64; then
16063 # AIX 5 supports IA64
16064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 else
16067 # With GCC up to 2.95.x, collect2 would create an import file
16068 # for dependence libraries. The import file would start with
16069 # the line `#! .'. This would cause the generated library to
16070 # depend on `.', always an invalid library. This was fixed in
16071 # development snapshots of GCC prior to 3.0.
16072 case $host_os in
16073 aix4 | aix4.[01] | aix4.[01].*)
16074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16075 echo ' yes '
16076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16077 :
16078 else
16079 can_build_shared=no
16080 fi
16081 ;;
16082 esac
16083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16084 # soname into executable. Probably we can add versioning support to
16085 # collect2, so additional links can be useful in future.
16086 if test "$aix_use_runtimelinking" = yes; then
16087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16088 # instead of lib<name>.a to let people know that these are not
16089 # typical AIX shared libraries.
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 else
16092 # We preserve .a as extension for shared libraries through AIX4.2
16093 # and later when we are not doing run time linking.
16094 library_names_spec='${libname}${release}.a $libname.a'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 fi
16097 shlibpath_var=LIBPATH
16098 fi
16099 ;;
16100
16101amigaos*)
16102 library_names_spec='$libname.ixlibrary $libname.a'
16103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16104 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'
16105 ;;
16106
16107beos*)
16108 library_names_spec='${libname}${shared_ext}'
16109 dynamic_linker="$host_os ld.so"
16110 shlibpath_var=LIBRARY_PATH
16111 ;;
16112
16113bsdi4*)
16114 version_type=linux
16115 need_version=no
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16122 # the default ld.so.conf also contains /usr/contrib/lib and
16123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16124 # libtool to hard-code these into programs
16125 ;;
16126
16127cygwin* | mingw* | pw32*)
16128 version_type=windows
16129 shrext=".dll"
16130 need_version=no
16131 need_lib_prefix=no
16132
16133 case $GCC,$host_os in
16134 yes,cygwin* | yes,mingw* | yes,pw32*)
16135 library_names_spec='$libname.dll.a'
16136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16137 postinstall_cmds='base_file=`basename \${file}`~
16138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16139 dldir=$destdir/`dirname \$dlpath`~
16140 test -d \$dldir || mkdir -p \$dldir~
16141 $install_prog $dir/$dlname \$dldir/$dlname'
16142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16143 dlpath=$dir/\$dldll~
16144 $rm \$dlpath'
16145 shlibpath_overrides_runpath=yes
16146
16147 case $host_os in
16148 cygwin*)
16149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16152 ;;
16153 mingw*)
16154 # MinGW DLLs use traditional 'lib' prefix
16155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16158 # It is most probably a Windows format PATH printed by
16159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16160 # path with ; separators, and with drive letters. We can handle the
16161 # drive letters (cygwin fileutils understands them), so leave them,
16162 # especially as we might pass files found there to a mingw objdump,
16163 # which wouldn't understand a cygwinified path. Ahh.
16164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16165 else
16166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16167 fi
16168 ;;
16169 pw32*)
16170 # pw32 DLLs use 'pw' prefix rather than 'lib'
16171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16172 ;;
16173 esac
16174 ;;
16175
16176 *)
16177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16178 ;;
16179 esac
16180 dynamic_linker='Win32 ld.exe'
16181 # FIXME: first we should search . and the directory the executable is in
16182 shlibpath_var=PATH
16183 ;;
16184
16185darwin* | rhapsody*)
16186 dynamic_linker="$host_os dyld"
16187 version_type=darwin
16188 need_lib_prefix=no
16189 need_version=no
16190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16191 soname_spec='${libname}${release}${major}$shared_ext'
16192 shlibpath_overrides_runpath=yes
16193 shlibpath_var=DYLD_LIBRARY_PATH
16194 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16196 if test "$GCC" = yes; then
16197 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"`
16198 else
16199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16200 fi
16201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16202 ;;
16203
16204dgux*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 ;;
16212
16213freebsd1*)
16214 dynamic_linker=no
16215 ;;
16216
16217kfreebsd*-gnu)
16218 version_type=linux
16219 need_lib_prefix=no
16220 need_version=no
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16222 soname_spec='${libname}${release}${shared_ext}$major'
16223 shlibpath_var=LD_LIBRARY_PATH
16224 shlibpath_overrides_runpath=no
16225 hardcode_into_libs=yes
16226 dynamic_linker='GNU ld.so'
16227 ;;
16228
16229freebsd*)
16230 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16231 version_type=freebsd-$objformat
16232 case $version_type in
16233 freebsd-elf*)
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16235 need_version=no
16236 need_lib_prefix=no
16237 ;;
16238 freebsd-*)
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16240 need_version=yes
16241 ;;
16242 esac
16243 shlibpath_var=LD_LIBRARY_PATH
16244 case $host_os in
16245 freebsd2*)
16246 shlibpath_overrides_runpath=yes
16247 ;;
16248 freebsd3.01* | freebsdelf3.01*)
16249 shlibpath_overrides_runpath=yes
16250 hardcode_into_libs=yes
16251 ;;
16252 *) # from 3.2 on
16253 shlibpath_overrides_runpath=no
16254 hardcode_into_libs=yes
16255 ;;
16256 esac
16257 ;;
16258
16259gnu*)
16260 version_type=linux
16261 need_lib_prefix=no
16262 need_version=no
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 hardcode_into_libs=yes
16267 ;;
16268
16269hpux9* | hpux10* | hpux11*)
16270 # Give a soname corresponding to the major version so that dld.sl refuses to
16271 # link against other versions.
16272 version_type=sunos
16273 need_lib_prefix=no
16274 need_version=no
16275 case "$host_cpu" in
16276 ia64*)
16277 shrext='.so'
16278 hardcode_into_libs=yes
16279 dynamic_linker="$host_os dld.so"
16280 shlibpath_var=LD_LIBRARY_PATH
16281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 if test "X$HPUX_IA64_MODE" = X32; then
16285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16286 else
16287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16288 fi
16289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16290 ;;
16291 hppa*64*)
16292 shrext='.sl'
16293 hardcode_into_libs=yes
16294 dynamic_linker="$host_os dld.sl"
16295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16301 ;;
16302 *)
16303 shrext='.sl'
16304 dynamic_linker="$host_os dld.sl"
16305 shlibpath_var=SHLIB_PATH
16306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16309 ;;
16310 esac
16311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16312 postinstall_cmds='chmod 555 $lib'
16313 ;;
16314
16315irix5* | irix6* | nonstopux*)
16316 case $host_os in
16317 nonstopux*) version_type=nonstopux ;;
16318 *)
16319 if test "$lt_cv_prog_gnu_ld" = yes; then
16320 version_type=linux
16321 else
16322 version_type=irix
16323 fi ;;
16324 esac
16325 need_lib_prefix=no
16326 need_version=no
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16329 case $host_os in
16330 irix5* | nonstopux*)
16331 libsuff= shlibsuff=
16332 ;;
16333 *)
16334 case $LD in # libtool.m4 will add one of these switches to LD
16335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16336 libsuff= shlibsuff= libmagic=32-bit;;
16337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16338 libsuff=32 shlibsuff=N32 libmagic=N32;;
16339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16341 *) libsuff= shlibsuff= libmagic=never-match;;
16342 esac
16343 ;;
16344 esac
16345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16346 shlibpath_overrides_runpath=no
16347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16349 hardcode_into_libs=yes
16350 ;;
16351
16352# No shared lib support for Linux oldld, aout, or coff.
16353linux*oldld* | linux*aout* | linux*coff*)
16354 dynamic_linker=no
16355 ;;
16356
16357# This must be Linux ELF.
16358linux*)
16359 version_type=linux
16360 need_lib_prefix=no
16361 need_version=no
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=no
16367 # This implies no fast_install, which is unacceptable.
16368 # Some rework will be needed to allow for fast_install
16369 # before this can be enabled.
16370 hardcode_into_libs=yes
16371
16372 # Append ld.so.conf contents to the search path
16373 if test -f /etc/ld.so.conf; then
16374 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16375 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16376 fi
16377
16378 # We used to test for /lib/ld.so.1 and disable shared libraries on
16379 # powerpc, because MkLinux only supported shared libraries with the
16380 # GNU dynamic linker. Since this was broken with cross compilers,
16381 # most powerpc-linux boxes support dynamic linking these days and
16382 # people can always --disable-shared, the test was removed, and we
16383 # assume the GNU/Linux dynamic linker is in use.
16384 dynamic_linker='GNU/Linux ld.so'
16385 ;;
16386
16387knetbsd*-gnu)
16388 version_type=linux
16389 need_lib_prefix=no
16390 need_version=no
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=no
16395 hardcode_into_libs=yes
16396 dynamic_linker='GNU ld.so'
16397 ;;
16398
16399netbsd*)
16400 version_type=sunos
16401 need_lib_prefix=no
16402 need_version=no
16403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406 dynamic_linker='NetBSD (a.out) ld.so'
16407 else
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 dynamic_linker='NetBSD ld.elf_so'
16411 fi
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 hardcode_into_libs=yes
16415 ;;
16416
16417newsos6)
16418 version_type=linux
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 ;;
16423
16424nto-qnx*)
16425 version_type=linux
16426 need_lib_prefix=no
16427 need_version=no
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16432 ;;
16433
16434openbsd*)
16435 version_type=sunos
16436 need_lib_prefix=no
16437 need_version=yes
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16442 case $host_os in
16443 openbsd2.[89] | openbsd2.[89].*)
16444 shlibpath_overrides_runpath=no
16445 ;;
16446 *)
16447 shlibpath_overrides_runpath=yes
16448 ;;
16449 esac
16450 else
16451 shlibpath_overrides_runpath=yes
16452 fi
16453 ;;
16454
16455os2*)
16456 libname_spec='$name'
16457 shrext=".dll"
16458 need_lib_prefix=no
16459 library_names_spec='$libname${shared_ext} $libname.a'
16460 dynamic_linker='OS/2 ld.exe'
16461 shlibpath_var=LIBPATH
16462 ;;
16463
16464osf3* | osf4* | osf5*)
16465 version_type=osf
16466 need_lib_prefix=no
16467 need_version=no
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16472 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16473 ;;
16474
16475sco3.2v5*)
16476 version_type=osf
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 ;;
16481
16482solaris*)
16483 version_type=linux
16484 need_lib_prefix=no
16485 need_version=no
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16490 hardcode_into_libs=yes
16491 # ldd complains unless libraries are executable
16492 postinstall_cmds='chmod +x $lib'
16493 ;;
16494
16495sunos4*)
16496 version_type=sunos
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=yes
16501 if test "$with_gnu_ld" = yes; then
16502 need_lib_prefix=no
16503 fi
16504 need_version=yes
16505 ;;
16506
16507sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16508 version_type=linux
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 case $host_vendor in
16513 sni)
16514 shlibpath_overrides_runpath=no
16515 need_lib_prefix=no
16516 export_dynamic_flag_spec='${wl}-Blargedynsym'
16517 runpath_var=LD_RUN_PATH
16518 ;;
16519 siemens)
16520 need_lib_prefix=no
16521 ;;
16522 motorola)
16523 need_lib_prefix=no
16524 need_version=no
16525 shlibpath_overrides_runpath=no
16526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16527 ;;
16528 esac
16529 ;;
16530
16531sysv4*MP*)
16532 if test -d /usr/nec ;then
16533 version_type=linux
16534 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16535 soname_spec='$libname${shared_ext}.$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 fi
16538 ;;
16539
16540uts4*)
16541 version_type=linux
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 ;;
16546
16547*)
16548 dynamic_linker=no
16549 ;;
16550esac
16551echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16552echo "${ECHO_T}$dynamic_linker" >&6
16553test "$dynamic_linker" = no && can_build_shared=no
16554
16555echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16556echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16557hardcode_action_GCJ=
16558if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16559 test -n "$runpath_var GCJ" || \
16560 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16561
16562 # We can hardcode non-existant directories.
16563 if test "$hardcode_direct_GCJ" != no &&
16564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16565 # have to relink, otherwise we might link with an installed library
16566 # when we should be linking with a yet-to-be-installed one
16567 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16568 test "$hardcode_minus_L_GCJ" != no; then
16569 # Linking always hardcodes the temporary library directory.
16570 hardcode_action_GCJ=relink
16571 else
16572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16573 hardcode_action_GCJ=immediate
16574 fi
16575else
16576 # We cannot hardcode anything, or else we can only hardcode existing
16577 # directories.
16578 hardcode_action_GCJ=unsupported
16579fi
16580echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16581echo "${ECHO_T}$hardcode_action_GCJ" >&6
16582
16583if test "$hardcode_action_GCJ" = relink; then
16584 # Fast installation is not supported
16585 enable_fast_install=no
16586elif test "$shlibpath_overrides_runpath" = yes ||
16587 test "$enable_shared" = no; then
16588 # Fast installation is not necessary
16589 enable_fast_install=needless
16590fi
16591
16592striplib=
16593old_striplib=
16594echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16595echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16596if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16598 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16599 echo "$as_me:$LINENO: result: yes" >&5
16600echo "${ECHO_T}yes" >&6
16601else
16602# FIXME - insert some real tests, host_os isn't really good enough
16603 case $host_os in
16604 darwin*)
16605 if test -n "$STRIP" ; then
16606 striplib="$STRIP -x"
16607 echo "$as_me:$LINENO: result: yes" >&5
16608echo "${ECHO_T}yes" >&6
16609 else
16610 echo "$as_me:$LINENO: result: no" >&5
16611echo "${ECHO_T}no" >&6
16612fi
16613 ;;
16614 *)
16615 echo "$as_me:$LINENO: result: no" >&5
16616echo "${ECHO_T}no" >&6
16617 ;;
16618 esac
16619fi
16620
16621if test "x$enable_dlopen" != xyes; then
16622 enable_dlopen=unknown
16623 enable_dlopen_self=unknown
16624 enable_dlopen_self_static=unknown
16625else
16626 lt_cv_dlopen=no
16627 lt_cv_dlopen_libs=
16628
16629 case $host_os in
16630 beos*)
16631 lt_cv_dlopen="load_add_on"
16632 lt_cv_dlopen_libs=
16633 lt_cv_dlopen_self=yes
16634 ;;
16635
16636 mingw* | pw32*)
16637 lt_cv_dlopen="LoadLibrary"
16638 lt_cv_dlopen_libs=
16639 ;;
16640
16641 cygwin*)
16642 lt_cv_dlopen="dlopen"
16643 lt_cv_dlopen_libs=
16644 ;;
16645
16646 darwin*)
16647 # if libdl is installed we need to link against it
16648 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652else
16653 ac_check_lib_save_LIBS=$LIBS
16654LIBS="-ldl $LIBS"
16655cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661
16662/* Override any gcc2 internal prototype to avoid an error. */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666/* We use char because int might match the return type of a gcc2
16667 builtin and then its argument prototype would still apply. */
16668char dlopen ();
16669int
16670main ()
16671{
16672dlopen ();
16673 ;
16674 return 0;
16675}
16676_ACEOF
16677rm -f conftest.$ac_objext conftest$ac_exeext
16678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679 (eval $ac_link) 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016686 { ac_try='test -z "$ac_c_werror_flag"
16687 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_cv_lib_dl_dlopen=yes
16700else
16701 echo "$as_me: failed program was:" >&5
16702sed 's/^/| /' conftest.$ac_ext >&5
16703
16704ac_cv_lib_dl_dlopen=no
16705fi
16706rm -f conftest.err conftest.$ac_objext \
16707 conftest$ac_exeext conftest.$ac_ext
16708LIBS=$ac_check_lib_save_LIBS
16709fi
16710echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16711echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16712if test $ac_cv_lib_dl_dlopen = yes; then
16713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16714else
16715
16716 lt_cv_dlopen="dyld"
16717 lt_cv_dlopen_libs=
16718 lt_cv_dlopen_self=yes
16719
16720fi
16721
16722 ;;
16723
16724 *)
16725 echo "$as_me:$LINENO: checking for shl_load" >&5
16726echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16727if test "${ac_cv_func_shl_load+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16729else
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16738#define shl_load innocuous_shl_load
16739
16740/* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char shl_load (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16744
16745#ifdef __STDC__
16746# include <limits.h>
16747#else
16748# include <assert.h>
16749#endif
16750
16751#undef shl_load
16752
16753/* Override any gcc2 internal prototype to avoid an error. */
16754#ifdef __cplusplus
16755extern "C"
16756{
16757#endif
16758/* We use char because int might match the return type of a gcc2
16759 builtin and then its argument prototype would still apply. */
16760char shl_load ();
16761/* The GNU C library defines this for functions which it implements
16762 to always fail with ENOSYS. Some functions are actually named
16763 something starting with __ and the normal name is an alias. */
16764#if defined (__stub_shl_load) || defined (__stub___shl_load)
16765choke me
16766#else
16767char (*f) () = shl_load;
16768#endif
16769#ifdef __cplusplus
16770}
16771#endif
16772
16773int
16774main ()
16775{
16776return f != shl_load;
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest.$ac_objext conftest$ac_exeext
16782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783 (eval $ac_link) 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest$ac_exeext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_func_shl_load=yes
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808ac_cv_func_shl_load=no
16809fi
16810rm -f conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16814echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16815if test $ac_cv_func_shl_load = yes; then
16816 lt_cv_dlopen="shl_load"
16817else
16818 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16819echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16820if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822else
16823 ac_check_lib_save_LIBS=$LIBS
16824LIBS="-ldld $LIBS"
16825cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831
16832/* Override any gcc2 internal prototype to avoid an error. */
16833#ifdef __cplusplus
16834extern "C"
16835#endif
16836/* We use char because int might match the return type of a gcc2
16837 builtin and then its argument prototype would still apply. */
16838char shl_load ();
16839int
16840main ()
16841{
16842shl_load ();
16843 ;
16844 return 0;
16845}
16846_ACEOF
16847rm -f conftest.$ac_objext conftest$ac_exeext
16848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849 (eval $ac_link) 2>conftest.er1
16850 ac_status=$?
16851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016856 { ac_try='test -z "$ac_c_werror_flag"
16857 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try='test -s conftest$ac_exeext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_cv_lib_dld_shl_load=yes
16870else
16871 echo "$as_me: failed program was:" >&5
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
16874ac_cv_lib_dld_shl_load=no
16875fi
16876rm -f conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878LIBS=$ac_check_lib_save_LIBS
16879fi
16880echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16881echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16882if test $ac_cv_lib_dld_shl_load = yes; then
16883 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16884else
16885 echo "$as_me:$LINENO: checking for dlopen" >&5
16886echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16887if test "${ac_cv_func_dlopen+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889else
16890 cat >conftest.$ac_ext <<_ACEOF
16891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
16896/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16898#define dlopen innocuous_dlopen
16899
16900/* System header to define __stub macros and hopefully few prototypes,
16901 which can conflict with char dlopen (); below.
16902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16903 <limits.h> exists even on freestanding compilers. */
16904
16905#ifdef __STDC__
16906# include <limits.h>
16907#else
16908# include <assert.h>
16909#endif
16910
16911#undef dlopen
16912
16913/* Override any gcc2 internal prototype to avoid an error. */
16914#ifdef __cplusplus
16915extern "C"
16916{
16917#endif
16918/* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16920char dlopen ();
16921/* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924#if defined (__stub_dlopen) || defined (__stub___dlopen)
16925choke me
16926#else
16927char (*f) () = dlopen;
16928#endif
16929#ifdef __cplusplus
16930}
16931#endif
16932
16933int
16934main ()
16935{
16936return f != dlopen;
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext conftest$ac_exeext
16942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest$ac_exeext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_func_dlopen=yes
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968ac_cv_func_dlopen=no
16969fi
16970rm -f conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972fi
16973echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16974echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16975if test $ac_cv_func_dlopen = yes; then
16976 lt_cv_dlopen="dlopen"
16977else
16978 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16979echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16980if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982else
16983 ac_check_lib_save_LIBS=$LIBS
16984LIBS="-ldl $LIBS"
16985cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991
16992/* Override any gcc2 internal prototype to avoid an error. */
16993#ifdef __cplusplus
16994extern "C"
16995#endif
16996/* We use char because int might match the return type of a gcc2
16997 builtin and then its argument prototype would still apply. */
16998char dlopen ();
16999int
17000main ()
17001{
17002dlopen ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007rm -f conftest.$ac_objext conftest$ac_exeext
17008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_lib_dl_dlopen=yes
17030else
17031 echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034ac_cv_lib_dl_dlopen=no
17035fi
17036rm -f conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17038LIBS=$ac_check_lib_save_LIBS
17039fi
17040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17042if test $ac_cv_lib_dl_dlopen = yes; then
17043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17044else
17045 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17046echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17047if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049else
17050 ac_check_lib_save_LIBS=$LIBS
17051LIBS="-lsvld $LIBS"
17052cat >conftest.$ac_ext <<_ACEOF
17053/* confdefs.h. */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */
17058
17059/* Override any gcc2 internal prototype to avoid an error. */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063/* We use char because int might match the return type of a gcc2
17064 builtin and then its argument prototype would still apply. */
17065char dlopen ();
17066int
17067main ()
17068{
17069dlopen ();
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074rm -f conftest.$ac_objext conftest$ac_exeext
17075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017083 { ac_try='test -z "$ac_c_werror_flag"
17084 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest$ac_exeext'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_svld_dlopen=yes
17097else
17098 echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101ac_cv_lib_svld_dlopen=no
17102fi
17103rm -f conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105LIBS=$ac_check_lib_save_LIBS
17106fi
17107echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17108echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17109if test $ac_cv_lib_svld_dlopen = yes; then
17110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17111else
17112 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17113echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17114if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 ac_check_lib_save_LIBS=$LIBS
17118LIBS="-ldld $LIBS"
17119cat >conftest.$ac_ext <<_ACEOF
17120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
17125
17126/* Override any gcc2 internal prototype to avoid an error. */
17127#ifdef __cplusplus
17128extern "C"
17129#endif
17130/* We use char because int might match the return type of a gcc2
17131 builtin and then its argument prototype would still apply. */
17132char dld_link ();
17133int
17134main ()
17135{
17136dld_link ();
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141rm -f conftest.$ac_objext conftest$ac_exeext
17142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017150 { ac_try='test -z "$ac_c_werror_flag"
17151 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; } &&
17157 { ac_try='test -s conftest$ac_exeext'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 ac_cv_lib_dld_dld_link=yes
17164else
17165 echo "$as_me: failed program was:" >&5
17166sed 's/^/| /' conftest.$ac_ext >&5
17167
17168ac_cv_lib_dld_dld_link=no
17169fi
17170rm -f conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17172LIBS=$ac_check_lib_save_LIBS
17173fi
17174echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17175echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17176if test $ac_cv_lib_dld_dld_link = yes; then
17177 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17178fi
17179
17180
17181fi
17182
17183
17184fi
17185
17186
17187fi
17188
17189
17190fi
17191
17192
17193fi
17194
17195 ;;
17196 esac
17197
17198 if test "x$lt_cv_dlopen" != xno; then
17199 enable_dlopen=yes
17200 else
17201 enable_dlopen=no
17202 fi
17203
17204 case $lt_cv_dlopen in
17205 dlopen)
17206 save_CPPFLAGS="$CPPFLAGS"
17207 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17208
17209 save_LDFLAGS="$LDFLAGS"
17210 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17211
17212 save_LIBS="$LIBS"
17213 LIBS="$lt_cv_dlopen_libs $LIBS"
17214
17215 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17216echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17217if test "${lt_cv_dlopen_self+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 if test "$cross_compiling" = yes; then :
17221 lt_cv_dlopen_self=cross
17222else
17223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17224 lt_status=$lt_dlunknown
17225 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +000017226#line 17226 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017227#include "confdefs.h"
17228
17229#if HAVE_DLFCN_H
17230#include <dlfcn.h>
17231#endif
17232
17233#include <stdio.h>
17234
17235#ifdef RTLD_GLOBAL
17236# define LT_DLGLOBAL RTLD_GLOBAL
17237#else
17238# ifdef DL_GLOBAL
17239# define LT_DLGLOBAL DL_GLOBAL
17240# else
17241# define LT_DLGLOBAL 0
17242# endif
17243#endif
17244
17245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17246 find out it does not work in some platform. */
17247#ifndef LT_DLLAZY_OR_NOW
17248# ifdef RTLD_LAZY
17249# define LT_DLLAZY_OR_NOW RTLD_LAZY
17250# else
17251# ifdef DL_LAZY
17252# define LT_DLLAZY_OR_NOW DL_LAZY
17253# else
17254# ifdef RTLD_NOW
17255# define LT_DLLAZY_OR_NOW RTLD_NOW
17256# else
17257# ifdef DL_NOW
17258# define LT_DLLAZY_OR_NOW DL_NOW
17259# else
17260# define LT_DLLAZY_OR_NOW 0
17261# endif
17262# endif
17263# endif
17264# endif
17265#endif
17266
17267#ifdef __cplusplus
17268extern "C" void exit (int);
17269#endif
17270
17271void fnord() { int i=42;}
17272int main ()
17273{
17274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17275 int status = $lt_dlunknown;
17276
17277 if (self)
17278 {
17279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17281 /* dlclose (self); */
17282 }
17283
17284 exit (status);
17285}
17286EOF
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288 (eval $ac_link) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17292 (./conftest; exit; ) 2>/dev/null
17293 lt_status=$?
17294 case x$lt_status in
17295 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17296 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17297 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17298 esac
17299 else :
17300 # compilation failed
17301 lt_cv_dlopen_self=no
17302 fi
17303fi
17304rm -fr conftest*
17305
17306
17307fi
17308echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17309echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17310
17311 if test "x$lt_cv_dlopen_self" = xyes; then
17312 LDFLAGS="$LDFLAGS $link_static_flag"
17313 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17314echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17315if test "${lt_cv_dlopen_self_static+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
17318 if test "$cross_compiling" = yes; then :
17319 lt_cv_dlopen_self_static=cross
17320else
17321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17322 lt_status=$lt_dlunknown
17323 cat > conftest.$ac_ext <<EOF
tpoindex9d9f76c2005-01-03 21:28:56 +000017324#line 17324 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017325#include "confdefs.h"
17326
17327#if HAVE_DLFCN_H
17328#include <dlfcn.h>
17329#endif
17330
17331#include <stdio.h>
17332
17333#ifdef RTLD_GLOBAL
17334# define LT_DLGLOBAL RTLD_GLOBAL
17335#else
17336# ifdef DL_GLOBAL
17337# define LT_DLGLOBAL DL_GLOBAL
17338# else
17339# define LT_DLGLOBAL 0
17340# endif
17341#endif
17342
17343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17344 find out it does not work in some platform. */
17345#ifndef LT_DLLAZY_OR_NOW
17346# ifdef RTLD_LAZY
17347# define LT_DLLAZY_OR_NOW RTLD_LAZY
17348# else
17349# ifdef DL_LAZY
17350# define LT_DLLAZY_OR_NOW DL_LAZY
17351# else
17352# ifdef RTLD_NOW
17353# define LT_DLLAZY_OR_NOW RTLD_NOW
17354# else
17355# ifdef DL_NOW
17356# define LT_DLLAZY_OR_NOW DL_NOW
17357# else
17358# define LT_DLLAZY_OR_NOW 0
17359# endif
17360# endif
17361# endif
17362# endif
17363#endif
17364
17365#ifdef __cplusplus
17366extern "C" void exit (int);
17367#endif
17368
17369void fnord() { int i=42;}
17370int main ()
17371{
17372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17373 int status = $lt_dlunknown;
17374
17375 if (self)
17376 {
17377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17379 /* dlclose (self); */
17380 }
17381
17382 exit (status);
17383}
17384EOF
17385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386 (eval $ac_link) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17390 (./conftest; exit; ) 2>/dev/null
17391 lt_status=$?
17392 case x$lt_status in
17393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17395 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17396 esac
17397 else :
17398 # compilation failed
17399 lt_cv_dlopen_self_static=no
17400 fi
17401fi
17402rm -fr conftest*
17403
17404
17405fi
17406echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17407echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17408 fi
17409
17410 CPPFLAGS="$save_CPPFLAGS"
17411 LDFLAGS="$save_LDFLAGS"
17412 LIBS="$save_LIBS"
17413 ;;
17414 esac
17415
17416 case $lt_cv_dlopen_self in
17417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17418 *) enable_dlopen_self=unknown ;;
17419 esac
17420
17421 case $lt_cv_dlopen_self_static in
17422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17423 *) enable_dlopen_self_static=unknown ;;
17424 esac
17425fi
17426
17427
17428# The else clause should only fire when bootstrapping the
17429# libtool distribution, otherwise you forgot to ship ltmain.sh
17430# with your package, and you will get complaints that there are
17431# no rules to generate ltmain.sh.
17432if test -f "$ltmain"; then
17433 # See if we are running on zsh, and set the options which allow our commands through
17434 # without removal of \ escapes.
17435 if test -n "${ZSH_VERSION+set}" ; then
17436 setopt NO_GLOB_SUBST
17437 fi
17438 # Now quote all the things that may contain metacharacters while being
17439 # careful not to overquote the AC_SUBSTed values. We take copies of the
17440 # variables and quote the copies for generation of the libtool script.
17441 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17442 SED SHELL STRIP \
17443 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17444 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17445 deplibs_check_method reload_flag reload_cmds need_locks \
17446 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17447 lt_cv_sys_global_symbol_to_c_name_address \
17448 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17449 old_postinstall_cmds old_postuninstall_cmds \
17450 compiler_GCJ \
17451 CC_GCJ \
17452 LD_GCJ \
17453 lt_prog_compiler_wl_GCJ \
17454 lt_prog_compiler_pic_GCJ \
17455 lt_prog_compiler_static_GCJ \
17456 lt_prog_compiler_no_builtin_flag_GCJ \
17457 export_dynamic_flag_spec_GCJ \
17458 thread_safe_flag_spec_GCJ \
17459 whole_archive_flag_spec_GCJ \
17460 enable_shared_with_static_runtimes_GCJ \
17461 old_archive_cmds_GCJ \
17462 old_archive_from_new_cmds_GCJ \
17463 predep_objects_GCJ \
17464 postdep_objects_GCJ \
17465 predeps_GCJ \
17466 postdeps_GCJ \
17467 compiler_lib_search_path_GCJ \
17468 archive_cmds_GCJ \
17469 archive_expsym_cmds_GCJ \
17470 postinstall_cmds_GCJ \
17471 postuninstall_cmds_GCJ \
17472 old_archive_from_expsyms_cmds_GCJ \
17473 allow_undefined_flag_GCJ \
17474 no_undefined_flag_GCJ \
17475 export_symbols_cmds_GCJ \
17476 hardcode_libdir_flag_spec_GCJ \
17477 hardcode_libdir_flag_spec_ld_GCJ \
17478 hardcode_libdir_separator_GCJ \
17479 hardcode_automatic_GCJ \
17480 module_cmds_GCJ \
17481 module_expsym_cmds_GCJ \
17482 lt_cv_prog_compiler_c_o_GCJ \
17483 exclude_expsyms_GCJ \
17484 include_expsyms_GCJ; do
17485
17486 case $var in
17487 old_archive_cmds_GCJ | \
17488 old_archive_from_new_cmds_GCJ | \
17489 archive_cmds_GCJ | \
17490 archive_expsym_cmds_GCJ | \
17491 module_cmds_GCJ | \
17492 module_expsym_cmds_GCJ | \
17493 old_archive_from_expsyms_cmds_GCJ | \
17494 export_symbols_cmds_GCJ | \
17495 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17496 postinstall_cmds | postuninstall_cmds | \
17497 old_postinstall_cmds | old_postuninstall_cmds | \
17498 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17499 # Double-quote double-evaled strings.
17500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17501 ;;
17502 *)
17503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17504 ;;
17505 esac
17506 done
17507
17508 case $lt_echo in
17509 *'\$0 --fallback-echo"')
17510 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17511 ;;
17512 esac
17513
17514cfgfile="$ofile"
17515
17516 cat <<__EOF__ >> "$cfgfile"
17517# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17518
17519# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17520
17521# Shell to use when invoking shell scripts.
17522SHELL=$lt_SHELL
17523
17524# Whether or not to build shared libraries.
17525build_libtool_libs=$enable_shared
17526
17527# Whether or not to build static libraries.
17528build_old_libs=$enable_static
17529
17530# Whether or not to add -lc for building shared libraries.
17531build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17532
17533# Whether or not to disallow shared libs when runtime libs are static
17534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17535
17536# Whether or not to optimize for fast installation.
17537fast_install=$enable_fast_install
17538
17539# The host system.
17540host_alias=$host_alias
17541host=$host
17542
17543# An echo program that does not interpret backslashes.
17544echo=$lt_echo
17545
17546# The archiver.
17547AR=$lt_AR
17548AR_FLAGS=$lt_AR_FLAGS
17549
17550# A C compiler.
17551LTCC=$lt_LTCC
17552
17553# A language-specific compiler.
17554CC=$lt_compiler_GCJ
17555
17556# Is the compiler the GNU C compiler?
17557with_gcc=$GCC_GCJ
17558
17559# An ERE matcher.
17560EGREP=$lt_EGREP
17561
17562# The linker used to build libraries.
17563LD=$lt_LD_GCJ
17564
17565# Whether we need hard or soft links.
17566LN_S=$lt_LN_S
17567
17568# A BSD-compatible nm program.
17569NM=$lt_NM
17570
17571# A symbol stripping program
17572STRIP=$lt_STRIP
17573
17574# Used to examine libraries when file_magic_cmd begins "file"
17575MAGIC_CMD=$MAGIC_CMD
17576
17577# Used on cygwin: DLL creation program.
17578DLLTOOL="$DLLTOOL"
17579
17580# Used on cygwin: object dumper.
17581OBJDUMP="$OBJDUMP"
17582
17583# Used on cygwin: assembler.
17584AS="$AS"
17585
17586# The name of the directory that contains temporary libtool files.
17587objdir=$objdir
17588
17589# How to create reloadable object files.
17590reload_flag=$lt_reload_flag
17591reload_cmds=$lt_reload_cmds
17592
17593# How to pass a linker flag through the compiler.
17594wl=$lt_lt_prog_compiler_wl_GCJ
17595
17596# Object file suffix (normally "o").
17597objext="$ac_objext"
17598
17599# Old archive suffix (normally "a").
17600libext="$libext"
17601
17602# Shared library suffix (normally ".so").
17603shrext='$shrext'
17604
17605# Executable file suffix (normally "").
17606exeext="$exeext"
17607
17608# Additional compiler flags for building library objects.
17609pic_flag=$lt_lt_prog_compiler_pic_GCJ
17610pic_mode=$pic_mode
17611
17612# What is the maximum length of a command?
17613max_cmd_len=$lt_cv_sys_max_cmd_len
17614
17615# Does compiler simultaneously support -c and -o options?
17616compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17617
17618# Must we lock files when doing compilation ?
17619need_locks=$lt_need_locks
17620
17621# Do we need the lib prefix for modules?
17622need_lib_prefix=$need_lib_prefix
17623
17624# Do we need a version for libraries?
17625need_version=$need_version
17626
17627# Whether dlopen is supported.
17628dlopen_support=$enable_dlopen
17629
17630# Whether dlopen of programs is supported.
17631dlopen_self=$enable_dlopen_self
17632
17633# Whether dlopen of statically linked programs is supported.
17634dlopen_self_static=$enable_dlopen_self_static
17635
17636# Compiler flag to prevent dynamic linking.
17637link_static_flag=$lt_lt_prog_compiler_static_GCJ
17638
17639# Compiler flag to turn off builtin functions.
17640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17641
17642# Compiler flag to allow reflexive dlopens.
17643export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17644
17645# Compiler flag to generate shared objects directly from archives.
17646whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17647
17648# Compiler flag to generate thread-safe objects.
17649thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17650
17651# Library versioning type.
17652version_type=$version_type
17653
17654# Format of library name prefix.
17655libname_spec=$lt_libname_spec
17656
17657# List of archive names. First name is the real one, the rest are links.
17658# The last name is the one that the linker finds with -lNAME.
17659library_names_spec=$lt_library_names_spec
17660
17661# The coded name of the library, if different from the real name.
17662soname_spec=$lt_soname_spec
17663
17664# Commands used to build and install an old-style archive.
17665RANLIB=$lt_RANLIB
17666old_archive_cmds=$lt_old_archive_cmds_GCJ
17667old_postinstall_cmds=$lt_old_postinstall_cmds
17668old_postuninstall_cmds=$lt_old_postuninstall_cmds
17669
17670# Create an old-style archive from a shared archive.
17671old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17672
17673# Create a temporary old-style archive to link instead of a shared archive.
17674old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17675
17676# Commands used to build and install a shared archive.
17677archive_cmds=$lt_archive_cmds_GCJ
17678archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17679postinstall_cmds=$lt_postinstall_cmds
17680postuninstall_cmds=$lt_postuninstall_cmds
17681
17682# Commands used to build a loadable module (assumed same as above if empty)
17683module_cmds=$lt_module_cmds_GCJ
17684module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17685
17686# Commands to strip libraries.
17687old_striplib=$lt_old_striplib
17688striplib=$lt_striplib
17689
17690# Dependencies to place before the objects being linked to create a
17691# shared library.
17692predep_objects=$lt_predep_objects_GCJ
17693
17694# Dependencies to place after the objects being linked to create a
17695# shared library.
17696postdep_objects=$lt_postdep_objects_GCJ
17697
17698# Dependencies to place before the objects being linked to create a
17699# shared library.
17700predeps=$lt_predeps_GCJ
17701
17702# Dependencies to place after the objects being linked to create a
17703# shared library.
17704postdeps=$lt_postdeps_GCJ
17705
17706# The library search path used internally by the compiler when linking
17707# a shared library.
17708compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17709
17710# Method to check whether dependent libraries are shared objects.
17711deplibs_check_method=$lt_deplibs_check_method
17712
17713# Command to use when deplibs_check_method == file_magic.
17714file_magic_cmd=$lt_file_magic_cmd
17715
17716# Flag that allows shared libraries with undefined symbols to be built.
17717allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17718
17719# Flag that forces no undefined symbols.
17720no_undefined_flag=$lt_no_undefined_flag_GCJ
17721
17722# Commands used to finish a libtool library installation in a directory.
17723finish_cmds=$lt_finish_cmds
17724
17725# Same as above, but a single script fragment to be evaled but not shown.
17726finish_eval=$lt_finish_eval
17727
17728# Take the output of nm and produce a listing of raw symbols and C names.
17729global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17730
17731# Transform the output of nm in a proper C declaration
17732global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17733
17734# Transform the output of nm in a C name address pair
17735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17736
17737# This is the shared library runtime path variable.
17738runpath_var=$runpath_var
17739
17740# This is the shared library path variable.
17741shlibpath_var=$shlibpath_var
17742
17743# Is shlibpath searched before the hard-coded library search path?
17744shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17745
17746# How to hardcode a shared library path into an executable.
17747hardcode_action=$hardcode_action_GCJ
17748
17749# Whether we should hardcode library paths into libraries.
17750hardcode_into_libs=$hardcode_into_libs
17751
17752# Flag to hardcode \$libdir into a binary during linking.
17753# This must work even if \$libdir does not exist.
17754hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17755
17756# If ld is used when linking, flag to hardcode \$libdir into
17757# a binary during linking. This must work even if \$libdir does
17758# not exist.
17759hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17760
17761# Whether we need a single -rpath flag with a separated argument.
17762hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17763
17764# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17765# resulting binary.
17766hardcode_direct=$hardcode_direct_GCJ
17767
17768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17769# resulting binary.
17770hardcode_minus_L=$hardcode_minus_L_GCJ
17771
17772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17773# the resulting binary.
17774hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17775
17776# Set to yes if building a shared library automatically hardcodes DIR into the library
17777# and all subsequent libraries and executables linked against it.
17778hardcode_automatic=$hardcode_automatic_GCJ
17779
17780# Variables whose values should be saved in libtool wrapper scripts and
17781# restored at relink time.
17782variables_saved_for_relink="$variables_saved_for_relink"
17783
17784# Whether libtool must link a program against all its dependency libraries.
17785link_all_deplibs=$link_all_deplibs_GCJ
17786
17787# Compile-time system search path for libraries
17788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17789
17790# Run-time system search path for libraries
17791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17792
17793# Fix the shell variable \$srcfile for the compiler.
17794fix_srcfile_path="$fix_srcfile_path_GCJ"
17795
17796# Set to yes if exported symbols are required.
17797always_export_symbols=$always_export_symbols_GCJ
17798
17799# The commands to list exported symbols.
17800export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17801
17802# The commands to extract the exported symbol list from a shared archive.
17803extract_expsyms_cmds=$lt_extract_expsyms_cmds
17804
17805# Symbols that should not be listed in the preloaded symbols.
17806exclude_expsyms=$lt_exclude_expsyms_GCJ
17807
17808# Symbols that must always be exported.
17809include_expsyms=$lt_include_expsyms_GCJ
17810
17811# ### END LIBTOOL TAG CONFIG: $tagname
17812
17813__EOF__
17814
17815
17816else
17817 # If there is no Makefile yet, we rely on a make rule to execute
17818 # `config.status --recheck' to rerun these tests and create the
17819 # libtool script then.
17820 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17821 if test -f "$ltmain_in"; then
17822 test -f Makefile && make "$ltmain"
17823 fi
17824fi
17825
17826
17827ac_ext=c
17828ac_cpp='$CPP $CPPFLAGS'
17829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17831ac_compiler_gnu=$ac_cv_c_compiler_gnu
17832
17833CC="$lt_save_CC"
17834
17835 else
17836 tagname=""
17837 fi
17838 ;;
17839
17840 RC)
17841
17842
17843
17844# Source file extension for RC test sources.
17845ac_ext=rc
17846
17847# Object file extension for compiled RC test sources.
17848objext=o
17849objext_RC=$objext
17850
17851# Code to be used in simple compile tests
17852lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17853
17854# Code to be used in simple link tests
17855lt_simple_link_test_code="$lt_simple_compile_test_code"
17856
17857# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17858
17859# If no C compiler was specified, use CC.
17860LTCC=${LTCC-"$CC"}
17861
17862# Allow CC to be a program name with arguments.
17863compiler=$CC
17864
17865
17866# Allow CC to be a program name with arguments.
17867lt_save_CC="$CC"
17868CC=${RC-"windres"}
17869compiler=$CC
17870compiler_RC=$CC
17871lt_cv_prog_compiler_c_o_RC=yes
17872
17873# The else clause should only fire when bootstrapping the
17874# libtool distribution, otherwise you forgot to ship ltmain.sh
17875# with your package, and you will get complaints that there are
17876# no rules to generate ltmain.sh.
17877if test -f "$ltmain"; then
17878 # See if we are running on zsh, and set the options which allow our commands through
17879 # without removal of \ escapes.
17880 if test -n "${ZSH_VERSION+set}" ; then
17881 setopt NO_GLOB_SUBST
17882 fi
17883 # Now quote all the things that may contain metacharacters while being
17884 # careful not to overquote the AC_SUBSTed values. We take copies of the
17885 # variables and quote the copies for generation of the libtool script.
17886 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17887 SED SHELL STRIP \
17888 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17889 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17890 deplibs_check_method reload_flag reload_cmds need_locks \
17891 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17892 lt_cv_sys_global_symbol_to_c_name_address \
17893 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17894 old_postinstall_cmds old_postuninstall_cmds \
17895 compiler_RC \
17896 CC_RC \
17897 LD_RC \
17898 lt_prog_compiler_wl_RC \
17899 lt_prog_compiler_pic_RC \
17900 lt_prog_compiler_static_RC \
17901 lt_prog_compiler_no_builtin_flag_RC \
17902 export_dynamic_flag_spec_RC \
17903 thread_safe_flag_spec_RC \
17904 whole_archive_flag_spec_RC \
17905 enable_shared_with_static_runtimes_RC \
17906 old_archive_cmds_RC \
17907 old_archive_from_new_cmds_RC \
17908 predep_objects_RC \
17909 postdep_objects_RC \
17910 predeps_RC \
17911 postdeps_RC \
17912 compiler_lib_search_path_RC \
17913 archive_cmds_RC \
17914 archive_expsym_cmds_RC \
17915 postinstall_cmds_RC \
17916 postuninstall_cmds_RC \
17917 old_archive_from_expsyms_cmds_RC \
17918 allow_undefined_flag_RC \
17919 no_undefined_flag_RC \
17920 export_symbols_cmds_RC \
17921 hardcode_libdir_flag_spec_RC \
17922 hardcode_libdir_flag_spec_ld_RC \
17923 hardcode_libdir_separator_RC \
17924 hardcode_automatic_RC \
17925 module_cmds_RC \
17926 module_expsym_cmds_RC \
17927 lt_cv_prog_compiler_c_o_RC \
17928 exclude_expsyms_RC \
17929 include_expsyms_RC; do
17930
17931 case $var in
17932 old_archive_cmds_RC | \
17933 old_archive_from_new_cmds_RC | \
17934 archive_cmds_RC | \
17935 archive_expsym_cmds_RC | \
17936 module_cmds_RC | \
17937 module_expsym_cmds_RC | \
17938 old_archive_from_expsyms_cmds_RC | \
17939 export_symbols_cmds_RC | \
17940 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17941 postinstall_cmds | postuninstall_cmds | \
17942 old_postinstall_cmds | old_postuninstall_cmds | \
17943 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17944 # Double-quote double-evaled strings.
17945 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17946 ;;
17947 *)
17948 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17949 ;;
17950 esac
17951 done
17952
17953 case $lt_echo in
17954 *'\$0 --fallback-echo"')
17955 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17956 ;;
17957 esac
17958
17959cfgfile="$ofile"
17960
17961 cat <<__EOF__ >> "$cfgfile"
17962# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17963
17964# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17965
17966# Shell to use when invoking shell scripts.
17967SHELL=$lt_SHELL
17968
17969# Whether or not to build shared libraries.
17970build_libtool_libs=$enable_shared
17971
17972# Whether or not to build static libraries.
17973build_old_libs=$enable_static
17974
17975# Whether or not to add -lc for building shared libraries.
17976build_libtool_need_lc=$archive_cmds_need_lc_RC
17977
17978# Whether or not to disallow shared libs when runtime libs are static
17979allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17980
17981# Whether or not to optimize for fast installation.
17982fast_install=$enable_fast_install
17983
17984# The host system.
17985host_alias=$host_alias
17986host=$host
17987
17988# An echo program that does not interpret backslashes.
17989echo=$lt_echo
17990
17991# The archiver.
17992AR=$lt_AR
17993AR_FLAGS=$lt_AR_FLAGS
17994
17995# A C compiler.
17996LTCC=$lt_LTCC
17997
17998# A language-specific compiler.
17999CC=$lt_compiler_RC
18000
18001# Is the compiler the GNU C compiler?
18002with_gcc=$GCC_RC
18003
18004# An ERE matcher.
18005EGREP=$lt_EGREP
18006
18007# The linker used to build libraries.
18008LD=$lt_LD_RC
18009
18010# Whether we need hard or soft links.
18011LN_S=$lt_LN_S
18012
18013# A BSD-compatible nm program.
18014NM=$lt_NM
18015
18016# A symbol stripping program
18017STRIP=$lt_STRIP
18018
18019# Used to examine libraries when file_magic_cmd begins "file"
18020MAGIC_CMD=$MAGIC_CMD
18021
18022# Used on cygwin: DLL creation program.
18023DLLTOOL="$DLLTOOL"
18024
18025# Used on cygwin: object dumper.
18026OBJDUMP="$OBJDUMP"
18027
18028# Used on cygwin: assembler.
18029AS="$AS"
18030
18031# The name of the directory that contains temporary libtool files.
18032objdir=$objdir
18033
18034# How to create reloadable object files.
18035reload_flag=$lt_reload_flag
18036reload_cmds=$lt_reload_cmds
18037
18038# How to pass a linker flag through the compiler.
18039wl=$lt_lt_prog_compiler_wl_RC
18040
18041# Object file suffix (normally "o").
18042objext="$ac_objext"
18043
18044# Old archive suffix (normally "a").
18045libext="$libext"
18046
18047# Shared library suffix (normally ".so").
18048shrext='$shrext'
18049
18050# Executable file suffix (normally "").
18051exeext="$exeext"
18052
18053# Additional compiler flags for building library objects.
18054pic_flag=$lt_lt_prog_compiler_pic_RC
18055pic_mode=$pic_mode
18056
18057# What is the maximum length of a command?
18058max_cmd_len=$lt_cv_sys_max_cmd_len
18059
18060# Does compiler simultaneously support -c and -o options?
18061compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18062
18063# Must we lock files when doing compilation ?
18064need_locks=$lt_need_locks
18065
18066# Do we need the lib prefix for modules?
18067need_lib_prefix=$need_lib_prefix
18068
18069# Do we need a version for libraries?
18070need_version=$need_version
18071
18072# Whether dlopen is supported.
18073dlopen_support=$enable_dlopen
18074
18075# Whether dlopen of programs is supported.
18076dlopen_self=$enable_dlopen_self
18077
18078# Whether dlopen of statically linked programs is supported.
18079dlopen_self_static=$enable_dlopen_self_static
18080
18081# Compiler flag to prevent dynamic linking.
18082link_static_flag=$lt_lt_prog_compiler_static_RC
18083
18084# Compiler flag to turn off builtin functions.
18085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18086
18087# Compiler flag to allow reflexive dlopens.
18088export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18089
18090# Compiler flag to generate shared objects directly from archives.
18091whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18092
18093# Compiler flag to generate thread-safe objects.
18094thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18095
18096# Library versioning type.
18097version_type=$version_type
18098
18099# Format of library name prefix.
18100libname_spec=$lt_libname_spec
18101
18102# List of archive names. First name is the real one, the rest are links.
18103# The last name is the one that the linker finds with -lNAME.
18104library_names_spec=$lt_library_names_spec
18105
18106# The coded name of the library, if different from the real name.
18107soname_spec=$lt_soname_spec
18108
18109# Commands used to build and install an old-style archive.
18110RANLIB=$lt_RANLIB
18111old_archive_cmds=$lt_old_archive_cmds_RC
18112old_postinstall_cmds=$lt_old_postinstall_cmds
18113old_postuninstall_cmds=$lt_old_postuninstall_cmds
18114
18115# Create an old-style archive from a shared archive.
18116old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18117
18118# Create a temporary old-style archive to link instead of a shared archive.
18119old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18120
18121# Commands used to build and install a shared archive.
18122archive_cmds=$lt_archive_cmds_RC
18123archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18124postinstall_cmds=$lt_postinstall_cmds
18125postuninstall_cmds=$lt_postuninstall_cmds
18126
18127# Commands used to build a loadable module (assumed same as above if empty)
18128module_cmds=$lt_module_cmds_RC
18129module_expsym_cmds=$lt_module_expsym_cmds_RC
18130
18131# Commands to strip libraries.
18132old_striplib=$lt_old_striplib
18133striplib=$lt_striplib
18134
18135# Dependencies to place before the objects being linked to create a
18136# shared library.
18137predep_objects=$lt_predep_objects_RC
18138
18139# Dependencies to place after the objects being linked to create a
18140# shared library.
18141postdep_objects=$lt_postdep_objects_RC
18142
18143# Dependencies to place before the objects being linked to create a
18144# shared library.
18145predeps=$lt_predeps_RC
18146
18147# Dependencies to place after the objects being linked to create a
18148# shared library.
18149postdeps=$lt_postdeps_RC
18150
18151# The library search path used internally by the compiler when linking
18152# a shared library.
18153compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18154
18155# Method to check whether dependent libraries are shared objects.
18156deplibs_check_method=$lt_deplibs_check_method
18157
18158# Command to use when deplibs_check_method == file_magic.
18159file_magic_cmd=$lt_file_magic_cmd
18160
18161# Flag that allows shared libraries with undefined symbols to be built.
18162allow_undefined_flag=$lt_allow_undefined_flag_RC
18163
18164# Flag that forces no undefined symbols.
18165no_undefined_flag=$lt_no_undefined_flag_RC
18166
18167# Commands used to finish a libtool library installation in a directory.
18168finish_cmds=$lt_finish_cmds
18169
18170# Same as above, but a single script fragment to be evaled but not shown.
18171finish_eval=$lt_finish_eval
18172
18173# Take the output of nm and produce a listing of raw symbols and C names.
18174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18175
18176# Transform the output of nm in a proper C declaration
18177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18178
18179# Transform the output of nm in a C name address pair
18180global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18181
18182# This is the shared library runtime path variable.
18183runpath_var=$runpath_var
18184
18185# This is the shared library path variable.
18186shlibpath_var=$shlibpath_var
18187
18188# Is shlibpath searched before the hard-coded library search path?
18189shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18190
18191# How to hardcode a shared library path into an executable.
18192hardcode_action=$hardcode_action_RC
18193
18194# Whether we should hardcode library paths into libraries.
18195hardcode_into_libs=$hardcode_into_libs
18196
18197# Flag to hardcode \$libdir into a binary during linking.
18198# This must work even if \$libdir does not exist.
18199hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18200
18201# If ld is used when linking, flag to hardcode \$libdir into
18202# a binary during linking. This must work even if \$libdir does
18203# not exist.
18204hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18205
18206# Whether we need a single -rpath flag with a separated argument.
18207hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18208
18209# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18210# resulting binary.
18211hardcode_direct=$hardcode_direct_RC
18212
18213# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18214# resulting binary.
18215hardcode_minus_L=$hardcode_minus_L_RC
18216
18217# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18218# the resulting binary.
18219hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18220
18221# Set to yes if building a shared library automatically hardcodes DIR into the library
18222# and all subsequent libraries and executables linked against it.
18223hardcode_automatic=$hardcode_automatic_RC
18224
18225# Variables whose values should be saved in libtool wrapper scripts and
18226# restored at relink time.
18227variables_saved_for_relink="$variables_saved_for_relink"
18228
18229# Whether libtool must link a program against all its dependency libraries.
18230link_all_deplibs=$link_all_deplibs_RC
18231
18232# Compile-time system search path for libraries
18233sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18234
18235# Run-time system search path for libraries
18236sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18237
18238# Fix the shell variable \$srcfile for the compiler.
18239fix_srcfile_path="$fix_srcfile_path_RC"
18240
18241# Set to yes if exported symbols are required.
18242always_export_symbols=$always_export_symbols_RC
18243
18244# The commands to list exported symbols.
18245export_symbols_cmds=$lt_export_symbols_cmds_RC
18246
18247# The commands to extract the exported symbol list from a shared archive.
18248extract_expsyms_cmds=$lt_extract_expsyms_cmds
18249
18250# Symbols that should not be listed in the preloaded symbols.
18251exclude_expsyms=$lt_exclude_expsyms_RC
18252
18253# Symbols that must always be exported.
18254include_expsyms=$lt_include_expsyms_RC
18255
18256# ### END LIBTOOL TAG CONFIG: $tagname
18257
18258__EOF__
18259
18260
18261else
18262 # If there is no Makefile yet, we rely on a make rule to execute
18263 # `config.status --recheck' to rerun these tests and create the
18264 # libtool script then.
18265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18266 if test -f "$ltmain_in"; then
18267 test -f Makefile && make "$ltmain"
18268 fi
18269fi
18270
18271
18272ac_ext=c
18273ac_cpp='$CPP $CPPFLAGS'
18274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276ac_compiler_gnu=$ac_cv_c_compiler_gnu
18277
18278CC="$lt_save_CC"
18279
18280 ;;
18281
18282 *)
18283 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18284echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18285 { (exit 1); exit 1; }; }
18286 ;;
18287 esac
18288
18289 # Append the new tag name to the list of available tags.
18290 if test -n "$tagname" ; then
18291 available_tags="$available_tags $tagname"
18292 fi
18293 fi
18294 done
18295 IFS="$lt_save_ifs"
18296
18297 # Now substitute the updated list of available tags.
18298 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18299 mv "${ofile}T" "$ofile"
18300 chmod +x "$ofile"
18301 else
18302 rm -f "${ofile}T"
18303 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18304echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18305 { (exit 1); exit 1; }; }
18306 fi
18307fi
drh71eb93e2001-09-28 01:34:43 +000018308
drh71eb93e2001-09-28 01:34:43 +000018309
drh71eb93e2001-09-28 01:34:43 +000018310
18311# This can be used to rebuild libtool when needed
18312LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18313
18314# Always use our own libtool.
18315LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18316
18317# Prevent multiple expansion
18318
a.rottmann84e63352003-03-24 09:42:16 +000018319
a.rottmann9bc8b932004-02-29 15:18:31 +000018320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
drh71eb93e2001-09-28 01:34:43 +000018338# Find a good install program. We prefer a C program (faster),
18339# so one script is as good as another. But avoid the broken or
18340# incompatible versions:
18341# SysV /etc/install, /usr/sbin/install
18342# SunOS /usr/etc/install
18343# IRIX /sbin/install
18344# AIX /bin/install
18345# AmigaOS /C/install, which installs bootblocks on floppy discs
18346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18347# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018349# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018350# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018351echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18352echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018353if test -z "$INSTALL"; then
18354if test "${ac_cv_path_install+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
a.rottmann84e63352003-03-24 09:42:16 +000018357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18358for as_dir in $PATH
18359do
18360 IFS=$as_save_IFS
18361 test -z "$as_dir" && as_dir=.
18362 # Account for people who put trailing slashes in PATH elements.
18363case $as_dir/ in
18364 ./ | .// | /cC/* | \
18365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018366 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018367 /usr/ucb/* ) ;;
18368 *)
18369 # OSF1 and SCO ODT 3.0 have their own names for install.
18370 # Don't use installbsd from OSF since it installs stuff as root
18371 # by default.
18372 for ac_prog in ginstall scoinst install; do
18373 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018374 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18375 if test $ac_prog = install &&
18376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18377 # AIX install. It has an incompatible calling convention.
18378 :
18379 elif test $ac_prog = install &&
18380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18381 # program-specific install script used by HP pwplus--don't use.
18382 :
18383 else
18384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18385 break 3
18386 fi
18387 fi
drh71eb93e2001-09-28 01:34:43 +000018388 done
a.rottmann84e63352003-03-24 09:42:16 +000018389 done
18390 ;;
18391esac
18392done
18393
drh71eb93e2001-09-28 01:34:43 +000018394
18395fi
18396 if test "${ac_cv_path_install+set}" = set; then
18397 INSTALL=$ac_cv_path_install
18398 else
18399 # As a last resort, use the slow shell script. We don't cache a
18400 # path for INSTALL within a source directory, because that will
18401 # break other packages using the cache if that directory is
18402 # removed, or if the path is relative.
18403 INSTALL=$ac_install_sh
18404 fi
18405fi
a.rottmann84e63352003-03-24 09:42:16 +000018406echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018407echo "${ECHO_T}$INSTALL" >&6
18408
18409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18410# It thinks the first close brace ends the variable substitution.
18411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18412
18413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18414
18415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18416
a.rottmann84e63352003-03-24 09:42:16 +000018417
drh75897232000-05-29 14:26:00 +000018418#########
18419# Set up an appropriate program prefix
18420#
18421if test "$program_prefix" = "NONE"; then
18422 program_prefix=""
18423fi
18424
a.rottmann84e63352003-03-24 09:42:16 +000018425
drh4b2266a2004-11-27 15:52:16 +000018426VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18427echo "Version set to $VERSION"
18428
18429RELEASE=`cat $srcdir/VERSION`
18430echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018431
danielk197799ba19e2005-02-05 07:33:34 +000018432VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018433 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018434 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018435echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018436
drh26d0e2a2005-07-06 13:51:27 +000018437
drh75897232000-05-29 14:26:00 +000018438#########
18439# Check to see if the --with-hints=FILE option is used. If there is none,
18440# then check for a files named "$host.hints" and ../$hosts.hints where
18441# $host is the hostname of the build system. If still no hints are
18442# found, try looking in $system.hints and ../$system.hints where
18443# $system is the result of uname -s.
18444#
drh71eb93e2001-09-28 01:34:43 +000018445
drh75897232000-05-29 14:26:00 +000018446# Check whether --with-hints or --without-hints was given.
18447if test "${with_hints+set}" = set; then
18448 withval="$with_hints"
18449 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018450fi;
drh75897232000-05-29 14:26:00 +000018451if test "$hints" = ""; then
18452 host=`hostname | sed 's/\..*//'`
18453 if test -r $host.hints; then
18454 hints=$host.hints
18455 else
18456 if test -r ../$host.hints; then
18457 hints=../$host.hints
18458 fi
18459 fi
18460fi
18461if test "$hints" = ""; then
18462 sys=`uname -s`
18463 if test -r $sys.hints; then
18464 hints=$sys.hints
18465 else
18466 if test -r ../$sys.hints; then
18467 hints=../$sys.hints
18468 fi
18469 fi
18470fi
18471if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018472 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018473echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018474 . $hints
18475fi
18476
18477#########
18478# Locate a compiler for the build machine. This compiler should
18479# generate command-line programs that run on the build machine.
18480#
18481default_build_cflags="-g"
18482if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018483 ac_ext=c
18484ac_cpp='$CPP $CPPFLAGS'
18485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488if test -n "$ac_tool_prefix"; then
18489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18490set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018491echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18493if test "${ac_cv_prog_CC+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018495else
18496 if test -n "$CC"; then
18497 ac_cv_prog_CC="$CC" # Let the user override the test.
18498else
a.rottmann84e63352003-03-24 09:42:16 +000018499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500for as_dir in $PATH
18501do
18502 IFS=$as_save_IFS
18503 test -z "$as_dir" && as_dir=.
18504 for ac_exec_ext in '' $ac_executable_extensions; do
18505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18508 break 2
18509 fi
18510done
drh71eb93e2001-09-28 01:34:43 +000018511done
18512
drh75897232000-05-29 14:26:00 +000018513fi
18514fi
drh71eb93e2001-09-28 01:34:43 +000018515CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018516if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018517 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018518echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018519else
a.rottmann84e63352003-03-24 09:42:16 +000018520 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018521echo "${ECHO_T}no" >&6
18522fi
18523
18524fi
18525if test -z "$ac_cv_prog_CC"; then
18526 ac_ct_CC=$CC
18527 # Extract the first word of "gcc", so it can be a program name with args.
18528set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018529echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533else
18534 if test -n "$ac_ct_CC"; then
18535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18536else
a.rottmann84e63352003-03-24 09:42:16 +000018537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540 IFS=$as_save_IFS
18541 test -z "$as_dir" && as_dir=.
18542 for ac_exec_ext in '' $ac_executable_extensions; do
18543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18544 ac_cv_prog_ac_ct_CC="gcc"
18545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546 break 2
18547 fi
18548done
drh71eb93e2001-09-28 01:34:43 +000018549done
18550
18551fi
18552fi
18553ac_ct_CC=$ac_cv_prog_ac_ct_CC
18554if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018556echo "${ECHO_T}$ac_ct_CC" >&6
18557else
a.rottmann84e63352003-03-24 09:42:16 +000018558 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018559echo "${ECHO_T}no" >&6
18560fi
18561
18562 CC=$ac_ct_CC
18563else
18564 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018565fi
18566
18567if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018568 if test -n "$ac_tool_prefix"; then
18569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18570set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018571echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18573if test "${ac_cv_prog_CC+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018575else
18576 if test -n "$CC"; then
18577 ac_cv_prog_CC="$CC" # Let the user override the test.
18578else
a.rottmann84e63352003-03-24 09:42:16 +000018579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580for as_dir in $PATH
18581do
18582 IFS=$as_save_IFS
18583 test -z "$as_dir" && as_dir=.
18584 for ac_exec_ext in '' $ac_executable_extensions; do
18585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586 ac_cv_prog_CC="${ac_tool_prefix}cc"
18587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18588 break 2
18589 fi
18590done
drh71eb93e2001-09-28 01:34:43 +000018591done
18592
18593fi
18594fi
18595CC=$ac_cv_prog_CC
18596if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018597 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018598echo "${ECHO_T}$CC" >&6
18599else
a.rottmann84e63352003-03-24 09:42:16 +000018600 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018601echo "${ECHO_T}no" >&6
18602fi
18603
18604fi
18605if test -z "$ac_cv_prog_CC"; then
18606 ac_ct_CC=$CC
18607 # Extract the first word of "cc", so it can be a program name with args.
18608set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018609echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614 if test -n "$ac_ct_CC"; then
18615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18616else
a.rottmann84e63352003-03-24 09:42:16 +000018617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618for as_dir in $PATH
18619do
18620 IFS=$as_save_IFS
18621 test -z "$as_dir" && as_dir=.
18622 for ac_exec_ext in '' $ac_executable_extensions; do
18623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18624 ac_cv_prog_ac_ct_CC="cc"
18625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18626 break 2
18627 fi
18628done
drh71eb93e2001-09-28 01:34:43 +000018629done
18630
18631fi
18632fi
18633ac_ct_CC=$ac_cv_prog_ac_ct_CC
18634if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018635 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018636echo "${ECHO_T}$ac_ct_CC" >&6
18637else
a.rottmann84e63352003-03-24 09:42:16 +000018638 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018639echo "${ECHO_T}no" >&6
18640fi
18641
18642 CC=$ac_ct_CC
18643else
18644 CC="$ac_cv_prog_CC"
18645fi
18646
18647fi
18648if test -z "$CC"; then
18649 # Extract the first word of "cc", so it can be a program name with args.
18650set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018651echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18653if test "${ac_cv_prog_CC+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 if test -n "$CC"; then
18657 ac_cv_prog_CC="$CC" # Let the user override the test.
18658else
drh75897232000-05-29 14:26:00 +000018659 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661for as_dir in $PATH
18662do
18663 IFS=$as_save_IFS
18664 test -z "$as_dir" && as_dir=.
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18668 ac_prog_rejected=yes
18669 continue
18670 fi
18671 ac_cv_prog_CC="cc"
18672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18673 break 2
18674 fi
18675done
drh71eb93e2001-09-28 01:34:43 +000018676done
18677
drh75897232000-05-29 14:26:00 +000018678if test $ac_prog_rejected = yes; then
18679 # We found a bogon in the path, so make sure we never use it.
18680 set dummy $ac_cv_prog_CC
18681 shift
drh71eb93e2001-09-28 01:34:43 +000018682 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018683 # We chose a different compiler from the bogus one.
18684 # However, it has the same basename, so the bogon will be chosen
18685 # first if we set CC to just the basename; use the full file name.
18686 shift
a.rottmann84e63352003-03-24 09:42:16 +000018687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018688 fi
18689fi
18690fi
18691fi
drh71eb93e2001-09-28 01:34:43 +000018692CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018693if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018694 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018695echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018696else
a.rottmann84e63352003-03-24 09:42:16 +000018697 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018698echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018699fi
18700
drh71eb93e2001-09-28 01:34:43 +000018701fi
18702if test -z "$CC"; then
18703 if test -n "$ac_tool_prefix"; then
18704 for ac_prog in cl
18705 do
18706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018708echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18710if test "${ac_cv_prog_CC+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018712else
18713 if test -n "$CC"; then
18714 ac_cv_prog_CC="$CC" # Let the user override the test.
18715else
a.rottmann84e63352003-03-24 09:42:16 +000018716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717for as_dir in $PATH
18718do
18719 IFS=$as_save_IFS
18720 test -z "$as_dir" && as_dir=.
18721 for ac_exec_ext in '' $ac_executable_extensions; do
18722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18725 break 2
18726 fi
18727done
drh71eb93e2001-09-28 01:34:43 +000018728done
18729
drh75897232000-05-29 14:26:00 +000018730fi
18731fi
drh71eb93e2001-09-28 01:34:43 +000018732CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018733if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018734 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018735echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018736else
a.rottmann84e63352003-03-24 09:42:16 +000018737 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018738echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018739fi
18740
drh71eb93e2001-09-28 01:34:43 +000018741 test -n "$CC" && break
18742 done
18743fi
18744if test -z "$CC"; then
18745 ac_ct_CC=$CC
18746 for ac_prog in cl
18747do
18748 # Extract the first word of "$ac_prog", so it can be a program name with args.
18749set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018750echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754else
18755 if test -n "$ac_ct_CC"; then
18756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18757else
a.rottmann84e63352003-03-24 09:42:16 +000018758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759for as_dir in $PATH
18760do
18761 IFS=$as_save_IFS
18762 test -z "$as_dir" && as_dir=.
18763 for ac_exec_ext in '' $ac_executable_extensions; do
18764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18765 ac_cv_prog_ac_ct_CC="$ac_prog"
18766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18767 break 2
18768 fi
18769done
drh71eb93e2001-09-28 01:34:43 +000018770done
drh75897232000-05-29 14:26:00 +000018771
drh71eb93e2001-09-28 01:34:43 +000018772fi
18773fi
18774ac_ct_CC=$ac_cv_prog_ac_ct_CC
18775if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018777echo "${ECHO_T}$ac_ct_CC" >&6
18778else
a.rottmann84e63352003-03-24 09:42:16 +000018779 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018780echo "${ECHO_T}no" >&6
18781fi
drh75897232000-05-29 14:26:00 +000018782
drh71eb93e2001-09-28 01:34:43 +000018783 test -n "$ac_ct_CC" && break
18784done
drh75897232000-05-29 14:26:00 +000018785
drh71eb93e2001-09-28 01:34:43 +000018786 CC=$ac_ct_CC
18787fi
18788
18789fi
18790
a.rottmann84e63352003-03-24 09:42:16 +000018791
18792test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18793See \`config.log' for more details." >&5
18794echo "$as_me: error: no acceptable C compiler found in \$PATH
18795See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018796 { (exit 1); exit 1; }; }
18797
18798# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018799echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018800 "checking for C compiler version" >&5
18801ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018802{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018803 (eval $ac_compiler --version </dev/null >&5) 2>&5
18804 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018806 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018807{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018808 (eval $ac_compiler -v </dev/null >&5) 2>&5
18809 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018811 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018812{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018813 (eval $ac_compiler -V </dev/null >&5) 2>&5
18814 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018816 (exit $ac_status); }
18817
a.rottmann84e63352003-03-24 09:42:16 +000018818echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018819echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18820if test "${ac_cv_c_compiler_gnu+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822else
18823 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018829
drh71eb93e2001-09-28 01:34:43 +000018830int
18831main ()
18832{
18833#ifndef __GNUC__
18834 choke me
drh75897232000-05-29 14:26:00 +000018835#endif
drh75897232000-05-29 14:26:00 +000018836
drh71eb93e2001-09-28 01:34:43 +000018837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018843 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018844 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018849 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018859 (eval $ac_try) 2>&5
18860 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018862 (exit $ac_status); }; }; then
18863 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018864else
drh71eb93e2001-09-28 01:34:43 +000018865 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018866sed 's/^/| /' conftest.$ac_ext >&5
18867
drh71eb93e2001-09-28 01:34:43 +000018868ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018869fi
a.rottmann964dbb12004-02-26 19:47:42 +000018870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018871ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018872
drh71eb93e2001-09-28 01:34:43 +000018873fi
a.rottmann84e63352003-03-24 09:42:16 +000018874echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018875echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18876GCC=`test $ac_compiler_gnu = yes && echo yes`
18877ac_test_CFLAGS=${CFLAGS+set}
18878ac_save_CFLAGS=$CFLAGS
18879CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018880echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018881echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18882if test "${ac_cv_prog_cc_g+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018884else
drh71eb93e2001-09-28 01:34:43 +000018885 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018891
18892int
18893main ()
18894{
18895
18896 ;
18897 return 0;
18898}
18899_ACEOF
18900rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018902 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018903 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018908 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018909 { ac_try='test -z "$ac_c_werror_flag"
18910 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; } &&
18916 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018918 (eval $ac_try) 2>&5
18919 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018921 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018922 ac_cv_prog_cc_g=yes
18923else
drh71eb93e2001-09-28 01:34:43 +000018924 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018925sed 's/^/| /' conftest.$ac_ext >&5
18926
drh71eb93e2001-09-28 01:34:43 +000018927ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018928fi
a.rottmann964dbb12004-02-26 19:47:42 +000018929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018930fi
a.rottmann84e63352003-03-24 09:42:16 +000018931echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018932echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018933if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018934 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018935elif test $ac_cv_prog_cc_g = yes; then
18936 if test "$GCC" = yes; then
18937 CFLAGS="-g -O2"
18938 else
18939 CFLAGS="-g"
18940 fi
18941else
18942 if test "$GCC" = yes; then
18943 CFLAGS="-O2"
18944 else
18945 CFLAGS=
18946 fi
18947fi
a.rottmann84e63352003-03-24 09:42:16 +000018948echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18949echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18950if test "${ac_cv_prog_cc_stdc+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18952else
18953 ac_cv_prog_cc_stdc=no
18954ac_save_CC=$CC
18955cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018956/* confdefs.h. */
18957_ACEOF
18958cat confdefs.h >>conftest.$ac_ext
18959cat >>conftest.$ac_ext <<_ACEOF
18960/* end confdefs.h. */
18961#include <stdarg.h>
18962#include <stdio.h>
18963#include <sys/types.h>
18964#include <sys/stat.h>
18965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18966struct buf { int x; };
18967FILE * (*rcsopen) (struct buf *, struct stat *, int);
18968static char *e (p, i)
18969 char **p;
18970 int i;
18971{
18972 return p[i];
18973}
18974static char *f (char * (*g) (char **, int), char **p, ...)
18975{
18976 char *s;
18977 va_list v;
18978 va_start (v,p);
18979 s = g (p, va_arg (v,int));
18980 va_end (v);
18981 return s;
18982}
a.rottmann964dbb12004-02-26 19:47:42 +000018983
18984/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18985 function prototypes and stuff, but not '\xHH' hex character constants.
18986 These don't provoke an error unfortunately, instead are silently treated
18987 as 'x'. The following induces an error, until -std1 is added to get
18988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18989 array size at least. It's necessary to write '\x00'==0 to get something
18990 that's true only with -std1. */
18991int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18992
a.rottmann84e63352003-03-24 09:42:16 +000018993int test (int i, double x);
18994struct s1 {int (*f) (int a);};
18995struct s2 {int (*f) (double a);};
18996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18997int argc;
18998char **argv;
18999int
19000main ()
19001{
19002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007# Don't try gcc -ansi; that turns off useful extensions and
19008# breaks some systems' header files.
19009# AIX -qlanglvl=ansi
19010# Ultrix and OSF/1 -std1
19011# HP-UX 10.20 and later -Ae
19012# HP-UX older versions -Aa -D_HPUX_SOURCE
19013# SVR4 -Xc -D__EXTENSIONS__
19014for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19015do
19016 CC="$ac_save_CC $ac_arg"
19017 rm -f conftest.$ac_objext
19018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019019 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019020 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_prog_cc_stdc=$ac_arg
19040break
19041else
19042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045fi
a.rottmann964dbb12004-02-26 19:47:42 +000019046rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019047done
19048rm -f conftest.$ac_ext conftest.$ac_objext
19049CC=$ac_save_CC
19050
19051fi
19052
19053case "x$ac_cv_prog_cc_stdc" in
19054 x|xno)
19055 echo "$as_me:$LINENO: result: none needed" >&5
19056echo "${ECHO_T}none needed" >&6 ;;
19057 *)
19058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19059echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19060 CC="$CC $ac_cv_prog_cc_stdc" ;;
19061esac
19062
drh71eb93e2001-09-28 01:34:43 +000019063# Some people use a C++ compiler to compile C. Since we use `exit',
19064# in C++ we need to declare it. In case someone uses the same compiler
19065# for both compiling C and C++ we need to have the C++ compiler decide
19066# the declaration of exit, since it's the most demanding environment.
19067cat >conftest.$ac_ext <<_ACEOF
19068#ifndef __cplusplus
19069 choke me
19070#endif
19071_ACEOF
19072rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019074 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019075 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019080 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019090 (eval $ac_try) 2>&5
19091 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019093 (exit $ac_status); }; }; then
19094 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019095 '' \
drh71eb93e2001-09-28 01:34:43 +000019096 'extern "C" void std::exit (int) throw (); using std::exit;' \
19097 'extern "C" void std::exit (int); using std::exit;' \
19098 'extern "C" void exit (int) throw ();' \
19099 'extern "C" void exit (int);' \
19100 'void exit (int);'
19101do
19102 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019108$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019109#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019110int
19111main ()
19112{
19113exit (42);
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019120 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019121 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019126 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019136 (eval $ac_try) 2>&5
19137 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019139 (exit $ac_status); }; }; then
19140 :
19141else
19142 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019143sed 's/^/| /' conftest.$ac_ext >&5
19144
drh71eb93e2001-09-28 01:34:43 +000019145continue
19146fi
a.rottmann964dbb12004-02-26 19:47:42 +000019147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019148 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019154$ac_declaration
19155int
19156main ()
19157{
19158exit (42);
19159 ;
19160 return 0;
19161}
19162_ACEOF
19163rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019165 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019166 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019171 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019172 { ac_try='test -z "$ac_c_werror_flag"
19173 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019181 (eval $ac_try) 2>&5
19182 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019184 (exit $ac_status); }; }; then
19185 break
19186else
19187 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019188sed 's/^/| /' conftest.$ac_ext >&5
19189
drh71eb93e2001-09-28 01:34:43 +000019190fi
a.rottmann964dbb12004-02-26 19:47:42 +000019191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019192done
19193rm -f conftest*
19194if test -n "$ac_declaration"; then
19195 echo '#ifdef __cplusplus' >>confdefs.h
19196 echo $ac_declaration >>confdefs.h
19197 echo '#endif' >>confdefs.h
19198fi
19199
19200else
19201 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019202sed 's/^/| /' conftest.$ac_ext >&5
19203
drh71eb93e2001-09-28 01:34:43 +000019204fi
a.rottmann964dbb12004-02-26 19:47:42 +000019205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019206ac_ext=c
19207ac_cpp='$CPP $CPPFLAGS'
19208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019211
xdong28f79f72003-09-23 00:35:21 +000019212 if test "$cross_compiling" = "yes"; then
19213 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19214echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19215 { (exit 1); exit 1; }; }
19216 fi
drh75897232000-05-29 14:26:00 +000019217 BUILD_CC=$CC
19218 default_build_cflags=$CFLAGS
19219else
19220 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019221 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019222echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019223 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019224 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019225echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019226fi
a.rottmann84e63352003-03-24 09:42:16 +000019227echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019228echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019229if test "$config_BUILD_CFLAGS" != ""; then
19230 CFLAGS=$config_BUILD_CFLAGS
19231 BUILD_CFLAGS=$config_BUILD_CFLAGS
19232else
19233 BUILD_CFLAGS=$default_build_cflags
19234fi
a.rottmann84e63352003-03-24 09:42:16 +000019235echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019236echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019237if test "$config_BUILD_LIBS" != ""; then
19238 BUILD_LIBS=$config_BUILD_LIBS
19239fi
19240
a.rottmann84e63352003-03-24 09:42:16 +000019241
19242
19243
drh75897232000-05-29 14:26:00 +000019244##########
19245# Locate a compiler that converts C code into *.o files that run on
19246# the target machine.
19247#
a.rottmann84e63352003-03-24 09:42:16 +000019248echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019249echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019250if test "$config_TARGET_CC" != ""; then
19251 TARGET_CC=$config_TARGET_CC
19252else
19253 TARGET_CC=$BUILD_CC
19254fi
a.rottmann84e63352003-03-24 09:42:16 +000019255echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019256echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019257echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019258echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019259if test "$config_TARGET_CFLAGS" != ""; then
19260 TARGET_CFLAGS=$config_TARGET_CFLAGS
19261else
19262 TARGET_CFLAGS=$BUILD_CFLAGS
19263fi
a.rottmann84e63352003-03-24 09:42:16 +000019264echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019265echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019266echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019267echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019268if test "$config_TARGET_LINK" = ""; then
19269 TARGET_LINK=$TARGET_CC
19270else
19271 TARGET_LINK=$config_TARGET_LINK
19272fi
a.rottmann84e63352003-03-24 09:42:16 +000019273echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019274echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019275echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019276echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019277if test "$config_TARGET_TFLAGS" != ""; then
19278 TARGET_TFLAGS=$config_TARGET_TFLAGS
19279else
19280 TARGET_TFLAGS=$BUILD_CFLAGS
19281fi
19282if test "$config_TARGET_RANLIB" != ""; then
19283 TARGET_RANLIB=$config_TARGET_RANLIB
19284else
drh71eb93e2001-09-28 01:34:43 +000019285 if test -n "$ac_tool_prefix"; then
19286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19287set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019288echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19290if test "${ac_cv_prog_RANLIB+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019292else
19293 if test -n "$RANLIB"; then
19294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19295else
a.rottmann84e63352003-03-24 09:42:16 +000019296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19297for as_dir in $PATH
19298do
19299 IFS=$as_save_IFS
19300 test -z "$as_dir" && as_dir=.
19301 for ac_exec_ext in '' $ac_executable_extensions; do
19302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19305 break 2
19306 fi
19307done
drh71eb93e2001-09-28 01:34:43 +000019308done
19309
drh75897232000-05-29 14:26:00 +000019310fi
19311fi
drh71eb93e2001-09-28 01:34:43 +000019312RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019313if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019314 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019315echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019316else
a.rottmann84e63352003-03-24 09:42:16 +000019317 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019318echo "${ECHO_T}no" >&6
19319fi
19320
19321fi
19322if test -z "$ac_cv_prog_RANLIB"; then
19323 ac_ct_RANLIB=$RANLIB
19324 # Extract the first word of "ranlib", so it can be a program name with args.
19325set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019326echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19328if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 if test -n "$ac_ct_RANLIB"; then
19332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19333else
a.rottmann84e63352003-03-24 09:42:16 +000019334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19335for as_dir in $PATH
19336do
19337 IFS=$as_save_IFS
19338 test -z "$as_dir" && as_dir=.
19339 for ac_exec_ext in '' $ac_executable_extensions; do
19340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19341 ac_cv_prog_ac_ct_RANLIB="ranlib"
19342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19343 break 2
19344 fi
19345done
drh71eb93e2001-09-28 01:34:43 +000019346done
19347
19348 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19349fi
19350fi
19351ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19352if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019353 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019354echo "${ECHO_T}$ac_ct_RANLIB" >&6
19355else
a.rottmann84e63352003-03-24 09:42:16 +000019356 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019357echo "${ECHO_T}no" >&6
19358fi
19359
19360 RANLIB=$ac_ct_RANLIB
19361else
19362 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019363fi
19364
19365 TARGET_RANLIB=$RANLIB
19366fi
19367if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019368 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019369else
19370 TARGET_AR='ar cr'
19371fi
a.rottmann84e63352003-03-24 09:42:16 +000019372echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019373echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019374
a.rottmann84e63352003-03-24 09:42:16 +000019375
19376
19377
19378
19379
19380
drh75897232000-05-29 14:26:00 +000019381# Set the $cross variable if we are cross-compiling. Make
19382# it 0 if we are not.
19383#
a.rottmann84e63352003-03-24 09:42:16 +000019384echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019385echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019386if test "$BUILD_CC" = "$TARGET_CC"; then
19387 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019388 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019389echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019390else
19391 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019392 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019393echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019394fi
19395
drh297ecf12001-04-05 15:57:13 +000019396##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019397# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019398#
dougcurrie0f290bf2004-06-21 18:57:29 +000019399# Check whether --enable-threadsafe or --disable-threadsafe was given.
19400if test "${enable_threadsafe+set}" = set; then
19401 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019402
drh297ecf12001-04-05 15:57:13 +000019403else
dougcurrie0f290bf2004-06-21 18:57:29 +000019404 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019405fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019406echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19407echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19408if test "$enable_threadsafe" = "no"; then
19409 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019410 echo "$as_me:$LINENO: result: no" >&5
19411echo "${ECHO_T}no" >&6
19412else
dougcurrie0f290bf2004-06-21 18:57:29 +000019413 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019414 echo "$as_me:$LINENO: result: yes" >&5
19415echo "${ECHO_T}yes" >&6
19416fi
19417
a.rottmann964dbb12004-02-26 19:47:42 +000019418
dougcurrie65623c72004-09-20 14:57:23 +000019419if test "$THREADSAFE" = "1"; then
19420 LIBS=""
19421
19422echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19423echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19424if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427 ac_check_lib_save_LIBS=$LIBS
19428LIBS="-lpthread $LIBS"
19429cat >conftest.$ac_ext <<_ACEOF
19430/* confdefs.h. */
19431_ACEOF
19432cat confdefs.h >>conftest.$ac_ext
19433cat >>conftest.$ac_ext <<_ACEOF
19434/* end confdefs.h. */
19435
19436/* Override any gcc2 internal prototype to avoid an error. */
19437#ifdef __cplusplus
19438extern "C"
19439#endif
19440/* We use char because int might match the return type of a gcc2
19441 builtin and then its argument prototype would still apply. */
19442char pthread_create ();
19443int
19444main ()
19445{
19446pthread_create ();
19447 ;
19448 return 0;
19449}
19450_ACEOF
19451rm -f conftest.$ac_objext conftest$ac_exeext
19452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19453 (eval $ac_link) 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_c_werror_flag"
19461 || test ! -s conftest.err'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; } &&
19467 { ac_try='test -s conftest$ac_exeext'
19468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_lib_pthread_pthread_create=yes
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478ac_cv_lib_pthread_pthread_create=no
19479fi
19480rm -f conftest.err conftest.$ac_objext \
19481 conftest$ac_exeext conftest.$ac_ext
19482LIBS=$ac_check_lib_save_LIBS
19483fi
19484echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19485echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19486if test $ac_cv_lib_pthread_pthread_create = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488#define HAVE_LIBPTHREAD 1
19489_ACEOF
19490
19491 LIBS="-lpthread $LIBS"
19492
19493fi
19494
19495 TARGET_THREAD_LIB="$LIBS"
19496 LIBS=""
19497else
19498 TARGET_THREAD_LIB=""
19499fi
19500
19501
xdong28f79f72003-09-23 00:35:21 +000019502##########
19503# Do we want to support release
19504#
19505# Check whether --enable-releasemode or --disable-releasemode was given.
19506if test "${enable_releasemode+set}" = set; then
19507 enableval="$enable_releasemode"
19508
19509else
19510 enable_releasemode=no
19511fi;
19512echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19513echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19514if test "$enable_releasemode" = "no"; then
19515 ALLOWRELEASE=""
19516 echo "$as_me:$LINENO: result: no" >&5
19517echo "${ECHO_T}no" >&6
19518else
19519 ALLOWRELEASE="-release `cat VERSION`"
19520 echo "$as_me:$LINENO: result: yes" >&5
19521echo "${ECHO_T}yes" >&6
19522fi
paulb0208cc2003-04-13 18:26:49 +000019523
a.rottmann964dbb12004-02-26 19:47:42 +000019524
paulb0208cc2003-04-13 18:26:49 +000019525##########
19526# Do we want temporary databases in memory
19527#
dougcurrie0f290bf2004-06-21 18:57:29 +000019528# Check whether --enable-tempstore or --disable-tempstore was given.
19529if test "${enable_tempstore+set}" = set; then
19530 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019531
19532else
dougcurrie0f290bf2004-06-21 18:57:29 +000019533 enable_tempstore=yes
paulb0208cc2003-04-13 18:26:49 +000019534fi;
19535echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19536echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019537case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019538 never )
paul2dc96f92003-04-20 11:46:34 +000019539 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019540 echo "$as_me:$LINENO: result: never" >&5
19541echo "${ECHO_T}never" >&6
19542 ;;
19543 no )
paul2dc96f92003-04-20 11:46:34 +000019544 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019545 echo "$as_me:$LINENO: result: no" >&5
19546echo "${ECHO_T}no" >&6
19547 ;;
19548 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019549 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019550 echo "$as_me:$LINENO: result: always" >&5
19551echo "${ECHO_T}always" >&6
19552 ;;
19553 * )
paul2dc96f92003-04-20 11:46:34 +000019554 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +000019555 echo "$as_me:$LINENO: result: yes" >&5
19556echo "${ECHO_T}yes" >&6
19557 ;;
19558esac
19559
19560
19561
drh75897232000-05-29 14:26:00 +000019562###########
19563# Lots of things are different if we are compiling for Windows using
19564# the CYGWIN environment. So check for that special case and handle
19565# things accordingly.
19566#
a.rottmann84e63352003-03-24 09:42:16 +000019567echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019568echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019569if test "$config_BUILD_EXEEXT" = ".exe"; then
19570 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019571 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019572echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019573else
a.rottmann84e63352003-03-24 09:42:16 +000019574 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019575echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019576fi
19577if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019578
19579case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019580 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019581 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019582esac
drh75897232000-05-29 14:26:00 +000019583
drh75897232000-05-29 14:26:00 +000019584fi
19585if test "$CYGWIN" = "yes"; then
19586 BUILD_EXEEXT=.exe
19587else
dougcurrie6194a5f2003-12-19 20:09:51 +000019588 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019589fi
19590if test "$cross" = "0"; then
19591 TARGET_EXEEXT=$BUILD_EXEEXT
19592else
19593 TARGET_EXEEXT=$config_TARGET_EXEEXT
19594fi
19595if test "$TARGET_EXEEXT" = ".exe"; then
19596 OS_UNIX=0
19597 OS_WIN=1
19598 tclsubdir=win
dougcurrie0f290bf2004-06-21 18:57:29 +000019599 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
drh75897232000-05-29 14:26:00 +000019600else
19601 OS_UNIX=1
19602 OS_WIN=0
19603 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019604 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019605fi
drh75897232000-05-29 14:26:00 +000019606
a.rottmann84e63352003-03-24 09:42:16 +000019607
19608
19609
19610
19611
drh75897232000-05-29 14:26:00 +000019612##########
19613# Extract generic linker options from the environment.
19614#
19615if test "$config_TARGET_LIBS" != ""; then
19616 TARGET_LIBS=$config_TARGET_LIBS
19617else
19618 TARGET_LIBS=""
19619fi
19620
a.rottmann84e63352003-03-24 09:42:16 +000019621
drh75897232000-05-29 14:26:00 +000019622##########
drh7b5717e2004-11-25 13:50:01 +000019623# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019624#
drh7b5717e2004-11-25 13:50:01 +000019625# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19626# macros in the in the tcl.m4 file of the standard TCL distribution.
19627# Those macros could not be used directly since we have to make some
19628# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019629#
drh7b5717e2004-11-25 13:50:01 +000019630# Check whether --enable-tcl or --disable-tcl was given.
19631if test "${enable_tcl+set}" = set; then
19632 enableval="$enable_tcl"
19633 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019634else
drh7b5717e2004-11-25 13:50:01 +000019635 use_tcl=yes
19636fi;
19637if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019638
drh7b5717e2004-11-25 13:50:01 +000019639# Check whether --with-tcl or --without-tcl was given.
19640if test "${with_tcl+set}" = set; then
19641 withval="$with_tcl"
19642 with_tclconfig=${withval}
19643fi;
19644 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19645echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19646 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648else
a.rottmann84e63352003-03-24 09:42:16 +000019649
drh7b5717e2004-11-25 13:50:01 +000019650 # First check to see if --with-tcl was specified.
19651 if test x"${with_tclconfig}" != x ; then
19652 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19653 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19654 else
19655 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19656echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019657 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019658 fi
19659 fi
19660 # then check for a private Tcl installation
19661 if test x"${ac_cv_c_tclconfig}" = x ; then
19662 for i in \
19663 ../tcl \
19664 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19665 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19666 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19667 ../../tcl \
19668 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19669 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19670 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19671 ../../../tcl \
19672 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19673 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19674 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19675 do
19676 if test -f "$i/unix/tclConfig.sh" ; then
19677 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19678 break
19679 fi
19680 done
19681 fi
19682
19683 # check in a few common install locations
19684 if test x"${ac_cv_c_tclconfig}" = x ; then
19685 for i in \
19686 `ls -d ${libdir} 2>/dev/null` \
19687 `ls -d /usr/local/lib 2>/dev/null` \
19688 `ls -d /usr/contrib/lib 2>/dev/null` \
19689 `ls -d /usr/lib 2>/dev/null`
19690 do
19691 if test -f "$i/tclConfig.sh" ; then
19692 ac_cv_c_tclconfig=`(cd $i; pwd)`
19693 break
19694 fi
19695 done
19696 fi
19697
19698 # check in a few other private locations
19699 if test x"${ac_cv_c_tclconfig}" = x ; then
19700 for i in \
19701 ${srcdir}/../tcl \
19702 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19703 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19704 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19705 do
19706 if test -f "$i/unix/tclConfig.sh" ; then
19707 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19708 break
19709 fi
19710 done
19711 fi
19712
drh75897232000-05-29 14:26:00 +000019713fi
19714
drh7b5717e2004-11-25 13:50:01 +000019715
19716 if test x"${ac_cv_c_tclconfig}" = x ; then
19717 use_tcl=no
19718 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19719echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19721echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19723echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19724 else
19725 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19726 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19727echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
19728
19729 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19730echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
19731 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19732 echo "$as_me:$LINENO: result: loading" >&5
19733echo "${ECHO_T}loading" >&6
19734 . $TCL_BIN_DIR/tclConfig.sh
19735 else
19736 echo "$as_me:$LINENO: result: file not found" >&5
19737echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000019738 fi
drh7b5717e2004-11-25 13:50:01 +000019739
19740 #
19741 # If the TCL_BIN_DIR is the build directory (not the install directory),
19742 # then set the common variable name to the value of the build variables.
19743 # For example, the variable TCL_LIB_SPEC will be set to the value
19744 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19745 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19746 # installed and uninstalled version of Tcl.
19747 #
19748
19749 if test -f $TCL_BIN_DIR/Makefile ; then
19750 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19751 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19752 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19753 fi
19754
19755 #
19756 # eval is required to do the TCL_DBGX substitution
19757 #
19758
19759 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19760 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19761 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19762
19763 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19764 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19765 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780 fi
drh75897232000-05-29 14:26:00 +000019781fi
drh7b5717e2004-11-25 13:50:01 +000019782if test "${use_tcl}" = "no" ; then
19783 HAVE_TCL=""
19784else
19785 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019786fi
drh75897232000-05-29 14:26:00 +000019787
a.rottmann84e63352003-03-24 09:42:16 +000019788
drh75897232000-05-29 14:26:00 +000019789##########
19790# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019791# that use "readline()" library.
19792#
19793if test "$config_TARGET_READLINE_LIBS" != ""; then
19794 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
19795else
19796 CC=$TARGET_CC
19797 LIBS=""
paul38372372003-04-22 08:04:49 +000019798 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19799echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
19800if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019801 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019802else
drh71eb93e2001-09-28 01:34:43 +000019803 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019804ac_cv_search_tgetent=no
19805cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811
19812/* Override any gcc2 internal prototype to avoid an error. */
19813#ifdef __cplusplus
19814extern "C"
19815#endif
19816/* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818char tgetent ();
19819int
19820main ()
19821{
19822tgetent ();
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827rm -f conftest.$ac_objext conftest$ac_exeext
19828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019829 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019830 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_search_tgetent="none required"
19850else
19851 echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854fi
a.rottmann964dbb12004-02-26 19:47:42 +000019855rm -f conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019857if test "$ac_cv_search_tgetent" = no; then
19858 for ac_lib in readline ncurses curses termcap; do
19859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19860 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
19865/* end confdefs.h. */
19866
19867/* Override any gcc2 internal prototype to avoid an error. */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871/* We use char because int might match the return type of a gcc2
19872 builtin and then its argument prototype would still apply. */
19873char tgetent ();
19874int
19875main ()
19876{
19877tgetent ();
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext conftest$ac_exeext
19883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019884 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019885 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019886 grep -v '^ *+' conftest.er1 >conftest.err
19887 rm -f conftest.er1
19888 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019891 { ac_try='test -z "$ac_c_werror_flag"
19892 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; } &&
19898 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_search_tgetent="-l$ac_lib"
19905break
19906else
19907 echo "$as_me: failed program was:" >&5
19908sed 's/^/| /' conftest.$ac_ext >&5
19909
19910fi
a.rottmann964dbb12004-02-26 19:47:42 +000019911rm -f conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019913 done
19914fi
19915LIBS=$ac_func_search_save_LIBS
19916fi
19917echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19918echo "${ECHO_T}$ac_cv_search_tgetent" >&6
19919if test "$ac_cv_search_tgetent" != no; then
19920 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
19921
19922fi
19923
19924
19925echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19926echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
19927if test "${ac_cv_lib_readline_readline+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929else
19930 ac_check_lib_save_LIBS=$LIBS
19931LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019932cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019938
drh71eb93e2001-09-28 01:34:43 +000019939/* Override any gcc2 internal prototype to avoid an error. */
19940#ifdef __cplusplus
19941extern "C"
19942#endif
19943/* We use char because int might match the return type of a gcc2
19944 builtin and then its argument prototype would still apply. */
19945char readline ();
19946int
19947main ()
19948{
19949readline ();
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019956 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019957 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019962 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019963 { ac_try='test -z "$ac_c_werror_flag"
19964 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019972 (eval $ac_try) 2>&5
19973 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019975 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000019976 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000019977else
drh71eb93e2001-09-28 01:34:43 +000019978 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019979sed 's/^/| /' conftest.$ac_ext >&5
19980
paul38372372003-04-22 08:04:49 +000019981ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000019982fi
a.rottmann964dbb12004-02-26 19:47:42 +000019983rm -f conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019985LIBS=$ac_check_lib_save_LIBS
19986fi
19987echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19988echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
19989if test $ac_cv_lib_readline_readline = yes; then
19990 cat >>confdefs.h <<_ACEOF
19991#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000019992_ACEOF
drh75897232000-05-29 14:26:00 +000019993
paul38372372003-04-22 08:04:49 +000019994 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019995
drh75897232000-05-29 14:26:00 +000019996fi
19997
drh75897232000-05-29 14:26:00 +000019998 TARGET_READLINE_LIBS="$LIBS"
19999fi
20000
a.rottmann84e63352003-03-24 09:42:16 +000020001
drh75897232000-05-29 14:26:00 +000020002##########
20003# Figure out where to get the READLINE header files.
20004#
a.rottmann84e63352003-03-24 09:42:16 +000020005echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020006echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020007found=no
20008if test "$config_TARGET_READLINE_INC" != ""; then
20009 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20010 found=yes
20011fi
20012if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020013 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020014echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020015else
a.rottmann84e63352003-03-24 09:42:16 +000020016 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020017echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020018 if test "${ac_cv_header_readline_h+set}" = set; then
20019 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020020echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20021if test "${ac_cv_header_readline_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020023fi
20024echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20025echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020026else
a.rottmann84e63352003-03-24 09:42:16 +000020027 # Is the header compilable?
20028echo "$as_me:$LINENO: checking readline.h usability" >&5
20029echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20030cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036$ac_includes_default
drh75897232000-05-29 14:26:00 +000020037#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020038_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020039rm -f conftest.$ac_objext
20040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020041 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020042 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_header_compiler=yes
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
20066ac_header_compiler=no
20067fi
a.rottmann964dbb12004-02-26 19:47:42 +000020068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20070echo "${ECHO_T}$ac_header_compiler" >&6
20071
20072# Is the header present?
20073echo "$as_me:$LINENO: checking readline.h presence" >&5
20074echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20075cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081#include <readline.h>
20082_ACEOF
20083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20085 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020086 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020087 rm -f conftest.er1
20088 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020090 (exit $ac_status); } >/dev/null; then
20091 if test -s conftest.err; then
20092 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020094 else
20095 ac_cpp_err=
20096 fi
drh75897232000-05-29 14:26:00 +000020097else
drh71eb93e2001-09-28 01:34:43 +000020098 ac_cpp_err=yes
20099fi
20100if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020101 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020102else
20103 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020104sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020107fi
drh71eb93e2001-09-28 01:34:43 +000020108rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20110echo "${ECHO_T}$ac_header_preproc" >&6
20111
20112# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20114 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020115 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20116echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020117 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20118echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20119 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020120 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020121 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020122 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20123echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020124 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20125echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20127echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20129echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020130 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20131echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020132 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20133echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020134 (
20135 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020136## ------------------------------------------ ##
20137## Report this to the AC_PACKAGE_NAME lists. ##
20138## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020139_ASBOX
20140 ) |
20141 sed "s/^/$as_me: WARNING: /" >&2
20142 ;;
20143esac
20144echo "$as_me:$LINENO: checking for readline.h" >&5
20145echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20146if test "${ac_cv_header_readline_h+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020150fi
a.rottmann84e63352003-03-24 09:42:16 +000020151echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020152echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020153
20154fi
drh71eb93e2001-09-28 01:34:43 +000020155if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020156 found=yes
drh75897232000-05-29 14:26:00 +000020157fi
20158
a.rottmann84e63352003-03-24 09:42:16 +000020159
drh75897232000-05-29 14:26:00 +000020160fi
20161if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020162 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020163 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020164echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020165echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20166if eval "test \"\${$as_ac_File+set}\" = set"; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020168else
20169 test "$cross_compiling" = yes &&
20170 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20171echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20172 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020173if test -r "$dir/include/readline.h"; then
20174 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020175else
drh71eb93e2001-09-28 01:34:43 +000020176 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020177fi
20178fi
a.rottmann84e63352003-03-24 09:42:16 +000020179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020180echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20181if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020182 found=yes
drh75897232000-05-29 14:26:00 +000020183fi
20184
20185 if test "$found" = "yes"; then
20186 TARGET_READLINE_INC="-I$dir/include"
20187 break
20188 fi
drh71eb93e2001-09-28 01:34:43 +000020189 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020190echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020191echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20192if eval "test \"\${$as_ac_File+set}\" = set"; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020194else
20195 test "$cross_compiling" = yes &&
20196 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20197echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20198 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020199if test -r "$dir/include/readline/readline.h"; then
20200 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020201else
drh71eb93e2001-09-28 01:34:43 +000020202 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020203fi
20204fi
a.rottmann84e63352003-03-24 09:42:16 +000020205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020206echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20207if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020208 found=yes
drh75897232000-05-29 14:26:00 +000020209fi
20210
20211 if test "$found" = "yes"; then
20212 TARGET_READLINE_INC="-I$dir/include/readline"
20213 break
20214 fi
20215 done
20216fi
20217if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020218 if test "$TARGET_READLINE_LIBS" = ""; then
20219 TARGET_HAVE_READLINE=0
20220 else
20221 TARGET_HAVE_READLINE=1
20222 fi
drh75897232000-05-29 14:26:00 +000020223else
20224 TARGET_HAVE_READLINE=0
20225fi
20226
a.rottmann84e63352003-03-24 09:42:16 +000020227
20228
drh75897232000-05-29 14:26:00 +000020229#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020230# check for debug enabled
20231# Check whether --enable-debug or --disable-debug was given.
20232if test "${enable_debug+set}" = set; then
20233 enableval="$enable_debug"
20234 use_debug=$enableval
20235else
20236 use_debug=no
20237fi;
20238if test "${use_debug}" = "yes" ; then
20239 TARGET_DEBUG=""
20240else
20241 TARGET_DEBUG="-DNDEBUG"
20242fi
20243
20244
20245#########
drh2dfbbca2000-07-28 14:32:48 +000020246# Figure out whether or not we have a "usleep()" function.
20247#
a.rottmann84e63352003-03-24 09:42:16 +000020248echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020249echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20250if test "${ac_cv_func_usleep+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020252else
drh71eb93e2001-09-28 01:34:43 +000020253 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020254/* confdefs.h. */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020259/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20261#define usleep innocuous_usleep
20262
drh2dfbbca2000-07-28 14:32:48 +000020263/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020264 which can conflict with char usleep (); below.
20265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20266 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020267
a.rottmann84e63352003-03-24 09:42:16 +000020268#ifdef __STDC__
20269# include <limits.h>
20270#else
20271# include <assert.h>
20272#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020273
20274#undef usleep
20275
drh2dfbbca2000-07-28 14:32:48 +000020276/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020277#ifdef __cplusplus
20278extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020279{
drh71eb93e2001-09-28 01:34:43 +000020280#endif
drh2dfbbca2000-07-28 14:32:48 +000020281/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020282 builtin and then its argument prototype would still apply. */
20283char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020284/* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287#if defined (__stub_usleep) || defined (__stub___usleep)
20288choke me
20289#else
a.rottmann84e63352003-03-24 09:42:16 +000020290char (*f) () = usleep;
20291#endif
20292#ifdef __cplusplus
20293}
drh2dfbbca2000-07-28 14:32:48 +000020294#endif
20295
a.rottmann84e63352003-03-24 09:42:16 +000020296int
20297main ()
20298{
20299return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020306 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020307 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020312 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020313 { ac_try='test -z "$ac_c_werror_flag"
20314 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020322 (eval $ac_try) 2>&5
20323 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020325 (exit $ac_status); }; }; then
20326 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020327else
drh71eb93e2001-09-28 01:34:43 +000020328 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020329sed 's/^/| /' conftest.$ac_ext >&5
20330
drh71eb93e2001-09-28 01:34:43 +000020331ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020332fi
a.rottmann964dbb12004-02-26 19:47:42 +000020333rm -f conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020335fi
a.rottmann84e63352003-03-24 09:42:16 +000020336echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020337echo "${ECHO_T}$ac_cv_func_usleep" >&6
20338if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020339 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020340fi
20341
a.rottmann84e63352003-03-24 09:42:16 +000020342
drh2dfbbca2000-07-28 14:32:48 +000020343#########
drh75897232000-05-29 14:26:00 +000020344# Generate the output files.
20345#
dougcurrie12b34442004-07-19 03:24:59 +000020346 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020347cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020348# This file is a shell script that caches the results of configure
20349# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020350# scripts and configure runs, see configure's option --config-cache.
20351# It is not useful on other systems. If it contains results you don't
20352# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020353#
drh71eb93e2001-09-28 01:34:43 +000020354# config.status only pays attention to the cache file if you give it
20355# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020356#
a.rottmann84e63352003-03-24 09:42:16 +000020357# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020358# loading this file, other *unset* `ac_cv_foo' will be assigned the
20359# following values.
20360
20361_ACEOF
20362
drh75897232000-05-29 14:26:00 +000020363# The following way of writing the cache mishandles newlines in values,
20364# but we know of no workaround that is simple, portable, and efficient.
20365# So, don't put newlines in cache variables' values.
20366# Ultrix sh set writes to stderr and can't be redirected directly,
20367# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020368{
20369 (set) 2>&1 |
20370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20371 *ac_space=\ *)
20372 # `set' does not quote correctly, so add quotes (double-quote
20373 # substitution turns \\\\ into \\, and sed turns \\ into \).
20374 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020375 "s/'/'\\\\''/g;
20376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020377 ;;
20378 *)
20379 # `set' quotes correctly as required by POSIX, so do not add quotes.
20380 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020382 ;;
20383 esac;
20384} |
20385 sed '
20386 t clear
20387 : clear
20388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20389 t end
20390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20391 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020392if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020393 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20395 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020396 else
20397 echo "not updating unwritable cache $cache_file"
20398 fi
20399fi
20400rm -f confcache
20401
drh75897232000-05-29 14:26:00 +000020402test "x$prefix" = xNONE && prefix=$ac_default_prefix
20403# Let make expand exec_prefix.
20404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20405
drh71eb93e2001-09-28 01:34:43 +000020406# VPATH may cause trouble with some makes, so we remove $(srcdir),
20407# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20408# trailing colons and then remove the whole line if VPATH becomes empty
20409# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020410if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020412s/:*\$(srcdir):*/:/;
20413s/:*\${srcdir}:*/:/;
20414s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020415s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020416s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020417s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020418}'
drh75897232000-05-29 14:26:00 +000020419fi
20420
drh75897232000-05-29 14:26:00 +000020421# Transform confdefs.h into DEFS.
20422# Protect against shell expansion while executing Makefile rules.
20423# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020424#
20425# If the first sed substitution is executed (which looks for macros that
20426# take arguments), then we branch to the quote section. Otherwise,
20427# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020428cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020429t clear
20430: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020431s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020432t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020433s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020434t quote
20435d
20436: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020437s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020438s,\[,\\&,g
20439s,\],\\&,g
20440s,\$,$$,g
20441p
a.rottmann84e63352003-03-24 09:42:16 +000020442_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020443# We use echo to avoid assuming a particular line-breaking character.
20444# The extra dot is to prevent the shell from consuming trailing
20445# line-breaks from the sub-command output. A line-break within
20446# single-quotes doesn't work because, if this script is created in a
20447# platform that uses two characters for line-breaks (e.g., DOS), tr
20448# would break.
20449ac_LF_and_DOT=`echo; echo .`
20450DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20451rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020452
a.rottmann84e63352003-03-24 09:42:16 +000020453
20454ac_libobjs=
20455ac_ltlibobjs=
20456for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20457 # 1. Remove the extension, and $U if already installed.
20458 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020459 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020460 # 2. Add them.
20461 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20462 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20463done
20464LIBOBJS=$ac_libobjs
20465
20466LTLIBOBJS=$ac_ltlibobjs
20467
20468
20469
drh75897232000-05-29 14:26:00 +000020470: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020471ac_clean_files_save=$ac_clean_files
20472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020473{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020474echo "$as_me: creating $CONFIG_STATUS" >&6;}
20475cat >$CONFIG_STATUS <<_ACEOF
20476#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020477# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020478# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020479# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020480# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020481
drh71eb93e2001-09-28 01:34:43 +000020482debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020483ac_cs_recheck=false
20484ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020485SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020486_ACEOF
drh75897232000-05-29 14:26:00 +000020487
drh71eb93e2001-09-28 01:34:43 +000020488cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020489## --------------------- ##
20490## M4sh Initialization. ##
20491## --------------------- ##
20492
drh71eb93e2001-09-28 01:34:43 +000020493# Be Bourne compatible
20494if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20495 emulate sh
20496 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020497 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20498 # is contrary to our usage. Disable this feature.
20499 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020500elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20501 set -o posix
drh75897232000-05-29 14:26:00 +000020502fi
a.rottmann964dbb12004-02-26 19:47:42 +000020503DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020504
a.rottmann84e63352003-03-24 09:42:16 +000020505# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020506if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020507 as_unset=unset
20508else
20509 as_unset=false
20510fi
20511
20512
20513# Work around bugs in pre-3.0 UWIN ksh.
20514$as_unset ENV MAIL MAILPATH
20515PS1='$ '
20516PS2='> '
20517PS4='+ '
20518
20519# NLS nuisances.
20520for as_var in \
20521 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20522 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20523 LC_TELEPHONE LC_TIME
20524do
a.rottmann964dbb12004-02-26 19:47:42 +000020525 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020526 eval $as_var=C; export $as_var
20527 else
20528 $as_unset $as_var
20529 fi
20530done
20531
20532# Required to use basename.
20533if expr a : '\(a\)' >/dev/null 2>&1; then
20534 as_expr=expr
20535else
20536 as_expr=false
20537fi
20538
20539if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20540 as_basename=basename
20541else
20542 as_basename=false
20543fi
20544
20545
drh71eb93e2001-09-28 01:34:43 +000020546# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020547as_me=`$as_basename "$0" ||
20548$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20549 X"$0" : 'X\(//\)$' \| \
20550 X"$0" : 'X\(/\)$' \| \
20551 . : '\(.\)' 2>/dev/null ||
20552echo X/"$0" |
20553 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20554 /^X\/\(\/\/\)$/{ s//\1/; q; }
20555 /^X\/\(\/\).*/{ s//\1/; q; }
20556 s/.*/./; q'`
20557
20558
20559# PATH needs CR, and LINENO needs CR and PATH.
20560# Avoid depending upon Character Ranges.
20561as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20562as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20563as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20564as_cr_digits='0123456789'
20565as_cr_alnum=$as_cr_Letters$as_cr_digits
20566
20567# The user is always right.
20568if test "${PATH_SEPARATOR+set}" != set; then
20569 echo "#! /bin/sh" >conf$$.sh
20570 echo "exit 0" >>conf$$.sh
20571 chmod +x conf$$.sh
20572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20573 PATH_SEPARATOR=';'
20574 else
20575 PATH_SEPARATOR=:
20576 fi
20577 rm -f conf$$.sh
20578fi
20579
20580
20581 as_lineno_1=$LINENO
20582 as_lineno_2=$LINENO
20583 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20584 test "x$as_lineno_1" != "x$as_lineno_2" &&
20585 test "x$as_lineno_3" = "x$as_lineno_2" || {
20586 # Find who we are. Look in the path if we contain no path at all
20587 # relative or not.
20588 case $0 in
20589 *[\\/]* ) as_myself=$0 ;;
20590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591for as_dir in $PATH
20592do
20593 IFS=$as_save_IFS
20594 test -z "$as_dir" && as_dir=.
20595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20596done
20597
20598 ;;
20599 esac
20600 # We did not find ourselves, most probably we were run as `sh COMMAND'
20601 # in which case we are not to be found in the path.
20602 if test "x$as_myself" = x; then
20603 as_myself=$0
20604 fi
20605 if test ! -f "$as_myself"; then
20606 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20607echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20608 { (exit 1); exit 1; }; }
20609 fi
20610 case $CONFIG_SHELL in
20611 '')
20612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20613for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20614do
20615 IFS=$as_save_IFS
20616 test -z "$as_dir" && as_dir=.
20617 for as_base in sh bash ksh sh5; do
20618 case $as_dir in
20619 /*)
20620 if ("$as_dir/$as_base" -c '
20621 as_lineno_1=$LINENO
20622 as_lineno_2=$LINENO
20623 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20624 test "x$as_lineno_1" != "x$as_lineno_2" &&
20625 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20626 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20627 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20628 CONFIG_SHELL=$as_dir/$as_base
20629 export CONFIG_SHELL
20630 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20631 fi;;
20632 esac
20633 done
20634done
20635;;
20636 esac
20637
20638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20639 # uniformly replaced by the line number. The first 'sed' inserts a
20640 # line-number line before each line; the second 'sed' does the real
20641 # work. The second script uses 'N' to pair each line-number line
20642 # with the numbered line, and appends trailing '-' during
20643 # substitution so that $LINENO is not a special case at line end.
20644 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20645 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20646 sed '=' <$as_myself |
20647 sed '
20648 N
20649 s,$,-,
20650 : loop
20651 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20652 t loop
20653 s,-$,,
20654 s,^['$as_cr_digits']*\n,,
20655 ' >$as_me.lineno &&
20656 chmod +x $as_me.lineno ||
20657 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20658echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20659 { (exit 1); exit 1; }; }
20660
20661 # Don't try to exec as it changes $[0], causing all sort of problems
20662 # (the dirname of $[0] is not the place where we might find the
20663 # original and so on. Autoconf is especially sensible to this).
20664 . ./$as_me.lineno
20665 # Exit status is that of the last command.
20666 exit
20667}
20668
20669
20670case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20671 *c*,-n*) ECHO_N= ECHO_C='
20672' ECHO_T=' ' ;;
20673 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20674 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20675esac
drh71eb93e2001-09-28 01:34:43 +000020676
20677if expr a : '\(a\)' >/dev/null 2>&1; then
20678 as_expr=expr
20679else
20680 as_expr=false
20681fi
20682
20683rm -f conf$$ conf$$.exe conf$$.file
20684echo >conf$$.file
20685if ln -s conf$$.file conf$$ 2>/dev/null; then
20686 # We could just check for DJGPP; but this test a) works b) is more generic
20687 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20688 if test -f conf$$.exe; then
20689 # Don't use ln at all; we don't have any links
20690 as_ln_s='cp -p'
20691 else
20692 as_ln_s='ln -s'
20693 fi
20694elif ln conf$$.file conf$$ 2>/dev/null; then
20695 as_ln_s=ln
20696else
20697 as_ln_s='cp -p'
20698fi
20699rm -f conf$$ conf$$.exe conf$$.file
20700
a.rottmann84e63352003-03-24 09:42:16 +000020701if mkdir -p . 2>/dev/null; then
20702 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020703else
a.rottmann964dbb12004-02-26 19:47:42 +000020704 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020705 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020706fi
20707
a.rottmann84e63352003-03-24 09:42:16 +000020708as_executable_p="test -f"
20709
20710# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020711as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020712
20713# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020714as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020715
drh71eb93e2001-09-28 01:34:43 +000020716
20717# IFS
20718# We need space, tab and new line, in precisely that order.
20719as_nl='
20720'
20721IFS=" $as_nl"
20722
20723# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000020724$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000020725
20726exec 6>&1
20727
a.rottmann84e63352003-03-24 09:42:16 +000020728# Open the log real soon, to keep \$[0] and so on meaningful, and to
20729# report actual input values of CONFIG_FILES etc. instead of their
20730# values after options handling. Logging --version etc. is OK.
20731exec 5>>config.log
20732{
20733 echo
20734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20735## Running $as_me. ##
20736_ASBOX
20737} >&5
20738cat >&5 <<_CSEOF
20739
20740This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000020741generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020742
20743 CONFIG_FILES = $CONFIG_FILES
20744 CONFIG_HEADERS = $CONFIG_HEADERS
20745 CONFIG_LINKS = $CONFIG_LINKS
20746 CONFIG_COMMANDS = $CONFIG_COMMANDS
20747 $ $0 $@
20748
20749_CSEOF
20750echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20751echo >&5
drh71eb93e2001-09-28 01:34:43 +000020752_ACEOF
20753
20754# Files that config.status was made for.
20755if test -n "$ac_config_files"; then
20756 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20757fi
20758
20759if test -n "$ac_config_headers"; then
20760 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20761fi
20762
20763if test -n "$ac_config_links"; then
20764 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20765fi
20766
20767if test -n "$ac_config_commands"; then
20768 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20769fi
20770
a.rottmann84e63352003-03-24 09:42:16 +000020771cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020772
20773ac_cs_usage="\
20774\`$as_me' instantiates files from templates according to the
20775current configuration.
20776
20777Usage: $0 [OPTIONS] [FILE]...
20778
20779 -h, --help print this help, then exit
20780 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020781 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020782 -d, --debug don't remove temporary files
20783 --recheck update $as_me by reconfiguring in the same conditions
20784 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020785 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020786
20787Configuration files:
20788$config_files
20789
20790Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000020791_ACEOF
drh75897232000-05-29 14:26:00 +000020792
a.rottmann84e63352003-03-24 09:42:16 +000020793cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020794ac_cs_version="\\
20795config.status
a.rottmann964dbb12004-02-26 19:47:42 +000020796configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000020797 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000020798
a.rottmann964dbb12004-02-26 19:47:42 +000020799Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000020800This config.status script is free software; the Free Software Foundation
20801gives unlimited permission to copy, distribute and modify it."
20802srcdir=$srcdir
20803INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000020804_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020805
a.rottmann84e63352003-03-24 09:42:16 +000020806cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020807# If no file are specified by the user, then we need to provide default
20808# value. By we need to know if files were specified by the user.
20809ac_need_defaults=:
20810while test $# != 0
20811do
20812 case $1 in
20813 --*=*)
20814 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20815 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000020816 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000020817 ;;
a.rottmann84e63352003-03-24 09:42:16 +000020818 -*)
20819 ac_option=$1
20820 ac_optarg=$2
20821 ac_shift=shift
20822 ;;
drh71eb93e2001-09-28 01:34:43 +000020823 *) # This is not an option, so the user has probably given explicit
20824 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020825 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000020826 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000020827 esac
20828
a.rottmann84e63352003-03-24 09:42:16 +000020829 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000020830 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000020831_ACEOF
20832cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000020834 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000020835 --version | --vers* | -V )
20836 echo "$ac_cs_version"; exit 0 ;;
20837 --he | --h)
20838 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000020839 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000020840Try \`$0 --help' for more information." >&5
20841echo "$as_me: error: ambiguous option: $1
20842Try \`$0 --help' for more information." >&2;}
20843 { (exit 1); exit 1; }; };;
20844 --help | --hel | -h )
20845 echo "$ac_cs_usage"; exit 0 ;;
20846 --debug | --d* | -d )
20847 debug=: ;;
20848 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020849 $ac_shift
20850 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020851 ac_need_defaults=false;;
20852 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000020853 $ac_shift
20854 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020855 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000020856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20858 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020859
drh71eb93e2001-09-28 01:34:43 +000020860 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000020861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000020862Try \`$0 --help' for more information." >&5
20863echo "$as_me: error: unrecognized option: $1
20864Try \`$0 --help' for more information." >&2;}
20865 { (exit 1); exit 1; }; } ;;
20866
20867 *) ac_config_targets="$ac_config_targets $1" ;;
20868
20869 esac
20870 shift
20871done
20872
a.rottmann84e63352003-03-24 09:42:16 +000020873ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000020874
a.rottmann84e63352003-03-24 09:42:16 +000020875if $ac_cs_silent; then
20876 exec 6>/dev/null
20877 ac_configure_extra_args="$ac_configure_extra_args --silent"
20878fi
drh71eb93e2001-09-28 01:34:43 +000020879
20880_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020881cat >>$CONFIG_STATUS <<_ACEOF
20882if \$ac_cs_recheck; then
20883 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20884 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20885fi
drh71eb93e2001-09-28 01:34:43 +000020886
a.rottmann84e63352003-03-24 09:42:16 +000020887_ACEOF
20888
20889
20890
20891
20892
20893cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020894for ac_config_target in $ac_config_targets
20895do
20896 case "$ac_config_target" in
20897 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000020898 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000020899 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000020900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000020901echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20902 { (exit 1); exit 1; }; };;
20903 esac
20904done
20905
20906# If the user did not use the arguments to specify the items to instantiate,
20907# then the envvar interface is used. Set only those that are not.
20908# We use the long form for the default assignment because of an extremely
20909# bizarre bug on SunOS 4.1.3.
20910if $ac_need_defaults; then
20911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20912fi
20913
a.rottmann84e63352003-03-24 09:42:16 +000020914# Have a temporary directory for convenience. Make it in the build tree
20915# simply because there is no reason to put it here, and in addition,
20916# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000020917# Create a temporary directory, and hook for its removal unless debugging.
20918$debug ||
20919{
20920 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20921 trap '{ (exit 1); exit 1; }' 1 2 13 15
20922}
20923
20924# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000020925
drh71eb93e2001-09-28 01:34:43 +000020926{
a.rottmann84e63352003-03-24 09:42:16 +000020927 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000020928 test -n "$tmp" && test -d "$tmp"
20929} ||
20930{
a.rottmann84e63352003-03-24 09:42:16 +000020931 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000020932 (umask 077 && mkdir $tmp)
20933} ||
20934{
a.rottmann84e63352003-03-24 09:42:16 +000020935 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000020936 { (exit 1); exit 1; }
20937}
20938
a.rottmann84e63352003-03-24 09:42:16 +000020939_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020940
a.rottmann84e63352003-03-24 09:42:16 +000020941cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020942
20943#
20944# CONFIG_FILES section.
20945#
20946
20947# No need to generate the scripts if there are no CONFIG_FILES.
20948# This happens for instance when ./config.status config.h
20949if test -n "\$CONFIG_FILES"; then
20950 # Protect against being on the right side of a sed subst in config.status.
20951 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20952 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20953s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000020954s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20955s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20956s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20957s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20958s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20959s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000020960s,@exec_prefix@,$exec_prefix,;t t
20961s,@prefix@,$prefix,;t t
20962s,@program_transform_name@,$program_transform_name,;t t
20963s,@bindir@,$bindir,;t t
20964s,@sbindir@,$sbindir,;t t
20965s,@libexecdir@,$libexecdir,;t t
20966s,@datadir@,$datadir,;t t
20967s,@sysconfdir@,$sysconfdir,;t t
20968s,@sharedstatedir@,$sharedstatedir,;t t
20969s,@localstatedir@,$localstatedir,;t t
20970s,@libdir@,$libdir,;t t
20971s,@includedir@,$includedir,;t t
20972s,@oldincludedir@,$oldincludedir,;t t
20973s,@infodir@,$infodir,;t t
20974s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000020975s,@build_alias@,$build_alias,;t t
20976s,@host_alias@,$host_alias,;t t
20977s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000020978s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000020979s,@ECHO_C@,$ECHO_C,;t t
20980s,@ECHO_N@,$ECHO_N,;t t
20981s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000020982s,@LIBS@,$LIBS,;t t
20983s,@build@,$build,;t t
20984s,@build_cpu@,$build_cpu,;t t
20985s,@build_vendor@,$build_vendor,;t t
20986s,@build_os@,$build_os,;t t
20987s,@host@,$host,;t t
20988s,@host_cpu@,$host_cpu,;t t
20989s,@host_vendor@,$host_vendor,;t t
20990s,@host_os@,$host_os,;t t
20991s,@CC@,$CC,;t t
20992s,@CFLAGS@,$CFLAGS,;t t
20993s,@LDFLAGS@,$LDFLAGS,;t t
20994s,@CPPFLAGS@,$CPPFLAGS,;t t
20995s,@ac_ct_CC@,$ac_ct_CC,;t t
20996s,@EXEEXT@,$EXEEXT,;t t
20997s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000020998s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000020999s,@LN_S@,$LN_S,;t t
21000s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021001s,@AR@,$AR,;t t
21002s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021003s,@RANLIB@,$RANLIB,;t t
21004s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21005s,@STRIP@,$STRIP,;t t
21006s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21007s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021008s,@CXX@,$CXX,;t t
21009s,@CXXFLAGS@,$CXXFLAGS,;t t
21010s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21011s,@CXXCPP@,$CXXCPP,;t t
21012s,@F77@,$F77,;t t
21013s,@FFLAGS@,$FFLAGS,;t t
21014s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021015s,@LIBTOOL@,$LIBTOOL,;t t
21016s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21017s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21018s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21019s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021020s,@VERSION@,$VERSION,;t t
drh4b2266a2004-11-27 15:52:16 +000021021s,@RELEASE@,$RELEASE,;t t
drh26d0e2a2005-07-06 13:51:27 +000021022s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
drh71eb93e2001-09-28 01:34:43 +000021023s,@BUILD_CC@,$BUILD_CC,;t t
21024s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21025s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21026s,@TARGET_CC@,$TARGET_CC,;t t
21027s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21028s,@TARGET_LINK@,$TARGET_LINK,;t t
21029s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21030s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21031s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021032s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021033s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
xdong28f79f72003-09-23 00:35:21 +000021034s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021035s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021036s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21037s,@OS_UNIX@,$OS_UNIX,;t t
21038s,@OS_WIN@,$OS_WIN,;t t
21039s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
21040s,@TARGET_LIBS@,$TARGET_LIBS,;t t
drh7b5717e2004-11-25 13:50:01 +000021041s,@TCL_VERSION@,$TCL_VERSION,;t t
21042s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21043s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21044s,@TCL_LIBS@,$TCL_LIBS,;t t
21045s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
21046s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21047s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21048s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21049s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21050s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21051s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21052s,@HAVE_TCL@,$HAVE_TCL,;t t
drh71eb93e2001-09-28 01:34:43 +000021053s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21054s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21055s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
tpoindex9d9f76c2005-01-03 21:28:56 +000021056s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021057s,@LIBOBJS@,$LIBOBJS,;t t
21058s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021059CEOF
21060
a.rottmann84e63352003-03-24 09:42:16 +000021061_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021062
a.rottmann84e63352003-03-24 09:42:16 +000021063 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021064 # Split the substitutions into bite-sized pieces for seds with
21065 # small command number limits, like on Digital OSF/1 and HP-UX.
21066 ac_max_sed_lines=48
21067 ac_sed_frag=1 # Number of current file.
21068 ac_beg=1 # First line for current file.
21069 ac_end=$ac_max_sed_lines # Line after last line for current file.
21070 ac_more_lines=:
21071 ac_sed_cmds=
21072 while $ac_more_lines; do
21073 if test $ac_beg -gt 1; then
21074 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21075 else
21076 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21077 fi
21078 if test ! -s $tmp/subs.frag; then
21079 ac_more_lines=false
21080 else
21081 # The purpose of the label and of the branching condition is to
21082 # speed up the sed processing (if there are no `@' at all, there
21083 # is no need to browse any of the substitutions).
21084 # These are the two extra sed commands mentioned above.
21085 (echo ':t
21086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21087 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021088 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021089 else
a.rottmann964dbb12004-02-26 19:47:42 +000021090 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021091 fi
21092 ac_sed_frag=`expr $ac_sed_frag + 1`
21093 ac_beg=$ac_end
21094 ac_end=`expr $ac_end + $ac_max_sed_lines`
21095 fi
21096 done
21097 if test -z "$ac_sed_cmds"; then
21098 ac_sed_cmds=cat
21099 fi
21100fi # test -n "$CONFIG_FILES"
21101
a.rottmann84e63352003-03-24 09:42:16 +000021102_ACEOF
21103cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021104for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21106 case $ac_file in
21107 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021108 cat >$tmp/stdin
21109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021113 * ) ac_file_in=$ac_file.in ;;
21114 esac
21115
21116 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021117 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021119 X"$ac_file" : 'X\(//\)[^/]' \| \
21120 X"$ac_file" : 'X\(//\)$' \| \
21121 X"$ac_file" : 'X\(/\)' \| \
21122 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021123echo X"$ac_file" |
21124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21126 /^X\(\/\/\)$/{ s//\1/; q; }
21127 /^X\(\/\).*/{ s//\1/; q; }
21128 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021129 { if $as_mkdir_p; then
21130 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021131 else
a.rottmann84e63352003-03-24 09:42:16 +000021132 as_dir="$ac_dir"
21133 as_dirs=
21134 while test ! -d "$as_dir"; do
21135 as_dirs="$as_dir $as_dirs"
21136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021138 X"$as_dir" : 'X\(//\)[^/]' \| \
21139 X"$as_dir" : 'X\(//\)$' \| \
21140 X"$as_dir" : 'X\(/\)' \| \
21141 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021142echo X"$as_dir" |
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21145 /^X\(\/\/\)$/{ s//\1/; q; }
21146 /^X\(\/\).*/{ s//\1/; q; }
21147 s/.*/./; q'`
21148 done
21149 test ! -n "$as_dirs" || mkdir $as_dirs
21150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21151echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21152 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021153
a.rottmann84e63352003-03-24 09:42:16 +000021154 ac_builddir=.
21155
21156if test "$ac_dir" != .; then
21157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21158 # A "../" for each directory in $ac_dir_suffix.
21159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21160else
21161 ac_dir_suffix= ac_top_builddir=
21162fi
21163
21164case $srcdir in
21165 .) # No --srcdir option. We are building in place.
21166 ac_srcdir=.
21167 if test -z "$ac_top_builddir"; then
21168 ac_top_srcdir=.
21169 else
21170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21171 fi ;;
21172 [\\/]* | ?:[\\/]* ) # Absolute path.
21173 ac_srcdir=$srcdir$ac_dir_suffix;
21174 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021175 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21178esac
a.rottmann964dbb12004-02-26 19:47:42 +000021179
21180# Do not use `cd foo && pwd` to compute absolute paths, because
21181# the directories may not exist.
21182case `pwd` in
21183.) ac_abs_builddir="$ac_dir";;
21184*)
21185 case "$ac_dir" in
21186 .) ac_abs_builddir=`pwd`;;
21187 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21188 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21189 esac;;
21190esac
21191case $ac_abs_builddir in
21192.) ac_abs_top_builddir=${ac_top_builddir}.;;
21193*)
21194 case ${ac_top_builddir}. in
21195 .) ac_abs_top_builddir=$ac_abs_builddir;;
21196 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21197 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21198 esac;;
21199esac
21200case $ac_abs_builddir in
21201.) ac_abs_srcdir=$ac_srcdir;;
21202*)
21203 case $ac_srcdir in
21204 .) ac_abs_srcdir=$ac_abs_builddir;;
21205 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21206 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21207 esac;;
21208esac
21209case $ac_abs_builddir in
21210.) ac_abs_top_srcdir=$ac_top_srcdir;;
21211*)
21212 case $ac_top_srcdir in
21213 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21214 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21215 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21216 esac;;
21217esac
a.rottmann84e63352003-03-24 09:42:16 +000021218
drh75897232000-05-29 14:26:00 +000021219
drh71eb93e2001-09-28 01:34:43 +000021220 case $INSTALL in
21221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021222 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021223 esac
21224
dougcurrie0f290bf2004-06-21 18:57:29 +000021225 if test x"$ac_file" != x-; then
21226 { echo "$as_me:$LINENO: creating $ac_file" >&5
21227echo "$as_me: creating $ac_file" >&6;}
21228 rm -f "$ac_file"
21229 fi
drh71eb93e2001-09-28 01:34:43 +000021230 # Let's still pretend it is `configure' which instantiates (i.e., don't
21231 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021232 # /* config.h. Generated by config.status. */
21233 if test x"$ac_file" = x-; then
21234 configure_input=
21235 else
21236 configure_input="$ac_file. "
21237 fi
21238 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021239 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021240
drh71eb93e2001-09-28 01:34:43 +000021241 # First look for the input files in the build tree, otherwise in the
21242 # src tree.
21243 ac_file_inputs=`IFS=:
21244 for f in $ac_file_in; do
21245 case $f in
21246 -) echo $tmp/stdin ;;
21247 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021248 # Absolute (can't be DOS-style, as IFS=:)
21249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021250echo "$as_me: error: cannot find input file: $f" >&2;}
21251 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021252 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021253 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021254 if test -f "$f"; then
21255 # Build tree
21256 echo "$f"
21257 elif test -f "$srcdir/$f"; then
21258 # Source tree
21259 echo "$srcdir/$f"
21260 else
21261 # /dev/null tree
21262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021263echo "$as_me: error: cannot find input file: $f" >&2;}
21264 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021265 fi;;
drh71eb93e2001-09-28 01:34:43 +000021266 esac
21267 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021268_ACEOF
21269cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021270 sed "$ac_vpsub
21271$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021272_ACEOF
21273cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021274:t
21275/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21276s,@configure_input@,$configure_input,;t t
21277s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021278s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021279s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021280s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21281s,@builddir@,$ac_builddir,;t t
21282s,@abs_builddir@,$ac_abs_builddir,;t t
21283s,@top_builddir@,$ac_top_builddir,;t t
21284s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021285s,@INSTALL@,$ac_INSTALL,;t t
21286" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21287 rm -f $tmp/stdin
21288 if test x"$ac_file" != x-; then
21289 mv $tmp/out $ac_file
21290 else
21291 cat $tmp/out
21292 rm -f $tmp/out
21293 fi
drh75897232000-05-29 14:26:00 +000021294
drh71eb93e2001-09-28 01:34:43 +000021295done
a.rottmann84e63352003-03-24 09:42:16 +000021296_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021297
a.rottmann84e63352003-03-24 09:42:16 +000021298cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021299
21300{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021301_ACEOF
drh75897232000-05-29 14:26:00 +000021302chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021303ac_clean_files=$ac_clean_files_save
21304
a.rottmann84e63352003-03-24 09:42:16 +000021305
drh71eb93e2001-09-28 01:34:43 +000021306# configure is writing to config.log, and then calls config.status.
21307# config.status does its own redirection, appending to config.log.
21308# Unfortunately, on DOS this fails, as config.log is still kept open
21309# by configure, so config.status won't be able to write to it; its
21310# output is simply discarded. So we exec the FD to /dev/null,
21311# effectively closing config.log, so it can be properly (re)opened and
21312# appended to by config.status. When coming back to configure, we
21313# need to make the FD available again.
21314if test "$no_create" != yes; then
21315 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021316 ac_config_status_args=
21317 test "$silent" = yes &&
21318 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021319 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021321 exec 5>>config.log
21322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21323 # would make configure fail if this is the last instruction.
21324 $ac_cs_success || { (exit 1); exit 1; }
21325fi
drh75897232000-05-29 14:26:00 +000021326